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
383cb6339710c392c9e5d4bc610515df9ab77d8e
4,181
ads
Ada
mat/src/events/mat-events-timelines.ads
stcarrez/mat
fb242feb5662b8130680cd06e50da7ef40b95bd7
[ "Apache-2.0" ]
7
2015-01-18T23:04:30.000Z
2021-04-06T14:07:56.000Z
mat/src/events/mat-events-timelines.ads
stcarrez/mat
fb242feb5662b8130680cd06e50da7ef40b95bd7
[ "Apache-2.0" ]
null
null
null
mat/src/events/mat-events-timelines.ads
stcarrez/mat
fb242feb5662b8130680cd06e50da7ef40b95bd7
[ "Apache-2.0" ]
null
null
null
----------------------------------------------------------------------- -- mat-events-timelines - Timelines -- Copyright (C) 2015 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.Containers.Vectors; with MAT.Expressions; with MAT.Events.Tools; with MAT.Events.Targets; package MAT.Events.Timelines is -- Describe a section of the timeline. The section has a starting and ending -- event that marks the boundary of the section within the collected events. -- The timeline section gives the duration and some statistics about memory -- allocation made in the section. type Timeline_Info is record First_Event : MAT.Events.Target_Event_Type; Last_Event : MAT.Events.Target_Event_Type; Duration : MAT.Types.Target_Time := 0; Malloc_Count : Natural := 0; Realloc_Count : Natural := 0; Free_Count : Natural := 0; Alloc_Size : MAT.Types.Target_Size := 0; Free_Size : MAT.Types.Target_Size := 0; end record; package Timeline_Info_Vectors is new Ada.Containers.Vectors (Positive, Timeline_Info); subtype Timeline_Info_Vector is Timeline_Info_Vectors.Vector; subtype Timeline_Info_Cursor is Timeline_Info_Vectors.Cursor; procedure Extract (Target : in out MAT.Events.Targets.Target_Events'Class; Level : in Positive; Into : in out Timeline_Info_Vector); -- Find in the events stream the events which are associated with a given event. -- When the <tt>Event</tt> is a memory allocation, find the associated reallocation -- and free events. When the event is a free, find the associated allocations. -- Collect at most <tt>Max</tt> events. procedure Find_Related (Target : in out MAT.Events.Targets.Target_Events'Class; Event : in MAT.Events.Target_Event_Type; Max : in Positive; List : in out MAT.Events.Tools.Target_Event_Vector); -- Find the sizes of malloc and realloc events which is selected by the given filter. -- Update the <tt>Sizes</tt> map to keep track of the first event and last event and -- the number of events found for the corresponding size. procedure Find_Sizes (Target : in out MAT.Events.Targets.Target_Events'Class; Filter : in MAT.Expressions.Expression_Type; Sizes : in out MAT.Events.Tools.Size_Event_Info_Map); -- Find the function address from the call event frames for the events which is selected -- by the given filter. The function addresses are collected up to the given frame depth. -- Update the <tt>Frames</tt> map to keep track of the first event and last event and -- the number of events found for the corresponding frame address. procedure Find_Frames (Target : in out MAT.Events.Targets.Target_Events'Class; Filter : in MAT.Expressions.Expression_Type; Depth : in Positive; Exact : in Boolean; Frames : in out MAT.Events.Tools.Frame_Event_Info_Map); -- Collect the events that match the filter and append them to the events vector. procedure Filter_Events (Target : in out MAT.Events.Targets.Target_Events'Class; Filter : in MAT.Expressions.Expression_Type; Events : in out MAT.Events.Tools.Target_Event_Vector); end MAT.Events.Timelines;
50.987805
94
0.652236
1ea1eb0f985394b858a7d2012553d81c9b3d0cf1
8,960
adb
Ada
src/common/keccak-padding.adb
damaki/libkeccak
d06217e525f7927380690d6c37b485bdbe8aa96e
[ "BSD-3-Clause" ]
26
2015-09-20T17:52:38.000Z
2021-07-29T21:47:04.000Z
src/common/keccak-padding.adb
damaki/libkeccak
d06217e525f7927380690d6c37b485bdbe8aa96e
[ "BSD-3-Clause" ]
3
2019-03-12T16:01:36.000Z
2020-05-23T13:06:43.000Z
src/common/keccak-padding.adb
damaki/libkeccak
d06217e525f7927380690d6c37b485bdbe8aa96e
[ "BSD-3-Clause" ]
2
2019-04-15T18:02:19.000Z
2020-11-22T11:22:18.000Z
------------------------------------------------------------------------------- -- Copyright (c) 2019, Daniel King -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions are met: -- * Redistributions 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. -- * The name of the copyright holder may not 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 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; package body Keccak.Padding with SPARK_Mode => On is --------------------------- -- Pad101_Single_Block -- --------------------------- procedure Pad101_Single_Block (Block : in out Keccak.Types.Byte_Array; Num_Used_Bits : in Natural; Max_Bit_Length : in Natural) is Last_Bit : Keccak.Types.Byte; begin -- Append first 1 bit Block (Block'First + (Num_Used_Bits / 8)) := (Block (Block'First + (Num_Used_Bits / 8)) and (2**(Num_Used_Bits mod 8) - 1)) or Shift_Left (1, Num_Used_Bits mod 8); -- Append zeroes Block (Block'First + (Num_Used_Bits / 8) + 1 .. Block'Last) := (others => 0); -- Append last 1 bit if Max_Bit_Length mod 8 = 0 then Last_Bit := 2#1000_0000#; else Last_Bit := Shift_Right (2#1000_0000#, 8 - (Max_Bit_Length mod 8)); end if; Block (Block'Last) := Block (Block'Last) or Last_Bit; end Pad101_Single_Block; --------------------------- -- Pad101_Multi_Blocks -- --------------------------- procedure Pad101_Multi_Blocks (First_Block : in out Keccak.Types.Byte_Array; Num_Used_Bits : in Natural; Max_Bit_Length : in Natural; Next_Block : out Keccak.Types.Byte_Array; Spilled : out Boolean) is Num_Free_Bits : constant Natural := Max_Bit_Length - Num_Used_Bits; Last_Bit : Keccak.Types.Byte; First_Bit : Keccak.Types.Byte; begin Next_Block := (others => 0); if Max_Bit_Length mod 8 = 0 then Last_Bit := 2#1000_0000#; else Last_Bit := Shift_Right (2#1000_0000#, 8 - (Max_Bit_Length mod 8)); end if; First_Bit := Shift_Left (1, Num_Used_Bits mod 8); if Num_Free_Bits >= 2 then -- This is the case where there are at least 2 bits free in the first -- block. In this case, there's enough space for all the padding bits. -- -- +---------------------+---------------------+ -- | first block | next block | -- +---------------------+---------------------+ -- |<-total len->|<-pad->| Spilled := False; -- Append first 1 bit First_Block (First_Block'First + (Num_Used_Bits / 8)) := (First_Block (First_Block'First + (Num_Used_Bits / 8)) and (First_Bit - 1)) or First_Bit; -- Append zeroes First_Block (First_Block'First + (Num_Used_Bits / 8) + 1 .. First_Block'Last) := (others => 0); -- Append last 1 bit First_Block (First_Block'Last) := First_Block (First_Block'Last) or Last_Bit; else -- This is the case where there is only 1 bit free in the first block. -- In this case, the padding spills into another block. -- -- +----------------+----------------+ -- | first block | next block | -- +----------------+----------------+ -- |<--total len-->|<-------pad----->| Spilled := True; pragma Assert (Num_Free_Bits = 1); -- First 1 bit First_Block (First_Block'Last) := (First_Block (First_Block'Last) and (First_Bit - 1)) or First_Bit; -- Next_Block is already padded with zeroes (see above). -- Append last 1 bit Next_Block (Next_Block'Last) := Last_Bit; end if; end Pad101_Multi_Blocks; ----------------------------- -- XOR_Pad101_Into_State -- ----------------------------- procedure XOR_Pad101_Into_State (State : in out State_Type; First_Bit : in Natural; Last_Bit : in Natural) is begin XOR_Byte_Into_State (State => State, Offset => First_Bit / 8, Value => Shift_Left (1, First_Bit mod 8)); XOR_Byte_Into_State (State => State, Offset => Last_Bit / 8, Value => Shift_Left (1, Last_Bit mod 8)); end XOR_Pad101_Into_State; ------------------------------------- -- Pad10_Multi_Blocks_Big_Endian -- ------------------------------------- procedure Pad10_Multi_Blocks_Big_Endian (First_Block : in out Keccak.Types.Byte_Array; Num_Used_Bits : in Natural; Max_Bit_Length : in Natural; Next_Block : out Keccak.Types.Byte_Array; Spilled : out Boolean) is Num_Free_Bits : constant Natural := Max_Bit_Length - Num_Used_Bits; Pos : Keccak.Types.Index_Number; First_Bit : Keccak.Types.Byte; begin Next_Block := (others => 0); First_Bit := Shift_Right (16#80#, Num_Used_Bits mod 8); if Num_Free_Bits >= 2 then -- This is the case where there are at least 2 bits free in the first -- block. In this case, there's enough space for all the padding bits. -- -- +---------------------+---------------------+ -- | first block | next block | -- +---------------------+---------------------+ -- |<-total len->|<-pad->| Spilled := False; -- Append first 1 bit Pos := First_Block'First + (Num_Used_Bits / 8); if Num_Used_Bits mod 8 = 0 then First_Block (Pos) := First_Bit; else -- Align last bits to the MSB. -- E.g. move 2#0000_0011# --> 2#1100_0000# First_Block (Pos) := Shift_Left (First_Block (Pos), 8 - (Num_Used_Bits mod 8)); First_Block (Pos) := First_Block (Pos) or First_Bit; end if; -- Append zeroes First_Block (First_Block'First + (Num_Used_Bits / 8) + 1 .. First_Block'Last) := (others => 0); else -- This is the case where there is only 1 bit free in the first block. -- In this case, the padding spills into another block. -- -- +----------------+----------------+ -- | first block | next block | -- +----------------+----------------+ -- |<--total len-->|<-------pad----->| Spilled := True; pragma Assert (Num_Free_Bits = 1); -- First 1 bit Pos := First_Block'First + (Num_Used_Bits / 8); if Num_Used_Bits mod 8 = 0 then First_Block (Pos) := First_Bit; else -- Align last bits to the MSB. -- E.g. move 2#0000_0011# --> 2#1100_0000# First_Block (Pos) := Shift_Left (First_Block (Pos), 8 - (Num_Used_Bits mod 8)); First_Block (Pos) := First_Block (Pos) or First_Bit; end if; -- Next_Block is already padded with zeroes (see above). end if; end Pad10_Multi_Blocks_Big_Endian; end Keccak.Padding;
38.290598
92
0.516853
04e3321a6758e829fbbae1414d37cb105d93b368
2,620
adb
Ada
source/units/program-units-declarations.adb
optikos/oasis
9f64d46d26d964790d69f9db681c874cfb3bf96d
[ "MIT" ]
null
null
null
source/units/program-units-declarations.adb
optikos/oasis
9f64d46d26d964790d69f9db681c874cfb3bf96d
[ "MIT" ]
null
null
null
source/units/program-units-declarations.adb
optikos/oasis
9f64d46d26d964790d69f9db681c874cfb3bf96d
[ "MIT" ]
2
2019-09-14T23:18:50.000Z
2019-10-02T10:11:40.000Z
-- Copyright (c) 2019 Maxim Reznik <[email protected]> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- package body Program.Units.Declarations is ------------------ -- Append_Child -- ------------------ procedure Append_Child (Self : in out Unit_Declaration; Value : Program.Compilation_Units.Compilation_Unit_Access) is begin Self.Childern.Append (Value); end Append_Child; ------------------------ -- Corresponding_Body -- ------------------------ overriding function Corresponding_Body (Self : access Unit_Declaration) return Program.Library_Unit_Bodies.Library_Unit_Body_Access is begin return Self.Impl; end Corresponding_Body; ---------------------------- -- Corresponding_Childern -- ---------------------------- overriding function Corresponding_Childern (Self : access Unit_Declaration) return Program.Compilation_Unit_Vectors.Compilation_Unit_Vector_Access is begin if Self.Childern.Is_Empty then return null; else return Self.Childern'Access; end if; end Corresponding_Childern; ---------------- -- Initialize -- ---------------- procedure Initialize (Self : in out Unit_Declaration; Compilation : Program.Compilations.Compilation_Access; Full_Name : Text; Context_Clause : Program.Element_Vectors.Element_Vector_Access; Declaration : not null Program.Elements.Element_Access; Parent : Program.Library_Unit_Declarations .Library_Unit_Declaration_Access) is begin Self.Initialize (Compilation => Compilation, Full_Name => Full_Name, Context_Clause => Context_Clause, Unit_Declaration => Declaration); Self.Parent := Parent; if Parent not in null then Unit_Declaration (Parent.all).Append_Child (Self'Unchecked_Access); end if; Self.Childern.Clear; end Initialize; -------------- -- Set_Body -- -------------- procedure Set_Body (Self : in out Unit_Declaration; Value : Program.Library_Unit_Bodies.Library_Unit_Body_Access) is begin Self.Impl := Value; end Set_Body; ------------ -- Parent -- ------------ overriding function Parent (Self : access Unit_Declaration) return Program.Library_Unit_Declarations.Library_Unit_Declaration_Access is begin return Self.Parent; end Parent; end Program.Units.Declarations;
27.87234
78
0.59771
9a683115a7cb7c6599171937d982d294b8a88f81
513
ads
Ada
source/web-rss.ads
ytomino/web-ada
376fe024e4c8784bd4350a343a1416b79292fbb5
[ "FSFAP" ]
2
2015-02-09T21:09:15.000Z
2021-11-17T19:53:08.000Z
source/web-rss.ads
ytomino/web-ada
376fe024e4c8784bd4350a343a1416b79292fbb5
[ "FSFAP" ]
null
null
null
source/web-rss.ads
ytomino/web-ada
376fe024e4c8784bd4350a343a1416b79292fbb5
[ "FSFAP" ]
null
null
null
-- <link rel="alternate" type="application/rss+xml" title="RSS2.0" href="*" /> package Web.RSS is procedure RSS_Start ( Stream : not null access Ada.Streams.Root_Stream_Type'Class; Title : in String; Description : in String; Link : in String); procedure RSS_Item ( Stream : not null access Ada.Streams.Root_Stream_Type'Class; Title : in String; Description : in String; Link : in String); procedure RSS_End ( Stream : not null access Ada.Streams.Root_Stream_Type'Class); end Web.RSS;
25.65
78
0.709552
9ad310f17ef97510efb5a788b3ddb781a12f4738
3,732
ads
Ada
support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/s-pooloc.ads
orb-zhuchen/Orb
6da2404b949ac28bde786e08bf4debe4a27cd3a0
[ "CNRI-Python-GPL-Compatible", "MIT" ]
null
null
null
support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/s-pooloc.ads
orb-zhuchen/Orb
6da2404b949ac28bde786e08bf4debe4a27cd3a0
[ "CNRI-Python-GPL-Compatible", "MIT" ]
null
null
null
support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/s-pooloc.ads
orb-zhuchen/Orb
6da2404b949ac28bde786e08bf4debe4a27cd3a0
[ "CNRI-Python-GPL-Compatible", "MIT" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- S Y S T E M . P O O L _ L O C A L -- -- -- -- S p e c -- -- -- -- 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. -- -- -- ------------------------------------------------------------------------------ -- Storage pool for use with local objects with automatic reclaim with System.Storage_Elements; with System.Pool_Global; package System.Pool_Local is pragma Elaborate_Body; -- Needed to ensure that library routines can execute allocators ---------------------------- -- Unbounded_Reclaim_Pool -- ---------------------------- -- Allocation strategy: -- Call to malloc/free for each Allocate/Deallocate -- No user specifiable size -- Space of allocated objects is reclaimed at pool finalization -- Manages a list of allocated objects type Unbounded_Reclaim_Pool is new System.Pool_Global.Unbounded_No_Reclaim_Pool with record First : System.Address := Null_Address; end record; -- function Storage_Size is inherited procedure Allocate (Pool : in out Unbounded_Reclaim_Pool; Address : out System.Address; Storage_Size : System.Storage_Elements.Storage_Count; Alignment : System.Storage_Elements.Storage_Count); procedure Deallocate (Pool : in out Unbounded_Reclaim_Pool; Address : System.Address; Storage_Size : System.Storage_Elements.Storage_Count; Alignment : System.Storage_Elements.Storage_Count); procedure Finalize (Pool : in out Unbounded_Reclaim_Pool); end System.Pool_Local;
49.76
78
0.480439
386a1a0bdbbf54ced44d259956dada47f04f98ee
2,547
adb
Ada
support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/a-sblcin.adb
orb-zhuchen/Orb
6da2404b949ac28bde786e08bf4debe4a27cd3a0
[ "CNRI-Python-GPL-Compatible", "MIT" ]
null
null
null
support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/a-sblcin.adb
orb-zhuchen/Orb
6da2404b949ac28bde786e08bf4debe4a27cd3a0
[ "CNRI-Python-GPL-Compatible", "MIT" ]
null
null
null
support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/a-sblcin.adb
orb-zhuchen/Orb
6da2404b949ac28bde786e08bf4debe4a27cd3a0
[ "CNRI-Python-GPL-Compatible", "MIT" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ADA.STRINGS.BOUNDED.LESS_CASE_INSENSITIVE -- -- -- -- B o d y -- -- -- -- Copyright (C) 2011-2019, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- This unit was originally developed by Matthew J Heaney. -- ------------------------------------------------------------------------------ with Ada.Strings.Less_Case_Insensitive; function Ada.Strings.Bounded.Less_Case_Insensitive (Left, Right : Bounded.Bounded_String) return Boolean is begin return Ada.Strings.Less_Case_Insensitive (Left => Bounded.To_String (Left), Right => Bounded.To_String (Right)); end Ada.Strings.Bounded.Less_Case_Insensitive;
62.121951
78
0.423243
3856e7fd259e53d5ea36f9ef91fa0d2f3b2c9574
3,335
ada
Ada
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c9/c97202a.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/c9/c97202a.ada
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
null
null
null
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c9/c97202a.ada
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
2
2020-07-27T00:22:36.000Z
2021-04-01T09:41:02.000Z
-- C97202A.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 THE INDEX IS EVALUATED BEFORE THE ENTRY PARAMETER AND BOTH -- THE INDEX AND THE ENTRY PARAMETER ARE EVALUATED BEFORE THE RENDEZVOUS -- IS ATTEMPED. -- RM 4/05/82 -- TBN 2/3/86 ADDED A CHECK THAT INDEX IS EVALUATED BEFORE THE ENTRY -- PARAMETER AND FIXED APPROPRIATE COMMENTS. WITH REPORT; USE REPORT; PROCEDURE C97202A IS INDEX_COMPUTED : BOOLEAN := FALSE ; FORMAL_COMPUTED : BOOLEAN := FALSE ; BEGIN TEST ("C97202A", "CHECK THAT THE INDEX IS EVALUATED BEFORE THE " & "ENTRY PARAMETER AND BOTH INDEX AND THE ENTRY " & "PARAMETER ARE EVALUATED BEFORE THE RENDEZVOUS " & "IS ATTEMPTED"); DECLARE SUBTYPE SHORT IS INTEGER RANGE 10..20 ; TASK T IS ENTRY DO_IT_NOW_ORELSE (SHORT) (DID_YOU_DO_IT : IN BOOLEAN); ENTRY KEEP_ALIVE ; END T ; TASK BODY T IS BEGIN ACCEPT KEEP_ALIVE ; END T ; FUNCTION F1 (X:INTEGER) RETURN INTEGER IS BEGIN IF FORMAL_COMPUTED THEN FAILED ("INDEX WAS NOT EVALUATED FIRST"); END IF; INDEX_COMPUTED := TRUE ; RETURN (7) ; END F1 ; FUNCTION F2 (X:INTEGER) RETURN BOOLEAN IS BEGIN FORMAL_COMPUTED := TRUE ; RETURN (FALSE) ; END F2 ; BEGIN SELECT T.DO_IT_NOW_ORELSE ( 6 + F1(7) ) ( NOT(F2(7)) ) ; ELSE NULL ; END SELECT; T.KEEP_ALIVE ; END; -- END OF BLOCK CONTAINING THE ENTRY CALLS. IF INDEX_COMPUTED THEN NULL ; ELSE FAILED( "ENTRY INDEX WAS NOT COMPUTED" ); END IF; IF FORMAL_COMPUTED THEN NULL ; ELSE FAILED( "ENTRY PARAMETER WAS NOT COMPUTED" ); END IF; RESULT; END C97202A ;
33.019802
79
0.569715
4b658f694342b92256cb05a985f6bb4a737f1e57
4,478
ads
Ada
gcc-gcc-7_3_0-release/gcc/ada/s-vxwext-rtp.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/s-vxwext-rtp.ads
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
null
null
null
gcc-gcc-7_3_0-release/gcc/ada/s-vxwext-rtp.ads
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
2
2020-07-27T00:22:36.000Z
2021-04-01T09:41:02.000Z
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- S Y S T E M . V X W O R K S . E X T -- -- -- -- S p e c -- -- -- -- Copyright (C) 2008-2014, 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/>. -- -- -- ------------------------------------------------------------------------------ -- This package provides vxworks specific support functions needed -- by System.OS_Interface. -- This is the VxWorks 6 RTP version of this package with Interfaces.C; package System.VxWorks.Ext is pragma Preelaborate; subtype SEM_ID is Long_Integer; -- typedef struct semaphore *SEM_ID; type sigset_t is mod 2 ** Long_Long_Integer'Size; type t_id is new Long_Integer; subtype int is Interfaces.C.int; subtype unsigned is Interfaces.C.unsigned; type Interrupt_Handler is access procedure (parameter : System.Address); pragma Convention (C, Interrupt_Handler); type Interrupt_Vector is new System.Address; function Int_Lock return int; pragma Inline (Int_Lock); function Int_Unlock (Old : int) return int; pragma Inline (Int_Unlock); function Interrupt_Connect (Vector : Interrupt_Vector; Handler : Interrupt_Handler; Parameter : System.Address := System.Null_Address) return int; pragma Convention (C, Interrupt_Connect); function Interrupt_Context return int; pragma Convention (C, Interrupt_Context); function Interrupt_Number_To_Vector (intNum : int) return Interrupt_Vector; pragma Convention (C, Interrupt_Number_To_Vector); function semDelete (Sem : SEM_ID) return int; pragma Convention (C, semDelete); function Task_Cont (tid : t_id) return int; pragma Import (C, Task_Cont, "taskResume"); function Task_Stop (tid : t_id) return int; pragma Import (C, Task_Stop, "taskSuspend"); function kill (pid : t_id; sig : int) return int; pragma Import (C, kill, "taskKill"); function getpid return t_id; pragma Import (C, getpid, "getpid"); function Set_Time_Slice (ticks : int) return int; pragma Inline (Set_Time_Slice); -------------------------------- -- Processor Affinity for SMP -- -------------------------------- function taskCpuAffinitySet (tid : t_id; CPU : int) return int; pragma Convention (C, taskCpuAffinitySet); -- For SMP run-times set the CPU affinity. -- For uniprocessor systems return ERROR status. function taskMaskAffinitySet (tid : t_id; CPU_Set : unsigned) return int; pragma Convention (C, taskMaskAffinitySet); -- For SMP run-times set the CPU mask affinity. -- For uniprocessor systems return ERROR status. end System.VxWorks.Ext;
42.647619
78
0.537963
57be669cc514d8aab8e2861ab38a1c13ce6d632a
1,959
ads
Ada
tier-1/xcb/source/thin/xcb-xcb_query_text_extents_reply_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_query_text_extents_reply_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_query_text_extents_reply_t.ads
charlie5/cBound
741be08197a61ad9c72553e3302f3b669902216d
[ "0BSD" ]
null
null
null
-- This file is generated by SWIG. Please do not modify by hand. -- with Interfaces; with Interfaces.C; with Interfaces.C.Pointers; package xcb.xcb_query_text_extents_reply_t is -- Item -- type Item is record response_type : aliased Interfaces.Unsigned_8; draw_direction : aliased Interfaces.Unsigned_8; sequence : aliased Interfaces.Unsigned_16; length : aliased Interfaces.Unsigned_32; font_ascent : aliased Interfaces.Integer_16; font_descent : aliased Interfaces.Integer_16; overall_ascent : aliased Interfaces.Integer_16; overall_descent : aliased Interfaces.Integer_16; overall_width : aliased Interfaces.Integer_32; overall_left : aliased Interfaces.Integer_32; overall_right : aliased Interfaces.Integer_32; end record; -- Item_Array -- type Item_Array is array (Interfaces.C .size_t range <>) of aliased xcb.xcb_query_text_extents_reply_t .Item; -- Pointer -- package C_Pointers is new Interfaces.C.Pointers (Index => Interfaces.C.size_t, Element => xcb.xcb_query_text_extents_reply_t.Item, Element_Array => xcb.xcb_query_text_extents_reply_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_query_text_extents_reply_t .Pointer; -- Pointer_Pointer -- package C_Pointer_Pointers is new Interfaces.C.Pointers (Index => Interfaces.C.size_t, Element => xcb.xcb_query_text_extents_reply_t.Pointer, Element_Array => xcb.xcb_query_text_extents_reply_t.Pointer_Array, Default_Terminator => null); subtype Pointer_Pointer is C_Pointer_Pointers.Pointer; end xcb.xcb_query_text_extents_reply_t;
31.095238
77
0.68096
2209d67e6aab80cb4105f54aa0884e41ac8437a3
1,160
ads
Ada
src/lib/Utilities/string_sets.ads
fintatarta/protypo
c0c2bca17bc766ab95acc99b7422485388a10cb4
[ "MIT" ]
null
null
null
src/lib/Utilities/string_sets.ads
fintatarta/protypo
c0c2bca17bc766ab95acc99b7422485388a10cb4
[ "MIT" ]
4
2019-10-09T11:16:38.000Z
2019-10-09T11:20:38.000Z
src/lib/Utilities/string_sets.ads
fintatarta/protypo
c0c2bca17bc766ab95acc99b7422485388a10cb4
[ "MIT" ]
null
null
null
-- A string set is just a weaker form of regular expression. A string -- set is a finite set of strings where each character belongs to a set. -- -- A string set can be represented by a regex of the form -- -- [...][...][...] -- -- that is, as a concatenation of character sets. -- -- This is convenient choice when you do not need the full "weight" of -- usual regexs. with Ada.Strings.Maps; use Ada.Strings.Maps; package String_Sets is type Set_String (<>) is private; function To_Set_String (X : String) return Set_String; -- Create a string set that contains only X function "&" (X, Y : Set_String) return Set_String; function "&" (X : String; Y : Character_Set) return Set_String; function Match (X : String; Pattern : Set_String) return Boolean; private type Basic_Set_String is array (Positive range <>) of Character_Set; type Set_String is new Basic_Set_String; function "&" (X, Y : Set_String) return Set_String is (Set_String(Basic_Set_String (X) & Basic_Set_String (Y))); function "&" (X : String; Y : Character_Set) return Set_String is (To_Set_String (X) & Set_String'(1 => Y)); end String_Sets;
33.142857
72
0.693103
384908d1be7c7694ebb84309311b78d0136e2f80
13,743
adb
Ada
apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen/sharpen/hls_target/.autopilot/db/linebuffer.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/paper_apps_8_shifts/sharpen/sharpen/hls_target/.autopilot/db/linebuffer.sched.adb
dillonhuff/Halide-HLS
e9f4c3ac7915e5a52f211ce65004ae17890515a0
[ "MIT" ]
null
null
null
apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen/sharpen/hls_target/.autopilot/db/linebuffer.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>linebuffer</name> <ret_bitwidth>0</ret_bitwidth> <ports class_id="2" tracking_level="0" version="0"> <count>2</count> <item_version>0</item_version> <item class_id="3" tracking_level="1" version="0" object_id="_1"> <Value class_id="4" tracking_level="0" version="0"> <Obj class_id="5" tracking_level="0" version="0"> <type>1</type> <id>1</id> <name>in_stream_V_value_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo class_id="6" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>in_stream.V.value.V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <direction>0</direction> <if_type>3</if_type> <array_size>0</array_size> <bit_vecs class_id="7" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_2"> <Value> <Obj> <type>1</type> <id>2</id> <name>out_stream_V_value_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>out_stream.V.value.V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>72</bitwidth> </Value> <direction>1</direction> <if_type>3</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> </ports> <nodes class_id="8" tracking_level="0" version="0"> <count>2</count> <item_version>0</item_version> <item class_id="9" tracking_level="1" version="0" object_id="_3"> <Value> <Obj> <type>0</type> <id>12</id> <name></name> <fileName>../../../lib_files/Linebuffer.h</fileName> <fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</fileDirectory> <lineNumber>403</lineNumber> <contextFuncName>linebuffer_2D&amp;lt;4, 4, 1, 1, 1, 1, 3, 3, unsigned char&amp;gt;</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/paper_apps_8_shifts/sharpen</first> <second class_id="11" tracking_level="0" version="0"> <count>4</count> <item_version>0</item_version> <item class_id="12" tracking_level="0" version="0"> <first class_id="13" tracking_level="0" version="0"> <first>../../../lib_files/Linebuffer.h</first> <second>linebuffer&amp;lt;4, 4, 1, 1, 1, 1, 1, 1, 3, 3, 1, 1, unsigned char&amp;gt;</second> </first> <second>530</second> </item> <item> <first> <first>../../../lib_files/Linebuffer.h</first> <second>linebuffer_2D&amp;lt;4, 4, 1, 1, 1, 1, 3, 3, unsigned char&amp;gt;</second> </first> <second>403</second> </item> <item> <first> <first>../../../lib_files/Linebuffer.h</first> <second>linebuffer_3D&amp;lt;4, 4, 1, 1, 1, 3, 3, 1, 1, unsigned char&amp;gt;</second> </first> <second>492</second> </item> <item> <first> <first>../../../lib_files/Linebuffer.h</first> <second>linebuffer_4D&amp;lt;4, 4, 1, 1, 1, 1, 1, 3, 3, 1, 1, unsigned char&amp;gt;</second> </first> <second>505</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>16</item> <item>17</item> <item>18</item> </oprand_edges> <opcode>call</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_4"> <Value> <Obj> <type>0</type> <id>13</id> <name></name> <fileName>../../../lib_files/Linebuffer.h</fileName> <fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</fileDirectory> <lineNumber>531</lineNumber> <contextFuncName>linebuffer&amp;lt;4, 4, 1, 1, 1, 1, 1, 1, 3, 3, 1, 1, unsigned char&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/paper_apps_8_shifts/sharpen</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>../../../lib_files/Linebuffer.h</first> <second>linebuffer&amp;lt;4, 4, 1, 1, 1, 1, 1, 1, 3, 3, 1, 1, unsigned char&amp;gt;</second> </first> <second>531</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>0</count> <item_version>0</item_version> </oprand_edges> <opcode>ret</opcode> <m_Display>0</m_Display> </item> </nodes> <consts class_id="15" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="16" tracking_level="1" version="0" object_id="_5"> <Value> <Obj> <type>2</type> <id>15</id> <name>call</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>0</bitwidth> </Value> <const_type>6</const_type> <content>&lt;constant:call&gt;</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="_6"> <Obj> <type>3</type> <id>14</id> <name>linebuffer</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>2</count> <item_version>0</item_version> <item>12</item> <item>13</item> </node_objs> </item> </blocks> <edges class_id="19" tracking_level="0" version="0"> <count>3</count> <item_version>0</item_version> <item class_id="20" tracking_level="1" version="0" object_id="_7"> <id>16</id> <edge_type>1</edge_type> <source_obj>15</source_obj> <sink_obj>12</sink_obj> </item> <item class_id_reference="20" object_id="_8"> <id>17</id> <edge_type>1</edge_type> <source_obj>1</source_obj> <sink_obj>12</sink_obj> </item> <item class_id_reference="20" object_id="_9"> <id>18</id> <edge_type>1</edge_type> <source_obj>2</source_obj> <sink_obj>12</sink_obj> </item> </edges> </cdfg> <cdfg_regions class_id="21" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="22" tracking_level="1" version="0" object_id="_10"> <mId>1</mId> <mTag>linebuffer</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>14</item> </basic_blocks> <mII>-1</mII> <mDepth>-1</mDepth> <mMinTripCount>-1</mMinTripCount> <mMaxTripCount>-1</mMaxTripCount> <mMinLatency>33</mMinLatency> <mMaxLatency>-1</mMaxLatency> <mIsDfPipe>1</mIsDfPipe> <mDfPipe class_id="23" tracking_level="1" version="0" object_id="_11"> <port_list class_id="24" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </port_list> <process_list class_id="25" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="26" tracking_level="1" version="0" object_id="_12"> <type>0</type> <name>call_U0</name> <ssdmobj_id>12</ssdmobj_id> <pins class_id="27" tracking_level="0" version="0"> <count>2</count> <item_version>0</item_version> <item class_id="28" tracking_level="1" version="0" object_id="_13"> <port class_id="29" tracking_level="1" version="0" object_id="_14"> <name>in_stream_V_value_V</name> <dir>0</dir> <type>0</type> </port> <inst class_id="30" tracking_level="1" version="0" object_id="_15"> <type>0</type> <name>call_U0</name> <ssdmobj_id>12</ssdmobj_id> </inst> </item> <item class_id_reference="28" object_id="_16"> <port class_id_reference="29" object_id="_17"> <name>out_stream_V_value_V</name> <dir>0</dir> <type>1</type> </port> <inst class_id_reference="30" object_id_reference="_15"></inst> </item> </pins> </item> </process_list> <channel_list class_id="31" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </channel_list> <net_list class_id="32" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </net_list> </mDfPipe> </item> </cdfg_regions> <fsm class_id="-1"></fsm> <res class_id="-1"></res> <node_label_latency class_id="35" tracking_level="0" version="0"> <count>2</count> <item_version>0</item_version> <item class_id="36" tracking_level="0" version="0"> <first>12</first> <second class_id="37" tracking_level="0" version="0"> <first>0</first> <second>1</second> </second> </item> <item> <first>13</first> <second> <first>1</first> <second>0</second> </second> </item> </node_label_latency> <bblk_ent_exit class_id="38" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="39" tracking_level="0" version="0"> <first>14</first> <second class_id="40" tracking_level="0" version="0"> <first>0</first> <second>1</second> </second> </item> </bblk_ent_exit> <regions class_id="41" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="42" tracking_level="1" version="0" object_id="_18"> <region_name>linebuffer</region_name> <basic_blocks> <count>1</count> <item_version>0</item_version> <item>14</item> </basic_blocks> <nodes> <count>11</count> <item_version>0</item_version> <item>3</item> <item>4</item> <item>5</item> <item>6</item> <item>7</item> <item>8</item> <item>9</item> <item>10</item> <item>11</item> <item>12</item> <item>13</item> </nodes> <anchor_node>-1</anchor_node> <region_type>16</region_type> <interval>0</interval> <pipe_depth>0</pipe_depth> </item> </regions> <dp_fu_nodes class_id="43" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </dp_fu_nodes> <dp_fu_nodes_expression class_id="44" 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="45" 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="46" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </dp_port_io_nodes> <port2core class_id="47" 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>
30.744966
138
0.618351
1dfef9ab0858e9bb28021010d7f63c314bb388c0
4,491
ada
Ada
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c3/c35502p.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/c35502p.ada
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
null
null
null
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c3/c35502p.ada
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
2
2020-07-27T00:22:36.000Z
2021-04-01T09:41:02.000Z
-- C35502P.ADA -- Grant of Unlimited Rights -- -- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687, -- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained -- unlimited rights in the software and documentation contained herein. -- Unlimited rights are defined in DFAR 252.227-7013(a)(19). By making -- this public release, the Government intends to confer upon all -- recipients unlimited rights equal to those held by the Government. -- These rights include rights to use, duplicate, release or disclose the -- released technical data and computer software in whole or in part, in -- any manner and for any purpose whatsoever, and to have or permit others -- to do so. -- -- DISCLAIMER -- -- ALL MATERIALS OR INFORMATION HEREIN RELEASED, MADE AVAILABLE OR -- DISCLOSED ARE AS IS. THE GOVERNMENT MAKES NO EXPRESS OR IMPLIED -- WARRANTY AS TO ANY MATTER WHATSOEVER, INCLUDING THE CONDITIONS OF THE -- SOFTWARE, DOCUMENTATION OR OTHER INFORMATION RELEASED, MADE AVAILABLE -- OR DISCLOSED, OR THE OWNERSHIP, MERCHANTABILITY, OR FITNESS FOR A -- PARTICULAR PURPOSE OF SAID MATERIAL. --* -- OBJECTIVE: -- FOR AN ENUMERATION TYPE OTHER THAN BOOLEAN OR CHARACTER TYPE, -- CHECK THAT THE RESULTS AND TYPE PRODUCED BY THE ATTRIBUTES -- ARE CORRECT. -- CHECK THAT 'FIRST AND 'LAST YIELD CORRECT RESULTS WHEN THE -- PREFIX DENOTES A NULL SUBTYPE. -- HISTORY: -- RJW 05/05/86 CREATED ORIGINAL TEST. -- CJJ 06/09/87 CHANGED "=" COMPARISONS IN GENERIC -- PROCEDURE Q TO "/=". WITH REPORT; USE REPORT; PROCEDURE C35502P IS BEGIN TEST( "C35502P" , "CHECK THAT THE ATTRIBUTES 'FIRST' AND " & "'LAST' YIELD THE CORRECT RESULTS WHEN THE " & "PREFIX IS A GENERIC FORMAL DISCRETE TYPE " & "WHOSE ACTUAL PARAMETER IS AN ENUMERATION " & "TYPE OTHER THAN A CHARACTER OR A BOOLEAN " & "TYPE" ); DECLARE -- FOR THESE DECLARATIONS, 'FIRST AND 'LAST REFER TO THE -- SUBTYPE VALUES, BUT 'VAL AND 'POS ARE INHERITED FROM THE -- BASE TYPE. TYPE ENUM IS (A, BC, ABC, A_B_C, ABCD); SUBTYPE SUBENUM IS ENUM RANGE A .. ABC; TYPE NEWENUM IS NEW ENUM RANGE BC .. A_B_C; TYPE NONEWENUM IS NEW ENUM RANGE ABCD .. A; GENERIC TYPE E IS (<>); F, L : E; PROCEDURE P (STR : STRING); PROCEDURE P (STR : STRING) IS SUBTYPE NOENUM IS E RANGE E'VAL (IDENT_INT(2)) .. E'VAL (IDENT_INT(1)); BEGIN IF E'FIRST /= F THEN FAILED ( "INCORRECT E'FIRST FOR " & STR ); END IF; IF NOENUM'FIRST /= E'VAL (2) THEN FAILED ( "INCORRECT NOENUM'FIRST FOR " & STR ); END IF; IF E'LAST /= L THEN FAILED ( "INCORRECT E'LAST FOR " & STR ); END IF; IF NOENUM'LAST /= E'VAL (1) THEN FAILED ( "INCORRECT NOENUM'LAST FOR " & STR ); END IF; END P; GENERIC TYPE E IS (<>); PROCEDURE Q; PROCEDURE Q IS SUBTYPE NOENUM IS E RANGE E'VAL (IDENT_INT(2)) .. E'VAL (IDENT_INT(1)); BEGIN IF E'FIRST /= E'VAL (IDENT_INT(4)) THEN FAILED ( "INCORRECT E'FIRST FOR NONEWENUM" ); END IF; IF NOENUM'FIRST /= E'VAL (2) THEN FAILED ( "INCORRECT NOENUM'FIRST FOR NONEWENUM"); END IF; IF E'LAST /= E'VAL (IDENT_INT(0)) THEN FAILED ( "INCORRECT E'LAST FOR NONEWENUM"); END IF; IF NOENUM'LAST /= E'VAL (1) THEN FAILED ( "INCORRECT NOENUM'LAST FOR NONEWENUM"); END IF; END Q; PROCEDURE PROC1 IS NEW P (ENUM, A, ABCD); PROCEDURE PROC2 IS NEW P (SUBENUM, A, ABC); PROCEDURE PROC3 IS NEW P (NEWENUM, BC, A_B_C); PROCEDURE PROC4 IS NEW Q (NONEWENUM); BEGIN PROC1 ( "ENUM" ); PROC2 ( "SUBENUM" ); PROC3 ( "NEWENUM" ); PROC4; END; RESULT; END C35502P;
36.512195
79
0.538855
4b95295c563be7c06f2babe05d856c557198b3e6
4,264
adb
Ada
llvm-gcc-4.2-2.9/gcc/ada/a-ztenio.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/a-ztenio.adb
vidkidz/crossbridge
ba0bf94aee0ce6cf7eb5be882382e52bc57ba396
[ "MIT" ]
null
null
null
llvm-gcc-4.2-2.9/gcc/ada/a-ztenio.adb
vidkidz/crossbridge
ba0bf94aee0ce6cf7eb5be882382e52bc57ba396
[ "MIT" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- A D A . W I D E _ W I D E _ T E X T _ I O . E N U M E R A T I O N _ I O -- -- -- -- B o d y -- -- -- -- Copyright (C) 1992-2005, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 2, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -- -- for more details. You should have received a copy of the GNU General -- -- Public License distributed with GNAT; see file COPYING. If not, write -- -- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, -- -- Boston, MA 02110-1301, USA. -- -- -- -- 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 Ada.Wide_Wide_Text_IO.Enumeration_Aux; package body Ada.Wide_Wide_Text_IO.Enumeration_IO is package Aux renames Ada.Wide_Wide_Text_IO.Enumeration_Aux; --------- -- Get -- --------- procedure Get (File : File_Type; Item : out Enum) is Buf : Wide_Wide_String (1 .. Enum'Width); Buflen : Natural; begin Aux.Get_Enum_Lit (File, Buf, Buflen); Item := Enum'Wide_Wide_Value (Buf (1 .. Buflen)); exception when Constraint_Error => raise Data_Error; end Get; procedure Get (Item : out Enum) is begin Get (Current_Input, Item); end Get; procedure Get (From : Wide_Wide_String; Item : out Enum; Last : out Positive) is Start : Natural; begin Aux.Scan_Enum_Lit (From, Start, Last); Item := Enum'Wide_Wide_Value (From (Start .. Last)); exception when Constraint_Error => raise Data_Error; end Get; --------- -- Put -- --------- procedure Put (File : File_Type; Item : Enum; Width : Field := Default_Width; Set : Type_Set := Default_Setting) is Image : constant Wide_Wide_String := Enum'Wide_Wide_Image (Item); begin Aux.Put (File, Image, Width, Set); end Put; procedure Put (Item : Enum; Width : Field := Default_Width; Set : Type_Set := Default_Setting) is begin Put (Current_Output, Item, Width, Set); end Put; procedure Put (To : out Wide_Wide_String; Item : Enum; Set : Type_Set := Default_Setting) is Image : constant Wide_Wide_String := Enum'Wide_Wide_Image (Item); begin Aux.Puts (To, Image, Set); end Put; end Ada.Wide_Wide_Text_IO.Enumeration_IO;
37.734513
78
0.494137
3869580992886d1d834c4123d582aeb2445bbd27
861
ads
Ada
src/gdb/gdb-7.11/gdb/testsuite/gdb.ada/pp-rec-component/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/pp-rec-component/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/pp-rec-component/pck.ads
alrooney/unum-sdk
bbccb10b0cd3500feccbbef22e27ea111c3d18eb
[ "Apache-2.0" ]
20
2018-11-16T21:19:22.000Z
2021-10-18T23:08:24.000Z
-- Copyright 2014-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 Time_T is record Secs : Integer; end record; procedure Do_Nothing (A : System.Address); end Pck;
35.875
73
0.728223
a00412ec6d010a8ddd6395c97bb234159148077e
1,402
ads
Ada
tier-1/xcb/source/thin/xcb-xcb_generic_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_generic_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_generic_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 swig; with Interfaces.C; with Interfaces.C.Pointers; package xcb.xcb_generic_iterator_t is -- Item -- type Item is record data : aliased swig.void_ptr; 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_generic_iterator_t .Item; -- Pointer -- package C_Pointers is new Interfaces.C.Pointers (Index => Interfaces.C.size_t, Element => xcb.xcb_generic_iterator_t.Item, Element_Array => xcb.xcb_generic_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_generic_iterator_t .Pointer; -- Pointer_Pointer -- package C_Pointer_Pointers is new Interfaces.C.Pointers (Index => Interfaces.C.size_t, Element => xcb.xcb_generic_iterator_t.Pointer, Element_Array => xcb.xcb_generic_iterator_t.Pointer_Array, Default_Terminator => null); subtype Pointer_Pointer is C_Pointer_Pointers.Pointer; end xcb.xcb_generic_iterator_t;
25.962963
75
0.660485
0457700969cb5e76e675e2830c3e22d77ef8a036
450
ada
Ada
Task/Sockets/Ada/sockets.ada
mullikine/RosettaCodeData
4f0027c6ce83daa36118ee8b67915a13cd23ab67
[ "Info-ZIP" ]
1
2018-11-09T22:08:38.000Z
2018-11-09T22:08:38.000Z
Task/Sockets/Ada/sockets.ada
mullikine/RosettaCodeData
4f0027c6ce83daa36118ee8b67915a13cd23ab67
[ "Info-ZIP" ]
null
null
null
Task/Sockets/Ada/sockets.ada
mullikine/RosettaCodeData
4f0027c6ce83daa36118ee8b67915a13cd23ab67
[ "Info-ZIP" ]
1
2018-11-09T22:08:40.000Z
2018-11-09T22:08:40.000Z
with GNAT.Sockets; use GNAT.Sockets; procedure Socket_Send is Client : Socket_Type; begin Initialize; Create_Socket (Socket => Client); Connect_Socket (Socket => Client, Server => (Family => Family_Inet, Addr => Inet_Addr ("127.0.0.1"), Port => 256)); String'Write (Stream (Client), "hello socket world"); Close_Socket (Client); end Socket_Send;
30
64
0.564444
9a51c9b8a673452b69418dc5e18fc3e11f6c0527
4,165
ada
Ada
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c3/c38002b.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/c38002b.ada
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
null
null
null
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c3/c38002b.ada
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
2
2020-07-27T00:22:36.000Z
2021-04-01T09:41:02.000Z
-- C38002B.ADA -- Grant of Unlimited Rights -- -- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687, -- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained -- unlimited rights in the software and documentation contained herein. -- Unlimited rights are defined in DFAR 252.227-7013(a)(19). By making -- this public release, the Government intends to confer upon all -- recipients unlimited rights equal to those held by the Government. -- These rights include rights to use, duplicate, release or disclose the -- released technical data and computer software in whole or in part, in -- any manner and for any purpose whatsoever, and to have or permit others -- to do so. -- -- DISCLAIMER -- -- ALL MATERIALS OR INFORMATION HEREIN RELEASED, MADE AVAILABLE OR -- DISCLOSED ARE AS IS. THE GOVERNMENT MAKES NO EXPRESS OR IMPLIED -- WARRANTY AS TO ANY MATTER WHATSOEVER, INCLUDING THE CONDITIONS OF THE -- SOFTWARE, DOCUMENTATION OR OTHER INFORMATION RELEASED, MADE AVAILABLE -- OR DISCLOSED, OR THE OWNERSHIP, MERCHANTABILITY, OR FITNESS FOR A -- PARTICULAR PURPOSE OF SAID MATERIAL. --* -- OBJECTIVE: -- CHECK THAT AN UNCONSTRAINED ARRAY TYPE OR A RECORD WITHOUT -- DEFAULT DISCRIMINANTS CAN BE USED IN AN ACCESS_TYPE_DEFINITION -- WITHOUT AN INDEX OR DISCRIMINANT CONSTRAINT. -- -- CHECK THAT (NON-STATIC) INDEX OR DISCRIMINANT CONSTRAINTS CAN -- SUBSEQUENTLY BE IMPOSED WHEN THE TYPE IS USED IN AN OBJECT -- DECLARATION, ARRAY COMPONENT DECLARATION, RECORD COMPONENT -- DECLARATION, ACCESS TYPE DECLARATION, PARAMETER DECLARATION, -- ALLOCATOR, DERIVED TYPE DEFINITION, PRIVATE TYPE, OR AS THE -- RETURN TYPE IN A FUNCTION DECLARATION. -- -- CHECK FOR GENERIC FORMAL ACCESS TYPES. -- HISTORY: -- AH 09/02/86 CREATED ORIGINAL TEST. -- DHH 08/22/88 REVISED HEADER, ADDED 'PRIVATE TYPE' TO COMMENTS -- AND CORRECTED INDENTATION. WITH REPORT; USE REPORT; PROCEDURE C38002B IS C3 : CONSTANT INTEGER := IDENT_INT(3); TYPE UNCON_ARR IS ARRAY (INTEGER RANGE <>) OF INTEGER; TYPE REC (DISC : INTEGER) IS RECORD NULL; END RECORD; TYPE P_ARR_NAME IS ACCESS UNCON_ARR; TYPE P_REC_NAME IS ACCESS REC; GENERIC TYPE ACC_REC IS ACCESS REC; TYPE ACC_ARR IS ACCESS UNCON_ARR; PACKAGE P IS OBJ : ACC_REC(C3); TYPE ARR2 IS ARRAY (1..10) OF ACC_REC(C3); TYPE REC1 IS RECORD COMP1 : ACC_REC(C3); END RECORD; TYPE REC2 IS RECORD COMP2 : ACC_ARR(1..C3); END RECORD; SUBTYPE ACC_REC_3 IS ACC_REC(C3); R : ACC_REC; FUNCTION F (PARM : ACC_REC_3) RETURN ACC_REC_3; TYPE ACC1 IS PRIVATE; TYPE ACC2 IS PRIVATE; TYPE DER1 IS PRIVATE; TYPE DER2 IS PRIVATE; PRIVATE TYPE ACC1 IS ACCESS ACC_REC(C3); TYPE ACC2 IS ACCESS ACC_ARR(1..C3); TYPE DER1 IS NEW ACC_REC(C3); TYPE DER2 IS NEW ACC_ARR(1..C3); END P; PACKAGE BODY P IS FUNCTION F (PARM : ACC_REC_3) RETURN ACC_REC_3 IS BEGIN RETURN PARM; END; END P; PACKAGE NP IS NEW P (ACC_REC => P_REC_NAME, ACC_ARR => P_ARR_NAME); USE NP; BEGIN TEST ("C38002B", "NON-STATIC CONSTRAINTS CAN BE IMPOSED " & "ON ACCESS TYPES ACCESSING PREVIOUSLY UNCONSTRAINED " & "ARRAY OR RECORD TYPES"); R := NEW REC(DISC => 3); R := F(R); R := NEW REC(DISC => 4); R := F(R); FAILED ("INCOMPATIBLE CONSTRAINT ON ACCESS VALUE ACCEPTED " & "BY GENERIC FUNCTION"); EXCEPTION WHEN CONSTRAINT_ERROR => IF R = NULL OR ELSE R.DISC /= 4 THEN FAILED (" ERROR IN EVALUATION/ASSIGNMENT OF " & "GENERIC ACCESS VALUE"); END IF; RESULT; END C38002B;
33.58871
79
0.604802
9a15d8e00c8ac40b8fd131176c17be319cc2efa4
6,027
ads
Ada
tools/scitools/conf/understand/ada/ada12/g-encstr.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/ada12/g-encstr.ads
brucegua/moocos
575c161cfa35e220f10d042e2e5ca18773691695
[ "Apache-2.0" ]
null
null
null
tools/scitools/conf/understand/ada/ada12/g-encstr.ads
brucegua/moocos
575c161cfa35e220f10d042e2e5ca18773691695
[ "Apache-2.0" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- G N A T . E N C O D E _ S T R I N G -- -- -- -- S p e c -- -- -- -- Copyright (C) 2007-2010, 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. -- -- -- -- -- -- -- -- -- -- -- -- 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 generic package provides utility routines for converting from -- Wide_String or Wide_Wide_String to encoded String using a specified -- encoding convention, which is supplied as the generic parameter. If -- this parameter is a known at compile time constant (e.g. a constant -- defined in System.WCh_Con), the instantiation is specialized so that -- it applies only to this specified coding. -- Note: this package is only about encoding sequences of 16- or 32-bit -- characters into a sequence of 8-bit codes. It knows nothing at all about -- the character encodings being used for the input Wide_Character and -- Wide_Wide_Character values, although some of the encoding methods (notably -- JIS and EUC) have built in assumptions about the range of possible input -- code values. Most often the input will be Unicode/ISO-10646 as specified by -- the Ada RM, but this package does not make any assumptions about the -- character coding, and in the case of UTF-8 all possible code values can be -- encoded. See also the packages Ada.Wide_[Wide_]Characters.Unicode for -- unicode specific functions. -- Note on brackets encoding (WCEM_Brackets). On input, upper half characters -- can be represented as ["hh"] but the routines in this package will only use -- brackets encodings for codes higher than 16#FF#, so upper half characters -- will be output as single Character values. with System.WCh_Con; generic Encoding_Method : System.WCh_Con.WC_Encoding_Method; package GNAT.Encode_String is pragma Pure; function Encode_Wide_String (S : Wide_String) return String; pragma Inline (Encode_Wide_String); -- Encode the given Wide_String, returning a String encoded using the -- given encoding method. Constraint_Error will be raised if the encoding -- method cannot accommodate the input data. procedure Encode_Wide_String (S : Wide_String; Result : out String; Length : out Natural); -- Encode the given Wide_String, storing the encoded string in Result, -- with Length being set to the length of the encoded string. The caller -- must ensure that Result is long enough (see useful constants defined -- in System.WCh_Con: WC_Longest_Sequence, WC_Longest_Sequences). If the -- length of Result is insufficient Constraint_Error will be raised. -- Constraint_Error will also be raised if the encoding method cannot -- accommodate the input data. function Encode_Wide_Wide_String (S : Wide_Wide_String) return String; pragma Inline (Encode_Wide_Wide_String); -- Same as above function but for Wide_Wide_String input procedure Encode_Wide_Wide_String (S : Wide_Wide_String; Result : out String; Length : out Natural); -- Same as above procedure, but for Wide_Wide_String input procedure Encode_Wide_Character (Char : Wide_Character; Result : in out String; Ptr : in out Natural); pragma Inline (Encode_Wide_Character); -- This is a lower level procedure that encodes the single character Char. -- The output is stored in Result starting at Result (Ptr), and Ptr is -- updated past the stored value. Constraint_Error is raised if Result -- is not long enough to accommodate the result, or if the encoding method -- specified does not accommodate the input character value, or if Ptr is -- outside the bounds of the Result string. procedure Encode_Wide_Wide_Character (Char : Wide_Wide_Character; Result : in out String; Ptr : in out Natural); -- Same as above procedure but with Wide_Wide_Character input end GNAT.Encode_String;
54.790909
79
0.563298
ad84fc4dc17cd5d60a85d25aabc642aff59288f4
1,382
ads
Ada
tools/scitools/conf/understand/ada/ada95/a-llfwti.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/ada95/a-llfwti.ads
brucegua/moocos
575c161cfa35e220f10d042e2e5ca18773691695
[ "Apache-2.0" ]
null
null
null
tools/scitools/conf/understand/ada/ada95/a-llfwti.ads
brucegua/moocos
575c161cfa35e220f10d042e2e5ca18773691695
[ "Apache-2.0" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT RUNTIME COMPONENTS -- -- -- -- A D A . L O N G _ L O N G _ F L O A T _ W I D E _ T E X T _ I O -- -- -- -- S p e c -- -- -- -- $Revision: 2 $ -- -- -- -- This specification is adapted from the Ada Reference Manual for use with -- -- GNAT. In accordance with the copyright of that document, you can freely -- -- copy and modify this specification, provided that if you redistribute a -- -- modified version, any changes that you have made are clearly indicated. -- -- -- ------------------------------------------------------------------------------ with Ada.Wide_Text_IO; package Ada.Long_Long_Float_Wide_Text_IO is new Ada.Wide_Text_IO.Float_IO (Long_Long_Float);
62.818182
78
0.291606
0441724e4c7f31ac4f9cce3c316d599e264a3d85
2,934
ads
Ada
src/common/keccak-keccak_1600.ads
damaki/libkeccak
d06217e525f7927380690d6c37b485bdbe8aa96e
[ "BSD-3-Clause" ]
26
2015-09-20T17:52:38.000Z
2021-07-29T21:47:04.000Z
src/common/keccak-keccak_1600.ads
damaki/libkeccak
d06217e525f7927380690d6c37b485bdbe8aa96e
[ "BSD-3-Clause" ]
3
2019-03-12T16:01:36.000Z
2020-05-23T13:06:43.000Z
src/common/keccak-keccak_1600.ads
damaki/libkeccak
d06217e525f7927380690d6c37b485bdbe8aa96e
[ "BSD-3-Clause" ]
2
2019-04-15T18:02:19.000Z
2020-11-22T11:22:18.000Z
------------------------------------------------------------------------------- -- Copyright (c) 2019, Daniel King -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions are met: -- * Redistributions 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. -- * The name of the copyright holder may not 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 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; with Keccak.Generic_KeccakF; with Keccak.Generic_KeccakF.Byte_Lanes; with Keccak.Generic_KeccakF.Lane_Complementing_Permutation; with Keccak.Padding; pragma Elaborate_All (Keccak.Generic_KeccakF); pragma Elaborate_All (Keccak.Generic_KeccakF.Byte_Lanes); pragma Elaborate_All (Keccak.Generic_KeccakF.Lane_Complementing_Permutation); -- @summary -- Instantiation of Keccak with a state size of 1600 bits (64-bit lanes). package Keccak.Keccak_1600 with SPARK_Mode => On is package KeccakF_1600 is new Keccak.Generic_KeccakF (Lane_Size_Log => 6, Lane_Type => Interfaces.Unsigned_64, Shift_Left => Interfaces.Shift_Left, Shift_Right => Interfaces.Shift_Right, Rotate_Left => Interfaces.Rotate_Left); subtype State is KeccakF_1600.Lane_Complemented_State; package KeccakF_1600_Permutation is new KeccakF_1600.Lane_Complementing_Permutation; package KeccakF_1600_Lanes is new KeccakF_1600.Byte_Lanes; procedure XOR_Pad101_Into_State is new Keccak.Padding.XOR_Pad101_Into_State (State_Size_Bits => 1600, State_Type => State, XOR_Byte_Into_State => KeccakF_1600_Lanes.XOR_Byte_Into_State); end Keccak.Keccak_1600;
47.322581
87
0.720177
38efdd375cd95b8a210d1eed9d1f7c740cb33ae1
9,304
ads
Ada
arch/ARM/STM32/driversWL5x/stm32-spi.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/driversWL5x/stm32-spi.ads
morbos/Ada_Drivers_Library
a4ab26799be60997c38735f4056160c4af597ef7
[ "BSD-3-Clause" ]
null
null
null
arch/ARM/STM32/driversWL5x/stm32-spi.ads
morbos/Ada_Drivers_Library
a4ab26799be60997c38735f4056160c4af597ef7
[ "BSD-3-Clause" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015, AdaCore -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions are -- -- met: -- -- 1. Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- 2. Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in -- -- the documentation and/or other materials provided with the -- -- distribution. -- -- 3. Neither the name of STMicroelectronics nor the names of its -- -- contributors may be used to endorse or promote products derived -- -- from this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -- -- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -- -- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -- -- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -- -- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -- -- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- -- -- -- This file is based on: -- -- -- -- @file stm32f4xx_hal_spi.h -- -- @author MCD Application Team -- -- @version V1.1.0 -- -- @date 19-June-2014 -- -- @brief Header file of SPI HAL module. -- -- -- -- COPYRIGHT(c) 2014 STMicroelectronics -- ------------------------------------------------------------------------------ -- This file provides definitions for the STM32F4 (ARM Cortex M4F -- from ST Microelectronics) Serial Peripheral Interface (SPI) facility. private with STM32_SVD.SPI; with HAL.SPI; package STM32.SPI is type Internal_SPI_Port is private; type SPI_Port (Periph : not null access Internal_SPI_Port) is limited new HAL.SPI.SPI_Port with private; type SPI_Data_Direction is (D2Lines_FullDuplex, D2Lines_RxOnly, D1Line_Rx, D1Line_Tx); type SPI_Mode is (Master, Slave); type SPI_CLock_Polarity is (High, Low); type SPI_CLock_Phase is (P1Edge, P2Edge); type SPI_Slave_Management is (Software_Managed, Hardware_Managed); type SPI_Slave_NSS is (External_NSS, Internal_NSS); type SPI_Baud_Rate_Prescaler is (BRP_2, BRP_4, BRP_8, BRP_16, BRP_32, BRP_64, BRP_128, BRP_256); type SPI_First_Bit is (MSB, LSB); type SPI_Configuration is record Direction : SPI_Data_Direction; Mode : SPI_Mode; Data_Size : HAL.SPI.SPI_Data_Size; Clock_Polarity : SPI_CLock_Polarity; Clock_Phase : SPI_CLock_Phase; Slave_Management : SPI_Slave_Management; Slave_Internal : SPI_Slave_NSS; Baud_Rate_Prescaler : SPI_Baud_Rate_Prescaler; First_Bit : SPI_First_Bit; CRC_Poly : UInt16; Transmit_DMA : Boolean; Receive_DMA : Boolean; Fifo_Level : Boolean; -- When RXNE assserts: 1 For 8bit, 0 for 16bit end record; procedure Configure (This : in out SPI_Port; Conf : SPI_Configuration); procedure Enable (This : in out SPI_Port); procedure Disable (This : in out SPI_Port); function Enabled (This : SPI_Port) return Boolean; procedure Send (This : in out SPI_Port; Data : UInt16); function Data (This : SPI_Port) return UInt16 with Inline; procedure Send (This : in out SPI_Port; Data : UInt8); function Data (This : SPI_Port) return UInt8 with Inline; function Is_Busy (This : SPI_Port) return Boolean with Inline; function Rx_Is_Empty (This : SPI_Port) return Boolean with Inline; function Tx_Is_Empty (This : SPI_Port) return Boolean with Inline; function Busy (This : SPI_Port) return Boolean with Inline; -- function Channel_Side_Indicated (This : SPI_Port) return Boolean -- with Inline; -- function Underrun_Indicated (This : SPI_Port) return Boolean -- with Inline; function CRC_Error_Indicated (This : SPI_Port) return Boolean with Inline; function Mode_Fault_Indicated (This : SPI_Port) return Boolean with Inline; function Overrun_Indicated (This : SPI_Port) return Boolean with Inline; function Frame_Fmt_Error_Indicated (This : SPI_Port) return Boolean with Inline; procedure Clear_Overrun (This : SPI_Port); procedure Reset_CRC (This : in out SPI_Port); function CRC_Enabled (This : SPI_Port) return Boolean; function Is_Data_Frame_16bit (This : SPI_Port) return Boolean; function Current_Mode (This : SPI_Port) return SPI_Mode; function Current_Data_Direction (This : SPI_Port) return SPI_Data_Direction; -- The following I/O routines implement the higher level functionality for -- CRC and data direction, among others. procedure Flush_Fifo (This : in out SPI_Port); type UInt8_Buffer is array (Natural range <>) of UInt8 with Alignment => 2; -- The alignment is set to 2 because we treat component pairs as half_word -- values when sending/receiving in 16-bit mode. -- Blocking overriding function Data_Size (This : SPI_Port) return HAL.SPI.SPI_Data_Size; overriding procedure Transmit (This : in out SPI_Port; Data : HAL.SPI.SPI_Data_8b; Status : out HAL.SPI.SPI_Status; Timeout : Natural := 1000); overriding procedure Transmit (This : in out SPI_Port; Data : HAL.SPI.SPI_Data_16b; Status : out HAL.SPI.SPI_Status; Timeout : Natural := 1000); procedure Transmit (This : in out SPI_Port; Outgoing : UInt8); overriding procedure Receive (This : in out SPI_Port; Data : out HAL.SPI.SPI_Data_8b; Status : out HAL.SPI.SPI_Status; Timeout : Natural := 1000); overriding procedure Receive (This : in out SPI_Port; Data : out HAL.SPI.SPI_Data_16b; Status : out HAL.SPI.SPI_Status; Timeout : Natural := 1000); overriding procedure Transmit_Receive (This : in out SPI_Port; Outgoing : HAL.SPI.SPI_Data_8b; Incoming : out HAL.SPI.SPI_Data_8b; Status : out HAL.SPI.SPI_Status; Timeout : Natural := 1000); procedure Receive (This : in out SPI_Port; Incoming : out UInt8); procedure Transmit_Receive (This : in out SPI_Port; Outgoing : UInt8_Buffer; Incoming : out UInt8_Buffer; Size : Positive); procedure Transmit_Receive (This : in out SPI_Port; Outgoing : UInt8; Incoming : out UInt8); -- TODO: add the other higher-level HAL routines for interrupts and DMA private type Internal_SPI_Port is new STM32_SVD.SPI.SPI_Peripheral; type SPI_Port (Periph : not null access Internal_SPI_Port) is limited new HAL.SPI.SPI_Port with null record; procedure Send_Receive_16bit_Mode (This : in out SPI_Port; Outgoing : UInt8_Buffer; Incoming : out UInt8_Buffer; Size : Positive); procedure Send_Receive_8bit_Mode (This : in out SPI_Port; Outgoing : UInt8_Buffer; Incoming : out UInt8_Buffer; Size : Positive); procedure Send_16bit_Mode (This : in out SPI_Port; Outgoing : HAL.SPI.SPI_Data_16b); procedure Send_8bit_Mode (This : in out SPI_Port; Outgoing : HAL.SPI.SPI_Data_8b); procedure Receive_16bit_Mode (This : in out SPI_Port; Incoming : out HAL.SPI.SPI_Data_16b); procedure Receive_8bit_Mode (This : in out SPI_Port; Incoming : out HAL.SPI.SPI_Data_8b); end STM32.SPI;
35.784615
83
0.586952
2ec7d20f1b29a132ca37e09e87f51b7738c91404
4,962
ads
Ada
tools/xml2ayacc/gramar_items-code.ads
faelys/gela-asis
48a3bee90eda9f0c9d958b4e3c80a5a9b1c65253
[ "BSD-3-Clause" ]
4
2016-02-05T15:51:56.000Z
2022-03-25T20:38:32.000Z
tools/xml2ayacc/gramar_items-code.ads
faelys/gela-asis
48a3bee90eda9f0c9d958b4e3c80a5a9b1c65253
[ "BSD-3-Clause" ]
null
null
null
tools/xml2ayacc/gramar_items-code.ads
faelys/gela-asis
48a3bee90eda9f0c9d958b4e3c80a5a9b1c65253
[ "BSD-3-Clause" ]
null
null
null
------------------------------------------------------------------------------ -- G E L A A S I S -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- - - - - - - - - - - - - - - - -- -- Read copyright and license at the end of this file -- ------------------------------------------------------------------------------ -- $Revision: 209 $ $Date: 2013-11-30 21:03:24 +0200 (Сб., 30 нояб. 2013) $ package Gramar_Items.Code is procedure Read_Code_File (Name : String); Not_Found : exception; function Node_Name (Rule_Name : String; Seq : Sequence) return String; function True_Node (Rule_Name : String; Seq : Sequence) return String; function False_Node (Rule_Name : String; Seq : Sequence) return String; function Pass_Throgh (Rule_Name : String; Seq : Sequence) return Boolean; function Inline_Option (Rule_Name : String; Seq : Sequence) return Boolean; function Infix (Rule_Name : String; Seq : Sequence) return String; function User_Wraps (Rule_Name : String; Seq : Sequence) return Natural; function User_Wrap_Node (Rule_Name : String; Seq : Sequence; Index : Positive) return String; function Wrap_Item_Name (Rule_Name : String; Seq : Sequence; Index : Positive) return String; function Wrap_Attr_Name (Rule_Name : String; Seq : Sequence; Index : Positive) return String; function Get_Use_Attr (Rule_Name : String; Seq : Sequence; Item_Name : String; Instance : Positive) return String; function Alternative_Node_Name (Rule_Name : String; Seq : Sequence; Item_Name : String) return String; function Trait_Name (Rule_Name : String; Seq : Sequence; Item_Name : String) return String; function Value (Rule_Name : String; Seq : Sequence; Item_Name : String) return String; function Created_Node_Name (Rule_Name : String; Seq : Sequence; Item_Name : String) return String; function Choise (Rule_Name : String; Seq : Sequence; Item_Name : String) return String; function Wrapper_Index (Rule_Name : String; Seq : Sequence; Item_Name : String; Instance : Positive) return Natural; function Wrapper_Index (Rule_Name : String; Seq : Sequence; Wrapper : Positive) return Natural; function Wrapper_Position (Rule_Name : String; Seq : Sequence; Wrapper : Positive) return String; function Wrapper_Instance (Rule_Name : String; Seq : Sequence; Wrapper : Positive) return Positive; function Conflict_Name (Rule_Name : String) return Boolean; function Skip_Rule (Rule_Name : String) return Boolean; end Gramar_Items.Code; ------------------------------------------------------------------------------ -- Copyright (c) 2006, Maxim Reznik -- 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 Maxim Reznik, 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 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. ------------------------------------------------------------------------------
33.755102
79
0.593108
5881695b6fd95d816a086644947b64f0dfe28d71
1,340
ads
Ada
tier-1/xcb/source/thin/xcb-xcb_get_property_cookie_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_get_property_cookie_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_get_property_cookie_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_get_property_cookie_t is -- Item -- type Item is record sequence : aliased Interfaces.C.unsigned; end record; -- Item_Array -- type Item_Array is array (Interfaces.C.size_t range <>) of aliased xcb.xcb_get_property_cookie_t .Item; -- Pointer -- package C_Pointers is new Interfaces.C.Pointers (Index => Interfaces.C.size_t, Element => xcb.xcb_get_property_cookie_t.Item, Element_Array => xcb.xcb_get_property_cookie_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_get_property_cookie_t .Pointer; -- Pointer_Pointer -- package C_Pointer_Pointers is new Interfaces.C.Pointers (Index => Interfaces.C.size_t, Element => xcb.xcb_get_property_cookie_t.Pointer, Element_Array => xcb.xcb_get_property_cookie_t.Pointer_Array, Default_Terminator => null); subtype Pointer_Pointer is C_Pointer_Pointers.Pointer; end xcb.xcb_get_property_cookie_t;
26.27451
78
0.670896
a0798cd5d75613879bbbb29f2b891c98c0cfcf8d
34,246
adb
Ada
tools-src/gnu/gcc/gcc/ada/sem_disp.adb
modern-tomato/tomato
96f09fab4929c6ddde5c9113f1b2476ad37133c4
[ "FSFAP" ]
80
2015-01-02T10:14:04.000Z
2021-06-07T06:29:49.000Z
tools-src/gnu/gcc/gcc/ada/sem_disp.adb
modern-tomato/tomato
96f09fab4929c6ddde5c9113f1b2476ad37133c4
[ "FSFAP" ]
9
2015-05-14T11:03:12.000Z
2018-01-04T07:12:58.000Z
tools-src/gnu/gcc/gcc/ada/sem_disp.adb
modern-tomato/tomato
96f09fab4929c6ddde5c9113f1b2476ad37133c4
[ "FSFAP" ]
69
2015-01-02T10:45:56.000Z
2021-09-06T07:52:13.000Z
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- S E M _ D I S P -- -- -- -- B o d y -- -- -- -- $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. -- -- -- ------------------------------------------------------------------------------ with Atree; use Atree; with Debug; use Debug; with Elists; use Elists; with Einfo; use Einfo; with Exp_Disp; use Exp_Disp; with Errout; use Errout; with Hostparm; use Hostparm; with Nlists; use Nlists; with Output; use Output; with Sem_Ch6; use Sem_Ch6; with Sem_Eval; use Sem_Eval; with Sem_Util; use Sem_Util; with Sinfo; use Sinfo; with Uintp; use Uintp; package body Sem_Disp is ----------------------- -- Local Subprograms -- ----------------------- procedure Override_Dispatching_Operation (Tagged_Type : Entity_Id; Prev_Op : Entity_Id; New_Op : Entity_Id); -- Replace an implicit dispatching operation with an explicit one. -- Prev_Op is an inherited primitive operation which is overridden -- by the explicit declaration of New_Op. procedure Add_Dispatching_Operation (Tagged_Type : Entity_Id; New_Op : Entity_Id); -- Add New_Op in the list of primitive operations of Tagged_Type function Check_Controlling_Type (T : Entity_Id; Subp : Entity_Id) return Entity_Id; -- T is the type of a formal parameter of subp. Returns the tagged -- if the parameter can be a controlling argument, empty otherwise -------------------------------- -- Add_Dispatching_Operation -- -------------------------------- procedure Add_Dispatching_Operation (Tagged_Type : Entity_Id; New_Op : Entity_Id) is List : constant Elist_Id := Primitive_Operations (Tagged_Type); begin Append_Elmt (New_Op, List); end Add_Dispatching_Operation; ------------------------------- -- Check_Controlling_Formals -- ------------------------------- procedure Check_Controlling_Formals (Typ : Entity_Id; Subp : Entity_Id) is Formal : Entity_Id; Ctrl_Type : Entity_Id; Remote : constant Boolean := Is_Remote_Types (Current_Scope) and then Comes_From_Source (Subp) and then Scope (Typ) = Current_Scope; begin Formal := First_Formal (Subp); while Present (Formal) loop Ctrl_Type := Check_Controlling_Type (Etype (Formal), Subp); if Present (Ctrl_Type) then if Ctrl_Type = Typ then Set_Is_Controlling_Formal (Formal); -- Check that the parameter's nominal subtype statically -- matches the first subtype. if Ekind (Etype (Formal)) = E_Anonymous_Access_Type then if not Subtypes_Statically_Match (Typ, Designated_Type (Etype (Formal))) then Error_Msg_N ("parameter subtype does not match controlling type", Formal); end if; elsif not Subtypes_Statically_Match (Typ, Etype (Formal)) then Error_Msg_N ("parameter subtype does not match controlling type", Formal); end if; if Present (Default_Value (Formal)) then if Ekind (Etype (Formal)) = E_Anonymous_Access_Type then Error_Msg_N ("default not allowed for controlling access parameter", Default_Value (Formal)); elsif not Is_Tag_Indeterminate (Default_Value (Formal)) then Error_Msg_N ("default expression must be a tag indeterminate" & " function call", Default_Value (Formal)); end if; end if; elsif Comes_From_Source (Subp) then Error_Msg_N ("operation can be dispatching in only one type", Subp); end if; -- Verify that the restriction in E.2.2 (1) is obeyed. elsif Remote and then Ekind (Etype (Formal)) = E_Anonymous_Access_Type then Error_Msg_N ("Access parameter of a remote subprogram must be controlling", Formal); end if; Next_Formal (Formal); end loop; if Present (Etype (Subp)) then Ctrl_Type := Check_Controlling_Type (Etype (Subp), Subp); if Present (Ctrl_Type) then if Ctrl_Type = Typ then Set_Has_Controlling_Result (Subp); -- Check that the result subtype statically matches -- the first subtype. if not Subtypes_Statically_Match (Typ, Etype (Subp)) then Error_Msg_N ("result subtype does not match controlling type", Subp); end if; elsif Comes_From_Source (Subp) then Error_Msg_N ("operation can be dispatching in only one type", Subp); end if; -- The following check is clearly required, although the RM says -- nothing about return types. If the return type is a limited -- class-wide type declared in the current scope, there is no way -- to declare stream procedures for it, so the return cannot be -- marshalled. elsif Remote and then Is_Limited_Type (Typ) and then Etype (Subp) = Class_Wide_Type (Typ) then Error_Msg_N ("return type has no stream attributes", Subp); end if; end if; end Check_Controlling_Formals; ---------------------------- -- Check_Controlling_Type -- ---------------------------- function Check_Controlling_Type (T : Entity_Id; Subp : Entity_Id) return Entity_Id is Tagged_Type : Entity_Id := Empty; begin if Is_Tagged_Type (T) then if Is_First_Subtype (T) then Tagged_Type := T; else Tagged_Type := Base_Type (T); end if; elsif Ekind (T) = E_Anonymous_Access_Type and then Is_Tagged_Type (Designated_Type (T)) and then Ekind (Designated_Type (T)) /= E_Incomplete_Type then if Is_First_Subtype (Designated_Type (T)) then Tagged_Type := Designated_Type (T); else Tagged_Type := Base_Type (Designated_Type (T)); end if; end if; if No (Tagged_Type) or else Is_Class_Wide_Type (Tagged_Type) then return Empty; -- The dispatching type and the primitive operation must be defined -- in the same scope except for internal operations. elsif (Scope (Subp) = Scope (Tagged_Type) or else Is_Internal (Subp)) and then (not Is_Generic_Type (Tagged_Type) or else not Comes_From_Source (Subp)) then return Tagged_Type; else return Empty; end if; end Check_Controlling_Type; ---------------------------- -- Check_Dispatching_Call -- ---------------------------- procedure Check_Dispatching_Call (N : Node_Id) is Actual : Node_Id; Control : Node_Id := Empty; Func : Entity_Id; procedure Check_Dispatching_Context; -- If the call is tag-indeterminate and the entity being called is -- abstract, verify that the context is a call that will eventually -- provide a tag for dispatching, or has provided one already. ------------------------------- -- Check_Dispatching_Context -- ------------------------------- procedure Check_Dispatching_Context is Func : constant Entity_Id := Entity (Name (N)); Par : Node_Id; begin if Is_Abstract (Func) and then No (Controlling_Argument (N)) then Par := Parent (N); while Present (Par) loop if Nkind (Par) = N_Function_Call or else Nkind (Par) = N_Procedure_Call_Statement or else Nkind (Par) = N_Assignment_Statement or else Nkind (Par) = N_Op_Eq or else Nkind (Par) = N_Op_Ne then return; elsif Nkind (Par) = N_Qualified_Expression or else Nkind (Par) = N_Unchecked_Type_Conversion then Par := Parent (Par); else Error_Msg_N ("call to abstract function must be dispatching", N); return; end if; end loop; end if; end Check_Dispatching_Context; -- Start of processing for Check_Dispatching_Call begin -- Find a controlling argument, if any if Present (Parameter_Associations (N)) then Actual := First_Actual (N); while Present (Actual) loop Control := Find_Controlling_Arg (Actual); exit when Present (Control); Next_Actual (Actual); end loop; if Present (Control) then -- Verify that no controlling arguments are statically tagged if Debug_Flag_E then Write_Str ("Found Dispatching call"); Write_Int (Int (N)); Write_Eol; end if; Actual := First_Actual (N); while Present (Actual) loop if Actual /= Control then if not Is_Controlling_Actual (Actual) then null; -- can be anything elsif (Is_Dynamically_Tagged (Actual)) then null; -- valid parameter elsif Is_Tag_Indeterminate (Actual) then -- The tag is inherited from the enclosing call (the -- node we are currently analyzing). Explicitly expand -- the actual, since the previous call to Expand -- (from Resolve_Call) had no way of knowing about -- the required dispatching. Propagate_Tag (Control, Actual); else Error_Msg_N ("controlling argument is not dynamically tagged", Actual); return; end if; end if; Next_Actual (Actual); end loop; -- Mark call as a dispatching call Set_Controlling_Argument (N, Control); else -- The call is not dispatching, check that there isn't any -- tag indeterminate abstract call left Actual := First_Actual (N); while Present (Actual) loop if Is_Tag_Indeterminate (Actual) then -- Function call case if Nkind (Original_Node (Actual)) = N_Function_Call then Func := Entity (Name (Original_Node (Actual))); -- Only other possibility is a qualified expression whose -- consituent expression is itself a call. else Func := Entity (Name (Original_Node (Expression (Original_Node (Actual))))); end if; if Is_Abstract (Func) then Error_Msg_N ( "call to abstract function must be dispatching", N); end if; end if; Next_Actual (Actual); end loop; Check_Dispatching_Context; end if; else -- If dispatching on result, the enclosing call, if any, will -- determine the controlling argument. Otherwise this is the -- primitive operation of the root type. Check_Dispatching_Context; end if; end Check_Dispatching_Call; --------------------------------- -- Check_Dispatching_Operation -- --------------------------------- procedure Check_Dispatching_Operation (Subp, Old_Subp : Entity_Id) is Tagged_Seen : Entity_Id; Has_Dispatching_Parent : Boolean := False; Body_Is_Last_Primitive : Boolean := False; begin if Ekind (Subp) /= E_Procedure and then Ekind (Subp) /= E_Function then return; end if; Set_Is_Dispatching_Operation (Subp, False); Tagged_Seen := Find_Dispatching_Type (Subp); -- If Subp is derived from a dispatching operation then it should -- always be treated as dispatching. In this case various checks -- below will be bypassed. Makes sure that late declarations for -- inherited private subprograms are treated as dispatching, even -- if the associated tagged type is already frozen. Has_Dispatching_Parent := Present (Alias (Subp)) and then Is_Dispatching_Operation (Alias (Subp)); if No (Tagged_Seen) then return; -- The subprograms build internally after the freezing point (such as -- the Init procedure) are not primitives elsif Is_Frozen (Tagged_Seen) and then not Comes_From_Source (Subp) and then not Has_Dispatching_Parent then return; -- The operation may be a child unit, whose scope is the defining -- package, but which is not a primitive operation of the type. elsif Is_Child_Unit (Subp) then return; -- If the subprogram is not defined in a package spec, the only case -- where it can be a dispatching op is when it overrides an operation -- before the freezing point of the type. elsif ((not Is_Package (Scope (Subp))) or else In_Package_Body (Scope (Subp))) and then not Has_Dispatching_Parent then if not Comes_From_Source (Subp) or else (Present (Old_Subp) and then not Is_Frozen (Tagged_Seen)) then null; -- If the type is already frozen, the overriding is not allowed -- except when Old_Subp is not a dispatching operation (which -- can occur when Old_Subp was inherited by an untagged type). -- However, a body with no previous spec freezes the type "after" -- its declaration, and therefore is a legal overriding (unless -- the type has already been frozen). Only the first such body -- is legal. elsif Present (Old_Subp) and then Is_Dispatching_Operation (Old_Subp) then if Nkind (Unit_Declaration_Node (Subp)) = N_Subprogram_Body and then Comes_From_Source (Subp) then declare Subp_Body : constant Node_Id := Unit_Declaration_Node (Subp); Decl_Item : Node_Id := Next (Parent (Tagged_Seen)); begin -- ??? The checks here for whether the type has been -- frozen prior to the new body are not complete. It's -- not simple to check frozenness at this point since -- the body has already caused the type to be prematurely -- frozen in Analyze_Declarations, but we're forced to -- recheck this here because of the odd rule interpretation -- that allows the overriding if the type wasn't frozen -- prior to the body. The freezing action should probably -- be delayed until after the spec is seen, but that's -- a tricky change to the delicate freezing code. -- Look at each declaration following the type up -- until the new subprogram body. If any of the -- declarations is a body then the type has been -- frozen already so the overriding primitive is -- illegal. while Present (Decl_Item) and then (Decl_Item /= Subp_Body) loop if Comes_From_Source (Decl_Item) and then (Nkind (Decl_Item) in N_Proper_Body or else Nkind (Decl_Item) in N_Body_Stub) then Error_Msg_N ("overriding of& is too late!", Subp); Error_Msg_N ("\spec should appear immediately after the type!", Subp); exit; end if; Next (Decl_Item); end loop; -- If the subprogram doesn't follow in the list of -- declarations including the type then the type -- has definitely been frozen already and the body -- is illegal. if not Present (Decl_Item) then Error_Msg_N ("overriding of& is too late!", Subp); Error_Msg_N ("\spec should appear immediately after the type!", Subp); elsif Is_Frozen (Subp) then -- the subprogram body declares a primitive operation. -- if the subprogram is already frozen, we must update -- its dispatching information explicitly here. The -- information is taken from the overridden subprogram. Body_Is_Last_Primitive := True; if Present (DTC_Entity (Old_Subp)) then Set_DTC_Entity (Subp, DTC_Entity (Old_Subp)); Set_DT_Position (Subp, DT_Position (Old_Subp)); Insert_After ( Subp_Body, Fill_DT_Entry (Sloc (Subp_Body), Subp)); end if; end if; end; else Error_Msg_N ("overriding of& is too late!", Subp); Error_Msg_N ("\subprogram spec should appear immediately after the type!", Subp); end if; -- If the type is not frozen yet and we are not in the overridding -- case it looks suspiciously like an attempt to define a primitive -- operation. elsif not Is_Frozen (Tagged_Seen) then Error_Msg_N ("?not dispatching (must be defined in a package spec)", Subp); return; -- When the type is frozen, it is legitimate to define a new -- non-primitive operation. else return; end if; -- Now, we are sure that the scope is a package spec. If the subprogram -- is declared after the freezing point ot the type that's an error elsif Is_Frozen (Tagged_Seen) and then not Has_Dispatching_Parent then Error_Msg_N ("this primitive operation is declared too late", Subp); Error_Msg_NE ("?no primitive operations for& after this line", Freeze_Node (Tagged_Seen), Tagged_Seen); return; end if; Check_Controlling_Formals (Tagged_Seen, Subp); -- Now it should be a correct primitive operation, put it in the list if Present (Old_Subp) then Check_Subtype_Conformant (Subp, Old_Subp); Override_Dispatching_Operation (Tagged_Seen, Old_Subp, Subp); else Add_Dispatching_Operation (Tagged_Seen, Subp); end if; Set_Is_Dispatching_Operation (Subp, True); if not Body_Is_Last_Primitive then Set_DT_Position (Subp, No_Uint); end if; end Check_Dispatching_Operation; ------------------------------------------ -- Check_Operation_From_Incomplete_Type -- ------------------------------------------ procedure Check_Operation_From_Incomplete_Type (Subp : Entity_Id; Typ : Entity_Id) is Full : constant Entity_Id := Full_View (Typ); Parent_Typ : constant Entity_Id := Etype (Full); Old_Prim : constant Elist_Id := Primitive_Operations (Parent_Typ); New_Prim : constant Elist_Id := Primitive_Operations (Full); Op1, Op2 : Elmt_Id; Prev : Elmt_Id := No_Elmt; function Derives_From (Proc : Entity_Id) return Boolean; -- Check that Subp has the signature of an operation derived from Proc. -- Subp has an access parameter that designates Typ. ------------------ -- Derives_From -- ------------------ function Derives_From (Proc : Entity_Id) return Boolean is F1, F2 : Entity_Id; begin if Chars (Proc) /= Chars (Subp) then return False; end if; F1 := First_Formal (Proc); F2 := First_Formal (Subp); while Present (F1) and then Present (F2) loop if Ekind (Etype (F1)) = E_Anonymous_Access_Type then if Ekind (Etype (F2)) /= E_Anonymous_Access_Type then return False; elsif Designated_Type (Etype (F1)) = Parent_Typ and then Designated_Type (Etype (F2)) /= Full then return False; end if; elsif Ekind (Etype (F2)) = E_Anonymous_Access_Type then return False; elsif Etype (F1) /= Etype (F2) then return False; end if; Next_Formal (F1); Next_Formal (F2); end loop; return No (F1) and then No (F2); end Derives_From; -- Start of processing for Check_Operation_From_Incomplete_Type begin -- The operation may override an inherited one, or may be a new one -- altogether. The inherited operation will have been hidden by the -- current one at the point of the type derivation, so it does not -- appear in the list of primitive operations of the type. We have to -- find the proper place of insertion in the list of primitive opera- -- tions by iterating over the list for the parent type. Op1 := First_Elmt (Old_Prim); Op2 := First_Elmt (New_Prim); while Present (Op1) and then Present (Op2) loop if Derives_From (Node (Op1)) then if No (Prev) then Prepend_Elmt (Subp, New_Prim); else Insert_Elmt_After (Subp, Prev); end if; return; end if; Prev := Op2; Next_Elmt (Op1); Next_Elmt (Op2); end loop; -- Operation is a new primitive. Append_Elmt (Subp, New_Prim); end Check_Operation_From_Incomplete_Type; --------------------------------------- -- Check_Operation_From_Private_View -- --------------------------------------- procedure Check_Operation_From_Private_View (Subp, Old_Subp : Entity_Id) is Tagged_Type : Entity_Id; begin if Is_Dispatching_Operation (Alias (Subp)) then Set_Scope (Subp, Current_Scope); Tagged_Type := Find_Dispatching_Type (Subp); if Present (Tagged_Type) and then Is_Tagged_Type (Tagged_Type) then Append_Elmt (Old_Subp, Primitive_Operations (Tagged_Type)); -- If Old_Subp isn't already marked as dispatching then -- this is the case of an operation of an untagged private -- type fulfilled by a tagged type that overrides an -- inherited dispatching operation, so we set the necessary -- dispatching attributes here. if not Is_Dispatching_Operation (Old_Subp) then Check_Controlling_Formals (Tagged_Type, Old_Subp); Set_Is_Dispatching_Operation (Old_Subp, True); Set_DT_Position (Old_Subp, No_Uint); end if; -- If the old subprogram is an explicit renaming of some other -- entity, it is not overridden by the inherited subprogram. -- Otherwise, update its alias and other attributes. if Present (Alias (Old_Subp)) and then Nkind (Unit_Declaration_Node (Old_Subp)) /= N_Subprogram_Renaming_Declaration then Set_Alias (Old_Subp, Alias (Subp)); -- The derived subprogram should inherit the abstractness -- of the parent subprogram (except in the case of a function -- returning the type). This sets the abstractness properly -- for cases where a private extension may have inherited -- an abstract operation, but the full type is derived from -- a descendant type and inherits a nonabstract version. if Etype (Subp) /= Tagged_Type then Set_Is_Abstract (Old_Subp, Is_Abstract (Alias (Subp))); end if; end if; end if; end if; end Check_Operation_From_Private_View; -------------------------- -- Find_Controlling_Arg -- -------------------------- function Find_Controlling_Arg (N : Node_Id) return Node_Id is Orig_Node : constant Node_Id := Original_Node (N); Typ : Entity_Id; begin if Nkind (Orig_Node) = N_Qualified_Expression then return Find_Controlling_Arg (Expression (Orig_Node)); end if; -- Dispatching on result case if Nkind (Orig_Node) = N_Function_Call and then Present (Controlling_Argument (Orig_Node)) and then Has_Controlling_Result (Entity (Name (Orig_Node))) then return Controlling_Argument (Orig_Node); -- Normal case elsif Is_Controlling_Actual (N) then Typ := Etype (N); if Is_Access_Type (Typ) then -- In the case of an Access attribute, use the type of -- the prefix, since in the case of an actual for an -- access parameter, the attribute's type may be of a -- specific designated type, even though the prefix -- type is class-wide. if Nkind (N) = N_Attribute_Reference then Typ := Etype (Prefix (N)); else Typ := Designated_Type (Typ); end if; end if; if Is_Class_Wide_Type (Typ) then return N; end if; end if; return Empty; end Find_Controlling_Arg; --------------------------- -- Find_Dispatching_Type -- --------------------------- function Find_Dispatching_Type (Subp : Entity_Id) return Entity_Id is Formal : Entity_Id; Ctrl_Type : Entity_Id; begin if Present (DTC_Entity (Subp)) then return Scope (DTC_Entity (Subp)); else Formal := First_Formal (Subp); while Present (Formal) loop Ctrl_Type := Check_Controlling_Type (Etype (Formal), Subp); if Present (Ctrl_Type) then return Ctrl_Type; end if; Next_Formal (Formal); end loop; -- The subprogram may also be dispatching on result if Present (Etype (Subp)) then Ctrl_Type := Check_Controlling_Type (Etype (Subp), Subp); if Present (Ctrl_Type) then return Ctrl_Type; end if; end if; end if; return Empty; end Find_Dispatching_Type; --------------------------- -- Is_Dynamically_Tagged -- --------------------------- function Is_Dynamically_Tagged (N : Node_Id) return Boolean is begin return Find_Controlling_Arg (N) /= Empty; end Is_Dynamically_Tagged; -------------------------- -- Is_Tag_Indeterminate -- -------------------------- function Is_Tag_Indeterminate (N : Node_Id) return Boolean is Nam : Entity_Id; Actual : Node_Id; Orig_Node : constant Node_Id := Original_Node (N); begin if Nkind (Orig_Node) = N_Function_Call and then Is_Entity_Name (Name (Orig_Node)) then Nam := Entity (Name (Orig_Node)); if not Has_Controlling_Result (Nam) then return False; -- If there are no actuals, the call is tag-indeterminate elsif No (Parameter_Associations (Orig_Node)) then return True; else Actual := First_Actual (Orig_Node); while Present (Actual) loop if Is_Controlling_Actual (Actual) and then not Is_Tag_Indeterminate (Actual) then return False; -- one operand is dispatching end if; Next_Actual (Actual); end loop; return True; end if; elsif Nkind (Orig_Node) = N_Qualified_Expression then return Is_Tag_Indeterminate (Expression (Orig_Node)); else return False; end if; end Is_Tag_Indeterminate; ------------------------------------ -- Override_Dispatching_Operation -- ------------------------------------ procedure Override_Dispatching_Operation (Tagged_Type : Entity_Id; Prev_Op : Entity_Id; New_Op : Entity_Id) is Op_Elmt : Elmt_Id := First_Elmt (Primitive_Operations (Tagged_Type)); begin -- Patch the primitive operation list while Present (Op_Elmt) and then Node (Op_Elmt) /= Prev_Op loop Next_Elmt (Op_Elmt); end loop; -- If there is no previous operation to override, the type declaration -- was malformed, and an error must have been emitted already. if No (Op_Elmt) then return; end if; Replace_Elmt (Op_Elmt, New_Op); if (not Is_Package (Current_Scope)) or else not In_Private_Part (Current_Scope) then -- Not a private primitive null; else pragma Assert (Is_Inherited_Operation (Prev_Op)); -- Make the overriding operation into an alias of the implicit one. -- In this fashion a call from outside ends up calling the new -- body even if non-dispatching, and a call from inside calls the -- overriding operation because it hides the implicit one. -- To indicate that the body of Prev_Op is never called, set its -- dispatch table entity to Empty. Set_Alias (Prev_Op, New_Op); Set_DTC_Entity (Prev_Op, Empty); return; end if; end Override_Dispatching_Operation; ------------------- -- Propagate_Tag -- ------------------- procedure Propagate_Tag (Control : Node_Id; Actual : Node_Id) is Call_Node : Node_Id; Arg : Node_Id; begin if Nkind (Actual) = N_Function_Call then Call_Node := Actual; elsif Nkind (Actual) = N_Identifier and then Nkind (Original_Node (Actual)) = N_Function_Call then -- Call rewritten as object declaration when stack-checking -- is enabled. Propagate tag to expression in declaration, which -- is original call. Call_Node := Expression (Parent (Entity (Actual))); -- Only other possibility is parenthesized or qualified expression else Call_Node := Expression (Actual); end if; -- Do not set the Controlling_Argument if already set. This happens -- in the special case of _Input (see Exp_Attr, case Input). if No (Controlling_Argument (Call_Node)) then Set_Controlling_Argument (Call_Node, Control); end if; Arg := First_Actual (Call_Node); while Present (Arg) loop if Is_Tag_Indeterminate (Arg) then Propagate_Tag (Control, Arg); end if; Next_Actual (Arg); end loop; -- Expansion of dispatching calls is suppressed when Java_VM, because -- the JVM back end directly handles the generation of dispatching -- calls and would have to undo any expansion to an indirect call. if not Java_VM then Expand_Dispatch_Call (Call_Node); end if; end Propagate_Tag; end Sem_Disp;
34.487412
79
0.544764
a0550551fa19bc1eaba66431ce519c65262a5e22
7,371
ads
Ada
src/security-openid.ads
Letractively/ada-security
027501979a0a154cd5c90d53e601a2ab06336529
[ "Apache-2.0" ]
null
null
null
src/security-openid.ads
Letractively/ada-security
027501979a0a154cd5c90d53e601a2ab06336529
[ "Apache-2.0" ]
null
null
null
src/security-openid.ads
Letractively/ada-security
027501979a0a154cd5c90d53e601a2ab06336529
[ "Apache-2.0" ]
null
null
null
----------------------------------------------------------------------- -- security-openid -- OpenID 2.0 Support -- Copyright (C) 2009, 2010, 2011, 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.Strings.Unbounded; with Ada.Calendar; with Ada.Finalization; with Security.Auth; -- == OpenID == -- The <b>Security.OpenID</b> package implements an authentication framework based -- on OpenID 2.0. -- -- See OpenID Authentication 2.0 - Final -- http://openid.net/specs/openid-authentication-2_0.html -- -- There are basically two steps that an application must implement: -- -- * <b>Discovery</b>: to resolve and use the OpenID provider and redirect the user to the -- provider authentication form. -- * <b>Verify</b>: to decode the authentication and check its result. -- -- [http://ada-security.googlecode.com/svn/wiki/OpenID.png] -- -- The authentication process is the following: -- -- * The application should redirect the user to the authentication URL. -- * The OpenID provider authenticate the user and redirects the user to the callback CB. -- * The association is decoded from the callback parameter. -- * The <b>Verify</b> procedure is called with the association to check the result and -- obtain the authentication results. -- -- === Initialization === -- The initialization process must be done before each two steps (discovery and verify). -- The OpenID manager must be declared and configured. -- -- Mgr : Security.OpenID.Manager; -- -- For the configuration, the <b>Initialize</b> procedure is called to configure -- the OpenID realm and set the OpenID return callback URL. The return callback -- must be a valid URL that is based on the realm. Example: -- -- Mgr.Initialize (Name => "http://app.site.com/auth", -- Return_To => "http://app.site.com/auth/verify"); -- -- After this initialization, the OpenID manager can be used in the authentication process. -- -- === Discovery: creating the authentication URL === -- The first step is to create an authentication URL to which the user must be redirected. -- In this step, we have to create an OpenID manager, discover the OpenID provider, -- do the association and get an <b>End_Point</b>. The OpenID provider is specified as an -- URL, below is an example for Google OpenID: -- -- Provider : constant String := "https://www.google.com/accounts/o8/id"; -- OP : Security.OpenID.End_Point; -- Assoc : constant Security.OpenID.Association_Access := new Security.OpenID.Association; -- -- The following steps are performed: -- -- * The <b>Discover</b> procedure is called to retrieve from the OpenID provider the XRDS -- stream and identify the provider. An <b>End_Point</b> is returned in <tt>OP</tt>. -- * The <b>Associate</b> procedure is called to make the association with the <b>End_Point</b>. -- The <b>Association</b> record holds session, and authentication. -- -- Mgr.Discover (Provider, OP); -- Yadis discovery (get the XRDS file). -- Mgr.Associate (OP, Assoc.all);-- Associate and get an end-point with a key. -- -- After this first step, you must manage to save the association in the HTTP session. -- Then you must redirect to the authentication URL that is obtained by using: -- -- Auth_URL : constant String := Mgr.Get_Authentication_URL (OP, Assoc.all); -- -- === Verify: acknowledge the authentication in the callback URL === -- The second step is done when the user has finished the authentication successfully or not. -- For this step, the application must get back the association that was saved in the session. -- It must also prepare a parameters object that allows the OpenID framework to get the -- URI parameters from the return callback. -- -- Assoc : Association_Access := ...; -- Get the association saved in the session. -- Auth : OpenID.Authentication; -- Params : Auth_Params; -- -- The OpenID manager must be initialized and the <b>Verify</b> procedure is called with -- the association, parameters and the authentication result. The <b>Get_Status</b> function -- must be used to check that the authentication succeeded. -- -- Mgr.Verify (Assoc.all, Params, Auth); -- if Security.OpenID.Get_Status (Auth) = Security.OpenID.AUTHENTICATED then ... -- Success. -- -- === Principal creation === -- After the user is successfully authenticated, a user principal can be created and saved in -- the session. The user principal can then be used to assign permissions to that user and -- enforce the application permissions using the security policy manger. -- -- P : Security.OpenID.Principal_Access := Security.OpenID.Create_Principal (Auth); -- package Security.OpenID is pragma Obsolescent ("Use the Security.Auth package instead"); Invalid_End_Point : exception; Service_Error : exception; subtype Parameters is Security.Auth.Parameters; -- ------------------------------ -- OpenID provider -- ------------------------------ -- The <b>End_Point</b> represents the OpenID provider that will authenticate -- the user. subtype End_Point is Security.Auth.End_Point; -- ------------------------------ -- Association -- ------------------------------ -- The OpenID association contains the shared secret between the relying party -- and the OpenID provider. The association can be cached and reused to authenticate -- different users using the same OpenID provider. The association also has an -- expiration date. subtype Association is Security.Auth.End_Point; subtype Auth_Result is Security.Auth.Auth_Result; -- ------------------------------ -- OpenID provider -- ------------------------------ -- subtype Authentication is Security.Auth.Authentication; -- ------------------------------ -- OpenID Default principal -- ------------------------------ subtype Principal is Security.Auth.Principal; subtype Principal_Access is Security.Auth.Principal_Access; -- ------------------------------ -- OpenID Manager -- ------------------------------ -- The <b>Manager</b> provides the core operations for the OpenID process. subtype Manager is Security.Auth.Manager; -- Initialize the OpenID realm. procedure Initialize (Realm : in out Manager; Name : in String; Return_To : in String); private use Ada.Strings.Unbounded; -- -- type Manager is new Ada.Finalization.Limited_Controlled with record -- Realm : Unbounded_String; -- Return_To : Unbounded_String; -- end record; end Security.OpenID;
42.854651
99
0.657441
3855a9e6a0ce32388fd00b45293699960a4a1952
5,261
ads
Ada
src/asis/asis-text-set_get.ads
jquorning/dynamo
10d68571476c270b8e45a9c5ef585fa9139b0d05
[ "Apache-2.0" ]
15
2015-01-18T23:04:19.000Z
2022-03-01T20:27:08.000Z
src/asis/asis-text-set_get.ads
jquorning/dynamo
10d68571476c270b8e45a9c5ef585fa9139b0d05
[ "Apache-2.0" ]
16
2018-06-10T07:09:30.000Z
2022-03-26T18:28:40.000Z
src/asis/asis-text-set_get.ads
jquorning/dynamo
10d68571476c270b8e45a9c5ef585fa9139b0d05
[ "Apache-2.0" ]
3
2015-11-11T18:00:14.000Z
2022-01-30T23:08:45.000Z
------------------------------------------------------------------------------ -- -- -- ASIS-for-GNAT IMPLEMENTATION COMPONENTS -- -- -- -- A S I S . T E X T . S E T _ G E T -- -- -- -- S p e c -- -- -- -- Copyright (c) 1995-2006, Free Software Foundation, Inc. -- -- -- -- ASIS-for-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 -- -- Software Foundation; either version 2, or (at your option) any later -- -- version. ASIS-for-GNAT is distributed in the hope that it will be use- -- -- ful, but WITHOUT ANY WARRANTY; without even the implied warranty of MER- -- -- CHANTABILITY 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 ASIS-for-GNAT; see file -- -- COPYING. If not, write to the Free Software Foundation, 51 Franklin -- -- Street, Fifth Floor, Boston, MA 02110-1301, USA. -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- ASIS-for-GNAT was originally developed by the ASIS-for-GNAT team at the -- -- Software Engineering Laboratory of the Swiss Federal Institute of -- -- Technology (LGL-EPFL) in Lausanne, Switzerland, in cooperation with the -- -- Scientific Research Computer Center of Moscow State University (SRCC -- -- MSU), Russia, with funding partially provided by grants from the Swiss -- -- National Science Foundation and the Swiss Academy of Engineering -- -- Sciences. ASIS-for-GNAT is now maintained by AdaCore -- -- (http://www.adacore.com). -- -- -- ------------------------------------------------------------------------------ package Asis.Text.Set_Get is --------- -- Get -- --------- function Line_Length (L : Line) return Character_Position; -- Returns line length. Note, that this is the length in the original -- source, counted in wide characters, but not the length in the internal -- representation counted in one-byte characters function Line_Location (L : Line) return Source_Ptr; -- when Line Location is obtained, the tree is resetted if needed function Valid (L : Line) return Boolean; -- chechs, if the argument is valid, that is, if the Context -- from which this line was obtained is still opened function Line_Wide_Image (L : Line) return Wide_String; -- Returns the line image as the line is represented in the original -- source text function Debug_Image (The_Span : Span) return String; -- Produces the debug output for its argument --------- -- Set -- --------- procedure Set_Line_Length (L : in out Line; N : Character_Position); procedure Set_Line_Location (L : in out Line; S : Source_Ptr); -- this procedure is intended to correct the Sloc field in -- the first line from a line list covering a given Span. -- This means, that all the fields of the Line to be corrected -- have been already set as pointing to the beginning of -- a given line. Together with setting the Sloc field, this -- procedure adjust the Rel_Sloc field. procedure Set_Lines (LList : in out Line_List; El : Element); -- This procedure creates LList as a list of lines -- accessable through El. It gets LList as a list -- of Nil_Lines and makes the proper settings for -- the components of each line, making them non-nil -- It takes all the characteristics of these lines from El, -- that is, from the tree on which El is based. This is -- "tree-swapping-safe" procedure. -- The only call to this procedure is in the third -- Asis.Text.Lines function, which explicitly specifies -- the bounds of the Line_List to be returned (that is, LList). -- The caller makes all the checks needed to make sure, that -- the compilation enclosing El really contains lines with numbers -- LList'First and LList'Last end Asis.Text.Set_Get;
56.569892
78
0.495723
a071461cb02ec3b79c11fc755db25613816344bc
1,663
adb
Ada
src/offmt_lib-detection.adb
Fabien-Chouteau/offmt-tool
04bdc685ea4cb9985dadcdc1d408880aa0b08651
[ "MIT" ]
null
null
null
src/offmt_lib-detection.adb
Fabien-Chouteau/offmt-tool
04bdc685ea4cb9985dadcdc1d408880aa0b08651
[ "MIT" ]
null
null
null
src/offmt_lib-detection.adb
Fabien-Chouteau/offmt-tool
04bdc685ea4cb9985dadcdc1d408880aa0b08651
[ "MIT" ]
null
null
null
with Ada.Text_IO; use Ada.Text_IO; with Ada.Characters.Conversions; use Ada.Characters.Conversions; with Langkit_Support.Text; package body Offmt_Lib.Detection is -------------------------- -- Check_Defmt_Log_Call -- -------------------------- function Check_Defmt_Log_Call (Node : LAL.Call_Stmt'Class; Call : out LAL.Call_Expr) return Boolean is begin Put_Line ("Node.Image: " & Node.Image); Put_Line ("Node.Children_Count: " & Node.Children_Count'Img); if Node.Children_Count /= 1 then return False; end if; Call := Node.Child (1).As_Call_Expr; declare S : constant LAL.Ada_Node := Call.F_Suffix; Designated_Type : constant LAL.Base_Type_Decl := Call.F_Name.P_Name_Designated_Type; begin if not Designated_Type.Is_Null or else not Call.P_Is_Direct_Call or else S.Is_Null or else S.Children_Count /= 1 then return False; end if; declare use Langkit_Support.Text; Spec : constant LAL.Subp_Spec := Call.P_Called_Subp_Spec.As_Subp_Spec; Decl : constant LAL.Basic_Decl := Spec.P_Parent_Basic_Decl; Txt : constant Text_Type := Decl.P_Fully_Qualified_Name; Str : constant String := Image (Txt); begin Put_Line ("Fully qualified name: '" & Str & "'"); return Str = To_String (Offmt_Lib.Log_Root_Pkg) & ".Log"; end; end; end Check_Defmt_Log_Call; end Offmt_Lib.Detection;
29.175439
71
0.567649
a05ec0f5c61d8f65fafd50ae238a23bf80744379
2,987
ads
Ada
source/oasis/program-elements-generic_procedure_declarations.ads
optikos/oasis
9f64d46d26d964790d69f9db681c874cfb3bf96d
[ "MIT" ]
null
null
null
source/oasis/program-elements-generic_procedure_declarations.ads
optikos/oasis
9f64d46d26d964790d69f9db681c874cfb3bf96d
[ "MIT" ]
null
null
null
source/oasis/program-elements-generic_procedure_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.Declarations; with Program.Lexical_Elements; with Program.Element_Vectors; with Program.Elements.Defining_Names; with Program.Elements.Parameter_Specifications; with Program.Elements.Aspect_Specifications; package Program.Elements.Generic_Procedure_Declarations is pragma Pure (Program.Elements.Generic_Procedure_Declarations); type Generic_Procedure_Declaration is limited interface and Program.Elements.Declarations.Declaration; type Generic_Procedure_Declaration_Access is access all Generic_Procedure_Declaration'Class with Storage_Size => 0; not overriding function Formal_Parameters (Self : Generic_Procedure_Declaration) return Program.Element_Vectors.Element_Vector_Access is abstract; not overriding function Name (Self : Generic_Procedure_Declaration) return not null Program.Elements.Defining_Names.Defining_Name_Access is abstract; not overriding function Parameters (Self : Generic_Procedure_Declaration) return Program.Elements.Parameter_Specifications .Parameter_Specification_Vector_Access is abstract; not overriding function Aspects (Self : Generic_Procedure_Declaration) return Program.Elements.Aspect_Specifications .Aspect_Specification_Vector_Access is abstract; type Generic_Procedure_Declaration_Text is limited interface; type Generic_Procedure_Declaration_Text_Access is access all Generic_Procedure_Declaration_Text'Class with Storage_Size => 0; not overriding function To_Generic_Procedure_Declaration_Text (Self : aliased in out Generic_Procedure_Declaration) return Generic_Procedure_Declaration_Text_Access is abstract; not overriding function Generic_Token (Self : Generic_Procedure_Declaration_Text) return not null Program.Lexical_Elements.Lexical_Element_Access is abstract; not overriding function Procedure_Token (Self : Generic_Procedure_Declaration_Text) return not null Program.Lexical_Elements.Lexical_Element_Access is abstract; not overriding function Left_Bracket_Token (Self : Generic_Procedure_Declaration_Text) return Program.Lexical_Elements.Lexical_Element_Access is abstract; not overriding function Right_Bracket_Token (Self : Generic_Procedure_Declaration_Text) return Program.Lexical_Elements.Lexical_Element_Access is abstract; not overriding function With_Token (Self : Generic_Procedure_Declaration_Text) return Program.Lexical_Elements.Lexical_Element_Access is abstract; not overriding function Semicolon_Token (Self : Generic_Procedure_Declaration_Text) return not null Program.Lexical_Elements.Lexical_Element_Access is abstract; end Program.Elements.Generic_Procedure_Declarations;
36.876543
75
0.79009
4bfc512d2979e4864cab289e5281430f50a761e6
2,551
ads
Ada
src/formatted_output-float_output.ads
VitalijBondarenko/Formatted_Output_NG
91fbdba8b2c720d9769a52f2b2152c14236adaa0
[ "MIT" ]
null
null
null
src/formatted_output-float_output.ads
VitalijBondarenko/Formatted_Output_NG
91fbdba8b2c720d9769a52f2b2152c14236adaa0
[ "MIT" ]
null
null
null
src/formatted_output-float_output.ads
VitalijBondarenko/Formatted_Output_NG
91fbdba8b2c720d9769a52f2b2152c14236adaa0
[ "MIT" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- Copyright (c) 2016-2021 Vitalii Bondarenko <[email protected]> -- -- -- ------------------------------------------------------------------------------ -- -- -- The MIT License (MIT) -- -- -- -- 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. -- ------------------------------------------------------------------------------ generic type Item_Type is digits <>; package Formatted_Output.Float_Output is function "&" (Fmt : Format_Type; Value : Item_Type) return Format_Type; -- Replaces leftmost formatting sequence in Fmt with formatted Value image, -- then returns Fmt. Raises exception Format_Error when invalid formatting -- sequence is found or no formatting sequence found at all end Formatted_Output.Float_Output;
63.775
79
0.475892
4b99792cdc4385c3990ff8eb46473cea62f79994
2,695
ada
Ada
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c8/c87b27a.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/c8/c87b27a.ada
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
null
null
null
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c8/c87b27a.ada
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
2
2020-07-27T00:22:36.000Z
2021-04-01T09:41:02.000Z
-- C87B27A.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 OVERLOADING RESOLUTION USES THE RULE THAT: -- -- THE TYPE OF A STRING LITERAL MUST BE DETERMINED FROM THE FACT -- THAT A STRING LITERAL IS A VALUE OF A ONE DIMENSIONAL ARRAY OF -- CHARACTER COMPONENTS. -- TRH 18 AUG 82 -- DSJ 07 JUN 83 WITH REPORT; USE REPORT; PROCEDURE C87B27A IS TYPE ENUMLIT IS (A, B, C, D, E, F); TYPE NEW_CHAR IS NEW CHARACTER RANGE 'G' .. 'Z'; TYPE CHARS3 IS ('G','H','I','K','M','N','P','R','S','T'); TYPE CHARS4 IS ('S','T','R','I','N','G','Z','A','P'); TYPE NEW_STR IS ARRAY (A .. F) OF NEW_CHAR; TYPE STRING3 IS ARRAY (11..16) OF CHARS3; TYPE STRING4 IS ARRAY (21..26) OF CHARS4; TYPE ENUM_VEC IS ARRAY (1 .. 6) OF ENUMLIT; TYPE CHAR_GRID IS ARRAY (D .. F, 1 .. 3) OF NEW_CHAR; TYPE STR_LIST IS ARRAY (1 .. 6) OF STRING (1 .. 1); ERR : BOOLEAN := FALSE; PROCEDURE P (X : NEW_STR) IS BEGIN NULL; END P; PROCEDURE P (X : ENUM_VEC) IS BEGIN ERR := TRUE; END P; PROCEDURE P (X : CHAR_GRID) IS BEGIN ERR := TRUE; END P; PROCEDURE P (X : STR_LIST) IS BEGIN ERR := TRUE; END P; BEGIN TEST ("C87B27A","OVERLOADING RESOLUTION OF STRING LITERALS"); P ("STRING"); IF ERR THEN FAILED ("RESOLUTION INCORRECT FOR STRING LITERALS"); END IF; RESULT; END C87B27A;
33.271605
79
0.610761
4bad83b611046dfe454dc64fc54b65276926a992
2,643
ada
Ada
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/cd/cd3021a.ada
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
7
2020-05-02T17:34:05.000Z
2021-10-17T10:15:18.000Z
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/cd/cd3021a.ada
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
null
null
null
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/cd/cd3021a.ada
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
2
2020-07-27T00:22:36.000Z
2021-04-01T09:41:02.000Z
-- CD3021A.ADA -- Grant of Unlimited Rights -- -- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687, -- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained -- unlimited rights in the software and documentation contained herein. -- Unlimited rights are defined in DFAR 252.227-7013(a)(19). By making -- this public release, the Government intends to confer upon all -- recipients unlimited rights equal to those held by the Government. -- These rights include rights to use, duplicate, release or disclose the -- released technical data and computer software in whole or in part, in -- any manner and for any purpose whatsoever, and to have or permit others -- to do so. -- -- DISCLAIMER -- -- ALL MATERIALS OR INFORMATION HEREIN RELEASED, MADE AVAILABLE OR -- DISCLOSED ARE AS IS. THE GOVERNMENT MAKES NO EXPRESS OR IMPLIED -- WARRANTY AS TO ANY MATTER WHATSOEVER, INCLUDING THE CONDITIONS OF THE -- SOFTWARE, DOCUMENTATION OR OTHER INFORMATION RELEASED, MADE AVAILABLE -- OR DISCLOSED, OR THE OWNERSHIP, MERCHANTABILITY, OR FITNESS FOR A -- PARTICULAR PURPOSE OF SAID MATERIAL. --* -- OBJECTIVE: -- CHECK THAT THE AGGREGATE IN AN ENUMERATION REPRESENTATION CLAUSE -- IS NOT AMBIGUOUS EVEN IF THERE ARE SEVERAL ONE-DIMENSIONAL ARRAY -- TYPES WITH THE ENUMERATION TYPE AS THE INDEX SUBTYPE. -- HISTORY: -- BCB 09/30/87 CREATED ORIGINAL TEST. -- BCB 03/20/89 CHANGED EXTENSION FROM '.ADA' TO '.DEP', CORRECTED -- CHECKS FOR FAILURE. WITH REPORT; USE REPORT; PROCEDURE CD3021A IS TYPE ENUM IS (A,B,C); TYPE ARR1 IS ARRAY(ENUM) OF INTEGER; TYPE ARR2 IS ARRAY(ENUM) OF INTEGER; TYPE ARR3 IS ARRAY(ENUM) OF INTEGER; FOR ENUM USE (A => 1,B => 2,C => 3); A1 : ARR1 := (A => 5,B => 6,C => 13); A2 : ARR2 := (A => 1,B => 2,C => 3); A3 : ARR3 := (A => 0,B => 1,C => 2); BEGIN TEST ("CD3021A", "CHECK THAT THE AGGREGATE IN AN ENUMERATION " & "REPRESENTATION CLAUSE IS NOT AMBIGUOUS EVEN " & "IF THERE ARE SEVERAL ONE-DIMENSIONAL ARRAY " & "TYPES WITH THE ENUMERATION TYPE AS THE INDEX " & "SUBTYPE"); IF (A1 /= (IDENT_INT (5), IDENT_INT (6), IDENT_INT (13))) OR (A2 /= (IDENT_INT (1), IDENT_INT (2), IDENT_INT (3))) OR (A3 /= (IDENT_INT (0), IDENT_INT (1), IDENT_INT (2))) THEN FAILED ("INCORRECT VALUES FOR ARRAYS"); END IF; RESULT; END CD3021A;
39.447761
79
0.615967
a07dfe1094ffe0021e3458b03815b89cae74ce8f
409
ada
Ada
Task/Sorting-algorithms-Quicksort/Ada/sorting-algorithms-quicksort-1.ada
mullikine/RosettaCodeData
4f0027c6ce83daa36118ee8b67915a13cd23ab67
[ "Info-ZIP" ]
1
2021-05-05T13:42:20.000Z
2021-05-05T13:42:20.000Z
Task/Sorting-algorithms-Quicksort/Ada/sorting-algorithms-quicksort-1.ada
mullikine/RosettaCodeData
4f0027c6ce83daa36118ee8b67915a13cd23ab67
[ "Info-ZIP" ]
null
null
null
Task/Sorting-algorithms-Quicksort/Ada/sorting-algorithms-quicksort-1.ada
mullikine/RosettaCodeData
4f0027c6ce83daa36118ee8b67915a13cd23ab67
[ "Info-ZIP" ]
null
null
null
----------------------------------------------------------------------- -- Generic Quick_Sort procedure ----------------------------------------------------------------------- generic type Element is private; type Index is (<>); type Element_Array is array(Index range <>) of Element; with function "<" (Left, Right : Element) return Boolean is <>; procedure Quick_Sort(A : in out Element_Array);
40.9
71
0.459658
9a7626d90e8c7ec7216fb7b016000415b52552ff
2,480
ads
Ada
tools/xml2ayacc/encoding/auto/encodings-maps-cp_1252.ads
faelys/gela-asis
48a3bee90eda9f0c9d958b4e3c80a5a9b1c65253
[ "BSD-3-Clause" ]
4
2016-02-05T15:51:56.000Z
2022-03-25T20:38:32.000Z
tools/xml2ayacc/encoding/auto/encodings-maps-cp_1252.ads
faelys/gela-asis
48a3bee90eda9f0c9d958b4e3c80a5a9b1c65253
[ "BSD-3-Clause" ]
null
null
null
tools/xml2ayacc/encoding/auto/encodings-maps-cp_1252.ads
faelys/gela-asis
48a3bee90eda9f0c9d958b4e3c80a5a9b1c65253
[ "BSD-3-Clause" ]
null
null
null
-- Auto generated file. Don't edit -- Read copyright and license at the end of this file package Encodings.Maps.CP_1252 is function Decode (Char : Character) return Wide_Character; pragma Inline (Decode); procedure Encode (Text : in Wide_String; Text_Last : out Natural; Result : out Raw_String; Result_Last : out Natural; Map : in Encoding := Encodings.CP_1252); procedure Decode (Text : in Raw_String; Text_Last : out Natural; Result : out Wide_String; Result_Last : out Natural; Map : in Encoding := Encodings.CP_1252); end Encodings.Maps.CP_1252; ------------------------------------------------------------------------------ -- Copyright (c) 2006-2013, Maxim Reznik -- 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 Maxim Reznik, 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 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. ------------------------------------------------------------------------------
45.925926
79
0.658468
9a921fdbf11ab655842e8164498efdca572a6566
838
adb
Ada
src/spi_slave_itsybitsy.adb
hgrodriguez/spi_two_devices
868ac3e84c80d49dd815ba8e574cba732787a1d4
[ "BSD-3-Clause" ]
null
null
null
src/spi_slave_itsybitsy.adb
hgrodriguez/spi_two_devices
868ac3e84c80d49dd815ba8e574cba732787a1d4
[ "BSD-3-Clause" ]
null
null
null
src/spi_slave_itsybitsy.adb
hgrodriguez/spi_two_devices
868ac3e84c80d49dd815ba8e574cba732787a1d4
[ "BSD-3-Clause" ]
null
null
null
--=========================================================================== -- -- This package implements the slave configuration for the ItsyBitsy -- --=========================================================================== -- -- Copyright 2022 (C) Holger Rodriguez -- -- SPDX-License-Identifier: BSD-3-Clause -- package body SPI_Slave_ItsyBitsy is ----------------------------------------------------------------------- -- see .ads procedure Initialize is begin SCK.Configure (RP.GPIO.Input, RP.GPIO.Floating, RP.GPIO.SPI); NSS.Configure (RP.GPIO.Input, RP.GPIO.Floating, RP.GPIO.SPI); MOSI.Configure (RP.GPIO.Input, RP.GPIO.Floating, RP.GPIO.SPI); MISO.Configure (RP.GPIO.Output, RP.GPIO.Floating, RP.GPIO.SPI); SPI.Configure (Config); end Initialize; end SPI_Slave_ItsyBitsy;
32.230769
77
0.502387
389824a53642ba73449c0dffd2a0bc439aa85353
5,460
ads
Ada
support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/a-btgbso.ads
orb-zhuchen/Orb
6da2404b949ac28bde786e08bf4debe4a27cd3a0
[ "CNRI-Python-GPL-Compatible", "MIT" ]
null
null
null
support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/a-btgbso.ads
orb-zhuchen/Orb
6da2404b949ac28bde786e08bf4debe4a27cd3a0
[ "CNRI-Python-GPL-Compatible", "MIT" ]
null
null
null
support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/a-btgbso.ads
orb-zhuchen/Orb
6da2404b949ac28bde786e08bf4debe4a27cd3a0
[ "CNRI-Python-GPL-Compatible", "MIT" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ADA.CONTAINERS.RED_BLACK_TREES.GENERIC_BOUNDED_SET_OPERATIONS -- -- -- -- S p e c -- -- -- -- Copyright (C) 2004-2019, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- This unit was originally developed by Matthew J Heaney. -- ------------------------------------------------------------------------------ -- Tree_Type is used to implement ordered containers. This package declares -- set-based tree operations. with Ada.Containers.Red_Black_Trees.Generic_Bounded_Operations; generic with package Tree_Operations is new Generic_Bounded_Operations (<>); type Set_Type is new Tree_Operations.Tree_Types.Tree_Type with private; use Tree_Operations.Tree_Types, Tree_Operations.Tree_Types.Implementation; with procedure Assign (Target : in out Set_Type; Source : Set_Type); with procedure Insert_With_Hint (Dst_Set : in out Set_Type; Dst_Hint : Count_Type; Src_Node : Node_Type; Dst_Node : out Count_Type); with function Is_Less (Left, Right : Node_Type) return Boolean; package Ada.Containers.Red_Black_Trees.Generic_Bounded_Set_Operations is pragma Pure; procedure Set_Union (Target : in out Set_Type; Source : Set_Type); -- Attempts to insert each element of Source in Target. If Target is -- busy then Program_Error is raised. We say "attempts" here because -- if these are unique-element sets, then the insertion should fail -- (not insert a new item) when the insertion item from Source is -- equivalent to an item already in Target. If these are multisets -- then of course the attempt should always succeed. function Set_Union (Left, Right : Set_Type) return Set_Type; -- Makes a copy of Left, and attempts to insert each element of -- Right into the copy, then returns the copy. procedure Set_Intersection (Target : in out Set_Type; Source : Set_Type); -- Removes elements from Target that are not equivalent to items in -- Source. If Target is busy then Program_Error is raised. function Set_Intersection (Left, Right : Set_Type) return Set_Type; -- Returns a set comprising all the items in Left equivalent to items in -- Right. procedure Set_Difference (Target : in out Set_Type; Source : Set_Type); -- Removes elements from Target that are equivalent to items in Source. If -- Target is busy then Program_Error is raised. function Set_Difference (Left, Right : Set_Type) return Set_Type; -- Returns a set comprising all the items in Left not equivalent to items -- in Right. procedure Set_Symmetric_Difference (Target : in out Set_Type; Source : Set_Type); -- Removes from Target elements that are equivalent to items in Source, -- and inserts into Target items from Source not equivalent elements in -- Target. If Target is busy then Program_Error is raised. function Set_Symmetric_Difference (Left, Right : Set_Type) return Set_Type; -- Returns a set comprising the union of the elements in Left not -- equivalent to items in Right, and the elements in Right not equivalent -- to items in Left. function Set_Subset (Subset : Set_Type; Of_Set : Set_Type) return Boolean; -- Returns False if Subset contains at least one element not equivalent to -- any item in Of_Set; returns True otherwise. function Set_Overlap (Left, Right : Set_Type) return Boolean; -- Returns True if at least one element of Left is equivalent to an item in -- Right; returns False otherwise. end Ada.Containers.Red_Black_Trees.Generic_Bounded_Set_Operations;
52.5
79
0.593956
38d5a038c70702771b84cad180000d9348ab9ac3
872
ads
Ada
arch/ARM/cortex_m/src/cm4f/cortex_m_svd.ads
shakram02/Ada_Drivers_Library
a407ca7ddbc2d9756647016c2f8fd8ef24a239ff
[ "BSD-3-Clause" ]
192
2016-06-01T18:32:04.000Z
2022-03-26T22:52:31.000Z
arch/ARM/cortex_m/src/cm4f/cortex_m_svd.ads
morbos/Ada_Drivers_Library
a4ab26799be60997c38735f4056160c4af597ef7
[ "BSD-3-Clause" ]
239
2016-05-26T20:02:01.000Z
2022-03-31T09:46:56.000Z
arch/ARM/cortex_m/src/cm4f/cortex_m_svd.ads
morbos/Ada_Drivers_Library
a4ab26799be60997c38735f4056160c4af597ef7
[ "BSD-3-Clause" ]
142
2016-06-05T08:12:20.000Z
2022-03-24T17:37:17.000Z
-- This spec has been automatically generated from cm4f.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with System; package Cortex_M_SVD is pragma Preelaborate; -------------------- -- Base addresses -- -------------------- NVIC_Base : constant System.Address := System'To_Address (16#E000E100#); SCB_Base : constant System.Address := System'To_Address (16#E000E000#); SysTick_Base : constant System.Address := System'To_Address (16#E000E010#); FPU_Base : constant System.Address := System'To_Address (16#E000ED88#); MPU_Base : constant System.Address := System'To_Address (16#E000ED90#); Debug_Base : constant System.Address := System'To_Address (16#E000ED00#); DWT_Base : constant System.Address := System'To_Address (16#E0001000#); end Cortex_M_SVD;
27.25
60
0.675459
9aa4ee6b8d4530350f9a26116318c89db1d94397
568
adb
Ada
src/templates/ada/series_object.adb
joffreyhuguet/LmcpGen
3a75248e536f1147d9208ec021cc5105206c3477
[ "NASA-1.3" ]
6
2017-12-06T15:44:38.000Z
2021-02-25T17:25:04.000Z
src/templates/ada/series_object.adb
joffreyhuguet/LmcpGen
3a75248e536f1147d9208ec021cc5105206c3477
[ "NASA-1.3" ]
8
2017-06-09T19:29:40.000Z
2020-01-03T14:29:35.000Z
src/templates/ada/series_object.adb
joffreyhuguet/LmcpGen
3a75248e536f1147d9208ec021cc5105206c3477
[ "NASA-1.3" ]
18
2017-06-09T17:30:29.000Z
2021-01-12T02:42:14.000Z
with avtas.lmcp.factory; use avtas.lmcp.factory; with Ada.Characters.Latin_1; package body -<full_series_name_dots>-.-<datatype_name>- is -<get_and_set_methods_body>- -<calculate_packed_size_body>- -<pack_body>- -<unpack_body>- -<xml_write_body>- function -<datatype_name>-_Descendants return String_Vectors.Vector is Descendants : String_Vectors.Vector; use String_Vectors; begin -<all_descendants>- return Descendants; end -<datatype_name>-_Descendants; end -<full_series_name_dots>-.-<datatype_name>-;
22.72
79
0.713028
ad7cb97e09e7f02dbd1a8f9d782ac7d1530bf6fa
2,355
ads
Ada
src/generated/tileset_fallback_h.ads
csb6/libtcod-ada
89c2a75eb357a8468ccb0a6476391a6b388f00b4
[ "BSD-3-Clause" ]
null
null
null
src/generated/tileset_fallback_h.ads
csb6/libtcod-ada
89c2a75eb357a8468ccb0a6476391a6b388f00b4
[ "BSD-3-Clause" ]
null
null
null
src/generated/tileset_fallback_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; limited with tileset_h; package tileset_fallback_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. -- --* -- * Try to return a fall-back Tileset, may return NULL. -- * -- * Used when one is needed, but was not provided by the user. -- function TCOD_tileset_load_fallback_font_u (arg1 : int; arg2 : int) return access tileset_h.TCOD_Tileset -- tileset_fallback.h:45 with Import => True, Convention => C, External_Name => "TCOD_tileset_load_fallback_font_"; -- namespace tileset -- namespace tcod end tileset_fallback_h;
42.818182
133
0.710403
38360b955e6795d881a3c5b9295465ac2bab7ff0
1,433
ads
Ada
tier-1/xcb/source/thin/xcb-xcb_charinfo_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_charinfo_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_charinfo_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 xcb.xcb_charinfo_t; with Interfaces.C; with Interfaces.C.Pointers; package xcb.xcb_charinfo_iterator_t is -- Item -- type Item is record data : access xcb.xcb_charinfo_t.Item; 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_charinfo_iterator_t .Item; -- Pointer -- package C_Pointers is new Interfaces.C.Pointers (Index => Interfaces.C.size_t, Element => xcb.xcb_charinfo_iterator_t.Item, Element_Array => xcb.xcb_charinfo_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_charinfo_iterator_t .Pointer; -- Pointer_Pointer -- package C_Pointer_Pointers is new Interfaces.C.Pointers (Index => Interfaces.C.size_t, Element => xcb.xcb_charinfo_iterator_t.Pointer, Element_Array => xcb.xcb_charinfo_iterator_t.Pointer_Array, Default_Terminator => null); subtype Pointer_Pointer is C_Pointer_Pointers.Pointer; end xcb.xcb_charinfo_iterator_t;
26.537037
76
0.666434
132aff7bcb9a1c8c1537e49eade5a430dbe5d4b9
696
adb
Ada
ejercicios3/ordenar_por_burbuja.adb
iyan22/AprendeAda
18bd2a224e5bda30c43d9ceabe0c05278e069ebf
[ "MIT" ]
null
null
null
ejercicios3/ordenar_por_burbuja.adb
iyan22/AprendeAda
18bd2a224e5bda30c43d9ceabe0c05278e069ebf
[ "MIT" ]
null
null
null
ejercicios3/ordenar_por_burbuja.adb
iyan22/AprendeAda
18bd2a224e5bda30c43d9ceabe0c05278e069ebf
[ "MIT" ]
null
null
null
with datos; use datos; with intercambiar; procedure Ordenar_Por_Burbuja (L : in out Lista_Enteros) is -- pre: -- post: L contiene los valores iniciales en orden ascendente I : Integer; J: Integer; Cuenta : Integer; begin I := L.Numeros'First; if L.Cont > 1 then loop Cuenta := 0; J := 1; loop exit when J > L.Cont-1; if L.Numeros(J) > L.Numeros(J+1) then Intercambiar(J, J+1, L); Cuenta := Cuenta+1; end if; J:= J+1; end loop; I := I+1; exit when I > L.Cont-1 or Cuenta = 0; -- Usamos esto como Boolean para comprobar si hay cambios end loop; end if; end Ordenar_Por_Burbuja;
20.470588
105
0.577586
1e36373baa78b97373dc0b3b6ea48d4dbe494a83
2,697
ads
Ada
gcc-gcc-7_3_0-release/gcc/ada/a-elchha.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-elchha.ads
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
null
null
null
gcc-gcc-7_3_0-release/gcc/ada/a-elchha.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 . E X C E P T I O N S . L A S T _ C H A N C E _ H A N D L E R -- -- -- -- S p e c -- -- -- -- Copyright (C) 2003-2013, 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. -- -- -- ------------------------------------------------------------------------------ -- Last chance handler. Unhandled exceptions are passed to this routine pragma Compiler_Unit_Warning; procedure Ada.Exceptions.Last_Chance_Handler (Except : Exception_Occurrence); pragma Export (C, Last_Chance_Handler, "__gnat_last_chance_handler"); pragma No_Return (Last_Chance_Handler);
64.214286
78
0.417872
047d359c70441f07f0e4b68d6662caa4b31ea77f
4,521
ads
Ada
bb-runtimes/runtimes/ravenscar-full-stm32f3x4/gnat/g-debuti.ads
JCGobbi/Nucleo-STM32F334R8
2a0b1b4b2664c92773703ac5e95dcb71979d051c
[ "BSD-3-Clause" ]
null
null
null
bb-runtimes/runtimes/ravenscar-full-stm32f3x4/gnat/g-debuti.ads
JCGobbi/Nucleo-STM32F334R8
2a0b1b4b2664c92773703ac5e95dcb71979d051c
[ "BSD-3-Clause" ]
null
null
null
bb-runtimes/runtimes/ravenscar-full-stm32f3x4/gnat/g-debuti.ads
JCGobbi/Nucleo-STM32F334R8
2a0b1b4b2664c92773703ac5e95dcb71979d051c
[ "BSD-3-Clause" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- G N A T . D E B U G _ U T I L I T I E S -- -- -- -- S p e c -- -- -- -- Copyright (C) 1995-2021, 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. -- -- -- -- -- -- -- -- -- -- -- -- 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. -- -- -- ------------------------------------------------------------------------------ -- Debugging utilities -- This package provides some useful utility subprograms for use in writing -- routines that generate debugging output. with System; package GNAT.Debug_Utilities is pragma Pure; Address_64 : constant Boolean := Standard'Address_Size = 64; -- Set true if 64 bit addresses (assumes only 32 and 64 are possible) Address_Image_Length : constant := 13 + 10 * Boolean'Pos (Address_64); -- Length of string returned by Image function for an address subtype Image_String is String (1 .. Address_Image_Length); -- Subtype returned by Image function for an address Address_Image_C_Length : constant := 10 + 8 * Boolean'Pos (Address_64); -- Length of string returned by Image_C function subtype Image_C_String is String (1 .. Address_Image_C_Length); -- Subtype returned by Image_C function function Image (S : String) return String; -- Returns a string image of S, obtained by prepending and appending -- quote (") characters and doubling any quote characters in the string. -- The maximum length of the result is thus 2 ** S'Length + 2. function Image (A : System.Address) return Image_String; -- Returns a string of the form 16#hhhh_hhhh# for 32-bit addresses -- or 16#hhhh_hhhh_hhhh_hhhh# for 64-bit addresses. Hex characters -- are in upper case. function Image_C (A : System.Address) return Image_C_String; -- Returns a string of the form 0xhhhhhhhh for 32 bit addresses or -- 0xhhhhhhhhhhhhhhhh for 64-bit addresses. Hex characters are in -- upper case. function Value (S : String) return System.Address; -- Given a valid integer literal in any form, including the form returned -- by the Image function in this package, yields the corresponding address. -- Note that this routine will handle any Ada integer format, and will -- also handle hex constants in C format (0xhh..hhh). Constraint_Error -- may be raised for obviously incorrect data, but the routine is fairly -- permissive, and in particular, all underscores in whatever position -- are simply ignored completely. end GNAT.Debug_Utilities;
55.134146
79
0.49812
a07543370cbd352daae0cadf6b2a00fca04a2337
2,389
ada
Ada
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c9/c91004c.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/c9/c91004c.ada
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
null
null
null
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c9/c91004c.ada
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
2
2020-07-27T00:22:36.000Z
2021-04-01T09:41:02.000Z
-- C91004C.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 A TASK (TYPE) IDENTIFIER, WHEN USED WITHIN ITS OWN BODY -- REFERS TO THE EXECUTING TASK. -- -- TEST USING CONDITIONAL ENTRY CALL. -- WEI 3/ 4/82 -- TLB 10/30/87 RENAMED FROM C910BDB.ADA. WITH REPORT; USE REPORT; PROCEDURE C91004C IS TASK TYPE TT1 IS ENTRY E1; ENTRY BYE; END TT1; OBJ_TT1 : ARRAY (NATURAL RANGE 1..2) OF TT1; SUBTYPE ARG IS NATURAL RANGE 0..9; SPYNUMB : NATURAL := 0; PROCEDURE PSPY_NUMB (DIGT: IN ARG) IS BEGIN SPYNUMB := 10*SPYNUMB+DIGT; END PSPY_NUMB; TASK BODY TT1 IS BEGIN ACCEPT E1 DO PSPY_NUMB (1); END E1; SELECT TT1.E1; ELSE PSPY_NUMB (2); END SELECT; ACCEPT BYE; END TT1; BEGIN TEST ("C91004C", "TASK IDENTIFIER IN OWN BODY"); OBJ_TT1 (1).E1; OBJ_TT1 (1).BYE; IF SPYNUMB /=12 THEN FAILED ("WRONG TASK OBJECT REFERENCED"); COMMENT ("ACTUAL ORDER WAS:" & INTEGER'IMAGE(SPYNUMB)); END IF; ABORT OBJ_TT1 (2); RESULT; END C91004C;
28.783133
79
0.617832
4b8bd9c3f01ff8b3f699a2a08304cb22529fda84
3,587
ads
Ada
Validation/pyFrame3DD-master/gcc-master/gcc/ada/pprint.ads
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
Validation/pyFrame3DD-master/gcc-master/gcc/ada/pprint.ads
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
Validation/pyFrame3DD-master/gcc-master/gcc/ada/pprint.ads
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- P P R I N T -- -- -- -- S p e c -- -- -- -- Copyright (C) 2008-2020, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -- -- for more details. You should have received a copy of the GNU General -- -- Public License distributed with GNAT; see file COPYING3. If not, go to -- -- http://www.gnu.org/licenses for a complete copy of the license. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ -- This package (pretty print) contains a routine for printing an expression -- given its node in the syntax tree. Contrarily to the Sprint package, this -- routine tries to obtain "pretty" output that can be used for e.g. error -- messages. with Types; use Types; with Urealp; use Urealp; package Pprint is generic -- ??? The generic parameters should be removed. with function Real_Image (U : Ureal) return String; with function String_Image (S : String_Id) return String; with function Ident_Image (Expr : Node_Id; Orig_Expr : Node_Id; Expand_Type : Boolean) return String; -- Will be called for printing N_Identifier and N_Defining_Identifier -- nodes -- ??? Expand_Type argument should be removed Hide_Parameter_Blocks : Boolean := False; -- If true, then "Parameter_Block.Field_Name.all" is -- instead displayed as "Field_Name". Hide_Temp_Derefs : Boolean := False; -- If true, then "Foo.all" is instead displayed as "Foo" -- in the case where Foo is a compiler-generated constant -- initialized to Some_Captured_Value'Reference. function Expression_Image (Expr : Node_Id; Default : String) return String; -- Given a Node for an expression, return a String that is meaningful for -- the programmer. If the expression comes from source, it is copied from -- there. -- Subexpressions outside of the maximum depth (3), the maximal number of -- accepted nodes (24), and the maximal number of list elements (3), are -- replaced by the default string. end Pprint;
51.985507
78
0.504042
1a41d794bfd1c5e25f8adba5dcbfb09a19a1de90
332,322
adb
Ada
Validation/pyFrame3DD-master/gcc-master/gcc/ada/exp_disp.adb
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
Validation/pyFrame3DD-master/gcc-master/gcc/ada/exp_disp.adb
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
Validation/pyFrame3DD-master/gcc-master/gcc/ada/exp_disp.adb
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- E X P _ D I S P -- -- -- -- B o d y -- -- -- -- Copyright (C) 1992-2020, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -- -- for more details. You should have received a copy of the GNU General -- -- Public License distributed with GNAT; see file COPYING3. If not, go to -- -- http://www.gnu.org/licenses for a complete copy of the license. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ with Atree; use Atree; with Checks; use Checks; with Debug; use Debug; with Einfo; use Einfo; with Elists; use Elists; with Errout; use Errout; with Expander; use Expander; with Exp_Atag; use Exp_Atag; with Exp_Ch6; use Exp_Ch6; with Exp_CG; use Exp_CG; with Exp_Dbug; use Exp_Dbug; with Exp_Tss; use Exp_Tss; with Exp_Util; use Exp_Util; with Freeze; use Freeze; with Ghost; use Ghost; with Itypes; use Itypes; with Layout; use Layout; with Nlists; use Nlists; with Nmake; use Nmake; with Namet; use Namet; with Opt; use Opt; with Output; use Output; with Restrict; use Restrict; with Rident; use Rident; with Rtsfind; use Rtsfind; with Sem; use Sem; with Sem_Aux; use Sem_Aux; with Sem_Ch6; use Sem_Ch6; with Sem_Ch7; use Sem_Ch7; with Sem_Ch8; use Sem_Ch8; with Sem_Disp; use Sem_Disp; with Sem_Eval; use Sem_Eval; with Sem_Res; use Sem_Res; with Sem_Type; use Sem_Type; with Sem_Util; use Sem_Util; with Sinfo; use Sinfo; with Sinput; use Sinput; with Snames; use Snames; with Stand; use Stand; with Stringt; use Stringt; with SCIL_LL; use SCIL_LL; with Tbuild; use Tbuild; package body Exp_Disp is ----------------------- -- Local Subprograms -- ----------------------- function Default_Prim_Op_Position (E : Entity_Id) return Uint; -- Ada 2005 (AI-251): Returns the fixed position in the dispatch table -- of the default primitive operations. function Has_DT (Typ : Entity_Id) return Boolean; pragma Inline (Has_DT); -- Returns true if we generate a dispatch table for tagged type Typ function Is_Predefined_Dispatching_Alias (Prim : Entity_Id) return Boolean; -- Returns true if Prim is not a predefined dispatching primitive but it is -- an alias of a predefined dispatching primitive (i.e. through a renaming) function New_Value (From : Node_Id) return Node_Id; -- From is the original Expression. New_Value is equivalent to a call to -- Duplicate_Subexpr with an explicit dereference when From is an access -- parameter. function Original_View_In_Visible_Part (Typ : Entity_Id) return Boolean; -- Check if the type has a private view or if the public view appears in -- the visible part of a package spec. function Prim_Op_Kind (Prim : Entity_Id; Typ : Entity_Id) return Node_Id; -- Ada 2005 (AI-345): Determine the primitive operation kind of Prim -- according to its type Typ. Return a reference to an RE_Prim_Op_Kind -- enumeration value. function Tagged_Kind (T : Entity_Id) return Node_Id; -- Ada 2005 (AI-345): Determine the tagged kind of T and return a reference -- to an RE_Tagged_Kind enumeration value. ---------------------- -- Apply_Tag_Checks -- ---------------------- procedure Apply_Tag_Checks (Call_Node : Node_Id) is Loc : constant Source_Ptr := Sloc (Call_Node); Ctrl_Arg : constant Node_Id := Controlling_Argument (Call_Node); Ctrl_Typ : constant Entity_Id := Base_Type (Etype (Ctrl_Arg)); Param_List : constant List_Id := Parameter_Associations (Call_Node); Subp : Entity_Id; CW_Typ : Entity_Id; Param : Node_Id; Typ : Entity_Id; Eq_Prim_Op : Entity_Id := Empty; begin if No_Run_Time_Mode then Error_Msg_CRT ("tagged types", Call_Node); return; end if; -- Apply_Tag_Checks is called directly from the semantics, so we -- need a check to see whether expansion is active before proceeding. -- In addition, there is no need to expand the call when compiling -- under restriction No_Dispatching_Calls; the semantic analyzer has -- previously notified the violation of this restriction. if not Expander_Active or else Restriction_Active (No_Dispatching_Calls) then return; end if; -- Set subprogram. If this is an inherited operation that was -- overridden, the body that is being called is its alias. Subp := Entity (Name (Call_Node)); if Present (Alias (Subp)) and then Is_Inherited_Operation (Subp) and then No (DTC_Entity (Subp)) then Subp := Alias (Subp); end if; -- Definition of the class-wide type and the tagged type -- If the controlling argument is itself a tag rather than a tagged -- object, then use the class-wide type associated with the subprogram's -- controlling type. This case can occur when a call to an inherited -- primitive has an actual that originated from a default parameter -- given by a tag-indeterminate call and when there is no other -- controlling argument providing the tag (AI-239 requires dispatching). -- This capability of dispatching directly by tag is also needed by the -- implementation of AI-260 (for the generic dispatching constructors). if Ctrl_Typ = RTE (RE_Tag) or else (RTE_Available (RE_Interface_Tag) and then Ctrl_Typ = RTE (RE_Interface_Tag)) then CW_Typ := Class_Wide_Type (Find_Dispatching_Type (Subp)); -- Class_Wide_Type is applied to the expressions used to initialize -- CW_Typ, to ensure that CW_Typ always denotes a class-wide type, since -- there are cases where the controlling type is resolved to a specific -- type (such as for designated types of arguments such as CW'Access). elsif Is_Access_Type (Ctrl_Typ) then CW_Typ := Class_Wide_Type (Designated_Type (Ctrl_Typ)); else CW_Typ := Class_Wide_Type (Ctrl_Typ); end if; Typ := Find_Specific_Type (CW_Typ); if not Is_Limited_Type (Typ) then Eq_Prim_Op := Find_Prim_Op (Typ, Name_Op_Eq); end if; -- Dispatching call to C++ primitive if Is_CPP_Class (Typ) then null; -- Dispatching call to Ada primitive elsif Present (Param_List) then -- Generate the Tag checks when appropriate Param := First_Actual (Call_Node); while Present (Param) loop -- No tag check with itself if Param = Ctrl_Arg then null; -- No tag check for parameter whose type is neither tagged nor -- access to tagged (for access parameters) elsif No (Find_Controlling_Arg (Param)) then null; -- No tag check for function dispatching on result if the -- Tag given by the context is this one elsif Find_Controlling_Arg (Param) = Ctrl_Arg then null; -- "=" is the only dispatching operation allowed to get operands -- with incompatible tags (it just returns false). We use -- Duplicate_Subexpr_Move_Checks instead of calling Relocate_Node -- because the value will be duplicated to check the tags. elsif Subp = Eq_Prim_Op then null; -- No check in presence of suppress flags elsif Tag_Checks_Suppressed (Etype (Param)) or else (Is_Access_Type (Etype (Param)) and then Tag_Checks_Suppressed (Designated_Type (Etype (Param)))) then null; -- Optimization: no tag checks if the parameters are identical elsif Is_Entity_Name (Param) and then Is_Entity_Name (Ctrl_Arg) and then Entity (Param) = Entity (Ctrl_Arg) then null; -- Now we need to generate the Tag check else -- Generate code for tag equality check -- Perhaps should have Checks.Apply_Tag_Equality_Check??? Insert_Action (Ctrl_Arg, Make_Implicit_If_Statement (Call_Node, Condition => Make_Op_Ne (Loc, Left_Opnd => Make_Selected_Component (Loc, Prefix => New_Value (Ctrl_Arg), Selector_Name => New_Occurrence_Of (First_Tag_Component (Typ), Loc)), Right_Opnd => Make_Selected_Component (Loc, Prefix => Unchecked_Convert_To (Typ, New_Value (Param)), Selector_Name => New_Occurrence_Of (First_Tag_Component (Typ), Loc))), Then_Statements => New_List (New_Constraint_Error (Loc)))); end if; Next_Actual (Param); end loop; end if; end Apply_Tag_Checks; ------------------------ -- Building_Static_DT -- ------------------------ function Building_Static_DT (Typ : Entity_Id) return Boolean is Root_Typ : Entity_Id := Root_Type (Typ); Static_DT : Boolean; begin -- Handle private types if Present (Full_View (Root_Typ)) then Root_Typ := Full_View (Root_Typ); end if; Static_DT := Building_Static_Dispatch_Tables and then Is_Library_Level_Tagged_Type (Typ) -- If the type is derived from a CPP class we cannot statically -- build the dispatch tables because we must inherit primitives -- from the CPP side. and then not Is_CPP_Class (Root_Typ); if not Static_DT then Check_Restriction (Static_Dispatch_Tables, Typ); end if; return Static_DT; end Building_Static_DT; ---------------------------------- -- Building_Static_Secondary_DT -- ---------------------------------- function Building_Static_Secondary_DT (Typ : Entity_Id) return Boolean is Full_Typ : Entity_Id := Typ; Root_Typ : Entity_Id := Root_Type (Typ); Static_DT : Boolean; begin -- Handle private types if Present (Full_View (Typ)) then Full_Typ := Full_View (Typ); end if; if Present (Full_View (Root_Typ)) then Root_Typ := Full_View (Root_Typ); end if; Static_DT := Building_Static_DT (Full_Typ) and then not Is_Interface (Full_Typ) and then Has_Interfaces (Full_Typ) and then (Full_Typ = Root_Typ or else not Is_Variable_Size_Record (Etype (Full_Typ))); if not Static_DT and then not Is_Interface (Full_Typ) and then Has_Interfaces (Full_Typ) then Check_Restriction (Static_Dispatch_Tables, Typ); end if; return Static_DT; end Building_Static_Secondary_DT; ---------------------------------- -- Build_Static_Dispatch_Tables -- ---------------------------------- procedure Build_Static_Dispatch_Tables (N : Entity_Id) is Target_List : List_Id; procedure Build_Dispatch_Tables (List : List_Id); -- Build the static dispatch table of tagged types found in the list of -- declarations. The generated nodes are added at the end of Target_List procedure Build_Package_Dispatch_Tables (N : Node_Id); -- Build static dispatch tables associated with package declaration N --------------------------- -- Build_Dispatch_Tables -- --------------------------- procedure Build_Dispatch_Tables (List : List_Id) is D : Node_Id; begin D := First (List); while Present (D) loop -- Handle nested packages and package bodies recursively. The -- generated code is placed on the Target_List established for -- the enclosing compilation unit. if Nkind (D) = N_Package_Declaration then Build_Package_Dispatch_Tables (D); elsif Nkind (D) = N_Package_Body then Build_Dispatch_Tables (Declarations (D)); elsif Nkind (D) = N_Package_Body_Stub and then Present (Library_Unit (D)) then Build_Dispatch_Tables (Declarations (Proper_Body (Unit (Library_Unit (D))))); -- Handle full type declarations and derivations of library level -- tagged types elsif Nkind (D) in N_Full_Type_Declaration | N_Derived_Type_Definition and then Is_Library_Level_Tagged_Type (Defining_Entity (D)) and then Ekind (Defining_Entity (D)) /= E_Record_Subtype and then not Is_Private_Type (Defining_Entity (D)) then -- We do not generate dispatch tables for the internal types -- created for a type extension with unknown discriminants -- The needed information is shared with the source type, -- See Expand_N_Record_Extension. if Is_Underlying_Record_View (Defining_Entity (D)) or else (not Comes_From_Source (Defining_Entity (D)) and then Has_Unknown_Discriminants (Etype (Defining_Entity (D))) and then not Comes_From_Source (First_Subtype (Defining_Entity (D)))) then null; else Insert_List_After_And_Analyze (Last (Target_List), Make_DT (Defining_Entity (D))); end if; -- Handle private types of library level tagged types. We must -- exchange the private and full-view to ensure the correct -- expansion. If the full view is a synchronized type ignore -- the type because the table will be built for the corresponding -- record type, that has its own declaration. elsif (Nkind (D) = N_Private_Type_Declaration or else Nkind (D) = N_Private_Extension_Declaration) and then Present (Full_View (Defining_Entity (D))) then declare E1 : constant Entity_Id := Defining_Entity (D); E2 : constant Entity_Id := Full_View (E1); begin if Is_Library_Level_Tagged_Type (E2) and then Ekind (E2) /= E_Record_Subtype and then not Is_Concurrent_Type (E2) then Exchange_Declarations (E1); Insert_List_After_And_Analyze (Last (Target_List), Make_DT (E1)); Exchange_Declarations (E2); end if; end; end if; Next (D); end loop; end Build_Dispatch_Tables; ----------------------------------- -- Build_Package_Dispatch_Tables -- ----------------------------------- procedure Build_Package_Dispatch_Tables (N : Node_Id) is Spec : constant Node_Id := Specification (N); Id : constant Entity_Id := Defining_Entity (N); Vis_Decls : constant List_Id := Visible_Declarations (Spec); Priv_Decls : constant List_Id := Private_Declarations (Spec); begin Push_Scope (Id); if Present (Priv_Decls) then Build_Dispatch_Tables (Vis_Decls); Build_Dispatch_Tables (Priv_Decls); elsif Present (Vis_Decls) then Build_Dispatch_Tables (Vis_Decls); end if; Pop_Scope; end Build_Package_Dispatch_Tables; -- Start of processing for Build_Static_Dispatch_Tables begin if not Expander_Active or else not Tagged_Type_Expansion then return; end if; if Nkind (N) = N_Package_Declaration then declare Spec : constant Node_Id := Specification (N); Vis_Decls : constant List_Id := Visible_Declarations (Spec); Priv_Decls : constant List_Id := Private_Declarations (Spec); begin if Present (Priv_Decls) and then Is_Non_Empty_List (Priv_Decls) then Target_List := Priv_Decls; elsif not Present (Vis_Decls) then Target_List := New_List; Set_Private_Declarations (Spec, Target_List); else Target_List := Vis_Decls; end if; Build_Package_Dispatch_Tables (N); end; else pragma Assert (Nkind (N) = N_Package_Body); Target_List := Declarations (N); Build_Dispatch_Tables (Target_List); end if; end Build_Static_Dispatch_Tables; ------------------------------ -- Convert_Tag_To_Interface -- ------------------------------ function Convert_Tag_To_Interface (Typ : Entity_Id; Expr : Node_Id) return Node_Id is Loc : constant Source_Ptr := Sloc (Expr); Anon_Type : Entity_Id; Result : Node_Id; begin pragma Assert (Is_Class_Wide_Type (Typ) and then Is_Interface (Typ) and then ((Nkind (Expr) = N_Selected_Component and then Is_Tag (Entity (Selector_Name (Expr)))) or else (Nkind (Expr) = N_Function_Call and then RTE_Available (RE_Displace) and then Entity (Name (Expr)) = RTE (RE_Displace)))); Anon_Type := Create_Itype (E_Anonymous_Access_Type, Expr); Set_Directly_Designated_Type (Anon_Type, Typ); Set_Etype (Anon_Type, Anon_Type); Set_Can_Never_Be_Null (Anon_Type); -- Decorate the size and alignment attributes of the anonymous access -- type, as required by the back end. Layout_Type (Anon_Type); if Nkind (Expr) = N_Selected_Component and then Is_Tag (Entity (Selector_Name (Expr))) then Result := Make_Explicit_Dereference (Loc, Unchecked_Convert_To (Anon_Type, Make_Attribute_Reference (Loc, Prefix => Expr, Attribute_Name => Name_Address))); else Result := Make_Explicit_Dereference (Loc, Unchecked_Convert_To (Anon_Type, Expr)); end if; return Result; end Convert_Tag_To_Interface; ------------------- -- CPP_Num_Prims -- ------------------- function CPP_Num_Prims (Typ : Entity_Id) return Nat is CPP_Typ : Entity_Id; Tag_Comp : Entity_Id; begin if not Is_Tagged_Type (Typ) or else not Is_CPP_Class (Root_Type (Typ)) then return 0; else CPP_Typ := Enclosing_CPP_Parent (Typ); Tag_Comp := First_Tag_Component (CPP_Typ); -- If number of primitives already set in the tag component, use it if Present (Tag_Comp) and then DT_Entry_Count (Tag_Comp) /= No_Uint then return UI_To_Int (DT_Entry_Count (Tag_Comp)); -- Otherwise, count the primitives of the enclosing CPP type else declare Count : Nat := 0; Elmt : Elmt_Id; begin Elmt := First_Elmt (Primitive_Operations (CPP_Typ)); while Present (Elmt) loop Count := Count + 1; Next_Elmt (Elmt); end loop; return Count; end; end if; end if; end CPP_Num_Prims; ------------------------------ -- Default_Prim_Op_Position -- ------------------------------ function Default_Prim_Op_Position (E : Entity_Id) return Uint is TSS_Name : TSS_Name_Type; begin Get_Name_String (Chars (E)); TSS_Name := TSS_Name_Type (Name_Buffer (Name_Len - TSS_Name'Length + 1 .. Name_Len)); if Chars (E) = Name_uSize then return Uint_1; elsif TSS_Name = TSS_Stream_Read then return Uint_2; elsif TSS_Name = TSS_Stream_Write then return Uint_3; elsif TSS_Name = TSS_Stream_Input then return Uint_4; elsif TSS_Name = TSS_Stream_Output then return Uint_5; elsif Chars (E) = Name_Op_Eq then return Uint_6; elsif Chars (E) = Name_uAssign then return Uint_7; elsif TSS_Name = TSS_Deep_Adjust then return Uint_8; elsif TSS_Name = TSS_Deep_Finalize then return Uint_9; elsif TSS_Name = TSS_Put_Image then return Uint_10; -- In VM targets unconditionally allow obtaining the position associated -- with predefined interface primitives since in these platforms any -- tagged type has these primitives. elsif Ada_Version >= Ada_2005 or else not Tagged_Type_Expansion then if Chars (E) = Name_uDisp_Asynchronous_Select then return Uint_11; elsif Chars (E) = Name_uDisp_Conditional_Select then return Uint_12; elsif Chars (E) = Name_uDisp_Get_Prim_Op_Kind then return Uint_13; elsif Chars (E) = Name_uDisp_Get_Task_Id then return Uint_14; elsif Chars (E) = Name_uDisp_Requeue then return Uint_15; elsif Chars (E) = Name_uDisp_Timed_Select then return Uint_16; end if; end if; raise Program_Error; end Default_Prim_Op_Position; ---------------------- -- Elab_Flag_Needed -- ---------------------- function Elab_Flag_Needed (Typ : Entity_Id) return Boolean is begin return Ada_Version >= Ada_2005 and then not Is_Interface (Typ) and then Has_Interfaces (Typ) and then not Building_Static_DT (Typ); end Elab_Flag_Needed; ----------------------------- -- Expand_Dispatching_Call -- ----------------------------- procedure Expand_Dispatching_Call (Call_Node : Node_Id) is Loc : constant Source_Ptr := Sloc (Call_Node); Call_Typ : constant Entity_Id := Etype (Call_Node); Ctrl_Arg : constant Node_Id := Controlling_Argument (Call_Node); Ctrl_Typ : constant Entity_Id := Base_Type (Etype (Ctrl_Arg)); Param_List : constant List_Id := Parameter_Associations (Call_Node); Subp : Entity_Id; CW_Typ : Entity_Id; New_Call : Node_Id; New_Call_Name : Node_Id; New_Params : List_Id := No_List; Param : Node_Id; Res_Typ : Entity_Id; Subp_Ptr_Typ : Entity_Id; Subp_Typ : Entity_Id; Typ : Entity_Id; Eq_Prim_Op : Entity_Id := Empty; Controlling_Tag : Node_Id; procedure Build_Class_Wide_Check; -- If the denoted subprogram has a class-wide precondition, generate a -- check using that precondition before the dispatching call, because -- this is the only class-wide precondition that applies to the call. function New_Value (From : Node_Id) return Node_Id; -- From is the original Expression. New_Value is equivalent to a call -- to Duplicate_Subexpr with an explicit dereference when From is an -- access parameter. ---------------------------- -- Build_Class_Wide_Check -- ---------------------------- procedure Build_Class_Wide_Check is function Replace_Formals (N : Node_Id) return Traverse_Result; -- Replace occurrences of the formals of the subprogram by the -- corresponding actuals in the call, given that this check is -- performed outside of the body of the subprogram. -- If the dispatching call appears in the same scope as the -- declaration of the dispatching subprogram (for example in -- the expression of a local expression function), the spec -- has not been analyzed yet, in which case we use the Chars -- field to recognize intended occurrences of the formals. --------------------- -- Replace_Formals -- --------------------- function Replace_Formals (N : Node_Id) return Traverse_Result is A : Node_Id; F : Entity_Id; begin if Is_Entity_Name (N) then F := First_Formal (Subp); A := First_Actual (Call_Node); if Present (Entity (N)) and then Is_Formal (Entity (N)) then while Present (F) loop if F = Entity (N) then Rewrite (N, New_Copy_Tree (A)); -- If the formal is class-wide, and thus not a -- controlling argument, preserve its type because -- it may appear in a nested call with a class-wide -- parameter. if Is_Class_Wide_Type (Etype (F)) then Set_Etype (N, Etype (F)); -- Conversely, if this is a controlling argument -- (in a dispatching call in the condition) that is a -- dereference, the source is an access-to-class-wide -- type, so preserve the dispatching nature of the -- call in the rewritten condition. elsif Nkind (Parent (N)) = N_Explicit_Dereference and then Is_Controlling_Actual (Parent (N)) then Set_Controlling_Argument (Parent (Parent (N)), Parent (N)); end if; exit; end if; Next_Formal (F); Next_Actual (A); end loop; -- If the node is not analyzed, recognize occurrences of a -- formal by name, as would be done when resolving the aspect -- expression in the context of the subprogram. elsif not Analyzed (N) and then Nkind (N) = N_Identifier and then No (Entity (N)) then while Present (F) loop if Chars (N) = Chars (F) then Rewrite (N, New_Copy_Tree (A)); return Skip; end if; Next_Formal (F); Next_Actual (A); end loop; end if; end if; return OK; end Replace_Formals; procedure Update is new Traverse_Proc (Replace_Formals); -- Local variables Str_Loc : constant String := Build_Location_String (Loc); Cond : Node_Id; Msg : Node_Id; Prec : Node_Id; -- Start of processing for Build_Class_Wide_Check begin -- Locate class-wide precondition, if any if Present (Contract (Subp)) and then Present (Pre_Post_Conditions (Contract (Subp))) then Prec := Pre_Post_Conditions (Contract (Subp)); while Present (Prec) loop exit when Pragma_Name (Prec) = Name_Precondition and then Class_Present (Prec); Prec := Next_Pragma (Prec); end loop; if No (Prec) or else Is_Ignored (Prec) then return; end if; -- The expression for the precondition is analyzed within the -- generated pragma. The message text is the last parameter of -- the generated pragma, indicating source of precondition. Cond := New_Copy_Tree (Expression (First (Pragma_Argument_Associations (Prec)))); Update (Cond); -- Build message indicating the failed precondition and the -- dispatching call that caused it. Msg := Expression (Last (Pragma_Argument_Associations (Prec))); Name_Len := 0; Append (Global_Name_Buffer, Strval (Msg)); Append (Global_Name_Buffer, " in dispatching call at "); Append (Global_Name_Buffer, Str_Loc); Msg := Make_String_Literal (Loc, Name_Buffer (1 .. Name_Len)); Insert_Action (Call_Node, Make_If_Statement (Loc, Condition => Make_Op_Not (Loc, Cond), Then_Statements => New_List ( Make_Procedure_Call_Statement (Loc, Name => New_Occurrence_Of (RTE (RE_Raise_Assert_Failure), Loc), Parameter_Associations => New_List (Msg))))); end if; end Build_Class_Wide_Check; --------------- -- New_Value -- --------------- function New_Value (From : Node_Id) return Node_Id is Res : constant Node_Id := Duplicate_Subexpr (From); begin if Is_Access_Type (Etype (From)) then return Make_Explicit_Dereference (Sloc (From), Prefix => Res); else return Res; end if; end New_Value; -- Local variables New_Node : Node_Id; SCIL_Node : Node_Id := Empty; SCIL_Related_Node : Node_Id := Call_Node; -- Start of processing for Expand_Dispatching_Call begin if No_Run_Time_Mode then Error_Msg_CRT ("tagged types", Call_Node); return; end if; -- Expand_Dispatching_Call is called directly from the semantics, so we -- only proceed if the expander is active. if not Expander_Active -- And there is no need to expand the call if we are compiling under -- restriction No_Dispatching_Calls; the semantic analyzer has -- previously notified the violation of this restriction. or else Restriction_Active (No_Dispatching_Calls) -- No action needed if the dispatching call has been already expanded or else Is_Expanded_Dispatching_Call (Name (Call_Node)) then return; end if; -- Set subprogram. If this is an inherited operation that was -- overridden, the body that is being called is its alias. Subp := Entity (Name (Call_Node)); if Present (Alias (Subp)) and then Is_Inherited_Operation (Subp) and then No (DTC_Entity (Subp)) then Subp := Alias (Subp); end if; Build_Class_Wide_Check; -- Definition of the class-wide type and the tagged type -- If the controlling argument is itself a tag rather than a tagged -- object, then use the class-wide type associated with the subprogram's -- controlling type. This case can occur when a call to an inherited -- primitive has an actual that originated from a default parameter -- given by a tag-indeterminate call and when there is no other -- controlling argument providing the tag (AI-239 requires dispatching). -- This capability of dispatching directly by tag is also needed by the -- implementation of AI-260 (for the generic dispatching constructors). if Ctrl_Typ = RTE (RE_Tag) or else (RTE_Available (RE_Interface_Tag) and then Ctrl_Typ = RTE (RE_Interface_Tag)) then CW_Typ := Class_Wide_Type (Find_Dispatching_Type (Subp)); -- Class_Wide_Type is applied to the expressions used to initialize -- CW_Typ, to ensure that CW_Typ always denotes a class-wide type, since -- there are cases where the controlling type is resolved to a specific -- type (such as for designated types of arguments such as CW'Access). elsif Is_Access_Type (Ctrl_Typ) then CW_Typ := Class_Wide_Type (Designated_Type (Ctrl_Typ)); else CW_Typ := Class_Wide_Type (Ctrl_Typ); end if; Typ := Find_Specific_Type (CW_Typ); if not Is_Limited_Type (Typ) then Eq_Prim_Op := Find_Prim_Op (Typ, Name_Op_Eq); end if; -- Dispatching call to C++ primitive. Create a new parameter list -- with no tag checks. New_Params := New_List; if Is_CPP_Class (Typ) then Param := First_Actual (Call_Node); while Present (Param) loop Append_To (New_Params, Relocate_Node (Param)); Next_Actual (Param); end loop; -- Dispatching call to Ada primitive elsif Present (Param_List) then Apply_Tag_Checks (Call_Node); Param := First_Actual (Call_Node); while Present (Param) loop -- Cases in which we may have generated run-time checks. Note that -- we strip any qualification from Param before comparing with the -- already-stripped controlling argument. if Unqualify (Param) = Ctrl_Arg or else Subp = Eq_Prim_Op then Append_To (New_Params, Duplicate_Subexpr_Move_Checks (Param)); elsif Nkind (Parent (Param)) /= N_Parameter_Association or else not Is_Accessibility_Actual (Parent (Param)) then Append_To (New_Params, Relocate_Node (Param)); end if; Next_Actual (Param); end loop; end if; -- Generate the appropriate subprogram pointer type if Etype (Subp) = Typ then Res_Typ := CW_Typ; else Res_Typ := Etype (Subp); end if; Subp_Typ := Create_Itype (E_Subprogram_Type, Call_Node); Subp_Ptr_Typ := Create_Itype (E_Access_Subprogram_Type, Call_Node); Set_Etype (Subp_Typ, Res_Typ); Set_Returns_By_Ref (Subp_Typ, Returns_By_Ref (Subp)); Set_Convention (Subp_Typ, Convention (Subp)); -- Notify gigi that the designated type is a dispatching primitive Set_Is_Dispatch_Table_Entity (Subp_Typ); -- Create a new list of parameters which is a copy of the old formal -- list including the creation of a new set of matching entities. declare Old_Formal : Entity_Id := First_Formal (Subp); New_Formal : Entity_Id; Last_Formal : Entity_Id := Empty; begin if Present (Old_Formal) then New_Formal := New_Copy (Old_Formal); Set_First_Entity (Subp_Typ, New_Formal); Param := First_Actual (Call_Node); loop Set_Scope (New_Formal, Subp_Typ); -- Change all the controlling argument types to be class-wide -- to avoid a recursion in dispatching. if Is_Controlling_Formal (New_Formal) then Set_Etype (New_Formal, Etype (Param)); end if; -- If the type of the formal is an itype, there was code here -- introduced in 1998 in revision 1.46, to create a new itype -- by copy. This seems useless, and in fact leads to semantic -- errors when the itype is the completion of a type derived -- from a private type. Last_Formal := New_Formal; Next_Formal (Old_Formal); exit when No (Old_Formal); Link_Entities (New_Formal, New_Copy (Old_Formal)); Next_Entity (New_Formal); Next_Actual (Param); end loop; Unlink_Next_Entity (New_Formal); Set_Last_Entity (Subp_Typ, Last_Formal); end if; -- Now that the explicit formals have been duplicated, any extra -- formals needed by the subprogram must be duplicated; we know -- that extra formals are available because they were added when -- the tagged type was frozen (see Expand_Freeze_Record_Type). pragma Assert (Is_Frozen (Typ)); -- Warning: The addition of the extra formals cannot be performed -- here invoking Create_Extra_Formals since we must ensure that all -- the extra formals of the pointer type and the target subprogram -- match (and for functions that return a tagged type the profile of -- the built subprogram type always returns a class-wide type, which -- may affect the addition of some extra formals). if Present (Last_Formal) and then Present (Extra_Formal (Last_Formal)) then Old_Formal := Extra_Formal (Last_Formal); New_Formal := New_Copy (Old_Formal); Set_Scope (New_Formal, Subp_Typ); Set_Extra_Formal (Last_Formal, New_Formal); Set_Extra_Formals (Subp_Typ, New_Formal); if Ekind (Subp) = E_Function and then Present (Extra_Accessibility_Of_Result (Subp)) and then Extra_Accessibility_Of_Result (Subp) = Old_Formal then Set_Extra_Accessibility_Of_Result (Subp_Typ, New_Formal); end if; Old_Formal := Extra_Formal (Old_Formal); while Present (Old_Formal) loop Set_Extra_Formal (New_Formal, New_Copy (Old_Formal)); New_Formal := Extra_Formal (New_Formal); Set_Scope (New_Formal, Subp_Typ); if Ekind (Subp) = E_Function and then Present (Extra_Accessibility_Of_Result (Subp)) and then Extra_Accessibility_Of_Result (Subp) = Old_Formal then Set_Extra_Accessibility_Of_Result (Subp_Typ, New_Formal); end if; Old_Formal := Extra_Formal (Old_Formal); end loop; end if; end; -- Complete description of pointer type, including size information, as -- must be done with itypes to prevent order-of-elaboration anomalies -- in gigi. Set_Etype (Subp_Ptr_Typ, Subp_Ptr_Typ); Set_Directly_Designated_Type (Subp_Ptr_Typ, Subp_Typ); Set_Convention (Subp_Ptr_Typ, Convention (Subp_Typ)); Layout_Type (Subp_Ptr_Typ); -- If the controlling argument is a value of type Ada.Tag or an abstract -- interface class-wide type then use it directly. Otherwise, the tag -- must be extracted from the controlling object. if Ctrl_Typ = RTE (RE_Tag) or else (RTE_Available (RE_Interface_Tag) and then Ctrl_Typ = RTE (RE_Interface_Tag)) then Controlling_Tag := Duplicate_Subexpr (Ctrl_Arg); -- Extract the tag from an unchecked type conversion. Done to avoid -- the expansion of additional code just to obtain the value of such -- tag because the current management of interface type conversions -- generates in some cases this unchecked type conversion with the -- tag of the object (see Expand_Interface_Conversion). elsif Nkind (Ctrl_Arg) = N_Unchecked_Type_Conversion and then (Etype (Expression (Ctrl_Arg)) = RTE (RE_Tag) or else (RTE_Available (RE_Interface_Tag) and then Etype (Expression (Ctrl_Arg)) = RTE (RE_Interface_Tag))) then Controlling_Tag := Duplicate_Subexpr (Expression (Ctrl_Arg)); -- Ada 2005 (AI-251): Abstract interface class-wide type elsif Is_Interface (Ctrl_Typ) and then Is_Class_Wide_Type (Ctrl_Typ) then Controlling_Tag := Duplicate_Subexpr (Ctrl_Arg); elsif Is_Access_Type (Ctrl_Typ) then Controlling_Tag := Make_Selected_Component (Loc, Prefix => Make_Explicit_Dereference (Loc, Duplicate_Subexpr_Move_Checks (Ctrl_Arg)), Selector_Name => New_Occurrence_Of (DTC_Entity (Subp), Loc)); else Controlling_Tag := Make_Selected_Component (Loc, Prefix => Duplicate_Subexpr_Move_Checks (Ctrl_Arg), Selector_Name => New_Occurrence_Of (DTC_Entity (Subp), Loc)); end if; -- Handle dispatching calls to predefined primitives if Is_Predefined_Dispatching_Operation (Subp) or else Is_Predefined_Dispatching_Alias (Subp) then Build_Get_Predefined_Prim_Op_Address (Loc, Tag_Node => Controlling_Tag, Position => DT_Position (Subp), New_Node => New_Node); -- Handle dispatching calls to user-defined primitives else Build_Get_Prim_Op_Address (Loc, Typ => Underlying_Type (Find_Dispatching_Type (Subp)), Tag_Node => Controlling_Tag, Position => DT_Position (Subp), New_Node => New_Node); end if; New_Call_Name := Unchecked_Convert_To (Subp_Ptr_Typ, New_Node); -- Generate the SCIL node for this dispatching call. Done now because -- attribute SCIL_Controlling_Tag must be set after the new call name -- is built to reference the nodes that will see the SCIL backend -- (because Build_Get_Prim_Op_Address generates an unchecked type -- conversion which relocates the controlling tag node). if Generate_SCIL then SCIL_Node := Make_SCIL_Dispatching_Call (Sloc (Call_Node)); Set_SCIL_Entity (SCIL_Node, Typ); Set_SCIL_Target_Prim (SCIL_Node, Subp); -- Common case: the controlling tag is the tag of an object -- (for example, obj.tag) if Nkind (Controlling_Tag) = N_Selected_Component then Set_SCIL_Controlling_Tag (SCIL_Node, Controlling_Tag); -- Handle renaming of selected component elsif Nkind (Controlling_Tag) = N_Identifier and then Nkind (Parent (Entity (Controlling_Tag))) = N_Object_Renaming_Declaration and then Nkind (Name (Parent (Entity (Controlling_Tag)))) = N_Selected_Component then Set_SCIL_Controlling_Tag (SCIL_Node, Name (Parent (Entity (Controlling_Tag)))); -- If the controlling tag is an identifier, the SCIL node references -- the corresponding object or parameter declaration elsif Nkind (Controlling_Tag) = N_Identifier and then Nkind (Parent (Entity (Controlling_Tag))) in N_Object_Declaration | N_Parameter_Specification then Set_SCIL_Controlling_Tag (SCIL_Node, Parent (Entity (Controlling_Tag))); -- If the controlling tag is a dereference, the SCIL node references -- the corresponding object or parameter declaration elsif Nkind (Controlling_Tag) = N_Explicit_Dereference and then Nkind (Prefix (Controlling_Tag)) = N_Identifier and then Nkind (Parent (Entity (Prefix (Controlling_Tag)))) in N_Object_Declaration | N_Parameter_Specification then Set_SCIL_Controlling_Tag (SCIL_Node, Parent (Entity (Prefix (Controlling_Tag)))); -- For a direct reference of the tag of the type the SCIL node -- references the internal object declaration containing the tag -- of the type. elsif Nkind (Controlling_Tag) = N_Attribute_Reference and then Attribute_Name (Controlling_Tag) = Name_Tag then Set_SCIL_Controlling_Tag (SCIL_Node, Parent (Node (First_Elmt (Access_Disp_Table (Entity (Prefix (Controlling_Tag))))))); -- Interfaces are not supported. For now we leave the SCIL node -- decorated with the Controlling_Tag. More work needed here??? elsif Is_Interface (Etype (Controlling_Tag)) then Set_SCIL_Controlling_Tag (SCIL_Node, Controlling_Tag); else pragma Assert (False); null; end if; end if; if Nkind (Call_Node) = N_Function_Call then New_Call := Make_Function_Call (Loc, Name => New_Call_Name, Parameter_Associations => New_Params); -- If this is a dispatching "=", we must first compare the tags so -- we generate: x.tag = y.tag and then x = y if Subp = Eq_Prim_Op then Param := First_Actual (Call_Node); New_Call := Make_And_Then (Loc, Left_Opnd => Make_Op_Eq (Loc, Left_Opnd => Make_Selected_Component (Loc, Prefix => New_Value (Param), Selector_Name => New_Occurrence_Of (First_Tag_Component (Typ), Loc)), Right_Opnd => Make_Selected_Component (Loc, Prefix => Unchecked_Convert_To (Typ, New_Value (Next_Actual (Param))), Selector_Name => New_Occurrence_Of (First_Tag_Component (Typ), Loc))), Right_Opnd => New_Call); SCIL_Related_Node := Right_Opnd (New_Call); end if; else New_Call := Make_Procedure_Call_Statement (Loc, Name => New_Call_Name, Parameter_Associations => New_Params); end if; -- Register the dispatching call in the call graph nodes table Register_CG_Node (Call_Node); Rewrite (Call_Node, New_Call); -- Associate the SCIL node of this dispatching call if Generate_SCIL then Set_SCIL_Node (SCIL_Related_Node, SCIL_Node); end if; -- Suppress all checks during the analysis of the expanded code to avoid -- the generation of spurious warnings under ZFP run-time. Analyze_And_Resolve (Call_Node, Call_Typ, Suppress => All_Checks); end Expand_Dispatching_Call; --------------------------------- -- Expand_Interface_Conversion -- --------------------------------- procedure Expand_Interface_Conversion (N : Node_Id) is function Underlying_Record_Type (Typ : Entity_Id) return Entity_Id; -- Return the underlying record type of Typ ---------------------------- -- Underlying_Record_Type -- ---------------------------- function Underlying_Record_Type (Typ : Entity_Id) return Entity_Id is E : Entity_Id := Typ; begin -- Handle access types if Is_Access_Type (E) then E := Directly_Designated_Type (E); end if; -- Handle class-wide types. This conversion can appear explicitly in -- the source code. Example: I'Class (Obj) if Is_Class_Wide_Type (E) then E := Root_Type (E); end if; -- If the target type is a tagged synchronized type, the dispatch -- table info is in the corresponding record type. if Is_Concurrent_Type (E) then E := Corresponding_Record_Type (E); end if; -- Handle private types E := Underlying_Type (E); -- Handle subtypes return Base_Type (E); end Underlying_Record_Type; -- Local variables Loc : constant Source_Ptr := Sloc (N); Etyp : constant Entity_Id := Etype (N); Operand : constant Node_Id := Expression (N); Operand_Typ : Entity_Id := Etype (Operand); Func : Node_Id; Iface_Typ : constant Entity_Id := Underlying_Record_Type (Etype (N)); Iface_Tag : Entity_Id; Is_Static : Boolean; -- Start of processing for Expand_Interface_Conversion begin -- Freeze the entity associated with the target interface to have -- available the attribute Access_Disp_Table. Freeze_Before (N, Iface_Typ); -- Ada 2005 (AI-345): Handle synchronized interface type derivations if Is_Concurrent_Type (Operand_Typ) then Operand_Typ := Base_Type (Corresponding_Record_Type (Operand_Typ)); end if; -- No displacement of the pointer to the object needed when the type of -- the operand is not an interface type and the interface is one of -- its parent types (since they share the primary dispatch table). declare Opnd : Entity_Id := Operand_Typ; begin if Is_Access_Type (Opnd) then Opnd := Designated_Type (Opnd); end if; Opnd := Underlying_Record_Type (Opnd); if not Is_Interface (Opnd) and then Is_Ancestor (Iface_Typ, Opnd, Use_Full_View => True) then return; end if; -- When the type of the operand and the target interface type match, -- it is generally safe to skip generating code to displace the -- pointer to the object to reference the secondary dispatch table -- associated with the target interface type. The exception to this -- general rule is when the underlying object of the type conversion -- is an object built by means of a dispatching constructor (since in -- such case the expansion of the constructor call is a direct call -- to an object primitive, i.e. without thunks, and the expansion of -- the constructor call adds an explicit conversion to the target -- interface type to force the displacement of the pointer to the -- object to reference the corresponding secondary dispatch table -- (cf. Make_DT and Expand_Dispatching_Constructor_Call)). -- At this stage we cannot identify whether the underlying object is -- a BIP object and hence we cannot skip generating the code to try -- displacing the pointer to the object. However, under configurable -- runtime it is safe to skip generating code to displace the pointer -- to the object, because generic dispatching constructors are not -- supported. if Opnd = Iface_Typ and then not RTE_Available (RE_Displace) then return; end if; end; -- Evaluate if we can statically displace the pointer to the object declare Opnd_Typ : constant Node_Id := Underlying_Record_Type (Operand_Typ); begin Is_Static := not Is_Interface (Opnd_Typ) and then Interface_Present_In_Ancestor (Typ => Opnd_Typ, Iface => Iface_Typ) and then (Etype (Opnd_Typ) = Opnd_Typ or else not Is_Variable_Size_Record (Etype (Opnd_Typ))); end; if not Tagged_Type_Expansion then return; -- A static conversion to an interface type that is not class-wide is -- curious but legal if the interface operation is a null procedure. -- If the operation is abstract it will be rejected later. elsif Is_Static and then Is_Interface (Etype (N)) and then not Is_Class_Wide_Type (Etype (N)) and then Comes_From_Source (N) then Rewrite (N, Unchecked_Convert_To (Etype (N), N)); Analyze (N); return; end if; if not Is_Static then -- Give error if configurable run-time and Displace not available if not RTE_Available (RE_Displace) then Error_Msg_CRT ("dynamic interface conversion", N); return; end if; -- Handle conversion of access-to-class-wide interface types. Target -- can be an access to an object or an access to another class-wide -- interface (see -1- and -2- in the following example): -- type Iface1_Ref is access all Iface1'Class; -- type Iface2_Ref is access all Iface1'Class; -- Acc1 : Iface1_Ref := new ... -- Obj : Obj_Ref := Obj_Ref (Acc); -- 1 -- Acc2 : Iface2_Ref := Iface2_Ref (Acc); -- 2 if Is_Access_Type (Operand_Typ) then Rewrite (N, Unchecked_Convert_To (Etype (N), Make_Function_Call (Loc, Name => New_Occurrence_Of (RTE (RE_Displace), Loc), Parameter_Associations => New_List ( Unchecked_Convert_To (RTE (RE_Address), Relocate_Node (Expression (N))), New_Occurrence_Of (Node (First_Elmt (Access_Disp_Table (Iface_Typ))), Loc))))); Analyze (N); return; end if; Rewrite (N, Make_Function_Call (Loc, Name => New_Occurrence_Of (RTE (RE_Displace), Loc), Parameter_Associations => New_List ( Make_Attribute_Reference (Loc, Prefix => Relocate_Node (Expression (N)), Attribute_Name => Name_Address), New_Occurrence_Of (Node (First_Elmt (Access_Disp_Table (Iface_Typ))), Loc)))); Analyze (N); -- If target is a class-wide interface, change the type of the data -- returned by IW_Convert to indicate this is a dispatching call. declare New_Itype : Entity_Id; begin New_Itype := Create_Itype (E_Anonymous_Access_Type, N); Set_Etype (New_Itype, New_Itype); Set_Directly_Designated_Type (New_Itype, Etyp); Rewrite (N, Make_Explicit_Dereference (Loc, Prefix => Unchecked_Convert_To (New_Itype, Relocate_Node (N)))); Analyze (N); Freeze_Itype (New_Itype, N); return; end; end if; Iface_Tag := Find_Interface_Tag (Operand_Typ, Iface_Typ); pragma Assert (Present (Iface_Tag)); -- Keep separate access types to interfaces because one internal -- function is used to handle the null value (see following comments) if not Is_Access_Type (Etype (N)) then -- Statically displace the pointer to the object to reference the -- component containing the secondary dispatch table. Rewrite (N, Convert_Tag_To_Interface (Class_Wide_Type (Iface_Typ), Make_Selected_Component (Loc, Prefix => Relocate_Node (Expression (N)), Selector_Name => New_Occurrence_Of (Iface_Tag, Loc)))); else -- Build internal function to handle the case in which the actual is -- null. If the actual is null returns null because no displacement -- is required; otherwise performs a type conversion that will be -- expanded in the code that returns the value of the displaced -- actual. That is: -- function Func (O : Address) return Iface_Typ is -- type Op_Typ is access all Operand_Typ; -- Aux : Op_Typ := To_Op_Typ (O); -- begin -- if O = Null_Address then -- return null; -- else -- return Iface_Typ!(Aux.Iface_Tag'Address); -- end if; -- end Func; declare Desig_Typ : Entity_Id; Fent : Entity_Id; New_Typ_Decl : Node_Id; Stats : List_Id; begin Desig_Typ := Etype (Expression (N)); if Is_Access_Type (Desig_Typ) then Desig_Typ := Available_View (Directly_Designated_Type (Desig_Typ)); end if; if Is_Concurrent_Type (Desig_Typ) then Desig_Typ := Base_Type (Corresponding_Record_Type (Desig_Typ)); end if; New_Typ_Decl := Make_Full_Type_Declaration (Loc, Defining_Identifier => Make_Temporary (Loc, 'T'), Type_Definition => Make_Access_To_Object_Definition (Loc, All_Present => True, Null_Exclusion_Present => False, Constant_Present => False, Subtype_Indication => New_Occurrence_Of (Desig_Typ, Loc))); Stats := New_List ( Make_Simple_Return_Statement (Loc, Unchecked_Convert_To (Etype (N), Make_Attribute_Reference (Loc, Prefix => Make_Selected_Component (Loc, Prefix => Unchecked_Convert_To (Defining_Identifier (New_Typ_Decl), Make_Identifier (Loc, Name_uO)), Selector_Name => New_Occurrence_Of (Iface_Tag, Loc)), Attribute_Name => Name_Address)))); -- If the type is null-excluding, no need for the null branch. -- Otherwise we need to check for it and return null. if not Can_Never_Be_Null (Etype (N)) then Stats := New_List ( Make_If_Statement (Loc, Condition => Make_Op_Eq (Loc, Left_Opnd => Make_Identifier (Loc, Name_uO), Right_Opnd => New_Occurrence_Of (RTE (RE_Null_Address), Loc)), Then_Statements => New_List ( Make_Simple_Return_Statement (Loc, Make_Null (Loc))), Else_Statements => Stats)); end if; Fent := Make_Temporary (Loc, 'F'); Func := Make_Subprogram_Body (Loc, Specification => Make_Function_Specification (Loc, Defining_Unit_Name => Fent, Parameter_Specifications => New_List ( Make_Parameter_Specification (Loc, Defining_Identifier => Make_Defining_Identifier (Loc, Name_uO), Parameter_Type => New_Occurrence_Of (RTE (RE_Address), Loc))), Result_Definition => New_Occurrence_Of (Etype (N), Loc)), Declarations => New_List (New_Typ_Decl), Handled_Statement_Sequence => Make_Handled_Sequence_Of_Statements (Loc, Stats)); -- Place function body before the expression containing the -- conversion. We suppress all checks because the body of the -- internally generated function already takes care of the case -- in which the actual is null; therefore there is no need to -- double check that the pointer is not null when the program -- executes the alternative that performs the type conversion). Insert_Action (N, Func, Suppress => All_Checks); if Is_Access_Type (Etype (Expression (N))) then -- Generate: Func (Address!(Expression)) Rewrite (N, Make_Function_Call (Loc, Name => New_Occurrence_Of (Fent, Loc), Parameter_Associations => New_List ( Unchecked_Convert_To (RTE (RE_Address), Relocate_Node (Expression (N)))))); else -- Generate: Func (Operand_Typ!(Expression)'Address) Rewrite (N, Make_Function_Call (Loc, Name => New_Occurrence_Of (Fent, Loc), Parameter_Associations => New_List ( Make_Attribute_Reference (Loc, Prefix => Unchecked_Convert_To (Operand_Typ, Relocate_Node (Expression (N))), Attribute_Name => Name_Address)))); end if; end; end if; Analyze (N); end Expand_Interface_Conversion; ------------------------------ -- Expand_Interface_Actuals -- ------------------------------ procedure Expand_Interface_Actuals (Call_Node : Node_Id) is Actual : Node_Id; Actual_Dup : Node_Id; Actual_Typ : Entity_Id; Anon : Entity_Id; Conversion : Node_Id; Formal : Entity_Id; Formal_Typ : Entity_Id; Subp : Entity_Id; Formal_DDT : Entity_Id := Empty; -- initialize to prevent warning Actual_DDT : Entity_Id := Empty; -- initialize to prevent warning begin -- This subprogram is called directly from the semantics, so we need a -- check to see whether expansion is active before proceeding. if not Expander_Active then return; end if; -- Call using access to subprogram with explicit dereference if Nkind (Name (Call_Node)) = N_Explicit_Dereference then Subp := Etype (Name (Call_Node)); -- Call using selected component elsif Nkind (Name (Call_Node)) = N_Selected_Component then Subp := Entity (Selector_Name (Name (Call_Node))); -- Call using direct name else Subp := Entity (Name (Call_Node)); end if; -- Ada 2005 (AI-251): Look for interface type formals to force "this" -- displacement Formal := First_Formal (Subp); Actual := First_Actual (Call_Node); while Present (Formal) loop Formal_Typ := Etype (Formal); if Has_Non_Limited_View (Formal_Typ) then Formal_Typ := Non_Limited_View (Formal_Typ); end if; if Ekind (Formal_Typ) = E_Record_Type_With_Private then Formal_Typ := Full_View (Formal_Typ); end if; if Is_Access_Type (Formal_Typ) then Formal_DDT := Directly_Designated_Type (Formal_Typ); if Has_Non_Limited_View (Formal_DDT) then Formal_DDT := Non_Limited_View (Formal_DDT); end if; end if; Actual_Typ := Etype (Actual); if Has_Non_Limited_View (Actual_Typ) then Actual_Typ := Non_Limited_View (Actual_Typ); end if; if Is_Access_Type (Actual_Typ) then Actual_DDT := Directly_Designated_Type (Actual_Typ); if Has_Non_Limited_View (Actual_DDT) then Actual_DDT := Non_Limited_View (Actual_DDT); end if; end if; if Is_Interface (Formal_Typ) and then Is_Class_Wide_Type (Formal_Typ) then -- No need to displace the pointer if the type of the actual -- coincides with the type of the formal. if Actual_Typ = Formal_Typ then null; -- No need to displace the pointer if the interface type is a -- parent of the type of the actual because in this case the -- interface primitives are located in the primary dispatch table. elsif Is_Ancestor (Formal_Typ, Actual_Typ, Use_Full_View => True) then null; -- Implicit conversion to the class-wide formal type to force the -- displacement of the pointer. else -- Normally, expansion of actuals for calls to build-in-place -- functions happens as part of Expand_Actuals, but in this -- case the call will be wrapped in a conversion and soon after -- expanded further to handle the displacement for a class-wide -- interface conversion, so if this is a BIP call then we need -- to handle it now. if Is_Build_In_Place_Function_Call (Actual) then Make_Build_In_Place_Call_In_Anonymous_Context (Actual); end if; Conversion := Convert_To (Formal_Typ, Relocate_Node (Actual)); Rewrite (Actual, Conversion); Analyze_And_Resolve (Actual, Formal_Typ); end if; -- Access to class-wide interface type elsif Is_Access_Type (Formal_Typ) and then Is_Interface (Formal_DDT) and then Is_Class_Wide_Type (Formal_DDT) and then Interface_Present_In_Ancestor (Typ => Actual_DDT, Iface => Etype (Formal_DDT)) then -- Handle attributes 'Access and 'Unchecked_Access if Nkind (Actual) = N_Attribute_Reference and then (Attribute_Name (Actual) = Name_Access or else Attribute_Name (Actual) = Name_Unchecked_Access) then -- This case must have been handled by the analysis and -- expansion of 'Access. The only exception is when types -- match and no further expansion is required. pragma Assert (Base_Type (Etype (Prefix (Actual))) = Base_Type (Formal_DDT)); null; -- No need to displace the pointer if the type of the actual -- coincides with the type of the formal. elsif Actual_DDT = Formal_DDT then null; -- No need to displace the pointer if the interface type is -- a parent of the type of the actual because in this case the -- interface primitives are located in the primary dispatch table. elsif Is_Ancestor (Formal_DDT, Actual_DDT, Use_Full_View => True) then null; else Actual_Dup := Relocate_Node (Actual); if From_Limited_With (Actual_Typ) then -- If the type of the actual parameter comes from a limited -- with_clause and the nonlimited view is already available, -- we replace the anonymous access type by a duplicate -- declaration whose designated type is the nonlimited view. if Has_Non_Limited_View (Actual_DDT) then Anon := New_Copy (Actual_Typ); if Is_Itype (Anon) then Set_Scope (Anon, Current_Scope); end if; Set_Directly_Designated_Type (Anon, Non_Limited_View (Actual_DDT)); Set_Etype (Actual_Dup, Anon); end if; end if; Conversion := Convert_To (Formal_Typ, Actual_Dup); Rewrite (Actual, Conversion); Analyze_And_Resolve (Actual, Formal_Typ); end if; end if; Next_Actual (Actual); Next_Formal (Formal); end loop; end Expand_Interface_Actuals; ---------------------------- -- Expand_Interface_Thunk -- ---------------------------- procedure Expand_Interface_Thunk (Prim : Node_Id; Thunk_Id : out Entity_Id; Thunk_Code : out Node_Id; Iface : Entity_Id) is Loc : constant Source_Ptr := Sloc (Prim); Actuals : constant List_Id := New_List; Decl : constant List_Id := New_List; Formals : constant List_Id := New_List; Target : constant Entity_Id := Ultimate_Alias (Prim); Decl_1 : Node_Id; Decl_2 : Node_Id; Expr : Node_Id; Formal : Node_Id; Ftyp : Entity_Id; Iface_Formal : Node_Id := Empty; -- initialize to prevent warning Is_Predef_Op : constant Boolean := Is_Predefined_Dispatching_Operation (Prim) or else Is_Predefined_Dispatching_Operation (Target); New_Arg : Node_Id; Offset_To_Top : Node_Id; Target_Formal : Entity_Id; begin Thunk_Id := Empty; Thunk_Code := Empty; -- No thunk needed if the primitive has been eliminated if Is_Eliminated (Target) then return; -- In case of primitives that are functions without formals and a -- controlling result there is no need to build the thunk. elsif not Present (First_Formal (Target)) then pragma Assert (Ekind (Target) = E_Function and then Has_Controlling_Result (Target)); return; end if; -- Duplicate the formals of the Target primitive. In the thunk, the type -- of the controlling formal is the covered interface type (instead of -- the target tagged type). Done to avoid problems with discriminated -- tagged types because, if the controlling type has discriminants with -- default values, then the type conversions done inside the body of -- the thunk (after the displacement of the pointer to the base of the -- actual object) generate code that modify its contents. -- Note: This special management is not done for predefined primitives -- because they don't have available the Interface_Alias attribute (see -- Sem_Ch3.Add_Internal_Interface_Entities). if not Is_Predef_Op then Iface_Formal := First_Formal (Interface_Alias (Prim)); end if; Formal := First_Formal (Target); while Present (Formal) loop Ftyp := Etype (Formal); -- Use the interface type as the type of the controlling formal (see -- comment above). if not Is_Controlling_Formal (Formal) then Ftyp := Etype (Formal); Expr := New_Copy_Tree (Expression (Parent (Formal))); -- For predefined primitives the controlling type of the thunk is -- the interface type passed by the caller (since they don't have -- available the Interface_Alias attribute; see comment above). elsif Is_Predef_Op then Ftyp := Iface; Expr := Empty; else Ftyp := Etype (Iface_Formal); Expr := Empty; -- Sanity check performed to ensure the proper controlling type -- when the thunk has exactly one controlling parameter and it -- comes first. In such case the GCC backend reuses the C++ -- thunks machinery which perform a computation equivalent to -- the code generated by the expander; for other cases the GCC -- backend translates the expanded code unmodified. However, as -- a generalization, the check is performed for all controlling -- types. if Is_Access_Type (Ftyp) then pragma Assert (Base_Type (Designated_Type (Ftyp)) = Iface); null; else Ftyp := Base_Type (Ftyp); pragma Assert (Ftyp = Iface); end if; end if; Append_To (Formals, Make_Parameter_Specification (Loc, Defining_Identifier => Make_Defining_Identifier (Sloc (Formal), Chars => Chars (Formal)), In_Present => In_Present (Parent (Formal)), Out_Present => Out_Present (Parent (Formal)), Parameter_Type => New_Occurrence_Of (Ftyp, Loc), Expression => Expr)); if not Is_Predef_Op then Next_Formal (Iface_Formal); end if; Next_Formal (Formal); end loop; Target_Formal := First_Formal (Target); Formal := First (Formals); while Present (Formal) loop -- If the parent is a constrained discriminated type, then the -- primitive operation will have been defined on a first subtype. -- For proper matching with controlling type, use base type. if Ekind (Target_Formal) = E_In_Parameter and then Ekind (Etype (Target_Formal)) = E_Anonymous_Access_Type then Ftyp := Base_Type (Directly_Designated_Type (Etype (Target_Formal))); else Ftyp := Base_Type (Etype (Target_Formal)); end if; -- For concurrent types, the relevant information is found in the -- Corresponding_Record_Type, rather than the type entity itself. if Is_Concurrent_Type (Ftyp) then Ftyp := Corresponding_Record_Type (Ftyp); end if; if Ekind (Target_Formal) = E_In_Parameter and then Ekind (Etype (Target_Formal)) = E_Anonymous_Access_Type and then Is_Controlling_Formal (Target_Formal) then -- Generate: -- type T is access all <<type of the target formal>> -- S : Storage_Offset := Storage_Offset!(Formal) -- + Offset_To_Top (address!(Formal)) Decl_2 := Make_Full_Type_Declaration (Loc, Defining_Identifier => Make_Temporary (Loc, 'T'), Type_Definition => Make_Access_To_Object_Definition (Loc, All_Present => True, Null_Exclusion_Present => False, Constant_Present => False, Subtype_Indication => New_Occurrence_Of (Ftyp, Loc))); New_Arg := Unchecked_Convert_To (RTE (RE_Address), New_Occurrence_Of (Defining_Identifier (Formal), Loc)); if not RTE_Available (RE_Offset_To_Top) then Offset_To_Top := Build_Offset_To_Top (Loc, New_Arg); else Offset_To_Top := Make_Function_Call (Loc, Name => New_Occurrence_Of (RTE (RE_Offset_To_Top), Loc), Parameter_Associations => New_List (New_Arg)); end if; Decl_1 := Make_Object_Declaration (Loc, Defining_Identifier => Make_Temporary (Loc, 'S'), Constant_Present => True, Object_Definition => New_Occurrence_Of (RTE (RE_Storage_Offset), Loc), Expression => Make_Op_Add (Loc, Left_Opnd => Unchecked_Convert_To (RTE (RE_Storage_Offset), New_Occurrence_Of (Defining_Identifier (Formal), Loc)), Right_Opnd => Offset_To_Top)); Append_To (Decl, Decl_2); Append_To (Decl, Decl_1); -- Reference the new actual. Generate: -- T!(S) Append_To (Actuals, Unchecked_Convert_To (Defining_Identifier (Decl_2), New_Occurrence_Of (Defining_Identifier (Decl_1), Loc))); elsif Is_Controlling_Formal (Target_Formal) then -- Generate: -- S1 : Storage_Offset := Storage_Offset!(Formal'Address) -- + Offset_To_Top (Formal'Address) -- S2 : Addr_Ptr := Addr_Ptr!(S1) New_Arg := Make_Attribute_Reference (Loc, Prefix => New_Occurrence_Of (Defining_Identifier (Formal), Loc), Attribute_Name => Name_Address); if not RTE_Available (RE_Offset_To_Top) then Offset_To_Top := Build_Offset_To_Top (Loc, New_Arg); else Offset_To_Top := Make_Function_Call (Loc, Name => New_Occurrence_Of (RTE (RE_Offset_To_Top), Loc), Parameter_Associations => New_List (New_Arg)); end if; Decl_1 := Make_Object_Declaration (Loc, Defining_Identifier => Make_Temporary (Loc, 'S'), Constant_Present => True, Object_Definition => New_Occurrence_Of (RTE (RE_Storage_Offset), Loc), Expression => Make_Op_Add (Loc, Left_Opnd => Unchecked_Convert_To (RTE (RE_Storage_Offset), Make_Attribute_Reference (Loc, Prefix => New_Occurrence_Of (Defining_Identifier (Formal), Loc), Attribute_Name => Name_Address)), Right_Opnd => Offset_To_Top)); Decl_2 := Make_Object_Declaration (Loc, Defining_Identifier => Make_Temporary (Loc, 'S'), Constant_Present => True, Object_Definition => New_Occurrence_Of (RTE (RE_Addr_Ptr), Loc), Expression => Unchecked_Convert_To (RTE (RE_Addr_Ptr), New_Occurrence_Of (Defining_Identifier (Decl_1), Loc))); Append_To (Decl, Decl_1); Append_To (Decl, Decl_2); -- Reference the new actual, generate: -- Target_Formal (S2.all) Append_To (Actuals, Unchecked_Convert_To (Ftyp, Make_Explicit_Dereference (Loc, New_Occurrence_Of (Defining_Identifier (Decl_2), Loc)))); -- Ensure proper matching of access types. Required to avoid -- reporting spurious errors. elsif Is_Access_Type (Etype (Target_Formal)) then Append_To (Actuals, Unchecked_Convert_To (Base_Type (Etype (Target_Formal)), New_Occurrence_Of (Defining_Identifier (Formal), Loc))); -- No special management required for this actual else Append_To (Actuals, New_Occurrence_Of (Defining_Identifier (Formal), Loc)); end if; Next_Formal (Target_Formal); Next (Formal); end loop; Thunk_Id := Make_Temporary (Loc, 'T'); -- Note: any change to this symbol name needs to be coordinated -- with GNATcoverage, as that tool relies on it to identify -- thunks and exclude them from source coverage analysis. Set_Ekind (Thunk_Id, Ekind (Prim)); Set_Is_Thunk (Thunk_Id); Set_Convention (Thunk_Id, Convention (Prim)); Set_Needs_Debug_Info (Thunk_Id, Needs_Debug_Info (Target)); Set_Thunk_Entity (Thunk_Id, Target); -- Procedure case if Ekind (Target) = E_Procedure then Thunk_Code := Make_Subprogram_Body (Loc, Specification => Make_Procedure_Specification (Loc, Defining_Unit_Name => Thunk_Id, Parameter_Specifications => Formals), Declarations => Decl, Handled_Statement_Sequence => Make_Handled_Sequence_Of_Statements (Loc, Statements => New_List ( Make_Procedure_Call_Statement (Loc, Name => New_Occurrence_Of (Target, Loc), Parameter_Associations => Actuals)))); -- Function case else pragma Assert (Ekind (Target) = E_Function); declare Result_Def : Node_Id; Call_Node : Node_Id; begin Call_Node := Make_Function_Call (Loc, Name => New_Occurrence_Of (Target, Loc), Parameter_Associations => Actuals); if not Is_Interface (Etype (Prim)) then Result_Def := New_Copy (Result_Definition (Parent (Target))); -- Thunk of function returning a class-wide interface object. No -- extra displacement needed since the displacement is generated -- in the return statement of Prim. Example: -- type Iface is interface ... -- function F (O : Iface) return Iface'Class; -- type T is new ... and Iface with ... -- function F (O : T) return Iface'Class; elsif Is_Class_Wide_Type (Etype (Prim)) then Result_Def := New_Occurrence_Of (Etype (Prim), Loc); -- Thunk of function returning an interface object. Displacement -- needed. Example: -- type Iface is interface ... -- function F (O : Iface) return Iface; -- type T is new ... and Iface with ... -- function F (O : T) return T; else Result_Def := New_Occurrence_Of (Class_Wide_Type (Etype (Prim)), Loc); -- Adding implicit conversion to force the displacement of -- the pointer to the object to reference the corresponding -- secondary dispatch table. Call_Node := Make_Type_Conversion (Loc, Subtype_Mark => New_Occurrence_Of (Class_Wide_Type (Etype (Prim)), Loc), Expression => Relocate_Node (Call_Node)); end if; Thunk_Code := Make_Subprogram_Body (Loc, Specification => Make_Function_Specification (Loc, Defining_Unit_Name => Thunk_Id, Parameter_Specifications => Formals, Result_Definition => Result_Def), Declarations => Decl, Handled_Statement_Sequence => Make_Handled_Sequence_Of_Statements (Loc, Statements => New_List ( Make_Simple_Return_Statement (Loc, Call_Node)))); end; end if; end Expand_Interface_Thunk; -------------------------- -- Has_CPP_Constructors -- -------------------------- function Has_CPP_Constructors (Typ : Entity_Id) return Boolean is E : Entity_Id; begin -- Look for the constructor entities E := Next_Entity (Typ); while Present (E) loop if Ekind (E) = E_Function and then Is_Constructor (E) then return True; end if; Next_Entity (E); end loop; return False; end Has_CPP_Constructors; ------------ -- Has_DT -- ------------ function Has_DT (Typ : Entity_Id) return Boolean is begin return not Is_Interface (Typ) and then not Restriction_Active (No_Dispatching_Calls); end Has_DT; ---------------------------------- -- Is_Expanded_Dispatching_Call -- ---------------------------------- function Is_Expanded_Dispatching_Call (N : Node_Id) return Boolean is begin return Nkind (N) in N_Subprogram_Call and then Nkind (Name (N)) = N_Explicit_Dereference and then Is_Dispatch_Table_Entity (Etype (Name (N))); end Is_Expanded_Dispatching_Call; ------------------------------------- -- Is_Predefined_Dispatching_Alias -- ------------------------------------- function Is_Predefined_Dispatching_Alias (Prim : Entity_Id) return Boolean is begin return not Is_Predefined_Dispatching_Operation (Prim) and then Present (Alias (Prim)) and then Is_Predefined_Dispatching_Operation (Ultimate_Alias (Prim)); end Is_Predefined_Dispatching_Alias; ---------------------------------------- -- Make_Disp_Asynchronous_Select_Body -- ---------------------------------------- -- For interface types, generate: -- procedure _Disp_Asynchronous_Select -- (T : in out <Typ>; -- S : Integer; -- P : System.Address; -- B : out System.Storage_Elements.Dummy_Communication_Block; -- F : out Boolean) -- is -- begin -- F := False; -- C := Ada.Tags.POK_Function; -- end _Disp_Asynchronous_Select; -- For protected types, generate: -- procedure _Disp_Asynchronous_Select -- (T : in out <Typ>; -- S : Integer; -- P : System.Address; -- B : out System.Storage_Elements.Dummy_Communication_Block; -- F : out Boolean) -- is -- I : Integer := -- Ada.Tags.Get_Entry_Index (Ada.Tags.Tag (<Typ>VP, S)); -- Bnn : System.Tasking.Protected_Objects.Operations. -- Communication_Block; -- begin -- System.Tasking.Protected_Objects.Operations.Protected_Entry_Call -- (T._object'Access, -- System.Tasking.Protected_Objects.Protected_Entry_Index (I), -- P, -- System.Tasking.Asynchronous_Call, -- Bnn); -- B := System.Storage_Elements.Dummy_Communication_Block (Bnn); -- end _Disp_Asynchronous_Select; -- For task types, generate: -- procedure _Disp_Asynchronous_Select -- (T : in out <Typ>; -- S : Integer; -- P : System.Address; -- B : out System.Storage_Elements.Dummy_Communication_Block; -- F : out Boolean) -- is -- I : Integer := -- Ada.Tags.Get_Entry_Index (Ada.Tags.Tag (<Typ>VP, S)); -- begin -- System.Tasking.Rendezvous.Task_Entry_Call -- (T._task_id, -- System.Tasking.Task_Entry_Index (I), -- P, -- System.Tasking.Asynchronous_Call, -- F); -- end _Disp_Asynchronous_Select; function Make_Disp_Asynchronous_Select_Body (Typ : Entity_Id) return Node_Id is Com_Block : Entity_Id; Conc_Typ : Entity_Id := Empty; Decls : constant List_Id := New_List; Loc : constant Source_Ptr := Sloc (Typ); Obj_Ref : Node_Id; Stmts : constant List_Id := New_List; Tag_Node : Node_Id; begin pragma Assert (not Restriction_Active (No_Dispatching_Calls)); -- Null body is generated for interface types if Is_Interface (Typ) then return Make_Subprogram_Body (Loc, Specification => Make_Disp_Asynchronous_Select_Spec (Typ), Declarations => New_List, Handled_Statement_Sequence => Make_Handled_Sequence_Of_Statements (Loc, New_List ( Make_Assignment_Statement (Loc, Name => Make_Identifier (Loc, Name_uF), Expression => New_Occurrence_Of (Standard_False, Loc))))); end if; if Is_Concurrent_Record_Type (Typ) then Conc_Typ := Corresponding_Concurrent_Type (Typ); -- Generate: -- I : Integer := -- Ada.Tags.Get_Entry_Index (Ada.Tags.Tag! (<type>VP), S); -- where I will be used to capture the entry index of the primitive -- wrapper at position S. if Tagged_Type_Expansion then Tag_Node := Unchecked_Convert_To (RTE (RE_Tag), New_Occurrence_Of (Node (First_Elmt (Access_Disp_Table (Typ))), Loc)); else Tag_Node := Make_Attribute_Reference (Loc, Prefix => New_Occurrence_Of (Typ, Loc), Attribute_Name => Name_Tag); end if; Append_To (Decls, Make_Object_Declaration (Loc, Defining_Identifier => Make_Defining_Identifier (Loc, Name_uI), Object_Definition => New_Occurrence_Of (Standard_Integer, Loc), Expression => Make_Function_Call (Loc, Name => New_Occurrence_Of (RTE (RE_Get_Entry_Index), Loc), Parameter_Associations => New_List (Tag_Node, Make_Identifier (Loc, Name_uS))))); if Ekind (Conc_Typ) = E_Protected_Type then -- Generate: -- Bnn : Communication_Block; Com_Block := Make_Temporary (Loc, 'B'); Append_To (Decls, Make_Object_Declaration (Loc, Defining_Identifier => Com_Block, Object_Definition => New_Occurrence_Of (RTE (RE_Communication_Block), Loc))); -- Build T._object'Access for calls below Obj_Ref := Make_Attribute_Reference (Loc, Attribute_Name => Name_Unchecked_Access, Prefix => Make_Selected_Component (Loc, Prefix => Make_Identifier (Loc, Name_uT), Selector_Name => Make_Identifier (Loc, Name_uObject))); case Corresponding_Runtime_Package (Conc_Typ) is when System_Tasking_Protected_Objects_Entries => -- Generate: -- Protected_Entry_Call -- (T._object'Access, -- Object -- Protected_Entry_Index! (I), -- E -- P, -- Uninterpreted_Data -- Asynchronous_Call, -- Mode -- Bnn); -- Communication_Block -- where T is the protected object, I is the entry index, P -- is the wrapped parameters and B is the name of the -- communication block. Append_To (Stmts, Make_Procedure_Call_Statement (Loc, Name => New_Occurrence_Of (RTE (RE_Protected_Entry_Call), Loc), Parameter_Associations => New_List ( Obj_Ref, Make_Unchecked_Type_Conversion (Loc, -- entry index Subtype_Mark => New_Occurrence_Of (RTE (RE_Protected_Entry_Index), Loc), Expression => Make_Identifier (Loc, Name_uI)), Make_Identifier (Loc, Name_uP), -- parameter block New_Occurrence_Of -- Asynchronous_Call (RTE (RE_Asynchronous_Call), Loc), New_Occurrence_Of -- comm block (Com_Block, Loc)))); when others => raise Program_Error; end case; -- Generate: -- B := Dummy_Communication_Block (Bnn); Append_To (Stmts, Make_Assignment_Statement (Loc, Name => Make_Identifier (Loc, Name_uB), Expression => Make_Unchecked_Type_Conversion (Loc, Subtype_Mark => New_Occurrence_Of (RTE (RE_Dummy_Communication_Block), Loc), Expression => New_Occurrence_Of (Com_Block, Loc)))); -- Generate: -- F := False; Append_To (Stmts, Make_Assignment_Statement (Loc, Name => Make_Identifier (Loc, Name_uF), Expression => New_Occurrence_Of (Standard_False, Loc))); else pragma Assert (Ekind (Conc_Typ) = E_Task_Type); -- Generate: -- Task_Entry_Call -- (T._task_id, -- Acceptor -- Task_Entry_Index! (I), -- E -- P, -- Uninterpreted_Data -- Asynchronous_Call, -- Mode -- F); -- Rendezvous_Successful -- where T is the task object, I is the entry index, P is the -- wrapped parameters and F is the status flag. Append_To (Stmts, Make_Procedure_Call_Statement (Loc, Name => New_Occurrence_Of (RTE (RE_Task_Entry_Call), Loc), Parameter_Associations => New_List ( Make_Selected_Component (Loc, -- T._task_id Prefix => Make_Identifier (Loc, Name_uT), Selector_Name => Make_Identifier (Loc, Name_uTask_Id)), Make_Unchecked_Type_Conversion (Loc, -- entry index Subtype_Mark => New_Occurrence_Of (RTE (RE_Task_Entry_Index), Loc), Expression => Make_Identifier (Loc, Name_uI)), Make_Identifier (Loc, Name_uP), -- parameter block New_Occurrence_Of -- Asynchronous_Call (RTE (RE_Asynchronous_Call), Loc), Make_Identifier (Loc, Name_uF)))); -- status flag end if; else -- Ensure that the statements list is non-empty Append_To (Stmts, Make_Assignment_Statement (Loc, Name => Make_Identifier (Loc, Name_uF), Expression => New_Occurrence_Of (Standard_False, Loc))); end if; return Make_Subprogram_Body (Loc, Specification => Make_Disp_Asynchronous_Select_Spec (Typ), Declarations => Decls, Handled_Statement_Sequence => Make_Handled_Sequence_Of_Statements (Loc, Stmts)); end Make_Disp_Asynchronous_Select_Body; ---------------------------------------- -- Make_Disp_Asynchronous_Select_Spec -- ---------------------------------------- function Make_Disp_Asynchronous_Select_Spec (Typ : Entity_Id) return Node_Id is Loc : constant Source_Ptr := Sloc (Typ); B_Id : constant Entity_Id := Make_Defining_Identifier (Loc, Name_uB); Def_Id : constant Entity_Id := Make_Defining_Identifier (Loc, Name_uDisp_Asynchronous_Select); Params : constant List_Id := New_List; begin pragma Assert (not Restriction_Active (No_Dispatching_Calls)); -- T : in out Typ; -- Object parameter -- S : Integer; -- Primitive operation slot -- P : Address; -- Wrapped parameters -- B : out Dummy_Communication_Block; -- Communication block dummy -- F : out Boolean; -- Status flag -- The B parameter may be left uninitialized Set_Warnings_Off (B_Id); Append_List_To (Params, New_List ( Make_Parameter_Specification (Loc, Defining_Identifier => Make_Defining_Identifier (Loc, Name_uT), Parameter_Type => New_Occurrence_Of (Typ, Loc), In_Present => True, Out_Present => True), Make_Parameter_Specification (Loc, Defining_Identifier => Make_Defining_Identifier (Loc, Name_uS), Parameter_Type => New_Occurrence_Of (Standard_Integer, Loc)), Make_Parameter_Specification (Loc, Defining_Identifier => Make_Defining_Identifier (Loc, Name_uP), Parameter_Type => New_Occurrence_Of (RTE (RE_Address), Loc)), Make_Parameter_Specification (Loc, Defining_Identifier => B_Id, Parameter_Type => New_Occurrence_Of (RTE (RE_Dummy_Communication_Block), Loc), Out_Present => True), Make_Parameter_Specification (Loc, Defining_Identifier => Make_Defining_Identifier (Loc, Name_uF), Parameter_Type => New_Occurrence_Of (Standard_Boolean, Loc), Out_Present => True))); return Make_Procedure_Specification (Loc, Defining_Unit_Name => Def_Id, Parameter_Specifications => Params); end Make_Disp_Asynchronous_Select_Spec; --------------------------------------- -- Make_Disp_Conditional_Select_Body -- --------------------------------------- -- For interface types, generate: -- procedure _Disp_Conditional_Select -- (T : in out <Typ>; -- S : Integer; -- P : System.Address; -- C : out Ada.Tags.Prim_Op_Kind; -- F : out Boolean) -- is -- begin -- F := False; -- C := Ada.Tags.POK_Function; -- end _Disp_Conditional_Select; -- For protected types, generate: -- procedure _Disp_Conditional_Select -- (T : in out <Typ>; -- S : Integer; -- P : System.Address; -- C : out Ada.Tags.Prim_Op_Kind; -- F : out Boolean) -- is -- I : Integer; -- Bnn : System.Tasking.Protected_Objects.Operations. -- Communication_Block; -- begin -- C := Ada.Tags.Get_Prim_Op_Kind (Ada.Tags.Tag (<Typ>VP, S)); -- if C = Ada.Tags.POK_Procedure -- or else C = Ada.Tags.POK_Protected_Procedure -- or else C = Ada.Tags.POK_Task_Procedure -- then -- F := True; -- return; -- end if; -- I := Ada.Tags.Get_Entry_Index (Ada.Tags.Tag (<Typ>VP, S)); -- System.Tasking.Protected_Objects.Operations.Protected_Entry_Call -- (T.object'Access, -- System.Tasking.Protected_Objects.Protected_Entry_Index (I), -- P, -- System.Tasking.Conditional_Call, -- Bnn); -- F := not Cancelled (Bnn); -- end _Disp_Conditional_Select; -- For task types, generate: -- procedure _Disp_Conditional_Select -- (T : in out <Typ>; -- S : Integer; -- P : System.Address; -- C : out Ada.Tags.Prim_Op_Kind; -- F : out Boolean) -- is -- I : Integer; -- begin -- I := Ada.Tags.Get_Entry_Index (Ada.Tags.Tag (<Typ>VP, S)); -- System.Tasking.Rendezvous.Task_Entry_Call -- (T._task_id, -- System.Tasking.Task_Entry_Index (I), -- P, -- System.Tasking.Conditional_Call, -- F); -- end _Disp_Conditional_Select; function Make_Disp_Conditional_Select_Body (Typ : Entity_Id) return Node_Id is Loc : constant Source_Ptr := Sloc (Typ); Blk_Nam : Entity_Id; Conc_Typ : Entity_Id := Empty; Decls : constant List_Id := New_List; Obj_Ref : Node_Id; Stmts : constant List_Id := New_List; Tag_Node : Node_Id; begin pragma Assert (not Restriction_Active (No_Dispatching_Calls)); -- Null body is generated for interface types if Is_Interface (Typ) then return Make_Subprogram_Body (Loc, Specification => Make_Disp_Conditional_Select_Spec (Typ), Declarations => No_List, Handled_Statement_Sequence => Make_Handled_Sequence_Of_Statements (Loc, New_List (Make_Assignment_Statement (Loc, Name => Make_Identifier (Loc, Name_uF), Expression => New_Occurrence_Of (Standard_False, Loc))))); end if; if Is_Concurrent_Record_Type (Typ) then Conc_Typ := Corresponding_Concurrent_Type (Typ); -- Generate: -- I : Integer; -- where I will be used to capture the entry index of the primitive -- wrapper at position S. Append_To (Decls, Make_Object_Declaration (Loc, Defining_Identifier => Make_Defining_Identifier (Loc, Name_uI), Object_Definition => New_Occurrence_Of (Standard_Integer, Loc))); -- Generate: -- C := Ada.Tags.Get_Prim_Op_Kind (Ada.Tags.Tag! (<type>VP), S); -- if C = POK_Procedure -- or else C = POK_Protected_Procedure -- or else C = POK_Task_Procedure; -- then -- F := True; -- return; -- end if; Build_Common_Dispatching_Select_Statements (Typ, Stmts); -- Generate: -- Bnn : Communication_Block; -- where Bnn is the name of the communication block used in the -- call to Protected_Entry_Call. Blk_Nam := Make_Temporary (Loc, 'B'); Append_To (Decls, Make_Object_Declaration (Loc, Defining_Identifier => Blk_Nam, Object_Definition => New_Occurrence_Of (RTE (RE_Communication_Block), Loc))); -- Generate: -- I := Ada.Tags.Get_Entry_Index (Ada.Tags.Tag! (<type>VP), S); -- I is the entry index and S is the dispatch table slot if Tagged_Type_Expansion then Tag_Node := Unchecked_Convert_To (RTE (RE_Tag), New_Occurrence_Of (Node (First_Elmt (Access_Disp_Table (Typ))), Loc)); else Tag_Node := Make_Attribute_Reference (Loc, Prefix => New_Occurrence_Of (Typ, Loc), Attribute_Name => Name_Tag); end if; Append_To (Stmts, Make_Assignment_Statement (Loc, Name => Make_Identifier (Loc, Name_uI), Expression => Make_Function_Call (Loc, Name => New_Occurrence_Of (RTE (RE_Get_Entry_Index), Loc), Parameter_Associations => New_List ( Tag_Node, Make_Identifier (Loc, Name_uS))))); if Ekind (Conc_Typ) = E_Protected_Type then Obj_Ref := -- T._object'Access Make_Attribute_Reference (Loc, Attribute_Name => Name_Unchecked_Access, Prefix => Make_Selected_Component (Loc, Prefix => Make_Identifier (Loc, Name_uT), Selector_Name => Make_Identifier (Loc, Name_uObject))); case Corresponding_Runtime_Package (Conc_Typ) is when System_Tasking_Protected_Objects_Entries => -- Generate: -- Protected_Entry_Call -- (T._object'Access, -- Object -- Protected_Entry_Index! (I), -- E -- P, -- Uninterpreted_Data -- Conditional_Call, -- Mode -- Bnn); -- Block -- where T is the protected object, I is the entry index, P -- are the wrapped parameters and Bnn is the name of the -- communication block. Append_To (Stmts, Make_Procedure_Call_Statement (Loc, Name => New_Occurrence_Of (RTE (RE_Protected_Entry_Call), Loc), Parameter_Associations => New_List ( Obj_Ref, Make_Unchecked_Type_Conversion (Loc, -- entry index Subtype_Mark => New_Occurrence_Of (RTE (RE_Protected_Entry_Index), Loc), Expression => Make_Identifier (Loc, Name_uI)), Make_Identifier (Loc, Name_uP), -- parameter block New_Occurrence_Of -- Conditional_Call (RTE (RE_Conditional_Call), Loc), New_Occurrence_Of -- Bnn (Blk_Nam, Loc)))); when System_Tasking_Protected_Objects_Single_Entry => -- If we are compiling for a restricted run-time, the call -- uses the simpler form. Append_To (Stmts, Make_Procedure_Call_Statement (Loc, Name => New_Occurrence_Of (RTE (RE_Protected_Single_Entry_Call), Loc), Parameter_Associations => New_List ( Obj_Ref, Make_Attribute_Reference (Loc, Prefix => Make_Identifier (Loc, Name_uP), Attribute_Name => Name_Address), New_Occurrence_Of (RTE (RE_Conditional_Call), Loc)))); when others => raise Program_Error; end case; -- Generate: -- F := not Cancelled (Bnn); -- where F is the success flag. The status of Cancelled is negated -- in order to match the behavior of the version for task types. Append_To (Stmts, Make_Assignment_Statement (Loc, Name => Make_Identifier (Loc, Name_uF), Expression => Make_Op_Not (Loc, Right_Opnd => Make_Function_Call (Loc, Name => New_Occurrence_Of (RTE (RE_Cancelled), Loc), Parameter_Associations => New_List ( New_Occurrence_Of (Blk_Nam, Loc)))))); else pragma Assert (Ekind (Conc_Typ) = E_Task_Type); -- Generate: -- Task_Entry_Call -- (T._task_id, -- Acceptor -- Task_Entry_Index! (I), -- E -- P, -- Uninterpreted_Data -- Conditional_Call, -- Mode -- F); -- Rendezvous_Successful -- where T is the task object, I is the entry index, P are the -- wrapped parameters and F is the status flag. Append_To (Stmts, Make_Procedure_Call_Statement (Loc, Name => New_Occurrence_Of (RTE (RE_Task_Entry_Call), Loc), Parameter_Associations => New_List ( Make_Selected_Component (Loc, -- T._task_id Prefix => Make_Identifier (Loc, Name_uT), Selector_Name => Make_Identifier (Loc, Name_uTask_Id)), Make_Unchecked_Type_Conversion (Loc, -- entry index Subtype_Mark => New_Occurrence_Of (RTE (RE_Task_Entry_Index), Loc), Expression => Make_Identifier (Loc, Name_uI)), Make_Identifier (Loc, Name_uP), -- parameter block New_Occurrence_Of -- Conditional_Call (RTE (RE_Conditional_Call), Loc), Make_Identifier (Loc, Name_uF)))); -- status flag end if; else -- Initialize out parameters Append_To (Stmts, Make_Assignment_Statement (Loc, Name => Make_Identifier (Loc, Name_uF), Expression => New_Occurrence_Of (Standard_False, Loc))); Append_To (Stmts, Make_Assignment_Statement (Loc, Name => Make_Identifier (Loc, Name_uC), Expression => New_Occurrence_Of (RTE (RE_POK_Function), Loc))); end if; return Make_Subprogram_Body (Loc, Specification => Make_Disp_Conditional_Select_Spec (Typ), Declarations => Decls, Handled_Statement_Sequence => Make_Handled_Sequence_Of_Statements (Loc, Stmts)); end Make_Disp_Conditional_Select_Body; --------------------------------------- -- Make_Disp_Conditional_Select_Spec -- --------------------------------------- function Make_Disp_Conditional_Select_Spec (Typ : Entity_Id) return Node_Id is Loc : constant Source_Ptr := Sloc (Typ); Def_Id : constant Node_Id := Make_Defining_Identifier (Loc, Name_uDisp_Conditional_Select); Params : constant List_Id := New_List; begin pragma Assert (not Restriction_Active (No_Dispatching_Calls)); -- T : in out Typ; -- Object parameter -- S : Integer; -- Primitive operation slot -- P : Address; -- Wrapped parameters -- C : out Prim_Op_Kind; -- Call kind -- F : out Boolean; -- Status flag Append_List_To (Params, New_List ( Make_Parameter_Specification (Loc, Defining_Identifier => Make_Defining_Identifier (Loc, Name_uT), Parameter_Type => New_Occurrence_Of (Typ, Loc), In_Present => True, Out_Present => True), Make_Parameter_Specification (Loc, Defining_Identifier => Make_Defining_Identifier (Loc, Name_uS), Parameter_Type => New_Occurrence_Of (Standard_Integer, Loc)), Make_Parameter_Specification (Loc, Defining_Identifier => Make_Defining_Identifier (Loc, Name_uP), Parameter_Type => New_Occurrence_Of (RTE (RE_Address), Loc)), Make_Parameter_Specification (Loc, Defining_Identifier => Make_Defining_Identifier (Loc, Name_uC), Parameter_Type => New_Occurrence_Of (RTE (RE_Prim_Op_Kind), Loc), Out_Present => True), Make_Parameter_Specification (Loc, Defining_Identifier => Make_Defining_Identifier (Loc, Name_uF), Parameter_Type => New_Occurrence_Of (Standard_Boolean, Loc), Out_Present => True))); return Make_Procedure_Specification (Loc, Defining_Unit_Name => Def_Id, Parameter_Specifications => Params); end Make_Disp_Conditional_Select_Spec; ------------------------------------- -- Make_Disp_Get_Prim_Op_Kind_Body -- ------------------------------------- function Make_Disp_Get_Prim_Op_Kind_Body (Typ : Entity_Id) return Node_Id is Loc : constant Source_Ptr := Sloc (Typ); Tag_Node : Node_Id; begin pragma Assert (not Restriction_Active (No_Dispatching_Calls)); if Is_Interface (Typ) then return Make_Subprogram_Body (Loc, Specification => Make_Disp_Get_Prim_Op_Kind_Spec (Typ), Declarations => New_List, Handled_Statement_Sequence => Make_Handled_Sequence_Of_Statements (Loc, New_List (Make_Null_Statement (Loc)))); end if; -- Generate: -- C := get_prim_op_kind (tag! (<type>VP), S); -- where C is the out parameter capturing the call kind and S is the -- dispatch table slot number. if Tagged_Type_Expansion then Tag_Node := Unchecked_Convert_To (RTE (RE_Tag), New_Occurrence_Of (Node (First_Elmt (Access_Disp_Table (Typ))), Loc)); else Tag_Node := Make_Attribute_Reference (Loc, Prefix => New_Occurrence_Of (Typ, Loc), Attribute_Name => Name_Tag); end if; return Make_Subprogram_Body (Loc, Specification => Make_Disp_Get_Prim_Op_Kind_Spec (Typ), Declarations => New_List, Handled_Statement_Sequence => Make_Handled_Sequence_Of_Statements (Loc, New_List ( Make_Assignment_Statement (Loc, Name => Make_Identifier (Loc, Name_uC), Expression => Make_Function_Call (Loc, Name => New_Occurrence_Of (RTE (RE_Get_Prim_Op_Kind), Loc), Parameter_Associations => New_List ( Tag_Node, Make_Identifier (Loc, Name_uS))))))); end Make_Disp_Get_Prim_Op_Kind_Body; ------------------------------------- -- Make_Disp_Get_Prim_Op_Kind_Spec -- ------------------------------------- function Make_Disp_Get_Prim_Op_Kind_Spec (Typ : Entity_Id) return Node_Id is Loc : constant Source_Ptr := Sloc (Typ); Def_Id : constant Node_Id := Make_Defining_Identifier (Loc, Name_uDisp_Get_Prim_Op_Kind); Params : constant List_Id := New_List; begin pragma Assert (not Restriction_Active (No_Dispatching_Calls)); -- T : in out Typ; -- Object parameter -- S : Integer; -- Primitive operation slot -- C : out Prim_Op_Kind; -- Call kind Append_List_To (Params, New_List ( Make_Parameter_Specification (Loc, Defining_Identifier => Make_Defining_Identifier (Loc, Name_uT), Parameter_Type => New_Occurrence_Of (Typ, Loc), In_Present => True, Out_Present => True), Make_Parameter_Specification (Loc, Defining_Identifier => Make_Defining_Identifier (Loc, Name_uS), Parameter_Type => New_Occurrence_Of (Standard_Integer, Loc)), Make_Parameter_Specification (Loc, Defining_Identifier => Make_Defining_Identifier (Loc, Name_uC), Parameter_Type => New_Occurrence_Of (RTE (RE_Prim_Op_Kind), Loc), Out_Present => True))); return Make_Procedure_Specification (Loc, Defining_Unit_Name => Def_Id, Parameter_Specifications => Params); end Make_Disp_Get_Prim_Op_Kind_Spec; -------------------------------- -- Make_Disp_Get_Task_Id_Body -- -------------------------------- function Make_Disp_Get_Task_Id_Body (Typ : Entity_Id) return Node_Id is Loc : constant Source_Ptr := Sloc (Typ); Ret : Node_Id; begin pragma Assert (not Restriction_Active (No_Dispatching_Calls)); if Is_Concurrent_Record_Type (Typ) and then Ekind (Corresponding_Concurrent_Type (Typ)) = E_Task_Type then -- Generate: -- return To_Address (_T._task_id); Ret := Make_Simple_Return_Statement (Loc, Expression => Make_Unchecked_Type_Conversion (Loc, Subtype_Mark => New_Occurrence_Of (RTE (RE_Address), Loc), Expression => Make_Selected_Component (Loc, Prefix => Make_Identifier (Loc, Name_uT), Selector_Name => Make_Identifier (Loc, Name_uTask_Id)))); -- A null body is constructed for non-task types else -- Generate: -- return Null_Address; Ret := Make_Simple_Return_Statement (Loc, Expression => New_Occurrence_Of (RTE (RE_Null_Address), Loc)); end if; return Make_Subprogram_Body (Loc, Specification => Make_Disp_Get_Task_Id_Spec (Typ), Declarations => New_List, Handled_Statement_Sequence => Make_Handled_Sequence_Of_Statements (Loc, New_List (Ret))); end Make_Disp_Get_Task_Id_Body; -------------------------------- -- Make_Disp_Get_Task_Id_Spec -- -------------------------------- function Make_Disp_Get_Task_Id_Spec (Typ : Entity_Id) return Node_Id is Loc : constant Source_Ptr := Sloc (Typ); begin pragma Assert (not Restriction_Active (No_Dispatching_Calls)); return Make_Function_Specification (Loc, Defining_Unit_Name => Make_Defining_Identifier (Loc, Name_uDisp_Get_Task_Id), Parameter_Specifications => New_List ( Make_Parameter_Specification (Loc, Defining_Identifier => Make_Defining_Identifier (Loc, Name_uT), Parameter_Type => New_Occurrence_Of (Typ, Loc))), Result_Definition => New_Occurrence_Of (RTE (RE_Address), Loc)); end Make_Disp_Get_Task_Id_Spec; ---------------------------- -- Make_Disp_Requeue_Body -- ---------------------------- function Make_Disp_Requeue_Body (Typ : Entity_Id) return Node_Id is Loc : constant Source_Ptr := Sloc (Typ); Conc_Typ : Entity_Id := Empty; Stmts : constant List_Id := New_List; begin pragma Assert (not Restriction_Active (No_Dispatching_Calls)); -- Null body is generated for interface types and non-concurrent -- tagged types. if Is_Interface (Typ) or else not Is_Concurrent_Record_Type (Typ) then return Make_Subprogram_Body (Loc, Specification => Make_Disp_Requeue_Spec (Typ), Declarations => No_List, Handled_Statement_Sequence => Make_Handled_Sequence_Of_Statements (Loc, New_List (Make_Null_Statement (Loc)))); end if; Conc_Typ := Corresponding_Concurrent_Type (Typ); if Ekind (Conc_Typ) = E_Protected_Type then -- Generate statements: -- if F then -- System.Tasking.Protected_Objects.Operations. -- Requeue_Protected_Entry -- (Protection_Entries_Access (P), -- O._object'Unchecked_Access, -- Protected_Entry_Index (I), -- A); -- else -- System.Tasking.Protected_Objects.Operations. -- Requeue_Task_To_Protected_Entry -- (O._object'Unchecked_Access, -- Protected_Entry_Index (I), -- A); -- end if; if Restriction_Active (No_Entry_Queue) then Append_To (Stmts, Make_Null_Statement (Loc)); else Append_To (Stmts, Make_If_Statement (Loc, Condition => Make_Identifier (Loc, Name_uF), Then_Statements => New_List ( -- Call to Requeue_Protected_Entry Make_Procedure_Call_Statement (Loc, Name => New_Occurrence_Of (RTE (RE_Requeue_Protected_Entry), Loc), Parameter_Associations => New_List ( Make_Unchecked_Type_Conversion (Loc, -- PEA (P) Subtype_Mark => New_Occurrence_Of ( RTE (RE_Protection_Entries_Access), Loc), Expression => Make_Identifier (Loc, Name_uP)), Make_Attribute_Reference (Loc, -- O._object'Acc Attribute_Name => Name_Unchecked_Access, Prefix => Make_Selected_Component (Loc, Prefix => Make_Identifier (Loc, Name_uO), Selector_Name => Make_Identifier (Loc, Name_uObject))), Make_Unchecked_Type_Conversion (Loc, -- entry index Subtype_Mark => New_Occurrence_Of (RTE (RE_Protected_Entry_Index), Loc), Expression => Make_Identifier (Loc, Name_uI)), Make_Identifier (Loc, Name_uA)))), -- abort status Else_Statements => New_List ( -- Call to Requeue_Task_To_Protected_Entry Make_Procedure_Call_Statement (Loc, Name => New_Occurrence_Of (RTE (RE_Requeue_Task_To_Protected_Entry), Loc), Parameter_Associations => New_List ( Make_Attribute_Reference (Loc, -- O._object'Acc Attribute_Name => Name_Unchecked_Access, Prefix => Make_Selected_Component (Loc, Prefix => Make_Identifier (Loc, Name_uO), Selector_Name => Make_Identifier (Loc, Name_uObject))), Make_Unchecked_Type_Conversion (Loc, -- entry index Subtype_Mark => New_Occurrence_Of (RTE (RE_Protected_Entry_Index), Loc), Expression => Make_Identifier (Loc, Name_uI)), Make_Identifier (Loc, Name_uA)))))); -- abort status end if; else pragma Assert (Is_Task_Type (Conc_Typ)); -- Generate: -- if F then -- System.Tasking.Rendezvous.Requeue_Protected_To_Task_Entry -- (Protection_Entries_Access (P), -- O._task_id, -- Task_Entry_Index (I), -- A); -- else -- System.Tasking.Rendezvous.Requeue_Task_Entry -- (O._task_id, -- Task_Entry_Index (I), -- A); -- end if; Append_To (Stmts, Make_If_Statement (Loc, Condition => Make_Identifier (Loc, Name_uF), Then_Statements => New_List ( -- Call to Requeue_Protected_To_Task_Entry Make_Procedure_Call_Statement (Loc, Name => New_Occurrence_Of (RTE (RE_Requeue_Protected_To_Task_Entry), Loc), Parameter_Associations => New_List ( Make_Unchecked_Type_Conversion (Loc, -- PEA (P) Subtype_Mark => New_Occurrence_Of (RTE (RE_Protection_Entries_Access), Loc), Expression => Make_Identifier (Loc, Name_uP)), Make_Selected_Component (Loc, -- O._task_id Prefix => Make_Identifier (Loc, Name_uO), Selector_Name => Make_Identifier (Loc, Name_uTask_Id)), Make_Unchecked_Type_Conversion (Loc, -- entry index Subtype_Mark => New_Occurrence_Of (RTE (RE_Task_Entry_Index), Loc), Expression => Make_Identifier (Loc, Name_uI)), Make_Identifier (Loc, Name_uA)))), -- abort status Else_Statements => New_List ( -- Call to Requeue_Task_Entry Make_Procedure_Call_Statement (Loc, Name => New_Occurrence_Of (RTE (RE_Requeue_Task_Entry), Loc), Parameter_Associations => New_List ( Make_Selected_Component (Loc, -- O._task_id Prefix => Make_Identifier (Loc, Name_uO), Selector_Name => Make_Identifier (Loc, Name_uTask_Id)), Make_Unchecked_Type_Conversion (Loc, -- entry index Subtype_Mark => New_Occurrence_Of (RTE (RE_Task_Entry_Index), Loc), Expression => Make_Identifier (Loc, Name_uI)), Make_Identifier (Loc, Name_uA)))))); -- abort status end if; -- Even though no declarations are needed in both cases, we allocate -- a list for entities added by Freeze. return Make_Subprogram_Body (Loc, Specification => Make_Disp_Requeue_Spec (Typ), Declarations => New_List, Handled_Statement_Sequence => Make_Handled_Sequence_Of_Statements (Loc, Stmts)); end Make_Disp_Requeue_Body; ---------------------------- -- Make_Disp_Requeue_Spec -- ---------------------------- function Make_Disp_Requeue_Spec (Typ : Entity_Id) return Node_Id is Loc : constant Source_Ptr := Sloc (Typ); begin pragma Assert (not Restriction_Active (No_Dispatching_Calls)); -- O : in out Typ; - Object parameter -- F : Boolean; - Protected (True) / task (False) flag -- P : Address; - Protection_Entries_Access value -- I : Entry_Index - Index of entry call -- A : Boolean - Abort flag -- Note that the Protection_Entries_Access value is represented as a -- System.Address in order to avoid dragging in the tasking runtime -- when compiling sources without tasking constructs. return Make_Procedure_Specification (Loc, Defining_Unit_Name => Make_Defining_Identifier (Loc, Name_uDisp_Requeue), Parameter_Specifications => New_List ( Make_Parameter_Specification (Loc, -- O Defining_Identifier => Make_Defining_Identifier (Loc, Name_uO), Parameter_Type => New_Occurrence_Of (Typ, Loc), In_Present => True, Out_Present => True), Make_Parameter_Specification (Loc, -- F Defining_Identifier => Make_Defining_Identifier (Loc, Name_uF), Parameter_Type => New_Occurrence_Of (Standard_Boolean, Loc)), Make_Parameter_Specification (Loc, -- P Defining_Identifier => Make_Defining_Identifier (Loc, Name_uP), Parameter_Type => New_Occurrence_Of (RTE (RE_Address), Loc)), Make_Parameter_Specification (Loc, -- I Defining_Identifier => Make_Defining_Identifier (Loc, Name_uI), Parameter_Type => New_Occurrence_Of (Standard_Integer, Loc)), Make_Parameter_Specification (Loc, -- A Defining_Identifier => Make_Defining_Identifier (Loc, Name_uA), Parameter_Type => New_Occurrence_Of (Standard_Boolean, Loc)))); end Make_Disp_Requeue_Spec; --------------------------------- -- Make_Disp_Timed_Select_Body -- --------------------------------- -- For interface types, generate: -- procedure _Disp_Timed_Select -- (T : in out <Typ>; -- S : Integer; -- P : System.Address; -- D : Duration; -- M : Integer; -- C : out Ada.Tags.Prim_Op_Kind; -- F : out Boolean) -- is -- begin -- F := False; -- C := Ada.Tags.POK_Function; -- end _Disp_Timed_Select; -- For protected types, generate: -- procedure _Disp_Timed_Select -- (T : in out <Typ>; -- S : Integer; -- P : System.Address; -- D : Duration; -- M : Integer; -- C : out Ada.Tags.Prim_Op_Kind; -- F : out Boolean) -- is -- I : Integer; -- begin -- C := Ada.Tags.Get_Prim_Op_Kind (Ada.Tags.Tag (<Typ>VP), S); -- if C = Ada.Tags.POK_Procedure -- or else C = Ada.Tags.POK_Protected_Procedure -- or else C = Ada.Tags.POK_Task_Procedure -- then -- F := True; -- return; -- end if; -- I := Ada.Tags.Get_Entry_Index (Ada.Tags.Tag (<Typ>VP), S); -- System.Tasking.Protected_Objects.Operations. -- Timed_Protected_Entry_Call -- (T._object'Access, -- System.Tasking.Protected_Objects.Protected_Entry_Index (I), -- P, -- D, -- M, -- F); -- end _Disp_Timed_Select; -- For task types, generate: -- procedure _Disp_Timed_Select -- (T : in out <Typ>; -- S : Integer; -- P : System.Address; -- D : Duration; -- M : Integer; -- C : out Ada.Tags.Prim_Op_Kind; -- F : out Boolean) -- is -- I : Integer; -- begin -- I := Ada.Tags.Get_Entry_Index (Ada.Tags.Tag (<Typ>VP), S); -- System.Tasking.Rendezvous.Timed_Task_Entry_Call -- (T._task_id, -- System.Tasking.Task_Entry_Index (I), -- P, -- D, -- M, -- F); -- end _Disp_Time_Select; function Make_Disp_Timed_Select_Body (Typ : Entity_Id) return Node_Id is Loc : constant Source_Ptr := Sloc (Typ); Conc_Typ : Entity_Id := Empty; Decls : constant List_Id := New_List; Obj_Ref : Node_Id; Stmts : constant List_Id := New_List; Tag_Node : Node_Id; begin pragma Assert (not Restriction_Active (No_Dispatching_Calls)); -- Null body is generated for interface types if Is_Interface (Typ) then return Make_Subprogram_Body (Loc, Specification => Make_Disp_Timed_Select_Spec (Typ), Declarations => New_List, Handled_Statement_Sequence => Make_Handled_Sequence_Of_Statements (Loc, New_List ( Make_Assignment_Statement (Loc, Name => Make_Identifier (Loc, Name_uF), Expression => New_Occurrence_Of (Standard_False, Loc))))); end if; if Is_Concurrent_Record_Type (Typ) then Conc_Typ := Corresponding_Concurrent_Type (Typ); -- Generate: -- I : Integer; -- where I will be used to capture the entry index of the primitive -- wrapper at position S. Append_To (Decls, Make_Object_Declaration (Loc, Defining_Identifier => Make_Defining_Identifier (Loc, Name_uI), Object_Definition => New_Occurrence_Of (Standard_Integer, Loc))); -- Generate: -- C := Get_Prim_Op_Kind (tag! (<type>VP), S); -- if C = POK_Procedure -- or else C = POK_Protected_Procedure -- or else C = POK_Task_Procedure; -- then -- F := True; -- return; -- end if; Build_Common_Dispatching_Select_Statements (Typ, Stmts); -- Generate: -- I := Get_Entry_Index (tag! (<type>VP), S); -- I is the entry index and S is the dispatch table slot if Tagged_Type_Expansion then Tag_Node := Unchecked_Convert_To (RTE (RE_Tag), New_Occurrence_Of (Node (First_Elmt (Access_Disp_Table (Typ))), Loc)); else Tag_Node := Make_Attribute_Reference (Loc, Prefix => New_Occurrence_Of (Typ, Loc), Attribute_Name => Name_Tag); end if; Append_To (Stmts, Make_Assignment_Statement (Loc, Name => Make_Identifier (Loc, Name_uI), Expression => Make_Function_Call (Loc, Name => New_Occurrence_Of (RTE (RE_Get_Entry_Index), Loc), Parameter_Associations => New_List ( Tag_Node, Make_Identifier (Loc, Name_uS))))); -- Protected case if Ekind (Conc_Typ) = E_Protected_Type then -- Build T._object'Access Obj_Ref := Make_Attribute_Reference (Loc, Attribute_Name => Name_Unchecked_Access, Prefix => Make_Selected_Component (Loc, Prefix => Make_Identifier (Loc, Name_uT), Selector_Name => Make_Identifier (Loc, Name_uObject))); -- Normal case, No_Entry_Queue restriction not active. In this -- case we generate: -- Timed_Protected_Entry_Call -- (T._object'access, -- Protected_Entry_Index! (I), -- P, D, M, F); -- where T is the protected object, I is the entry index, P are -- the wrapped parameters, D is the delay amount, M is the delay -- mode and F is the status flag. -- Historically, there was also an implementation for single -- entry protected types (in s-tposen). However, it was removed -- by also testing for no No_Select_Statements restriction in -- Exp_Utils.Corresponding_Runtime_Package. This simplified the -- implementation of s-tposen.adb and provided consistency between -- all versions of System.Tasking.Protected_Objects.Single_Entry -- (s-tposen*.adb). case Corresponding_Runtime_Package (Conc_Typ) is when System_Tasking_Protected_Objects_Entries => Append_To (Stmts, Make_Procedure_Call_Statement (Loc, Name => New_Occurrence_Of (RTE (RE_Timed_Protected_Entry_Call), Loc), Parameter_Associations => New_List ( Obj_Ref, Make_Unchecked_Type_Conversion (Loc, -- entry index Subtype_Mark => New_Occurrence_Of (RTE (RE_Protected_Entry_Index), Loc), Expression => Make_Identifier (Loc, Name_uI)), Make_Identifier (Loc, Name_uP), -- parameter block Make_Identifier (Loc, Name_uD), -- delay Make_Identifier (Loc, Name_uM), -- delay mode Make_Identifier (Loc, Name_uF)))); -- status flag when others => raise Program_Error; end case; -- Task case else pragma Assert (Ekind (Conc_Typ) = E_Task_Type); -- Generate: -- Timed_Task_Entry_Call ( -- T._task_id, -- Task_Entry_Index! (I), -- P, -- D, -- M, -- F); -- where T is the task object, I is the entry index, P are the -- wrapped parameters, D is the delay amount, M is the delay -- mode and F is the status flag. Append_To (Stmts, Make_Procedure_Call_Statement (Loc, Name => New_Occurrence_Of (RTE (RE_Timed_Task_Entry_Call), Loc), Parameter_Associations => New_List ( Make_Selected_Component (Loc, -- T._task_id Prefix => Make_Identifier (Loc, Name_uT), Selector_Name => Make_Identifier (Loc, Name_uTask_Id)), Make_Unchecked_Type_Conversion (Loc, -- entry index Subtype_Mark => New_Occurrence_Of (RTE (RE_Task_Entry_Index), Loc), Expression => Make_Identifier (Loc, Name_uI)), Make_Identifier (Loc, Name_uP), -- parameter block Make_Identifier (Loc, Name_uD), -- delay Make_Identifier (Loc, Name_uM), -- delay mode Make_Identifier (Loc, Name_uF)))); -- status flag end if; else -- Initialize out parameters Append_To (Stmts, Make_Assignment_Statement (Loc, Name => Make_Identifier (Loc, Name_uF), Expression => New_Occurrence_Of (Standard_False, Loc))); Append_To (Stmts, Make_Assignment_Statement (Loc, Name => Make_Identifier (Loc, Name_uC), Expression => New_Occurrence_Of (RTE (RE_POK_Function), Loc))); end if; return Make_Subprogram_Body (Loc, Specification => Make_Disp_Timed_Select_Spec (Typ), Declarations => Decls, Handled_Statement_Sequence => Make_Handled_Sequence_Of_Statements (Loc, Stmts)); end Make_Disp_Timed_Select_Body; --------------------------------- -- Make_Disp_Timed_Select_Spec -- --------------------------------- function Make_Disp_Timed_Select_Spec (Typ : Entity_Id) return Node_Id is Loc : constant Source_Ptr := Sloc (Typ); Def_Id : constant Node_Id := Make_Defining_Identifier (Loc, Name_uDisp_Timed_Select); Params : constant List_Id := New_List; begin pragma Assert (not Restriction_Active (No_Dispatching_Calls)); -- T : in out Typ; -- Object parameter -- S : Integer; -- Primitive operation slot -- P : Address; -- Wrapped parameters -- D : Duration; -- Delay -- M : Integer; -- Delay Mode -- C : out Prim_Op_Kind; -- Call kind -- F : out Boolean; -- Status flag Append_List_To (Params, New_List ( Make_Parameter_Specification (Loc, Defining_Identifier => Make_Defining_Identifier (Loc, Name_uT), Parameter_Type => New_Occurrence_Of (Typ, Loc), In_Present => True, Out_Present => True), Make_Parameter_Specification (Loc, Defining_Identifier => Make_Defining_Identifier (Loc, Name_uS), Parameter_Type => New_Occurrence_Of (Standard_Integer, Loc)), Make_Parameter_Specification (Loc, Defining_Identifier => Make_Defining_Identifier (Loc, Name_uP), Parameter_Type => New_Occurrence_Of (RTE (RE_Address), Loc)), Make_Parameter_Specification (Loc, Defining_Identifier => Make_Defining_Identifier (Loc, Name_uD), Parameter_Type => New_Occurrence_Of (Standard_Duration, Loc)), Make_Parameter_Specification (Loc, Defining_Identifier => Make_Defining_Identifier (Loc, Name_uM), Parameter_Type => New_Occurrence_Of (Standard_Integer, Loc)), Make_Parameter_Specification (Loc, Defining_Identifier => Make_Defining_Identifier (Loc, Name_uC), Parameter_Type => New_Occurrence_Of (RTE (RE_Prim_Op_Kind), Loc), Out_Present => True))); Append_To (Params, Make_Parameter_Specification (Loc, Defining_Identifier => Make_Defining_Identifier (Loc, Name_uF), Parameter_Type => New_Occurrence_Of (Standard_Boolean, Loc), Out_Present => True)); return Make_Procedure_Specification (Loc, Defining_Unit_Name => Def_Id, Parameter_Specifications => Params); end Make_Disp_Timed_Select_Spec; ------------- -- Make_DT -- ------------- -- The frontend supports two models for expanding dispatch tables -- associated with library-level defined tagged types: statically and -- non-statically allocated dispatch tables. In the former case the object -- containing the dispatch table is constant and it is initialized by means -- of a positional aggregate. In the latter case, the object containing -- the dispatch table is a variable which is initialized by means of -- assignments. -- In case of locally defined tagged types, the object containing the -- object containing the dispatch table is always a variable (instead of a -- constant). This is currently required to give support to late overriding -- of primitives. For example: -- procedure Example is -- package Pkg is -- type T1 is tagged null record; -- procedure Prim (O : T1); -- end Pkg; -- type T2 is new Pkg.T1 with null record; -- procedure Prim (X : T2) is -- late overriding -- begin -- ... -- ... -- end; -- WARNING: This routine manages Ghost regions. Return statements must be -- replaced by gotos which jump to the end of the routine and restore the -- Ghost mode. function Make_DT (Typ : Entity_Id; N : Node_Id := Empty) return List_Id is Loc : constant Source_Ptr := Sloc (Typ); Max_Predef_Prims : constant Int := UI_To_Int (Intval (Expression (Parent (RTE (RE_Max_Predef_Prims))))); DT_Decl : constant Elist_Id := New_Elmt_List; DT_Aggr : constant Elist_Id := New_Elmt_List; -- Entities marked with attribute Is_Dispatch_Table_Entity Dummy_Object : Entity_Id := Empty; -- Extra nonexistent object of type Typ internally used to compute the -- offset to the components that reference secondary dispatch tables. -- Used to compute the offset of components located at fixed position. procedure Check_Premature_Freezing (Subp : Entity_Id; Tagged_Type : Entity_Id; Typ : Entity_Id); -- Verify that all untagged types in the profile of a subprogram are -- frozen at the point the subprogram is frozen. This enforces the rule -- on RM 13.14 (14) as modified by AI05-019. At the point a subprogram -- is frozen, enough must be known about it to build the activation -- record for it, which requires at least that the size of all -- parameters be known. Controlling arguments are by-reference, -- and therefore the rule only applies to untagged types. Typical -- violation of the rule involves an object declaration that freezes a -- tagged type, when one of its primitive operations has a type in its -- profile whose full view has not been analyzed yet. More complex cases -- involve composite types that have one private unfrozen subcomponent. -- Move this check to sem??? procedure Export_DT (Typ : Entity_Id; DT : Entity_Id; Index : Nat := 0); -- Export the dispatch table DT of tagged type Typ. Required to generate -- forward references and statically allocate the table. For primary -- dispatch tables Index is 0; for secondary dispatch tables the value -- of index must match the Suffix_Index value assigned to the table by -- Make_Tags when generating its unique external name, and it is used to -- retrieve from the Dispatch_Table_Wrappers list associated with Typ -- the external name generated by Import_DT. procedure Make_Secondary_DT (Typ : Entity_Id; Iface : Entity_Id; Iface_Comp : Node_Id; Suffix_Index : Int; Num_Iface_Prims : Nat; Iface_DT_Ptr : Entity_Id; Predef_Prims_Ptr : Entity_Id; Build_Thunks : Boolean; Result : List_Id); -- Ada 2005 (AI-251): Expand the declarations for a Secondary Dispatch -- Table of Typ associated with Iface. Each abstract interface of Typ -- has two secondary dispatch tables: one containing pointers to thunks -- and another containing pointers to the primitives covering the -- interface primitives. The former secondary table is generated when -- Build_Thunks is True, and provides common support for dispatching -- calls through interface types; the latter secondary table is -- generated when Build_Thunks is False, and provides support for -- Generic Dispatching Constructors that dispatch calls through -- interface types. When constructing this latter table the value of -- Suffix_Index is -1 to indicate that there is no need to export such -- table when building statically allocated dispatch tables; a positive -- value of Suffix_Index must match the Suffix_Index value assigned to -- this secondary dispatch table by Make_Tags when its unique external -- name was generated. function Number_Of_Predefined_Prims (Typ : Entity_Id) return Nat; -- Returns the number of predefined primitives of Typ ------------------------------ -- Check_Premature_Freezing -- ------------------------------ procedure Check_Premature_Freezing (Subp : Entity_Id; Tagged_Type : Entity_Id; Typ : Entity_Id) is Comp : Entity_Id; function Is_Actual_For_Formal_Incomplete_Type (T : Entity_Id) return Boolean; -- In Ada 2012, if a nested generic has an incomplete formal type, -- the actual may be (and usually is) a private type whose completion -- appears later. It is safe to build the dispatch table in this -- case, gigi will have full views available. ------------------------------------------ -- Is_Actual_For_Formal_Incomplete_Type -- ------------------------------------------ function Is_Actual_For_Formal_Incomplete_Type (T : Entity_Id) return Boolean is Gen_Par : Entity_Id; F : Node_Id; begin if not Is_Generic_Instance (Current_Scope) or else not Used_As_Generic_Actual (T) then return False; else Gen_Par := Generic_Parent (Parent (Current_Scope)); end if; F := First (Generic_Formal_Declarations (Unit_Declaration_Node (Gen_Par))); while Present (F) loop if Ekind (Defining_Identifier (F)) = E_Incomplete_Type then return True; end if; Next (F); end loop; return False; end Is_Actual_For_Formal_Incomplete_Type; -- Start of processing for Check_Premature_Freezing begin -- Note that if the type is a (subtype of) a generic actual, the -- actual will have been frozen by the instantiation. if Present (N) and then Is_Private_Type (Typ) and then No (Full_View (Typ)) and then not Is_Generic_Type (Typ) and then not Is_Tagged_Type (Typ) and then not Is_Frozen (Typ) and then not Is_Generic_Actual_Type (Typ) then Error_Msg_Sloc := Sloc (Subp); Error_Msg_NE ("declaration must appear after completion of type &", N, Typ); Error_Msg_NE ("\which is an untagged type in the profile of " & "primitive operation & declared#", N, Subp); else Comp := Private_Component (Typ); if not Is_Tagged_Type (Typ) and then Present (Comp) and then not Is_Frozen (Comp) and then not Is_Actual_For_Formal_Incomplete_Type (Comp) then Error_Msg_Sloc := Sloc (Subp); Error_Msg_Node_2 := Subp; Error_Msg_Name_1 := Chars (Tagged_Type); Error_Msg_NE ("declaration must appear after completion of type &", N, Comp); Error_Msg_NE ("\which is a component of untagged type& in the profile " & "of primitive & of type % that is frozen by the " & "declaration ", N, Typ); end if; end if; end Check_Premature_Freezing; --------------- -- Export_DT -- --------------- procedure Export_DT (Typ : Entity_Id; DT : Entity_Id; Index : Nat := 0) is Count : Nat; Elmt : Elmt_Id; begin Set_Is_Statically_Allocated (DT); Set_Is_True_Constant (DT); Set_Is_Exported (DT); Count := 0; Elmt := First_Elmt (Dispatch_Table_Wrappers (Typ)); while Count /= Index loop Next_Elmt (Elmt); Count := Count + 1; end loop; pragma Assert (Related_Type (Node (Elmt)) = Typ); Get_External_Name (Node (Elmt)); Set_Interface_Name (DT, Make_String_Literal (Loc, Strval => String_From_Name_Buffer)); -- Ensure proper Sprint output of this implicit importation Set_Is_Internal (DT); Set_Is_Public (DT); end Export_DT; ----------------------- -- Make_Secondary_DT -- ----------------------- procedure Make_Secondary_DT (Typ : Entity_Id; Iface : Entity_Id; Iface_Comp : Node_Id; Suffix_Index : Int; Num_Iface_Prims : Nat; Iface_DT_Ptr : Entity_Id; Predef_Prims_Ptr : Entity_Id; Build_Thunks : Boolean; Result : List_Id) is Loc : constant Source_Ptr := Sloc (Typ); Exporting_Table : constant Boolean := Building_Static_DT (Typ) and then Suffix_Index > 0; Iface_DT : constant Entity_Id := Make_Temporary (Loc, 'T'); Predef_Prims : constant Entity_Id := Make_Temporary (Loc, 'R'); DT_Constr_List : List_Id; DT_Aggr_List : List_Id; Empty_DT : Boolean := False; Nb_Prim : Nat; New_Node : Node_Id; OSD : Entity_Id; OSD_Aggr_List : List_Id; Prim : Entity_Id; Prim_Elmt : Elmt_Id; Prim_Ops_Aggr_List : List_Id; begin -- Handle cases in which we do not generate statically allocated -- dispatch tables. if not Building_Static_DT (Typ) then Set_Ekind (Predef_Prims, E_Variable); Set_Ekind (Iface_DT, E_Variable); -- Statically allocated dispatch tables and related entities are -- constants. else Set_Ekind (Predef_Prims, E_Constant); Set_Is_Statically_Allocated (Predef_Prims); Set_Is_True_Constant (Predef_Prims); Set_Ekind (Iface_DT, E_Constant); Set_Is_Statically_Allocated (Iface_DT); Set_Is_True_Constant (Iface_DT); end if; -- Calculate the number of slots of the dispatch table. If the number -- of primitives of Typ is 0 we reserve a dummy single entry for its -- DT because at run time the pointer to this dummy entry will be -- used as the tag. if Num_Iface_Prims = 0 then Empty_DT := True; Nb_Prim := 1; else Nb_Prim := Num_Iface_Prims; end if; -- Generate: -- Predef_Prims : Address_Array (1 .. Default_Prim_Ops_Count) := -- (predef-prim-op-thunk-1'address, -- predef-prim-op-thunk-2'address, -- ... -- predef-prim-op-thunk-n'address); -- Create the thunks associated with the predefined primitives and -- save their entity to fill the aggregate. declare Nb_P_Prims : constant Nat := Number_Of_Predefined_Prims (Typ); Prim_Table : array (Nat range 1 .. Nb_P_Prims) of Entity_Id; Decl : Node_Id; Thunk_Id : Entity_Id; Thunk_Code : Node_Id; begin Prim_Ops_Aggr_List := New_List; Prim_Table := (others => Empty); if Building_Static_DT (Typ) then Prim_Elmt := First_Elmt (Primitive_Operations (Typ)); while Present (Prim_Elmt) loop Prim := Node (Prim_Elmt); if Is_Predefined_Dispatching_Operation (Prim) and then not Is_Abstract_Subprogram (Prim) and then not Is_Eliminated (Prim) and then not Generate_SCIL and then not Present (Prim_Table (UI_To_Int (DT_Position (Prim)))) then if not Build_Thunks then Prim_Table (UI_To_Int (DT_Position (Prim))) := Alias (Prim); else Expand_Interface_Thunk (Prim, Thunk_Id, Thunk_Code, Iface); if Present (Thunk_Id) then Append_To (Result, Thunk_Code); Prim_Table (UI_To_Int (DT_Position (Prim))) := Thunk_Id; end if; end if; end if; Next_Elmt (Prim_Elmt); end loop; end if; for J in Prim_Table'Range loop if Present (Prim_Table (J)) then New_Node := Unchecked_Convert_To (RTE (RE_Prim_Ptr), Make_Attribute_Reference (Loc, Prefix => New_Occurrence_Of (Prim_Table (J), Loc), Attribute_Name => Name_Unrestricted_Access)); else New_Node := Make_Null (Loc); end if; Append_To (Prim_Ops_Aggr_List, New_Node); end loop; New_Node := Make_Aggregate (Loc, Expressions => Prim_Ops_Aggr_List); -- Remember aggregates initializing dispatch tables Append_Elmt (New_Node, DT_Aggr); Decl := Make_Subtype_Declaration (Loc, Defining_Identifier => Make_Temporary (Loc, 'S'), Subtype_Indication => New_Occurrence_Of (RTE (RE_Address_Array), Loc)); Append_To (Result, Decl); Append_To (Result, Make_Object_Declaration (Loc, Defining_Identifier => Predef_Prims, Constant_Present => Building_Static_DT (Typ), Aliased_Present => True, Object_Definition => New_Occurrence_Of (Defining_Identifier (Decl), Loc), Expression => New_Node)); end; -- Generate -- OSD : Ada.Tags.Object_Specific_Data (Nb_Prims) := -- (OSD_Table => (1 => <value>, -- ... -- N => <value>)); -- for OSD'Alignment use Address'Alignment; -- Iface_DT : Dispatch_Table (Nb_Prims) := -- ([ Signature => <sig-value> ], -- Tag_Kind => <tag_kind-value>, -- Predef_Prims => Predef_Prims'Address, -- Offset_To_Top => 0, -- OSD => OSD'Address, -- Prims_Ptr => (prim-op-1'address, -- prim-op-2'address, -- ... -- prim-op-n'address)); -- Stage 3: Initialize the discriminant and the record components DT_Constr_List := New_List; DT_Aggr_List := New_List; -- Nb_Prim Append_To (DT_Constr_List, Make_Integer_Literal (Loc, Nb_Prim)); Append_To (DT_Aggr_List, Make_Integer_Literal (Loc, Nb_Prim)); -- Signature if RTE_Record_Component_Available (RE_Signature) then Append_To (DT_Aggr_List, New_Occurrence_Of (RTE (RE_Secondary_DT), Loc)); end if; -- Tag_Kind if RTE_Record_Component_Available (RE_Tag_Kind) then Append_To (DT_Aggr_List, Tagged_Kind (Typ)); end if; -- Predef_Prims Append_To (DT_Aggr_List, Make_Attribute_Reference (Loc, Prefix => New_Occurrence_Of (Predef_Prims, Loc), Attribute_Name => Name_Address)); -- Interface component located at variable offset; the value of -- Offset_To_Top will be set by the init subprogram. if No (Dummy_Object) or else Is_Variable_Size_Record (Etype (Scope (Iface_Comp))) then Append_To (DT_Aggr_List, Make_Integer_Literal (Loc, 0)); -- Interface component located at fixed offset else Append_To (DT_Aggr_List, Make_Op_Minus (Loc, Make_Attribute_Reference (Loc, Prefix => Make_Selected_Component (Loc, Prefix => New_Occurrence_Of (Dummy_Object, Loc), Selector_Name => New_Occurrence_Of (Iface_Comp, Loc)), Attribute_Name => Name_Position))); end if; -- Generate the Object Specific Data table required to dispatch calls -- through synchronized interfaces. if Empty_DT or else Is_Abstract_Type (Typ) or else Is_Controlled (Typ) or else Restriction_Active (No_Dispatching_Calls) or else not Is_Limited_Type (Typ) or else not Has_Interfaces (Typ) or else not Build_Thunks or else not RTE_Record_Component_Available (RE_OSD_Table) then -- No OSD table required Append_To (DT_Aggr_List, New_Occurrence_Of (RTE (RE_Null_Address), Loc)); else OSD_Aggr_List := New_List; declare Prim_Table : array (Nat range 1 .. Nb_Prim) of Entity_Id; Prim : Entity_Id; Prim_Alias : Entity_Id; Prim_Elmt : Elmt_Id; E : Entity_Id; Count : Nat := 0; Pos : Nat; begin Prim_Table := (others => Empty); Prim_Alias := Empty; Prim_Elmt := First_Elmt (Primitive_Operations (Typ)); while Present (Prim_Elmt) loop Prim := Node (Prim_Elmt); if Present (Interface_Alias (Prim)) and then Find_Dispatching_Type (Interface_Alias (Prim)) = Iface then Prim_Alias := Interface_Alias (Prim); E := Ultimate_Alias (Prim); Pos := UI_To_Int (DT_Position (Prim_Alias)); if Present (Prim_Table (Pos)) then pragma Assert (Prim_Table (Pos) = E); null; else Prim_Table (Pos) := E; Append_To (OSD_Aggr_List, Make_Component_Association (Loc, Choices => New_List ( Make_Integer_Literal (Loc, DT_Position (Prim_Alias))), Expression => Make_Integer_Literal (Loc, DT_Position (Alias (Prim))))); Count := Count + 1; end if; end if; Next_Elmt (Prim_Elmt); end loop; pragma Assert (Count = Nb_Prim); end; OSD := Make_Temporary (Loc, 'I'); Append_To (Result, Make_Object_Declaration (Loc, Defining_Identifier => OSD, Constant_Present => True, Object_Definition => Make_Subtype_Indication (Loc, Subtype_Mark => New_Occurrence_Of (RTE (RE_Object_Specific_Data), Loc), Constraint => Make_Index_Or_Discriminant_Constraint (Loc, Constraints => New_List ( Make_Integer_Literal (Loc, Nb_Prim)))), Expression => Make_Aggregate (Loc, Component_Associations => New_List ( Make_Component_Association (Loc, Choices => New_List ( New_Occurrence_Of (RTE_Record_Component (RE_OSD_Num_Prims), Loc)), Expression => Make_Integer_Literal (Loc, Nb_Prim)), Make_Component_Association (Loc, Choices => New_List ( New_Occurrence_Of (RTE_Record_Component (RE_OSD_Table), Loc)), Expression => Make_Aggregate (Loc, Component_Associations => OSD_Aggr_List)))))); Append_To (Result, Make_Attribute_Definition_Clause (Loc, Name => New_Occurrence_Of (OSD, Loc), Chars => Name_Alignment, Expression => Make_Attribute_Reference (Loc, Prefix => New_Occurrence_Of (RTE (RE_Integer_Address), Loc), Attribute_Name => Name_Alignment))); -- In secondary dispatch tables the Typeinfo component contains -- the address of the Object Specific Data (see a-tags.ads). Append_To (DT_Aggr_List, Make_Attribute_Reference (Loc, Prefix => New_Occurrence_Of (OSD, Loc), Attribute_Name => Name_Address)); end if; -- Initialize the table of primitive operations Prim_Ops_Aggr_List := New_List; if Empty_DT then Append_To (Prim_Ops_Aggr_List, Make_Null (Loc)); elsif Is_Abstract_Type (Typ) or else not Building_Static_DT (Typ) then for J in 1 .. Nb_Prim loop Append_To (Prim_Ops_Aggr_List, Make_Null (Loc)); end loop; else declare CPP_Nb_Prims : constant Nat := CPP_Num_Prims (Typ); E : Entity_Id; Prim_Pos : Nat; Prim_Table : array (Nat range 1 .. Nb_Prim) of Entity_Id; Thunk_Code : Node_Id; Thunk_Id : Entity_Id; begin Prim_Table := (others => Empty); Prim_Elmt := First_Elmt (Primitive_Operations (Typ)); while Present (Prim_Elmt) loop Prim := Node (Prim_Elmt); E := Ultimate_Alias (Prim); Prim_Pos := UI_To_Int (DT_Position (E)); -- Do not reference predefined primitives because they are -- located in a separate dispatch table; skip abstract and -- eliminated primitives; skip primitives located in the C++ -- part of the dispatch table because their slot is set by -- the IC routine. if not Is_Predefined_Dispatching_Operation (Prim) and then Present (Interface_Alias (Prim)) and then not Is_Abstract_Subprogram (Alias (Prim)) and then not Is_Eliminated (Alias (Prim)) and then (not Is_CPP_Class (Root_Type (Typ)) or else Prim_Pos > CPP_Nb_Prims) and then Find_Dispatching_Type (Interface_Alias (Prim)) = Iface -- Generate the code of the thunk only if the abstract -- interface type is not an immediate ancestor of -- Tagged_Type. Otherwise the DT associated with the -- interface is the primary DT. and then not Is_Ancestor (Iface, Typ, Use_Full_View => True) then if not Build_Thunks then Prim_Pos := UI_To_Int (DT_Position (Interface_Alias (Prim))); Prim_Table (Prim_Pos) := Alias (Prim); else Expand_Interface_Thunk (Prim, Thunk_Id, Thunk_Code, Iface); if Present (Thunk_Id) then Prim_Pos := UI_To_Int (DT_Position (Interface_Alias (Prim))); Prim_Table (Prim_Pos) := Thunk_Id; Append_To (Result, Thunk_Code); end if; end if; end if; Next_Elmt (Prim_Elmt); end loop; for J in Prim_Table'Range loop if Present (Prim_Table (J)) then New_Node := Unchecked_Convert_To (RTE (RE_Prim_Ptr), Make_Attribute_Reference (Loc, Prefix => New_Occurrence_Of (Prim_Table (J), Loc), Attribute_Name => Name_Unrestricted_Access)); else New_Node := Make_Null (Loc); end if; Append_To (Prim_Ops_Aggr_List, New_Node); end loop; end; end if; New_Node := Make_Aggregate (Loc, Expressions => Prim_Ops_Aggr_List); Append_To (DT_Aggr_List, New_Node); -- Remember aggregates initializing dispatch tables Append_Elmt (New_Node, DT_Aggr); -- Note: Secondary dispatch tables are declared constant only if -- we can compute their offset field by means of the extra dummy -- object; otherwise they cannot be declared constant and the -- Offset_To_Top component is initialized by the IP routine. Append_To (Result, Make_Object_Declaration (Loc, Defining_Identifier => Iface_DT, Aliased_Present => True, Constant_Present => Building_Static_Secondary_DT (Typ), Object_Definition => Make_Subtype_Indication (Loc, Subtype_Mark => New_Occurrence_Of (RTE (RE_Dispatch_Table_Wrapper), Loc), Constraint => Make_Index_Or_Discriminant_Constraint (Loc, Constraints => DT_Constr_List)), Expression => Make_Aggregate (Loc, Expressions => DT_Aggr_List))); if Exporting_Table then Export_DT (Typ, Iface_DT, Suffix_Index); -- Generate code to create the pointer to the dispatch table -- Iface_DT_Ptr : Tag := Tag!(DT.Prims_Ptr'Address); -- Note: This declaration is not added here if the table is exported -- because in such case Make_Tags has already added this declaration. else Append_To (Result, Make_Object_Declaration (Loc, Defining_Identifier => Iface_DT_Ptr, Constant_Present => True, Object_Definition => New_Occurrence_Of (RTE (RE_Interface_Tag), Loc), Expression => Unchecked_Convert_To (RTE (RE_Interface_Tag), Make_Attribute_Reference (Loc, Prefix => Make_Selected_Component (Loc, Prefix => New_Occurrence_Of (Iface_DT, Loc), Selector_Name => New_Occurrence_Of (RTE_Record_Component (RE_Prims_Ptr), Loc)), Attribute_Name => Name_Address)))); end if; Append_To (Result, Make_Object_Declaration (Loc, Defining_Identifier => Predef_Prims_Ptr, Constant_Present => True, Object_Definition => New_Occurrence_Of (RTE (RE_Address), Loc), Expression => Make_Attribute_Reference (Loc, Prefix => Make_Selected_Component (Loc, Prefix => New_Occurrence_Of (Iface_DT, Loc), Selector_Name => New_Occurrence_Of (RTE_Record_Component (RE_Predef_Prims), Loc)), Attribute_Name => Name_Address))); -- Remember entities containing dispatch tables Append_Elmt (Predef_Prims, DT_Decl); Append_Elmt (Iface_DT, DT_Decl); end Make_Secondary_DT; -------------------------------- -- Number_Of_Predefined_Prims -- -------------------------------- function Number_Of_Predefined_Prims (Typ : Entity_Id) return Nat is Nb_Predef_Prims : Nat := 0; begin if not Generate_SCIL then declare Prim : Entity_Id; Prim_Elmt : Elmt_Id; Pos : Nat; begin Prim_Elmt := First_Elmt (Primitive_Operations (Typ)); while Present (Prim_Elmt) loop Prim := Node (Prim_Elmt); if Is_Predefined_Dispatching_Operation (Prim) and then not Is_Abstract_Subprogram (Prim) then Pos := UI_To_Int (DT_Position (Prim)); if Pos > Nb_Predef_Prims then Nb_Predef_Prims := Pos; end if; end if; Next_Elmt (Prim_Elmt); end loop; end; end if; pragma Assert (Nb_Predef_Prims <= Max_Predef_Prims); return Nb_Predef_Prims; end Number_Of_Predefined_Prims; -- Local variables Elab_Code : constant List_Id := New_List; Result : constant List_Id := New_List; Tname : constant Name_Id := Chars (Typ); -- When pragmas Discard_Names and No_Tagged_Streams simultaneously apply -- we initialize the Expanded_Name and the External_Tag of this tagged -- type with an empty string. This is useful to avoid exposing entity -- names at binary level. It can be done when both pragmas apply because -- (1) Discard_Names allows initializing Expanded_Name with an -- implementation defined value (Ada RM Section C.5 (7/2)). -- (2) External_Tag (combined with Internal_Tag) is used for object -- streaming and No_Tagged_Streams inhibits the generation of -- streams. Discard_Names : constant Boolean := Present (No_Tagged_Streams_Pragma (Typ)) and then (Global_Discard_Names or else Einfo.Discard_Names (Typ)); -- The following name entries are used by Make_DT to generate a number -- of entities related to a tagged type. These entities may be generated -- in a scope other than that of the tagged type declaration, and if -- the entities for two tagged types with the same name happen to be -- generated in the same scope, we have to take care to use different -- names. This is achieved by means of a unique serial number appended -- to each generated entity name. Name_DT : constant Name_Id := New_External_Name (Tname, 'T', Suffix_Index => -1); Name_Exname : constant Name_Id := New_External_Name (Tname, 'E', Suffix_Index => -1); Name_HT_Link : constant Name_Id := New_External_Name (Tname, 'H', Suffix_Index => -1); Name_Predef_Prims : constant Name_Id := New_External_Name (Tname, 'R', Suffix_Index => -1); Name_SSD : constant Name_Id := New_External_Name (Tname, 'S', Suffix_Index => -1); Name_TSD : constant Name_Id := New_External_Name (Tname, 'B', Suffix_Index => -1); Saved_GM : constant Ghost_Mode_Type := Ghost_Mode; Saved_IGR : constant Node_Id := Ignored_Ghost_Region; -- Save the Ghost-related attributes to restore on exit AI : Elmt_Id; AI_Tag_Elmt : Elmt_Id; AI_Tag_Comp : Elmt_Id; DT : Entity_Id; DT_Aggr_List : List_Id; DT_Constr_List : List_Id; DT_Ptr : Entity_Id; Exname : Entity_Id; HT_Link : Entity_Id; ITable : Node_Id; I_Depth : Nat := 0; Iface_Table_Node : Node_Id; Name_ITable : Name_Id; Nb_Prim : Nat := 0; New_Node : Node_Id; Num_Ifaces : Nat := 0; Parent_Typ : Entity_Id; Predef_Prims : Entity_Id; Prim : Entity_Id; Prim_Elmt : Elmt_Id; Prim_Ops_Aggr_List : List_Id; SSD : Entity_Id; Suffix_Index : Int; Typ_Comps : Elist_Id; Typ_Ifaces : Elist_Id; TSD : Entity_Id; TSD_Aggr_List : List_Id; TSD_Tags_List : List_Id; -- Start of processing for Make_DT begin pragma Assert (Is_Frozen (Typ)); -- The tagged type being processed may be subject to pragma Ghost. Set -- the mode now to ensure that any nodes generated during dispatch table -- creation are properly marked as Ghost. Set_Ghost_Mode (Typ); -- Handle cases in which there is no need to build the dispatch table if Has_Dispatch_Table (Typ) or else No (Access_Disp_Table (Typ)) or else Is_CPP_Class (Typ) then goto Leave; elsif No_Run_Time_Mode then Error_Msg_CRT ("tagged types", Typ); goto Leave; elsif not RTE_Available (RE_Tag) then Append_To (Result, Make_Object_Declaration (Loc, Defining_Identifier => Node (First_Elmt (Access_Disp_Table (Typ))), Object_Definition => New_Occurrence_Of (RTE (RE_Tag), Loc), Constant_Present => True, Expression => Unchecked_Convert_To (RTE (RE_Tag), New_Occurrence_Of (RTE (RE_Null_Address), Loc)))); Analyze_List (Result, Suppress => All_Checks); Error_Msg_CRT ("tagged types", Typ); goto Leave; end if; -- Ensure that the value of Max_Predef_Prims defined in a-tags is -- correct. Valid values are 10 under configurable runtime or 16 -- with full runtime. if RTE_Available (RE_Interface_Data) then if Max_Predef_Prims /= 16 then Error_Msg_N ("run-time library configuration error", Typ); goto Leave; end if; else if Max_Predef_Prims /= 10 then Error_Msg_N ("run-time library configuration error", Typ); Error_Msg_CRT ("tagged types", Typ); goto Leave; end if; end if; DT := Make_Defining_Identifier (Loc, Name_DT); Exname := Make_Defining_Identifier (Loc, Name_Exname); HT_Link := Make_Defining_Identifier (Loc, Name_HT_Link); Predef_Prims := Make_Defining_Identifier (Loc, Name_Predef_Prims); SSD := Make_Defining_Identifier (Loc, Name_SSD); TSD := Make_Defining_Identifier (Loc, Name_TSD); -- Initialize Parent_Typ handling private types Parent_Typ := Etype (Typ); if Present (Full_View (Parent_Typ)) then Parent_Typ := Full_View (Parent_Typ); end if; -- Ensure that all the primitives are frozen. This is only required when -- building static dispatch tables --- the primitives must be frozen to -- be referenced (otherwise we have problems with the backend). It is -- not a requirement with nonstatic dispatch tables because in this case -- we generate now an empty dispatch table; the extra code required to -- register the primitives in the slots will be generated later --- when -- each primitive is frozen (see Freeze_Subprogram). if Building_Static_DT (Typ) then declare Saved_FLLTT : constant Boolean := Freezing_Library_Level_Tagged_Type; Formal : Entity_Id; Frnodes : List_Id; Prim : Entity_Id; Prim_Elmt : Elmt_Id; begin Freezing_Library_Level_Tagged_Type := True; Prim_Elmt := First_Elmt (Primitive_Operations (Typ)); while Present (Prim_Elmt) loop Prim := Node (Prim_Elmt); Frnodes := Freeze_Entity (Prim, Typ); -- We disable this check for abstract subprograms, given that -- they cannot be called directly and thus the state of their -- untagged formals is of no concern. The RM is unclear in any -- case concerning the need for this check, and this topic may -- go back to the ARG. if not Is_Abstract_Subprogram (Prim) then Formal := First_Formal (Prim); while Present (Formal) loop Check_Premature_Freezing (Prim, Typ, Etype (Formal)); Next_Formal (Formal); end loop; Check_Premature_Freezing (Prim, Typ, Etype (Prim)); end if; if Present (Frnodes) then Append_List_To (Result, Frnodes); end if; Next_Elmt (Prim_Elmt); end loop; Freezing_Library_Level_Tagged_Type := Saved_FLLTT; end; end if; if not Is_Interface (Typ) and then Has_Interfaces (Typ) then declare Cannot_Have_Null_Disc : Boolean := False; Dummy_Object_Typ : constant Entity_Id := Typ; Name_Dummy_Object : constant Name_Id := New_External_Name (Tname, 'P', Suffix_Index => -1); begin Dummy_Object := Make_Defining_Identifier (Loc, Name_Dummy_Object); -- Define the extra object imported and constant to avoid linker -- errors (since this object is never declared). Required because -- we implement RM 13.3(19) for exported and imported (variable) -- objects by making them volatile. Set_Is_Imported (Dummy_Object); Set_Ekind (Dummy_Object, E_Constant); Set_Is_True_Constant (Dummy_Object); Set_Related_Type (Dummy_Object, Typ); -- The scope must be set now to call Get_External_Name Set_Scope (Dummy_Object, Current_Scope); Get_External_Name (Dummy_Object); Set_Interface_Name (Dummy_Object, Make_String_Literal (Loc, Strval => String_From_Name_Buffer)); -- Ensure proper Sprint output of this implicit importation Set_Is_Internal (Dummy_Object); if not Has_Discriminants (Dummy_Object_Typ) then Append_To (Result, Make_Object_Declaration (Loc, Defining_Identifier => Dummy_Object, Constant_Present => True, Object_Definition => New_Occurrence_Of (Dummy_Object_Typ, Loc))); else declare Constr_List : constant List_Id := New_List; Discrim : Node_Id; begin Discrim := First_Discriminant (Dummy_Object_Typ); while Present (Discrim) loop if Is_Discrete_Type (Etype (Discrim)) then Append_To (Constr_List, Make_Attribute_Reference (Loc, Prefix => New_Occurrence_Of (Etype (Discrim), Loc), Attribute_Name => Name_First)); else pragma Assert (Is_Access_Type (Etype (Discrim))); Cannot_Have_Null_Disc := Cannot_Have_Null_Disc or else Can_Never_Be_Null (Etype (Discrim)); Append_To (Constr_List, Make_Null (Loc)); end if; Next_Discriminant (Discrim); end loop; Append_To (Result, Make_Object_Declaration (Loc, Defining_Identifier => Dummy_Object, Constant_Present => True, Object_Definition => Make_Subtype_Indication (Loc, Subtype_Mark => New_Occurrence_Of (Dummy_Object_Typ, Loc), Constraint => Make_Index_Or_Discriminant_Constraint (Loc, Constraints => Constr_List)))); end; end if; -- Given that the dummy object will not be declared at run time, -- analyze its declaration with expansion disabled and warnings -- and error messages ignored. Expander_Mode_Save_And_Set (False); Ignore_Errors_Enable := Ignore_Errors_Enable + 1; Analyze (Last (Result), Suppress => All_Checks); Ignore_Errors_Enable := Ignore_Errors_Enable - 1; Expander_Mode_Restore; end; end if; -- Ada 2005 (AI-251): Build the secondary dispatch tables if Has_Interfaces (Typ) then Collect_Interface_Components (Typ, Typ_Comps); -- Each secondary dispatch table is assigned an unique positive -- suffix index; such value also corresponds with the location of -- its entity in the Dispatch_Table_Wrappers list (see Make_Tags). -- Note: This value must be kept sync with the Suffix_Index values -- generated by Make_Tags Suffix_Index := 1; AI_Tag_Elmt := Next_Elmt (Next_Elmt (First_Elmt (Access_Disp_Table (Typ)))); AI_Tag_Comp := First_Elmt (Typ_Comps); while Present (AI_Tag_Comp) loop pragma Assert (Has_Suffix (Node (AI_Tag_Elmt), 'P')); -- Build the secondary table containing pointers to thunks Make_Secondary_DT (Typ => Typ, Iface => Base_Type (Related_Type (Node (AI_Tag_Comp))), Iface_Comp => Node (AI_Tag_Comp), Suffix_Index => Suffix_Index, Num_Iface_Prims => UI_To_Int (DT_Entry_Count (Node (AI_Tag_Comp))), Iface_DT_Ptr => Node (AI_Tag_Elmt), Predef_Prims_Ptr => Node (Next_Elmt (AI_Tag_Elmt)), Build_Thunks => True, Result => Result); -- Skip secondary dispatch table referencing thunks to predefined -- primitives. Next_Elmt (AI_Tag_Elmt); pragma Assert (Has_Suffix (Node (AI_Tag_Elmt), 'Y')); -- Secondary dispatch table referencing user-defined primitives -- covered by this interface. Next_Elmt (AI_Tag_Elmt); pragma Assert (Has_Suffix (Node (AI_Tag_Elmt), 'D')); -- Build the secondary table containing pointers to primitives -- (used to give support to Generic Dispatching Constructors). Make_Secondary_DT (Typ => Typ, Iface => Base_Type (Related_Type (Node (AI_Tag_Comp))), Iface_Comp => Node (AI_Tag_Comp), Suffix_Index => -1, Num_Iface_Prims => UI_To_Int (DT_Entry_Count (Node (AI_Tag_Comp))), Iface_DT_Ptr => Node (AI_Tag_Elmt), Predef_Prims_Ptr => Node (Next_Elmt (AI_Tag_Elmt)), Build_Thunks => False, Result => Result); -- Skip secondary dispatch table referencing predefined primitives Next_Elmt (AI_Tag_Elmt); pragma Assert (Has_Suffix (Node (AI_Tag_Elmt), 'Z')); Suffix_Index := Suffix_Index + 1; Next_Elmt (AI_Tag_Elmt); Next_Elmt (AI_Tag_Comp); end loop; end if; -- Get the _tag entity and number of primitives of its dispatch table DT_Ptr := Node (First_Elmt (Access_Disp_Table (Typ))); Nb_Prim := UI_To_Int (DT_Entry_Count (First_Tag_Component (Typ))); if Generate_SCIL then Nb_Prim := 0; end if; Set_Is_Statically_Allocated (DT, Is_Library_Level_Tagged_Type (Typ)); Set_Is_Statically_Allocated (SSD, Is_Library_Level_Tagged_Type (Typ)); Set_Is_Statically_Allocated (TSD, Is_Library_Level_Tagged_Type (Typ)); Set_Is_Statically_Allocated (Predef_Prims, Is_Library_Level_Tagged_Type (Typ)); -- In case of locally defined tagged type we declare the object -- containing the dispatch table by means of a variable. Its -- initialization is done later by means of an assignment. This is -- required to generate its External_Tag. if not Building_Static_DT (Typ) then -- Generate: -- DT : No_Dispatch_Table_Wrapper; -- DT_Ptr : Tag := !Tag (DT.NDT_Prims_Ptr'Address); if not Has_DT (Typ) then Append_To (Result, Make_Object_Declaration (Loc, Defining_Identifier => DT, Aliased_Present => True, Constant_Present => False, Object_Definition => New_Occurrence_Of (RTE (RE_No_Dispatch_Table_Wrapper), Loc))); Append_To (Result, Make_Object_Declaration (Loc, Defining_Identifier => DT_Ptr, Object_Definition => New_Occurrence_Of (RTE (RE_Tag), Loc), Constant_Present => True, Expression => Unchecked_Convert_To (RTE (RE_Tag), Make_Attribute_Reference (Loc, Prefix => Make_Selected_Component (Loc, Prefix => New_Occurrence_Of (DT, Loc), Selector_Name => New_Occurrence_Of (RTE_Record_Component (RE_NDT_Prims_Ptr), Loc)), Attribute_Name => Name_Address)))); Set_Is_Statically_Allocated (DT_Ptr, Is_Library_Level_Tagged_Type (Typ)); -- Generate the SCIL node for the previous object declaration -- because it has a tag initialization. if Generate_SCIL then New_Node := Make_SCIL_Dispatch_Table_Tag_Init (Sloc (Last (Result))); Set_SCIL_Entity (New_Node, Typ); Set_SCIL_Node (Last (Result), New_Node); goto Leave_SCIL; -- Gnat2scil has its own implementation of dispatch tables, -- different than what is being implemented here. Generating -- further dispatch table initialization code would just -- cause gnat2scil to generate useless Scil which CodePeer -- would waste time and space analyzing, so we skip it. end if; -- Generate: -- DT : Dispatch_Table_Wrapper (Nb_Prim); -- DT_Ptr : Tag := !Tag (DT.Prims_Ptr'Address); else -- If the tagged type has no primitives we add a dummy slot -- whose address will be the tag of this type. if Nb_Prim = 0 then DT_Constr_List := New_List (Make_Integer_Literal (Loc, 1)); else DT_Constr_List := New_List (Make_Integer_Literal (Loc, Nb_Prim)); end if; Append_To (Result, Make_Object_Declaration (Loc, Defining_Identifier => DT, Aliased_Present => True, Constant_Present => False, Object_Definition => Make_Subtype_Indication (Loc, Subtype_Mark => New_Occurrence_Of (RTE (RE_Dispatch_Table_Wrapper), Loc), Constraint => Make_Index_Or_Discriminant_Constraint (Loc, Constraints => DT_Constr_List)))); Append_To (Result, Make_Object_Declaration (Loc, Defining_Identifier => DT_Ptr, Object_Definition => New_Occurrence_Of (RTE (RE_Tag), Loc), Constant_Present => True, Expression => Unchecked_Convert_To (RTE (RE_Tag), Make_Attribute_Reference (Loc, Prefix => Make_Selected_Component (Loc, Prefix => New_Occurrence_Of (DT, Loc), Selector_Name => New_Occurrence_Of (RTE_Record_Component (RE_Prims_Ptr), Loc)), Attribute_Name => Name_Address)))); Set_Is_Statically_Allocated (DT_Ptr, Is_Library_Level_Tagged_Type (Typ)); -- Generate the SCIL node for the previous object declaration -- because it has a tag initialization. if Generate_SCIL then New_Node := Make_SCIL_Dispatch_Table_Tag_Init (Sloc (Last (Result))); Set_SCIL_Entity (New_Node, Typ); Set_SCIL_Node (Last (Result), New_Node); goto Leave_SCIL; -- Gnat2scil has its own implementation of dispatch tables, -- different than what is being implemented here. Generating -- further dispatch table initialization code would just -- cause gnat2scil to generate useless Scil which CodePeer -- would waste time and space analyzing, so we skip it. end if; Append_To (Result, Make_Object_Declaration (Loc, Defining_Identifier => Node (Next_Elmt (First_Elmt (Access_Disp_Table (Typ)))), Constant_Present => True, Object_Definition => New_Occurrence_Of (RTE (RE_Address), Loc), Expression => Make_Attribute_Reference (Loc, Prefix => Make_Selected_Component (Loc, Prefix => New_Occurrence_Of (DT, Loc), Selector_Name => New_Occurrence_Of (RTE_Record_Component (RE_Predef_Prims), Loc)), Attribute_Name => Name_Address))); end if; end if; -- Generate: Expanded_Name : constant String := ""; if Discard_Names then Append_To (Result, Make_Object_Declaration (Loc, Defining_Identifier => Exname, Constant_Present => True, Object_Definition => New_Occurrence_Of (Standard_String, Loc), Expression => Make_String_Literal (Loc, ""))); -- Generate: Exname : constant String := full_qualified_name (typ); -- The type itself may be an anonymous parent type, so use the first -- subtype to have a user-recognizable name. else Append_To (Result, Make_Object_Declaration (Loc, Defining_Identifier => Exname, Constant_Present => True, Object_Definition => New_Occurrence_Of (Standard_String, Loc), Expression => Make_String_Literal (Loc, Fully_Qualified_Name_String (First_Subtype (Typ))))); end if; Set_Is_Statically_Allocated (Exname); Set_Is_True_Constant (Exname); -- Declare the object used by Ada.Tags.Register_Tag if RTE_Available (RE_Register_Tag) then Append_To (Result, Make_Object_Declaration (Loc, Defining_Identifier => HT_Link, Object_Definition => New_Occurrence_Of (RTE (RE_Tag), Loc), Expression => New_Occurrence_Of (RTE (RE_No_Tag), Loc))); end if; -- Generate code to create the storage for the type specific data object -- with enough space to store the tags of the ancestors plus the tags -- of all the implemented interfaces (as described in a-tags.adb). -- TSD : Type_Specific_Data (I_Depth) := -- (Idepth => I_Depth, -- Access_Level => Type_Access_Level (Typ), -- Alignment => Typ'Alignment, -- Expanded_Name => Cstring_Ptr!(Exname'Address)) -- External_Tag => Cstring_Ptr!(Exname'Address)) -- HT_Link => HT_Link'Address, -- Transportable => <<boolean-value>>, -- Is_Abstract => <<boolean-value>>, -- Needs_Finalization => <<boolean-value>>, -- [ Size_Func => Size_Prim'Access, ] -- [ Interfaces_Table => <<access-value>>, ] -- [ SSD => SSD_Table'Address ] -- Tags_Table => (0 => null, -- 1 => Parent'Tag -- ...); TSD_Aggr_List := New_List; -- Idepth: Count ancestors to compute the inheritance depth. For private -- extensions, always go to the full view in order to compute the real -- inheritance depth. declare Current_Typ : Entity_Id; Parent_Typ : Entity_Id; begin I_Depth := 0; Current_Typ := Typ; loop Parent_Typ := Etype (Current_Typ); if Is_Private_Type (Parent_Typ) then Parent_Typ := Full_View (Base_Type (Parent_Typ)); end if; exit when Parent_Typ = Current_Typ; I_Depth := I_Depth + 1; Current_Typ := Parent_Typ; end loop; end; Append_To (TSD_Aggr_List, Make_Integer_Literal (Loc, I_Depth)); -- Access_Level Append_To (TSD_Aggr_List, Make_Integer_Literal (Loc, Type_Access_Level (Typ))); -- Alignment -- For CPP types we cannot rely on the value of 'Alignment provided -- by the backend to initialize this TSD field. if Convention (Typ) = Convention_CPP or else Is_CPP_Class (Root_Type (Typ)) then Append_To (TSD_Aggr_List, Make_Integer_Literal (Loc, 0)); else Append_To (TSD_Aggr_List, Make_Attribute_Reference (Loc, Prefix => New_Occurrence_Of (Typ, Loc), Attribute_Name => Name_Alignment)); end if; -- Expanded_Name Append_To (TSD_Aggr_List, Unchecked_Convert_To (RTE (RE_Cstring_Ptr), Make_Attribute_Reference (Loc, Prefix => New_Occurrence_Of (Exname, Loc), Attribute_Name => Name_Address))); -- External_Tag of a local tagged type -- <typ>A : constant String := -- "Internal tag at 16#tag-addr#: <full-name-of-typ>"; -- The reason we generate this strange name is that we do not want to -- enter local tagged types in the global hash table used to compute -- the Internal_Tag attribute for two reasons: -- 1. It is hard to avoid a tasking race condition for entering the -- entry into the hash table. -- 2. It would cause a storage leak, unless we rig up considerable -- mechanism to remove the entry from the hash table on exit. -- So what we do is to generate the above external tag name, where the -- hex address is the address of the local dispatch table (i.e. exactly -- the value we want if Internal_Tag is computed from this string). -- Of course this value will only be valid if the tagged type is still -- in scope, but it clearly must be erroneous to compute the internal -- tag of a tagged type that is out of scope. -- We don't do this processing if an explicit external tag has been -- specified. That's an odd case for which we have already issued a -- warning, where we will not be able to compute the internal tag. if not Discard_Names and then not Is_Library_Level_Entity (Typ) and then not Has_External_Tag_Rep_Clause (Typ) then declare Exname : constant Entity_Id := Make_Defining_Identifier (Loc, Chars => New_External_Name (Tname, 'A')); Full_Name : constant String_Id := Fully_Qualified_Name_String (First_Subtype (Typ)); Str1_Id : String_Id; Str2_Id : String_Id; begin -- Generate: -- Str1 = "Internal tag at 16#"; Start_String; Store_String_Chars ("Internal tag at 16#"); Str1_Id := End_String; -- Generate: -- Str2 = "#: <type-full-name>"; Start_String; Store_String_Chars ("#: "); Store_String_Chars (Full_Name); Str2_Id := End_String; -- Generate: -- Exname : constant String := -- Str1 & Address_Image (Tag) & Str2; if RTE_Available (RE_Address_Image) then Append_To (Result, Make_Object_Declaration (Loc, Defining_Identifier => Exname, Constant_Present => True, Object_Definition => New_Occurrence_Of (Standard_String, Loc), Expression => Make_Op_Concat (Loc, Left_Opnd => Make_String_Literal (Loc, Str1_Id), Right_Opnd => Make_Op_Concat (Loc, Left_Opnd => Make_Function_Call (Loc, Name => New_Occurrence_Of (RTE (RE_Address_Image), Loc), Parameter_Associations => New_List ( Unchecked_Convert_To (RTE (RE_Address), New_Occurrence_Of (DT_Ptr, Loc)))), Right_Opnd => Make_String_Literal (Loc, Str2_Id))))); -- Generate: -- Exname : constant String := Str1 & Str2; else Append_To (Result, Make_Object_Declaration (Loc, Defining_Identifier => Exname, Constant_Present => True, Object_Definition => New_Occurrence_Of (Standard_String, Loc), Expression => Make_Op_Concat (Loc, Left_Opnd => Make_String_Literal (Loc, Str1_Id), Right_Opnd => Make_String_Literal (Loc, Str2_Id)))); end if; New_Node := Unchecked_Convert_To (RTE (RE_Cstring_Ptr), Make_Attribute_Reference (Loc, Prefix => New_Occurrence_Of (Exname, Loc), Attribute_Name => Name_Address)); end; -- External tag of a library-level tagged type: Check for a definition -- of External_Tag. The clause is considered only if it applies to this -- specific tagged type, as opposed to one of its ancestors. -- If the type is an unconstrained type extension, we are building the -- dispatch table of its anonymous base type, so the external tag, if -- any was specified, must be retrieved from the first subtype. Go to -- the full view in case the clause is in the private part. else declare Def : constant Node_Id := Get_Attribute_Definition_Clause (Underlying_Type (First_Subtype (Typ)), Attribute_External_Tag); Old_Val : String_Id; New_Val : String_Id; E : Entity_Id; begin if not Present (Def) or else Entity (Name (Def)) /= First_Subtype (Typ) then New_Node := Unchecked_Convert_To (RTE (RE_Cstring_Ptr), Make_Attribute_Reference (Loc, Prefix => New_Occurrence_Of (Exname, Loc), Attribute_Name => Name_Address)); else Old_Val := Strval (Expr_Value_S (Expression (Def))); -- For the rep clause "for <typ>'external_tag use y" generate: -- <typ>A : constant string := y; -- -- <typ>A'Address is used to set the External_Tag component -- of the TSD -- Create a new nul terminated string if it is not already if String_Length (Old_Val) > 0 and then Get_String_Char (Old_Val, String_Length (Old_Val)) = 0 then New_Val := Old_Val; else Start_String (Old_Val); Store_String_Char (Get_Char_Code (ASCII.NUL)); New_Val := End_String; end if; E := Make_Defining_Identifier (Loc, New_External_Name (Chars (Typ), 'A')); Append_To (Result, Make_Object_Declaration (Loc, Defining_Identifier => E, Constant_Present => True, Object_Definition => New_Occurrence_Of (Standard_String, Loc), Expression => Make_String_Literal (Loc, New_Val))); New_Node := Unchecked_Convert_To (RTE (RE_Cstring_Ptr), Make_Attribute_Reference (Loc, Prefix => New_Occurrence_Of (E, Loc), Attribute_Name => Name_Address)); end if; end; end if; Append_To (TSD_Aggr_List, New_Node); -- HT_Link if RTE_Available (RE_Register_Tag) then Append_To (TSD_Aggr_List, Unchecked_Convert_To (RTE (RE_Tag_Ptr), Make_Attribute_Reference (Loc, Prefix => New_Occurrence_Of (HT_Link, Loc), Attribute_Name => Name_Address))); elsif RTE_Record_Component_Available (RE_HT_Link) then Append_To (TSD_Aggr_List, Unchecked_Convert_To (RTE (RE_Tag_Ptr), New_Occurrence_Of (RTE (RE_Null_Address), Loc))); end if; -- Transportable: Set for types that can be used in remote calls -- with respect to E.4(18) legality rules. declare Transportable : Entity_Id; begin Transportable := Boolean_Literals (Is_Pure (Typ) or else Is_Shared_Passive (Typ) or else ((Is_Remote_Types (Typ) or else Is_Remote_Call_Interface (Typ)) and then Original_View_In_Visible_Part (Typ)) or else not Comes_From_Source (Typ)); Append_To (TSD_Aggr_List, New_Occurrence_Of (Transportable, Loc)); end; -- Is_Abstract (Ada 2012: AI05-0173). This functionality is not -- available in the HIE runtime. if RTE_Record_Component_Available (RE_Is_Abstract) then declare Is_Abstract : Entity_Id; begin Is_Abstract := Boolean_Literals (Is_Abstract_Type (Typ)); Append_To (TSD_Aggr_List, New_Occurrence_Of (Is_Abstract, Loc)); end; end if; -- Needs_Finalization: Set if the type is controlled or has controlled -- components. declare Needs_Fin : Entity_Id; begin Needs_Fin := Boolean_Literals (Needs_Finalization (Typ)); Append_To (TSD_Aggr_List, New_Occurrence_Of (Needs_Fin, Loc)); end; -- Size_Func if RTE_Record_Component_Available (RE_Size_Func) then -- Initialize this field to Null_Address if we are not building -- static dispatch tables static or if the size function is not -- available. In the former case we cannot initialize this field -- until the function is frozen and registered in the dispatch -- table (see Register_Primitive). if not Building_Static_DT (Typ) or else not Has_DT (Typ) then Append_To (TSD_Aggr_List, Unchecked_Convert_To (RTE (RE_Size_Ptr), New_Occurrence_Of (RTE (RE_Null_Address), Loc))); else declare Prim_Elmt : Elmt_Id; Prim : Entity_Id; Size_Comp : Node_Id := Empty; begin Prim_Elmt := First_Elmt (Primitive_Operations (Typ)); while Present (Prim_Elmt) loop Prim := Node (Prim_Elmt); if Chars (Prim) = Name_uSize then Prim := Ultimate_Alias (Prim); if Is_Abstract_Subprogram (Prim) then Size_Comp := Unchecked_Convert_To (RTE (RE_Size_Ptr), New_Occurrence_Of (RTE (RE_Null_Address), Loc)); else Size_Comp := Unchecked_Convert_To (RTE (RE_Size_Ptr), Make_Attribute_Reference (Loc, Prefix => New_Occurrence_Of (Prim, Loc), Attribute_Name => Name_Unrestricted_Access)); end if; exit; end if; Next_Elmt (Prim_Elmt); end loop; pragma Assert (Present (Size_Comp)); Append_To (TSD_Aggr_List, Size_Comp); end; end if; end if; -- Interfaces_Table (required for AI-405) if RTE_Record_Component_Available (RE_Interfaces_Table) then -- Count the number of interface types implemented by Typ Collect_Interfaces (Typ, Typ_Ifaces); AI := First_Elmt (Typ_Ifaces); while Present (AI) loop Num_Ifaces := Num_Ifaces + 1; Next_Elmt (AI); end loop; if Num_Ifaces = 0 then Iface_Table_Node := Make_Null (Loc); -- Generate the Interface_Table object else declare TSD_Ifaces_List : constant List_Id := New_List; Elmt : Elmt_Id; Offset_To_Top : Node_Id; Sec_DT_Tag : Node_Id; Dummy_Object_Ifaces_List : Elist_Id := No_Elist; Dummy_Object_Ifaces_Comp_List : Elist_Id := No_Elist; Dummy_Object_Ifaces_Tag_List : Elist_Id := No_Elist; -- Interfaces information of the dummy object begin -- Collect interfaces information if we need to compute the -- offset to the top using the dummy object. if Present (Dummy_Object) then Collect_Interfaces_Info (Typ, Ifaces_List => Dummy_Object_Ifaces_List, Components_List => Dummy_Object_Ifaces_Comp_List, Tags_List => Dummy_Object_Ifaces_Tag_List); end if; AI := First_Elmt (Typ_Ifaces); while Present (AI) loop if Is_Ancestor (Node (AI), Typ, Use_Full_View => True) then Sec_DT_Tag := New_Occurrence_Of (DT_Ptr, Loc); else Elmt := Next_Elmt (Next_Elmt (First_Elmt (Access_Disp_Table (Typ)))); pragma Assert (Has_Thunks (Node (Elmt))); while Is_Tag (Node (Elmt)) and then not Is_Ancestor (Node (AI), Related_Type (Node (Elmt)), Use_Full_View => True) loop pragma Assert (Has_Thunks (Node (Elmt))); Next_Elmt (Elmt); pragma Assert (Has_Thunks (Node (Elmt))); Next_Elmt (Elmt); pragma Assert (not Has_Thunks (Node (Elmt))); Next_Elmt (Elmt); pragma Assert (not Has_Thunks (Node (Elmt))); Next_Elmt (Elmt); end loop; pragma Assert (Ekind (Node (Elmt)) = E_Constant and then not Has_Thunks (Node (Next_Elmt (Next_Elmt (Elmt))))); Sec_DT_Tag := New_Occurrence_Of (Node (Next_Elmt (Next_Elmt (Elmt))), Loc); end if; -- Use the dummy object to compute Offset_To_Top of -- components located at fixed position. if Present (Dummy_Object) then declare Iface : constant Node_Id := Node (AI); Iface_Comp : Node_Id := Empty; Iface_Comp_Elmt : Elmt_Id; Iface_Elmt : Elmt_Id; begin Iface_Elmt := First_Elmt (Dummy_Object_Ifaces_List); Iface_Comp_Elmt := First_Elmt (Dummy_Object_Ifaces_Comp_List); while Present (Iface_Elmt) loop if Node (Iface_Elmt) = Iface then Iface_Comp := Node (Iface_Comp_Elmt); exit; end if; Next_Elmt (Iface_Elmt); Next_Elmt (Iface_Comp_Elmt); end loop; pragma Assert (Present (Iface_Comp)); if not Is_Variable_Size_Record (Etype (Scope (Iface_Comp))) then Offset_To_Top := Make_Op_Minus (Loc, Make_Attribute_Reference (Loc, Prefix => Make_Selected_Component (Loc, Prefix => New_Occurrence_Of (Dummy_Object, Loc), Selector_Name => New_Occurrence_Of (Iface_Comp, Loc)), Attribute_Name => Name_Position)); else Offset_To_Top := Make_Integer_Literal (Loc, 0); end if; end; else Offset_To_Top := Make_Integer_Literal (Loc, 0); end if; Append_To (TSD_Ifaces_List, Make_Aggregate (Loc, Expressions => New_List ( -- Iface_Tag Unchecked_Convert_To (RTE (RE_Tag), New_Occurrence_Of (Node (First_Elmt (Access_Disp_Table (Node (AI)))), Loc)), -- Static_Offset_To_Top New_Occurrence_Of (Standard_True, Loc), -- Offset_To_Top_Value Offset_To_Top, -- Offset_To_Top_Func Make_Null (Loc), -- Secondary_DT Unchecked_Convert_To (RTE (RE_Tag), Sec_DT_Tag)))); Next_Elmt (AI); end loop; Name_ITable := New_External_Name (Tname, 'I'); ITable := Make_Defining_Identifier (Loc, Name_ITable); Set_Is_Statically_Allocated (ITable, Is_Library_Level_Tagged_Type (Typ)); -- The table of interfaces is constant if we are building a -- static dispatch table; otherwise is not constant because -- its slots are filled at run time by the IP routine. Append_To (Result, Make_Object_Declaration (Loc, Defining_Identifier => ITable, Aliased_Present => True, Constant_Present => Building_Static_Secondary_DT (Typ), Object_Definition => Make_Subtype_Indication (Loc, Subtype_Mark => New_Occurrence_Of (RTE (RE_Interface_Data), Loc), Constraint => Make_Index_Or_Discriminant_Constraint (Loc, Constraints => New_List ( Make_Integer_Literal (Loc, Num_Ifaces)))), Expression => Make_Aggregate (Loc, Expressions => New_List ( Make_Integer_Literal (Loc, Num_Ifaces), Make_Aggregate (Loc, TSD_Ifaces_List))))); Iface_Table_Node := Make_Attribute_Reference (Loc, Prefix => New_Occurrence_Of (ITable, Loc), Attribute_Name => Name_Unchecked_Access); end; end if; Append_To (TSD_Aggr_List, Iface_Table_Node); end if; -- Generate the Select Specific Data table for synchronized types that -- implement synchronized interfaces. The size of the table is -- constrained by the number of non-predefined primitive operations. if RTE_Record_Component_Available (RE_SSD) then if Ada_Version >= Ada_2005 and then Has_DT (Typ) and then Is_Concurrent_Record_Type (Typ) and then Has_Interfaces (Typ) and then Nb_Prim > 0 and then not Is_Abstract_Type (Typ) and then not Is_Controlled (Typ) and then not Restriction_Active (No_Dispatching_Calls) and then not Restriction_Active (No_Select_Statements) then Append_To (Result, Make_Object_Declaration (Loc, Defining_Identifier => SSD, Aliased_Present => True, Object_Definition => Make_Subtype_Indication (Loc, Subtype_Mark => New_Occurrence_Of ( RTE (RE_Select_Specific_Data), Loc), Constraint => Make_Index_Or_Discriminant_Constraint (Loc, Constraints => New_List ( Make_Integer_Literal (Loc, Nb_Prim)))))); Append_To (Result, Make_Attribute_Definition_Clause (Loc, Name => New_Occurrence_Of (SSD, Loc), Chars => Name_Alignment, Expression => Make_Attribute_Reference (Loc, Prefix => New_Occurrence_Of (RTE (RE_Integer_Address), Loc), Attribute_Name => Name_Alignment))); -- This table is initialized by Make_Select_Specific_Data_Table, -- which calls Set_Entry_Index and Set_Prim_Op_Kind. Append_To (TSD_Aggr_List, Make_Attribute_Reference (Loc, Prefix => New_Occurrence_Of (SSD, Loc), Attribute_Name => Name_Unchecked_Access)); else Append_To (TSD_Aggr_List, Make_Null (Loc)); end if; end if; -- Initialize the table of ancestor tags. In case of interface types -- this table is not needed. TSD_Tags_List := New_List; -- If we are not statically allocating the dispatch table then we must -- fill position 0 with null because we still have not generated the -- tag of Typ. if not Building_Static_DT (Typ) or else Is_Interface (Typ) then Append_To (TSD_Tags_List, Unchecked_Convert_To (RTE (RE_Tag), New_Occurrence_Of (RTE (RE_Null_Address), Loc))); -- Otherwise we can safely reference the tag else Append_To (TSD_Tags_List, New_Occurrence_Of (DT_Ptr, Loc)); end if; -- Fill the rest of the table with the tags of the ancestors declare Current_Typ : Entity_Id; Parent_Typ : Entity_Id; Pos : Nat; begin Pos := 1; Current_Typ := Typ; loop Parent_Typ := Etype (Current_Typ); if Is_Private_Type (Parent_Typ) then Parent_Typ := Full_View (Base_Type (Parent_Typ)); end if; exit when Parent_Typ = Current_Typ; if Is_CPP_Class (Parent_Typ) then -- The tags defined in the C++ side will be inherited when -- the object is constructed (Exp_Ch3.Build_Init_Procedure) Append_To (TSD_Tags_List, Unchecked_Convert_To (RTE (RE_Tag), New_Occurrence_Of (RTE (RE_Null_Address), Loc))); else Append_To (TSD_Tags_List, New_Occurrence_Of (Node (First_Elmt (Access_Disp_Table (Parent_Typ))), Loc)); end if; Pos := Pos + 1; Current_Typ := Parent_Typ; end loop; pragma Assert (Pos = I_Depth + 1); end; Append_To (TSD_Aggr_List, Make_Aggregate (Loc, Expressions => TSD_Tags_List)); -- Build the TSD object Append_To (Result, Make_Object_Declaration (Loc, Defining_Identifier => TSD, Aliased_Present => True, Constant_Present => Building_Static_DT (Typ), Object_Definition => Make_Subtype_Indication (Loc, Subtype_Mark => New_Occurrence_Of ( RTE (RE_Type_Specific_Data), Loc), Constraint => Make_Index_Or_Discriminant_Constraint (Loc, Constraints => New_List ( Make_Integer_Literal (Loc, I_Depth)))), Expression => Make_Aggregate (Loc, Expressions => TSD_Aggr_List))); Set_Is_True_Constant (TSD, Building_Static_DT (Typ)); -- Initialize or declare the dispatch table object if not Has_DT (Typ) then DT_Constr_List := New_List; DT_Aggr_List := New_List; -- Typeinfo New_Node := Make_Attribute_Reference (Loc, Prefix => New_Occurrence_Of (TSD, Loc), Attribute_Name => Name_Address); Append_To (DT_Constr_List, New_Node); Append_To (DT_Aggr_List, New_Copy (New_Node)); Append_To (DT_Aggr_List, Make_Integer_Literal (Loc, 0)); -- In case of locally defined tagged types we have already declared -- and uninitialized object for the dispatch table, which is now -- initialized by means of the following assignment: -- DT := (TSD'Address, 0); if not Building_Static_DT (Typ) then Append_To (Result, Make_Assignment_Statement (Loc, Name => New_Occurrence_Of (DT, Loc), Expression => Make_Aggregate (Loc, DT_Aggr_List))); -- In case of library level tagged types we declare and export now -- the constant object containing the dummy dispatch table. There -- is no need to declare the tag here because it has been previously -- declared by Make_Tags -- DT : aliased constant No_Dispatch_Table := -- (NDT_TSD => TSD'Address; -- NDT_Prims_Ptr => 0); else Append_To (Result, Make_Object_Declaration (Loc, Defining_Identifier => DT, Aliased_Present => True, Constant_Present => True, Object_Definition => New_Occurrence_Of (RTE (RE_No_Dispatch_Table_Wrapper), Loc), Expression => Make_Aggregate (Loc, DT_Aggr_List))); Export_DT (Typ, DT); end if; -- Common case: Typ has a dispatch table -- Generate: -- Predef_Prims : Address_Array (1 .. Default_Prim_Ops_Count) := -- (predef-prim-op-1'address, -- predef-prim-op-2'address, -- ... -- predef-prim-op-n'address); -- DT : Dispatch_Table (Nb_Prims) := -- (Signature => <sig-value>, -- Tag_Kind => <tag_kind-value>, -- Predef_Prims => Predef_Prims'First'Address, -- Offset_To_Top => 0, -- TSD => TSD'Address; -- Prims_Ptr => (prim-op-1'address, -- prim-op-2'address, -- ... -- prim-op-n'address)); -- for DT'Alignment use Address'Alignment else declare Nb_P_Prims : constant Nat := Number_Of_Predefined_Prims (Typ); Prim_Table : array (Nat range 1 .. Nb_P_Prims) of Entity_Id; Decl : Node_Id; E : Entity_Id; begin Prim_Ops_Aggr_List := New_List; Prim_Table := (others => Empty); if Building_Static_DT (Typ) then Prim_Elmt := First_Elmt (Primitive_Operations (Typ)); while Present (Prim_Elmt) loop Prim := Node (Prim_Elmt); if Is_Predefined_Dispatching_Operation (Prim) and then not Is_Abstract_Subprogram (Prim) and then not Is_Eliminated (Prim) and then not Generate_SCIL and then not Present (Prim_Table (UI_To_Int (DT_Position (Prim)))) then E := Ultimate_Alias (Prim); pragma Assert (not Is_Abstract_Subprogram (E)); Prim_Table (UI_To_Int (DT_Position (Prim))) := E; end if; Next_Elmt (Prim_Elmt); end loop; end if; for J in Prim_Table'Range loop if Present (Prim_Table (J)) then New_Node := Unchecked_Convert_To (RTE (RE_Prim_Ptr), Make_Attribute_Reference (Loc, Prefix => New_Occurrence_Of (Prim_Table (J), Loc), Attribute_Name => Name_Unrestricted_Access)); else New_Node := Make_Null (Loc); end if; Append_To (Prim_Ops_Aggr_List, New_Node); end loop; New_Node := Make_Aggregate (Loc, Expressions => Prim_Ops_Aggr_List); Decl := Make_Subtype_Declaration (Loc, Defining_Identifier => Make_Temporary (Loc, 'S'), Subtype_Indication => New_Occurrence_Of (RTE (RE_Address_Array), Loc)); Append_To (Result, Decl); Append_To (Result, Make_Object_Declaration (Loc, Defining_Identifier => Predef_Prims, Aliased_Present => True, Constant_Present => Building_Static_DT (Typ), Object_Definition => New_Occurrence_Of (Defining_Identifier (Decl), Loc), Expression => New_Node)); -- Remember aggregates initializing dispatch tables Append_Elmt (New_Node, DT_Aggr); end; -- Stage 1: Initialize the discriminant and the record components DT_Constr_List := New_List; DT_Aggr_List := New_List; -- Num_Prims. If the tagged type has no primitives we add a dummy -- slot whose address will be the tag of this type. if Nb_Prim = 0 then New_Node := Make_Integer_Literal (Loc, 1); else New_Node := Make_Integer_Literal (Loc, Nb_Prim); end if; Append_To (DT_Constr_List, New_Node); Append_To (DT_Aggr_List, New_Copy (New_Node)); -- Signature if RTE_Record_Component_Available (RE_Signature) then Append_To (DT_Aggr_List, New_Occurrence_Of (RTE (RE_Primary_DT), Loc)); end if; -- Tag_Kind if RTE_Record_Component_Available (RE_Tag_Kind) then Append_To (DT_Aggr_List, Tagged_Kind (Typ)); end if; -- Predef_Prims Append_To (DT_Aggr_List, Make_Attribute_Reference (Loc, Prefix => New_Occurrence_Of (Predef_Prims, Loc), Attribute_Name => Name_Address)); -- Offset_To_Top Append_To (DT_Aggr_List, Make_Integer_Literal (Loc, 0)); -- Typeinfo Append_To (DT_Aggr_List, Make_Attribute_Reference (Loc, Prefix => New_Occurrence_Of (TSD, Loc), Attribute_Name => Name_Address)); -- Stage 2: Initialize the table of user-defined primitive operations Prim_Ops_Aggr_List := New_List; if Nb_Prim = 0 then Append_To (Prim_Ops_Aggr_List, Make_Null (Loc)); elsif not Building_Static_DT (Typ) then for J in 1 .. Nb_Prim loop Append_To (Prim_Ops_Aggr_List, Make_Null (Loc)); end loop; else declare CPP_Nb_Prims : constant Nat := CPP_Num_Prims (Typ); E : Entity_Id; Prim : Entity_Id; Prim_Elmt : Elmt_Id; Prim_Pos : Nat; Prim_Table : array (Nat range 1 .. Nb_Prim) of Entity_Id; begin Prim_Table := (others => Empty); Prim_Elmt := First_Elmt (Primitive_Operations (Typ)); while Present (Prim_Elmt) loop Prim := Node (Prim_Elmt); -- Retrieve the ultimate alias of the primitive for proper -- handling of renamings and eliminated primitives. E := Ultimate_Alias (Prim); -- If the alias is not a primitive operation then Prim does -- not rename another primitive, but rather an operation -- declared elsewhere (e.g. in another scope) and therefore -- Prim is a new primitive. if No (Find_Dispatching_Type (E)) then E := Prim; end if; Prim_Pos := UI_To_Int (DT_Position (E)); -- Skip predefined primitives because they are located in a -- separate dispatch table. if not Is_Predefined_Dispatching_Operation (Prim) and then not Is_Predefined_Dispatching_Operation (E) -- Skip entities with attribute Interface_Alias because -- those are only required to build secondary dispatch -- tables. and then not Present (Interface_Alias (Prim)) -- Skip abstract and eliminated primitives and then not Is_Abstract_Subprogram (E) and then not Is_Eliminated (E) -- For derivations of CPP types skip primitives located in -- the C++ part of the dispatch table because their slots -- are initialized by the IC routine. and then (not Is_CPP_Class (Root_Type (Typ)) or else Prim_Pos > CPP_Nb_Prims) -- Skip ignored Ghost subprograms as those will be removed -- from the executable. and then not Is_Ignored_Ghost_Entity (E) then pragma Assert (UI_To_Int (DT_Position (Prim)) <= Nb_Prim); Prim_Table (UI_To_Int (DT_Position (Prim))) := E; end if; Next_Elmt (Prim_Elmt); end loop; for J in Prim_Table'Range loop if Present (Prim_Table (J)) then New_Node := Unchecked_Convert_To (RTE (RE_Prim_Ptr), Make_Attribute_Reference (Loc, Prefix => New_Occurrence_Of (Prim_Table (J), Loc), Attribute_Name => Name_Unrestricted_Access)); else New_Node := Make_Null (Loc); end if; Append_To (Prim_Ops_Aggr_List, New_Node); end loop; end; end if; New_Node := Make_Aggregate (Loc, Expressions => Prim_Ops_Aggr_List); Append_To (DT_Aggr_List, New_Node); -- Remember aggregates initializing dispatch tables Append_Elmt (New_Node, DT_Aggr); -- In case of locally defined tagged types we have already declared -- and uninitialized object for the dispatch table, which is now -- initialized by means of an assignment. if not Building_Static_DT (Typ) then Append_To (Result, Make_Assignment_Statement (Loc, Name => New_Occurrence_Of (DT, Loc), Expression => Make_Aggregate (Loc, DT_Aggr_List))); -- In case of library level tagged types we declare now and export -- the constant object containing the dispatch table. else Append_To (Result, Make_Object_Declaration (Loc, Defining_Identifier => DT, Aliased_Present => True, Constant_Present => True, Object_Definition => Make_Subtype_Indication (Loc, Subtype_Mark => New_Occurrence_Of (RTE (RE_Dispatch_Table_Wrapper), Loc), Constraint => Make_Index_Or_Discriminant_Constraint (Loc, Constraints => DT_Constr_List)), Expression => Make_Aggregate (Loc, DT_Aggr_List))); Export_DT (Typ, DT); end if; end if; -- Initialize the table of ancestor tags if not building static -- dispatch table if not Building_Static_DT (Typ) and then not Is_Interface (Typ) and then not Is_CPP_Class (Typ) then Append_To (Result, Make_Assignment_Statement (Loc, Name => Make_Indexed_Component (Loc, Prefix => Make_Selected_Component (Loc, Prefix => New_Occurrence_Of (TSD, Loc), Selector_Name => New_Occurrence_Of (RTE_Record_Component (RE_Tags_Table), Loc)), Expressions => New_List (Make_Integer_Literal (Loc, 0))), Expression => New_Occurrence_Of (Node (First_Elmt (Access_Disp_Table (Typ))), Loc))); end if; -- Inherit the dispatch tables of the parent. There is no need to -- inherit anything from the parent when building static dispatch tables -- because the whole dispatch table (including inherited primitives) has -- been already built. if Building_Static_DT (Typ) then null; -- If the ancestor is a CPP_Class type we inherit the dispatch tables -- in the init proc, and we don't need to fill them in here. elsif Is_CPP_Class (Parent_Typ) then null; -- Otherwise we fill in the dispatch tables here else if Typ /= Parent_Typ and then not Is_Interface (Typ) and then not Restriction_Active (No_Dispatching_Calls) then -- Inherit the dispatch table if not Is_Interface (Typ) and then not Is_Interface (Parent_Typ) and then not Is_CPP_Class (Parent_Typ) then declare Nb_Prims : constant Int := UI_To_Int (DT_Entry_Count (First_Tag_Component (Parent_Typ))); begin Append_To (Elab_Code, Build_Inherit_Predefined_Prims (Loc, Old_Tag_Node => New_Occurrence_Of (Node (Next_Elmt (First_Elmt (Access_Disp_Table (Parent_Typ)))), Loc), New_Tag_Node => New_Occurrence_Of (Node (Next_Elmt (First_Elmt (Access_Disp_Table (Typ)))), Loc), Num_Predef_Prims => Number_Of_Predefined_Prims (Parent_Typ))); if Nb_Prims /= 0 then Append_To (Elab_Code, Build_Inherit_Prims (Loc, Typ => Typ, Old_Tag_Node => New_Occurrence_Of (Node (First_Elmt (Access_Disp_Table (Parent_Typ))), Loc), New_Tag_Node => New_Occurrence_Of (DT_Ptr, Loc), Num_Prims => Nb_Prims)); end if; end; end if; -- Inherit the secondary dispatch tables of the ancestor if not Is_CPP_Class (Parent_Typ) then declare Sec_DT_Ancestor : Elmt_Id := Next_Elmt (Next_Elmt (First_Elmt (Access_Disp_Table (Parent_Typ)))); Sec_DT_Typ : Elmt_Id := Next_Elmt (Next_Elmt (First_Elmt (Access_Disp_Table (Typ)))); procedure Copy_Secondary_DTs (Typ : Entity_Id); -- Local procedure required to climb through the ancestors -- and copy the contents of all their secondary dispatch -- tables. ------------------------ -- Copy_Secondary_DTs -- ------------------------ procedure Copy_Secondary_DTs (Typ : Entity_Id) is E : Entity_Id; Iface : Elmt_Id; begin -- Climb to the ancestor (if any) handling private types if Present (Full_View (Etype (Typ))) then if Full_View (Etype (Typ)) /= Typ then Copy_Secondary_DTs (Full_View (Etype (Typ))); end if; elsif Etype (Typ) /= Typ then Copy_Secondary_DTs (Etype (Typ)); end if; if Present (Interfaces (Typ)) and then not Is_Empty_Elmt_List (Interfaces (Typ)) then Iface := First_Elmt (Interfaces (Typ)); E := First_Entity (Typ); while Present (E) and then Present (Node (Sec_DT_Ancestor)) and then Ekind (Node (Sec_DT_Ancestor)) = E_Constant loop if Is_Tag (E) and then Chars (E) /= Name_uTag then declare Num_Prims : constant Int := UI_To_Int (DT_Entry_Count (E)); begin if not Is_Interface (Etype (Typ)) then -- Inherit first secondary dispatch table Append_To (Elab_Code, Build_Inherit_Predefined_Prims (Loc, Old_Tag_Node => Unchecked_Convert_To (RTE (RE_Tag), New_Occurrence_Of (Node (Next_Elmt (Sec_DT_Ancestor)), Loc)), New_Tag_Node => Unchecked_Convert_To (RTE (RE_Tag), New_Occurrence_Of (Node (Next_Elmt (Sec_DT_Typ)), Loc)), Num_Predef_Prims => Number_Of_Predefined_Prims (Parent_Typ))); if Num_Prims /= 0 then Append_To (Elab_Code, Build_Inherit_Prims (Loc, Typ => Node (Iface), Old_Tag_Node => Unchecked_Convert_To (RTE (RE_Tag), New_Occurrence_Of (Node (Sec_DT_Ancestor), Loc)), New_Tag_Node => Unchecked_Convert_To (RTE (RE_Tag), New_Occurrence_Of (Node (Sec_DT_Typ), Loc)), Num_Prims => Num_Prims)); end if; end if; Next_Elmt (Sec_DT_Ancestor); Next_Elmt (Sec_DT_Typ); -- Skip the secondary dispatch table of -- predefined primitives Next_Elmt (Sec_DT_Ancestor); Next_Elmt (Sec_DT_Typ); if not Is_Interface (Etype (Typ)) then -- Inherit second secondary dispatch table Append_To (Elab_Code, Build_Inherit_Predefined_Prims (Loc, Old_Tag_Node => Unchecked_Convert_To (RTE (RE_Tag), New_Occurrence_Of (Node (Next_Elmt (Sec_DT_Ancestor)), Loc)), New_Tag_Node => Unchecked_Convert_To (RTE (RE_Tag), New_Occurrence_Of (Node (Next_Elmt (Sec_DT_Typ)), Loc)), Num_Predef_Prims => Number_Of_Predefined_Prims (Parent_Typ))); if Num_Prims /= 0 then Append_To (Elab_Code, Build_Inherit_Prims (Loc, Typ => Node (Iface), Old_Tag_Node => Unchecked_Convert_To (RTE (RE_Tag), New_Occurrence_Of (Node (Sec_DT_Ancestor), Loc)), New_Tag_Node => Unchecked_Convert_To (RTE (RE_Tag), New_Occurrence_Of (Node (Sec_DT_Typ), Loc)), Num_Prims => Num_Prims)); end if; end if; end; Next_Elmt (Sec_DT_Ancestor); Next_Elmt (Sec_DT_Typ); -- Skip the secondary dispatch table of -- predefined primitives Next_Elmt (Sec_DT_Ancestor); Next_Elmt (Sec_DT_Typ); Next_Elmt (Iface); end if; Next_Entity (E); end loop; end if; end Copy_Secondary_DTs; begin if Present (Node (Sec_DT_Ancestor)) and then Ekind (Node (Sec_DT_Ancestor)) = E_Constant then -- Handle private types if Present (Full_View (Typ)) then Copy_Secondary_DTs (Full_View (Typ)); else Copy_Secondary_DTs (Typ); end if; end if; end; end if; end if; end if; -- Generate code to check if the external tag of this type is the same -- as the external tag of some other declaration. -- Check_TSD (TSD'Unrestricted_Access); -- This check is a consequence of AI05-0113-1/06, so it officially -- applies to Ada 2005 (and Ada 2012). It might be argued that it is -- a desirable check to add in Ada 95 mode, but we hesitate to make -- this change, as it would be incompatible, and could conceivably -- cause a problem in existing Ada 95 code. -- We check for No_Run_Time_Mode here, because we do not want to pick -- up the RE_Check_TSD entity and call it in No_Run_Time mode. -- We cannot perform this check if the generation of its expanded name -- was discarded. if not No_Run_Time_Mode and then not Discard_Names and then Ada_Version >= Ada_2005 and then RTE_Available (RE_Check_TSD) and then not Duplicated_Tag_Checks_Suppressed (Typ) then Append_To (Elab_Code, Make_Procedure_Call_Statement (Loc, Name => New_Occurrence_Of (RTE (RE_Check_TSD), Loc), Parameter_Associations => New_List ( Make_Attribute_Reference (Loc, Prefix => New_Occurrence_Of (TSD, Loc), Attribute_Name => Name_Unchecked_Access)))); end if; -- Generate code to register the Tag in the External_Tag hash table for -- the pure Ada type only. -- Register_Tag (Dt_Ptr); -- Skip this action in the following cases: -- 1) if Register_Tag is not available. -- 2) in No_Run_Time mode. -- 3) if Typ is not defined at the library level (this is required -- to avoid adding concurrency control to the hash table used -- by the run-time to register the tags). if not No_Run_Time_Mode and then Is_Library_Level_Entity (Typ) and then RTE_Available (RE_Register_Tag) then Append_To (Elab_Code, Make_Procedure_Call_Statement (Loc, Name => New_Occurrence_Of (RTE (RE_Register_Tag), Loc), Parameter_Associations => New_List (New_Occurrence_Of (DT_Ptr, Loc)))); end if; if not Is_Empty_List (Elab_Code) then Append_List_To (Result, Elab_Code); end if; -- Populate the two auxiliary tables used for dispatching asynchronous, -- conditional and timed selects for synchronized types that implement -- a limited interface. Skip this step in Ravenscar profile or when -- general dispatching is forbidden. if Ada_Version >= Ada_2005 and then Is_Concurrent_Record_Type (Typ) and then Has_Interfaces (Typ) and then not Restriction_Active (No_Dispatching_Calls) and then not Restriction_Active (No_Select_Statements) then Append_List_To (Result, Make_Select_Specific_Data_Table (Typ)); end if; -- Remember entities containing dispatch tables Append_Elmt (Predef_Prims, DT_Decl); Append_Elmt (DT, DT_Decl); Analyze_List (Result, Suppress => All_Checks); Set_Has_Dispatch_Table (Typ); -- Mark entities containing dispatch tables. Required by the backend to -- handle them properly. if Has_DT (Typ) then declare Elmt : Elmt_Id; begin -- Object declarations Elmt := First_Elmt (DT_Decl); while Present (Elmt) loop Set_Is_Dispatch_Table_Entity (Node (Elmt)); pragma Assert (Ekind (Etype (Node (Elmt))) = E_Array_Subtype or else Ekind (Etype (Node (Elmt))) = E_Record_Subtype); Set_Is_Dispatch_Table_Entity (Etype (Node (Elmt))); Next_Elmt (Elmt); end loop; -- Aggregates initializing dispatch tables Elmt := First_Elmt (DT_Aggr); while Present (Elmt) loop Set_Is_Dispatch_Table_Entity (Etype (Node (Elmt))); Next_Elmt (Elmt); end loop; end; end if; <<Leave_SCIL>> -- Register the tagged type in the call graph nodes table Register_CG_Node (Typ); <<Leave>> Restore_Ghost_Region (Saved_GM, Saved_IGR); return Result; end Make_DT; ------------------------------------- -- Make_Select_Specific_Data_Table -- ------------------------------------- function Make_Select_Specific_Data_Table (Typ : Entity_Id) return List_Id is Assignments : constant List_Id := New_List; Loc : constant Source_Ptr := Sloc (Typ); Conc_Typ : Entity_Id; Decls : List_Id := No_List; Prim : Entity_Id; Prim_Als : Entity_Id; Prim_Elmt : Elmt_Id; Prim_Pos : Uint; Nb_Prim : Nat := 0; type Examined_Array is array (Int range <>) of Boolean; function Find_Entry_Index (E : Entity_Id) return Uint; -- Given an entry, find its index in the visible declarations of the -- corresponding concurrent type of Typ. ---------------------- -- Find_Entry_Index -- ---------------------- function Find_Entry_Index (E : Entity_Id) return Uint is Index : Uint := Uint_1; Subp_Decl : Entity_Id; begin if Present (Decls) and then not Is_Empty_List (Decls) then Subp_Decl := First (Decls); while Present (Subp_Decl) loop if Nkind (Subp_Decl) = N_Entry_Declaration then if Defining_Identifier (Subp_Decl) = E then return Index; end if; Index := Index + 1; end if; Next (Subp_Decl); end loop; end if; return Uint_0; end Find_Entry_Index; -- Local variables Tag_Node : Node_Id; -- Start of processing for Make_Select_Specific_Data_Table begin pragma Assert (not Restriction_Active (No_Dispatching_Calls)); if Present (Corresponding_Concurrent_Type (Typ)) then Conc_Typ := Corresponding_Concurrent_Type (Typ); if Present (Full_View (Conc_Typ)) then Conc_Typ := Full_View (Conc_Typ); end if; if Ekind (Conc_Typ) = E_Protected_Type then Decls := Visible_Declarations (Protected_Definition ( Parent (Conc_Typ))); else pragma Assert (Ekind (Conc_Typ) = E_Task_Type); Decls := Visible_Declarations (Task_Definition ( Parent (Conc_Typ))); end if; end if; -- Count the non-predefined primitive operations Prim_Elmt := First_Elmt (Primitive_Operations (Typ)); while Present (Prim_Elmt) loop Prim := Node (Prim_Elmt); if not (Is_Predefined_Dispatching_Operation (Prim) or else Is_Predefined_Dispatching_Alias (Prim)) then Nb_Prim := Nb_Prim + 1; end if; Next_Elmt (Prim_Elmt); end loop; declare Examined : Examined_Array (1 .. Nb_Prim) := (others => False); begin Prim_Elmt := First_Elmt (Primitive_Operations (Typ)); while Present (Prim_Elmt) loop Prim := Node (Prim_Elmt); -- Look for primitive overriding an abstract interface subprogram if Present (Interface_Alias (Prim)) and then not Is_Ancestor (Find_Dispatching_Type (Interface_Alias (Prim)), Typ, Use_Full_View => True) and then not Examined (UI_To_Int (DT_Position (Alias (Prim)))) then Prim_Pos := DT_Position (Alias (Prim)); pragma Assert (UI_To_Int (Prim_Pos) <= Nb_Prim); Examined (UI_To_Int (Prim_Pos)) := True; -- Set the primitive operation kind regardless of subprogram -- type. Generate: -- Ada.Tags.Set_Prim_Op_Kind (DT_Ptr, <position>, <kind>); if Tagged_Type_Expansion then Tag_Node := New_Occurrence_Of (Node (First_Elmt (Access_Disp_Table (Typ))), Loc); else Tag_Node := Make_Attribute_Reference (Loc, Prefix => New_Occurrence_Of (Typ, Loc), Attribute_Name => Name_Tag); end if; Append_To (Assignments, Make_Procedure_Call_Statement (Loc, Name => New_Occurrence_Of (RTE (RE_Set_Prim_Op_Kind), Loc), Parameter_Associations => New_List ( Tag_Node, Make_Integer_Literal (Loc, Prim_Pos), Prim_Op_Kind (Alias (Prim), Typ)))); -- Retrieve the root of the alias chain Prim_Als := Ultimate_Alias (Prim); -- In the case of an entry wrapper, set the entry index if Ekind (Prim) = E_Procedure and then Is_Primitive_Wrapper (Prim_Als) and then Ekind (Wrapped_Entity (Prim_Als)) = E_Entry then -- Generate: -- Ada.Tags.Set_Entry_Index -- (DT_Ptr, <position>, <index>); if Tagged_Type_Expansion then Tag_Node := New_Occurrence_Of (Node (First_Elmt (Access_Disp_Table (Typ))), Loc); else Tag_Node := Make_Attribute_Reference (Loc, Prefix => New_Occurrence_Of (Typ, Loc), Attribute_Name => Name_Tag); end if; Append_To (Assignments, Make_Procedure_Call_Statement (Loc, Name => New_Occurrence_Of (RTE (RE_Set_Entry_Index), Loc), Parameter_Associations => New_List ( Tag_Node, Make_Integer_Literal (Loc, Prim_Pos), Make_Integer_Literal (Loc, Find_Entry_Index (Wrapped_Entity (Prim_Als)))))); end if; end if; Next_Elmt (Prim_Elmt); end loop; end; return Assignments; end Make_Select_Specific_Data_Table; --------------- -- Make_Tags -- --------------- function Make_Tags (Typ : Entity_Id) return List_Id is Loc : constant Source_Ptr := Sloc (Typ); Result : constant List_Id := New_List; procedure Import_DT (Tag_Typ : Entity_Id; DT : Entity_Id; Is_Secondary_DT : Boolean); -- Import the dispatch table DT of tagged type Tag_Typ. Required to -- generate forward references and statically allocate the table. For -- primary dispatch tables that require no dispatch table generate: -- DT : static aliased constant Non_Dispatch_Table_Wrapper; -- pragma Import (Ada, DT); -- Otherwise generate: -- DT : static aliased constant Dispatch_Table_Wrapper (Nb_Prim); -- pragma Import (Ada, DT); --------------- -- Import_DT -- --------------- procedure Import_DT (Tag_Typ : Entity_Id; DT : Entity_Id; Is_Secondary_DT : Boolean) is DT_Constr_List : List_Id; Nb_Prim : Nat; begin Set_Is_Imported (DT); Set_Ekind (DT, E_Constant); Set_Related_Type (DT, Typ); -- The scope must be set now to call Get_External_Name Set_Scope (DT, Current_Scope); Get_External_Name (DT); Set_Interface_Name (DT, Make_String_Literal (Loc, Strval => String_From_Name_Buffer)); -- Ensure proper Sprint output of this implicit importation Set_Is_Internal (DT); -- Save this entity to allow Make_DT to generate its exportation Append_Elmt (DT, Dispatch_Table_Wrappers (Typ)); -- No dispatch table required if not Is_Secondary_DT and then not Has_DT (Tag_Typ) then Append_To (Result, Make_Object_Declaration (Loc, Defining_Identifier => DT, Aliased_Present => True, Constant_Present => True, Object_Definition => New_Occurrence_Of (RTE (RE_No_Dispatch_Table_Wrapper), Loc))); else -- Calculate the number of primitives of the dispatch table and -- the size of the Type_Specific_Data record. Nb_Prim := UI_To_Int (DT_Entry_Count (First_Tag_Component (Tag_Typ))); -- If the tagged type has no primitives we add a dummy slot whose -- address will be the tag of this type. if Nb_Prim = 0 then DT_Constr_List := New_List (Make_Integer_Literal (Loc, 1)); else DT_Constr_List := New_List (Make_Integer_Literal (Loc, Nb_Prim)); end if; Append_To (Result, Make_Object_Declaration (Loc, Defining_Identifier => DT, Aliased_Present => True, Constant_Present => True, Object_Definition => Make_Subtype_Indication (Loc, Subtype_Mark => New_Occurrence_Of (RTE (RE_Dispatch_Table_Wrapper), Loc), Constraint => Make_Index_Or_Discriminant_Constraint (Loc, Constraints => DT_Constr_List)))); end if; end Import_DT; -- Local variables Tname : constant Name_Id := Chars (Typ); AI_Tag_Comp : Elmt_Id; DT : Node_Id := Empty; DT_Ptr : Node_Id; Predef_Prims_Ptr : Node_Id; Iface_DT : Node_Id := Empty; Iface_DT_Ptr : Node_Id; New_Node : Node_Id; Suffix_Index : Int; Typ_Name : Name_Id; Typ_Comps : Elist_Id; -- Start of processing for Make_Tags begin pragma Assert (No (Access_Disp_Table (Typ))); Set_Access_Disp_Table (Typ, New_Elmt_List); -- If the elaboration of this tagged type needs a boolean flag then -- define now its entity. It is initialized to True to indicate that -- elaboration is still pending; set to False by the IP routine. -- TypFxx : boolean := True; if Elab_Flag_Needed (Typ) then Set_Access_Disp_Table_Elab_Flag (Typ, Make_Defining_Identifier (Loc, Chars => New_External_Name (Tname, 'F'))); Append_To (Result, Make_Object_Declaration (Loc, Defining_Identifier => Access_Disp_Table_Elab_Flag (Typ), Object_Definition => New_Occurrence_Of (Standard_Boolean, Loc), Expression => New_Occurrence_Of (Standard_True, Loc))); end if; -- 1) Generate the primary tag entities -- Primary dispatch table containing user-defined primitives DT_Ptr := Make_Defining_Identifier (Loc, New_External_Name (Tname, 'P')); Set_Etype (DT_Ptr, RTE (RE_Tag)); Append_Elmt (DT_Ptr, Access_Disp_Table (Typ)); -- Minimum decoration Set_Ekind (DT_Ptr, E_Variable); Set_Related_Type (DT_Ptr, Typ); -- Notify back end that the types are associated with a dispatch table Set_Is_Dispatch_Table_Entity (RTE (RE_Prim_Ptr)); Set_Is_Dispatch_Table_Entity (RTE (RE_Predef_Prims_Table_Ptr)); -- For CPP types there is no need to build the dispatch tables since -- they are imported from the C++ side. If the CPP type has an IP then -- we declare now the variable that will store the copy of the C++ tag. -- If the CPP type is an interface, we need the variable as well because -- it becomes the pointer to the corresponding secondary table. if Is_CPP_Class (Typ) then if Has_CPP_Constructors (Typ) or else Is_Interface (Typ) then Append_To (Result, Make_Object_Declaration (Loc, Defining_Identifier => DT_Ptr, Object_Definition => New_Occurrence_Of (RTE (RE_Tag), Loc), Expression => Unchecked_Convert_To (RTE (RE_Tag), New_Occurrence_Of (RTE (RE_Null_Address), Loc)))); Set_Is_Statically_Allocated (DT_Ptr, Is_Library_Level_Tagged_Type (Typ)); end if; -- Ada types else -- Primary dispatch table containing predefined primitives Predef_Prims_Ptr := Make_Defining_Identifier (Loc, Chars => New_External_Name (Tname, 'Y')); Set_Etype (Predef_Prims_Ptr, RTE (RE_Address)); Append_Elmt (Predef_Prims_Ptr, Access_Disp_Table (Typ)); -- Import the forward declaration of the Dispatch Table wrapper -- record (Make_DT will take care of exporting it). if Building_Static_DT (Typ) then Set_Dispatch_Table_Wrappers (Typ, New_Elmt_List); DT := Make_Defining_Identifier (Loc, Chars => New_External_Name (Tname, 'T')); Import_DT (Typ, DT, Is_Secondary_DT => False); if Has_DT (Typ) then Append_To (Result, Make_Object_Declaration (Loc, Defining_Identifier => DT_Ptr, Constant_Present => True, Object_Definition => New_Occurrence_Of (RTE (RE_Tag), Loc), Expression => Unchecked_Convert_To (RTE (RE_Tag), Make_Attribute_Reference (Loc, Prefix => Make_Selected_Component (Loc, Prefix => New_Occurrence_Of (DT, Loc), Selector_Name => New_Occurrence_Of (RTE_Record_Component (RE_Prims_Ptr), Loc)), Attribute_Name => Name_Address)))); -- Generate the SCIL node for the previous object declaration -- because it has a tag initialization. if Generate_SCIL then New_Node := Make_SCIL_Dispatch_Table_Tag_Init (Sloc (Last (Result))); Set_SCIL_Entity (New_Node, Typ); Set_SCIL_Node (Last (Result), New_Node); end if; Append_To (Result, Make_Object_Declaration (Loc, Defining_Identifier => Predef_Prims_Ptr, Constant_Present => True, Object_Definition => New_Occurrence_Of (RTE (RE_Address), Loc), Expression => Make_Attribute_Reference (Loc, Prefix => Make_Selected_Component (Loc, Prefix => New_Occurrence_Of (DT, Loc), Selector_Name => New_Occurrence_Of (RTE_Record_Component (RE_Predef_Prims), Loc)), Attribute_Name => Name_Address))); -- No dispatch table required else Append_To (Result, Make_Object_Declaration (Loc, Defining_Identifier => DT_Ptr, Constant_Present => True, Object_Definition => New_Occurrence_Of (RTE (RE_Tag), Loc), Expression => Unchecked_Convert_To (RTE (RE_Tag), Make_Attribute_Reference (Loc, Prefix => Make_Selected_Component (Loc, Prefix => New_Occurrence_Of (DT, Loc), Selector_Name => New_Occurrence_Of (RTE_Record_Component (RE_NDT_Prims_Ptr), Loc)), Attribute_Name => Name_Address)))); end if; Set_Is_True_Constant (DT_Ptr); Set_Is_Statically_Allocated (DT_Ptr); end if; end if; -- 2) Generate the secondary tag entities -- Collect the components associated with secondary dispatch tables if Has_Interfaces (Typ) then Collect_Interface_Components (Typ, Typ_Comps); -- For each interface type we build a unique external name associated -- with its secondary dispatch table. This name is used to declare an -- object that references this secondary dispatch table, whose value -- will be used for the elaboration of Typ objects, and also for the -- elaboration of objects of types derived from Typ that do not -- override the primitives of this interface type. Suffix_Index := 1; -- Note: The value of Suffix_Index must be in sync with the values of -- Suffix_Index in secondary dispatch tables generated by Make_DT. if Is_CPP_Class (Typ) then AI_Tag_Comp := First_Elmt (Typ_Comps); while Present (AI_Tag_Comp) loop Get_Secondary_DT_External_Name (Typ, Related_Type (Node (AI_Tag_Comp)), Suffix_Index); Typ_Name := Name_Find; -- Declare variables to store copy of the C++ secondary tags Iface_DT_Ptr := Make_Defining_Identifier (Loc, Chars => New_External_Name (Typ_Name, 'P')); Set_Etype (Iface_DT_Ptr, RTE (RE_Interface_Tag)); Set_Ekind (Iface_DT_Ptr, E_Variable); Set_Is_Tag (Iface_DT_Ptr); Set_Has_Thunks (Iface_DT_Ptr); Set_Related_Type (Iface_DT_Ptr, Related_Type (Node (AI_Tag_Comp))); Append_Elmt (Iface_DT_Ptr, Access_Disp_Table (Typ)); Append_To (Result, Make_Object_Declaration (Loc, Defining_Identifier => Iface_DT_Ptr, Object_Definition => New_Occurrence_Of (RTE (RE_Interface_Tag), Loc), Expression => Unchecked_Convert_To (RTE (RE_Interface_Tag), New_Occurrence_Of (RTE (RE_Null_Address), Loc)))); Set_Is_Statically_Allocated (Iface_DT_Ptr, Is_Library_Level_Tagged_Type (Typ)); Next_Elmt (AI_Tag_Comp); end loop; -- This is not a CPP_Class type else AI_Tag_Comp := First_Elmt (Typ_Comps); while Present (AI_Tag_Comp) loop Get_Secondary_DT_External_Name (Typ, Related_Type (Node (AI_Tag_Comp)), Suffix_Index); Typ_Name := Name_Find; if Building_Static_DT (Typ) then Iface_DT := Make_Defining_Identifier (Loc, Chars => New_External_Name (Typ_Name, 'T')); Import_DT (Tag_Typ => Related_Type (Node (AI_Tag_Comp)), DT => Iface_DT, Is_Secondary_DT => True); end if; -- Secondary dispatch table referencing thunks to user-defined -- primitives covered by this interface. Iface_DT_Ptr := Make_Defining_Identifier (Loc, Chars => New_External_Name (Typ_Name, 'P')); Set_Etype (Iface_DT_Ptr, RTE (RE_Interface_Tag)); Set_Ekind (Iface_DT_Ptr, E_Constant); Set_Is_Tag (Iface_DT_Ptr); Set_Has_Thunks (Iface_DT_Ptr); Set_Is_Statically_Allocated (Iface_DT_Ptr, Is_Library_Level_Tagged_Type (Typ)); Set_Is_True_Constant (Iface_DT_Ptr); Set_Related_Type (Iface_DT_Ptr, Related_Type (Node (AI_Tag_Comp))); Append_Elmt (Iface_DT_Ptr, Access_Disp_Table (Typ)); if Building_Static_DT (Typ) then Append_To (Result, Make_Object_Declaration (Loc, Defining_Identifier => Iface_DT_Ptr, Constant_Present => True, Object_Definition => New_Occurrence_Of (RTE (RE_Interface_Tag), Loc), Expression => Unchecked_Convert_To (RTE (RE_Interface_Tag), Make_Attribute_Reference (Loc, Prefix => Make_Selected_Component (Loc, Prefix => New_Occurrence_Of (Iface_DT, Loc), Selector_Name => New_Occurrence_Of (RTE_Record_Component (RE_Prims_Ptr), Loc)), Attribute_Name => Name_Address)))); end if; -- Secondary dispatch table referencing thunks to predefined -- primitives. Iface_DT_Ptr := Make_Defining_Identifier (Loc, Chars => New_External_Name (Typ_Name, 'Y')); Set_Etype (Iface_DT_Ptr, RTE (RE_Address)); Set_Ekind (Iface_DT_Ptr, E_Constant); Set_Is_Tag (Iface_DT_Ptr); Set_Has_Thunks (Iface_DT_Ptr); Set_Is_Statically_Allocated (Iface_DT_Ptr, Is_Library_Level_Tagged_Type (Typ)); Set_Is_True_Constant (Iface_DT_Ptr); Set_Related_Type (Iface_DT_Ptr, Related_Type (Node (AI_Tag_Comp))); Append_Elmt (Iface_DT_Ptr, Access_Disp_Table (Typ)); -- Secondary dispatch table referencing user-defined primitives -- covered by this interface. Iface_DT_Ptr := Make_Defining_Identifier (Loc, Chars => New_External_Name (Typ_Name, 'D')); Set_Etype (Iface_DT_Ptr, RTE (RE_Interface_Tag)); Set_Ekind (Iface_DT_Ptr, E_Constant); Set_Is_Tag (Iface_DT_Ptr); Set_Is_Statically_Allocated (Iface_DT_Ptr, Is_Library_Level_Tagged_Type (Typ)); Set_Is_True_Constant (Iface_DT_Ptr); Set_Related_Type (Iface_DT_Ptr, Related_Type (Node (AI_Tag_Comp))); Append_Elmt (Iface_DT_Ptr, Access_Disp_Table (Typ)); -- Secondary dispatch table referencing predefined primitives Iface_DT_Ptr := Make_Defining_Identifier (Loc, Chars => New_External_Name (Typ_Name, 'Z')); Set_Etype (Iface_DT_Ptr, RTE (RE_Address)); Set_Ekind (Iface_DT_Ptr, E_Constant); Set_Is_Tag (Iface_DT_Ptr); Set_Is_Statically_Allocated (Iface_DT_Ptr, Is_Library_Level_Tagged_Type (Typ)); Set_Is_True_Constant (Iface_DT_Ptr); Set_Related_Type (Iface_DT_Ptr, Related_Type (Node (AI_Tag_Comp))); Append_Elmt (Iface_DT_Ptr, Access_Disp_Table (Typ)); Next_Elmt (AI_Tag_Comp); end loop; end if; end if; -- 3) At the end of Access_Disp_Table, if the type has user-defined -- primitives, we add the entity of an access type declaration that -- is used by Build_Get_Prim_Op_Address to expand dispatching calls -- through the primary dispatch table. if UI_To_Int (DT_Entry_Count (First_Tag_Component (Typ))) = 0 then Analyze_List (Result); -- Generate: -- subtype Typ_DT is Address_Array (1 .. Nb_Prims); -- type Typ_DT_Acc is access Typ_DT; else declare Name_DT_Prims : constant Name_Id := New_External_Name (Tname, 'G'); Name_DT_Prims_Acc : constant Name_Id := New_External_Name (Tname, 'H'); DT_Prims : constant Entity_Id := Make_Defining_Identifier (Loc, Name_DT_Prims); DT_Prims_Acc : constant Entity_Id := Make_Defining_Identifier (Loc, Name_DT_Prims_Acc); begin Append_To (Result, Make_Subtype_Declaration (Loc, Defining_Identifier => DT_Prims, Subtype_Indication => Make_Subtype_Indication (Loc, Subtype_Mark => New_Occurrence_Of (RTE (RE_Address_Array), Loc), Constraint => Make_Index_Or_Discriminant_Constraint (Loc, New_List ( Make_Range (Loc, Low_Bound => Make_Integer_Literal (Loc, 1), High_Bound => Make_Integer_Literal (Loc, DT_Entry_Count (First_Tag_Component (Typ))))))))); Append_To (Result, Make_Full_Type_Declaration (Loc, Defining_Identifier => DT_Prims_Acc, Type_Definition => Make_Access_To_Object_Definition (Loc, Subtype_Indication => New_Occurrence_Of (DT_Prims, Loc)))); Append_Elmt (DT_Prims_Acc, Access_Disp_Table (Typ)); -- Analyze the resulting list and suppress the generation of the -- Init_Proc associated with the above array declaration because -- this type is never used in object declarations. It is only used -- to simplify the expansion associated with dispatching calls. Analyze_List (Result); Set_Suppress_Initialization (Base_Type (DT_Prims)); -- Disable backend optimizations based on assumptions about the -- aliasing status of objects designated by the access to the -- dispatch table. Required to handle dispatch tables imported -- from C++. Set_No_Strict_Aliasing (Base_Type (DT_Prims_Acc)); -- Add the freezing nodes of these declarations; required to avoid -- generating these freezing nodes in wrong scopes (for example in -- the IC routine of a derivation of Typ). -- What is an "IC routine"? Is "init_proc" meant here??? Append_List_To (Result, Freeze_Entity (DT_Prims, Typ)); Append_List_To (Result, Freeze_Entity (DT_Prims_Acc, Typ)); -- Mark entity of dispatch table. Required by the back end to -- handle them properly. Set_Is_Dispatch_Table_Entity (DT_Prims); end; end if; -- Mark entities of dispatch table. Required by the back end to handle -- them properly. if Present (DT) then Set_Is_Dispatch_Table_Entity (DT); Set_Is_Dispatch_Table_Entity (Etype (DT)); end if; if Present (Iface_DT) then Set_Is_Dispatch_Table_Entity (Iface_DT); Set_Is_Dispatch_Table_Entity (Etype (Iface_DT)); end if; if Is_CPP_Class (Root_Type (Typ)) then Set_Ekind (DT_Ptr, E_Variable); else Set_Ekind (DT_Ptr, E_Constant); end if; Set_Is_Tag (DT_Ptr); Set_Related_Type (DT_Ptr, Typ); return Result; end Make_Tags; --------------- -- New_Value -- --------------- function New_Value (From : Node_Id) return Node_Id is Res : constant Node_Id := Duplicate_Subexpr (From); begin if Is_Access_Type (Etype (From)) then return Make_Explicit_Dereference (Sloc (From), Prefix => Res); else return Res; end if; end New_Value; ----------------------------------- -- Original_View_In_Visible_Part -- ----------------------------------- function Original_View_In_Visible_Part (Typ : Entity_Id) return Boolean is Scop : constant Entity_Id := Scope (Typ); begin -- The scope must be a package if not Is_Package_Or_Generic_Package (Scop) then return False; end if; -- A type with a private declaration has a private view declared in -- the visible part. if Has_Private_Declaration (Typ) then return True; end if; return List_Containing (Parent (Typ)) = Visible_Declarations (Package_Specification (Scop)); end Original_View_In_Visible_Part; ------------------ -- Prim_Op_Kind -- ------------------ function Prim_Op_Kind (Prim : Entity_Id; Typ : Entity_Id) return Node_Id is Full_Typ : Entity_Id := Typ; Loc : constant Source_Ptr := Sloc (Prim); Prim_Op : Entity_Id; begin -- Retrieve the original primitive operation Prim_Op := Ultimate_Alias (Prim); if Ekind (Typ) = E_Record_Type and then Present (Corresponding_Concurrent_Type (Typ)) then Full_Typ := Corresponding_Concurrent_Type (Typ); end if; -- When a private tagged type is completed by a concurrent type, -- retrieve the full view. if Is_Private_Type (Full_Typ) then Full_Typ := Full_View (Full_Typ); end if; if Ekind (Prim_Op) = E_Function then -- Protected function if Ekind (Full_Typ) = E_Protected_Type then return New_Occurrence_Of (RTE (RE_POK_Protected_Function), Loc); -- Task function elsif Ekind (Full_Typ) = E_Task_Type then return New_Occurrence_Of (RTE (RE_POK_Task_Function), Loc); -- Regular function else return New_Occurrence_Of (RTE (RE_POK_Function), Loc); end if; else pragma Assert (Ekind (Prim_Op) = E_Procedure); if Ekind (Full_Typ) = E_Protected_Type then -- Protected entry if Is_Primitive_Wrapper (Prim_Op) and then Ekind (Wrapped_Entity (Prim_Op)) = E_Entry then return New_Occurrence_Of (RTE (RE_POK_Protected_Entry), Loc); -- Protected procedure else return New_Occurrence_Of (RTE (RE_POK_Protected_Procedure), Loc); end if; elsif Ekind (Full_Typ) = E_Task_Type then -- Task entry if Is_Primitive_Wrapper (Prim_Op) and then Ekind (Wrapped_Entity (Prim_Op)) = E_Entry then return New_Occurrence_Of (RTE (RE_POK_Task_Entry), Loc); -- Task "procedure". These are the internally Expander-generated -- procedures (task body for instance). else return New_Occurrence_Of (RTE (RE_POK_Task_Procedure), Loc); end if; -- Regular procedure else return New_Occurrence_Of (RTE (RE_POK_Procedure), Loc); end if; end if; end Prim_Op_Kind; ------------------------ -- Register_Primitive -- ------------------------ function Register_Primitive (Loc : Source_Ptr; Prim : Entity_Id) return List_Id is DT_Ptr : Entity_Id; Iface_Prim : Entity_Id; Iface_Typ : Entity_Id; Iface_DT_Ptr : Entity_Id; Iface_DT_Elmt : Elmt_Id; L : constant List_Id := New_List; Pos : Uint; Tag : Entity_Id; Tag_Typ : Entity_Id; Thunk_Id : Entity_Id; Thunk_Code : Node_Id; begin pragma Assert (not Restriction_Active (No_Dispatching_Calls)); -- Do not register in the dispatch table eliminated primitives if not RTE_Available (RE_Tag) or else Is_Eliminated (Ultimate_Alias (Prim)) or else Generate_SCIL then return L; end if; if not Present (Interface_Alias (Prim)) then Tag_Typ := Scope (DTC_Entity (Prim)); Pos := DT_Position (Prim); Tag := First_Tag_Component (Tag_Typ); if Is_Predefined_Dispatching_Operation (Prim) or else Is_Predefined_Dispatching_Alias (Prim) then DT_Ptr := Node (Next_Elmt (First_Elmt (Access_Disp_Table (Tag_Typ)))); Append_To (L, Build_Set_Predefined_Prim_Op_Address (Loc, Tag_Node => New_Occurrence_Of (DT_Ptr, Loc), Position => Pos, Address_Node => Unchecked_Convert_To (RTE (RE_Prim_Ptr), Make_Attribute_Reference (Loc, Prefix => New_Occurrence_Of (Prim, Loc), Attribute_Name => Name_Unrestricted_Access)))); -- Register copy of the pointer to the 'size primitive in the TSD if Chars (Prim) = Name_uSize and then RTE_Record_Component_Available (RE_Size_Func) then DT_Ptr := Node (First_Elmt (Access_Disp_Table (Tag_Typ))); Append_To (L, Build_Set_Size_Function (Loc, Tag_Node => New_Occurrence_Of (DT_Ptr, Loc), Size_Func => Prim)); end if; else pragma Assert (Pos /= Uint_0 and then Pos <= DT_Entry_Count (Tag)); -- Skip registration of primitives located in the C++ part of the -- dispatch table. Their slot is set by the IC routine. if not Is_CPP_Class (Root_Type (Tag_Typ)) or else Pos > CPP_Num_Prims (Tag_Typ) then DT_Ptr := Node (First_Elmt (Access_Disp_Table (Tag_Typ))); Append_To (L, Build_Set_Prim_Op_Address (Loc, Typ => Tag_Typ, Tag_Node => New_Occurrence_Of (DT_Ptr, Loc), Position => Pos, Address_Node => Unchecked_Convert_To (RTE (RE_Prim_Ptr), Make_Attribute_Reference (Loc, Prefix => New_Occurrence_Of (Prim, Loc), Attribute_Name => Name_Unrestricted_Access)))); end if; end if; -- Ada 2005 (AI-251): Primitive associated with an interface type -- Generate the code of the thunk only if the interface type is not an -- immediate ancestor of Typ; otherwise the dispatch table associated -- with the interface is the primary dispatch table and we have nothing -- else to do here. else Tag_Typ := Find_Dispatching_Type (Alias (Prim)); Iface_Typ := Find_Dispatching_Type (Interface_Alias (Prim)); pragma Assert (Is_Interface (Iface_Typ)); -- No action needed for interfaces that are ancestors of Typ because -- their primitives are located in the primary dispatch table. if Is_Ancestor (Iface_Typ, Tag_Typ, Use_Full_View => True) then return L; -- No action needed for primitives located in the C++ part of the -- dispatch table. Their slot is set by the IC routine. elsif Is_CPP_Class (Root_Type (Tag_Typ)) and then DT_Position (Alias (Prim)) <= CPP_Num_Prims (Tag_Typ) and then not Is_Predefined_Dispatching_Operation (Prim) and then not Is_Predefined_Dispatching_Alias (Prim) then return L; end if; Expand_Interface_Thunk (Prim, Thunk_Id, Thunk_Code, Iface_Typ); if not Is_Ancestor (Iface_Typ, Tag_Typ, Use_Full_View => True) and then Present (Thunk_Code) then -- Generate the code necessary to fill the appropriate entry of -- the secondary dispatch table of Prim's controlling type with -- Thunk_Id's address. Iface_DT_Elmt := Find_Interface_ADT (Tag_Typ, Iface_Typ); Iface_DT_Ptr := Node (Iface_DT_Elmt); pragma Assert (Has_Thunks (Iface_DT_Ptr)); Iface_Prim := Interface_Alias (Prim); Pos := DT_Position (Iface_Prim); Tag := First_Tag_Component (Iface_Typ); Prepend_To (L, Thunk_Code); if Is_Predefined_Dispatching_Operation (Prim) or else Is_Predefined_Dispatching_Alias (Prim) then Append_To (L, Build_Set_Predefined_Prim_Op_Address (Loc, Tag_Node => New_Occurrence_Of (Node (Next_Elmt (Iface_DT_Elmt)), Loc), Position => Pos, Address_Node => Unchecked_Convert_To (RTE (RE_Prim_Ptr), Make_Attribute_Reference (Loc, Prefix => New_Occurrence_Of (Thunk_Id, Loc), Attribute_Name => Name_Unrestricted_Access)))); Next_Elmt (Iface_DT_Elmt); Next_Elmt (Iface_DT_Elmt); Iface_DT_Ptr := Node (Iface_DT_Elmt); pragma Assert (not Has_Thunks (Iface_DT_Ptr)); Append_To (L, Build_Set_Predefined_Prim_Op_Address (Loc, Tag_Node => New_Occurrence_Of (Node (Next_Elmt (Iface_DT_Elmt)), Loc), Position => Pos, Address_Node => Unchecked_Convert_To (RTE (RE_Prim_Ptr), Make_Attribute_Reference (Loc, Prefix => New_Occurrence_Of (Alias (Prim), Loc), Attribute_Name => Name_Unrestricted_Access)))); else pragma Assert (Pos /= Uint_0 and then Pos <= DT_Entry_Count (Tag)); Append_To (L, Build_Set_Prim_Op_Address (Loc, Typ => Iface_Typ, Tag_Node => New_Occurrence_Of (Iface_DT_Ptr, Loc), Position => Pos, Address_Node => Unchecked_Convert_To (RTE (RE_Prim_Ptr), Make_Attribute_Reference (Loc, Prefix => New_Occurrence_Of (Thunk_Id, Loc), Attribute_Name => Name_Unrestricted_Access)))); Next_Elmt (Iface_DT_Elmt); Next_Elmt (Iface_DT_Elmt); Iface_DT_Ptr := Node (Iface_DT_Elmt); pragma Assert (not Has_Thunks (Iface_DT_Ptr)); Append_To (L, Build_Set_Prim_Op_Address (Loc, Typ => Iface_Typ, Tag_Node => New_Occurrence_Of (Iface_DT_Ptr, Loc), Position => Pos, Address_Node => Unchecked_Convert_To (RTE (RE_Prim_Ptr), Make_Attribute_Reference (Loc, Prefix => New_Occurrence_Of (Ultimate_Alias (Prim), Loc), Attribute_Name => Name_Unrestricted_Access)))); end if; end if; end if; return L; end Register_Primitive; ------------------------- -- Set_All_DT_Position -- ------------------------- procedure Set_All_DT_Position (Typ : Entity_Id) is function In_Predef_Prims_DT (Prim : Entity_Id) return Boolean; -- Returns True if Prim is located in the dispatch table of -- predefined primitives procedure Validate_Position (Prim : Entity_Id); -- Check that position assigned to Prim is completely safe (it has not -- been assigned to a previously defined primitive operation of Typ). ------------------------ -- In_Predef_Prims_DT -- ------------------------ function In_Predef_Prims_DT (Prim : Entity_Id) return Boolean is begin -- Predefined primitives if Is_Predefined_Dispatching_Operation (Prim) then return True; -- Renamings of predefined primitives elsif Present (Alias (Prim)) and then Is_Predefined_Dispatching_Operation (Ultimate_Alias (Prim)) then if Chars (Ultimate_Alias (Prim)) /= Name_Op_Eq then return True; -- An overriding operation that is a user-defined renaming of -- predefined equality inherits its slot from the overridden -- operation. Otherwise it is treated as a predefined op and -- occupies the same predefined slot as equality. A call to it is -- transformed into a call to its alias, which is the predefined -- equality op. A dispatching call thus uses the proper slot if -- operation is further inherited and called with class-wide -- arguments. else return not Comes_From_Source (Prim) or else No (Overridden_Operation (Prim)); end if; -- User-defined primitives else return False; end if; end In_Predef_Prims_DT; ----------------------- -- Validate_Position -- ----------------------- procedure Validate_Position (Prim : Entity_Id) is Op_Elmt : Elmt_Id; Op : Entity_Id; begin -- Aliased primitives are safe if Present (Alias (Prim)) then return; end if; Op_Elmt := First_Elmt (Primitive_Operations (Typ)); while Present (Op_Elmt) loop Op := Node (Op_Elmt); -- No need to check against itself if Op = Prim then null; -- Primitive operations covering abstract interfaces are -- allocated later elsif Present (Interface_Alias (Op)) then null; -- Predefined dispatching operations are completely safe. They -- are allocated at fixed positions in a separate table. elsif Is_Predefined_Dispatching_Operation (Op) or else Is_Predefined_Dispatching_Alias (Op) then null; -- Aliased subprograms are safe elsif Present (Alias (Op)) then null; elsif DT_Position (Op) = DT_Position (Prim) and then not Is_Predefined_Dispatching_Operation (Op) and then not Is_Predefined_Dispatching_Operation (Prim) and then not Is_Predefined_Dispatching_Alias (Op) and then not Is_Predefined_Dispatching_Alias (Prim) then -- Handle aliased subprograms declare Op_1 : Entity_Id; Op_2 : Entity_Id; begin Op_1 := Op; loop if Present (Overridden_Operation (Op_1)) then Op_1 := Overridden_Operation (Op_1); elsif Present (Alias (Op_1)) then Op_1 := Alias (Op_1); else exit; end if; end loop; Op_2 := Prim; loop if Present (Overridden_Operation (Op_2)) then Op_2 := Overridden_Operation (Op_2); elsif Present (Alias (Op_2)) then Op_2 := Alias (Op_2); else exit; end if; end loop; if Op_1 /= Op_2 then raise Program_Error; end if; end; end if; Next_Elmt (Op_Elmt); end loop; end Validate_Position; -- Local variables Parent_Typ : constant Entity_Id := Etype (Typ); First_Prim : constant Elmt_Id := First_Elmt (Primitive_Operations (Typ)); The_Tag : constant Entity_Id := First_Tag_Component (Typ); Adjusted : Boolean := False; Finalized : Boolean := False; Count_Prim : Nat; DT_Length : Nat; Nb_Prim : Nat; Prim : Entity_Id; Prim_Elmt : Elmt_Id; -- Start of processing for Set_All_DT_Position begin pragma Assert (Present (First_Tag_Component (Typ))); -- Set the DT_Position for each primitive operation. Perform some sanity -- checks to avoid building inconsistent dispatch tables. -- First stage: Set DTC entity of all the primitive operations. This is -- required to properly read the DT_Position attribute in latter stages. Prim_Elmt := First_Prim; Count_Prim := 0; while Present (Prim_Elmt) loop Prim := Node (Prim_Elmt); -- Predefined primitives have a separate dispatch table if not In_Predef_Prims_DT (Prim) then Count_Prim := Count_Prim + 1; end if; Set_DTC_Entity_Value (Typ, Prim); -- Clear any previous value of the DT_Position attribute. In this -- way we ensure that the final position of all the primitives is -- established by the following stages of this algorithm. Set_DT_Position_Value (Prim, No_Uint); Next_Elmt (Prim_Elmt); end loop; declare Fixed_Prim : array (Int range 0 .. Count_Prim) of Boolean := (others => False); E : Entity_Id; procedure Handle_Inherited_Private_Subprograms (Typ : Entity_Id); -- Called if Typ is declared in a nested package or a public child -- package to handle inherited primitives that were inherited by Typ -- in the visible part, but whose declaration was deferred because -- the parent operation was private and not visible at that point. procedure Set_Fixed_Prim (Pos : Nat); -- Sets to true an element of the Fixed_Prim table to indicate -- that this entry of the dispatch table of Typ is occupied. ------------------------------------------ -- Handle_Inherited_Private_Subprograms -- ------------------------------------------ procedure Handle_Inherited_Private_Subprograms (Typ : Entity_Id) is Op_List : Elist_Id; Op_Elmt : Elmt_Id; Op_Elmt_2 : Elmt_Id; Prim_Op : Entity_Id; Parent_Subp : Entity_Id; begin Op_List := Primitive_Operations (Typ); Op_Elmt := First_Elmt (Op_List); while Present (Op_Elmt) loop Prim_Op := Node (Op_Elmt); -- Search primitives that are implicit operations with an -- internal name whose parent operation has a normal name. if Present (Alias (Prim_Op)) and then Find_Dispatching_Type (Alias (Prim_Op)) /= Typ and then not Comes_From_Source (Prim_Op) and then Is_Internal_Name (Chars (Prim_Op)) and then not Is_Internal_Name (Chars (Alias (Prim_Op))) then Parent_Subp := Alias (Prim_Op); -- Check if the type has an explicit overriding for this -- primitive. Op_Elmt_2 := Next_Elmt (Op_Elmt); while Present (Op_Elmt_2) loop if Chars (Node (Op_Elmt_2)) = Chars (Parent_Subp) and then Type_Conformant (Prim_Op, Node (Op_Elmt_2)) then Set_DT_Position_Value (Prim_Op, DT_Position (Parent_Subp)); Set_DT_Position_Value (Node (Op_Elmt_2), DT_Position (Parent_Subp)); Set_Fixed_Prim (UI_To_Int (DT_Position (Prim_Op))); goto Next_Primitive; end if; Next_Elmt (Op_Elmt_2); end loop; end if; <<Next_Primitive>> Next_Elmt (Op_Elmt); end loop; end Handle_Inherited_Private_Subprograms; -------------------- -- Set_Fixed_Prim -- -------------------- procedure Set_Fixed_Prim (Pos : Nat) is begin pragma Assert (Pos <= Count_Prim); Fixed_Prim (Pos) := True; exception when Constraint_Error => raise Program_Error; end Set_Fixed_Prim; begin -- In case of nested packages and public child package it may be -- necessary a special management on inherited subprograms so that -- the dispatch table is properly filled. if Ekind (Scope (Scope (Typ))) = E_Package and then Scope (Scope (Typ)) /= Standard_Standard and then ((Is_Derived_Type (Typ) and then not Is_Private_Type (Typ)) or else (Nkind (Parent (Typ)) = N_Private_Extension_Declaration and then Is_Generic_Type (Typ))) and then In_Open_Scopes (Scope (Etype (Typ))) and then Is_Base_Type (Typ) then Handle_Inherited_Private_Subprograms (Typ); end if; -- Second stage: Register fixed entries Nb_Prim := 0; Prim_Elmt := First_Prim; while Present (Prim_Elmt) loop Prim := Node (Prim_Elmt); -- Predefined primitives have a separate table and all its -- entries are at predefined fixed positions. if In_Predef_Prims_DT (Prim) then if Is_Predefined_Dispatching_Operation (Prim) then Set_DT_Position_Value (Prim, Default_Prim_Op_Position (Prim)); else pragma Assert (Present (Alias (Prim))); Set_DT_Position_Value (Prim, Default_Prim_Op_Position (Ultimate_Alias (Prim))); end if; -- Overriding primitives of ancestor abstract interfaces elsif Present (Interface_Alias (Prim)) and then Is_Ancestor (Find_Dispatching_Type (Interface_Alias (Prim)), Typ, Use_Full_View => True) then pragma Assert (DT_Position (Prim) = No_Uint and then Present (DTC_Entity (Interface_Alias (Prim)))); E := Interface_Alias (Prim); Set_DT_Position_Value (Prim, DT_Position (E)); pragma Assert (DT_Position (Alias (Prim)) = No_Uint or else DT_Position (Alias (Prim)) = DT_Position (E)); Set_DT_Position_Value (Alias (Prim), DT_Position (E)); Set_Fixed_Prim (UI_To_Int (DT_Position (Prim))); -- Overriding primitives must use the same entry as the overridden -- primitive. Note that the Alias of the operation is set when the -- operation is declared by a renaming, in which case it is not -- overriding. If it renames another primitive it will use the -- same dispatch table slot, but if it renames an operation in a -- nested package it's a new primitive and will have its own slot. elsif not Present (Interface_Alias (Prim)) and then Present (Alias (Prim)) and then Chars (Prim) = Chars (Alias (Prim)) and then Nkind (Unit_Declaration_Node (Prim)) /= N_Subprogram_Renaming_Declaration then declare Par_Type : constant Entity_Id := Find_Dispatching_Type (Alias (Prim)); begin if Present (Par_Type) and then Par_Type /= Typ and then Is_Ancestor (Par_Type, Typ, Use_Full_View => True) and then Present (DTC_Entity (Alias (Prim))) then E := Alias (Prim); Set_DT_Position_Value (Prim, DT_Position (E)); if not Is_Predefined_Dispatching_Alias (E) then Set_Fixed_Prim (UI_To_Int (DT_Position (E))); end if; end if; end; end if; Next_Elmt (Prim_Elmt); end loop; -- Third stage: Fix the position of all the new primitives. Entries -- associated with primitives covering interfaces are handled in a -- latter round. Prim_Elmt := First_Prim; while Present (Prim_Elmt) loop Prim := Node (Prim_Elmt); -- Skip primitives previously set entries if DT_Position (Prim) /= No_Uint then null; -- Primitives covering interface primitives are handled later elsif Present (Interface_Alias (Prim)) then null; else -- Take the next available position in the DT loop Nb_Prim := Nb_Prim + 1; pragma Assert (Nb_Prim <= Count_Prim); exit when not Fixed_Prim (Nb_Prim); end loop; Set_DT_Position_Value (Prim, UI_From_Int (Nb_Prim)); Set_Fixed_Prim (Nb_Prim); end if; Next_Elmt (Prim_Elmt); end loop; end; -- Fourth stage: Complete the decoration of primitives covering -- interfaces (that is, propagate the DT_Position attribute from -- the aliased primitive) Prim_Elmt := First_Prim; while Present (Prim_Elmt) loop Prim := Node (Prim_Elmt); if DT_Position (Prim) = No_Uint and then Present (Interface_Alias (Prim)) then pragma Assert (Present (Alias (Prim)) and then Find_Dispatching_Type (Alias (Prim)) = Typ); -- Check if this entry will be placed in the primary DT if Is_Ancestor (Find_Dispatching_Type (Interface_Alias (Prim)), Typ, Use_Full_View => True) then pragma Assert (DT_Position (Alias (Prim)) /= No_Uint); Set_DT_Position_Value (Prim, DT_Position (Alias (Prim))); -- Otherwise it will be placed in the secondary DT else pragma Assert (DT_Position (Interface_Alias (Prim)) /= No_Uint); Set_DT_Position_Value (Prim, DT_Position (Interface_Alias (Prim))); end if; end if; Next_Elmt (Prim_Elmt); end loop; -- Generate listing showing the contents of the dispatch tables. This -- action is done before some further static checks because in case of -- critical errors caused by a wrong dispatch table we need to see the -- contents of such table. if Debug_Flag_ZZ then Write_DT (Typ); end if; -- Final stage: Ensure that the table is correct plus some further -- verifications concerning the primitives. Prim_Elmt := First_Prim; DT_Length := 0; while Present (Prim_Elmt) loop Prim := Node (Prim_Elmt); -- At this point all the primitives MUST have a position in the -- dispatch table. if DT_Position (Prim) = No_Uint then raise Program_Error; end if; -- Calculate real size of the dispatch table if not In_Predef_Prims_DT (Prim) and then UI_To_Int (DT_Position (Prim)) > DT_Length then DT_Length := UI_To_Int (DT_Position (Prim)); end if; -- Ensure that the assigned position to non-predefined dispatching -- operations in the dispatch table is correct. if not Is_Predefined_Dispatching_Operation (Prim) and then not Is_Predefined_Dispatching_Alias (Prim) then Validate_Position (Prim); end if; if Chars (Prim) = Name_Finalize then Finalized := True; end if; if Chars (Prim) = Name_Adjust then Adjusted := True; end if; -- An abstract operation cannot be declared in the private part for a -- visible abstract type, because it can't be overridden outside this -- package hierarchy. For explicit declarations this is checked at -- the point of declaration, but for inherited operations it must be -- done when building the dispatch table. -- Ada 2005 (AI-251): Primitives associated with interfaces are -- excluded from this check because interfaces must be visible in -- the public and private part (RM 7.3 (7.3/2)) -- We disable this check in Relaxed_RM_Semantics mode, to accommodate -- legacy Ada code. if not Relaxed_RM_Semantics and then Is_Abstract_Type (Typ) and then Is_Abstract_Subprogram (Prim) and then Present (Alias (Prim)) and then not Is_Interface (Find_Dispatching_Type (Ultimate_Alias (Prim))) and then not Present (Interface_Alias (Prim)) and then Is_Derived_Type (Typ) and then In_Private_Part (Current_Scope) and then List_Containing (Parent (Prim)) = Private_Declarations (Package_Specification (Current_Scope)) and then Original_View_In_Visible_Part (Typ) then -- We exclude Input and Output stream operations because -- Limited_Controlled inherits useless Input and Output stream -- operations from Root_Controlled, which can never be overridden. -- Move this check to sem??? if not Is_TSS (Prim, TSS_Stream_Input) and then not Is_TSS (Prim, TSS_Stream_Output) then Error_Msg_NE ("abstract inherited private operation&" & " must be overridden (RM 3.9.3(10))", Parent (Typ), Prim); end if; end if; Next_Elmt (Prim_Elmt); end loop; -- Additional check if Is_Controlled (Typ) then if not Finalized then Error_Msg_N ("controlled type has no explicit Finalize method??", Typ); elsif not Adjusted then Error_Msg_N ("controlled type has no explicit Adjust method??", Typ); end if; end if; -- Set the final size of the Dispatch Table Set_DT_Entry_Count (The_Tag, UI_From_Int (DT_Length)); -- The derived type must have at least as many components as its parent -- (for root types Etype points to itself and the test cannot fail). if DT_Entry_Count (The_Tag) < DT_Entry_Count (First_Tag_Component (Parent_Typ)) then raise Program_Error; end if; end Set_All_DT_Position; -------------------------- -- Set_CPP_Constructors -- -------------------------- procedure Set_CPP_Constructors (Typ : Entity_Id) is function Gen_Parameters_Profile (E : Entity_Id) return List_Id; -- Duplicate the parameters profile of the imported C++ constructor -- adding the "this" pointer to the object as the additional first -- parameter under the usual form _Init : in out Typ. ---------------------------- -- Gen_Parameters_Profile -- ---------------------------- function Gen_Parameters_Profile (E : Entity_Id) return List_Id is Loc : constant Source_Ptr := Sloc (E); Parms : List_Id; P : Node_Id; begin Parms := New_List ( Make_Parameter_Specification (Loc, Defining_Identifier => Make_Defining_Identifier (Loc, Name_uInit), In_Present => True, Out_Present => True, Parameter_Type => New_Occurrence_Of (Typ, Loc))); if Present (Parameter_Specifications (Parent (E))) then P := First (Parameter_Specifications (Parent (E))); while Present (P) loop Append_To (Parms, Make_Parameter_Specification (Loc, Defining_Identifier => Make_Defining_Identifier (Loc, Chars => Chars (Defining_Identifier (P))), Parameter_Type => New_Copy_Tree (Parameter_Type (P)), Expression => New_Copy_Tree (Expression (P)))); Next (P); end loop; end if; return Parms; end Gen_Parameters_Profile; -- Local variables Loc : Source_Ptr; E : Entity_Id; Found : Boolean := False; IP : Entity_Id; IP_Body : Node_Id; P : Node_Id; Parms : List_Id; Covers_Default_Constructor : Entity_Id := Empty; -- Start of processing for Set_CPP_Constructor begin pragma Assert (Is_CPP_Class (Typ)); -- Look for the constructor entities E := Next_Entity (Typ); while Present (E) loop if Ekind (E) = E_Function and then Is_Constructor (E) then Found := True; Loc := Sloc (E); Parms := Gen_Parameters_Profile (E); IP := Make_Defining_Identifier (Loc, Make_Init_Proc_Name (Typ)); -- Case 1: Constructor of untagged type -- If the C++ class has no virtual methods then the matching Ada -- type is an untagged record type. In such case there is no need -- to generate a wrapper of the C++ constructor because the _tag -- component is not available. if not Is_Tagged_Type (Typ) then Discard_Node (Make_Subprogram_Declaration (Loc, Specification => Make_Procedure_Specification (Loc, Defining_Unit_Name => IP, Parameter_Specifications => Parms))); Set_Init_Proc (Typ, IP); Set_Is_Imported (IP); Set_Is_Constructor (IP); Set_Interface_Name (IP, Interface_Name (E)); Set_Convention (IP, Convention_CPP); Set_Is_Public (IP); Set_Has_Completion (IP); -- Case 2: Constructor of a tagged type -- In this case we generate the IP routine as a wrapper of the -- C++ constructor because IP must also save a copy of the _tag -- generated in the C++ side. The copy of the _tag is used by -- Build_CPP_Init_Procedure to elaborate derivations of C++ types. -- Generate: -- procedure IP (_init : in out Typ; ...) is -- procedure ConstructorP (_init : in out Typ; ...); -- pragma Import (ConstructorP); -- begin -- ConstructorP (_init, ...); -- if Typ._tag = null then -- Typ._tag := _init._tag; -- end if; -- end IP; else declare Body_Stmts : constant List_Id := New_List; Constructor_Id : Entity_Id; Constructor_Decl_Node : Node_Id; Init_Tags_List : List_Id; begin Constructor_Id := Make_Temporary (Loc, 'P'); Constructor_Decl_Node := Make_Subprogram_Declaration (Loc, Make_Procedure_Specification (Loc, Defining_Unit_Name => Constructor_Id, Parameter_Specifications => Parms)); Set_Is_Imported (Constructor_Id); Set_Is_Constructor (Constructor_Id); Set_Interface_Name (Constructor_Id, Interface_Name (E)); Set_Convention (Constructor_Id, Convention_CPP); Set_Is_Public (Constructor_Id); Set_Has_Completion (Constructor_Id); -- Build the init procedure as a wrapper of this constructor Parms := Gen_Parameters_Profile (E); -- Invoke the C++ constructor declare Actuals : constant List_Id := New_List; begin P := First (Parms); while Present (P) loop Append_To (Actuals, New_Occurrence_Of (Defining_Identifier (P), Loc)); Next (P); end loop; Append_To (Body_Stmts, Make_Procedure_Call_Statement (Loc, Name => New_Occurrence_Of (Constructor_Id, Loc), Parameter_Associations => Actuals)); end; -- Initialize copies of C++ primary and secondary tags Init_Tags_List := New_List; declare Tag_Elmt : Elmt_Id; Tag_Comp : Node_Id; begin Tag_Elmt := First_Elmt (Access_Disp_Table (Typ)); Tag_Comp := First_Tag_Component (Typ); while Present (Tag_Elmt) and then Is_Tag (Node (Tag_Elmt)) loop -- Skip the following assertion with primary tags -- because Related_Type is not set on primary tag -- components. pragma Assert (Tag_Comp = First_Tag_Component (Typ) or else Related_Type (Node (Tag_Elmt)) = Related_Type (Tag_Comp)); Append_To (Init_Tags_List, Make_Assignment_Statement (Loc, Name => New_Occurrence_Of (Node (Tag_Elmt), Loc), Expression => Make_Selected_Component (Loc, Prefix => Make_Identifier (Loc, Name_uInit), Selector_Name => New_Occurrence_Of (Tag_Comp, Loc)))); Tag_Comp := Next_Tag_Component (Tag_Comp); Next_Elmt (Tag_Elmt); end loop; end; Append_To (Body_Stmts, Make_If_Statement (Loc, Condition => Make_Op_Eq (Loc, Left_Opnd => New_Occurrence_Of (Node (First_Elmt (Access_Disp_Table (Typ))), Loc), Right_Opnd => Unchecked_Convert_To (RTE (RE_Tag), New_Occurrence_Of (RTE (RE_Null_Address), Loc))), Then_Statements => Init_Tags_List)); IP_Body := Make_Subprogram_Body (Loc, Specification => Make_Procedure_Specification (Loc, Defining_Unit_Name => IP, Parameter_Specifications => Parms), Declarations => New_List (Constructor_Decl_Node), Handled_Statement_Sequence => Make_Handled_Sequence_Of_Statements (Loc, Statements => Body_Stmts, Exception_Handlers => No_List)); Discard_Node (IP_Body); Set_Init_Proc (Typ, IP); end; end if; -- If this constructor has parameters and all its parameters have -- defaults then it covers the default constructor. The semantic -- analyzer ensures that only one constructor with defaults covers -- the default constructor. if Present (Parameter_Specifications (Parent (E))) and then Needs_No_Actuals (E) then Covers_Default_Constructor := IP; end if; end if; Next_Entity (E); end loop; -- If there are no constructors, mark the type as abstract since we -- won't be able to declare objects of that type. if not Found then Set_Is_Abstract_Type (Typ); end if; -- Handle constructor that has all its parameters with defaults and -- hence it covers the default constructor. We generate a wrapper IP -- which calls the covering constructor. if Present (Covers_Default_Constructor) then declare Body_Stmts : List_Id; begin Loc := Sloc (Covers_Default_Constructor); Body_Stmts := New_List ( Make_Procedure_Call_Statement (Loc, Name => New_Occurrence_Of (Covers_Default_Constructor, Loc), Parameter_Associations => New_List ( Make_Identifier (Loc, Name_uInit)))); IP := Make_Defining_Identifier (Loc, Make_Init_Proc_Name (Typ)); IP_Body := Make_Subprogram_Body (Loc, Specification => Make_Procedure_Specification (Loc, Defining_Unit_Name => IP, Parameter_Specifications => New_List ( Make_Parameter_Specification (Loc, Defining_Identifier => Make_Defining_Identifier (Loc, Name_uInit), Parameter_Type => New_Occurrence_Of (Typ, Loc)))), Declarations => No_List, Handled_Statement_Sequence => Make_Handled_Sequence_Of_Statements (Loc, Statements => Body_Stmts, Exception_Handlers => No_List)); Discard_Node (IP_Body); Set_Init_Proc (Typ, IP); end; end if; -- If the CPP type has constructors then it must import also the default -- C++ constructor. It is required for default initialization of objects -- of the type. It is also required to elaborate objects of Ada types -- that are defined as derivations of this CPP type. if Has_CPP_Constructors (Typ) and then No (Init_Proc (Typ)) then Error_Msg_N ("??default constructor must be imported from C++", Typ); end if; end Set_CPP_Constructors; --------------------------- -- Set_DT_Position_Value -- --------------------------- procedure Set_DT_Position_Value (Prim : Entity_Id; Value : Uint) is begin Set_DT_Position (Prim, Value); -- Propagate the value to the wrapped subprogram (if one is present) if Ekind (Prim) in E_Function | E_Procedure and then Is_Primitive_Wrapper (Prim) and then Present (Wrapped_Entity (Prim)) and then Is_Dispatching_Operation (Wrapped_Entity (Prim)) then Set_DT_Position (Wrapped_Entity (Prim), Value); end if; end Set_DT_Position_Value; -------------------------- -- Set_DTC_Entity_Value -- -------------------------- procedure Set_DTC_Entity_Value (Tagged_Type : Entity_Id; Prim : Entity_Id) is begin if Present (Interface_Alias (Prim)) and then Is_Interface (Find_Dispatching_Type (Interface_Alias (Prim))) then Set_DTC_Entity (Prim, Find_Interface_Tag (T => Tagged_Type, Iface => Find_Dispatching_Type (Interface_Alias (Prim)))); else Set_DTC_Entity (Prim, First_Tag_Component (Tagged_Type)); end if; -- Propagate the value to the wrapped subprogram (if one is present) if Ekind (Prim) in E_Function | E_Procedure and then Is_Primitive_Wrapper (Prim) and then Present (Wrapped_Entity (Prim)) and then Is_Dispatching_Operation (Wrapped_Entity (Prim)) then Set_DTC_Entity (Wrapped_Entity (Prim), DTC_Entity (Prim)); end if; end Set_DTC_Entity_Value; ----------------- -- Tagged_Kind -- ----------------- function Tagged_Kind (T : Entity_Id) return Node_Id is Conc_Typ : Entity_Id; Loc : constant Source_Ptr := Sloc (T); begin pragma Assert (Is_Tagged_Type (T) and then RTE_Available (RE_Tagged_Kind)); -- Abstract kinds if Is_Abstract_Type (T) then if Is_Limited_Record (T) then return New_Occurrence_Of (RTE (RE_TK_Abstract_Limited_Tagged), Loc); else return New_Occurrence_Of (RTE (RE_TK_Abstract_Tagged), Loc); end if; -- Concurrent kinds elsif Is_Concurrent_Record_Type (T) then Conc_Typ := Corresponding_Concurrent_Type (T); if Present (Full_View (Conc_Typ)) then Conc_Typ := Full_View (Conc_Typ); end if; if Ekind (Conc_Typ) = E_Protected_Type then return New_Occurrence_Of (RTE (RE_TK_Protected), Loc); else pragma Assert (Ekind (Conc_Typ) = E_Task_Type); return New_Occurrence_Of (RTE (RE_TK_Task), Loc); end if; -- Regular tagged kinds else if Is_Limited_Record (T) then return New_Occurrence_Of (RTE (RE_TK_Limited_Tagged), Loc); else return New_Occurrence_Of (RTE (RE_TK_Tagged), Loc); end if; end if; end Tagged_Kind; -------------- -- Write_DT -- -------------- procedure Write_DT (Typ : Entity_Id) is Elmt : Elmt_Id; Prim : Node_Id; begin -- Protect this procedure against wrong usage. Required because it will -- be used directly from GDB if not (Typ <= Last_Node_Id) or else not Is_Tagged_Type (Typ) then Write_Str ("wrong usage: Write_DT must be used with tagged types"); Write_Eol; return; end if; Write_Int (Int (Typ)); Write_Str (": "); Write_Name (Chars (Typ)); if Is_Interface (Typ) then Write_Str (" is interface"); end if; Write_Eol; Elmt := First_Elmt (Primitive_Operations (Typ)); while Present (Elmt) loop Prim := Node (Elmt); Write_Str (" - "); -- Indicate if this primitive will be allocated in the primary -- dispatch table or in a secondary dispatch table associated -- with an abstract interface type if Present (DTC_Entity (Prim)) then if Etype (DTC_Entity (Prim)) = RTE (RE_Tag) then Write_Str ("[P] "); else Write_Str ("[s] "); end if; end if; -- Output the node of this primitive operation and its name Write_Int (Int (Prim)); Write_Str (": "); if Is_Predefined_Dispatching_Operation (Prim) then Write_Str ("(predefined) "); end if; -- Prefix the name of the primitive with its corresponding tagged -- type to facilitate seeing inherited primitives. if Present (Alias (Prim)) then Write_Name (Chars (Find_Dispatching_Type (Ultimate_Alias (Prim)))); else Write_Name (Chars (Typ)); end if; Write_Str ("."); Write_Name (Chars (Prim)); -- Indicate if this primitive has an aliased primitive if Present (Alias (Prim)) then Write_Str (" (alias = "); Write_Int (Int (Alias (Prim))); -- If the DTC_Entity attribute is already set we can also output -- the name of the interface covered by this primitive (if any). if Ekind (Alias (Prim)) in E_Function | E_Procedure and then Present (DTC_Entity (Alias (Prim))) and then Is_Interface (Scope (DTC_Entity (Alias (Prim)))) then Write_Str (" from interface "); Write_Name (Chars (Scope (DTC_Entity (Alias (Prim))))); end if; if Present (Interface_Alias (Prim)) then Write_Str (", AI_Alias of "); if Is_Null_Interface_Primitive (Interface_Alias (Prim)) then Write_Str ("null primitive "); end if; Write_Name (Chars (Find_Dispatching_Type (Interface_Alias (Prim)))); Write_Char (':'); Write_Int (Int (Interface_Alias (Prim))); end if; Write_Str (")"); end if; -- Display the final position of this primitive in its associated -- (primary or secondary) dispatch table. if Present (DTC_Entity (Prim)) and then DT_Position (Prim) /= No_Uint then Write_Str (" at #"); Write_Int (UI_To_Int (DT_Position (Prim))); end if; if Is_Abstract_Subprogram (Prim) then Write_Str (" is abstract;"); -- Check if this is a null primitive elsif Comes_From_Source (Prim) and then Ekind (Prim) = E_Procedure and then Null_Present (Parent (Prim)) then Write_Str (" is null;"); end if; if Is_Eliminated (Ultimate_Alias (Prim)) then Write_Str (" (eliminated)"); end if; if Is_Imported (Prim) and then Convention (Prim) = Convention_CPP then Write_Str (" (C++)"); end if; Write_Eol; Next_Elmt (Elmt); end loop; end Write_DT; end Exp_Disp;
37.781037
79
0.529047
4bef9026bbe6a709399548574a082177289ff0d6
2,696
ads
Ada
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-widboo.ads
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-widboo.ads
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-widboo.ads
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- S Y S T E M . W I D _ B O O L -- -- -- -- S p e c -- -- -- -- Copyright (C) 1992-2020, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ -- This package contains the routine used for Boolean'Width package System.Wid_Bool is pragma Pure; function Width_Boolean (Lo, Hi : Boolean) return Natural; -- Compute Width attribute for non-static type derived from Boolean. -- The arguments are the low and high bounds for the type. end System.Wid_Bool;
64.190476
78
0.410608
9ab7167d6697fb8c6c2667bf60730c5d85803f29
11,227
adb
Ada
source/slim-fonts.adb
reznikmm/slimp
acbbb895ba9c2a2dfb28e5065e630326ce958502
[ "MIT" ]
null
null
null
source/slim-fonts.adb
reznikmm/slimp
acbbb895ba9c2a2dfb28e5065e630326ce958502
[ "MIT" ]
null
null
null
source/slim-fonts.adb
reznikmm/slimp
acbbb895ba9c2a2dfb28e5065e630326ce958502
[ "MIT" ]
null
null
null
-- Copyright (c) 2019 Maxim Reznik <[email protected]> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Ada.Streams; with Ada.Wide_Wide_Text_IO; with Interfaces; with League.Regexps; with League.String_Vectors; with League.Text_Codecs; package body Slim.Fonts is Unknown_Char_Width : constant := 2; --------------- -- Draw_Text -- --------------- procedure Draw_Text (Self : Font; Text : League.Strings.Universal_String; Offset_X : Coordinate; Offset_Y : Coordinate) is procedure Draw_Char (Char : not null Glyph_Bitmap_Access; X : in out Coordinate; Y : Coordinate); --------------- -- Draw_Char -- --------------- procedure Draw_Char (Char : not null Glyph_Bitmap_Access; X : in out Coordinate; Y : Coordinate) is Row : Coordinate := Y + Coordinate (Char.Height + Char.Offset_Y); Col : constant Coordinate := X + Coordinate (Char.Offset_X); begin for J in 1 .. Char.Height loop for K in 1 .. Char.Width loop if Char.V (J, K) then Draw_Pixel (X => Col + Coordinate (K - 1), Y => Row); end if; end loop; Row := Row - 1; end loop; X := X + Coordinate (Char.Dev_Width); end Draw_Char; X : Coordinate := Offset_X; Y : constant Coordinate := Offset_Y; begin for J in 1 .. Text.Length loop declare Cursor : constant Glyph_Bitmap_Maps.Cursor := Self.Map.Find (Text.Element (J).To_Wide_Wide_Character); begin if Glyph_Bitmap_Maps.Has_Element (Cursor) then Draw_Char (Glyph_Bitmap_Maps.Element (Cursor), X, Y); else X := X + Unknown_Char_Width; end if; end; end loop; end Draw_Text; ---------- -- Hash -- ---------- function Hash (Value : Wide_Wide_Character) return Ada.Containers.Hash_Type is begin return Wide_Wide_Character'Pos (Value); end Hash; ---------- -- Read -- ---------- procedure Read (Self : in out Font; Name : League.Strings.Universal_String) is use type League.Strings.Universal_String; function "+" (Text : Wide_Wide_String) return League.Strings.Universal_String renames League.Strings.To_Universal_String; function Get_Line (Input : Ada.Wide_Wide_Text_IO.File_Type) return League.Strings.Universal_String; function Skip (Value : Bit_Count) return Natural; function Hex (Value : League.Strings.Universal_String) return Interfaces.Unsigned_64; function Split (Text : League.Strings.Universal_String) return League.String_Vectors.Universal_String_Vector; -- Like Text.Split but return Vector.Length >=1 -------------- -- Get_Line -- -------------- function Get_Line (Input : Ada.Wide_Wide_Text_IO.File_Type) return League.Strings.Universal_String is begin return League.Strings.To_Universal_String (Ada.Wide_Wide_Text_IO.Get_Line (Input)); end Get_Line; --------- -- Hex -- --------- function Hex (Value : League.Strings.Universal_String) return Interfaces.Unsigned_64 is begin return Interfaces.Unsigned_64'Wide_Wide_Value ("16#" & Value.To_Wide_Wide_String & "#"); end Hex; ---------- -- Skip -- ---------- function Skip (Value : Bit_Count) return Natural is begin return 64 - Natural ((Value - 1) / 8 + 1) * 8; end Skip; ----------- -- Split -- ----------- function Split (Text : League.Strings.Universal_String) return League.String_Vectors.Universal_String_Vector is Result : League.String_Vectors.Universal_String_Vector := Text.Split (' '); begin if Result.Is_Empty then Result.Append (League.Strings.Empty_Universal_String); end if; return Result; end Split; Input : Ada.Wide_Wide_Text_IO.File_Type; Char : Wide_Wide_Character; Last : Glyph_Bitmap_Access; Dev_Width : Bit_Count; Code_Page : League.Strings.Universal_String; Codec : League.Text_Codecs.Text_Codec := League.Text_Codecs.Codec (+"utf-8"); Pattern : constant League.Regexps.Regexp_Pattern := League.Regexps.Compile (+"uni([0-9a-fA-F]{4})"); STARTCHAR : constant League.Strings.Universal_String := +"STARTCHAR"; ENCODING : constant League.Strings.Universal_String := +"ENCODING"; -- SWIDTH : League.Strings.Universal_String := +"SWIDTH"; DWIDTH : constant League.Strings.Universal_String := +"DWIDTH"; BBX : constant League.Strings.Universal_String := +"BBX"; BITMAP : constant League.Strings.Universal_String := +"BITMAP"; ENDCHAR : constant League.Strings.Universal_String := +"ENDCHAR"; CHARSET_REGISTRY : constant League.Strings.Universal_String := +"CHARSET_REGISTRY"; CHARSET_ENCODING : constant League.Strings.Universal_String := +"CHARSET_ENCODING"; begin Ada.Wide_Wide_Text_IO.Open (Input, Ada.Wide_Wide_Text_IO.In_File, Name => "data/" & Name.To_UTF_8_String & ".bdf"); -- Skip headers loop declare Line : constant League.Strings.Universal_String := Get_Line (Input); begin if Line.Starts_With (CHARSET_REGISTRY) then Code_Page := Line.Split ('"') (2); elsif Line.Starts_With (CHARSET_ENCODING) then Code_Page.Append (Line.Split ('"') (2)); end if; exit when Line.Starts_With ("CHARS "); end; end loop; if not Code_Page.Is_Empty then Codec := League.Text_Codecs.Codec (Code_Page); end if; -- Read Glyphs while not Ada.Wide_Wide_Text_IO.End_Of_File (Input) loop declare Line : constant League.Strings.Universal_String := Get_Line (Input); Fields : constant League.String_Vectors.Universal_String_Vector := Split (Line); First : constant League.Strings.Universal_String := Fields.Element (1); W, H : Bit_Count; Row : Bit_Count; begin if First = STARTCHAR then declare Match : constant League.Regexps.Regexp_Match := Pattern.Find_Match (Fields.Element (2)); begin if Match.Is_Matched then Char := Wide_Wide_Character'Val (Hex (Match.Capture (1))); else Char := ' '; -- To be defined in ENCODING end if; end; elsif First = ENCODING then if Char = ' ' then declare X : constant Ada.Streams.Stream_Element_Array (1 .. 1) := (1 => Ada.Streams.Stream_Element'Wide_Wide_Value (Fields.Element (2).To_Wide_Wide_String)); begin Char := Codec.Decode (X) .Element (1).To_Wide_Wide_Character; end; end if; elsif First = BBX then W := Bit_Count'Wide_Wide_Value (Fields.Element (2).To_Wide_Wide_String); H := Bit_Count'Wide_Wide_Value (Fields.Element (3).To_Wide_Wide_String); Last := new Glyph_Bitmap (Width => W, Height => H); Last.Offset_X := Bit_Count'Wide_Wide_Value (Fields.Element (4).To_Wide_Wide_String); Last.Offset_Y := Bit_Count'Wide_Wide_Value (Fields.Element (5).To_Wide_Wide_String); Last.V := (1 .. H => (1 .. W => False)); Self.Map.Insert (Char, Last); elsif First = DWIDTH then Dev_Width := Bit_Count'Wide_Wide_Value (Fields.Element (2).To_Wide_Wide_String); elsif First = BITMAP then Row := 1; Last.Dev_Width := Dev_Width; loop declare use type Interfaces.Unsigned_64; Bits : constant League.Strings.Universal_String := Get_Line (Input); Value : Interfaces.Unsigned_64; Column : Bit_Count := 1; Upper_Bit : constant := 16#8000_0000_0000_0000#; begin exit when Bits = ENDCHAR; Value := Interfaces.Shift_Left (Hex (Bits), Skip (Last.Width)); while Value /= 0 loop if (Value and Upper_Bit) /= 0 then Last.V (Row, Column) := True; end if; Column := Column + 1; Value := Interfaces.Shift_Left (Value, 1); end loop; end; Row := Row + 1; end loop; end if; end; end loop; Ada.Wide_Wide_Text_IO.Close (Input); end Read; ---------- -- Size -- ---------- function Size (Self : Font; Text : League.Strings.Universal_String) return Bounding_Box is Result : Bounding_Box := (others => 0); Char : Wide_Wide_Character; Cursor : Glyph_Bitmap_Maps.Cursor; Glyph : Glyph_Bitmap_Access; Width : Natural := 0; First : Boolean := True; begin if Text.Length = 0 then return Result; end if; for J in 1 .. Text.Length loop Char := Text.Element (J).To_Wide_Wide_Character; Cursor := Self.Map.Find (Char); if Glyph_Bitmap_Maps.Has_Element (Cursor) then Glyph := Glyph_Bitmap_Maps.Element (Cursor); if First then Result.Top := Integer (Glyph.Offset_Y + Glyph.Height); Result.Bottom := Integer (Glyph.Offset_Y + 1); Result.Left := Width + Integer (Glyph.Offset_X + 1); Result.Right := Width + Integer (Glyph.Offset_X + Glyph.Width); First := False; else Result.Top := Integer'Max (Result.Top, Integer (Glyph.Offset_Y + Glyph.Height)); Result.Bottom := Integer'Min (Result.Bottom, Integer (Glyph.Offset_Y + 1)); Result.Right := Width + Integer (Glyph.Offset_X + Glyph.Width); end if; Width := Width + Natural (Glyph.Dev_Width); else Width := Width + Unknown_Char_Width; end if; end loop; return Result; end Size; end Slim.Fonts;
31.099723
78
0.53024
a012a242d162af29d15213473c0de0d88ef107a5
3,918
ads
Ada
source/amf/mofext/amf-internals-tables-mofext_reflection.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
24
2016-11-29T06:59:41.000Z
2021-08-30T11:55:16.000Z
source/amf/mofext/amf-internals-tables-mofext_reflection.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
2
2019-01-16T05:15:20.000Z
2019-02-03T10:03:32.000Z
source/amf/mofext/amf-internals-tables-mofext_reflection.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
4
2017-07-18T07:11:05.000Z
2020-06-21T03:02:25.000Z
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Ada Modeling Framework -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2012, Vadim Godunko <[email protected]> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ -- This file is generated, don't edit it. ------------------------------------------------------------------------------ with League.Holders; package AMF.Internals.Tables.MOFEXT_Reflection is function Get (Self : AMF.Internals.AMF_Element; Property : CMOF_Element) return League.Holders.Holder; function Get_Meta_Class (Self : AMF.Internals.AMF_Element) return CMOF_Element; procedure Set (Self : AMF.Internals.AMF_Element; Property : CMOF_Element; Value : League.Holders.Holder); end AMF.Internals.Tables.MOFEXT_Reflection;
62.190476
78
0.422665
1ef15fa794e87e92536fdc4d510afd9a2e12634d
16,847
adb
Ada
tests/natools-chunked_strings-tests-cxa4011.adb
faelys/natools
947c004e6f69ca144942c6af40e102d089223cf8
[ "0BSD" ]
null
null
null
tests/natools-chunked_strings-tests-cxa4011.adb
faelys/natools
947c004e6f69ca144942c6af40e102d089223cf8
[ "0BSD" ]
null
null
null
tests/natools-chunked_strings-tests-cxa4011.adb
faelys/natools
947c004e6f69ca144942c6af40e102d089223cf8
[ "0BSD" ]
null
null
null
------------------------------------------------------------------------------ -- Copyright (c) 2011, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- purpose with or without fee is hereby granted, provided that the above -- -- copyright notice and this permission notice appear in all copies. -- -- -- -- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -- -- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -- -- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -- -- ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -- -- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -- -- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF -- -- OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -- ------------------------------------------------------------------------------ with Ada.Strings; use Ada.Strings; procedure Natools.Chunked_Strings.Tests.CXA4011 (Report : in out Natools.Tests.Reporter'Class) is package NT renames Natools.Tests; procedure Test (Test_Name : String; C_1 : Character; C_2 : Character; Name_1 : String; Name_2 : String); procedure Test (Test_Name : String; C_1 : Character; C_2 : Character; Name_1 : String; Name_2 : String) is begin if C_1 = C_2 then NT.Item (Report, Test_Name, NT.Success); else NT.Item (Report, Test_Name, NT.Fail); NT.Info (Report, Name_1 & ": " & Character'Image (C_1)); NT.Info (Report, Name_2 & ": " & Character'Image (C_2)); end if; end Test; begin NT.Section (Report, "Port of ACATS CXA4011"); declare Cad_String : constant Chunked_String := To_Chunked_String ("cad"); Complete_String : constant Chunked_String := To_Chunked_String ("Incomplete") & Ada.Strings.Space & To_Chunked_String ("String"); Incomplete_String : Chunked_String := To_Chunked_String ("ncomplete Strin"); Incorrect_Spelling : Chunked_String := To_Chunked_String ("Guob Dai"); Magic_String : constant Chunked_String := To_Chunked_String ("abracadabra"); Incantation : Chunked_String := Magic_String; A_Small_G : constant Character := 'g'; A_Small_D : constant Character := 'd'; ABCD_Set : constant Maps.Character_Set := Maps.To_Set ("abcd"); B_Set : constant Maps.Character_Set := Maps.To_Set ("b"); AB_Set : constant Maps.Character_Set := Maps."OR" (Maps.To_Set ('a'), B_Set); Code_Map : constant Maps.Character_Mapping := Maps.To_Mapping (From => "abcd", To => "wxyz"); Reverse_Code_Map : constant Maps.Character_Mapping := Maps.To_Mapping (From => "wxyz", To => "abcd"); Non_Existent_Map : constant Maps.Character_Mapping := Maps.To_Mapping (From => "jkl", To => "mno"); Token_Start : array (1 .. 3) of Positive; Token_End : array (1 .. 3) of Natural := (0, 0, 0); Matching_Letters : Natural := 0; Tests : array (1 .. 5) of Boolean; begin declare Name : constant String := "Operator ""&"""; Tests : array (1 .. 3) of Boolean; begin Incomplete_String := 'I' & Incomplete_String; Incomplete_String := Incomplete_String & A_Small_G; if not Is_Valid (Incomplete_String) or not Is_Valid (Complete_String) then NT.Item (Report, Name, NT.Error); if not Is_Valid (Incomplete_String) then NT.Info (Report, "Incomplete_String is invalid"); end if; if not Is_Valid (Complete_String) then NT.Info (Report, "Complete_String is invalid"); end if; else Tests (1) := Incomplete_String < Complete_String; Tests (2) := Incomplete_String > Complete_String; Tests (3) := Incomplete_String /= Complete_String; if Tests (1) or Tests (2) or Tests (3) then NT.Item (Report, Name, NT.Fail); NT.Info (Report, "Incomplete_String: """ & To_String (Incomplete_String) & '"'); NT.Info (Report, "Complete_String: """ & To_String (Complete_String) & '"'); if Tests (1) then NT.Info (Report, "-> Incomplete_String < Complete_String"); end if; if Tests (2) then NT.Info (Report, "-> Incomplete_String < Complete_String"); end if; if Tests (3) then NT.Info (Report, "-> Incomplete_String /= Complete_String"); end if; else NT.Item (Report, Name, NT.Success); end if; end if; exception when Error : others => NT.Report_Exception (Report, Name, Error); end; NT.Section (Report, "Function Element"); declare Name : constant String := "Element of complete vs constant"; begin Test (Name, Element (Incomplete_String, Length (Incomplete_String)), A_Small_G, "Element (""" & To_String (Incomplete_String) & ',' & Natural'Image (Length (Incomplete_String)) & ')', "A_Small_G"); exception when Error : others => NT.Report_Exception (Report, Name, Error); end; declare Name : constant String := "Element of complete vs Element of Tail"; begin Test (Name, Element (Incomplete_String, 2), Element (Tail (Incomplete_String, 2), 1), "Element (""" & To_String (Incomplete_String) & ", 2)", "Element (""" & To_String (Tail (Incomplete_String, 2)) & ", 1)"); exception when Error : others => NT.Report_Exception (Report, Name, Error); end; declare Name : constant String := "Element of Head vs Element of constant"; begin Test (Name, Element (Head (Incomplete_String, 4), 2), Element (To_Chunked_String ("wnqz"), 2), "Element (""" & To_String (Head (Incomplete_String, 4)) & ", 2)", "Element (""wnqz"", 2)"); exception when Error : others => NT.Report_Exception (Report, Name, Error); end; NT.End_Section (Report); declare Name : constant String := "Procedure Replace_Element"; begin Replace_Element (Incorrect_Spelling, 2, 'o'); Replace_Element (Incorrect_Spelling, Index (Incorrect_Spelling, B_Set), A_Small_D); Replace_Element (Source => Incorrect_Spelling, Index => Length (Incorrect_Spelling), By => 'y'); Test (Report, Name, Incorrect_Spelling, "Good Day"); exception when Error : others => NT.Report_Exception (Report, Name, Error); end; -- Function Count Matching_Letters := Count (Source => Magic_String, Set => ABCD_Set); NT.Item (Report, "Function Count with Set parameter", NT.To_Result (Matching_Letters = 9)); if Matching_Letters /= 9 then NT.Info (Report, "Count (""" & To_String (Magic_String) & """, ABCD_Set) " & Natural'Image (Matching_Letters) & " (should be 9)"); Dump (Report, Magic_String); end if; Tests (1) := Count (Magic_String, "ab") = Count (Magic_String, "ac") + Count (Magic_String, "ad"); Tests (2) := Count (Magic_String, "ab") = 2; NT.Item (Report, "Function Count with String parameter", NT.To_Result (Tests (1) and Tests (2))); if not Tests (1) or not Tests (2) then NT.Info (Report, "Count (""" & To_String (Magic_String) & """, ""ab"") " & Natural'Image (Count (Magic_String, "ab")) & " (should be 2)"); NT.Info (Report, "Count (""" & To_String (Magic_String) & """, ""ac"") " & Natural'Image (Count (Magic_String, "ac"))); NT.Info (Report, "Count (""" & To_String (Magic_String) & """, ""ad"") " & Natural'Image (Count (Magic_String, "ad"))); end if; -- Find_Token Find_Token (Magic_String, AB_Set, Ada.Strings.Inside, Token_Start (1), Token_End (1)); Tests (1) := Natural (Token_Start (1)) = To_String (Magic_String)'First and Token_End (1) = Index (Magic_String, B_Set); Find_Token (Source => Magic_String, Set => ABCD_Set, Test => Ada.Strings.Outside, First => Token_Start (2), Last => Token_End (2)); Tests (2) := Natural (Token_Start (2)) = 3 and Token_End (2) = 3; Find_Token (Magic_String, Maps.To_Set (A_Small_G), Ada.Strings.Inside, First => Token_Start (3), Last => Token_End (3)); Tests (3) := Token_Start (3) = To_String (Magic_String)'First and Token_End (3) = 0; NT.Item (Report, "Procedure Find_Token", NT.To_Result (Tests (1) and Tests (2) and Tests (3))); if not Tests (1) then NT.Info (Report, "Start: " & Positive'Image (Token_Start (1)) & " /= " & Positive'Image (To_String (Magic_String)'First) & " (should be both 1)"); NT.Info (Report, "End: " & Natural'Image (Token_End (1)) & " /= " & Natural'Image (Index (Magic_String, B_Set)) & " (should be both 2)"); end if; if not Tests (2) then NT.Info (Report, "Start: " & Positive'Image (Token_Start (2)) & " (should be 3)"); NT.Info (Report, "End: " & Natural'Image (Token_End (2)) & " (should be 3)"); end if; if not Tests (3) then NT.Info (Report, "Start: " & Positive'Image (Token_Start (3)) & " /= " & Positive'Image (To_String (Magic_String)'First) & " (should be 1)"); NT.Info (Report, "End: " & Natural'Image (Token_End (3)) & " (should be 0)"); end if; -- Translate Incantation := Translate (Magic_String, Code_Map); Tests (1) := Incantation = To_Chunked_String ("wxrwywzwxrw"); NT.Item (Report, "Function Translate", NT.To_Result (Tests (1))); if not Tests (1) then NT.Info (Report, '"' & To_String (Incantation) & """ /= ""wxrwywzwxrw"""); end if; Translate (Incantation, Reverse_Code_Map); Tests (1) := Incantation = Translate (Magic_String, Non_Existent_Map); NT.Item (Report, "Procedure Translate", NT.To_Result (Tests (1))); if not Tests (1) then NT.Info (Report, '"' & To_String (Incantation) & """ /= """ & To_String (Translate (Magic_String, Non_Existent_Map)) & """ (should be """ & To_String (Magic_String) & """)"); end if; -- Trim declare XYZ_Set : constant Maps.Character_Set := Maps.To_Set ("xyz"); PQR_Set : constant Maps.Character_Set := Maps.To_Set ("pqr"); Pad : constant Chunked_String := To_Chunked_String ("Pad"); The_New_Ada : constant Chunked_String := To_Chunked_String ("Ada9X"); Space_Array : constant array (1 .. 4) of Chunked_String := (To_Chunked_String (" Pad "), To_Chunked_String ("Pad "), To_Chunked_String (" Pad"), Pad); String_Array : constant array (1 .. 5) of Chunked_String := (To_Chunked_String ("xyzxAda9Xpqr"), To_Chunked_String ("Ada9Xqqrp"), To_Chunked_String ("zxyxAda9Xqpqr"), To_Chunked_String ("xxxyAda9X"), The_New_Ada); begin for I in 1 .. 4 loop Tests (I) := Trim (Space_Array (I), Ada.Strings.Both) = Pad; end loop; NT.Item (Report, "Trim spaces", NT.To_Result (Tests (1) and Tests (2) and Tests (3) and Tests (4))); for I in 1 .. 4 loop if not Tests (I) then NT.Info (Report, "Part" & Positive'Image (I) & ": Trim (""" & To_String (Space_Array (I)) & """, Both) -> """ & To_String (Trim (Space_Array (I), Ada.Strings.Both)) & """ (shoud be """ & To_String (Pad) & '"'); end if; end loop; for I in 1 .. 5 loop Tests (I) := Trim (String_Array (I), Left => XYZ_Set, Right => PQR_Set) = The_New_Ada; end loop; NT.Item (Report, "Trim sets of characters", NT.To_Result (Tests (1) and Tests (2) and Tests (3) and Tests (4) and Tests (5))); for I in 1 .. 5 loop if not Tests (I) then NT.Info (Report, "Part" & Positive'Image (I) & ": Trim (""" & To_String (String_Array (I)) & """, XYZ_Set, PQR_Set) -> """ & To_String (Trim (String_Array (I), XYZ_Set, PQR_Set)) & """ (shoud be """ & To_String (The_New_Ada) & '"'); end if; end loop; end; -- Delete Tests (1) := Delete (Source => Delete (Magic_String, 8, Length (Magic_String)), From => To_String (Magic_String)'First, Through => 4) = Cad_String; NT.Item (Report, "Function Delete", NT.To_Result (Tests (1))); if not Tests (1) then NT.Info (Report, '"' & To_String (Delete (Delete (Magic_String, 8, Length (Magic_String)), To_String (Magic_String)'First, 4)) & """ /= """ & To_String (Cad_String) & '"'); end if; -- Constructors "*" declare SOS : Chunked_String; Dot : constant Chunked_String := To_Chunked_String ("Dot_"); Dash : constant String := "Dash_"; Distress : constant Chunked_String := To_Chunked_String ("Dot_Dot_Dot_") & To_Chunked_String ("Dash_Dash_Dash_") & To_Chunked_String ("Dot_Dot_Dot"); Repeat : constant Natural := 3; Separator : constant Character := '_'; Separator_Set : constant Maps.Character_Set := Maps.To_Set (Separator); begin SOS := Repeat * Dot; SOS := SOS & Repeat * Dash & Repeat * Dot; if Trim (SOS, Maps.Null_Set, Separator_Set) /= Distress then NT.Item (Report, "Function ""*""", NT.Fail); NT.Info (Report, '"' & To_String (Trim (SOS, Maps.Null_Set, Separator_Set)) & """ /= """ & To_String (Distress) & '"'); else NT.Item (Report, "Function ""*""", NT.Success); end if; end; exception when Error : others => NT.Report_Exception (Report, "Preparation", Error); end; NT.End_Section (Report); end Natools.Chunked_Strings.Tests.CXA4011;
40.990268
79
0.48709
9a4e3b818c151370c30ff8c88acf0aa7e4b804a1
3,798
adb
Ada
source/amf/mof/cmof/amf-internals-factories-cmof_factories-convert_integer_to_string.adb
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
24
2016-11-29T06:59:41.000Z
2021-08-30T11:55:16.000Z
source/amf/mof/cmof/amf-internals-factories-cmof_factories-convert_integer_to_string.adb
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
2
2019-01-16T05:15:20.000Z
2019-02-03T10:03:32.000Z
source/amf/mof/cmof/amf-internals-factories-cmof_factories-convert_integer_to_string.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 © 2010-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 Ada.Strings.Wide_Wide_Fixed; with League.Holders.Integers; separate (AMF.Internals.Factories.CMOF_Factories) function Convert_Integer_To_String (Value : League.Holders.Holder) return League.Strings.Universal_String is begin return League.Strings.To_Universal_String (Ada.Strings.Wide_Wide_Fixed.Trim (Integer'Wide_Wide_Image (League.Holders.Integers.Element (Value)), Ada.Strings.Both)); end Convert_Integer_To_String;
65.482759
78
0.436809
384a06843ddc29f262fabcaa66ea3e980ff537e8
2,419
ads
Ada
bb-runtimes/arm/sam/samg55/sam_board.ads
JCGobbi/Nucleo-STM32F334R8
2a0b1b4b2664c92773703ac5e95dcb71979d051c
[ "BSD-3-Clause" ]
null
null
null
bb-runtimes/arm/sam/samg55/sam_board.ads
JCGobbi/Nucleo-STM32F334R8
2a0b1b4b2664c92773703ac5e95dcb71979d051c
[ "BSD-3-Clause" ]
null
null
null
bb-runtimes/arm/sam/samg55/sam_board.ads
JCGobbi/Nucleo-STM32F334R8
2a0b1b4b2664c92773703ac5e95dcb71979d051c
[ "BSD-3-Clause" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- Copyright (C) 2013-2016, 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 contains board-specific definitions. It needs to be adjusted -- before trying to execute on a specific board. -- This version is specific to the SAM G55 Xplained Pro board. package SAM_Board is type SysClock_Selection is (Internal_RC, External_Crystal); SysClock : constant SysClock_Selection := Internal_RC; end SAM_Board;
59
78
0.45556
1ac78e3679ae5d00a9ec884c0a5b555069614ea1
2,282
ads
Ada
src/formatted_output_short_short_integer.ads
VitalijBondarenko/Formatted_Output_NG
91fbdba8b2c720d9769a52f2b2152c14236adaa0
[ "MIT" ]
null
null
null
src/formatted_output_short_short_integer.ads
VitalijBondarenko/Formatted_Output_NG
91fbdba8b2c720d9769a52f2b2152c14236adaa0
[ "MIT" ]
null
null
null
src/formatted_output_short_short_integer.ads
VitalijBondarenko/Formatted_Output_NG
91fbdba8b2c720d9769a52f2b2152c14236adaa0
[ "MIT" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- Copyright (c) 2016 Vitalij Bondarenko <[email protected]> -- -- -- ------------------------------------------------------------------------------ -- -- -- The MIT License (MIT) -- -- -- -- 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 Formatted_Output.Integer_Output; package Formatted_Output_Short_Short_Integer is new Formatted_Output.Integer_Output (Short_Short_Integer);
69.151515
78
0.447415
a010bfb13b807b5e285afd0c6a1846c3f22072ff
17,764
adb
Ada
awa/src/awa-events-services.adb
fuzzysloth/ada-awa
f9b921eeea29841667a028f2fc4528e4385d247a
[ "Apache-2.0" ]
null
null
null
awa/src/awa-events-services.adb
fuzzysloth/ada-awa
f9b921eeea29841667a028f2fc4528e4385d247a
[ "Apache-2.0" ]
null
null
null
awa/src/awa-events-services.adb
fuzzysloth/ada-awa
f9b921eeea29841667a028f2fc4528e4385d247a
[ "Apache-2.0" ]
null
null
null
----------------------------------------------------------------------- -- awa-events-services -- AWA Event Manager -- Copyright (C) 2012, 2015, 2016 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.Log.Loggers; with ADO.SQL; with ADO.Sessions; with AWA.Events.Dispatchers.Tasks; with AWA.Events.Dispatchers.Actions; package body AWA.Events.Services is use type Util.Strings.Name_Access; Log : constant Util.Log.Loggers.Logger := Util.Log.Loggers.Create ("AWA.Events.Services"); -- ------------------------------ -- Send the event to the modules that subscribed to it. -- The event is sent on each event queue. Event queues will dispatch the event -- by invoking immediately or later on the <b>Dispatch</b> operation. The synchronous -- or asynchronous reception of the event depends on the event queue. -- ------------------------------ procedure Send (Manager : in Event_Manager; Event : in Module_Event'Class) is procedure Send_Queue (Queue : in Queue_Dispatcher); procedure Send_Queue (Queue : in Queue_Dispatcher) is begin if Queue.Queue.Is_Null then Queue.Dispatcher.Dispatch (Event); else Queue.Queue.Enqueue (Event); end if; end Send_Queue; Name : constant Name_Access := Get_Event_Type_Name (Event.Kind); begin if Name = null then Log.Error ("Cannot send event type {0}", Event_Index'Image (Event.Kind)); raise Not_Found; end if; -- Find the event queues associated with the event. Post the event on each queue. -- Some queue can dispatch the event immediately while some others may dispatched it -- asynchronously. declare Pos : Queue_Dispatcher_Lists.Cursor := Manager.Actions (Event.Kind).Queues.First; begin if not Queue_Dispatcher_Lists.Has_Element (Pos) then Log.Debug ("Sending event {0} but there is no listener", Name.all); else Log.Debug ("Sending event {0}", Name.all); loop Queue_Dispatcher_Lists.Query_Element (Pos, Send_Queue'Access); Queue_Dispatcher_Lists.Next (Pos); exit when not Queue_Dispatcher_Lists.Has_Element (Pos); end loop; end if; end; end Send; -- ------------------------------ -- Set the event message type which correspond to the <tt>Kind</tt> event index. -- ------------------------------ procedure Set_Message_Type (Manager : in Event_Manager; Event : in out AWA.Events.Models.Message_Ref; Kind : in Event_Index) is begin if not Event_Arrays.Is_Valid (Kind) then Log.Error ("Cannot send event type {0}", Event_Index'Image (Kind)); raise Not_Found; end if; Event.Set_Status (AWA.Events.Models.QUEUED); Event.Set_Message_Type (Manager.Actions (Kind).Event); end Set_Message_Type; -- ------------------------------ -- Set the event queue associated with the event message. The event queue identified by -- <tt>Name</tt> is searched to find the <tt>Queue_Ref</tt> instance. -- ------------------------------ procedure Set_Event_Queue (Manager : in Event_Manager; Event : in out AWA.Events.Models.Message_Ref; Name : in String) is Queue : constant AWA.Events.Queues.Queue_Ref := Manager.Find_Queue (Name); begin Event.Set_Queue (Queue.Get_Queue); end Set_Event_Queue; -- ------------------------------ -- Dispatch the event identified by <b>Event</b> and associated with the event -- queue <b>Queue</b>. The event actions which are associated with the event are -- executed synchronously. -- ------------------------------ procedure Dispatch (Manager : in Event_Manager; Queue : in AWA.Events.Queues.Queue_Ref; Event : in Module_Event'Class) is procedure Find_Queue (List : in Queue_Dispatcher); Found : Boolean := False; procedure Find_Queue (List : in Queue_Dispatcher) is begin if List.Queue = Queue then List.Dispatcher.Dispatch (Event); Found := True; end if; end Find_Queue; Name : constant Name_Access := Get_Event_Type_Name (Event.Kind); begin if Name = null then Log.Error ("Cannot dispatch event type {0}", Event_Index'Image (Event.Kind)); raise Not_Found; end if; declare Pos : Queue_Dispatcher_Lists.Cursor := Manager.Actions (Event.Kind).Queues.First; begin if not Queue_Dispatcher_Lists.Has_Element (Pos) then Log.Debug ("Dispatching event {0} but there is no listener", Name.all); else Log.Debug ("Dispatching event {0}", Name.all); loop Queue_Dispatcher_Lists.Query_Element (Pos, Find_Queue'Access); exit when Found; Queue_Dispatcher_Lists.Next (Pos); if not Queue_Dispatcher_Lists.Has_Element (Pos) then Log.Debug ("Dispatched event {0} but there was no listener", Name.all); exit; end if; end loop; end if; end; end Dispatch; -- ------------------------------ -- Find the event queue identified by the given name. -- ------------------------------ function Find_Queue (Manager : in Event_Manager; Name : in String) return AWA.Events.Queues.Queue_Ref is Pos : constant Queues.Maps.Cursor := Manager.Queues.Find (Name); begin if Queues.Maps.Has_Element (Pos) then return Queues.Maps.Element (Pos); else Log.Error ("Event queue {0} not found", Name); return AWA.Events.Queues.Null_Queue; end if; end Find_Queue; -- ------------------------------ -- Add the event queue in the registry. -- ------------------------------ procedure Add_Queue (Manager : in out Event_Manager; Queue : in AWA.Events.Queues.Queue_Ref) is Name : constant String := Queue.Get_Name; begin if Manager.Queues.Contains (Name) then Log.Error ("Event queue {0} already defined"); else Log.Info ("Adding event queue {0}", Name); end if; Manager.Queues.Include (Key => Name, New_Item => Queue); end Add_Queue; -- ------------------------------ -- Add an action invoked when the event identified by <b>Event</b> is sent. -- The event is posted on the queue identified by <b>Queue</b>. -- When the event queue dispatches the event, the Ada bean identified by the method action -- represented by <b>Action</b> is created and initialized by evaluating and setting the -- parameters defined in <b>Params</b>. The action method is then invoked. -- ------------------------------ procedure Add_Action (Manager : in out Event_Manager; Event : in String; Queue : in AWA.Events.Queues.Queue_Ref; Action : in EL.Expressions.Method_Expression; Params : in EL.Beans.Param_Vectors.Vector) is procedure Find_Queue (List : in Queue_Dispatcher); procedure Add_Action (List : in out Queue_Dispatcher); procedure Add_Action (List : in out Queue_Dispatcher) is use type AWA.Events.Dispatchers.Dispatcher_Access; begin if List.Dispatcher = null then List.Dispatcher := AWA.Events.Dispatchers.Actions.Create_Dispatcher (Application => Manager.Application.all'Access); end if; List.Dispatcher.Add_Action (Action, Params); end Add_Action; Found : Boolean := False; procedure Find_Queue (List : in Queue_Dispatcher) is begin Found := List.Queue = Queue; end Find_Queue; Index : constant Event_Index := Find_Event_Index (Event); Pos : Queue_Dispatcher_Lists.Cursor := Manager.Actions (Index).Queues.First; begin Log.Info ("Adding action {0} to event {1}", Action.Get_Expression, Event); -- Find the queue. while Queue_Dispatcher_Lists.Has_Element (Pos) loop Queue_Dispatcher_Lists.Query_Element (Pos, Find_Queue'Access); exit when Found; Queue_Dispatcher_Lists.Next (Pos); end loop; -- Create it if it does not exist. if not Found then declare New_Queue : Queue_Dispatcher; begin New_Queue.Queue := Queue; Manager.Actions (Index).Queues.Append (New_Queue); Pos := Manager.Actions (Index).Queues.Last; end; end if; -- And append the new action to the event queue. Manager.Actions (Index).Queues.Update_Element (Pos, Add_Action'Access); end Add_Action; -- ------------------------------ -- Add a dispatcher to process the event queues matching the <b>Match</b> string. -- The dispatcher can create up to <b>Count</b> tasks running at the priority <b>Priority</b>. -- ------------------------------ procedure Add_Dispatcher (Manager : in out Event_Manager; Match : in String; Count : in Positive; Priority : in Positive) is use type AWA.Events.Dispatchers.Dispatcher_Access; begin Log.Info ("Adding event dispatcher with {0} tasks prio {1} and dispatching queues '{2}'", Positive'Image (Count), Positive'Image (Priority), Match); for I in Manager.Dispatchers'Range loop if Manager.Dispatchers (I) = null then Manager.Dispatchers (I) := AWA.Events.Dispatchers.Tasks.Create_Dispatcher (Manager'Unchecked_Access, Match, Count, Priority); return; end if; end loop; Log.Error ("Implementation limit is reached. Too many dispatcher."); end Add_Dispatcher; -- ------------------------------ -- Initialize the event manager. -- ------------------------------ procedure Initialize (Manager : in out Event_Manager; App : in Application_Access) is procedure Set_Events (Msg : in AWA.Events.Models.Message_Type_Ref); Msg_Types : AWA.Events.Models.Message_Type_Vector; Query : ADO.SQL.Query; procedure Set_Events (Msg : in AWA.Events.Models.Message_Type_Ref) is Name : constant String := Msg.Get_Name; begin declare Index : constant Event_Index := Find_Event_Index (Name); begin Manager.Actions (Index).Event := Msg; end; exception when others => Log.Warn ("Event {0} is no longer used", Name); end Set_Events; DB : ADO.Sessions.Master_Session := App.Get_Master_Session; begin Log.Info ("Initializing {0} events", Event_Index'Image (Event_Arrays.Get_Last)); Manager.Application := App; DB.Begin_Transaction; Manager.Actions := new Event_Queues_Array (1 .. Event_Arrays.Get_Last); AWA.Events.Models.List (Object => Msg_Types, Session => DB, Query => Query); declare Pos : AWA.Events.Models.Message_Type_Vectors.Cursor := Msg_Types.First; begin while AWA.Events.Models.Message_Type_Vectors.Has_Element (Pos) loop AWA.Events.Models.Message_Type_Vectors.Query_Element (Pos, Set_Events'Access); AWA.Events.Models.Message_Type_Vectors.Next (Pos); end loop; end; for I in Manager.Actions'Range loop if Manager.Actions (I).Event.Is_Null then declare Name : constant Name_Access := Get_Event_Type_Name (I); begin Log.Info ("Creating event type {0} in database", Name.all); Manager.Actions (I).Event.Set_Name (Name.all); Manager.Actions (I).Event.Save (DB); end; end if; end loop; DB.Commit; end Initialize; -- ------------------------------ -- Start the event manager. The dispatchers are configured to dispatch the event queues -- and tasks are started to process asynchronous events. -- ------------------------------ procedure Start (Manager : in out Event_Manager) is use type AWA.Events.Dispatchers.Dispatcher_Access; -- Dispatch the event queues to the dispatcher according to the dispatcher configuration. procedure Associate_Dispatcher (Key : in String; Queue : in out AWA.Events.Queues.Queue_Ref); -- ------------------------------ -- Dispatch the event queues to the dispatcher according to the dispatcher configuration. -- ------------------------------ procedure Associate_Dispatcher (Key : in String; Queue : in out AWA.Events.Queues.Queue_Ref) is pragma Unreferenced (Key); Added : Boolean := False; begin for I in reverse Manager.Dispatchers'Range loop if Manager.Dispatchers (I) /= null then Manager.Dispatchers (I).Add_Queue (Queue, Added); exit when Added; end if; end loop; end Associate_Dispatcher; Iter : AWA.Events.Queues.Maps.Cursor := Manager.Queues.First; begin Log.Info ("Starting the event manager"); while AWA.Events.Queues.Maps.Has_Element (Iter) loop Manager.Queues.Update_Element (Iter, Associate_Dispatcher'Access); AWA.Events.Queues.Maps.Next (Iter); end loop; -- Start the dispatchers. for I in Manager.Dispatchers'Range loop exit when Manager.Dispatchers (I) = null; Manager.Dispatchers (I).Start; end loop; end Start; -- ------------------------------ -- Stop the event manager. -- ------------------------------ procedure Stop (Manager : in out Event_Manager) is use type AWA.Events.Dispatchers.Dispatcher_Access; begin Log.Info ("Stopping the event manager"); -- Stop the dispatchers. for I in Manager.Dispatchers'Range loop exit when Manager.Dispatchers (I) = null; Manager.Dispatchers (I).Stop; end loop; end Stop; -- ------------------------------ -- Get the application associated with the event manager. -- ------------------------------ function Get_Application (Manager : in Event_Manager) return Application_Access is begin return Manager.Application; end Get_Application; -- ------------------------------ -- Finalize the queue dispatcher releasing the dispatcher memory. -- ------------------------------ procedure Finalize (Object : in out Queue_Dispatcher) is procedure Free is new Ada.Unchecked_Deallocation (Object => AWA.Events.Dispatchers.Dispatcher'Class, Name => AWA.Events.Dispatchers.Dispatcher_Access); begin Free (Object.Dispatcher); end Finalize; -- ------------------------------ -- Finalize the event queues and the dispatchers. -- ------------------------------ procedure Finalize (Object : in out Event_Queues) is begin loop declare Pos : constant Queue_Dispatcher_Lists.Cursor := Object.Queues.First; begin exit when not Queue_Dispatcher_Lists.Has_Element (Pos); Object.Queues.Update_Element (Position => Pos, Process => Finalize'Access); Object.Queues.Delete_First; end; end loop; end Finalize; -- ------------------------------ -- Finalize the event manager by releasing the allocated storage. -- ------------------------------ overriding procedure Finalize (Manager : in out Event_Manager) is use type AWA.Events.Dispatchers.Dispatcher_Access; procedure Free is new Ada.Unchecked_Deallocation (Object => Event_Queues_Array, Name => Event_Queues_Array_Access); procedure Free is new Ada.Unchecked_Deallocation (Object => AWA.Events.Dispatchers.Dispatcher'Class, Name => AWA.Events.Dispatchers.Dispatcher_Access); begin -- Stop the dispatcher first. for I in Manager.Dispatchers'Range loop exit when Manager.Dispatchers (I) = null; Free (Manager.Dispatchers (I)); end loop; if Manager.Actions /= null then for I in Manager.Actions'Range loop Finalize (Manager.Actions (I)); end loop; Free (Manager.Actions); end if; end Finalize; end AWA.Events.Services;
39.475556
98
0.575828
a011de0dd535ee792e1a33200002c647f31abf25
4,509
adb
Ada
src/agate-semaphores.adb
Fabien-Chouteau/AGATE
cd8dbc54c1c70379c833e7cd710e2326ad6e9a91
[ "BSD-3-Clause" ]
3
2017-12-23T10:25:07.000Z
2021-06-09T13:47:19.000Z
src/agate-semaphores.adb
Fabien-Chouteau/AGATE
cd8dbc54c1c70379c833e7cd710e2326ad6e9a91
[ "BSD-3-Clause" ]
null
null
null
src/agate-semaphores.adb
Fabien-Chouteau/AGATE
cd8dbc54c1c70379c833e7cd710e2326ad6e9a91
[ "BSD-3-Clause" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2017-2020, Fabien Chouteau -- -- -- -- 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 AGATE.Scheduler; use AGATE.Scheduler; with AGATE.Traces; package body AGATE.Semaphores is ----------- -- Count -- ----------- function Count (Sem : Semaphore_ID) return Semaphore_Count is (Sem.Count); ------------ -- Signal -- ------------ procedure Signal (Sem : Semaphore_ID) is begin if Sem.Waiting_List /= null then Resume_One_Task (Sem.all); Traces.Value_Changed (Sem, Sem.Count + 1, Current_Task); Traces.Value_Changed (Sem, Sem.Count, Current_Task); else Sem.Count := Sem.Count + 1; Traces.Value_Changed (Sem, Sem.Count, Current_Task); end if; end Signal; --------------------- -- Wait_For_Signal -- --------------------- procedure Wait_For_Signal (Sem : Semaphore_ID) is begin if Sem.Count >= 1 then Sem.Count := Sem.Count - 1; Traces.Value_Changed (Sem, Sem.Count, Current_Task); else declare T : constant Task_Object_Access := Task_Object_Access (Current_Task); begin -- Suspend the current task Scheduler.Suspend (Scheduler.Semaphore); -- Add it to the waiting queue Insert_Task (Sem.all, T); if Context_Switch_Needed then Do_Context_Switch; end if; end; end if; end Wait_For_Signal; ----------------- -- Insert_Task -- ----------------- procedure Insert_Task (Sem : in out Semaphore; T : Task_Object_Access) is begin -- TODO: This is LIFO, so probably not the best... :) T.Next := Sem.Waiting_List; Sem.Waiting_List := T; end Insert_Task; --------------------- -- Resume_One_Task -- --------------------- procedure Resume_One_Task (Sem : in out Semaphore) is T : Task_Object_Access; begin T := Sem.Waiting_List; Sem.Waiting_List := T.Next; T.Next := null; Scheduler.Resume (Task_ID (T)); end Resume_One_Task; end AGATE.Semaphores;
35.785714
78
0.519849
04323ad9ce36979de3ee00ae03d59545dc089773
48,652
adb
Ada
source/asis/xasis/xasis-classes.adb
faelys/gela-asis
48a3bee90eda9f0c9d958b4e3c80a5a9b1c65253
[ "BSD-3-Clause" ]
4
2016-02-05T15:51:56.000Z
2022-03-25T20:38:32.000Z
source/asis/xasis/xasis-classes.adb
faelys/gela-asis
48a3bee90eda9f0c9d958b4e3c80a5a9b1c65253
[ "BSD-3-Clause" ]
null
null
null
source/asis/xasis/xasis-classes.adb
faelys/gela-asis
48a3bee90eda9f0c9d958b4e3c80a5a9b1c65253
[ "BSD-3-Clause" ]
null
null
null
------------------------------------------------------------------------------ -- G E L A X A S I S -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- - - - - - - - - - - - - - - - -- -- Read copyright and license at the end of this file -- ------------------------------------------------------------------------------ -- $Revision: 209 $ $Date: 2013-11-30 21:03:24 +0200 (Сб., 30 нояб. 2013) $ with Asis.Elements; with Asis.Expressions; with Asis.Definitions; with Asis.Declarations; with XASIS.Types; with XASIS.Utils; with XASIS.Static; package body XASIS.Classes is use Asis; function Has_Character_Literal (Tipe : Asis.Declaration) return Boolean; function Is_String_Array (Def : Asis.Definition) return Boolean; function Type_Of_Expression (Expr : Asis.Expression) return Type_Info; function Is_Child_Of (Child, Parent : Type_Info) return Boolean; function First_Subtype (Info : Type_Info) return Type_Info; function Base_Type (Decl : Asis.Declaration) return Asis.Declaration; function Base_Type (Info : Type_Info) return Type_Info; --------------- -- Base_Type -- --------------- function Base_Type (Decl : Asis.Declaration) return Asis.Declaration is use Asis.Elements; use Asis.Declarations; Result : Asis.Declaration := Corresponding_First_Subtype (Decl); Kind : Asis.Declaration_Kinds := Declaration_Kind (Result); Temp : Asis.Declaration; begin if Kind = An_Incomplete_Type_Declaration or Kind = A_Private_Type_Declaration or Kind = A_Private_Extension_Declaration then Temp := Utils.Completion_For_Declaration (Result); if Is_Nil (Temp) then return Result; end if; end if; while XASIS.Utils.Is_Completion (Result) loop Temp := XASIS.Utils.Declaration_For_Completion (Result); Kind := Declaration_Kind (Temp); exit when Kind = An_Incomplete_Type_Declaration or Kind = A_Private_Type_Declaration or Kind = A_Private_Extension_Declaration; Result := Temp; end loop; return Result; end Base_Type; --------------- -- Base_Type -- --------------- function Base_Type (Info : Type_Info) return Type_Info is begin if Info.Definition then return Info; else return Type_From_Declaration (Base_Type (Info.Element)); end if; end Base_Type; ------------------- -- First_Subtype -- ------------------- function First_Subtype (Info : Type_Info) return Type_Info is use Asis.Elements; use Asis.Declarations; Result : Type_Info := Info; Ind : Asis.Definition; Mark : Asis.Expression; begin while not Result.Definition and then Declaration_Kind (Result.Element) = A_Subtype_Declaration loop Ind := Type_Declaration_View (Result.Element); Mark := Asis.Definitions.Subtype_Mark (Ind); Result := Type_From_Subtype_Mark (Mark); end loop; return Result; end First_Subtype; ----------------- -- Class_Range -- ----------------- package body Class_Range is -------------- -- Is_Class -- -------------- function Is_Class (Tipe : Asis.Declaration) return Boolean is begin return Is_Class (Type_From_Declaration (Tipe)); end Is_Class; -------------- -- Is_Class -- -------------- function Is_Class (Info : Type_Info) return Boolean is begin if With_Access and then Info.Is_Access then return True; end if; return Info.Class_Kind in Lower .. Upper; end Is_Class; end Class_Range; package Character_Class is new Class_Range (A_Character, A_Character); package Boolean_Class is new Class_Range (A_Boolean, A_Boolean); package Signed_Class is new Class_Range (A_Signed_Integer, A_Signed_Integer); package Modular_Class is new Class_Range (A_Modular_Integer, A_Modular_Integer); package Float_Class is new Class_Range (A_Float_Point, A_Float_Point); package Ordinary_Fixed_Class is new Class_Range (A_Ordinary_Fixed_Point, A_Ordinary_Fixed_Point); package Decimal_Fixed_Class is new Class_Range (A_Decimal_Fixed_Point, A_Decimal_Fixed_Point); package Procedure_Access_Class is new Class_Range (A_Procedure_Access, A_Procedure_Access); package Function_Access_Class is new Class_Range (A_Function_Access, A_Function_Access); package Constant_Access_Class is new Class_Range (A_Constant_Access, A_Constant_Access); package Variable_Access_Class is new Class_Range (A_Variable_Access, A_Variable_Access, True); package String_Class is new Class_Range (A_String, A_String); package Record_Class is new Class_Range (A_Untagged_Record, A_Untagged_Record); package Tagged_Class is new Class_Range (A_Tagged, A_Tagged); package Task_Class is new Class_Range (A_Task, A_Task); package Protected_Class is new Class_Range (A_Protected, A_Protected); package Elementary_Class is new Class_Range (An_Elementary'First, An_Elementary'Last); package Scalar_Class is new Class_Range (A_Scalar'First, A_Scalar'Last); package Discrete_Class is new Class_Range (A_Discrete'First, A_Discrete'Last); package Enumeration_Class is new Class_Range (An_Enumeration'First, An_Enumeration'Last); package Integer_Class is new Class_Range (An_Integer'First, An_Integer'Last); package Real_Class is new Class_Range (A_Real'First, A_Real'Last); package Fixed_Class is new Class_Range (A_Fixed_Point'First, A_Fixed_Point'Last); package Numeric_Class is new Class_Range (A_Numeric'First, A_Numeric'Last); package Subprogram_Access_Class is new Class_Range (A_Subprogram_Access'First, A_Subprogram_Access'Last); package Object_Access_Class is new Class_Range (An_Object_Access'First, An_Object_Access'Last, True); package General_Access_Class is new Class_Range (A_General_Access'First, A_General_Access'Last, True); package Access_Class is new Class_Range (An_Access'First, An_Access'Last, True); package Composite_Class is new Class_Range (A_Composite'First, A_Composite'Last); package Array_Class is new Class_Range (An_Array'First, An_Array'Last); package Incomplete_Class is new Class_Range (An_Incomplete, An_Incomplete); ----------------- -- Debug_Image -- ----------------- function Debug_Image (Info : Type_Info) return Wide_String is use Asis.Elements; Img : constant Wide_String := Debug_Image (Info.Element) & ' ' & Class_Kinds'Wide_Image (Info.Class_Kind) & " Class_Wide " & Boolean'Wide_Image (Info.Class_Wide) & " Def " & Boolean'Wide_Image (Info.Definition) & " access " & Boolean'Wide_Image (Info.Is_Access); begin return Img; end Debug_Image; ---------------------- -- Destination_Type -- ---------------------- function Destination_Type (Info : Type_Info) return Type_Info is use Asis.Definitions; use Asis.Declarations; Result : Type_Info; Def : Asis.Definition; Mark : Asis.Expression; begin if Info.Is_Access then Result := Info; Result.Is_Access := False; return Result; elsif Is_Object_Access (Info) then Def := Type_Declaration_View (Info.Element); Def := Asis.Definitions.Access_To_Object_Definition (Def); Mark := Asis.Definitions.Subtype_Mark (Def); return Type_From_Subtype_Mark (Mark); else raise XASIS_Error; end if; end Destination_Type; ---------------------------- -- Get_Array_Element_Type -- ---------------------------- function Get_Array_Element_Type (Tipe : Type_Info) return Type_Info is use Asis.Definitions; use Asis.Declarations; Def : constant Asis.Definition := Get_Definition (Tipe); Comp : constant Asis.Definition := Array_Component_Definition (Def); Ind : constant Asis.Definition := Component_Subtype_Indication (Comp); begin return Type_From_Indication (Ind); end Get_Array_Element_Type; -------------------------- -- Get_Array_Index_Type -- -------------------------- function Get_Array_Index_Type (Info : Type_Info; Index : Asis.List_Index := 1) return Type_Info is use Asis.Elements; use Asis.Definitions; use Asis.Declarations; Def : Asis.Definition := Get_Definition (Info); Mark : Asis.Expression; begin case Type_Kind (Def) is when An_Unconstrained_Array_Definition => Mark := Index_Subtype_Definitions (Def) (Index); return Type_From_Subtype_Mark (Mark); when A_Constrained_Array_Definition => Def := Discrete_Subtype_Definitions (Def) (Index); return Type_From_Discrete_Def (Def); when others => raise XASIS_Error; end case; end Get_Array_Index_Type; --------------------- -- Get_Declaration -- --------------------- function Get_Declaration (Info : Type_Info) return Asis.Declaration is begin if Info.Definition then return Asis.Nil_Element; else return Info.Element; end if; end Get_Declaration; -------------------- -- Get_Definition -- -------------------- function Get_Definition (Info : Type_Info) return Asis.Definition is use Asis.Declarations; begin if Info.Definition then return Info.Element; else return Type_Declaration_View (Info.Element); end if; end Get_Definition; --------------------------- -- Has_Character_Literal -- --------------------------- function Has_Character_Literal (Tipe : Asis.Declaration) return Boolean is use Asis.Elements; use Asis.Definitions; use Asis.Declarations; List : constant Asis.Declaration_List := Enumeration_Literal_Declarations (Tipe); begin for I in List'Range loop if Defining_Name_Kind (Names (List (I)) (1)) = A_Defining_Character_Literal then return True; end if; end loop; return False; end Has_Character_Literal; --------------- -- Is_Access -- --------------- function Is_Access (Tipe : Asis.Declaration) return Boolean renames Access_Class.Is_Class; function Is_Access (Info : Type_Info) return Boolean renames Access_Class.Is_Class; ------------------------- -- Is_Anonymous_Access -- ------------------------- function Is_Anonymous_Access (Info : Type_Info) return Boolean is begin return Info.Is_Access; end Is_Anonymous_Access; -------------- -- Is_Array -- -------------- function Is_Array (Tipe : Asis.Declaration) return Boolean renames Array_Class.Is_Class; function Is_Array (Info : Type_Info) return Boolean renames Array_Class.Is_Class; -------------- -- Is_Array -- -------------- function Is_Array (Info : Type_Info; Length : Asis.List_Index) return Boolean is use Asis.Elements; use Asis.Definitions; use Asis.Declarations; Def : constant Asis.Definition := Get_Definition (Info); begin if Is_Array (Info) then case Type_Kind (Def) is when An_Unconstrained_Array_Definition => return Length = Index_Subtype_Definitions (Def)'Length; when A_Constrained_Array_Definition => return Length = Discrete_Subtype_Definitions (Def)'Length; when others => raise XASIS_Error; end case; end if; return False; end Is_Array; ---------------- -- Is_Boolean -- ---------------- function Is_Boolean (Tipe : Asis.Declaration) return Boolean renames Boolean_Class.Is_Class; function Is_Boolean (Info : Type_Info) return Boolean renames Boolean_Class.Is_Class; ----------------- -- Is_Child_Of -- ----------------- function Is_Child_Of (Child, Parent : Type_Info) return Boolean is use Asis.Elements; use Asis.Definitions; use Asis.Declarations; Child_Type : Type_Info := Child; Child_Def : Asis.Definition; begin Child_Type.Class_Wide := False; while not Is_Not_Type (Child_Type) loop if Is_Equal (Parent, Child_Type) then return True; end if; if Child_Type.Definition or else Declaration_Kind (Child_Type.Element) /= An_Ordinary_Type_Declaration then Child_Type := Not_A_Type; else Child_Def := Type_Declaration_View (Child_Type.Element); if Type_Kind (Child_Def) not in A_Derived_Type_Definition .. A_Derived_Record_Extension_Definition then Child_Type := Not_A_Type; else Child_Def := Parent_Subtype_Indication (Child_Def); Child_Type := Type_From_Indication (Child_Def); end if; end if; end loop; return False; end Is_Child_Of; ------------------ -- Is_Character -- ------------------ function Is_Character (Tipe : Asis.Declaration) return Boolean renames Character_Class.Is_Class; function Is_Character (Info : Type_Info) return Boolean renames Character_Class.Is_Class; ------------------- -- Is_Class_Wide -- ------------------- function Is_Class_Wide (Info : Type_Info) return Boolean is begin return Info.Class_Wide; end Is_Class_Wide; ------------------ -- Is_Composite -- ------------------ function Is_Composite (Tipe : Asis.Declaration) return Boolean renames Composite_Class.Is_Class; function Is_Composite (Info : Type_Info) return Boolean renames Composite_Class.Is_Class; ------------------------ -- Is_Constant_Access -- ------------------------ function Is_Constant_Access (Info : Type_Info) return Boolean renames Constant_Access_Class.Is_Class; -------------------- -- Is_Constrained -- -------------------- -- Implemented for scalar types only function Is_Constrained (Mark : Asis.Expression) return Boolean is use Asis.Elements; use Asis.Expressions; use Asis.Definitions; use Asis.Declarations; ---------------------------- -- Is_Subtype_Constrained -- ---------------------------- function Is_Subtype_Constrained (Def : Asis.Subtype_Indication) return Boolean is begin if not Is_Nil (Subtype_Constraint (Def)) then return True; end if; return Is_Constrained (Asis.Definitions.Subtype_Mark (Def)); end Is_Subtype_Constrained; ------------------------------ -- Is_Base_Type_Constrained -- ------------------------------ function Is_Base_Type_Constrained (Def : Asis.Type_Definition) return Boolean is begin case Type_Kind (Def) is when A_Derived_Type_Definition | A_Derived_Record_Extension_Definition => return Is_Subtype_Constrained (Parent_Subtype_Indication (Def)); when An_Enumeration_Type_Definition | A_Signed_Integer_Type_Definition | A_Modular_Type_Definition | A_Root_Type_Definition => return True; when A_Floating_Point_Definition | An_Ordinary_Fixed_Point_Definition | A_Decimal_Fixed_Point_Definition => return not Is_Nil (Real_Range_Constraint (Def)); when An_Unconstrained_Array_Definition | A_Constrained_Array_Definition | A_Record_Type_Definition | A_Tagged_Record_Type_Definition | An_Access_Type_Definition | An_Interface_Type_Definition | Not_A_Type_Definition => return True; end case; end Is_Base_Type_Constrained; Identifier : Asis.Expression := Mark; Kind : Asis.Expression_Kinds; Decl : Asis.Declaration; Def : Asis.Definition; begin Kind := Expression_Kind (Identifier); while Kind = An_Attribute_Reference loop if Attribute_Kind (Identifier) = A_Base_Attribute then return False; elsif Attribute_Kind (Identifier) = A_Class_Attribute then null; else -- This is not a subtype mark return True; end if; Identifier := Prefix (Identifier); Kind := Expression_Kind (Identifier); end loop; if Kind = A_Selected_Component then Identifier := Selector (Identifier); Kind := Expression_Kind (Identifier); end if; if Kind /= An_Identifier then -- This is not a subtype mark return True; end if; Decl := Corresponding_Name_Declaration (Identifier); loop case Declaration_Kind (Decl) is when An_Ordinary_Type_Declaration => Def := Type_Declaration_View (Decl); return Is_Base_Type_Constrained (Def); when A_Task_Type_Declaration | A_Protected_Type_Declaration => return True; when A_Subtype_Declaration => Def := Type_Declaration_View (Decl); return Is_Subtype_Constrained (Def); when An_Incomplete_Type_Declaration | A_Private_Type_Declaration => Decl := Utils.Completion_For_Declaration (Decl); when others => return True; end case; end loop; end Is_Constrained; ------------------ -- Is_Covereded -- ------------------ function Is_Covered (Specific : Type_Info; Class_Wide : Type_Info) return Boolean is use XASIS.Utils; Root : Type_Info := First_Subtype (Class_Wide); begin Root.Class_Wide := False; if Specific.Is_Access or Class_Wide.Is_Access then return False; elsif Is_Class_Wide (Class_Wide) and Is_Declaration (Specific) and Is_Declaration (Class_Wide) and Specific.Class_Kind = A_Tagged then return Is_Child_Of (Specific, Root); elsif Class_Wide.Class_Kind = An_Universal_Integer then return Is_Integer (Specific); elsif Class_Wide.Class_Kind = An_Universal_Real then return Is_Real (Specific); elsif Class_Wide.Class_Kind = An_Universal_Fixed then return Is_Fixed_Point (Specific); else return Is_Equal (Specific, Class_Wide); end if; end Is_Covered; ---------------------------- -- Is_Decimal_Fixed_Point -- ---------------------------- function Is_Decimal_Fixed_Point (Tipe : Asis.Declaration) return Boolean renames Decimal_Fixed_Class.Is_Class; function Is_Decimal_Fixed_Point (Info : Type_Info) return Boolean renames Decimal_Fixed_Class.Is_Class; -------------------- -- Is_Declaration -- -------------------- function Is_Declaration (Info : Type_Info) return Boolean is begin return not Info.Definition; end Is_Declaration; ------------------- -- Is_Definition -- ------------------- function Is_Definition (Info : Type_Info) return Boolean is begin return Info.Definition; end Is_Definition; ----------------- -- Is_Discrete -- ----------------- function Is_Discrete (Tipe : Asis.Declaration) return Boolean renames Discrete_Class.Is_Class; function Is_Discrete (Info : Type_Info) return Boolean renames Discrete_Class.Is_Class; ------------------- -- Is_Elementary -- ------------------- function Is_Elementary (Tipe : Asis.Declaration) return Boolean renames Elementary_Class.Is_Class; function Is_Elementary (Info : Type_Info) return Boolean renames Elementary_Class.Is_Class; -------------------- -- Is_Enumeration -- -------------------- function Is_Enumeration (Tipe : Asis.Declaration) return Boolean renames Enumeration_Class.Is_Class; function Is_Enumeration (Info : Type_Info) return Boolean renames Enumeration_Class.Is_Class; -------------- -- Is_Equal -- -------------- function Is_Equal (Left, Right : Type_Info) return Boolean is use Asis.Declarations; begin if Left.Is_Access or Right.Is_Access then return False; elsif Left.Definition or Right.Definition then return False; elsif Left.Class_Wide xor Right.Class_Wide then return False; else return Asis.Elements.Is_Equal (Left.Element, Right.Element); end if; end Is_Equal; ---------------------- -- Is_Expected_Type -- ---------------------- function Is_Expected_Type (Specific, Expected : Type_Info) return Boolean is Exp_Dest : Type_Info; Spc_Dest : Type_Info; begin if Is_Anonymous_Access (Expected) then if Is_Definition (Specific) then return False; end if; if Is_Variable_Access (Specific) then Exp_Dest := Destination_Type (Expected); Spc_Dest := Destination_Type (Specific); if Is_Covered (Class_Wide => Exp_Dest, Specific => Spc_Dest) then return True; elsif not Exp_Dest.Class_Wide then Exp_Dest.Class_Wide := True; return Is_Equal (Exp_Dest, Spc_Dest); end if; end if; return False; elsif Is_Class_Wide (Expected) then return Is_Covered (Class_Wide => Expected, Specific => Specific); elsif Expected.Class_Kind = An_Universal_Integer then return Is_Integer (Specific); elsif Expected.Class_Kind = An_Universal_Real then return Is_Real (Specific); elsif Expected.Class_Kind = An_Universal_Fixed then return Is_Fixed_Point (Specific) or else Specific.Class_Kind = An_Universal_Real; elsif Specific.Class_Kind = An_Universal_Integer and Is_Integer (Expected) then return True; elsif Specific.Class_Kind = An_Universal_Fixed and Is_Fixed_Point (Expected) then return True; elsif Specific.Class_Kind = An_Universal_Real and Is_Real (Expected) then return True; elsif Is_Equal (Specific, Expected) then return True; end if; return False; end Is_Expected_Type; -------------------- -- Is_Fixed_Point -- -------------------- function Is_Fixed_Point (Tipe : Asis.Declaration) return Boolean renames Fixed_Class.Is_Class; function Is_Fixed_Point (Info : Type_Info) return Boolean renames Fixed_Class.Is_Class; -------------------- -- Is_Float_Point -- -------------------- function Is_Float_Point (Tipe : Asis.Declaration) return Boolean renames Float_Class.Is_Class; function Is_Float_Point (Info : Type_Info) return Boolean renames Float_Class.Is_Class; ------------------------ -- Is_Function_Access -- ------------------------ function Is_Function_Access (Info : Type_Info) return Boolean renames Function_Access_Class.Is_Class; ----------------------- -- Is_General_Access -- ----------------------- function Is_General_Access (Info : Type_Info) return Boolean renames General_Access_Class.Is_Class; ------------------- -- Is_Incomplete -- ------------------- function Is_Incomplete (Info : Type_Info) return Boolean renames Incomplete_Class.Is_Class; ---------------- -- Is_Integer -- ---------------- function Is_Integer (Tipe : Asis.Declaration) return Boolean renames Integer_Class.Is_Class; function Is_Integer (Info : Type_Info) return Boolean renames Integer_Class.Is_Class; ------------------------ -- Is_Modular_Integer -- ------------------------ function Is_Modular_Integer (Tipe : Asis.Declaration) return Boolean renames Modular_Class.Is_Class; function Is_Modular_Integer (Info : Type_Info) return Boolean renames Modular_Class.Is_Class; ----------------- -- Is_Not_Type -- ----------------- function Is_Not_Type (Info : Type_Info) return Boolean is begin return Asis.Elements.Is_Nil (Info.Element); end Is_Not_Type; ---------------- -- Is_Numeric -- ---------------- function Is_Numeric (Info : Type_Info) return Boolean renames Numeric_Class.Is_Class; ---------------------- -- Is_Object_Access -- ---------------------- function Is_Object_Access (Tipe : Asis.Declaration) return Boolean renames Object_Access_Class.Is_Class; function Is_Object_Access (Info : Type_Info) return Boolean renames Object_Access_Class.Is_Class; ----------------------------- -- Is_Ordinary_Fixed_Point -- ----------------------------- function Is_Ordinary_Fixed_Point (Tipe : Asis.Declaration) return Boolean renames Ordinary_Fixed_Class.Is_Class; function Is_Ordinary_Fixed_Point (Info : Type_Info) return Boolean renames Ordinary_Fixed_Class.Is_Class; ------------------------- -- Is_Procedure_Access -- ------------------------- function Is_Procedure_Access (Info : Type_Info) return Boolean renames Procedure_Access_Class.Is_Class; ------------------ -- Is_Protected -- ------------------ function Is_Protected (Tipe : Asis.Declaration) return Boolean renames Protected_Class.Is_Class; function Is_Protected (Info : Type_Info) return Boolean renames Protected_Class.Is_Class; ------------- -- Is_Real -- ------------- function Is_Real (Tipe : Asis.Declaration) return Boolean renames Real_Class.Is_Class; function Is_Real (Info : Type_Info) return Boolean renames Real_Class.Is_Class; --------------- -- Is_Scalar -- --------------- function Is_Scalar (Tipe : Asis.Declaration) return Boolean renames Scalar_Class.Is_Class; function Is_Scalar (Info : Type_Info) return Boolean renames Scalar_Class.Is_Class; ----------------------- -- Is_Signed_Integer -- ----------------------- function Is_Signed_Integer (Tipe : Asis.Declaration) return Boolean renames Signed_Class.Is_Class; function Is_Signed_Integer (Info : Type_Info) return Boolean renames Signed_Class.Is_Class; --------------- -- Is_String -- --------------- function Is_String (Tipe : Asis.Declaration) return Boolean renames String_Class.Is_Class; function Is_String (Info : Type_Info) return Boolean renames String_Class.Is_Class; --------------------- -- Is_String_Array -- --------------------- function Is_String_Array (Def : Asis.Definition) return Boolean is use Asis.Definitions; Comp : constant Asis.Component_Definition := Array_Component_Definition (Def); Ind : constant Asis.Subtype_Indication := Component_Subtype_Indication (Comp); Info : constant Type_Info := Type_From_Indication (Ind); begin return Is_Character (Info); end Is_String_Array; -------------------------- -- Is_Subprogram_Access -- -------------------------- function Is_Subprogram_Access (Tipe : Asis.Declaration) return Boolean renames Subprogram_Access_Class.Is_Class; function Is_Subprogram_Access (Info : Type_Info) return Boolean renames Subprogram_Access_Class.Is_Class; --------------------- -- Is_Subtype_Mark -- --------------------- function Is_Subtype_Mark (Mark : Asis.Expression) return Boolean is Info : constant Type_Info := Type_From_Subtype_Mark (Mark); begin return not Is_Not_Type (Info); end Is_Subtype_Mark; --------------- -- Is_Tagged -- --------------- function Is_Tagged (Tipe : Asis.Declaration) return Boolean renames Tagged_Class.Is_Class; function Is_Tagged (Info : Type_Info) return Boolean renames Tagged_Class.Is_Class; ------------- -- Is_Task -- ------------- function Is_Task (Tipe : Asis.Declaration) return Boolean renames Task_Class.Is_Class; function Is_Task (Info : Type_Info) return Boolean renames Task_Class.Is_Class; ------------------------- -- Is_Type_Declaration -- ------------------------- function Is_Type_Declaration (Decl : Asis.Declaration) return Boolean is Info : constant Type_Info := Type_From_Declaration (Decl); begin return not Is_Not_Type (Info); end Is_Type_Declaration; ------------------ -- Is_Universal -- ------------------ function Is_Universal (Info : Type_Info) return Boolean is begin return Info.Class_Kind = An_Universal_Integer or Info.Class_Kind = An_Universal_Real or Info.Class_Kind = An_Universal_Fixed; end Is_Universal; ------------------------ -- Is_Untagged_Record -- ------------------------ function Is_Untagged_Record (Tipe : Asis.Declaration) return Boolean renames Record_Class.Is_Class; function Is_Untagged_Record (Info : Type_Info) return Boolean renames Record_Class.Is_Class; ------------------------ -- Is_Variable_Access -- ------------------------ function Is_Variable_Access (Info : Type_Info) return Boolean renames Variable_Access_Class.Is_Class; -------------------- -- Set_Class_Wide -- -------------------- procedure Set_Class_Wide (Info : in out Type_Info) is begin Info.Class_Wide := True; end Set_Class_Wide; ------- -- T -- ------- package body T is function Universal_Integer return Type_Info is begin return Type_From_Declaration (Types.Universal_Integer); end; function Universal_Real return Type_Info is begin return Type_From_Declaration (Types.Universal_Real); end Universal_Real; function Universal_Fixed return Type_Info is begin return Type_From_Declaration (Types.Universal_Fixed); end Universal_Fixed; function Root_Integer return Type_Info is begin return Type_From_Declaration (Types.Root_Integer); end Root_Integer; function Root_Real return Type_Info is begin return Type_From_Declaration (Types.Root_Real); end Root_Real; function System_Address return Type_Info is begin return Type_From_Declaration (Types.System_Address); end System_Address; function System_Bit_Order return Type_Info is begin return Type_From_Declaration (Types.System_Bit_Order); end System_Bit_Order; function Integer return Type_Info is begin return Type_From_Declaration (Types.Integer); end Integer; function String return Type_Info is begin return Type_From_Declaration (Types.String); end String; function Wide_String return Type_Info is begin return Type_From_Declaration (Types.Wide_String); end Wide_String; function Boolean return Type_Info is begin return Type_From_Declaration (Types.Boolean); end Boolean; function Exception_Id return Type_Info is begin return Type_From_Declaration (Types.Exception_Id); end Exception_Id; function Task_Id return Type_Info is begin return Type_From_Declaration (Types.Task_Id); end Task_Id; function Root_Storage_Pool return Type_Info is begin return Type_From_Declaration (Types.Root_Storage_Pool); end Root_Storage_Pool; function Tag return Type_Info is begin return Type_From_Declaration (Types.Tag); end Tag; function Natural return Type_Info is begin return Type_From_Declaration (Types.Natural); end Natural; function Duration return Type_Info is begin return Type_From_Declaration (Types.Duration); end Duration; function Wide_Character return Type_Info is begin return Type_From_Declaration (Types.Wide_Character); end Wide_Character; function Character return Type_Info is begin return Type_From_Declaration (Types.Character); end Character; function Root_Stream_Type return Type_Info is begin return Type_From_Declaration (Types.Root_Stream_Type); end Root_Stream_Type; end T; ---------------- -- Type_Class -- ---------------- function Type_Class (Tipe : Asis.Definition) return Class_Kinds is use Asis.Elements; use Asis.Definitions; begin case Definition_Kind (Tipe) is when A_Type_Definition => case Type_Kind (Tipe) is when A_Derived_Type_Definition => declare use Asis.Definitions; Element : Asis.Element; Info : Type_Info; begin Element := Parent_Subtype_Indication (Tipe); Element := Asis.Definitions.Subtype_Mark (Element); Info := Type_From_Subtype_Mark (Element); return Info.Class_Kind; end; when A_Derived_Record_Extension_Definition => return A_Tagged; when An_Enumeration_Type_Definition => if Has_Character_Literal (Tipe) then return A_Character; elsif Is_Equal (Enclosing_Element (Tipe), Types.Boolean) then return A_Boolean; else return An_Other_Enum; end if; when A_Signed_Integer_Type_Definition => return A_Signed_Integer; when A_Modular_Type_Definition => return A_Modular_Integer; when A_Root_Type_Definition => case Root_Type_Kind (Tipe) is when A_Root_Integer_Definition => return A_Signed_Integer; when A_Root_Real_Definition => return A_Float_Point; when A_Universal_Integer_Definition => return An_Universal_Integer; when A_Universal_Real_Definition => return An_Universal_Real; when A_Universal_Fixed_Definition => return An_Universal_Fixed; when A_Universal_Access_Definition => return A_Universal_Access; when Not_A_Root_Type_Definition => raise XASIS_Error; end case; when A_Floating_Point_Definition => return A_Float_Point; when An_Ordinary_Fixed_Point_Definition => return A_Ordinary_Fixed_Point; when A_Decimal_Fixed_Point_Definition => return A_Decimal_Fixed_Point; when An_Unconstrained_Array_Definition => if Index_Subtype_Definitions (Tipe)'Length = 1 and then Is_String_Array (Tipe) then return A_String; else return An_Other_Array; end if; when A_Constrained_Array_Definition => if Discrete_Subtype_Definitions (Tipe)'Length = 1 and then Is_String_Array (Tipe) then return A_String; else return An_Other_Array; end if; when A_Record_Type_Definition => return A_Untagged_Record; when A_Tagged_Record_Type_Definition => return A_Tagged; when An_Access_Type_Definition => case Access_Type_Kind (Tipe) is when A_Pool_Specific_Access_To_Variable | An_Access_To_Variable => return A_Variable_Access; when An_Access_To_Constant => return A_Constant_Access; when An_Access_To_Procedure | An_Access_To_Protected_Procedure => return A_Procedure_Access; when An_Access_To_Function | An_Access_To_Protected_Function => return A_Function_Access; when Not_An_Access_Type_Definition => raise XASIS_Error; end case; when others => raise XASIS_Error; end case; when A_Task_Definition => return A_Task; when A_Protected_Definition => return A_Protected; when others => raise XASIS_Error; end case; end Type_Class; --------------------------- -- Type_From_Declaration -- --------------------------- function Type_From_Declaration (Tipe : Asis.Declaration) return Type_Info is use Asis.Elements; use Asis.Declarations; use Asis.Definitions; Decl : Asis.Declaration := Base_Type (Tipe); Def : Asis.Definition := Type_Declaration_View (Decl); Result : Type_Info; begin case Declaration_Kind (Decl) is when An_Ordinary_Type_Declaration | A_Task_Type_Declaration | A_Protected_Type_Declaration => Result.Element := Base_Type (Tipe); Result.Class_Kind := Type_Class (Def); when A_Subtype_Declaration => raise XASIS_Error; when An_Incomplete_Type_Declaration => Result.Element := Tipe; Result.Class_Kind := An_Incomplete; when A_Private_Type_Declaration => Result.Element := Tipe; Result.Class_Kind := A_Private; when others => Result.Element := Asis.Nil_Element; end case; return Result; end Type_From_Declaration; ---------------------------- -- Type_From_Discrete_Def -- ---------------------------- function Type_From_Discrete_Def (Def : Asis.Definition) return Type_Info is use XASIS.Static; use Asis.Elements; use Asis.Definitions; use Asis.Expressions; Result : Type_Info; Expr : Asis.Expression; Index : Asis.List_Index; begin if Definition_Kind (Def) /= A_Discrete_Subtype_Definition then raise XASIS_Error; end if; case Discrete_Range_Kind (Def) is when A_Discrete_Subtype_Indication => Result := Type_From_Indication (Def); when A_Discrete_Range_Attribute_Reference => Expr := Range_Attribute (Def); Result := Type_From_Subtype_Mark (Prefix (Expr)); if Is_Not_Type (Result) then Result := Type_Of_Expression (Prefix (Expr)); if not Is_Not_Type (Result) then Index := +Attribute_Designator_Expression (Expr); Result := Get_Array_Index_Type (Result, Index); end if; end if; when A_Discrete_Simple_Expression_Range => Result := Type_Of_Range (Lower_Bound (Def), Upper_Bound (Def)); when Not_A_Discrete_Range => raise XASIS_Error; end case; return Result; end Type_From_Discrete_Def; -------------------------- -- Type_From_Indication -- -------------------------- function Type_From_Indication (Ind : Asis.Definition) return Type_Info is use Asis.Elements; use Asis.Expressions; use Asis.Definitions; use Asis.Declarations; Result : Type_Info; Element : Asis.Element; begin case Definition_Kind (Ind) is when A_Discrete_Subtype_Definition => Result := Type_From_Discrete_Def (Ind); when A_Subtype_Indication => Element := Asis.Definitions.Subtype_Mark (Ind); -- FIXME: delete the loop latter Skip_Denormalized_Constraints : while Expression_Kind (Element) = A_Function_Call loop Element := Prefix (Element); end loop Skip_Denormalized_Constraints; Result := Type_From_Subtype_Mark (Element); when A_Type_Definition => Result.Element := Ind; Result.Class_Kind := Type_Class (Ind); Result.Definition := True; when others => raise XASIS_Error; end case; return Result; end Type_From_Indication; ---------------------------- -- Type_From_Subtype_Mark -- ---------------------------- function Type_From_Subtype_Mark (Mark : Asis.Expression) return Type_Info is use Asis.Elements; use Asis.Expressions; Result : Type_Info; Identifier : Asis.Expression := Mark; Kind : Asis.Expression_Kinds; Declaration : Asis.Declaration; Class_Wide : Boolean := False; begin Result.Element := Asis.Nil_Element; Kind := Expression_Kind (Identifier); while Kind = An_Attribute_Reference loop if Attribute_Kind (Identifier) = A_Base_Attribute then null; elsif Attribute_Kind (Identifier) = A_Class_Attribute then Class_Wide := True; else return Result; end if; Identifier := Prefix (Identifier); Kind := Expression_Kind (Identifier); end loop; if Kind = A_Selected_Component then Identifier := Selector (Identifier); Kind := Expression_Kind (Identifier); end if; if Kind /= An_Identifier then return Result; end if; Declaration := Corresponding_Name_Declaration (Identifier); Result := Type_From_Declaration (Declaration); Result.Class_Wide := Class_Wide; return Result; end Type_From_Subtype_Mark; ------------------------- -- Type_Of_Declaration -- ------------------------- function Type_Of_Declaration (Decl : Asis.Declaration) return Type_Info is use Asis.Elements; use Asis.Definitions; use Asis.Declarations; Result : Type_Info; Element : Asis.Element; begin case Declaration_Kind (Decl) is when A_Component_Declaration => Element := Object_Declaration_View (Decl); Element := Component_Subtype_Indication (Element); Element := Asis.Definitions.Subtype_Mark (Element); Result := Type_From_Subtype_Mark (Element); when A_Variable_Declaration | A_Constant_Declaration | A_Deferred_Constant_Declaration | A_Single_Task_Declaration | A_Single_Protected_Declaration => Element := Object_Declaration_View (Decl); if Definition_Kind (Element) = A_Subtype_Indication then Result := Type_From_Indication (Element); else Result.Element := Element; Result.Definition := True; Result.Class_Kind := Type_Class (Element); end if; when An_Integer_Number_Declaration => Result.Element := Types.Universal_Integer; Result.Class_Kind := An_Universal_Integer; when A_Real_Number_Declaration => Result.Element := Types.Universal_Real; Result.Class_Kind := An_Universal_Real; when An_Enumeration_Literal_Specification => Element := Enclosing_Element (Decl); Result.Class_Kind := Type_Class (Element); Result.Element := Enclosing_Element (Element); when A_Loop_Parameter_Specification => Element := Specification_Subtype_Definition (Decl); Result := Type_From_Discrete_Def (Element); if Is_Universal (Result) then Result := T.Integer; end if; when A_Discriminant_Specification | A_Parameter_Specification | An_Object_Renaming_Declaration | A_Formal_Object_Declaration => Element := Declaration_Subtype_Mark (Decl); Result := Type_From_Subtype_Mark (Element); Result.Is_Access := Trait_Kind (Decl) = An_Access_Definition_Trait; when others => Result.Element := Nil_Element; end case; return Result; end Type_Of_Declaration; ----------------------- -- Type_Of_Expression-- ----------------------- function Type_Of_Expression (Expr : Asis.Expression) return Type_Info is use Asis.Elements; use Asis.Expressions; Decl : Asis.Declaration := Corresponding_Expression_Type (Expr); Result : Type_Info; begin if Is_Nil (Decl) then case Expression_Kind (Expr) is when An_Identifier => Decl := Corresponding_Name_Declaration (Expr); Result := Type_Of_Declaration (Decl); when An_Integer_Literal => Result := Type_From_Declaration (Types.Universal_Integer); when others => raise XASIS_Error; end case; else Result := Type_From_Declaration (Decl); end if; return Result; end Type_Of_Expression; ------------------- -- Type_Of_Range -- ------------------- function Type_Of_Range (Lower, Upper : Asis.Expression) return Type_Info is Left : constant Type_Info := Type_Of_Expression (Lower); Right : constant Type_Info := Type_Of_Expression (Upper); begin return Type_Of_Range (Left, Right); end Type_Of_Range; ------------------- -- Type_Of_Range -- ------------------- function Type_Of_Range (Lower, Upper : Type_Info) return Type_Info is begin if not Is_Universal (Upper) then if Is_Expected_Type (Lower, Upper) then return Upper; end if; elsif Is_Expected_Type (Upper, Lower) then return Lower; end if; return Not_A_Type; end Type_Of_Range; end XASIS.Classes; ------------------------------------------------------------------------------ -- Copyright (c) 2006-2013, Maxim Reznik -- 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 Maxim Reznik, 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 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. ------------------------------------------------------------------------------
31.08754
79
0.597077
4bc22efffd9673e5c15cb8c9a210a91ae089092d
2,926
ads
Ada
bb-runtimes/runtimes/zfp-stm32f3x4/gnat/s-fatllf.ads
JCGobbi/Nucleo-STM32F334R8
2a0b1b4b2664c92773703ac5e95dcb71979d051c
[ "BSD-3-Clause" ]
null
null
null
bb-runtimes/runtimes/zfp-stm32f3x4/gnat/s-fatllf.ads
JCGobbi/Nucleo-STM32F334R8
2a0b1b4b2664c92773703ac5e95dcb71979d051c
[ "BSD-3-Clause" ]
null
null
null
bb-runtimes/runtimes/zfp-stm32f3x4/gnat/s-fatllf.ads
JCGobbi/Nucleo-STM32F334R8
2a0b1b4b2664c92773703ac5e95dcb71979d051c
[ "BSD-3-Clause" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- S Y S T E M . F A T _ L L F -- -- -- -- S p e c -- -- -- -- Copyright (C) 1992-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. -- -- -- ------------------------------------------------------------------------------ -- This package contains an instantiation of the floating-point attribute -- runtime routines for the type Long_Long_Float. with System.Fat_Gen; package System.Fat_LLF is pragma Pure; -- Note the only entity from this package that is accessed by Rtsfind -- is the name of the package instantiation. Entities within this package -- (i.e. the individual floating-point attribute routines) are accessed -- by name using selected notation. package Attr_Long_Long_Float is new System.Fat_Gen (Long_Long_Float); end System.Fat_LLF;
60.958333
78
0.383459
1e456a35fa6c60cf40efb8e5a6c28aec2b721f1a
209,852
adb
Ada
hls_video_processor/solution1/.autopilot/db/AXIvideo2Mat.bind.adb
bopopescu/hdmi-led
73b04e0b07a51840ffc014c9f7b1575493be80b4
[ "MIT" ]
1
2021-04-27T01:33:32.000Z
2021-04-27T01:33:32.000Z
hls_video_processor/solution1/.autopilot/db/AXIvideo2Mat.bind.adb
bopopescu/hdmi-led
73b04e0b07a51840ffc014c9f7b1575493be80b4
[ "MIT" ]
null
null
null
hls_video_processor/solution1/.autopilot/db/AXIvideo2Mat.bind.adb
bopopescu/hdmi-led
73b04e0b07a51840ffc014c9f7b1575493be80b4
[ "MIT" ]
2
2020-07-09T12:12:30.000Z
2021-05-23T22:00:42.000Z
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <!DOCTYPE boost_serialization> <boost_serialization signature="serialization::archive" version="15"> <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>AXIvideo2Mat</name> <ret_bitwidth>0</ret_bitwidth> <ports class_id="2" tracking_level="0" version="0"> <count>13</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>AXI_video_strm_V_data_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>AXI_video_strm.V.data.V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>24</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> <item class_id_reference="3" object_id="_2"> <Value> <Obj> <type>1</type> <id>2</id> <name>AXI_video_strm_V_keep_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>AXI_video_strm.V.keep.V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>3</bitwidth> </Value> <direction>0</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>AXI_video_strm_V_strb_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>AXI_video_strm.V.strb.V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>3</bitwidth> </Value> <direction>0</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="_4"> <Value> <Obj> <type>1</type> <id>4</id> <name>AXI_video_strm_V_user_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>AXI_video_strm.V.user.V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>1</bitwidth> </Value> <direction>0</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="_5"> <Value> <Obj> <type>1</type> <id>5</id> <name>AXI_video_strm_V_last_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>AXI_video_strm.V.last.V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>1</bitwidth> </Value> <direction>0</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="_6"> <Value> <Obj> <type>1</type> <id>6</id> <name>AXI_video_strm_V_id_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>AXI_video_strm.V.id.V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>1</bitwidth> </Value> <direction>0</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="_7"> <Value> <Obj> <type>1</type> <id>7</id> <name>AXI_video_strm_V_dest_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>AXI_video_strm.V.dest.V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>1</bitwidth> </Value> <direction>0</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="_8"> <Value> <Obj> <type>1</type> <id>8</id> <name>img_rows_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>img.rows.V</originalName> <rtlName></rtlName> <coreName>FIFO</coreName> </Obj> <bitwidth>12</bitwidth> </Value> <direction>0</direction> <if_type>3</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="_9"> <Value> <Obj> <type>1</type> <id>9</id> <name>img_cols_V</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>FIFO</coreName> </Obj> <bitwidth>12</bitwidth> </Value> <direction>0</direction> <if_type>3</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="_10"> <Value> <Obj> <type>1</type> <id>10</id> <name>img_data_stream_0_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>img.data_stream[0].V</originalName> <rtlName></rtlName> <coreName>FIFO</coreName> </Obj> <bitwidth>8</bitwidth> </Value> <direction>1</direction> <if_type>3</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_11"> <Value> <Obj> <type>1</type> <id>11</id> <name>img_data_stream_1_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>img.data_stream[1].V</originalName> <rtlName></rtlName> <coreName>FIFO</coreName> </Obj> <bitwidth>8</bitwidth> </Value> <direction>1</direction> <if_type>3</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_12"> <Value> <Obj> <type>1</type> <id>12</id> <name>img_data_stream_2_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>img.data_stream[2].V</originalName> <rtlName></rtlName> <coreName>FIFO</coreName> </Obj> <bitwidth>8</bitwidth> </Value> <direction>1</direction> <if_type>3</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_13"> <Value> <Obj> <type>1</type> <id>13</id> <name>img_cols_V_out</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>FIFO</coreName> </Obj> <bitwidth>12</bitwidth> </Value> <direction>1</direction> <if_type>3</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> </ports> <nodes class_id="8" tracking_level="0" version="0"> <count>56</count> <item_version>0</item_version> <item class_id="9" tracking_level="1" version="0" object_id="_14"> <Value> <Obj> <type>0</type> <id>26</id> <name>img_cols_V_read</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>12</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>121</item> <item>122</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>2.88</m_delay> <m_topoIndex>1</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_15"> <Value> <Obj> <type>0</type> <id>28</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>124</item> <item>125</item> <item>126</item> </oprand_edges> <opcode>write</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>2.88</m_delay> <m_topoIndex>2</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_16"> <Value> <Obj> <type>0</type> <id>30</id> <name>img_rows_V_read</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>12</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>127</item> <item>128</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>2.88</m_delay> <m_topoIndex>3</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_17"> <Value> <Obj> <type>0</type> <id>31</id> <name>rows_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>rows.V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>129</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>4</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_18"> <Value> <Obj> <type>0</type> <id>32</id> <name>cols_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>cols.V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>130</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>5</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_19"> <Value> <Obj> <type>0</type> <id>33</id> <name></name> <fileName>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_video_io.h</fileName> <fileDirectory>C:\Users\byronxu\Documents\6.S193</fileDirectory> <lineNumber>63</lineNumber> <contextFuncName>AXIvideo2Mat&amp;lt;24, 1080, 1920, 4096&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item class_id="11" tracking_level="0" version="0"> <first>C:\Users\byronxu\Documents\6.S193</first> <second class_id="12" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="13" tracking_level="0" version="0"> <first class_id="14" tracking_level="0" version="0"> <first>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_video_io.h</first> <second>AXIvideo2Mat&amp;lt;24, 1080, 1920, 4096&amp;gt;</second> </first> <second>63</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>131</item> </oprand_edges> <opcode>br</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>6</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_20"> <Value> <Obj> <type>0</type> <id>39</id> <name>empty</name> <fileName>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_video_io.h</fileName> <fileDirectory>C:\Users\byronxu\Documents\6.S193</fileDirectory> <lineNumber>68</lineNumber> <contextFuncName>AXIvideo2Mat&amp;lt;24, 1080, 1920, 4096&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\byronxu\Documents\6.S193</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_video_io.h</first> <second>AXIvideo2Mat&amp;lt;24, 1080, 1920, 4096&amp;gt;</second> </first> <second>68</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>34</bitwidth> </Value> <oprand_edges> <count>8</count> <item_version>0</item_version> <item>133</item> <item>134</item> <item>135</item> <item>136</item> <item>137</item> <item>138</item> <item>139</item> <item>140</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>7</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_21"> <Value> <Obj> <type>0</type> <id>40</id> <name>tmp_data_V</name> <fileName>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_video_io.h</fileName> <fileDirectory>C:\Users\byronxu\Documents\6.S193</fileDirectory> <lineNumber>68</lineNumber> <contextFuncName>AXIvideo2Mat&amp;lt;24, 1080, 1920, 4096&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\byronxu\Documents\6.S193</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_video_io.h</first> <second>AXIvideo2Mat&amp;lt;24, 1080, 1920, 4096&amp;gt;</second> </first> <second>68</second> </item> </second> </item> </inlineStackInfo> <originalName>tmp.data.V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>24</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>141</item> </oprand_edges> <opcode>extractvalue</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>8</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_22"> <Value> <Obj> <type>0</type> <id>41</id> <name>tmp_user_V</name> <fileName>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_video_io.h</fileName> <fileDirectory>C:\Users\byronxu\Documents\6.S193</fileDirectory> <lineNumber>68</lineNumber> <contextFuncName>AXIvideo2Mat&amp;lt;24, 1080, 1920, 4096&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\byronxu\Documents\6.S193</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_video_io.h</first> <second>AXIvideo2Mat&amp;lt;24, 1080, 1920, 4096&amp;gt;</second> </first> <second>68</second> </item> </second> </item> </inlineStackInfo> <originalName>tmp.user.V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>1</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>142</item> </oprand_edges> <opcode>extractvalue</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="_23"> <Value> <Obj> <type>0</type> <id>42</id> <name>tmp_last_V</name> <fileName>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_video_io.h</fileName> <fileDirectory>C:\Users\byronxu\Documents\6.S193</fileDirectory> <lineNumber>68</lineNumber> <contextFuncName>AXIvideo2Mat&amp;lt;24, 1080, 1920, 4096&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\byronxu\Documents\6.S193</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_video_io.h</first> <second>AXIvideo2Mat&amp;lt;24, 1080, 1920, 4096&amp;gt;</second> </first> <second>68</second> </item> </second> </item> </inlineStackInfo> <originalName>tmp.last.V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>1</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>143</item> </oprand_edges> <opcode>extractvalue</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>10</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_24"> <Value> <Obj> <type>0</type> <id>44</id> <name></name> <fileName>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_video_io.h</fileName> <fileDirectory>C:\Users\byronxu\Documents\6.S193</fileDirectory> <lineNumber>65</lineNumber> <contextFuncName>AXIvideo2Mat&amp;lt;24, 1080, 1920, 4096&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\byronxu\Documents\6.S193</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_video_io.h</first> <second>AXIvideo2Mat&amp;lt;24, 1080, 1920, 4096&amp;gt;</second> </first> <second>65</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>144</item> <item>145</item> <item>146</item> </oprand_edges> <opcode>br</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="_25"> <Value> <Obj> <type>0</type> <id>46</id> <name>sof_1_i</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>1</count> <item_version>0</item_version> <item>148</item> </oprand_edges> <opcode>alloca</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>12</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_26"> <Value> <Obj> <type>0</type> <id>47</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>2</count> <item_version>0</item_version> <item>150</item> <item>151</item> </oprand_edges> <opcode>store</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.76</m_delay> <m_topoIndex>13</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_27"> <Value> <Obj> <type>0</type> <id>48</id> <name></name> <fileName>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_video_io.h</fileName> <fileDirectory>C:\Users\byronxu\Documents\6.S193</fileDirectory> <lineNumber>71</lineNumber> <contextFuncName>AXIvideo2Mat&amp;lt;24, 1080, 1920, 4096&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\byronxu\Documents\6.S193</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_video_io.h</first> <second>AXIvideo2Mat&amp;lt;24, 1080, 1920, 4096&amp;gt;</second> </first> <second>71</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>152</item> </oprand_edges> <opcode>br</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.76</m_delay> <m_topoIndex>14</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_28"> <Value> <Obj> <type>0</type> <id>50</id> <name>axi_last_V1_i</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>tmp.last.V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>1</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>153</item> <item>154</item> <item>155</item> <item>156</item> </oprand_edges> <opcode>phi</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="_29"> <Value> <Obj> <type>0</type> <id>51</id> <name>axi_data_V1_i</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>tmp.data.V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>24</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>157</item> <item>158</item> <item>159</item> <item>160</item> </oprand_edges> <opcode>phi</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>16</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_30"> <Value> <Obj> <type>0</type> <id>52</id> <name>t_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>i.V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>161</item> <item>162</item> <item>164</item> <item>165</item> </oprand_edges> <opcode>phi</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>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_31"> <Value> <Obj> <type>0</type> <id>53</id> <name>exitcond3_i</name> <fileName>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_video_io.h</fileName> <fileDirectory>C:\Users\byronxu\Documents\6.S193</fileDirectory> <lineNumber>71</lineNumber> <contextFuncName>AXIvideo2Mat&amp;lt;24, 1080, 1920, 4096&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\byronxu\Documents\6.S193</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_video_io.h</first> <second>AXIvideo2Mat&amp;lt;24, 1080, 1920, 4096&amp;gt;</second> </first> <second>71</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>166</item> <item>167</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.47</m_delay> <m_topoIndex>18</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_32"> <Value> <Obj> <type>0</type> <id>55</id> <name>i_V</name> <fileName>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_video_io.h</fileName> <fileDirectory>C:\Users\byronxu\Documents\6.S193</fileDirectory> <lineNumber>71</lineNumber> <contextFuncName>AXIvideo2Mat&amp;lt;24, 1080, 1920, 4096&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\byronxu\Documents\6.S193</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_video_io.h</first> <second>AXIvideo2Mat&amp;lt;24, 1080, 1920, 4096&amp;gt;</second> </first> <second>71</second> </item> </second> </item> </inlineStackInfo> <originalName>i.V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>168</item> <item>169</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.55</m_delay> <m_topoIndex>19</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_33"> <Value> <Obj> <type>0</type> <id>56</id> <name></name> <fileName>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_video_io.h</fileName> <fileDirectory>C:\Users\byronxu\Documents\6.S193</fileDirectory> <lineNumber>71</lineNumber> <contextFuncName>AXIvideo2Mat&amp;lt;24, 1080, 1920, 4096&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\byronxu\Documents\6.S193</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_video_io.h</first> <second>AXIvideo2Mat&amp;lt;24, 1080, 1920, 4096&amp;gt;</second> </first> <second>71</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>170</item> <item>171</item> <item>172</item> </oprand_edges> <opcode>br</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>20</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_34"> <Value> <Obj> <type>0</type> <id>60</id> <name></name> <fileName>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_video_io.h</fileName> <fileDirectory>C:\Users\byronxu\Documents\6.S193</fileDirectory> <lineNumber>73</lineNumber> <contextFuncName>AXIvideo2Mat&amp;lt;24, 1080, 1920, 4096&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\byronxu\Documents\6.S193</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_video_io.h</first> <second>AXIvideo2Mat&amp;lt;24, 1080, 1920, 4096&amp;gt;</second> </first> <second>73</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>173</item> </oprand_edges> <opcode>br</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.76</m_delay> <m_topoIndex>21</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_35"> <Value> <Obj> <type>0</type> <id>62</id> <name>eol</name> <fileName>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_video_io.h</fileName> <fileDirectory>C:\Users\byronxu\Documents\6.S193</fileDirectory> <lineNumber>100</lineNumber> <contextFuncName>AXIvideo2Mat&amp;lt;24, 1080, 1920, 4096&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\byronxu\Documents\6.S193</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_video_io.h</first> <second>AXIvideo2Mat&amp;lt;24, 1080, 1920, 4096&amp;gt;</second> </first> <second>100</second> </item> </second> </item> </inlineStackInfo> <originalName>eol</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>1</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>174</item> <item>175</item> <item>176</item> <item>177</item> </oprand_edges> <opcode>phi</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>23</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_36"> <Value> <Obj> <type>0</type> <id>63</id> <name>axi_data_V_1_i</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>__Val2__</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>24</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>178</item> <item>179</item> <item>180</item> <item>181</item> </oprand_edges> <opcode>phi</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>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_37"> <Value> <Obj> <type>0</type> <id>64</id> <name>t_V_4</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>j.V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>182</item> <item>183</item> <item>184</item> <item>185</item> </oprand_edges> <opcode>phi</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>25</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_38"> <Value> <Obj> <type>0</type> <id>65</id> <name>eol_i</name> <fileName>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_video_io.h</fileName> <fileDirectory>C:\Users\byronxu\Documents\6.S193</fileDirectory> <lineNumber>81</lineNumber> <contextFuncName>AXIvideo2Mat&amp;lt;24, 1080, 1920, 4096&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\byronxu\Documents\6.S193</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_video_io.h</first> <second>AXIvideo2Mat&amp;lt;24, 1080, 1920, 4096&amp;gt;</second> </first> <second>81</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>1</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>187</item> <item>188</item> <item>189</item> <item>190</item> </oprand_edges> <opcode>phi</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>26</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_39"> <Value> <Obj> <type>0</type> <id>66</id> <name>exitcond_i</name> <fileName>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_video_io.h</fileName> <fileDirectory>C:\Users\byronxu\Documents\6.S193</fileDirectory> <lineNumber>73</lineNumber> <contextFuncName>AXIvideo2Mat&amp;lt;24, 1080, 1920, 4096&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\byronxu\Documents\6.S193</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_video_io.h</first> <second>AXIvideo2Mat&amp;lt;24, 1080, 1920, 4096&amp;gt;</second> </first> <second>73</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>191</item> <item>192</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.47</m_delay> <m_topoIndex>27</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_40"> <Value> <Obj> <type>0</type> <id>68</id> <name>j_V</name> <fileName>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_video_io.h</fileName> <fileDirectory>C:\Users\byronxu\Documents\6.S193</fileDirectory> <lineNumber>73</lineNumber> <contextFuncName>AXIvideo2Mat&amp;lt;24, 1080, 1920, 4096&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\byronxu\Documents\6.S193</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_video_io.h</first> <second>AXIvideo2Mat&amp;lt;24, 1080, 1920, 4096&amp;gt;</second> </first> <second>73</second> </item> </second> </item> </inlineStackInfo> <originalName>j.V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>193</item> <item>194</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.55</m_delay> <m_topoIndex>28</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_41"> <Value> <Obj> <type>0</type> <id>69</id> <name></name> <fileName>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_video_io.h</fileName> <fileDirectory>C:\Users\byronxu\Documents\6.S193</fileDirectory> <lineNumber>73</lineNumber> <contextFuncName>AXIvideo2Mat&amp;lt;24, 1080, 1920, 4096&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\byronxu\Documents\6.S193</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_video_io.h</first> <second>AXIvideo2Mat&amp;lt;24, 1080, 1920, 4096&amp;gt;</second> </first> <second>73</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>195</item> <item>196</item> <item>197</item> </oprand_edges> <opcode>br</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="_42"> <Value> <Obj> <type>0</type> <id>71</id> <name>sof_1_i_load</name> <fileName>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_video_io.h</fileName> <fileDirectory>C:\Users\byronxu\Documents\6.S193</fileDirectory> <lineNumber>76</lineNumber> <contextFuncName>AXIvideo2Mat&amp;lt;24, 1080, 1920, 4096&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\byronxu\Documents\6.S193</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_video_io.h</first> <second>AXIvideo2Mat&amp;lt;24, 1080, 1920, 4096&amp;gt;</second> </first> <second>76</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>199</item> <item>677</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>0.00</m_delay> <m_topoIndex>30</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_43"> <Value> <Obj> <type>0</type> <id>75</id> <name>brmerge_i</name> <fileName>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_video_io.h</fileName> <fileDirectory>C:\Users\byronxu\Documents\6.S193</fileDirectory> <lineNumber>76</lineNumber> <contextFuncName>AXIvideo2Mat&amp;lt;24, 1080, 1920, 4096&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\byronxu\Documents\6.S193</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_video_io.h</first> <second>AXIvideo2Mat&amp;lt;24, 1080, 1920, 4096&amp;gt;</second> </first> <second>76</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>200</item> <item>201</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.97</m_delay> <m_topoIndex>31</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_44"> <Value> <Obj> <type>0</type> <id>76</id> <name></name> <fileName>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_video_io.h</fileName> <fileDirectory>C:\Users\byronxu\Documents\6.S193</fileDirectory> <lineNumber>76</lineNumber> <contextFuncName>AXIvideo2Mat&amp;lt;24, 1080, 1920, 4096&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\byronxu\Documents\6.S193</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_video_io.h</first> <second>AXIvideo2Mat&amp;lt;24, 1080, 1920, 4096&amp;gt;</second> </first> <second>76</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>202</item> <item>203</item> <item>204</item> </oprand_edges> <opcode>br</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.76</m_delay> <m_topoIndex>32</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_45"> <Value> <Obj> <type>0</type> <id>78</id> <name>empty_70</name> <fileName>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_video_io.h</fileName> <fileDirectory>C:\Users\byronxu\Documents\6.S193</fileDirectory> <lineNumber>81</lineNumber> <contextFuncName>AXIvideo2Mat&amp;lt;24, 1080, 1920, 4096&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\byronxu\Documents\6.S193</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_video_io.h</first> <second>AXIvideo2Mat&amp;lt;24, 1080, 1920, 4096&amp;gt;</second> </first> <second>81</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>34</bitwidth> </Value> <oprand_edges> <count>9</count> <item_version>0</item_version> <item>205</item> <item>206</item> <item>207</item> <item>208</item> <item>209</item> <item>210</item> <item>211</item> <item>212</item> <item>675</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>33</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_46"> <Value> <Obj> <type>0</type> <id>79</id> <name>tmp_data_V_1</name> <fileName>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_video_io.h</fileName> <fileDirectory>C:\Users\byronxu\Documents\6.S193</fileDirectory> <lineNumber>81</lineNumber> <contextFuncName>AXIvideo2Mat&amp;lt;24, 1080, 1920, 4096&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\byronxu\Documents\6.S193</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_video_io.h</first> <second>AXIvideo2Mat&amp;lt;24, 1080, 1920, 4096&amp;gt;</second> </first> <second>81</second> </item> </second> </item> </inlineStackInfo> <originalName>tmp.data.V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>24</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>213</item> </oprand_edges> <opcode>extractvalue</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="_47"> <Value> <Obj> <type>0</type> <id>80</id> <name>tmp_last_V_1</name> <fileName>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_video_io.h</fileName> <fileDirectory>C:\Users\byronxu\Documents\6.S193</fileDirectory> <lineNumber>81</lineNumber> <contextFuncName>AXIvideo2Mat&amp;lt;24, 1080, 1920, 4096&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\byronxu\Documents\6.S193</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_video_io.h</first> <second>AXIvideo2Mat&amp;lt;24, 1080, 1920, 4096&amp;gt;</second> </first> <second>81</second> </item> </second> </item> </inlineStackInfo> <originalName>tmp.last.V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>1</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>214</item> </oprand_edges> <opcode>extractvalue</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>35</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_48"> <Value> <Obj> <type>0</type> <id>81</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>1</count> <item_version>0</item_version> <item>215</item> </oprand_edges> <opcode>br</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.76</m_delay> <m_topoIndex>36</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_49"> <Value> <Obj> <type>0</type> <id>83</id> <name>axi_last_V_2_i</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>axi.last.V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>1</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>216</item> <item>217</item> <item>218</item> <item>219</item> </oprand_edges> <opcode>phi</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>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_50"> <Value> <Obj> <type>0</type> <id>84</id> <name>p_Val2_s</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>axi.data.V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>24</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>220</item> <item>221</item> <item>222</item> <item>223</item> </oprand_edges> <opcode>phi</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>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_51"> <Value> <Obj> <type>0</type> <id>85</id> <name>tmp</name> <fileName>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_axi_io.h</fileName> <fileDirectory>C:\Users\byronxu\Documents\6.S193</fileDirectory> <lineNumber>49</lineNumber> <contextFuncName>AXIGetBitFields&amp;lt;24, unsigned char&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\byronxu\Documents\6.S193</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_axi_io.h</first> <second>AXIGetBitFields&amp;lt;24, unsigned char&amp;gt;</second> </first> <second>49</second> </item> <item> <first> <first>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_video_io.h</first> <second>AXIvideo2Mat&amp;lt;24, 1080, 1920, 4096&amp;gt;</second> </first> <second>92</second> </item> </second> </item> </inlineStackInfo> <originalName>tmp</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>224</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>39</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_52"> <Value> <Obj> <type>0</type> <id>86</id> <name>tmp_20</name> <fileName>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_axi_io.h</fileName> <fileDirectory>C:\Users\byronxu\Documents\6.S193</fileDirectory> <lineNumber>49</lineNumber> <contextFuncName>AXIGetBitFields&amp;lt;24, unsigned char&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\byronxu\Documents\6.S193</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_axi_io.h</first> <second>AXIGetBitFields&amp;lt;24, unsigned char&amp;gt;</second> </first> <second>49</second> </item> <item> <first> <first>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_video_io.h</first> <second>AXIvideo2Mat&amp;lt;24, 1080, 1920, 4096&amp;gt;</second> </first> <second>92</second> </item> </second> </item> </inlineStackInfo> <originalName>tmp</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>226</item> <item>227</item> <item>229</item> <item>231</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>40</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_53"> <Value> <Obj> <type>0</type> <id>87</id> <name>tmp_21</name> <fileName>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_axi_io.h</fileName> <fileDirectory>C:\Users\byronxu\Documents\6.S193</fileDirectory> <lineNumber>49</lineNumber> <contextFuncName>AXIGetBitFields&amp;lt;24, unsigned char&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\byronxu\Documents\6.S193</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_axi_io.h</first> <second>AXIGetBitFields&amp;lt;24, unsigned char&amp;gt;</second> </first> <second>49</second> </item> <item> <first> <first>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_video_io.h</first> <second>AXIvideo2Mat&amp;lt;24, 1080, 1920, 4096&amp;gt;</second> </first> <second>92</second> </item> </second> </item> </inlineStackInfo> <originalName>tmp</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>232</item> <item>233</item> <item>235</item> <item>237</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>41</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_54"> <Value> <Obj> <type>0</type> <id>90</id> <name></name> <fileName>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_video_core.h</fileName> <fileDirectory>C:\Users\byronxu\Documents\6.S193</fileDirectory> <lineNumber>703</lineNumber> <contextFuncName>write</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\byronxu\Documents\6.S193</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_video_core.h</first> <second>operator&amp;lt;&amp;lt;</second> </first> <second>717</second> </item> <item> <first> <first>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_video_core.h</first> <second>write</second> </first> <second>703</second> </item> <item> <first> <first>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_video_io.h</first> <second>AXIvideo2Mat&amp;lt;24, 1080, 1920, 4096&amp;gt;</second> </first> <second>94</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>239</item> <item>240</item> <item>241</item> </oprand_edges> <opcode>write</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>2.88</m_delay> <m_topoIndex>43</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_55"> <Value> <Obj> <type>0</type> <id>91</id> <name></name> <fileName>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_video_core.h</fileName> <fileDirectory>C:\Users\byronxu\Documents\6.S193</fileDirectory> <lineNumber>703</lineNumber> <contextFuncName>write</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\byronxu\Documents\6.S193</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_video_core.h</first> <second>operator&amp;lt;&amp;lt;</second> </first> <second>717</second> </item> <item> <first> <first>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_video_core.h</first> <second>write</second> </first> <second>703</second> </item> <item> <first> <first>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_video_io.h</first> <second>AXIvideo2Mat&amp;lt;24, 1080, 1920, 4096&amp;gt;</second> </first> <second>94</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>242</item> <item>243</item> <item>244</item> </oprand_edges> <opcode>write</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>2.88</m_delay> <m_topoIndex>44</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_56"> <Value> <Obj> <type>0</type> <id>92</id> <name></name> <fileName>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_video_core.h</fileName> <fileDirectory>C:\Users\byronxu\Documents\6.S193</fileDirectory> <lineNumber>703</lineNumber> <contextFuncName>write</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\byronxu\Documents\6.S193</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_video_core.h</first> <second>operator&amp;lt;&amp;lt;</second> </first> <second>717</second> </item> <item> <first> <first>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_video_core.h</first> <second>write</second> </first> <second>703</second> </item> <item> <first> <first>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_video_io.h</first> <second>AXIvideo2Mat&amp;lt;24, 1080, 1920, 4096&amp;gt;</second> </first> <second>94</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>245</item> <item>246</item> <item>247</item> </oprand_edges> <opcode>write</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>2.88</m_delay> <m_topoIndex>45</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_57"> <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>4</count> <item_version>0</item_version> <item>248</item> <item>249</item> <item>678</item> <item>679</item> </oprand_edges> <opcode>store</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.76</m_delay> <m_topoIndex>42</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_58"> <Value> <Obj> <type>0</type> <id>96</id> <name></name> <fileName>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_video_io.h</fileName> <fileDirectory>C:\Users\byronxu\Documents\6.S193</fileDirectory> <lineNumber>73</lineNumber> <contextFuncName>AXIvideo2Mat&amp;lt;24, 1080, 1920, 4096&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\byronxu\Documents\6.S193</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_video_io.h</first> <second>AXIvideo2Mat&amp;lt;24, 1080, 1920, 4096&amp;gt;</second> </first> <second>73</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>250</item> </oprand_edges> <opcode>br</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="_59"> <Value> <Obj> <type>0</type> <id>98</id> <name></name> <fileName>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_video_io.h</fileName> <fileDirectory>C:\Users\byronxu\Documents\6.S193</fileDirectory> <lineNumber>96</lineNumber> <contextFuncName>AXIvideo2Mat&amp;lt;24, 1080, 1920, 4096&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\byronxu\Documents\6.S193</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_video_io.h</first> <second>AXIvideo2Mat&amp;lt;24, 1080, 1920, 4096&amp;gt;</second> </first> <second>96</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>198</item> </oprand_edges> <opcode>br</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.76</m_delay> <m_topoIndex>47</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_60"> <Value> <Obj> <type>0</type> <id>100</id> <name>axi_last_V_3_i</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>axi.last.V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>1</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>phi</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="_61"> <Value> <Obj> <type>0</type> <id>101</id> <name>axi_data_V_3_i</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>axi.data.V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>24</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>255</item> <item>256</item> <item>257</item> <item>258</item> </oprand_edges> <opcode>phi</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>49</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_62"> <Value> <Obj> <type>0</type> <id>102</id> <name>eol_2_i</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>axi.last.V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>1</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>259</item> <item>260</item> <item>261</item> <item>262</item> </oprand_edges> <opcode>phi</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="_63"> <Value> <Obj> <type>0</type> <id>103</id> <name></name> <fileName>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_video_io.h</fileName> <fileDirectory>C:\Users\byronxu\Documents\6.S193</fileDirectory> <lineNumber>96</lineNumber> <contextFuncName>AXIvideo2Mat&amp;lt;24, 1080, 1920, 4096&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\byronxu\Documents\6.S193</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_video_io.h</first> <second>AXIvideo2Mat&amp;lt;24, 1080, 1920, 4096&amp;gt;</second> </first> <second>96</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>263</item> <item>264</item> <item>265</item> </oprand_edges> <opcode>br</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="_64"> <Value> <Obj> <type>0</type> <id>109</id> <name>empty_73</name> <fileName>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_video_io.h</fileName> <fileDirectory>C:\Users\byronxu\Documents\6.S193</fileDirectory> <lineNumber>100</lineNumber> <contextFuncName>AXIvideo2Mat&amp;lt;24, 1080, 1920, 4096&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\byronxu\Documents\6.S193</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_video_io.h</first> <second>AXIvideo2Mat&amp;lt;24, 1080, 1920, 4096&amp;gt;</second> </first> <second>100</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>34</bitwidth> </Value> <oprand_edges> <count>9</count> <item_version>0</item_version> <item>266</item> <item>267</item> <item>268</item> <item>269</item> <item>270</item> <item>271</item> <item>272</item> <item>273</item> <item>676</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>52</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_65"> <Value> <Obj> <type>0</type> <id>110</id> <name>tmp_data_V_2</name> <fileName>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_video_io.h</fileName> <fileDirectory>C:\Users\byronxu\Documents\6.S193</fileDirectory> <lineNumber>100</lineNumber> <contextFuncName>AXIvideo2Mat&amp;lt;24, 1080, 1920, 4096&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\byronxu\Documents\6.S193</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_video_io.h</first> <second>AXIvideo2Mat&amp;lt;24, 1080, 1920, 4096&amp;gt;</second> </first> <second>100</second> </item> </second> </item> </inlineStackInfo> <originalName>tmp.data.V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>24</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>274</item> </oprand_edges> <opcode>extractvalue</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="_66"> <Value> <Obj> <type>0</type> <id>111</id> <name>tmp_last_V_2</name> <fileName>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_video_io.h</fileName> <fileDirectory>C:\Users\byronxu\Documents\6.S193</fileDirectory> <lineNumber>100</lineNumber> <contextFuncName>AXIvideo2Mat&amp;lt;24, 1080, 1920, 4096&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\byronxu\Documents\6.S193</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_video_io.h</first> <second>AXIvideo2Mat&amp;lt;24, 1080, 1920, 4096&amp;gt;</second> </first> <second>100</second> </item> </second> </item> </inlineStackInfo> <originalName>tmp.last.V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>1</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>275</item> </oprand_edges> <opcode>extractvalue</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>54</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_67"> <Value> <Obj> <type>0</type> <id>113</id> <name></name> <fileName>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_video_io.h</fileName> <fileDirectory>C:\Users\byronxu\Documents\6.S193</fileDirectory> <lineNumber>103</lineNumber> <contextFuncName>AXIvideo2Mat&amp;lt;24, 1080, 1920, 4096&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\byronxu\Documents\6.S193</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_video_io.h</first> <second>AXIvideo2Mat&amp;lt;24, 1080, 1920, 4096&amp;gt;</second> </first> <second>103</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>276</item> </oprand_edges> <opcode>br</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>55</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_68"> <Value> <Obj> <type>0</type> <id>116</id> <name></name> <fileName>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_video_io.h</fileName> <fileDirectory>C:\Users\byronxu\Documents\6.S193</fileDirectory> <lineNumber>71</lineNumber> <contextFuncName>AXIvideo2Mat&amp;lt;24, 1080, 1920, 4096&amp;gt;</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\byronxu\Documents\6.S193</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>C:/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_video_io.h</first> <second>AXIvideo2Mat&amp;lt;24, 1080, 1920, 4096&amp;gt;</second> </first> <second>71</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>277</item> </oprand_edges> <opcode>br</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>56</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_69"> <Value> <Obj> <type>0</type> <id>118</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> <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>-1</m_clusterGroupNumber> </item> </nodes> <consts class_id="15" tracking_level="0" version="0"> <count>8</count> <item_version>0</item_version> <item class_id="16" tracking_level="1" version="0" object_id="_70"> <Value> <Obj> <type>2</type> <id>147</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>1</content> </item> <item class_id_reference="16" object_id="_71"> <Value> <Obj> <type>2</type> <id>149</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>1</bitwidth> </Value> <const_type>0</const_type> <content>1</content> </item> <item class_id_reference="16" object_id="_72"> <Value> <Obj> <type>2</type> <id>163</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="_73"> <Value> <Obj> <type>2</type> <id>186</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>1</bitwidth> </Value> <const_type>0</const_type> <content>0</content> </item> <item class_id_reference="16" object_id="_74"> <Value> <Obj> <type>2</type> <id>228</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>8</content> </item> <item class_id_reference="16" object_id="_75"> <Value> <Obj> <type>2</type> <id>230</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>15</content> </item> <item class_id_reference="16" object_id="_76"> <Value> <Obj> <type>2</type> <id>234</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>16</content> </item> <item class_id_reference="16" object_id="_77"> <Value> <Obj> <type>2</type> <id>236</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>23</content> </item> </consts> <blocks class_id="17" tracking_level="0" version="0"> <count>14</count> <item_version>0</item_version> <item class_id="18" tracking_level="1" version="0" object_id="_78"> <Obj> <type>3</type> <id>34</id> <name>entry</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>26</item> <item>28</item> <item>30</item> <item>31</item> <item>32</item> <item>33</item> </node_objs> </item> <item class_id_reference="18" object_id="_79"> <Obj> <type>3</type> <id>45</id> <name>._crit_edge1.i</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>5</count> <item_version>0</item_version> <item>39</item> <item>40</item> <item>41</item> <item>42</item> <item>44</item> </node_objs> </item> <item class_id_reference="18" object_id="_80"> <Obj> <type>3</type> <id>49</id> <name>.preheader232.i.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>3</count> <item_version>0</item_version> <item>46</item> <item>47</item> <item>48</item> </node_objs> </item> <item class_id_reference="18" object_id="_81"> <Obj> <type>3</type> <id>57</id> <name>.preheader232.i</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>50</item> <item>51</item> <item>52</item> <item>53</item> <item>55</item> <item>56</item> </node_objs> </item> <item class_id_reference="18" object_id="_82"> <Obj> <type>3</type> <id>61</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> <node_objs> <count>1</count> <item_version>0</item_version> <item>60</item> </node_objs> </item> <item class_id_reference="18" object_id="_83"> <Obj> <type>3</type> <id>70</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> <node_objs> <count>7</count> <item_version>0</item_version> <item>62</item> <item>63</item> <item>64</item> <item>65</item> <item>66</item> <item>68</item> <item>69</item> </node_objs> </item> <item class_id_reference="18" object_id="_84"> <Obj> <type>3</type> <id>77</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> <node_objs> <count>3</count> <item_version>0</item_version> <item>71</item> <item>75</item> <item>76</item> </node_objs> </item> <item class_id_reference="18" object_id="_85"> <Obj> <type>3</type> <id>82</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> <node_objs> <count>4</count> <item_version>0</item_version> <item>78</item> <item>79</item> <item>80</item> <item>81</item> </node_objs> </item> <item class_id_reference="18" object_id="_86"> <Obj> <type>3</type> <id>97</id> <name>._crit_edge2.i</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>10</count> <item_version>0</item_version> <item>83</item> <item>84</item> <item>85</item> <item>86</item> <item>87</item> <item>90</item> <item>91</item> <item>92</item> <item>95</item> <item>96</item> </node_objs> </item> <item class_id_reference="18" object_id="_87"> <Obj> <type>3</type> <id>99</id> <name>.preheader.i.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>1</count> <item_version>0</item_version> <item>98</item> </node_objs> </item> <item class_id_reference="18" object_id="_88"> <Obj> <type>3</type> <id>104</id> <name>.preheader.i</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <node_objs> <count>4</count> <item_version>0</item_version> <item>100</item> <item>101</item> <item>102</item> <item>103</item> </node_objs> </item> <item class_id_reference="18" object_id="_89"> <Obj> <type>3</type> <id>114</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> <node_objs> <count>4</count> <item_version>0</item_version> <item>109</item> <item>110</item> <item>111</item> <item>113</item> </node_objs> </item> <item class_id_reference="18" object_id="_90"> <Obj> <type>3</type> <id>117</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> <node_objs> <count>1</count> <item_version>0</item_version> <item>116</item> </node_objs> </item> <item class_id_reference="18" object_id="_91"> <Obj> <type>3</type> <id>119</id> <name>.exit</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>118</item> </node_objs> </item> </blocks> <edges class_id="19" tracking_level="0" version="0"> <count>157</count> <item_version>0</item_version> <item class_id="20" tracking_level="1" version="0" object_id="_92"> <id>122</id> <edge_type>1</edge_type> <source_obj>9</source_obj> <sink_obj>26</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_93"> <id>125</id> <edge_type>1</edge_type> <source_obj>13</source_obj> <sink_obj>28</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_94"> <id>126</id> <edge_type>1</edge_type> <source_obj>26</source_obj> <sink_obj>28</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_95"> <id>128</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="_96"> <id>129</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="_97"> <id>130</id> <edge_type>1</edge_type> <source_obj>26</source_obj> <sink_obj>32</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_98"> <id>131</id> <edge_type>2</edge_type> <source_obj>45</source_obj> <sink_obj>33</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_99"> <id>134</id> <edge_type>1</edge_type> <source_obj>1</source_obj> <sink_obj>39</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_100"> <id>135</id> <edge_type>1</edge_type> <source_obj>2</source_obj> <sink_obj>39</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_101"> <id>136</id> <edge_type>1</edge_type> <source_obj>3</source_obj> <sink_obj>39</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_102"> <id>137</id> <edge_type>1</edge_type> <source_obj>4</source_obj> <sink_obj>39</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_103"> <id>138</id> <edge_type>1</edge_type> <source_obj>5</source_obj> <sink_obj>39</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_104"> <id>139</id> <edge_type>1</edge_type> <source_obj>6</source_obj> <sink_obj>39</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_105"> <id>140</id> <edge_type>1</edge_type> <source_obj>7</source_obj> <sink_obj>39</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_106"> <id>141</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="_107"> <id>142</id> <edge_type>1</edge_type> <source_obj>39</source_obj> <sink_obj>41</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_108"> <id>143</id> <edge_type>1</edge_type> <source_obj>39</source_obj> <sink_obj>42</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_109"> <id>144</id> <edge_type>1</edge_type> <source_obj>41</source_obj> <sink_obj>44</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_110"> <id>145</id> <edge_type>2</edge_type> <source_obj>45</source_obj> <sink_obj>44</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_111"> <id>146</id> <edge_type>2</edge_type> <source_obj>49</source_obj> <sink_obj>44</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_112"> <id>148</id> <edge_type>1</edge_type> <source_obj>147</source_obj> <sink_obj>46</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_113"> <id>150</id> <edge_type>1</edge_type> <source_obj>149</source_obj> <sink_obj>47</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_114"> <id>151</id> <edge_type>1</edge_type> <source_obj>46</source_obj> <sink_obj>47</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_115"> <id>152</id> <edge_type>2</edge_type> <source_obj>57</source_obj> <sink_obj>48</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_116"> <id>153</id> <edge_type>1</edge_type> <source_obj>100</source_obj> <sink_obj>50</sink_obj> <is_back_edge>1</is_back_edge> </item> <item class_id_reference="20" object_id="_117"> <id>154</id> <edge_type>2</edge_type> <source_obj>117</source_obj> <sink_obj>50</sink_obj> <is_back_edge>1</is_back_edge> </item> <item class_id_reference="20" object_id="_118"> <id>155</id> <edge_type>1</edge_type> <source_obj>42</source_obj> <sink_obj>50</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_119"> <id>156</id> <edge_type>2</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="_120"> <id>157</id> <edge_type>1</edge_type> <source_obj>101</source_obj> <sink_obj>51</sink_obj> <is_back_edge>1</is_back_edge> </item> <item class_id_reference="20" object_id="_121"> <id>158</id> <edge_type>2</edge_type> <source_obj>117</source_obj> <sink_obj>51</sink_obj> <is_back_edge>1</is_back_edge> </item> <item class_id_reference="20" object_id="_122"> <id>159</id> <edge_type>1</edge_type> <source_obj>40</source_obj> <sink_obj>51</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_123"> <id>160</id> <edge_type>2</edge_type> <source_obj>49</source_obj> <sink_obj>51</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_124"> <id>161</id> <edge_type>1</edge_type> <source_obj>55</source_obj> <sink_obj>52</sink_obj> <is_back_edge>1</is_back_edge> </item> <item class_id_reference="20" object_id="_125"> <id>162</id> <edge_type>2</edge_type> <source_obj>117</source_obj> <sink_obj>52</sink_obj> <is_back_edge>1</is_back_edge> </item> <item class_id_reference="20" object_id="_126"> <id>164</id> <edge_type>1</edge_type> <source_obj>163</source_obj> <sink_obj>52</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_127"> <id>165</id> <edge_type>2</edge_type> <source_obj>49</source_obj> <sink_obj>52</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_128"> <id>166</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="_129"> <id>167</id> <edge_type>1</edge_type> <source_obj>31</source_obj> <sink_obj>53</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_130"> <id>168</id> <edge_type>1</edge_type> <source_obj>52</source_obj> <sink_obj>55</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_131"> <id>169</id> <edge_type>1</edge_type> <source_obj>147</source_obj> <sink_obj>55</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_132"> <id>170</id> <edge_type>1</edge_type> <source_obj>53</source_obj> <sink_obj>56</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_133"> <id>171</id> <edge_type>2</edge_type> <source_obj>61</source_obj> <sink_obj>56</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_134"> <id>172</id> <edge_type>2</edge_type> <source_obj>119</source_obj> <sink_obj>56</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_135"> <id>173</id> <edge_type>2</edge_type> <source_obj>70</source_obj> <sink_obj>60</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_136"> <id>174</id> <edge_type>1</edge_type> <source_obj>50</source_obj> <sink_obj>62</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_137"> <id>175</id> <edge_type>2</edge_type> <source_obj>61</source_obj> <sink_obj>62</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_138"> <id>176</id> <edge_type>1</edge_type> <source_obj>83</source_obj> <sink_obj>62</sink_obj> <is_back_edge>1</is_back_edge> </item> <item class_id_reference="20" object_id="_139"> <id>177</id> <edge_type>2</edge_type> <source_obj>97</source_obj> <sink_obj>62</sink_obj> <is_back_edge>1</is_back_edge> </item> <item class_id_reference="20" object_id="_140"> <id>178</id> <edge_type>1</edge_type> <source_obj>51</source_obj> <sink_obj>63</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_141"> <id>179</id> <edge_type>2</edge_type> <source_obj>61</source_obj> <sink_obj>63</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_142"> <id>180</id> <edge_type>1</edge_type> <source_obj>84</source_obj> <sink_obj>63</sink_obj> <is_back_edge>1</is_back_edge> </item> <item class_id_reference="20" object_id="_143"> <id>181</id> <edge_type>2</edge_type> <source_obj>97</source_obj> <sink_obj>63</sink_obj> <is_back_edge>1</is_back_edge> </item> <item class_id_reference="20" object_id="_144"> <id>182</id> <edge_type>1</edge_type> <source_obj>163</source_obj> <sink_obj>64</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_145"> <id>183</id> <edge_type>2</edge_type> <source_obj>61</source_obj> <sink_obj>64</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_146"> <id>184</id> <edge_type>1</edge_type> <source_obj>68</source_obj> <sink_obj>64</sink_obj> <is_back_edge>1</is_back_edge> </item> <item class_id_reference="20" object_id="_147"> <id>185</id> <edge_type>2</edge_type> <source_obj>97</source_obj> <sink_obj>64</sink_obj> <is_back_edge>1</is_back_edge> </item> <item class_id_reference="20" object_id="_148"> <id>187</id> <edge_type>1</edge_type> <source_obj>186</source_obj> <sink_obj>65</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_149"> <id>188</id> <edge_type>2</edge_type> <source_obj>61</source_obj> <sink_obj>65</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_150"> <id>189</id> <edge_type>1</edge_type> <source_obj>83</source_obj> <sink_obj>65</sink_obj> <is_back_edge>1</is_back_edge> </item> <item class_id_reference="20" object_id="_151"> <id>190</id> <edge_type>2</edge_type> <source_obj>97</source_obj> <sink_obj>65</sink_obj> <is_back_edge>1</is_back_edge> </item> <item class_id_reference="20" object_id="_152"> <id>191</id> <edge_type>1</edge_type> <source_obj>64</source_obj> <sink_obj>66</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_153"> <id>192</id> <edge_type>1</edge_type> <source_obj>32</source_obj> <sink_obj>66</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_154"> <id>193</id> <edge_type>1</edge_type> <source_obj>64</source_obj> <sink_obj>68</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_155"> <id>194</id> <edge_type>1</edge_type> <source_obj>147</source_obj> <sink_obj>68</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_156"> <id>195</id> <edge_type>1</edge_type> <source_obj>66</source_obj> <sink_obj>69</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_157"> <id>196</id> <edge_type>2</edge_type> <source_obj>77</source_obj> <sink_obj>69</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_158"> <id>197</id> <edge_type>2</edge_type> <source_obj>99</source_obj> <sink_obj>69</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_159"> <id>198</id> <edge_type>2</edge_type> <source_obj>104</source_obj> <sink_obj>98</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_160"> <id>199</id> <edge_type>1</edge_type> <source_obj>46</source_obj> <sink_obj>71</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_161"> <id>200</id> <edge_type>1</edge_type> <source_obj>71</source_obj> <sink_obj>75</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_162"> <id>201</id> <edge_type>1</edge_type> <source_obj>65</source_obj> <sink_obj>75</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_163"> <id>202</id> <edge_type>1</edge_type> <source_obj>75</source_obj> <sink_obj>76</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_164"> <id>203</id> <edge_type>2</edge_type> <source_obj>82</source_obj> <sink_obj>76</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_165"> <id>204</id> <edge_type>2</edge_type> <source_obj>97</source_obj> <sink_obj>76</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_166"> <id>206</id> <edge_type>1</edge_type> <source_obj>1</source_obj> <sink_obj>78</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_167"> <id>207</id> <edge_type>1</edge_type> <source_obj>2</source_obj> <sink_obj>78</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_168"> <id>208</id> <edge_type>1</edge_type> <source_obj>3</source_obj> <sink_obj>78</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_169"> <id>209</id> <edge_type>1</edge_type> <source_obj>4</source_obj> <sink_obj>78</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_170"> <id>210</id> <edge_type>1</edge_type> <source_obj>5</source_obj> <sink_obj>78</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_171"> <id>211</id> <edge_type>1</edge_type> <source_obj>6</source_obj> <sink_obj>78</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_172"> <id>212</id> <edge_type>1</edge_type> <source_obj>7</source_obj> <sink_obj>78</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_173"> <id>213</id> <edge_type>1</edge_type> <source_obj>78</source_obj> <sink_obj>79</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_174"> <id>214</id> <edge_type>1</edge_type> <source_obj>78</source_obj> <sink_obj>80</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_175"> <id>215</id> <edge_type>2</edge_type> <source_obj>97</source_obj> <sink_obj>81</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_176"> <id>216</id> <edge_type>1</edge_type> <source_obj>80</source_obj> <sink_obj>83</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_177"> <id>217</id> <edge_type>2</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="_178"> <id>218</id> <edge_type>1</edge_type> <source_obj>62</source_obj> <sink_obj>83</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_179"> <id>219</id> <edge_type>2</edge_type> <source_obj>77</source_obj> <sink_obj>83</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_180"> <id>220</id> <edge_type>1</edge_type> <source_obj>79</source_obj> <sink_obj>84</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_181"> <id>221</id> <edge_type>2</edge_type> <source_obj>82</source_obj> <sink_obj>84</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_182"> <id>222</id> <edge_type>1</edge_type> <source_obj>63</source_obj> <sink_obj>84</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_183"> <id>223</id> <edge_type>2</edge_type> <source_obj>77</source_obj> <sink_obj>84</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_184"> <id>224</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="_185"> <id>227</id> <edge_type>1</edge_type> <source_obj>84</source_obj> <sink_obj>86</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_186"> <id>229</id> <edge_type>1</edge_type> <source_obj>228</source_obj> <sink_obj>86</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_187"> <id>231</id> <edge_type>1</edge_type> <source_obj>230</source_obj> <sink_obj>86</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_188"> <id>233</id> <edge_type>1</edge_type> <source_obj>84</source_obj> <sink_obj>87</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_189"> <id>235</id> <edge_type>1</edge_type> <source_obj>234</source_obj> <sink_obj>87</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_190"> <id>237</id> <edge_type>1</edge_type> <source_obj>236</source_obj> <sink_obj>87</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_191"> <id>240</id> <edge_type>1</edge_type> <source_obj>10</source_obj> <sink_obj>90</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_192"> <id>241</id> <edge_type>1</edge_type> <source_obj>85</source_obj> <sink_obj>90</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_193"> <id>243</id> <edge_type>1</edge_type> <source_obj>11</source_obj> <sink_obj>91</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_194"> <id>244</id> <edge_type>1</edge_type> <source_obj>86</source_obj> <sink_obj>91</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_195"> <id>246</id> <edge_type>1</edge_type> <source_obj>12</source_obj> <sink_obj>92</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_196"> <id>247</id> <edge_type>1</edge_type> <source_obj>87</source_obj> <sink_obj>92</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_197"> <id>248</id> <edge_type>1</edge_type> <source_obj>186</source_obj> <sink_obj>95</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_198"> <id>249</id> <edge_type>1</edge_type> <source_obj>46</source_obj> <sink_obj>95</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_199"> <id>250</id> <edge_type>2</edge_type> <source_obj>70</source_obj> <sink_obj>96</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_200"> <id>251</id> <edge_type>1</edge_type> <source_obj>111</source_obj> <sink_obj>100</sink_obj> <is_back_edge>1</is_back_edge> </item> <item class_id_reference="20" object_id="_201"> <id>252</id> <edge_type>2</edge_type> <source_obj>114</source_obj> <sink_obj>100</sink_obj> <is_back_edge>1</is_back_edge> </item> <item class_id_reference="20" object_id="_202"> <id>253</id> <edge_type>1</edge_type> <source_obj>62</source_obj> <sink_obj>100</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_203"> <id>254</id> <edge_type>2</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="_204"> <id>255</id> <edge_type>1</edge_type> <source_obj>110</source_obj> <sink_obj>101</sink_obj> <is_back_edge>1</is_back_edge> </item> <item class_id_reference="20" object_id="_205"> <id>256</id> <edge_type>2</edge_type> <source_obj>114</source_obj> <sink_obj>101</sink_obj> <is_back_edge>1</is_back_edge> </item> <item class_id_reference="20" object_id="_206"> <id>257</id> <edge_type>1</edge_type> <source_obj>63</source_obj> <sink_obj>101</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_207"> <id>258</id> <edge_type>2</edge_type> <source_obj>99</source_obj> <sink_obj>101</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_208"> <id>259</id> <edge_type>1</edge_type> <source_obj>111</source_obj> <sink_obj>102</sink_obj> <is_back_edge>1</is_back_edge> </item> <item class_id_reference="20" object_id="_209"> <id>260</id> <edge_type>2</edge_type> <source_obj>114</source_obj> <sink_obj>102</sink_obj> <is_back_edge>1</is_back_edge> </item> <item class_id_reference="20" object_id="_210"> <id>261</id> <edge_type>1</edge_type> <source_obj>65</source_obj> <sink_obj>102</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_211"> <id>262</id> <edge_type>2</edge_type> <source_obj>99</source_obj> <sink_obj>102</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_212"> <id>263</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="_213"> <id>264</id> <edge_type>2</edge_type> <source_obj>114</source_obj> <sink_obj>103</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_214"> <id>265</id> <edge_type>2</edge_type> <source_obj>117</source_obj> <sink_obj>103</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_215"> <id>267</id> <edge_type>1</edge_type> <source_obj>1</source_obj> <sink_obj>109</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_216"> <id>268</id> <edge_type>1</edge_type> <source_obj>2</source_obj> <sink_obj>109</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_217"> <id>269</id> <edge_type>1</edge_type> <source_obj>3</source_obj> <sink_obj>109</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_218"> <id>270</id> <edge_type>1</edge_type> <source_obj>4</source_obj> <sink_obj>109</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_219"> <id>271</id> <edge_type>1</edge_type> <source_obj>5</source_obj> <sink_obj>109</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_220"> <id>272</id> <edge_type>1</edge_type> <source_obj>6</source_obj> <sink_obj>109</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_221"> <id>273</id> <edge_type>1</edge_type> <source_obj>7</source_obj> <sink_obj>109</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_222"> <id>274</id> <edge_type>1</edge_type> <source_obj>109</source_obj> <sink_obj>110</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_223"> <id>275</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="_224"> <id>276</id> <edge_type>2</edge_type> <source_obj>104</source_obj> <sink_obj>113</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_225"> <id>277</id> <edge_type>2</edge_type> <source_obj>57</source_obj> <sink_obj>116</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_226"> <id>657</id> <edge_type>2</edge_type> <source_obj>34</source_obj> <sink_obj>45</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_227"> <id>658</id> <edge_type>2</edge_type> <source_obj>45</source_obj> <sink_obj>49</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_228"> <id>659</id> <edge_type>2</edge_type> <source_obj>45</source_obj> <sink_obj>45</sink_obj> <is_back_edge>1</is_back_edge> </item> <item class_id_reference="20" object_id="_229"> <id>660</id> <edge_type>2</edge_type> <source_obj>49</source_obj> <sink_obj>57</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_230"> <id>661</id> <edge_type>2</edge_type> <source_obj>57</source_obj> <sink_obj>119</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_231"> <id>662</id> <edge_type>2</edge_type> <source_obj>57</source_obj> <sink_obj>61</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_232"> <id>663</id> <edge_type>2</edge_type> <source_obj>61</source_obj> <sink_obj>70</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_233"> <id>664</id> <edge_type>2</edge_type> <source_obj>70</source_obj> <sink_obj>99</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_234"> <id>665</id> <edge_type>2</edge_type> <source_obj>70</source_obj> <sink_obj>77</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_235"> <id>666</id> <edge_type>2</edge_type> <source_obj>77</source_obj> <sink_obj>97</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_236"> <id>667</id> <edge_type>2</edge_type> <source_obj>77</source_obj> <sink_obj>82</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_237"> <id>668</id> <edge_type>2</edge_type> <source_obj>82</source_obj> <sink_obj>97</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_238"> <id>669</id> <edge_type>2</edge_type> <source_obj>97</source_obj> <sink_obj>70</sink_obj> <is_back_edge>1</is_back_edge> </item> <item class_id_reference="20" object_id="_239"> <id>670</id> <edge_type>2</edge_type> <source_obj>99</source_obj> <sink_obj>104</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_240"> <id>671</id> <edge_type>2</edge_type> <source_obj>104</source_obj> <sink_obj>117</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_241"> <id>672</id> <edge_type>2</edge_type> <source_obj>104</source_obj> <sink_obj>114</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_242"> <id>673</id> <edge_type>2</edge_type> <source_obj>114</source_obj> <sink_obj>104</sink_obj> <is_back_edge>1</is_back_edge> </item> <item class_id_reference="20" object_id="_243"> <id>674</id> <edge_type>2</edge_type> <source_obj>117</source_obj> <sink_obj>57</sink_obj> <is_back_edge>1</is_back_edge> </item> <item class_id_reference="20" object_id="_244"> <id>675</id> <edge_type>4</edge_type> <source_obj>39</source_obj> <sink_obj>78</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_245"> <id>676</id> <edge_type>4</edge_type> <source_obj>39</source_obj> <sink_obj>109</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_246"> <id>677</id> <edge_type>4</edge_type> <source_obj>47</source_obj> <sink_obj>71</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_247"> <id>678</id> <edge_type>4</edge_type> <source_obj>47</source_obj> <sink_obj>95</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_248"> <id>679</id> <edge_type>4</edge_type> <source_obj>71</source_obj> <sink_obj>95</sink_obj> <is_back_edge>0</is_back_edge> </item> </edges> </cdfg> <cdfg_regions class_id="21" tracking_level="0" version="0"> <count>11</count> <item_version>0</item_version> <item class_id="22" tracking_level="1" version="0" object_id="_249"> <mId>1</mId> <mTag>AXIvideo2Mat</mTag> <mType>0</mType> <sub_regions> <count>5</count> <item_version>0</item_version> <item>2</item> <item>3</item> <item>4</item> <item>5</item> <item>11</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>3</mMinLatency> <mMaxLatency>2079003</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"></mDfPipe> </item> <item class_id_reference="22" object_id="_250"> <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>34</item> </basic_blocks> <mII>-1</mII> <mDepth>-1</mDepth> <mMinTripCount>-1</mMinTripCount> <mMaxTripCount>-1</mMaxTripCount> <mMinLatency>0</mMinLatency> <mMaxLatency>0</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"></mDfPipe> </item> <item class_id_reference="22" object_id="_251"> <mId>3</mId> <mTag>loop_wait_for_start</mTag> <mType>1</mType> <sub_regions> <count>0</count> <item_version>0</item_version> </sub_regions> <basic_blocks> <count>1</count> <item_version>0</item_version> <item>45</item> </basic_blocks> <mII>1</mII> <mDepth>1</mDepth> <mMinTripCount>0</mMinTripCount> <mMaxTripCount>0</mMaxTripCount> <mMinLatency>0</mMinLatency> <mMaxLatency>0</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"></mDfPipe> </item> <item class_id_reference="22" object_id="_252"> <mId>4</mId> <mTag>Region 1</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>49</item> </basic_blocks> <mII>-1</mII> <mDepth>-1</mDepth> <mMinTripCount>-1</mMinTripCount> <mMaxTripCount>-1</mMaxTripCount> <mMinLatency>0</mMinLatency> <mMaxLatency>0</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"></mDfPipe> </item> <item class_id_reference="22" object_id="_253"> <mId>5</mId> <mTag>loop_height</mTag> <mType>1</mType> <sub_regions> <count>5</count> <item_version>0</item_version> <item>6</item> <item>7</item> <item>8</item> <item>9</item> <item>10</item> </sub_regions> <basic_blocks> <count>0</count> <item_version>0</item_version> </basic_blocks> <mII>-1</mII> <mDepth>-1</mDepth> <mMinTripCount>0</mMinTripCount> <mMaxTripCount>1080</mMaxTripCount> <mMinLatency>0</mMinLatency> <mMaxLatency>2079000</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"></mDfPipe> </item> <item class_id_reference="22" object_id="_254"> <mId>6</mId> <mTag>Region 2</mTag> <mType>0</mType> <sub_regions> <count>0</count> <item_version>0</item_version> </sub_regions> <basic_blocks> <count>2</count> <item_version>0</item_version> <item>57</item> <item>61</item> </basic_blocks> <mII>-1</mII> <mDepth>-1</mDepth> <mMinTripCount>-1</mMinTripCount> <mMaxTripCount>-1</mMaxTripCount> <mMinLatency>0</mMinLatency> <mMaxLatency>0</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"></mDfPipe> </item> <item class_id_reference="22" object_id="_255"> <mId>7</mId> <mTag>loop_width</mTag> <mType>1</mType> <sub_regions> <count>0</count> <item_version>0</item_version> </sub_regions> <basic_blocks> <count>4</count> <item_version>0</item_version> <item>70</item> <item>77</item> <item>82</item> <item>97</item> </basic_blocks> <mII>1</mII> <mDepth>2</mDepth> <mMinTripCount>0</mMinTripCount> <mMaxTripCount>1920</mMaxTripCount> <mMinLatency>0</mMinLatency> <mMaxLatency>1920</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"></mDfPipe> </item> <item class_id_reference="22" object_id="_256"> <mId>8</mId> <mTag>Region 3</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>99</item> </basic_blocks> <mII>-1</mII> <mDepth>-1</mDepth> <mMinTripCount>-1</mMinTripCount> <mMaxTripCount>-1</mMaxTripCount> <mMinLatency>0</mMinLatency> <mMaxLatency>0</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"></mDfPipe> </item> <item class_id_reference="22" object_id="_257"> <mId>9</mId> <mTag>loop_wait_for_eol</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>104</item> <item>114</item> </basic_blocks> <mII>1</mII> <mDepth>1</mDepth> <mMinTripCount>0</mMinTripCount> <mMaxTripCount>0</mMaxTripCount> <mMinLatency>0</mMinLatency> <mMaxLatency>0</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"></mDfPipe> </item> <item class_id_reference="22" object_id="_258"> <mId>10</mId> <mTag>Region 4</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>117</item> </basic_blocks> <mII>-1</mII> <mDepth>-1</mDepth> <mMinTripCount>-1</mMinTripCount> <mMaxTripCount>-1</mMaxTripCount> <mMinLatency>0</mMinLatency> <mMaxLatency>0</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"></mDfPipe> </item> <item class_id_reference="22" object_id="_259"> <mId>11</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>119</item> </basic_blocks> <mII>-1</mII> <mDepth>-1</mDepth> <mMinTripCount>-1</mMinTripCount> <mMaxTripCount>-1</mMaxTripCount> <mMinLatency>0</mMinLatency> <mMaxLatency>0</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"></mDfPipe> </item> </cdfg_regions> <fsm class_id="24" tracking_level="1" version="0" object_id="_260"> <states class_id="25" tracking_level="0" version="0"> <count>9</count> <item_version>0</item_version> <item class_id="26" tracking_level="1" version="0" object_id="_261"> <id>1</id> <operations class_id="27" tracking_level="0" version="0"> <count>20</count> <item_version>0</item_version> <item class_id="28" tracking_level="1" version="0" object_id="_262"> <id>14</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_263"> <id>15</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_264"> <id>16</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_265"> <id>17</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_266"> <id>18</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_267"> <id>19</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_268"> <id>20</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_269"> <id>21</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_270"> <id>22</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_271"> <id>23</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_272"> <id>24</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_273"> <id>25</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_274"> <id>26</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_275"> <id>27</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_276"> <id>28</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_277"> <id>29</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_278"> <id>30</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_279"> <id>31</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_280"> <id>32</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_281"> <id>33</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_282"> <id>2</id> <operations> <count>10</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_283"> <id>35</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_284"> <id>36</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_285"> <id>37</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_286"> <id>38</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_287"> <id>39</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_288"> <id>40</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_289"> <id>41</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_290"> <id>42</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_291"> <id>43</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_292"> <id>44</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_293"> <id>3</id> <operations> <count>3</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_294"> <id>46</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_295"> <id>47</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_296"> <id>48</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_297"> <id>4</id> <operations> <count>11</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_298"> <id>50</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_299"> <id>51</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_300"> <id>52</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_301"> <id>53</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_302"> <id>54</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_303"> <id>55</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_304"> <id>56</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_305"> <id>58</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_306"> <id>59</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_307"> <id>60</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_308"> <id>118</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_309"> <id>5</id> <operations> <count>21</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_310"> <id>62</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_311"> <id>63</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_312"> <id>64</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_313"> <id>65</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_314"> <id>66</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_315"> <id>67</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_316"> <id>68</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_317"> <id>69</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_318"> <id>71</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_319"> <id>75</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_320"> <id>76</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_321"> <id>78</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_322"> <id>79</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_323"> <id>80</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_324"> <id>81</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_325"> <id>83</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_326"> <id>84</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_327"> <id>85</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_328"> <id>86</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_329"> <id>87</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_330"> <id>95</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_331"> <id>6</id> <operations> <count>11</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_332"> <id>72</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_333"> <id>73</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_334"> <id>74</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_335"> <id>88</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_336"> <id>89</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_337"> <id>90</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_338"> <id>91</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_339"> <id>92</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_340"> <id>93</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_341"> <id>94</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_342"> <id>96</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_343"> <id>7</id> <operations> <count>1</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_344"> <id>98</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_345"> <id>8</id> <operations> <count>13</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_346"> <id>100</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_347"> <id>101</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_348"> <id>102</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_349"> <id>103</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_350"> <id>105</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_351"> <id>106</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_352"> <id>107</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_353"> <id>108</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_354"> <id>109</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_355"> <id>110</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_356"> <id>111</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_357"> <id>112</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_358"> <id>113</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_359"> <id>9</id> <operations> <count>2</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_360"> <id>115</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_361"> <id>116</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> </states> <transitions class_id="29" tracking_level="0" version="0"> <count>12</count> <item_version>0</item_version> <item class_id="30" tracking_level="1" version="0" object_id="_362"> <inState>1</inState> <outState>2</outState> <condition class_id="31" tracking_level="0" version="0"> <id>-1</id> <sop class_id="32" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="33" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_363"> <inState>3</inState> <outState>4</outState> <condition> <id>-1</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_364"> <inState>4</inState> <outState>5</outState> <condition> <id>-1</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>1</count> <item_version>0</item_version> <item class_id="34" tracking_level="0" version="0"> <first class_id="35" tracking_level="0" version="0"> <first>53</first> <second>0</second> </first> <second>1</second> </item> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_365"> <inState>7</inState> <outState>8</outState> <condition> <id>-1</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_366"> <inState>9</inState> <outState>4</outState> <condition> <id>-1</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_367"> <inState>2</inState> <outState>3</outState> <condition> <id>-1</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>1</count> <item_version>0</item_version> <item> <first> <first>41</first> <second>0</second> </first> <second>0</second> </item> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_368"> <inState>2</inState> <outState>2</outState> <condition> <id>-1</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>1</count> <item_version>0</item_version> <item> <first> <first>41</first> <second>0</second> </first> <second>1</second> </item> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_369"> <inState>6</inState> <outState>5</outState> <condition> <id>-1</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_370"> <inState>5</inState> <outState>7</outState> <condition> <id>-1</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>1</count> <item_version>0</item_version> <item> <first> <first>66</first> <second>0</second> </first> <second>0</second> </item> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_371"> <inState>5</inState> <outState>6</outState> <condition> <id>-1</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>1</count> <item_version>0</item_version> <item> <first> <first>66</first> <second>0</second> </first> <second>1</second> </item> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_372"> <inState>8</inState> <outState>9</outState> <condition> <id>-1</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>1</count> <item_version>0</item_version> <item> <first> <first>102</first> <second>0</second> </first> <second>0</second> </item> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_373"> <inState>8</inState> <outState>8</outState> <condition> <id>-1</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>1</count> <item_version>0</item_version> <item> <first> <first>102</first> <second>0</second> </first> <second>1</second> </item> </item> </sop> </condition> </item> </transitions> </fsm> <res class_id="-1"></res> <node_label_latency class_id="37" tracking_level="0" version="0"> <count>56</count> <item_version>0</item_version> <item class_id="38" tracking_level="0" version="0"> <first>26</first> <second class_id="39" tracking_level="0" version="0"> <first>0</first> <second>0</second> </second> </item> <item> <first>28</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>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>1</first> <second>0</second> </second> </item> <item> <first>42</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>46</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>47</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>48</first> <second> <first>2</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>3</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>55</first> <second> <first>3</first> <second>0</second> </second> </item> <item> <first>56</first> <second> <first>3</first> <second>0</second> </second> </item> <item> <first>60</first> <second> <first>3</first> <second>0</second> </second> </item> <item> <first>62</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>63</first> <second> <first>4</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>68</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>69</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>71</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>75</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>76</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>78</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>79</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>80</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>81</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>83</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>84</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>85</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>86</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>87</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>90</first> <second> <first>5</first> <second>0</second> </second> </item> <item> <first>91</first> <second> <first>5</first> <second>0</second> </second> </item> <item> <first>92</first> <second> <first>5</first> <second>0</second> </second> </item> <item> <first>95</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>96</first> <second> <first>5</first> <second>0</second> </second> </item> <item> <first>98</first> <second> <first>6</first> <second>0</second> </second> </item> <item> <first>100</first> <second> <first>7</first> <second>0</second> </second> </item> <item> <first>101</first> <second> <first>7</first> <second>0</second> </second> </item> <item> <first>102</first> <second> <first>7</first> <second>0</second> </second> </item> <item> <first>103</first> <second> <first>7</first> <second>0</second> </second> </item> <item> <first>109</first> <second> <first>7</first> <second>0</second> </second> </item> <item> <first>110</first> <second> <first>7</first> <second>0</second> </second> </item> <item> <first>111</first> <second> <first>7</first> <second>0</second> </second> </item> <item> <first>113</first> <second> <first>7</first> <second>0</second> </second> </item> <item> <first>116</first> <second> <first>8</first> <second>0</second> </second> </item> <item> <first>118</first> <second> <first>3</first> <second>0</second> </second> </item> </node_label_latency> <bblk_ent_exit class_id="40" tracking_level="0" version="0"> <count>14</count> <item_version>0</item_version> <item class_id="41" tracking_level="0" version="0"> <first>34</first> <second class_id="42" tracking_level="0" version="0"> <first>0</first> <second>0</second> </second> </item> <item> <first>45</first> <second> <first>1</first> <second>1</second> </second> </item> <item> <first>49</first> <second> <first>2</first> <second>2</second> </second> </item> <item> <first>57</first> <second> <first>3</first> <second>3</second> </second> </item> <item> <first>61</first> <second> <first>3</first> <second>3</second> </second> </item> <item> <first>70</first> <second> <first>4</first> <second>4</second> </second> </item> <item> <first>77</first> <second> <first>4</first> <second>5</second> </second> </item> <item> <first>82</first> <second> <first>4</first> <second>4</second> </second> </item> <item> <first>97</first> <second> <first>4</first> <second>5</second> </second> </item> <item> <first>99</first> <second> <first>5</first> <second>5</second> </second> </item> <item> <first>104</first> <second> <first>6</first> <second>6</second> </second> </item> <item> <first>114</first> <second> <first>6</first> <second>6</second> </second> </item> <item> <first>117</first> <second> <first>7</first> <second>7</second> </second> </item> <item> <first>119</first> <second> <first>3</first> <second>3</second> </second> </item> </bblk_ent_exit> <regions class_id="43" tracking_level="0" version="0"> <count>4</count> <item_version>0</item_version> <item class_id="44" tracking_level="1" version="0" object_id="_374"> <region_name>loop_wait_for_start</region_name> <basic_blocks> <count>1</count> <item_version>0</item_version> <item>45</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>1</pipe_depth> </item> <item class_id_reference="44" object_id="_375"> <region_name>loop_width</region_name> <basic_blocks> <count>4</count> <item_version>0</item_version> <item>70</item> <item>77</item> <item>82</item> <item>97</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>2</pipe_depth> </item> <item class_id_reference="44" object_id="_376"> <region_name>hls_label_6</region_name> <basic_blocks> <count>1</count> <item_version>0</item_version> <item>97</item> </basic_blocks> <nodes> <count>6</count> <item_version>0</item_version> <item>88</item> <item>89</item> <item>90</item> <item>91</item> <item>92</item> <item>93</item> </nodes> <anchor_node>88</anchor_node> <region_type>1</region_type> <interval>0</interval> <pipe_depth>0</pipe_depth> </item> <item class_id_reference="44" object_id="_377"> <region_name>loop_wait_for_eol</region_name> <basic_blocks> <count>2</count> <item_version>0</item_version> <item>104</item> <item>114</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>1</pipe_depth> </item> </regions> <dp_fu_nodes class_id="45" tracking_level="0" version="0"> <count>36</count> <item_version>0</item_version> <item class_id="46" tracking_level="0" version="0"> <first>94</first> <second> <count>1</count> <item_version>0</item_version> <item>46</item> </second> </item> <item> <first>98</first> <second> <count>1</count> <item_version>0</item_version> <item>26</item> </second> </item> <item> <first>104</first> <second> <count>1</count> <item_version>0</item_version> <item>28</item> </second> </item> <item> <first>112</first> <second> <count>1</count> <item_version>0</item_version> <item>30</item> </second> </item> <item> <first>118</first> <second> <count>3</count> <item_version>0</item_version> <item>39</item> <item>78</item> <item>109</item> </second> </item> <item> <first>136</first> <second> <count>1</count> <item_version>0</item_version> <item>90</item> </second> </item> <item> <first>143</first> <second> <count>1</count> <item_version>0</item_version> <item>91</item> </second> </item> <item> <first>150</first> <second> <count>1</count> <item_version>0</item_version> <item>92</item> </second> </item> <item> <first>160</first> <second> <count>1</count> <item_version>0</item_version> <item>50</item> </second> </item> <item> <first>170</first> <second> <count>1</count> <item_version>0</item_version> <item>51</item> </second> </item> <item> <first>181</first> <second> <count>1</count> <item_version>0</item_version> <item>52</item> </second> </item> <item> <first>191</first> <second> <count>1</count> <item_version>0</item_version> <item>62</item> </second> </item> <item> <first>202</first> <second> <count>1</count> <item_version>0</item_version> <item>63</item> </second> </item> <item> <first>214</first> <second> <count>1</count> <item_version>0</item_version> <item>64</item> </second> </item> <item> <first>225</first> <second> <count>1</count> <item_version>0</item_version> <item>65</item> </second> </item> <item> <first>238</first> <second> <count>1</count> <item_version>0</item_version> <item>83</item> </second> </item> <item> <first>250</first> <second> <count>1</count> <item_version>0</item_version> <item>84</item> </second> </item> <item> <first>262</first> <second> <count>1</count> <item_version>0</item_version> <item>100</item> </second> </item> <item> <first>274</first> <second> <count>1</count> <item_version>0</item_version> <item>101</item> </second> </item> <item> <first>285</first> <second> <count>1</count> <item_version>0</item_version> <item>102</item> </second> </item> <item> <first>292</first> <second> <count>3</count> <item_version>0</item_version> <item>40</item> <item>79</item> <item>110</item> </second> </item> <item> <first>297</first> <second> <count>3</count> <item_version>0</item_version> <item>42</item> <item>80</item> <item>111</item> </second> </item> <item> <first>302</first> <second> <count>1</count> <item_version>0</item_version> <item>31</item> </second> </item> <item> <first>306</first> <second> <count>1</count> <item_version>0</item_version> <item>32</item> </second> </item> <item> <first>310</first> <second> <count>1</count> <item_version>0</item_version> <item>41</item> </second> </item> <item> <first>314</first> <second> <count>1</count> <item_version>0</item_version> <item>47</item> </second> </item> <item> <first>319</first> <second> <count>1</count> <item_version>0</item_version> <item>53</item> </second> </item> <item> <first>324</first> <second> <count>1</count> <item_version>0</item_version> <item>55</item> </second> </item> <item> <first>330</first> <second> <count>1</count> <item_version>0</item_version> <item>66</item> </second> </item> <item> <first>335</first> <second> <count>1</count> <item_version>0</item_version> <item>68</item> </second> </item> <item> <first>341</first> <second> <count>1</count> <item_version>0</item_version> <item>71</item> </second> </item> <item> <first>344</first> <second> <count>1</count> <item_version>0</item_version> <item>75</item> </second> </item> <item> <first>350</first> <second> <count>1</count> <item_version>0</item_version> <item>85</item> </second> </item> <item> <first>354</first> <second> <count>1</count> <item_version>0</item_version> <item>86</item> </second> </item> <item> <first>364</first> <second> <count>1</count> <item_version>0</item_version> <item>87</item> </second> </item> <item> <first>374</first> <second> <count>1</count> <item_version>0</item_version> <item>95</item> </second> </item> </dp_fu_nodes> <dp_fu_nodes_expression class_id="48" tracking_level="0" version="0"> <count>26</count> <item_version>0</item_version> <item class_id="49" tracking_level="0" version="0"> <first>axi_data_V1_i_phi_fu_170</first> <second> <count>1</count> <item_version>0</item_version> <item>51</item> </second> </item> <item> <first>axi_data_V_1_i_phi_fu_202</first> <second> <count>1</count> <item_version>0</item_version> <item>63</item> </second> </item> <item> <first>axi_data_V_3_i_phi_fu_274</first> <second> <count>1</count> <item_version>0</item_version> <item>101</item> </second> </item> <item> <first>axi_last_V1_i_phi_fu_160</first> <second> <count>1</count> <item_version>0</item_version> <item>50</item> </second> </item> <item> <first>axi_last_V_2_i_phi_fu_238</first> <second> <count>1</count> <item_version>0</item_version> <item>83</item> </second> </item> <item> <first>axi_last_V_3_i_phi_fu_262</first> <second> <count>1</count> <item_version>0</item_version> <item>100</item> </second> </item> <item> <first>brmerge_i_fu_344</first> <second> <count>1</count> <item_version>0</item_version> <item>75</item> </second> </item> <item> <first>cols_V_fu_306</first> <second> <count>1</count> <item_version>0</item_version> <item>32</item> </second> </item> <item> <first>eol_2_i_phi_fu_285</first> <second> <count>1</count> <item_version>0</item_version> <item>102</item> </second> </item> <item> <first>eol_i_phi_fu_225</first> <second> <count>1</count> <item_version>0</item_version> <item>65</item> </second> </item> <item> <first>eol_phi_fu_191</first> <second> <count>1</count> <item_version>0</item_version> <item>62</item> </second> </item> <item> <first>exitcond3_i_fu_319</first> <second> <count>1</count> <item_version>0</item_version> <item>53</item> </second> </item> <item> <first>exitcond_i_fu_330</first> <second> <count>1</count> <item_version>0</item_version> <item>66</item> </second> </item> <item> <first>grp_fu_292</first> <second> <count>3</count> <item_version>0</item_version> <item>40</item> <item>79</item> <item>110</item> </second> </item> <item> <first>grp_fu_297</first> <second> <count>3</count> <item_version>0</item_version> <item>42</item> <item>80</item> <item>111</item> </second> </item> <item> <first>i_V_fu_324</first> <second> <count>1</count> <item_version>0</item_version> <item>55</item> </second> </item> <item> <first>j_V_fu_335</first> <second> <count>1</count> <item_version>0</item_version> <item>68</item> </second> </item> <item> <first>p_Val2_s_phi_fu_250</first> <second> <count>1</count> <item_version>0</item_version> <item>84</item> </second> </item> <item> <first>rows_V_fu_302</first> <second> <count>1</count> <item_version>0</item_version> <item>31</item> </second> </item> <item> <first>sof_1_i_fu_94</first> <second> <count>1</count> <item_version>0</item_version> <item>46</item> </second> </item> <item> <first>t_V_4_phi_fu_214</first> <second> <count>1</count> <item_version>0</item_version> <item>64</item> </second> </item> <item> <first>t_V_phi_fu_181</first> <second> <count>1</count> <item_version>0</item_version> <item>52</item> </second> </item> <item> <first>tmp_20_fu_354</first> <second> <count>1</count> <item_version>0</item_version> <item>86</item> </second> </item> <item> <first>tmp_21_fu_364</first> <second> <count>1</count> <item_version>0</item_version> <item>87</item> </second> </item> <item> <first>tmp_fu_350</first> <second> <count>1</count> <item_version>0</item_version> <item>85</item> </second> </item> <item> <first>tmp_user_V_fu_310</first> <second> <count>1</count> <item_version>0</item_version> <item>41</item> </second> </item> </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>10</count> <item_version>0</item_version> <item> <first>StgValue_24_write_fu_104</first> <second> <count>1</count> <item_version>0</item_version> <item>28</item> </second> </item> <item> <first>StgValue_41_store_fu_314</first> <second> <count>1</count> <item_version>0</item_version> <item>47</item> </second> </item> <item> <first>StgValue_74_store_fu_374</first> <second> <count>1</count> <item_version>0</item_version> <item>95</item> </second> </item> <item> <first>StgValue_80_write_fu_136</first> <second> <count>1</count> <item_version>0</item_version> <item>90</item> </second> </item> <item> <first>StgValue_81_write_fu_143</first> <second> <count>1</count> <item_version>0</item_version> <item>91</item> </second> </item> <item> <first>StgValue_82_write_fu_150</first> <second> <count>1</count> <item_version>0</item_version> <item>92</item> </second> </item> <item> <first>grp_read_fu_118</first> <second> <count>3</count> <item_version>0</item_version> <item>39</item> <item>78</item> <item>109</item> </second> </item> <item> <first>img_cols_V_read_read_fu_98</first> <second> <count>1</count> <item_version>0</item_version> <item>26</item> </second> </item> <item> <first>img_rows_V_read_read_fu_112</first> <second> <count>1</count> <item_version>0</item_version> <item>30</item> </second> </item> <item> <first>sof_1_i_load_load_fu_341</first> <second> <count>1</count> <item_version>0</item_version> <item>71</item> </second> </item> </dp_fu_nodes_io> <return_ports> <count>0</count> <item_version>0</item_version> </return_ports> <dp_mem_port_nodes class_id="50" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </dp_mem_port_nodes> <dp_reg_nodes> <count>27</count> <item_version>0</item_version> <item> <first>157</first> <second> <count>1</count> <item_version>0</item_version> <item>50</item> </second> </item> <item> <first>167</first> <second> <count>1</count> <item_version>0</item_version> <item>51</item> </second> </item> <item> <first>177</first> <second> <count>1</count> <item_version>0</item_version> <item>52</item> </second> </item> <item> <first>188</first> <second> <count>1</count> <item_version>0</item_version> <item>62</item> </second> </item> <item> <first>199</first> <second> <count>1</count> <item_version>0</item_version> <item>63</item> </second> </item> <item> <first>210</first> <second> <count>1</count> <item_version>0</item_version> <item>64</item> </second> </item> <item> <first>221</first> <second> <count>1</count> <item_version>0</item_version> <item>65</item> </second> </item> <item> <first>233</first> <second> <count>1</count> <item_version>0</item_version> <item>83</item> </second> </item> <item> <first>246</first> <second> <count>1</count> <item_version>0</item_version> <item>84</item> </second> </item> <item> <first>258</first> <second> <count>1</count> <item_version>0</item_version> <item>100</item> </second> </item> <item> <first>270</first> <second> <count>1</count> <item_version>0</item_version> <item>101</item> </second> </item> <item> <first>282</first> <second> <count>1</count> <item_version>0</item_version> <item>102</item> </second> </item> <item> <first>379</first> <second> <count>1</count> <item_version>0</item_version> <item>31</item> </second> </item> <item> <first>384</first> <second> <count>1</count> <item_version>0</item_version> <item>32</item> </second> </item> <item> <first>389</first> <second> <count>1</count> <item_version>0</item_version> <item>40</item> </second> </item> <item> <first>397</first> <second> <count>1</count> <item_version>0</item_version> <item>42</item> </second> </item> <item> <first>402</first> <second> <count>1</count> <item_version>0</item_version> <item>46</item> </second> </item> <item> <first>409</first> <second> <count>1</count> <item_version>0</item_version> <item>53</item> </second> </item> <item> <first>413</first> <second> <count>1</count> <item_version>0</item_version> <item>55</item> </second> </item> <item> <first>418</first> <second> <count>1</count> <item_version>0</item_version> <item>66</item> </second> </item> <item> <first>422</first> <second> <count>1</count> <item_version>0</item_version> <item>68</item> </second> </item> <item> <first>427</first> <second> <count>1</count> <item_version>0</item_version> <item>75</item> </second> </item> <item> <first>431</first> <second> <count>1</count> <item_version>0</item_version> <item>85</item> </second> </item> <item> <first>436</first> <second> <count>1</count> <item_version>0</item_version> <item>86</item> </second> </item> <item> <first>441</first> <second> <count>1</count> <item_version>0</item_version> <item>87</item> </second> </item> <item> <first>446</first> <second> <count>1</count> <item_version>0</item_version> <item>110</item> </second> </item> <item> <first>451</first> <second> <count>1</count> <item_version>0</item_version> <item>111</item> </second> </item> </dp_reg_nodes> <dp_regname_nodes> <count>27</count> <item_version>0</item_version> <item> <first>axi_data_V1_i_reg_167</first> <second> <count>1</count> <item_version>0</item_version> <item>51</item> </second> </item> <item> <first>axi_data_V_1_i_reg_199</first> <second> <count>1</count> <item_version>0</item_version> <item>63</item> </second> </item> <item> <first>axi_data_V_3_i_reg_270</first> <second> <count>1</count> <item_version>0</item_version> <item>101</item> </second> </item> <item> <first>axi_last_V1_i_reg_157</first> <second> <count>1</count> <item_version>0</item_version> <item>50</item> </second> </item> <item> <first>axi_last_V_2_i_reg_233</first> <second> <count>1</count> <item_version>0</item_version> <item>83</item> </second> </item> <item> <first>axi_last_V_3_i_reg_258</first> <second> <count>1</count> <item_version>0</item_version> <item>100</item> </second> </item> <item> <first>brmerge_i_reg_427</first> <second> <count>1</count> <item_version>0</item_version> <item>75</item> </second> </item> <item> <first>cols_V_reg_384</first> <second> <count>1</count> <item_version>0</item_version> <item>32</item> </second> </item> <item> <first>eol_2_i_reg_282</first> <second> <count>1</count> <item_version>0</item_version> <item>102</item> </second> </item> <item> <first>eol_i_reg_221</first> <second> <count>1</count> <item_version>0</item_version> <item>65</item> </second> </item> <item> <first>eol_reg_188</first> <second> <count>1</count> <item_version>0</item_version> <item>62</item> </second> </item> <item> <first>exitcond3_i_reg_409</first> <second> <count>1</count> <item_version>0</item_version> <item>53</item> </second> </item> <item> <first>exitcond_i_reg_418</first> <second> <count>1</count> <item_version>0</item_version> <item>66</item> </second> </item> <item> <first>i_V_reg_413</first> <second> <count>1</count> <item_version>0</item_version> <item>55</item> </second> </item> <item> <first>j_V_reg_422</first> <second> <count>1</count> <item_version>0</item_version> <item>68</item> </second> </item> <item> <first>p_Val2_s_reg_246</first> <second> <count>1</count> <item_version>0</item_version> <item>84</item> </second> </item> <item> <first>rows_V_reg_379</first> <second> <count>1</count> <item_version>0</item_version> <item>31</item> </second> </item> <item> <first>sof_1_i_reg_402</first> <second> <count>1</count> <item_version>0</item_version> <item>46</item> </second> </item> <item> <first>t_V_4_reg_210</first> <second> <count>1</count> <item_version>0</item_version> <item>64</item> </second> </item> <item> <first>t_V_reg_177</first> <second> <count>1</count> <item_version>0</item_version> <item>52</item> </second> </item> <item> <first>tmp_20_reg_436</first> <second> <count>1</count> <item_version>0</item_version> <item>86</item> </second> </item> <item> <first>tmp_21_reg_441</first> <second> <count>1</count> <item_version>0</item_version> <item>87</item> </second> </item> <item> <first>tmp_data_V_2_reg_446</first> <second> <count>1</count> <item_version>0</item_version> <item>110</item> </second> </item> <item> <first>tmp_data_V_reg_389</first> <second> <count>1</count> <item_version>0</item_version> <item>40</item> </second> </item> <item> <first>tmp_last_V_2_reg_451</first> <second> <count>1</count> <item_version>0</item_version> <item>111</item> </second> </item> <item> <first>tmp_last_V_reg_397</first> <second> <count>1</count> <item_version>0</item_version> <item>42</item> </second> </item> <item> <first>tmp_reg_431</first> <second> <count>1</count> <item_version>0</item_version> <item>85</item> </second> </item> </dp_regname_nodes> <dp_reg_phi> <count>12</count> <item_version>0</item_version> <item> <first>157</first> <second> <count>1</count> <item_version>0</item_version> <item>50</item> </second> </item> <item> <first>167</first> <second> <count>1</count> <item_version>0</item_version> <item>51</item> </second> </item> <item> <first>177</first> <second> <count>1</count> <item_version>0</item_version> <item>52</item> </second> </item> <item> <first>188</first> <second> <count>1</count> <item_version>0</item_version> <item>62</item> </second> </item> <item> <first>199</first> <second> <count>1</count> <item_version>0</item_version> <item>63</item> </second> </item> <item> <first>210</first> <second> <count>1</count> <item_version>0</item_version> <item>64</item> </second> </item> <item> <first>221</first> <second> <count>1</count> <item_version>0</item_version> <item>65</item> </second> </item> <item> <first>233</first> <second> <count>1</count> <item_version>0</item_version> <item>83</item> </second> </item> <item> <first>246</first> <second> <count>1</count> <item_version>0</item_version> <item>84</item> </second> </item> <item> <first>258</first> <second> <count>1</count> <item_version>0</item_version> <item>100</item> </second> </item> <item> <first>270</first> <second> <count>1</count> <item_version>0</item_version> <item>101</item> </second> </item> <item> <first>282</first> <second> <count>1</count> <item_version>0</item_version> <item>102</item> </second> </item> </dp_reg_phi> <dp_regname_phi> <count>12</count> <item_version>0</item_version> <item> <first>axi_data_V1_i_reg_167</first> <second> <count>1</count> <item_version>0</item_version> <item>51</item> </second> </item> <item> <first>axi_data_V_1_i_reg_199</first> <second> <count>1</count> <item_version>0</item_version> <item>63</item> </second> </item> <item> <first>axi_data_V_3_i_reg_270</first> <second> <count>1</count> <item_version>0</item_version> <item>101</item> </second> </item> <item> <first>axi_last_V1_i_reg_157</first> <second> <count>1</count> <item_version>0</item_version> <item>50</item> </second> </item> <item> <first>axi_last_V_2_i_reg_233</first> <second> <count>1</count> <item_version>0</item_version> <item>83</item> </second> </item> <item> <first>axi_last_V_3_i_reg_258</first> <second> <count>1</count> <item_version>0</item_version> <item>100</item> </second> </item> <item> <first>eol_2_i_reg_282</first> <second> <count>1</count> <item_version>0</item_version> <item>102</item> </second> </item> <item> <first>eol_i_reg_221</first> <second> <count>1</count> <item_version>0</item_version> <item>65</item> </second> </item> <item> <first>eol_reg_188</first> <second> <count>1</count> <item_version>0</item_version> <item>62</item> </second> </item> <item> <first>p_Val2_s_reg_246</first> <second> <count>1</count> <item_version>0</item_version> <item>84</item> </second> </item> <item> <first>t_V_4_reg_210</first> <second> <count>1</count> <item_version>0</item_version> <item>64</item> </second> </item> <item> <first>t_V_reg_177</first> <second> <count>1</count> <item_version>0</item_version> <item>52</item> </second> </item> </dp_regname_phi> <dp_port_io_nodes class_id="51" tracking_level="0" version="0"> <count>13</count> <item_version>0</item_version> <item class_id="52" tracking_level="0" version="0"> <first>AXI_video_strm_V_data_V</first> <second> <count>1</count> <item_version>0</item_version> <item> <first>read</first> <second> <count>3</count> <item_version>0</item_version> <item>39</item> <item>78</item> <item>109</item> </second> </item> </second> </item> <item> <first>AXI_video_strm_V_dest_V</first> <second> <count>1</count> <item_version>0</item_version> <item> <first>read</first> <second> <count>3</count> <item_version>0</item_version> <item>39</item> <item>78</item> <item>109</item> </second> </item> </second> </item> <item> <first>AXI_video_strm_V_id_V</first> <second> <count>1</count> <item_version>0</item_version> <item> <first>read</first> <second> <count>3</count> <item_version>0</item_version> <item>39</item> <item>78</item> <item>109</item> </second> </item> </second> </item> <item> <first>AXI_video_strm_V_keep_V</first> <second> <count>1</count> <item_version>0</item_version> <item> <first>read</first> <second> <count>3</count> <item_version>0</item_version> <item>39</item> <item>78</item> <item>109</item> </second> </item> </second> </item> <item> <first>AXI_video_strm_V_last_V</first> <second> <count>1</count> <item_version>0</item_version> <item> <first>read</first> <second> <count>3</count> <item_version>0</item_version> <item>39</item> <item>78</item> <item>109</item> </second> </item> </second> </item> <item> <first>AXI_video_strm_V_strb_V</first> <second> <count>1</count> <item_version>0</item_version> <item> <first>read</first> <second> <count>3</count> <item_version>0</item_version> <item>39</item> <item>78</item> <item>109</item> </second> </item> </second> </item> <item> <first>AXI_video_strm_V_user_V</first> <second> <count>1</count> <item_version>0</item_version> <item> <first>read</first> <second> <count>3</count> <item_version>0</item_version> <item>39</item> <item>78</item> <item>109</item> </second> </item> </second> </item> <item> <first>img_cols_V</first> <second> <count>1</count> <item_version>0</item_version> <item> <first>read</first> <second> <count>1</count> <item_version>0</item_version> <item>26</item> </second> </item> </second> </item> <item> <first>img_cols_V_out</first> <second> <count>1</count> <item_version>0</item_version> <item> <first>write</first> <second> <count>1</count> <item_version>0</item_version> <item>28</item> </second> </item> </second> </item> <item> <first>img_data_stream_0_V</first> <second> <count>1</count> <item_version>0</item_version> <item> <first>write</first> <second> <count>1</count> <item_version>0</item_version> <item>90</item> </second> </item> </second> </item> <item> <first>img_data_stream_1_V</first> <second> <count>1</count> <item_version>0</item_version> <item> <first>write</first> <second> <count>1</count> <item_version>0</item_version> <item>91</item> </second> </item> </second> </item> <item> <first>img_data_stream_2_V</first> <second> <count>1</count> <item_version>0</item_version> <item> <first>write</first> <second> <count>1</count> <item_version>0</item_version> <item>92</item> </second> </item> </second> </item> <item> <first>img_rows_V</first> <second> <count>1</count> <item_version>0</item_version> <item> <first>read</first> <second> <count>1</count> <item_version>0</item_version> <item>30</item> </second> </item> </second> </item> </dp_port_io_nodes> <port2core class_id="53" tracking_level="0" version="0"> <count>6</count> <item_version>0</item_version> <item class_id="54" tracking_level="0" version="0"> <first>8</first> <second>FIFO</second> </item> <item> <first>9</first> <second>FIFO</second> </item> <item> <first>10</first> <second>FIFO</second> </item> <item> <first>11</first> <second>FIFO</second> </item> <item> <first>12</first> <second>FIFO</second> </item> <item> <first>13</first> <second>FIFO</second> </item> </port2core> <node2core> <count>0</count> <item_version>0</item_version> </node2core> </syndb> </boost_serialization>
27.235821
100
0.580795
ad0215eabdcda1238964b91308f5c0af6334c135
142
ads
Ada
tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/nullrecord.ads
LaudateCorpus1/rose-1
5fe906d2a01253130c5de465aded6a917a8476a0
[ "BSD-3-Clause" ]
488
2015-01-09T08:54:48.000Z
2022-03-30T07:15:46.000Z
tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/nullrecord.ads
LaudateCorpus1/rose-1
5fe906d2a01253130c5de465aded6a917a8476a0
[ "BSD-3-Clause" ]
174
2015-01-28T18:41:32.000Z
2022-03-31T16:51:05.000Z
tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/nullrecord.ads
LaudateCorpus1/rose-1
5fe906d2a01253130c5de465aded6a917a8476a0
[ "BSD-3-Clause" ]
146
2015-04-27T02:48:34.000Z
2022-03-04T07:32:53.000Z
package NullRecord is type Null_Record_1 is null record; type Null_Record_2 is record null; end record; end NullRecord;
15.777778
36
0.697183
a01bf89c575fede9d563292c2742fd413153391a
243
ads
Ada
Practica 02/P02_Lista_Alumnos/src/menu.ads
dpr1005/Tiempo-Real-Ejercicios
244911e9e9a2d8667649eb9f3d7417c39b340161
[ "BSD-3-Clause" ]
null
null
null
Practica 02/P02_Lista_Alumnos/src/menu.ads
dpr1005/Tiempo-Real-Ejercicios
244911e9e9a2d8667649eb9f3d7417c39b340161
[ "BSD-3-Clause" ]
null
null
null
Practica 02/P02_Lista_Alumnos/src/menu.ads
dpr1005/Tiempo-Real-Ejercicios
244911e9e9a2d8667649eb9f3d7417c39b340161
[ "BSD-3-Clause" ]
1
2022-03-06T17:37:39.000Z
2022-03-06T17:37:39.000Z
with Clases; package Menu is type Opcion is (Insertar,Mirar,Salir); procedure Pide_Opcion (La_Opcion : out Opcion); procedure Lee_Num_Alumno (Num : out Clases.Num_Alumno); procedure Mensaje_Error (Mensaje : in String); end Menu;
24.3
58
0.740741
1e76f6fac2259cb8d7c9bc3f07e2d9ffc0ccf32a
1,760
adb
Ada
tests/src/text_dirty.adb
Fabien-Chouteau/GESTE
5ac814906fdb49d880db60cbb17279cbbb777336
[ "BSD-3-Clause" ]
13
2018-07-31T12:11:46.000Z
2021-11-19T14:16:46.000Z
tests/src/text_dirty.adb
gregkrsak/GESTE
5ac814906fdb49d880db60cbb17279cbbb777336
[ "BSD-3-Clause" ]
1
2018-10-22T21:41:59.000Z
2018-10-22T21:41:59.000Z
tests/src/text_dirty.adb
gregkrsak/GESTE
5ac814906fdb49d880db60cbb17279cbbb777336
[ "BSD-3-Clause" ]
4
2020-07-03T10:03:13.000Z
2022-02-10T03:35:07.000Z
with GESTE; with GESTE.Text; with Ada.Text_IO; with Console_Char_Screen; with GESTE_Fonts.FreeMono8pt7b; procedure Text_Dirty is package Font_A renames GESTE_Fonts.FreeMono8pt7b; package Console_Screen is new Console_Char_Screen (Width => 45, Height => 20, Buffer_Size => 45, Init_Char => ' '); Text_A : aliased GESTE.Text.Instance (Font_A.Font, 4, 1, '#', ' '); procedure Update is begin GESTE.Render_Dirty (Screen_Rect => Console_Screen.Screen_Rect, Background => ' ', Buffer => Console_Screen.Buffer, Push_Pixels => Console_Screen.Push_Pixels'Unrestricted_Access, Set_Drawing_Area => Console_Screen.Set_Drawing_Area'Unrestricted_Access); Console_Screen.Print; Ada.Text_IO.New_Line; end Update; begin Console_Screen.Verbose; Text_A.Put ("test"); Text_A.Move ((0, 0)); GESTE.Add (Text_A'Unrestricted_Access, 0); GESTE.Render_Window (Window => Console_Screen.Screen_Rect, Background => ' ', Buffer => Console_Screen.Buffer, Push_Pixels => Console_Screen.Push_Pixels'Unrestricted_Access, Set_Drawing_Area => Console_Screen.Set_Drawing_Area'Unrestricted_Access); Console_Screen.Print; Ada.Text_IO.New_Line; Update; -- Check that inverting a char triggers a re-draw Text_A.Invert (2, 1); Update; -- Check that changing a char triggers a re-draw Text_A.Cursor (3, 1); Text_A.Put ('O'); Update; -- Check that changing colors triggers a re-draw Text_A.Set_Colors (4, 1, '_', ' '); Update; -- Check that clearing text triggers a re-draw Text_A.Clear; Update; end Text_Dirty;
24.444444
82
0.647727
1ef4c88cea0943153596e9a967a8eccb38400091
3,157
adb
Ada
awa/regtests/awa-mail-modules-tests.adb
twdroeger/ada-awa
77b824773747aecb912c37b1b7b59ea414679b80
[ "Apache-2.0" ]
null
null
null
awa/regtests/awa-mail-modules-tests.adb
twdroeger/ada-awa
77b824773747aecb912c37b1b7b59ea414679b80
[ "Apache-2.0" ]
null
null
null
awa/regtests/awa-mail-modules-tests.adb
twdroeger/ada-awa
77b824773747aecb912c37b1b7b59ea414679b80
[ "Apache-2.0" ]
null
null
null
----------------------------------------------------------------------- -- awa-mail-module-tests -- Unit tests for Mail module -- Copyright (C) 2012, 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 Util.Test_Caller; with AWA.Events; package body AWA.Mail.Modules.Tests is package Caller is new Util.Test_Caller (Test, "Mail.Modules"); procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite) is begin Caller.Add_Test (Suite, "Test AWA.Mail.Module.Create_Message", Test_Create_Message'Access); Caller.Add_Test (Suite, "Test AWA.Mail.Module.Create_Message (CC:)", Test_Cc_Message'Access); Caller.Add_Test (Suite, "Test AWA.Mail.Module.Create_Message (BCC:)", Test_Bcc_Message'Access); end Add_Tests; -- ------------------------------ -- Create an email message with the given template and verify its content. -- ------------------------------ procedure Test_Mail_Message (T : in out Test; Name : in String) is use Util.Beans.Objects; Mail : constant AWA.Mail.Modules.Mail_Module_Access := AWA.Mail.Modules.Get_Mail_Module; Event : AWA.Events.Module_Event; Props : Util.Beans.Objects.Maps.Map; begin T.Assert (Mail /= null, "There is no current mail module"); Props.Insert ("name", To_Object (String '("joe"))); Props.Insert ("email", To_Object (String '("[email protected]"))); Mail.Send_Mail (Template => Name, Props => Props, Content => Event); end Test_Mail_Message; -- ------------------------------ -- Create an email message and verify its content. -- ------------------------------ procedure Test_Create_Message (T : in out Test) is begin T.Test_Mail_Message ("mail-info.html"); end Test_Create_Message; -- ------------------------------ -- Create an email message with Cc: and verify its content. -- ------------------------------ procedure Test_Cc_Message (T : in out Test) is begin T.Test_Mail_Message ("mail-cc.html"); end Test_Cc_Message; -- ------------------------------ -- Create an email message with Bcc: and verify its content. -- ------------------------------ procedure Test_Bcc_Message (T : in out Test) is begin T.Test_Mail_Message ("mail-bcc.html"); end Test_Bcc_Message; end AWA.Mail.Modules.Tests;
38.036145
95
0.575546
4bbb7493cde787acf5c25cda625af93254e6e633
241
ads
Ada
lab01/src/semaphore.ads
evgenijaZ/PP-labs
cfb63ae270f4dab9e7f06d300e054dc071b6d646
[ "MIT" ]
null
null
null
lab01/src/semaphore.ads
evgenijaZ/PP-labs
cfb63ae270f4dab9e7f06d300e054dc071b6d646
[ "MIT" ]
null
null
null
lab01/src/semaphore.ads
evgenijaZ/PP-labs
cfb63ae270f4dab9e7f06d300e054dc071b6d646
[ "MIT" ]
null
null
null
package semaphore is protected type Counting_Semaphore (Start_Count : Integer := 1) is entry Secure; procedure Release; function Count return Integer; private Current_Count : Integer := Start_Count; end; end semaphore;
15.0625
65
0.73029
1e63d2959fe8cb148fe144a02f4fbdb6eb30c0f0
4,041
adb
Ada
llvm-gcc-4.2-2.9/gcc/ada/a-siocst.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/a-siocst.adb
vidkidz/crossbridge
ba0bf94aee0ce6cf7eb5be882382e52bc57ba396
[ "MIT" ]
null
null
null
llvm-gcc-4.2-2.9/gcc/ada/a-siocst.adb
vidkidz/crossbridge
ba0bf94aee0ce6cf7eb5be882382e52bc57ba396
[ "MIT" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- A D A . S E Q U E N T I A L _ I O . C _ S T R E A M S -- -- -- -- B o d y -- -- -- -- Copyright (C) 1992-2002 Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 2, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -- -- for more details. You should have received a copy of the GNU General -- -- Public License distributed with GNAT; see file COPYING. If not, write -- -- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, -- -- Boston, MA 02110-1301, USA. -- -- -- -- 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.C_Streams; use Interfaces.C_Streams; with System.File_IO; with System.File_Control_Block; with System.Sequential_IO; with Unchecked_Conversion; package body Ada.Sequential_IO.C_Streams is package FIO renames System.File_IO; package FCB renames System.File_Control_Block; package SIO renames System.Sequential_IO; subtype AP is FCB.AFCB_Ptr; function To_FCB is new Unchecked_Conversion (File_Mode, FCB.File_Mode); -------------- -- C_Stream -- -------------- function C_Stream (F : File_Type) return FILEs is begin FIO.Check_File_Open (AP (F)); return F.Stream; end C_Stream; ---------- -- Open -- ---------- procedure Open (File : in out File_Type; Mode : File_Mode; C_Stream : FILEs; Form : String := ""; Name : String := "") is Dummy_File_Control_Block : SIO.Sequential_AFCB; pragma Warnings (Off, Dummy_File_Control_Block); -- Yes, we know this is never assigned a value, only the tag -- is used for dispatching purposes, so that's expected. begin FIO.Open (File_Ptr => AP (File), Dummy_FCB => Dummy_File_Control_Block, Mode => To_FCB (Mode), Name => Name, Form => Form, Amethod => 'Q', Creat => False, Text => False, C_Stream => C_Stream); end Open; end Ada.Sequential_IO.C_Streams;
45.404494
78
0.47612
2286dc957bc0e63f5cccf1a746ea945e7cbd5eee
2,050
ads
Ada
tier-1/xcb/source/thin/xcb-xcb_create_cursor_request_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_create_cursor_request_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_create_cursor_request_t.ads
charlie5/cBound
741be08197a61ad9c72553e3302f3b669902216d
[ "0BSD" ]
null
null
null
-- This file is generated by SWIG. Please do not modify by hand. -- with Interfaces; with Interfaces.C; with Interfaces.C.Pointers; package xcb.xcb_create_cursor_request_t is -- Item -- type Item is record major_opcode : aliased Interfaces.Unsigned_8; pad0 : aliased Interfaces.Unsigned_8; length : aliased Interfaces.Unsigned_16; cid : aliased xcb.xcb_cursor_t; source : aliased xcb.xcb_pixmap_t; mask : aliased xcb.xcb_pixmap_t; fore_red : aliased Interfaces.Unsigned_16; fore_green : aliased Interfaces.Unsigned_16; fore_blue : aliased Interfaces.Unsigned_16; back_red : aliased Interfaces.Unsigned_16; back_green : aliased Interfaces.Unsigned_16; back_blue : aliased Interfaces.Unsigned_16; x : aliased Interfaces.Unsigned_16; y : aliased Interfaces.Unsigned_16; end record; -- Item_Array -- type Item_Array is array (Interfaces.C .size_t range <>) of aliased xcb.xcb_create_cursor_request_t .Item; -- Pointer -- package C_Pointers is new Interfaces.C.Pointers (Index => Interfaces.C.size_t, Element => xcb.xcb_create_cursor_request_t.Item, Element_Array => xcb.xcb_create_cursor_request_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_create_cursor_request_t .Pointer; -- Pointer_Pointer -- package C_Pointer_Pointers is new Interfaces.C.Pointers (Index => Interfaces.C.size_t, Element => xcb.xcb_create_cursor_request_t.Pointer, Element_Array => xcb.xcb_create_cursor_request_t.Pointer_Array, Default_Terminator => null); subtype Pointer_Pointer is C_Pointer_Pointers.Pointer; end xcb.xcb_create_cursor_request_t;
31.060606
74
0.655122
a0025081bb8fcba5eddd1e37d72d467ff0235245
4,173
ads
Ada
orka/src/orka/interface/orka-inputs-joysticks.ads
onox/orka
9edf99559a16ffa96dfdb208322f4d18efbcbac6
[ "Apache-2.0" ]
52
2016-07-30T23:00:28.000Z
2022-02-05T11:54:55.000Z
orka/src/orka/interface/orka-inputs-joysticks.ads
onox/orka
9edf99559a16ffa96dfdb208322f4d18efbcbac6
[ "Apache-2.0" ]
79
2016-08-01T18:36:48.000Z
2022-02-27T12:14:20.000Z
orka/src/orka/interface/orka-inputs-joysticks.ads
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) 2019 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 GL.Types; package Orka.Inputs.Joysticks is pragma Preelaborate; use type GL.Types.Single; type Axis_Position is new GL.Types.Single range -1.0 .. 1.0; type Button_State is (Released, Pressed); type Hat_State is (Centered, Up, Right, Right_Up, Down, Right_Down, Left, Left_Up, Left_Down); type Button_States is array (Positive range <>) of Button_State with Pack; type Axis_Positions is array (Positive range <>) of aliased Axis_Position; type Hat_States is array (Positive range <>) of aliased Hat_State; subtype Button_Index is Positive range 1 .. 64; subtype Axis_Index is Positive range 1 .. 8; subtype Hat_Index is Positive range 1 .. 8; type Joystick_State (Button_Count, Axis_Count, Hat_Count : Natural := 0) is record Buttons : Button_States (Button_Index) := (others => Released); Axes : Axis_Positions (Axis_Index) := (others => 0.0); Hats : Hat_States (Hat_Index) := (others => Centered); end record with Dynamic_Predicate => (Button_Count <= Buttons'Length or else raise Constraint_Error with "Joystick has too many buttons:" & Button_Count'Image) and then (Axis_Count <= Axes'Length or else raise Constraint_Error with "Joystick has too many axes:" & Axis_Count'Image) and then (Hat_Count <= Hats'Length or else raise Constraint_Error with "Joystick has too many hats:" & Hat_Count'Image); ----------------------------------------------------------------------------- type Joystick_Input is limited interface; type Joystick_Input_Access is access Joystick_Input'Class; subtype Joystick_Input_Ptr is not null Joystick_Input_Access; function Is_Present (Object : Joystick_Input) return Boolean is abstract; function Is_Gamepad (Object : Joystick_Input) return Boolean is abstract; function Name (Object : Joystick_Input) return String is abstract; function GUID (Object : Joystick_Input) return String is abstract; procedure Update_State (Object : in out Joystick_Input; Process : access procedure (Value : in out Axis_Position; Index : Positive)) is abstract; function Current_State (Object : Joystick_Input) return Joystick_State is abstract; function Last_State (Object : Joystick_Input) return Joystick_State is abstract; subtype Joystick_Button_States is Button_States (Button_Index); type Boolean_Button_States is array (Joystick_Button_States'Range) of Boolean with Pack; function Just_Pressed (Object : Joystick_Input'Class) return Boolean_Button_States; function Just_Released (Object : Joystick_Input'Class) return Boolean_Button_States; Disconnected_Error : exception; ----------------------------------------------------------------------------- type Joystick_Manager is synchronized interface; type Joystick_Manager_Ptr is not null access all Joystick_Manager'Class; procedure Acquire (Object : in out Joystick_Manager; Joystick : out Inputs.Joysticks.Joystick_Input_Access) is abstract with Synchronization => By_Protected_Procedure; -- Acquire an unused joystick or null if no unused joystick is present procedure Release (Object : in out Joystick_Manager; Joystick : Inputs.Joysticks.Joystick_Input_Access) is abstract with Synchronization => By_Protected_Procedure; -- Release a used joystick end Orka.Inputs.Joysticks;
39.742857
91
0.693506
9a3449b0fd73ecb9a17dde39631ef9d80c17d459
1,572
ads
Ada
tier-1/xcb/source/thin/xcb-xcb_destroy_subwindows_request_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_destroy_subwindows_request_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_destroy_subwindows_request_t.ads
charlie5/cBound
741be08197a61ad9c72553e3302f3b669902216d
[ "0BSD" ]
null
null
null
-- This file is generated by SWIG. Please do not modify by hand. -- with Interfaces; with Interfaces.C; with Interfaces.C.Pointers; package xcb.xcb_destroy_subwindows_request_t is -- Item -- type Item is record major_opcode : aliased Interfaces.Unsigned_8; pad0 : aliased Interfaces.Unsigned_8; length : aliased Interfaces.Unsigned_16; window : aliased xcb.xcb_window_t; end record; -- Item_Array -- type Item_Array is array (Interfaces.C .size_t range <>) of aliased xcb.xcb_destroy_subwindows_request_t .Item; -- Pointer -- package C_Pointers is new Interfaces.C.Pointers (Index => Interfaces.C.size_t, Element => xcb.xcb_destroy_subwindows_request_t.Item, Element_Array => xcb.xcb_destroy_subwindows_request_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_destroy_subwindows_request_t .Pointer; -- Pointer_Pointer -- package C_Pointer_Pointers is new Interfaces.C.Pointers (Index => Interfaces.C.size_t, Element => xcb.xcb_destroy_subwindows_request_t.Pointer, Element_Array => xcb.xcb_destroy_subwindows_request_t.Pointer_Array, Default_Terminator => null); subtype Pointer_Pointer is C_Pointer_Pointers.Pointer; end xcb.xcb_destroy_subwindows_request_t;
28.071429
79
0.669211
1e50c2f4280b5f798daae6ffe97242fe1a5a92a1
3,449
adb
Ada
st/src/leds.adb
MatrixMike/AdaDemo1
cbf2ad5a05dc06a8ee11d0780c19f5fd74c8990a
[ "MIT" ]
1
2019-06-27T12:58:28.000Z
2019-06-27T12:58:28.000Z
st/src/leds.adb
MatrixMike/AdaDemo1
cbf2ad5a05dc06a8ee11d0780c19f5fd74c8990a
[ "MIT" ]
null
null
null
st/src/leds.adb
MatrixMike/AdaDemo1
cbf2ad5a05dc06a8ee11d0780c19f5fd74c8990a
[ "MIT" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT EXAMPLE -- -- -- -- Copyright (C) 2014, 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. -- -- -- ------------------------------------------------------------------------------ with Ada.Unchecked_Conversion; with Registers; use Registers; with STM32F4.GPIO; use STM32F4.GPIO; package body LEDs is function As_Word is new Ada.Unchecked_Conversion (Source => User_LED, Target => Word); procedure On (This : User_LED) is begin GPIOD.BSRR := As_Word (This); end On; procedure Off (This : User_LED) is begin GPIOD.BSRR := Shift_Left (As_Word (This), 16); end Off; All_LEDs_On : constant Word := Green'Enum_Rep or Red'Enum_Rep or Blue'Enum_Rep or Orange'Enum_Rep; pragma Compile_Time_Error (All_LEDs_On /= 16#F000#, "Invalid representation for All_LEDs_On"); All_LEDs_Off : constant Word := Shift_Left (All_LEDs_On, 16); procedure All_Off is begin GPIOD.BSRR := All_LEDs_Off; end All_Off; procedure All_On is begin GPIOD.BSRR := All_LEDs_On; end All_On; procedure Initialize is RCC_AHB1ENR_GPIOD : constant Word := 16#08#; begin -- Enable clock for GPIO-D RCC.AHB1ENR := RCC.AHB1ENR or RCC_AHB1ENR_GPIOD; -- Configure PD12-15 GPIOD.MODER (12 .. 15) := (others => Mode_OUT); GPIOD.OTYPER (12 .. 15) := (others => Type_PP); GPIOD.OSPEEDR (12 .. 15) := (others => Speed_100MHz); GPIOD.PUPDR (12 .. 15) := (others => No_Pull); end Initialize; begin Initialize; end LEDs;
41.554217
78
0.448536
a0b4cad1be32cb6e3461d0eca22d8bef694884fc
4,474
adb
Ada
testsuite/league/TN-333/test_333.adb
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
24
2016-11-29T06:59:41.000Z
2021-08-30T11:55:16.000Z
testsuite/league/TN-333/test_333.adb
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
2
2019-01-16T05:15:20.000Z
2019-02-03T10:03:32.000Z
testsuite/league/TN-333/test_333.adb
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 -- -- -- -- Testsuite Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2013, Vadim Godunko <[email protected]> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ -- Some initial tests of Index subprogram. ------------------------------------------------------------------------------ with League.Application; pragma Unreferenced (League.Application); with League.Strings; use League.Strings; procedure Test_333 is S1 : Universal_String := To_Universal_String ("ABCDEFGHIJKLMNO"); P1 : Universal_String := To_Universal_String ("ABC"); P2 : Universal_String := To_Universal_String ("DEF"); P3 : Universal_String := To_Universal_String ("NO"); P4 : Universal_String := To_Universal_String ("YES"); begin if S1.Index (P1) /= 1 then raise Program_Error; end if; if S1.Index (P2) /= 4 then raise Program_Error; end if; if S1.Index (P3) /= 14 then raise Program_Error; end if; if S1.Index (P4) /= 0 then raise Program_Error; end if; if S1.Index (Empty_Universal_String) /= 0 then raise Program_Error; end if; if Empty_Universal_String.Index (P1) /= 0 then raise Program_Error; end if; if Empty_Universal_String.Index (Empty_Universal_String) /= 0 then raise Program_Error; end if; end Test_333;
52.023256
78
0.456638
1eb6e6b64888732f552bf3b1676dcbb6c830968e
1,929
ads
Ada
boards/crazyflie/src/sfp/adl_config.ads
mbdme26/Ada_Drivers_Library
dc9cc80f5338c9d1ae942dd461eef6a2402e44de
[ "BSD-3-Clause" ]
192
2016-06-01T18:32:04.000Z
2022-03-26T22:52:31.000Z
boards/crazyflie/src/sfp/adl_config.ads
mbdme26/Ada_Drivers_Library
dc9cc80f5338c9d1ae942dd461eef6a2402e44de
[ "BSD-3-Clause" ]
239
2016-05-26T20:02:01.000Z
2022-03-31T09:46:56.000Z
boards/crazyflie/src/sfp/adl_config.ads
mbdme26/Ada_Drivers_Library
dc9cc80f5338c9d1ae942dd461eef6a2402e44de
[ "BSD-3-Clause" ]
142
2016-06-05T08:12:20.000Z
2022-03-24T17:37:17.000Z
-- This package was generated by the Ada_Drivers_Library project wizard script package ADL_Config is Architecture : constant String := "ARM"; -- From board definition Board : constant String := "Crazyflie"; -- From command line CPU_Core : constant String := "ARM Cortex-M4F"; -- From mcu definition Device_Family : constant String := "STM32F4"; -- From board definition Device_Name : constant String := "STM32F405RGTx"; -- From board definition Has_Ravenscar_Full_Runtime : constant String := "True"; -- From board definition Has_Ravenscar_SFP_Runtime : constant String := "True"; -- From board definition Has_ZFP_Runtime : constant String := "False"; -- From board definition High_Speed_External_Clock : constant := 8000000; -- From board definition Max_Mount_Name_Length : constant := 128; -- From default value Max_Mount_Points : constant := 2; -- From default value Max_Path_Length : constant := 1024; -- From default value Number_Of_Interrupts : constant := 0; -- From default value Runtime_Name : constant String := "ravenscar-sfp-stm32f4"; -- From default value Runtime_Name_Suffix : constant String := "stm32f4"; -- From board definition Runtime_Profile : constant String := "ravenscar-sfp"; -- From command line Use_Startup_Gen : constant Boolean := False; -- From command line Vendor : constant String := "STMicro"; -- From board definition end ADL_Config;
87.681818
102
0.537066
9ab3f0d2d74e5ff2ded92b97ecf30be5efa91ed4
2,147
ads
Ada
tools/scitools/conf/understand/ada/ada95/s-valcha.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/ada95/s-valcha.ads
brucegua/moocos
575c161cfa35e220f10d042e2e5ca18773691695
[ "Apache-2.0" ]
null
null
null
tools/scitools/conf/understand/ada/ada95/s-valcha.ads
brucegua/moocos
575c161cfa35e220f10d042e2e5ca18773691695
[ "Apache-2.0" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- S Y S T E M . V A L _ C H A R -- -- -- -- S p e c -- -- -- -- $Revision: 2 $ -- -- -- -- Copyright (c) 1992,1993,1994 NYU, All Rights Reserved -- -- -- -- The GNAT library is free software; you can redistribute it and/or modify -- -- it under terms of the GNU Library General Public License as published by -- -- the Free Software Foundation; either version 2, or (at your option) any -- -- later version. The GNAT 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 -- -- Library General Public License for more details. You should have -- -- received a copy of the GNU Library General Public License along with -- -- the GNAT library; see the file COPYING.LIB. If not, write to the Free -- -- Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. -- -- -- ------------------------------------------------------------------------------ package System.Val_Char is pragma Preelaborate (Val_Char); -- should really be Pure, but Gigi has optimization bug ??? on SunOS function Value_Character (Str : String) return Character; -- Computes Character'Value (Str). end System.Val_Char;
63.147059
78
0.391709
adffbfa01702f91d2aeecfda1dace5b2992e72e8
2,097
ads
Ada
receiver/src/packet_receiver.ads
damaki/dw1000-rssi-tester
fef559e58e9a4d1df908e9d4827e96ccce4c6136
[ "MIT" ]
2
2019-05-15T02:23:01.000Z
2021-03-05T08:10:26.000Z
receiver/src/packet_receiver.ads
damaki/dw1000-rssi-tester
fef559e58e9a4d1df908e9d4827e96ccce4c6136
[ "MIT" ]
null
null
null
receiver/src/packet_receiver.ads
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 DW1000.Driver; use DW1000.Driver; package Packet_Receiver with SPARK_Mode => On is protected Packets_Info is procedure Packet_Received (RSSI : in Float; Data_Rate : in DW1000.Driver.Data_Rates); procedure Config_Changed; procedure Reset (Average_RSSI : out Float; Nb_Packets : out Natural; Data_Rate : out DW1000.Driver.Data_Rates; Was_Config_Changed : out Boolean); private RSSI_Sum : Float := 0.0; Count : Natural := 0; Changed : Boolean := False; Last_Data_Rate : Data_Rates := Data_Rate_110k; end Packets_Info; private task Radio_Task; end Packet_Receiver;
37.446429
79
0.618503
4bdf7916fe5ca1660eddfb9bac28da67c924fa55
496
ads
Ada
src/libraries/Rewriters_Lib/tests/test_minimal_parenthesis.ads
Fabien-Chouteau/Renaissance-Ada
f9747d0f61840ed8bdeb0f21ce65f08399a54b4e
[ "BSD-3-Clause" ]
1
2022-03-08T13:00:47.000Z
2022-03-08T13:00:47.000Z
src/libraries/Rewriters_Lib/tests/test_minimal_parenthesis.ads
selroc/Renaissance-Ada
39230b34aced4a9d83831be346ca103136c53715
[ "BSD-3-Clause" ]
null
null
null
src/libraries/Rewriters_Lib/tests/test_minimal_parenthesis.ads
selroc/Renaissance-Ada
39230b34aced4a9d83831be346ca103136c53715
[ "BSD-3-Clause" ]
null
null
null
with AUnit; use AUnit; with AUnit.Test_Cases; use AUnit.Test_Cases; package Test_Minimal_Parenthesis is type Minimal_Parenthesis_Test_Case is new Test_Case with null record; overriding procedure Register_Tests (T : in out Minimal_Parenthesis_Test_Case); -- Register routines to be run overriding function Name (T : Minimal_Parenthesis_Test_Case) return Message_String; -- Provide name identifying the test case end Test_Minimal_Parenthesis;
26.105263
48
0.747984
a08e2c9723c86cacdb04be262a79aad57651c7a3
3,962
ada
Ada
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/ce/ce3804o.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/ce/ce3804o.ada
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
null
null
null
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/ce/ce3804o.ada
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
2
2020-07-27T00:22:36.000Z
2021-04-01T09:41:02.000Z
-- CE3804O.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. --* -- HISTORY: -- CHECK THAT GET FOR FIXED_IO RAISES MODE_ERROR WHEN THE -- MODE IS NOT IN_FILE. -- APPLICABILITY CRITERIA: -- THIS TEST IS ONLY APPLICABLE TO IMPLEMENTATIONS WHICH -- SUPPORT TEXT FILES. -- HISTORY: -- DWC 09/14/87 CREATED ORIGINAL TEST. WITH REPORT; USE REPORT; WITH TEXT_IO; USE TEXT_IO; PROCEDURE CE3804O IS INCOMPLETE : EXCEPTION; BEGIN TEST ("CE3804O", "CHECK THAT GET FOR FIXED_IO RAISES " & "MODE_ERROR WHEN THE MODE IS NOT IN_FILE"); DECLARE FT: FILE_TYPE; BEGIN BEGIN CREATE (FT, OUT_FILE); EXCEPTION WHEN USE_ERROR => NOT_APPLICABLE ("USE_ERROR RAISED; TEXT " & "CREATE FOR TEMP FILES " & "WITH OUT_FILE MODE"); RAISE INCOMPLETE; END; DECLARE TYPE FIXED IS DELTA 0.25 RANGE 1.0 .. 3.0; PACKAGE FX_IO IS NEW FIXED_IO (FIXED); USE FX_IO; X : FIXED; BEGIN BEGIN GET (FT, X); FAILED ("MODE_ERROR NOT RAISED - FIXED " & "UN-NAMED FILE"); EXCEPTION WHEN MODE_ERROR => NULL; WHEN OTHERS => FAILED ("WRONG EXCEPTION RAISED - " & "FIXED UN-NAMED FILE"); END; BEGIN GET (STANDARD_OUTPUT, X); FAILED ("MODE_ERROR NOT RAISED - FIXED " & "STANDARD_OUTPUT"); EXCEPTION WHEN MODE_ERROR => NULL; WHEN OTHERS => FAILED ("WRONG EXCEPTION RAISED - " & "FIXED STANDARD_OUTPUT"); END; BEGIN GET (CURRENT_OUTPUT, X); FAILED ("MODE_ERROR NOT RAISED - FIXED " & "CURRENT_OUTPUT"); EXCEPTION WHEN MODE_ERROR => NULL; WHEN OTHERS => FAILED ("WRONG EXCEPTION RAISED - " & "FIXED CURRENT_OUTPUT"); END; END; BEGIN DELETE (FT); EXCEPTION WHEN USE_ERROR => NULL; END; EXCEPTION WHEN INCOMPLETE => NULL; END; RESULT; END CE3804O;
32.47541
79
0.495204
046738dfefa68a6f5385de904a2528edd1e21cc5
2,079
adb
Ada
Lab4/lab4fg.adb
albinjal/ada_basic
2ee5963f18496870ee9efc2e6466917c87482ddc
[ "MIT" ]
3
2020-01-27T10:04:20.000Z
2022-02-11T23:17:00.000Z
Lab4/lab4fg.adb
albinjal/ada_basic
2ee5963f18496870ee9efc2e6466917c87482ddc
[ "MIT" ]
null
null
null
Lab4/lab4fg.adb
albinjal/ada_basic
2ee5963f18496870ee9efc2e6466917c87482ddc
[ "MIT" ]
null
null
null
with Date_Package; use Date_Package; with Ada.Text_IO; use Ada.Text_IO; procedure Lab4fg is type Dates is array (1..10) of Date_Type; procedure Sort(Arrayen_Med_Talen: in out Dates) is procedure Swap(Tal_1,Tal_2: in out Date_Type) is Tal_B : Date_Type; -- Temporary buffer begin Tal_B := Tal_1; Tal_1 := Tal_2; Tal_2 := Tal_B; end Swap; Minsta_Talet: Date_Type; Minsta_Talet_Index: Integer; begin -- Loopa antalet gånger som arrayens längd for IOuter in Arrayen_Med_Talen'Range loop -- Loopa arrayen med start från yttra loopens värde varje gång. 1..20, 2..20, ... , 20..20 for I in IOuter..Arrayen_Med_Talen'Last loop if I = IOuter or Arrayen_Med_Talen(I) < Minsta_Talet then Minsta_Talet := Arrayen_Med_Talen(I); Minsta_Talet_Index := I; end if; end loop; Swap(Arrayen_Med_Talen(IOuter), Arrayen_Med_Talen(Minsta_Talet_Index)); end loop; end Sort; procedure Test_Get(Date: out Date_Type) is begin loop begin Get(Date); exit; exception when YEAR_ERROR => Put_Line("FEL: YEAR_ERROR"); when MONTH_ERROR => Put_Line("FEL: MONTH_ERROR"); when DAY_ERROR => Put_Line("FEL: DAY_ERROR"); when FORMAT_ERROR => Put_Line("FEL: FORMAT_ERROR"); end; end loop; end Test_Get; Date: Date_Type; Date2: Date_Type; begin Test_Get(Date); Test_Get(Date2); Put(Date); New_Line; Put(Date2); New_Line; if Date = Date2 then Put("Lika"); New_Line; else Put("Olika"); New_Line; end if; if Date > Date2 then Put(Date); Put(" > "); Put(Date2); New_Line; else Put(Date); Put(" !!> "); Put(Date2); New_Line; end if; if Date < Date2 then Put(Date); Put(" < "); Put(Date2); New_Line; else Put(Date); Put(" !!< "); Put(Date2); New_Line; end if; -- Date := Previous_Date(Date); -- Put(Date); New_Line; -- Date := Next_Date(Date); -- Put(Date); New_Line; --for I in 1..368 loop -- Date := Previous_Date(Date); -- Put(Date); New_Line; --end loop; --Test_Leap_Years; end Lab4fg;
20.79
93
0.642617
1a23e69460338aaac71252a3b7e5c8d1636fc2ca
465
ads
Ada
examples/shared/hello_world_blinky/src/analog.ads
webgeeks/Ada_Drivers_Library
bcd4ca187f004ec2e5d7d7147870f1e713cf7db3
[ "BSD-3-Clause" ]
null
null
null
examples/shared/hello_world_blinky/src/analog.ads
webgeeks/Ada_Drivers_Library
bcd4ca187f004ec2e5d7d7147870f1e713cf7db3
[ "BSD-3-Clause" ]
null
null
null
examples/shared/hello_world_blinky/src/analog.ads
webgeeks/Ada_Drivers_Library
bcd4ca187f004ec2e5d7d7147870f1e713cf7db3
[ "BSD-3-Clause" ]
null
null
null
with STM32.Device; use STM32.Device; with HAL; use HAL; with STM32.ADC; use STM32.ADC; with STM32.GPIO; use STM32.GPIO; package analog is Converter : Analog_To_Digital_Converter renames ADC_1; Successful : Boolean; procedure Configure_Analog_Input (Input : GPIO_Point); procedure ADC_Init (Input : GPIO_Point; Channel : UInt5); function Analog_Read return uint16; flt : Short_Float := 0.0; end analog;
18.6
61
0.67957
9a5f6ae3428c2ff61311d5861266b73881d411e4
946
ads
Ada
Read Only/gdb-6.8/gdb/testsuite/gdb.ada/funcall_param/pck.ads
samyvic/OS-Project
1622bc1641876584964effd91d65ef02e92728e1
[ "Apache-2.0" ]
null
null
null
Read Only/gdb-6.8/gdb/testsuite/gdb.ada/funcall_param/pck.ads
samyvic/OS-Project
1622bc1641876584964effd91d65ef02e92728e1
[ "Apache-2.0" ]
null
null
null
Read Only/gdb-6.8/gdb/testsuite/gdb.ada/funcall_param/pck.ads
samyvic/OS-Project
1622bc1641876584964effd91d65ef02e92728e1
[ "Apache-2.0" ]
null
null
null
-- Copyright 2008 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 type Parameter is record One : Integer; Two : Integer; Three : Integer; end record; function Ident (P : Parameter) return Parameter; procedure Do_Nothing (P : in out Parameter); end Pck;
32.62069
73
0.714588
139d018eb3909316759be474e1192b7545afd196
865
ads
Ada
Read Only/gdb-7.12.1/gdb/testsuite/gdb.ada/rdv_wait/pck.ads
samyvic/OS-Project
1622bc1641876584964effd91d65ef02e92728e1
[ "Apache-2.0" ]
null
null
null
Read Only/gdb-7.12.1/gdb/testsuite/gdb.ada/rdv_wait/pck.ads
samyvic/OS-Project
1622bc1641876584964effd91d65ef02e92728e1
[ "Apache-2.0" ]
null
null
null
Read Only/gdb-7.12.1/gdb/testsuite/gdb.ada/rdv_wait/pck.ads
samyvic/OS-Project
1622bc1641876584964effd91d65ef02e92728e1
[ "Apache-2.0" ]
null
null
null
-- Copyright 2012-2017 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 procedure Break_Me; -- A procedure doing nothing, but which is a convenient anchor -- for inserting breakpoints. end Pck;
37.608696
73
0.734104
a0cbfedcb64de4438011fda53c5bac33ad29f40c
39,035
ads
Ada
ADL/drivers/stm32g474/stm32-adc.ads
JCGobbi/Nucleo-STM32G474RE
8dc1c4948ffeb11841eed10f1c3708f00fa1d832
[ "BSD-3-Clause" ]
null
null
null
ADL/drivers/stm32g474/stm32-adc.ads
JCGobbi/Nucleo-STM32G474RE
8dc1c4948ffeb11841eed10f1c3708f00fa1d832
[ "BSD-3-Clause" ]
null
null
null
ADL/drivers/stm32g474/stm32-adc.ads
JCGobbi/Nucleo-STM32G474RE
8dc1c4948ffeb11841eed10f1c3708f00fa1d832
[ "BSD-3-Clause" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015-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 STMicroelectronics nor the names of its -- -- contributors may be used to endorse or promote products derived -- -- from this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -- -- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -- -- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -- -- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -- -- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -- -- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- -- -- -- This file is based on: -- -- -- -- @file stm32f4xx_hal_adc.h -- -- @author MCD Application Team -- -- @version V1.3.1 -- -- @date 25-March-2015 -- -- @brief Header file of ADC HAL module. -- -- -- -- COPYRIGHT(c) 2014 STMicroelectronics -- ------------------------------------------------------------------------------ -- This file provides interfaces for the analog-to-digital converters on the -- STM32G4 (ARM Cortex M4F) microcontrollers from ST Microelectronics. -- Channels are mapped to GPIO_Point values as follows. See the STM32G474xx -- datasheet DS1228 rev 5 pg 57 chapter 4.10 Table 12. "STM32G474xB(C,E) pin -- definitions" in the column "Aditional functions". -- -- Channel ADC ADC ADC ADC ADC -- # 1 2 3 4 5 -- -- 0 -- 1 PA0 PA0 PB1 PE14 PA8 -- 2 PA1 PA1 PE9 PE15 PA9 -- 3 PA2 PA6 PE13 PB12 -- 4 PA3 PA7 PE7 PB14 -- 5 PB14 PC4 PB13 PB15 -- 6 PC0 PC0 PE8 PE8 PE8 -- 7 PC1 PC1 PD10 PD10 PD10 -- 8 PC2 PC2 PD11 PD11 PD11 -- 9 PC3 PC3 PD12 PD12 PD12 -- 10 PF0 PF1 PD13 PD13 PD13 -- 11 PB12 PC5 PD14 PD14 PD14 -- 12 PB2 PB0 PD8 PD8 -- 13 PA5 PD9 PD9 -- 14 PB11 PB11 PE10 PE10 PE10 -- 15 PB15 PE11 PE11 PE11 -- 16 PE12 PE12 PE12 -- 17 PA4 with System; use System; with Ada.Real_Time; use Ada.Real_Time; private with STM32_SVD.ADC; package STM32.ADC is pragma Elaborate_Body; type Analog_To_Digital_Converter is limited private; subtype Analog_Input_Channel is UInt5 range 0 .. 18; type ADC_Point is record ADC : access Analog_To_Digital_Converter; Channel : Analog_Input_Channel; end record; VRef_Channel : constant Analog_Input_Channel := 18; -- See RM0440 rev 6 pg 621 chapter 21.4.11. -- Note available with ADC_1 and ADC_2. VBat_Channel : constant Analog_Input_Channel := 17; -- See RM0440 rev 6 pg 621 chapter 21.4.11. -- Note only available with ADC_1. subtype TemperatureSensor_Channel is Analog_Input_Channel; -- TODO: ??? The below predicate does not compile with GNAT GPL 2015. -- with Static_Predicate => TemperatureSensor_Channel in 16 | VBat_Channel; -- See RM pg 389 section 13.3.3. On some MCUs the temperature channel is -- the same as the VBat channel, on others it is channel 16. Note only -- available with ADC_1. ADC_Supply_Voltage : constant := 3000; -- millivolts -- This is the ideal value, likely not the actual. procedure Enable (This : in out Analog_To_Digital_Converter) with Pre => not Enabled (This) and not Conversion_Started (This) and not Injected_Conversion_Started (This), Post => Enabled (This); procedure Disable (This : in out Analog_To_Digital_Converter) with Pre => Enabled (This) and not Conversion_Started (This) and not Injected_Conversion_Started (This), Post => not Enabled (This); function Enabled (This : Analog_To_Digital_Converter) return Boolean; function Disabled (This : Analog_To_Digital_Converter) return Boolean; type ADC_Resolution is (ADC_Resolution_12_Bits, -- 15 ADC Clock cycles ADC_Resolution_10_Bits, -- 12 ADC Clock cycles ADC_Resolution_8_Bits, -- 10 ADC Clock cycles ADC_Resolution_6_Bits); -- 8 ADC Clock cycles type Data_Alignment is (Right_Aligned, Left_Aligned); procedure Configure_Unit (This : in out Analog_To_Digital_Converter; Resolution : ADC_Resolution; Alignment : Data_Alignment) with Post => Current_Resolution (This) = Resolution and Current_Alignment (This) = Alignment; function Current_Resolution (This : Analog_To_Digital_Converter) return ADC_Resolution; function Current_Alignment (This : Analog_To_Digital_Converter) return Data_Alignment; type Channel_Sampling_Times is (Sample_2P5_Cycles, Sample_6P5_Cycles, Sample_12P5_Cycles, Sample_24P5_Cycles, Sample_47P5_Cycles, Sample_92P5_Cycles, Sample_247P5_Cycles, Sample_640P5_Cycles) with Size => 3; -- The elapsed time between the start of a conversion and the end of -- conversion is the sum of the configured sampling time plus the -- successive approximation time (SAR = 12.5 for 12 bit) depending on data -- resolution. See RM0440 rev 6 chapter 21.4.16 Timing. type External_Trigger is (Trigger_Disabled, Trigger_Rising_Edge, Trigger_Falling_Edge, Trigger_Both_Edges); type Regular_Channel_Rank is new Natural range 1 .. 16; type Injected_Channel_Rank is new Natural range 1 .. 4; type External_Events_Regular_Group is (Option_1, Option_2, Timer1_CC3_Event, Option_4, Timer3_TRGO_Event, Option_6, Option_7, Timer8_TRGO_Event, Timer8_TRGO2_Event, Timer1_TRGO_Event, Timer1_TRGO2_Event, Timer2_TRGO_Event, Timer4_TRGO_Event, Timer6_TRGO_Event, Timer15_TRGO_Event, Option_16, Timer20_TRGO_Event, Timer20_TRGO2_Event, Timer20_CC1_Event, Option_20, Option_21, HRTimer_ADC_TRG1_Event, HRTimer_ADC_TRG3_Event, HRTimer_ADC_TRG5_Event, HRTimer_ADC_TRG6_Event, HRTimer_ADC_TRG7_Event, HRTimer_ADC_TRG8_Event, HRTimer_ADC_TRG9_Event, HRTimer_ADC_TRG10_Event, LPTimer_OUT_Event, Timer7_TRGO_Event) with Size => 5; -- External triggers for regular channels. -- RM0440 Table 163 pg. 629 for ADC12 and Table 165 pg. 631 for ADC345. -- Differences between ADC12 and ADC345: -- Option ADC12 ADC345 -- 1 Timer1_CC1_Event Timer3_CC1_Event -- 2 Timer1_CC2_Event Timer2_CC3_Event -- 4 Timer2_CC2_Event Timer8_CC1 -- 6 Timer4_CC4_Event EXTI_Line2 -- 7 EXTI_Line11 Timer4_CC1 -- 16 Timer3_CC4_Event Timer2_CC1 -- 20 Timer20_CC2_Event HRTimer_ADC_TRG2_Event -- 21 Timer20_CC3_Event HRTimer_ADC_TRG4_Event for External_Events_Regular_Group use (Option_1 => 2#00000#, Option_2 => 2#00001#, Timer1_CC3_Event => 2#00010#, Option_4 => 2#00011#, Timer3_TRGO_Event => 2#00100#, Option_6 => 2#00101#, Option_7 => 2#00110#, Timer8_TRGO_Event => 2#00111#, Timer8_TRGO2_Event => 2#01000#, Timer1_TRGO_Event => 2#01001#, Timer1_TRGO2_Event => 2#01010#, Timer2_TRGO_Event => 2#01011#, Timer4_TRGO_Event => 2#01100#, Timer6_TRGO_Event => 2#01101#, Timer15_TRGO_Event => 2#01110#, Option_16 => 2#01111#, Timer20_TRGO_Event => 2#10000#, Timer20_TRGO2_Event => 2#10001#, Timer20_CC1_Event => 2#10010#, Option_20 => 2#10011#, Option_21 => 2#10100#, HRTimer_ADC_TRG1_Event => 2#10101#, HRTimer_ADC_TRG3_Event => 2#10110#, HRTimer_ADC_TRG5_Event => 2#10111#, HRTimer_ADC_TRG6_Event => 2#11000#, HRTimer_ADC_TRG7_Event => 2#11001#, HRTimer_ADC_TRG8_Event => 2#11010#, HRTimer_ADC_TRG9_Event => 2#11011#, HRTimer_ADC_TRG10_Event => 2#11100#, LPTimer_OUT_Event => 2#11101#, Timer7_TRGO_Event => 2#11110#); type Regular_Channel_Conversion_Trigger (Enabler : External_Trigger) is record case Enabler is when Trigger_Disabled => null; when others => Event : External_Events_Regular_Group; end case; end record; Software_Triggered : constant Regular_Channel_Conversion_Trigger := (Enabler => Trigger_Disabled); type Regular_Channel_Conversion is record Channel : Analog_Input_Channel; Sample_Time : Channel_Sampling_Times; end record; type Regular_Channel_Conversions is array (Regular_Channel_Rank range <>) of Regular_Channel_Conversion; procedure Configure_Regular_Conversions (This : in out Analog_To_Digital_Converter; Continuous : Boolean; Trigger : Regular_Channel_Conversion_Trigger; Conversions : Regular_Channel_Conversions) with Pre => Conversions'Length > 0, Post => Length_Matches_Expected (This, Conversions) and -- if there are multiple channels to be converted, we must want to -- scan them so we set Scan_Mode accordingly (if Conversions'Length > 1 then Scan_Mode_Enabled (This)) and -- The VBat and VRef internal connections are enabled if This is -- ADC_1 and the corresponding channels are included in the lists. (VBat_May_Be_Enabled (This, Conversions) or else VRef_TemperatureSensor_May_Be_Enabled (This, Conversions)); -- Configures all the regular channel conversions described in the array -- Conversions. Note that the order of conversions in the array is the -- order in which they are scanned, ie, their index is their "rank" in -- the data structure. Note that if the VBat and Temperature channels are -- the same channel, then only the VBat conversion takes place and only -- that one will be enabled, so we must check the two in that order. function Regular_Conversions_Expected (This : Analog_To_Digital_Converter) return Natural; -- Returns the total number of regular channel conversions specified in the -- hardware. function Scan_Mode_Enabled (This : Analog_To_Digital_Converter) return Boolean; -- Returns whether only one channel is converted, or if multiple channels -- are converted (i.e., scanned). Note that this is independent of whether -- the conversions are continuous. type External_Events_Injected_Group is (Timer1_TRGO_Event, Timer1_CC4_Event, Timer2_TRGO_Event, Option_4, Option_5, Timer4_TRGO_Event, Option_7, Timer8_CC4_Event, Timer1_TRGO2_Event, Timer8_TRGO_Event, Timer8_TRGO2_Event, Option_12, Timer3_TRGO_Event, Option_14, Timer6_TRGO_Event, Timer15_TRGO_Event, Timer20_TRGO_Event, Timer20_TRGO2_Event, Option_19, HRTimer_ADC_TRG2_Event, HRTimer_ADC_TRG4_Event, HRTimer_ADC_TRG5_Event, HRTimer_ADC_TRG6_Event, HRTimer_ADC_TRG7_Event, HRTimer_ADC_TRG8_Event, HRTimer_ADC_TRG9_Event, HRTimer_ADC_TRG10_Event, Option_28, Option_29, LPTimer_OUT_Event, Timer7_TRGO_Event) with Size => 5; -- External triggers for injected channels. RM0440 Table 164 pg. 630 -- and Table 166 pg. 632. -- Differences between ADC12 and ADC345: -- Option ADC12 ADC345 -- 4 Timer2_CC1_Event Timer8_CC2 -- 5 Timer3_CC4_Event Timer4_CC3 -- 7 EXTI_Line15 Timer4_CC4 -- 12 Timer3_CC3_Event Timer1_CC3 -- 14 Timer3_CC1_Event EXTI_Line3 -- 19 Timer20_CC4_Event Timer20_CC2 -- 28 Timer16_CC1_Event HRTimer_ADC_TRG1 -- 29 HRTimer_ADC_TRG3 for External_Events_Injected_Group use (Timer1_TRGO_Event => 2#00000#, Timer1_CC4_Event => 2#00001#, Timer2_TRGO_Event => 2#00010#, Option_4 => 2#00011#, Option_5 => 2#00100#, Timer4_TRGO_Event => 2#00101#, Option_7 => 2#00110#, Timer8_CC4_Event => 2#00111#, Timer1_TRGO2_Event => 2#01000#, Timer8_TRGO_Event => 2#01001#, Timer8_TRGO2_Event => 2#01010#, Option_12 => 2#01011#, Timer3_TRGO_Event => 2#01100#, Option_14 => 2#01101#, Timer6_TRGO_Event => 2#01110#, Timer15_TRGO_Event => 2#01111#, Timer20_TRGO_Event => 2#10000#, Timer20_TRGO2_Event => 2#10001#, Option_19 => 2#10010#, HRTimer_ADC_TRG2_Event => 2#10011#, HRTimer_ADC_TRG4_Event => 2#10100#, HRTimer_ADC_TRG5_Event => 2#10101#, HRTimer_ADC_TRG6_Event => 2#10110#, HRTimer_ADC_TRG7_Event => 2#10111#, HRTimer_ADC_TRG8_Event => 2#11000#, HRTimer_ADC_TRG9_Event => 2#11001#, HRTimer_ADC_TRG10_Event => 2#11010#, Option_28 => 2#11011#, Option_29 => 2#11100#, LPTimer_OUT_Event => 2#11101#, Timer7_TRGO_Event => 2#11110#); type Injected_Channel_Conversion_Trigger (Enabler : External_Trigger) is record case Enabler is when Trigger_Disabled => null; when others => Event : External_Events_Injected_Group; end case; end record; Software_Triggered_Injected : constant Injected_Channel_Conversion_Trigger := (Enabler => Trigger_Disabled); subtype Injected_Data_Offset is UInt12; type Injected_Channel_Conversion is record Channel : Analog_Input_Channel; Sample_Time : Channel_Sampling_Times; Offset : Injected_Data_Offset := 0; end record; type Injected_Channel_Conversions is array (Injected_Channel_Rank range <>) of Injected_Channel_Conversion; procedure Configure_Injected_Conversions (This : in out Analog_To_Digital_Converter; AutoInjection : Boolean; Trigger : Injected_Channel_Conversion_Trigger; Conversions : Injected_Channel_Conversions) with Pre => Conversions'Length > 0 and (if AutoInjection then Trigger = Software_Triggered_Injected) and (if AutoInjection then not Discontinuous_Mode_Injected_Enabled (This)), Post => Length_Is_Expected (This, Conversions) and -- The VBat and VRef internal connections are enabled if This is -- ADC_1 and the corresponding channels are included in the lists. (VBat_May_Be_Enabled (This, Conversions) or else VRef_TemperatureSensor_May_Be_Enabled (This, Conversions)); -- Configures all the injected channel conversions described in the array -- Conversions. Note that the order of conversions in the array is the -- order in which they are scanned, ie, their index is their "rank" in -- the data structure. Note that if the VBat and Temperature channels are -- the same channel, then only the VBat conversion takes place and only -- that one will be enabled, so we must check the two in that order. function Injected_Conversions_Expected (This : Analog_To_Digital_Converter) return Natural; -- Returns the total number of injected channel conversions to be done. function VBat_Enabled (This : Analog_To_Digital_Converter) return Boolean; -- Returns whether the hardware has the VBat internal connection enabled. function VRef_TemperatureSensor_Enabled (This : Analog_To_Digital_Converter) return Boolean; -- Returns whether the hardware has the VRef or temperature sensor internal -- connection enabled. procedure Start_Conversion (This : in out Analog_To_Digital_Converter) with Pre => Enabled (This) and Regular_Conversions_Expected (This) > 0; -- Starts the conversion(s) for the regular channels. procedure Stop_Conversion (This : in out Analog_To_Digital_Converter) with Pre => Conversion_Started (This) and not Disabled (This); -- Stops the conversion(s) for the regular channels. function Conversion_Started (This : Analog_To_Digital_Converter) return Boolean; -- Returns whether the regular channels' conversions have started. Note -- that the ADC hardware clears the corresponding bit immediately, as -- part of starting. function Conversion_Value (This : Analog_To_Digital_Converter) return UInt16 with Inline; -- Returns the latest regular conversion result for the specified ADC unit. function Data_Register_Address (This : Analog_To_Digital_Converter) return System.Address with Inline; -- Returns the address of the ADC Data Register. This is exported -- STRICTLY for the sake of clients using DMA. All other -- clients of this package should use the Conversion_Value functions! -- Seriously, don't use this function otherwise. procedure Start_Injected_Conversion (This : in out Analog_To_Digital_Converter) with Pre => Enabled (This) and Injected_Conversions_Expected (This) > 0; -- Note that the ADC hardware clears the corresponding bit immediately, as -- part of starting. function Injected_Conversion_Started (This : Analog_To_Digital_Converter) return Boolean; -- Returns whether the injected channels' conversions have started. function Injected_Conversion_Value (This : Analog_To_Digital_Converter; Rank : Injected_Channel_Rank) return UInt16 with Inline; -- Returns the latest conversion result for the analog input channel at -- the injected sequence position given by Rank on the specified ADC unit. -- -- Note that the offset corresponding to the specified Rank is subtracted -- automatically, so check the sign bit for a negative result. type CDR_Data is (Master, Slave); function Multimode_Conversion_Value (This : Analog_To_Digital_Converter; Value : CDR_Data) return UInt16; function Multimode_Conversion_Value (This : Analog_To_Digital_Converter) return UInt32 with inline; -- Returns the latest ADC_1, ADC_2 or ADC_3, ADC_4, ADC_5 regular channel -- conversions' results based on the selected multi ADC mode. -- Discontinuous Management -------------------------------------------------------- type Discontinuous_Mode_Channel_Count is range 1 .. 8; -- Note this uses a biased representation implicitly because the underlying -- representational bit values are 0 ... 7. procedure Enable_Discontinuous_Mode (This : in out Analog_To_Digital_Converter; Regular : Boolean; -- if False, applies to Injected channels Count : Discontinuous_Mode_Channel_Count) with Pre => not AutoInjection_Enabled (This), Post => (if Regular then (Discontinuous_Mode_Regular_Enabled (This)) and (not Discontinuous_Mode_Injected_Enabled (This)) else (not Discontinuous_Mode_Regular_Enabled (This)) and (Discontinuous_Mode_Injected_Enabled (This))); -- Enables discontinuous mode and sets the count. If Regular is True, -- enables the mode only for regular channels. If Regular is False, enables -- the mode only for Injected channels. The note in RM 13.3.10, pg 393, -- says we cannot enable the mode for both regular and injected channels -- at the same time, so this flag ensures we follow that rule. procedure Disable_Discontinuous_Mode_Regular (This : in out Analog_To_Digital_Converter) with Post => not Discontinuous_Mode_Regular_Enabled (This); procedure Disable_Discontinuous_Mode_Injected (This : in out Analog_To_Digital_Converter) with Post => not Discontinuous_Mode_Injected_Enabled (This); function Discontinuous_Mode_Regular_Enabled (This : Analog_To_Digital_Converter) return Boolean; function Discontinuous_Mode_Injected_Enabled (This : Analog_To_Digital_Converter) return Boolean; function AutoInjection_Enabled (This : Analog_To_Digital_Converter) return Boolean; -- DMA Management -------------------------------------------------------- procedure Enable_DMA (This : in out Analog_To_Digital_Converter) with Pre => not Conversion_Started (This) and not Injected_Conversion_Started (This), Post => DMA_Enabled (This); procedure Disable_DMA (This : in out Analog_To_Digital_Converter) with Pre => not Conversion_Started (This) and not Injected_Conversion_Started (This), Post => not DMA_Enabled (This); function DMA_Enabled (This : Analog_To_Digital_Converter) return Boolean; procedure Enable_DMA_After_Last_Transfer (This : in out Analog_To_Digital_Converter) with Pre => not Conversion_Started (This) and not Injected_Conversion_Started (This), Post => DMA_Enabled_After_Last_Transfer (This); procedure Disable_DMA_After_Last_Transfer (This : in out Analog_To_Digital_Converter) with Pre => not Conversion_Started (This) and not Injected_Conversion_Started (This), Post => not DMA_Enabled_After_Last_Transfer (This); function DMA_Enabled_After_Last_Transfer (This : Analog_To_Digital_Converter) return Boolean; -- Analog Watchdog ------------------------------------------------------- subtype Watchdog_Threshold is UInt12; type Analog_Watchdog_Modes is (Watchdog_All_Regular_Channels, Watchdog_All_Injected_Channels, Watchdog_All_Both_Kinds, Watchdog_Single_Regular_Channel, Watchdog_Single_Injected_Channel, Watchdog_Single_Both_Kinds); subtype Multiple_Channels_Watchdog is Analog_Watchdog_Modes range Watchdog_All_Regular_Channels .. Watchdog_All_Both_Kinds; procedure Watchdog_Enable_Channels (This : in out Analog_To_Digital_Converter; Mode : Multiple_Channels_Watchdog; Low : Watchdog_Threshold; High : Watchdog_Threshold) with Pre => not Watchdog_Enabled (This), Post => Watchdog_Enabled (This); -- Enables the watchdog on all channels; channel kind depends on Mode. -- A call to this routine is considered a complete configuration of the -- watchdog so do not call the other enabler routine (for a single channel) -- while this configuration is active. You must first disable the watchdog -- if you want to enable the watchdog for a single channel. -- see RM0440 rev 6 Chapter 21.4.28, pg 659, Table 169. subtype Single_Channel_Watchdog is Analog_Watchdog_Modes range Watchdog_Single_Regular_Channel .. Watchdog_Single_Both_Kinds; procedure Watchdog_Enable_Channel (This : in out Analog_To_Digital_Converter; Mode : Single_Channel_Watchdog; Channel : Analog_Input_Channel; Low : Watchdog_Threshold; High : Watchdog_Threshold) with Pre => not Watchdog_Enabled (This), Post => Watchdog_Enabled (This); -- Enables the watchdog on this single channel, and no others. The kind of -- channel depends on Mode. A call to this routine is considered a complete -- configuration of the watchdog so do not call the other enabler routine -- (for all channels) while this configuration is active. You must -- first disable the watchdog if you want to enable the watchdog for -- all channels. -- see RM0440 rev 6 Chapter 21.4.28, pg 659, Table 169. procedure Watchdog_Disable (This : in out Analog_To_Digital_Converter) with Post => not Watchdog_Enabled (This); -- Whether watching a single channel or all of them, the watchdog is now -- disabled. function Watchdog_Enabled (This : Analog_To_Digital_Converter) return Boolean; type Analog_Watchdog_Filtering is (No_Filtering, Two_Detections, Three_Detections, Four_Detections, Five_Detections, Six_Detections, Seven_Detections, Eight_Detections); -- Consecutive detection generates an AWDx flag or an interrupt. procedure Watchdog_Enable_Filtering (This : in out Analog_To_Digital_Converter; Filter : Analog_Watchdog_Filtering); type Analog_Window_Watchdog is (Watchdog_2, Watchdog_3); type Analog_Input_Channels is array (Analog_Input_Channel range <>) of Analog_Input_Channel; procedure Watchdog_Enable_Channels (This : in out Analog_To_Digital_Converter; Watchdog : Analog_Window_Watchdog; Channels : Analog_Input_Channels; Low : Watchdog_Threshold; High : Watchdog_Threshold) with Pre => not Conversion_Started (This), Post => Watchdog_Enabled (This, Watchdog); -- Enable the watchdog 2 or 3 for any selected channel. The channels -- selected by AWDxCH must be also selected into the ADC regular or injected -- sequence registers SQRi or JSQRi registers. The watchdog is disabled when -- none channel is selected. procedure Watchdog_Disable_Channels (This : in out Analog_To_Digital_Converter; Watchdog : Analog_Window_Watchdog; Channels : Analog_Input_Channels) with Pre => not Conversion_Started (This); procedure Watchdog_Disable (This : in out Analog_To_Digital_Converter; Watchdog : Analog_Window_Watchdog) with Post => not Watchdog_Enabled (This, Watchdog); -- The watchdog is disabled when none channel is selected. function Watchdog_Enabled (This : Analog_To_Digital_Converter; Watchdog : Analog_Window_Watchdog) return Boolean; -- The watchdog is enabled when any channel is selected. -- Status Management ----------------------------------------------------- type ADC_Status_Flag is (ADC_Ready, Regular_Channel_Conversion_Completed, Regular_Sequence_Conversion_Completed, Injected_Channel_Conversion_Completed, Injected_Sequence_Conversion_Completed, Analog_Watchdog_1_Event_Occurred, Analog_Watchdog_2_Event_Occurred, Analog_Watchdog_3_Event_Occurred, Sampling_Completed, Overrun, Injected_Context_Queue_Overflow); function Status (This : Analog_To_Digital_Converter; Flag : ADC_Status_Flag) return Boolean with Inline; -- Returns whether Flag is indicated, ie set in the Status Register. procedure Clear_Status (This : in out Analog_To_Digital_Converter; Flag : ADC_Status_Flag) with Inline, Post => not Status (This, Flag); procedure Poll_For_Status (This : in out Analog_To_Digital_Converter; Flag : ADC_Status_Flag; Success : out Boolean; Timeout : Time_Span := Time_Span_Last); -- Continuously polls for the specified status flag to be set, up to the -- deadline computed by the value of Clock + Timeout. Sets the Success -- argument accordingly. The default Time_Span_Last value is the largest -- possible value, thereby setting a very long, but not infinite, timeout. -- Interrupt Management -------------------------------------------------- type ADC_Interrupts is (ADC_Ready, Regular_Channel_Conversion_Complete, Regular_Sequence_Conversion_Complete, Injected_Channel_Conversion_Complete, Injected_Sequence_Conversion_Complete, Analog_Watchdog_1_Event_Occurr, Analog_Watchdog_2_Event_Occurr, Analog_Watchdog_3_Event_Occurr, Sampling_Complete, Overrun, Injected_Context_Queue_Overflow); procedure Enable_Interrupts (This : in out Analog_To_Digital_Converter; Source : ADC_Interrupts) with Inline, Post => Interrupt_Enabled (This, Source); procedure Disable_Interrupts (This : in out Analog_To_Digital_Converter; Source : ADC_Interrupts) with Inline, Post => not Interrupt_Enabled (This, Source); function Interrupt_Enabled (This : Analog_To_Digital_Converter; Source : ADC_Interrupts) return Boolean with Inline; procedure Clear_Interrupt_Pending (This : in out Analog_To_Digital_Converter; Source : ADC_Interrupts) with Inline; -- Common Properties ------------------------------------------------------ type ADC_Prescaler is (Div_1, Div_2, Div_4, Div_6, Div_8, Div_10, Div_12, Div_16, Div_32, Div_64, Div_128, Div_256) with Size => 4; type ADC_Clock_Mode is (CLK_ADC, PCLK2_Div_1, PCLK2_Div_2, PCLK2_Div_4); type Dual_ADC_DMA_Modes is (Disabled, DMA_Mode_1, DMA_Mode_2); for Dual_ADC_DMA_Modes use (Disabled => 2#00#, DMA_Mode_1 => 2#10#, DMA_Mode_2 => 2#11#); type Sampling_Delay_Selections is (Sampling_Delay_5_Cycles, Sampling_Delay_6_Cycles, Sampling_Delay_7_Cycles, Sampling_Delay_8_Cycles, Sampling_Delay_9_Cycles, Sampling_Delay_10_Cycles, Sampling_Delay_11_Cycles, Sampling_Delay_12_Cycles, Sampling_Delay_13_Cycles, Sampling_Delay_14_Cycles, Sampling_Delay_15_Cycles, Sampling_Delay_16_Cycles, Sampling_Delay_17_Cycles, Sampling_Delay_18_Cycles, Sampling_Delay_19_Cycles, Sampling_Delay_20_Cycles); type Multi_ADC_Mode_Selections is (Independent, Dual_Combined_Regular_Injected_Simultaneous, Dual_Combined_Regular_Simultaneous_Alternate_Trigger, Dual_Combined_Interleaved_Injected_Simultaneous, Dual_Injected_Simultaneous, Dual_Regular_Simultaneous, Dual_Interleaved, Dual_Alternate_Trigger); -- In dual mode, master (ADC1/ADC3) and slave (ADC2/ADC4) ADCs work -- together and need only a start conversion on the master channel. -- ADC5 is single converter. for Multi_ADC_Mode_Selections use (Independent => 2#00000#, Dual_Combined_Regular_Injected_Simultaneous => 2#00001#, Dual_Combined_Regular_Simultaneous_Alternate_Trigger => 2#00010#, Dual_Combined_Interleaved_Injected_Simultaneous => 2#00011#, Dual_Injected_Simultaneous => 2#00101#, Dual_Regular_Simultaneous => 2#00110#, Dual_Interleaved => 2#00111#, Dual_Alternate_Trigger => 2#01001#); procedure Configure_Common_Properties (This : Analog_To_Digital_Converter; Mode : Multi_ADC_Mode_Selections; Prescaler : ADC_Prescaler; Clock_Mode : ADC_Clock_Mode; DMA_Mode : Dual_ADC_DMA_Modes; Sampling_Delay : Sampling_Delay_Selections); -- These properties are common to all the ADC units on the board. -- These Multi_DMA_Mode commands needs to be separate from the -- Configure_Common_Properties procedure for the sake of dealing -- with overruns etc. procedure Multi_Enable_DMA_After_Last_Transfer (This : Analog_To_Digital_Converter) with Pre => not Conversion_Started (This), Post => Multi_DMA_Enabled_After_Last_Transfer (This); -- Make shure to execute this procedure only when conversion is -- not started. procedure Multi_Disable_DMA_After_Last_Transfer (This : Analog_To_Digital_Converter) with Pre => not Conversion_Started (This), Post => not Multi_DMA_Enabled_After_Last_Transfer (This); -- Make shure to execute this procedure only when conversion is -- not started. function Multi_DMA_Enabled_After_Last_Transfer (This : Analog_To_Digital_Converter) return Boolean; -- Queries ---------------------------------------------------------------- function VBat_Conversion (This : Analog_To_Digital_Converter; Channel : Analog_Input_Channel) return Boolean with Inline; function VRef_TemperatureSensor_Conversion (This : Analog_To_Digital_Converter; Channel : Analog_Input_Channel) return Boolean with Inline; -- Returns whether the ADC unit and channel specified are that of a VRef -- OR a temperature sensor conversion. Note that one control bit is used -- to enable either one, ie it is shared. function VBat_May_Be_Enabled (This : Analog_To_Digital_Converter; These : Regular_Channel_Conversions) return Boolean is ((for all Conversion of These => (if VBat_Conversion (This, Conversion.Channel) then VBat_Enabled (This)))); function VBat_May_Be_Enabled (This : Analog_To_Digital_Converter; These : Injected_Channel_Conversions) return Boolean is ((for all Conversion of These => (if VBat_Conversion (This, Conversion.Channel) then VBat_Enabled (This)))); function VRef_TemperatureSensor_May_Be_Enabled (This : Analog_To_Digital_Converter; These : Regular_Channel_Conversions) return Boolean is (for all Conversion of These => (if VRef_TemperatureSensor_Conversion (This, Conversion.Channel) then VRef_TemperatureSensor_Enabled (This))); function VRef_TemperatureSensor_May_Be_Enabled (This : Analog_To_Digital_Converter; These : Injected_Channel_Conversions) return Boolean is (for all Conversion of These => (if VRef_TemperatureSensor_Conversion (This, Conversion.Channel) then VRef_TemperatureSensor_Enabled (This))); -- The *_Conversions_Expected functions will always return at least the -- value 1 because the hardware uses a biased representation (in which -- zero indicates the value one, one indicates the value two, and so on). -- Therefore, we don't invoke the functions unless we know they will be -- greater than zero. function Length_Matches_Expected (This : Analog_To_Digital_Converter; These : Regular_Channel_Conversions) return Boolean is (if These'Length > 0 then Regular_Conversions_Expected (This) = These'Length); function Length_Is_Expected (This : Analog_To_Digital_Converter; These : Injected_Channel_Conversions) return Boolean is (if These'Length > 0 then Injected_Conversions_Expected (This) = These'Length); private ADC_Stabilization : constant Time_Span := Microseconds (3); Temperature_Sensor_Stabilization : constant Time_Span := Microseconds (10); -- The RM, section 13.3.6, says stabilization times are required. These -- values are specified in the datasheets, eg section 5.3.20, pg 129, -- and section 5.3.21, pg 134, of the STM32F405/7xx, DocID022152 Rev 4. procedure Configure_Regular_Channel (This : in out Analog_To_Digital_Converter; Channel : Analog_Input_Channel; Rank : Regular_Channel_Rank; Sample_Time : Channel_Sampling_Times); procedure Configure_Injected_Channel (This : in out Analog_To_Digital_Converter; Channel : Analog_Input_Channel; Rank : Injected_Channel_Rank; Sample_Time : Channel_Sampling_Times; Offset : Injected_Data_Offset); procedure Enable_VBat_Connection (This : Analog_To_Digital_Converter) with Post => VBat_Enabled (This); procedure Enable_VRef_TemperatureSensor_Connection (This : Analog_To_Digital_Converter) with Post => VRef_TemperatureSensor_Enabled (This); -- One bit controls both the VRef and the temperature internal connections. type Analog_To_Digital_Converter is new STM32_SVD.ADC.ADC1_Peripheral; function VBat_Conversion (This : Analog_To_Digital_Converter; Channel : Analog_Input_Channel) return Boolean is (This'Address = STM32_SVD.ADC.ADC1_Periph'Address and Channel = VBat_Channel); function VRef_TemperatureSensor_Conversion (This : Analog_To_Digital_Converter; Channel : Analog_Input_Channel) return Boolean is (This'Address = STM32_SVD.ADC.ADC1_Periph'Address and (Channel in VRef_Channel | TemperatureSensor_Channel)); end STM32.ADC;
39.509109
89
0.650929
9af3cb7a8f82e74f0e5d54625fb2adf52f110f17
6,246
adb
Ada
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-pack51.adb
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-pack51.adb
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-pack51.adb
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- S Y S T E M . P A C K _ 5 1 -- -- -- -- B o d y -- -- -- -- Copyright (C) 1992-2020, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ with System.Storage_Elements; with System.Unsigned_Types; package body System.Pack_51 is subtype Bit_Order is System.Bit_Order; Reverse_Bit_Order : constant Bit_Order := Bit_Order'Val (1 - Bit_Order'Pos (System.Default_Bit_Order)); 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_51; 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; type Rev_Cluster is new Cluster with Bit_Order => Reverse_Bit_Order, Scalar_Storage_Order => Reverse_Bit_Order; type Rev_Cluster_Ref is access Rev_Cluster; ------------ -- Get_51 -- ------------ function Get_51 (Arr : System.Address; N : Natural; Rev_SSO : Boolean) return Bits_51 is A : constant System.Address := Arr + Bits * Ofs (Uns (N) / 8); C : Cluster_Ref with Address => A'Address, Import; RC : Rev_Cluster_Ref with Address => A'Address, Import; begin if Rev_SSO then case N07 (Uns (N) mod 8) is when 0 => return RC.E0; when 1 => return RC.E1; when 2 => return RC.E2; when 3 => return RC.E3; when 4 => return RC.E4; when 5 => return RC.E5; when 6 => return RC.E6; when 7 => return RC.E7; end case; else 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 if; end Get_51; ------------ -- Set_51 -- ------------ procedure Set_51 (Arr : System.Address; N : Natural; E : Bits_51; Rev_SSO : Boolean) is A : constant System.Address := Arr + Bits * Ofs (Uns (N) / 8); C : Cluster_Ref with Address => A'Address, Import; RC : Rev_Cluster_Ref with Address => A'Address, Import; begin if Rev_SSO then case N07 (Uns (N) mod 8) is when 0 => RC.E0 := E; when 1 => RC.E1 := E; when 2 => RC.E2 := E; when 3 => RC.E3 := E; when 4 => RC.E4 := E; when 5 => RC.E5 := E; when 6 => RC.E6 := E; when 7 => RC.E7 := E; end case; else 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 if; end Set_51; end System.Pack_51;
39.531646
78
0.460775
a0357e36690185b09a2ef818957e33b7e98b2b8c
4,874
ada
Ada
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/ce/ce3705b.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/ce/ce3705b.ada
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
null
null
null
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/ce/ce3705b.ada
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
2
2020-07-27T00:22:36.000Z
2021-04-01T09:41:02.000Z
-- CE3705B.ADA -- Grant of Unlimited Rights -- -- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687, -- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained -- unlimited rights in the software and documentation contained herein. -- Unlimited rights are defined in DFAR 252.227-7013(a)(19). By making -- this public release, the Government intends to confer upon all -- recipients unlimited rights equal to those held by the Government. -- These rights include rights to use, duplicate, release or disclose the -- released technical data and computer software in whole or in part, in -- any manner and for any purpose whatsoever, and to have or permit others -- to do so. -- -- DISCLAIMER -- -- ALL MATERIALS OR INFORMATION HEREIN RELEASED, MADE AVAILABLE OR -- DISCLOSED ARE AS IS. THE GOVERNMENT MAKES NO EXPRESS OR IMPLIED -- WARRANTY AS TO ANY MATTER WHATSOEVER, INCLUDING THE CONDITIONS OF THE -- SOFTWARE, DOCUMENTATION OR OTHER INFORMATION RELEASED, MADE AVAILABLE -- OR DISCLOSED, OR THE OWNERSHIP, MERCHANTABILITY, OR FITNESS FOR A -- PARTICULAR PURPOSE OF SAID MATERIAL. --* -- OBJECTIVE: -- IF WIDTH IS ZERO, CHECK THAT END_ERROR IS RAISED IF THE ONLY -- REMAINING CHARACTERS IN THE FILE CONSIST OF LINE TERMINATORS, -- PAGE TERMINATORS, SPACES, AND HORIZONTAL TABULATION CHARACTERS. -- AFTER END_ERROR IS RAISED, THE FILE SHOULD BE POSITIONED BEFORE -- THE FILE TERMINATOR AND END_OF_FILE SHOULD BE TRUE. -- APPLICABILITY CRITERIA: -- THIS TEST IS ONLY APPLICABLE TO IMPLEMENTATIONS THAT SUPPORT -- TEXT FILES. -- HISTORY: -- JLH 07/15/88 CREATED ORIGINAL TEST. WITH REPORT; USE REPORT; WITH TEXT_IO; USE TEXT_IO; PROCEDURE CE3705B IS PACKAGE IIO IS NEW INTEGER_IO (INTEGER); USE IIO; FILE : FILE_TYPE; ITEM : INTEGER; INCOMPLETE : EXCEPTION; BEGIN TEST ("CE3705B", "IF WIDTH IS ZERO, CHECK THAT END_ERROR IS " & "RAISED IF THE ONLY REMAINING CHARACTERS IN " & "THE FILE CONSIST OF LINE TERMINATORS, PAGE " & "TERMINATORS, SPACES, AND HORIZONTAL TAB " & "CHARACTERS. AFTER END_ERROR IS RAISED, THE " & "FILE SHOULD BE POSITIONED BEFORE THE FILE " & "TERMINATOR AND END_OF_FILE SHOULD BE TRUE"); BEGIN BEGIN CREATE (FILE, OUT_FILE, LEGAL_FILE_NAME); EXCEPTION WHEN USE_ERROR => NOT_APPLICABLE ("USE_ERROR RAISED ON CREATE " & "WITH MODE OUT_FILE"); RAISE INCOMPLETE; WHEN NAME_ERROR => NOT_APPLICABLE ("NAME_ERROR RAISED ON CREATE " & "WITH MODE OUT_FILE"); RAISE INCOMPLETE; WHEN OTHERS => FAILED ("UNEXPECTED EXCEPTION RAISED ON CREATE"); RAISE INCOMPLETE; END; PUT (FILE, 2); NEW_LINE (FILE); PUT (FILE, 3); NEW_LINE (FILE); NEW_PAGE (FILE); PUT (FILE, ASCII.HT); NEW_LINE (FILE); NEW_LINE (FILE); NEW_PAGE (FILE); PUT (FILE, ' '); PUT (FILE, ASCII.HT); PUT (FILE, ' '); CLOSE (FILE); BEGIN OPEN (FILE, IN_FILE, LEGAL_FILE_NAME); EXCEPTION WHEN USE_ERROR => NOT_APPLICABLE ("USE_ERROR RAISED ON OPEN WITH " & "MODE IN_FILE"); RAISE INCOMPLETE; WHEN OTHERS => FAILED ("UNEXPECTED EXCEPTION RAISED ON OPEN"); RAISE INCOMPLETE; END; GET (FILE, ITEM); IF ITEM /= 2 THEN FAILED ("INCORRECT VALUE READ - 1"); END IF; GET (FILE, ITEM); IF ITEM /= 3 THEN FAILED ("INCORRECT VALUE READ - 2"); END IF; BEGIN GET (FILE, ITEM, WIDTH => 0); FAILED ("END_ERROR NOT RAISED FOR GET"); EXCEPTION WHEN END_ERROR => NULL; WHEN OTHERS => FAILED ("UNEXPECTED EXCEPTION RAISED ON GET"); END; IF NOT END_OF_FILE(FILE) THEN FAILED ("END_OF_FILE NOT TRUE AFTER RAISING EXCEPTION"); END IF; BEGIN DELETE (FILE); EXCEPTION WHEN USE_ERROR => NULL; END; EXCEPTION WHEN INCOMPLETE => NULL; END; RESULT; END CE3705B;
33.613793
79
0.539803
9ad7923be0f418bbff28741f7101827db486475f
1,282
ads
Ada
file/ada_pkg_generic/genpkg.ads
gerr135/kdevelop_templates
e11ab281d1ac3d6a989b0dd6eb3b5cf6ed2a4526
[ "Unlicense" ]
null
null
null
file/ada_pkg_generic/genpkg.ads
gerr135/kdevelop_templates
e11ab281d1ac3d6a989b0dd6eb3b5cf6ed2a4526
[ "Unlicense" ]
null
null
null
file/ada_pkg_generic/genpkg.ads
gerr135/kdevelop_templates
e11ab281d1ac3d6a989b0dd6eb3b5cf6ed2a4526
[ "Unlicense" ]
null
null
null
{% load kdev_filters %} {% block license_header %} {% if license %} -- {{ license|lines_prepend:"-- " }} -- {% endif %} {% endblock license_header %} generic {% for m in members %} type {{ m.name }} is {{ m.type|default:"private" }}; {% endfor %} with function Img(E : Key_Type) return String; package {{ name }} is Debug : Boolean := False; -- set this to True to get some reporting on the go.. type {{ name }} is {% if base_classes %}new {% for inh in base_classes %}{{ inh.baseType }}{% if not forloop.last %} and {% endif %}{% endfor %} with {% endif %}private; {% for f in functions %} {% with f.arguments as arguments %} {% if f.returnType %} function {{ f.name }} ({% include "arguments_types_names.txt" %}) return {{ f.returnType }}; {% else %} procedure {{ f.name }}({% include "arguments_types_names.txt" %}); {% endif %} {% endwith %} {% endfor %} private type {{ name }} is {% if base_classes %}new {% for inh in base_classes %}{{ inh.baseType }}{% if not forloop.last %} and {% endif %}{% endfor %} with {% endif %}record -- entries here end record; {% for method in methods %} procedure {{ method.name }}({% include "arguments_names.txt" %}); {% endfor %} end {{ name }};
24.653846
173
0.578003
22b62191bd042cf8517a40f74d26e1bfb1433e82
15,908
ads
Ada
src/fonts/geste_fonts-freesansoblique6pt7b.ads
Fabien-Chouteau/GESTE
5ac814906fdb49d880db60cbb17279cbbb777336
[ "BSD-3-Clause" ]
13
2018-07-31T12:11:46.000Z
2021-11-19T14:16:46.000Z
src/fonts/geste_fonts-freesansoblique6pt7b.ads
gregkrsak/GESTE
5ac814906fdb49d880db60cbb17279cbbb777336
[ "BSD-3-Clause" ]
1
2018-10-22T21:41:59.000Z
2018-10-22T21:41:59.000Z
src/fonts/geste_fonts-freesansoblique6pt7b.ads
gregkrsak/GESTE
5ac814906fdb49d880db60cbb17279cbbb777336
[ "BSD-3-Clause" ]
4
2020-07-03T10:03:13.000Z
2022-02-10T03:35:07.000Z
package GESTE_Fonts.FreeSansOblique6pt7b is Font : constant Bitmap_Font_Ref; private FreeSansOblique6pt7bBitmaps : aliased constant Font_Bitmap := ( 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#01#, 16#00#, 16#20#, 16#04#, 16#00#, 16#80#, 16#20#, 16#04#, 16#00#, 16#80#, 16#00#, 16#02#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#02#, 16#80#, 16#50#, 16#0A#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#14#, 16#04#, 16#81#, 16#F8#, 16#14#, 16#04#, 16#81#, 16#F8#, 16#14#, 16#05#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#01#, 16#E0#, 16#54#, 16#0A#, 16#01#, 16#40#, 16#3C#, 16#02#, 16#C1#, 16#48#, 16#2A#, 16#03#, 16#80#, 16#40#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#01#, 16#84#, 16#49#, 16#09#, 16#41#, 16#50#, 16#3A#, 16#00#, 16#98#, 16#24#, 16#89#, 16#11#, 16#1C#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#E0#, 16#24#, 16#04#, 16#80#, 16#E0#, 16#18#, 16#05#, 16#C1#, 16#18#, 16#23#, 16#03#, 16#A0#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#02#, 16#00#, 16#40#, 16#08#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#80#, 16#20#, 16#04#, 16#01#, 16#00#, 16#20#, 16#04#, 16#01#, 16#00#, 16#20#, 16#04#, 16#00#, 16#80#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#40#, 16#08#, 16#00#, 16#80#, 16#10#, 16#02#, 16#00#, 16#80#, 16#10#, 16#02#, 16#00#, 16#80#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#01#, 16#00#, 16#58#, 16#04#, 16#01#, 16#40#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#08#, 16#01#, 16#01#, 16#F8#, 16#08#, 16#01#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#30#, 16#04#, 16#00#, 16#80#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#0E#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#04#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#80#, 16#20#, 16#04#, 16#01#, 16#00#, 16#20#, 16#08#, 16#01#, 16#00#, 16#40#, 16#08#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#01#, 16#C0#, 16#24#, 16#08#, 16#81#, 16#10#, 16#42#, 16#08#, 16#41#, 16#10#, 16#22#, 16#03#, 16#80#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#40#, 16#18#, 16#06#, 16#00#, 16#40#, 16#08#, 16#01#, 16#00#, 16#20#, 16#08#, 16#01#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#01#, 16#E0#, 16#44#, 16#00#, 16#80#, 16#10#, 16#04#, 16#03#, 16#00#, 16#80#, 16#20#, 16#07#, 16#C0#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#01#, 16#E0#, 16#64#, 16#00#, 16#80#, 16#10#, 16#0C#, 16#00#, 16#C1#, 16#08#, 16#22#, 16#07#, 16#80#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#20#, 16#08#, 16#03#, 16#00#, 16#A0#, 16#24#, 16#08#, 16#81#, 16#F8#, 16#04#, 16#00#, 16#80#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#01#, 16#E0#, 16#20#, 16#08#, 16#01#, 16#E0#, 16#26#, 16#00#, 16#40#, 16#08#, 16#22#, 16#07#, 16#80#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#E0#, 16#24#, 16#08#, 16#01#, 16#E0#, 16#66#, 16#08#, 16#41#, 16#08#, 16#32#, 16#03#, 16#80#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#03#, 16#F0#, 16#04#, 16#00#, 16#80#, 16#20#, 16#08#, 16#02#, 16#00#, 16#40#, 16#10#, 16#02#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#01#, 16#E0#, 16#64#, 16#08#, 16#81#, 16#10#, 16#1C#, 16#0C#, 16#C1#, 16#08#, 16#22#, 16#03#, 16#80#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#01#, 16#C0#, 16#44#, 16#08#, 16#81#, 16#10#, 16#26#, 16#07#, 16#40#, 16#10#, 16#22#, 16#03#, 16#80#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#01#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#04#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#01#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#30#, 16#04#, 16#00#, 16#80#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#08#, 16#0E#, 16#06#, 16#01#, 16#80#, 16#0C#, 16#00#, 16#60#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#0F#, 16#C0#, 16#00#, 16#3F#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#03#, 16#00#, 16#18#, 16#00#, 16#C0#, 16#30#, 16#38#, 16#08#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#01#, 16#E0#, 16#66#, 16#00#, 16#80#, 16#10#, 16#0C#, 16#01#, 16#00#, 16#40#, 16#00#, 16#01#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#7E#, 16#18#, 16#44#, 16#F1#, 16#26#, 16#48#, 16#89#, 16#11#, 16#24#, 16#A7#, 16#E6#, 16#00#, 16#60#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#60#, 16#1C#, 16#02#, 16#80#, 16#90#, 16#12#, 16#07#, 16#C0#, 16#88#, 16#21#, 16#8C#, 16#10#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#01#, 16#F0#, 16#23#, 16#08#, 16#41#, 16#08#, 16#3E#, 16#04#, 16#21#, 16#84#, 16#21#, 16#87#, 16#E0#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#F0#, 16#21#, 16#08#, 16#01#, 16#00#, 16#60#, 16#08#, 16#01#, 16#04#, 16#11#, 16#83#, 16#C0#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#01#, 16#F0#, 16#23#, 16#08#, 16#21#, 16#04#, 16#20#, 16#84#, 16#31#, 16#84#, 16#21#, 16#07#, 16#C0#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#01#, 16#F8#, 16#20#, 16#08#, 16#01#, 16#00#, 16#3F#, 16#04#, 16#01#, 16#80#, 16#20#, 16#07#, 16#E0#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#01#, 16#F8#, 16#20#, 16#08#, 16#01#, 16#00#, 16#3E#, 16#04#, 16#01#, 16#80#, 16#20#, 16#04#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#F8#, 16#21#, 16#88#, 16#01#, 16#00#, 16#63#, 16#88#, 16#11#, 16#82#, 16#10#, 16#C1#, 16#E8#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#01#, 16#08#, 16#21#, 16#08#, 16#21#, 16#04#, 16#3F#, 16#84#, 16#21#, 16#84#, 16#20#, 16#84#, 16#10#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#01#, 16#00#, 16#20#, 16#04#, 16#01#, 16#00#, 16#20#, 16#04#, 16#00#, 16#80#, 16#10#, 16#04#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#20#, 16#04#, 16#01#, 16#00#, 16#20#, 16#04#, 16#00#, 16#81#, 16#10#, 16#24#, 16#07#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#01#, 16#08#, 16#22#, 16#09#, 16#81#, 16#60#, 16#34#, 16#04#, 16#81#, 16#88#, 16#21#, 16#04#, 16#30#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#01#, 16#00#, 16#20#, 16#08#, 16#01#, 16#00#, 16#20#, 16#04#, 16#01#, 16#80#, 16#20#, 16#07#, 16#E0#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#01#, 16#06#, 16#30#, 16#CA#, 16#29#, 16#46#, 16#29#, 16#45#, 16#29#, 16#A9#, 16#26#, 16#44#, 16#C8#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#01#, 16#0C#, 16#31#, 16#0A#, 16#21#, 16#44#, 16#24#, 16#84#, 16#B1#, 16#9C#, 16#21#, 16#84#, 16#30#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#F0#, 16#21#, 16#08#, 16#11#, 16#02#, 16#40#, 16#48#, 16#11#, 16#82#, 16#10#, 16#81#, 16#E0#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#01#, 16#F0#, 16#23#, 16#08#, 16#61#, 16#08#, 16#3E#, 16#04#, 16#01#, 16#80#, 16#20#, 16#04#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#F0#, 16#21#, 16#08#, 16#11#, 16#02#, 16#40#, 16#48#, 16#11#, 16#82#, 16#11#, 16#81#, 16#F0#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#01#, 16#F8#, 16#21#, 16#08#, 16#21#, 16#0C#, 16#3E#, 16#04#, 16#21#, 16#84#, 16#20#, 16#84#, 16#10#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#F0#, 16#22#, 16#08#, 16#41#, 16#80#, 16#1E#, 16#00#, 16#61#, 16#04#, 16#21#, 16#03#, 16#C0#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#03#, 16#F8#, 16#08#, 16#03#, 16#00#, 16#40#, 16#08#, 16#01#, 16#00#, 16#20#, 16#0C#, 16#01#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#01#, 16#08#, 16#21#, 16#08#, 16#21#, 16#04#, 16#21#, 16#84#, 16#21#, 16#84#, 16#11#, 16#83#, 16#E0#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#02#, 16#08#, 16#43#, 16#0C#, 16#40#, 16#98#, 16#12#, 16#02#, 16#80#, 16#50#, 16#0C#, 16#01#, 16#80#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#02#, 16#10#, 16#46#, 16#08#, 16#C1#, 16#29#, 16#25#, 16#25#, 16#28#, 16#A5#, 16#18#, 16#63#, 16#08#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#01#, 16#08#, 16#22#, 16#06#, 16#80#, 16#60#, 16#0C#, 16#03#, 16#80#, 16#D8#, 16#11#, 16#04#, 16#30#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#03#, 16#08#, 16#23#, 16#04#, 16#40#, 16#D0#, 16#0C#, 16#01#, 16#00#, 16#20#, 16#04#, 16#00#, 16#80#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#03#, 16#F8#, 16#02#, 16#00#, 16#80#, 16#20#, 16#08#, 16#02#, 16#00#, 16#80#, 16#20#, 16#0F#, 16#E0#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#01#, 16#80#, 16#40#, 16#08#, 16#01#, 16#00#, 16#20#, 16#04#, 16#01#, 16#00#, 16#20#, 16#04#, 16#00#, 16#80#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#02#, 16#00#, 16#40#, 16#08#, 16#01#, 16#00#, 16#20#, 16#04#, 16#00#, 16#80#, 16#10#, 16#02#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#03#, 16#80#, 16#20#, 16#04#, 16#00#, 16#80#, 16#10#, 16#02#, 16#00#, 16#80#, 16#10#, 16#02#, 16#00#, 16#40#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#80#, 16#30#, 16#05#, 16#01#, 16#20#, 16#24#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#01#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#07#, 16#01#, 16#10#, 16#02#, 16#03#, 16#81#, 16#90#, 16#22#, 16#07#, 16#E0#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#02#, 16#00#, 16#40#, 16#0B#, 16#01#, 16#90#, 16#22#, 16#08#, 16#41#, 16#08#, 16#32#, 16#07#, 16#80#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#07#, 16#01#, 16#30#, 16#40#, 16#08#, 16#01#, 16#00#, 16#22#, 16#03#, 16#80#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#10#, 16#02#, 16#07#, 16#81#, 16#30#, 16#42#, 16#08#, 16#41#, 16#10#, 16#22#, 16#03#, 16#C0#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#07#, 16#01#, 16#30#, 16#42#, 16#0F#, 16#C1#, 16#00#, 16#22#, 16#03#, 16#80#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#01#, 16#80#, 16#40#, 16#1C#, 16#01#, 16#00#, 16#20#, 16#04#, 16#01#, 16#00#, 16#20#, 16#04#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#07#, 16#81#, 16#30#, 16#42#, 16#08#, 16#41#, 16#10#, 16#22#, 16#03#, 16#C0#, 16#08#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#02#, 16#00#, 16#40#, 16#0B#, 16#01#, 16#90#, 16#22#, 16#08#, 16#C1#, 16#10#, 16#22#, 16#04#, 16#40#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#01#, 16#00#, 16#00#, 16#08#, 16#01#, 16#00#, 16#20#, 16#08#, 16#01#, 16#00#, 16#20#, 16#04#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#01#, 16#00#, 16#00#, 16#08#, 16#01#, 16#00#, 16#20#, 16#04#, 16#00#, 16#80#, 16#20#, 16#04#, 16#00#, 16#80#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#02#, 16#00#, 16#40#, 16#09#, 16#01#, 16#40#, 16#30#, 16#0D#, 16#01#, 16#20#, 16#24#, 16#04#, 16#40#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#01#, 16#00#, 16#40#, 16#08#, 16#01#, 16#00#, 16#20#, 16#04#, 16#01#, 16#00#, 16#20#, 16#04#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#0F#, 16#71#, 16#32#, 16#24#, 16#48#, 16#89#, 16#11#, 16#22#, 16#44#, 16#C8#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#0F#, 16#01#, 16#10#, 16#22#, 16#08#, 16#C1#, 16#10#, 16#22#, 16#04#, 16#40#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#07#, 16#01#, 16#10#, 16#42#, 16#08#, 16#41#, 16#10#, 16#22#, 16#03#, 16#80#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#0F#, 16#01#, 16#10#, 16#22#, 16#08#, 16#41#, 16#08#, 16#32#, 16#07#, 16#80#, 16#80#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#07#, 16#81#, 16#30#, 16#42#, 16#08#, 16#41#, 16#10#, 16#22#, 16#03#, 16#C0#, 16#08#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#0E#, 16#01#, 16#00#, 16#20#, 16#08#, 16#01#, 16#00#, 16#20#, 16#04#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#07#, 16#01#, 16#20#, 16#60#, 16#06#, 16#00#, 16#30#, 16#22#, 16#07#, 16#80#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#40#, 16#1C#, 16#01#, 16#00#, 16#20#, 16#04#, 16#01#, 16#00#, 16#20#, 16#06#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#08#, 16#81#, 16#10#, 16#22#, 16#08#, 16#81#, 16#10#, 16#26#, 16#07#, 16#C0#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#08#, 16#81#, 16#20#, 16#24#, 16#05#, 16#00#, 16#A0#, 16#18#, 16#03#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#09#, 16#11#, 16#64#, 16#2C#, 16#85#, 16#A0#, 16#D4#, 16#19#, 16#02#, 16#20#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#09#, 16#81#, 16#20#, 16#18#, 16#02#, 16#00#, 16#A0#, 16#34#, 16#04#, 16#80#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#08#, 16#81#, 16#20#, 16#24#, 16#05#, 16#00#, 16#A0#, 16#18#, 16#03#, 16#00#, 16#40#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#0F#, 16#80#, 16#20#, 16#08#, 16#02#, 16#00#, 16#80#, 16#20#, 16#0F#, 16#C0#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#80#, 16#20#, 16#04#, 16#00#, 16#80#, 16#20#, 16#08#, 16#00#, 16#80#, 16#10#, 16#04#, 16#00#, 16#80#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#01#, 16#00#, 16#40#, 16#08#, 16#01#, 16#00#, 16#20#, 16#04#, 16#01#, 16#00#, 16#20#, 16#04#, 16#00#, 16#80#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#03#, 16#00#, 16#20#, 16#04#, 16#01#, 16#00#, 16#20#, 16#04#, 16#00#, 16#40#, 16#10#, 16#04#, 16#00#, 16#80#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#32#, 16#05#, 16#C0#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#); Font_D : aliased constant Bitmap_Font := ( Bytes_Per_Glyph => 19, Glyph_Width => 11, Glyph_Height => 14, Data => FreeSansOblique6pt7bBitmaps'Access); Font : constant Bitmap_Font_Ref := Font_D'Access; end GESTE_Fonts.FreeSansOblique6pt7b;
70.702222
73
0.492394
1e7c8accd2d7643a3d00ba6e9a19b63e338219b1
3,732
ads
Ada
gcc-gcc-7_3_0-release/gcc/ada/s-pooloc.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/s-pooloc.ads
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
null
null
null
gcc-gcc-7_3_0-release/gcc/ada/s-pooloc.ads
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
2
2020-07-27T00:22:36.000Z
2021-04-01T09:41:02.000Z
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- S Y S T E M . P O O L _ L O C A L -- -- -- -- S p e c -- -- -- -- Copyright (C) 1992-2011, 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. -- -- -- ------------------------------------------------------------------------------ -- Storage pool for use with local objects with automatic reclaim with System.Storage_Elements; with System.Pool_Global; package System.Pool_Local is pragma Elaborate_Body; -- Needed to ensure that library routines can execute allocators ---------------------------- -- Unbounded_Reclaim_Pool -- ---------------------------- -- Allocation strategy: -- Call to malloc/free for each Allocate/Deallocate -- No user specifiable size -- Space of allocated objects is reclaimed at pool finalization -- Manages a list of allocated objects type Unbounded_Reclaim_Pool is new System.Pool_Global.Unbounded_No_Reclaim_Pool with record First : System.Address := Null_Address; end record; -- function Storage_Size is inherited procedure Allocate (Pool : in out Unbounded_Reclaim_Pool; Address : out System.Address; Storage_Size : System.Storage_Elements.Storage_Count; Alignment : System.Storage_Elements.Storage_Count); procedure Deallocate (Pool : in out Unbounded_Reclaim_Pool; Address : System.Address; Storage_Size : System.Storage_Elements.Storage_Count; Alignment : System.Storage_Elements.Storage_Count); procedure Finalize (Pool : in out Unbounded_Reclaim_Pool); end System.Pool_Local;
49.76
78
0.480439
4b06507b3bd1baa95f5071ef7e7de83ac7b6ce4c
977
adb
Ada
src/trendy_test-generics.adb
jquorning/trendy_test
a0e147369f723969740eb25995cf22ba74282127
[ "Apache-2.0" ]
7
2021-08-01T05:43:59.000Z
2021-10-03T09:55:35.000Z
src/trendy_test-generics.adb
jquorning/trendy_test
a0e147369f723969740eb25995cf22ba74282127
[ "Apache-2.0" ]
2
2021-08-07T13:37:45.000Z
2022-03-12T14:47:26.000Z
src/trendy_test-generics.adb
jquorning/trendy_test
a0e147369f723969740eb25995cf22ba74282127
[ "Apache-2.0" ]
1
2022-03-11T18:21:18.000Z
2022-03-11T18:21:18.000Z
package body Trendy_Test.Generics is procedure Assert_Discrete (Op : in out Operation'Class; Left : T; Right : T; Loc : Source_Location := Make_Source_Location) is Message : constant String := Left'Image & ' ' & Operand & ' ' & Right'Image; begin if not Comparison(Left, Right) then Op.Report_Failure (Message, Loc); end if; end Assert_Discrete; procedure Assert_EQ ( Op : in out Operation'Class; Left : T; Right : T; Loc : Source_Location := Make_Source_Location) is Message : constant String := Image(Left) & " /= " & Image(Right); begin pragma Assert ((not (Left = Right)) = (Left /= Right)); if Left /= Right then Op.Report_Failure (Message, Loc); end if; end Assert_EQ; end Trendy_Test.Generics;
32.566667
87
0.516888
1e7d026d475d50966d67f1514792afee0f359790
16,798
ads
Ada
arch/ARM/STM32/svd/stm32l4x1/stm32_svd-i2c.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/stm32l4x1/stm32_svd-i2c.ads
morbos/Ada_Drivers_Library
a4ab26799be60997c38735f4056160c4af597ef7
[ "BSD-3-Clause" ]
null
null
null
arch/ARM/STM32/svd/stm32l4x1/stm32_svd-i2c.ads
morbos/Ada_Drivers_Library
a4ab26799be60997c38735f4056160c4af597ef7
[ "BSD-3-Clause" ]
null
null
null
-- This spec has been automatically generated from STM32L4x1.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package STM32_SVD.I2C is pragma Preelaborate; --------------- -- Registers -- --------------- subtype CR1_DNF_Field is HAL.UInt4; -- Control register 1 type CR1_Register is record -- Peripheral enable PE : Boolean := False; -- TX Interrupt enable TXIE : Boolean := False; -- RX Interrupt enable RXIE : Boolean := False; -- Address match interrupt enable (slave only) ADDRIE : Boolean := False; -- Not acknowledge received interrupt enable NACKIE : Boolean := False; -- STOP detection Interrupt enable STOPIE : Boolean := False; -- Transfer Complete interrupt enable TCIE : Boolean := False; -- Error interrupts enable ERRIE : Boolean := False; -- Digital noise filter DNF : CR1_DNF_Field := 16#0#; -- Analog noise filter OFF ANFOFF : Boolean := False; -- unspecified Reserved_13_13 : HAL.Bit := 16#0#; -- DMA transmission requests enable TXDMAEN : Boolean := False; -- DMA reception requests enable RXDMAEN : Boolean := False; -- Slave byte control SBC : Boolean := False; -- Clock stretching disable NOSTRETCH : Boolean := False; -- Wakeup from STOP enable WUPEN : Boolean := False; -- General call enable GCEN : Boolean := False; -- SMBus Host address enable SMBHEN : Boolean := False; -- SMBus Device Default address enable SMBDEN : Boolean := False; -- SMBUS alert enable ALERTEN : Boolean := False; -- PEC enable PECEN : Boolean := False; -- unspecified Reserved_24_31 : HAL.UInt8 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for CR1_Register use record PE at 0 range 0 .. 0; TXIE at 0 range 1 .. 1; RXIE at 0 range 2 .. 2; ADDRIE at 0 range 3 .. 3; NACKIE at 0 range 4 .. 4; STOPIE at 0 range 5 .. 5; TCIE at 0 range 6 .. 6; ERRIE at 0 range 7 .. 7; DNF at 0 range 8 .. 11; ANFOFF at 0 range 12 .. 12; Reserved_13_13 at 0 range 13 .. 13; TXDMAEN at 0 range 14 .. 14; RXDMAEN at 0 range 15 .. 15; SBC at 0 range 16 .. 16; NOSTRETCH at 0 range 17 .. 17; WUPEN at 0 range 18 .. 18; GCEN at 0 range 19 .. 19; SMBHEN at 0 range 20 .. 20; SMBDEN at 0 range 21 .. 21; ALERTEN at 0 range 22 .. 22; PECEN at 0 range 23 .. 23; Reserved_24_31 at 0 range 24 .. 31; end record; subtype CR2_SADD_Field is HAL.UInt10; subtype CR2_NBYTES_Field is HAL.UInt8; -- Control register 2 type CR2_Register is record -- Slave address bit (master mode) SADD : CR2_SADD_Field := 16#0#; -- Transfer direction (master mode) RD_WRN : Boolean := False; -- 10-bit addressing mode (master mode) ADD10 : Boolean := False; -- 10-bit address header only read direction (master receiver mode) HEAD10R : Boolean := False; -- Start generation START : Boolean := False; -- Stop generation (master mode) STOP : Boolean := False; -- NACK generation (slave mode) NACK : Boolean := False; -- Number of bytes NBYTES : CR2_NBYTES_Field := 16#0#; -- NBYTES reload mode RELOAD : Boolean := False; -- Automatic end mode (master mode) AUTOEND : Boolean := False; -- Packet error checking byte PECBYTE : 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 CR2_Register use record SADD at 0 range 0 .. 9; RD_WRN at 0 range 10 .. 10; ADD10 at 0 range 11 .. 11; HEAD10R at 0 range 12 .. 12; START at 0 range 13 .. 13; STOP at 0 range 14 .. 14; NACK at 0 range 15 .. 15; NBYTES at 0 range 16 .. 23; RELOAD at 0 range 24 .. 24; AUTOEND at 0 range 25 .. 25; PECBYTE at 0 range 26 .. 26; Reserved_27_31 at 0 range 27 .. 31; end record; subtype OAR1_OA1_Field is HAL.UInt10; -- Own address register 1 type OAR1_Register is record -- Interface address OA1 : OAR1_OA1_Field := 16#0#; -- Own Address 1 10-bit mode OA1MODE : Boolean := False; -- unspecified Reserved_11_14 : HAL.UInt4 := 16#0#; -- Own Address 1 enable OA1EN : Boolean := False; -- unspecified Reserved_16_31 : HAL.UInt16 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for OAR1_Register use record OA1 at 0 range 0 .. 9; OA1MODE at 0 range 10 .. 10; Reserved_11_14 at 0 range 11 .. 14; OA1EN at 0 range 15 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; subtype OAR2_OA2_Field is HAL.UInt7; subtype OAR2_OA2MSK_Field is HAL.UInt3; -- Own address register 2 type OAR2_Register is record -- unspecified Reserved_0_0 : HAL.Bit := 16#0#; -- Interface address OA2 : OAR2_OA2_Field := 16#0#; -- Own Address 2 masks OA2MSK : OAR2_OA2MSK_Field := 16#0#; -- unspecified Reserved_11_14 : HAL.UInt4 := 16#0#; -- Own Address 2 enable OA2EN : Boolean := False; -- unspecified Reserved_16_31 : HAL.UInt16 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for OAR2_Register use record Reserved_0_0 at 0 range 0 .. 0; OA2 at 0 range 1 .. 7; OA2MSK at 0 range 8 .. 10; Reserved_11_14 at 0 range 11 .. 14; OA2EN at 0 range 15 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; subtype TIMINGR_SCLL_Field is HAL.UInt8; subtype TIMINGR_SCLH_Field is HAL.UInt8; subtype TIMINGR_SDADEL_Field is HAL.UInt4; subtype TIMINGR_SCLDEL_Field is HAL.UInt4; subtype TIMINGR_PRESC_Field is HAL.UInt4; -- Timing register type TIMINGR_Register is record -- SCL low period (master mode) SCLL : TIMINGR_SCLL_Field := 16#0#; -- SCL high period (master mode) SCLH : TIMINGR_SCLH_Field := 16#0#; -- Data hold time SDADEL : TIMINGR_SDADEL_Field := 16#0#; -- Data setup time SCLDEL : TIMINGR_SCLDEL_Field := 16#0#; -- unspecified Reserved_24_27 : HAL.UInt4 := 16#0#; -- Timing prescaler PRESC : TIMINGR_PRESC_Field := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for TIMINGR_Register use record SCLL at 0 range 0 .. 7; SCLH at 0 range 8 .. 15; SDADEL at 0 range 16 .. 19; SCLDEL at 0 range 20 .. 23; Reserved_24_27 at 0 range 24 .. 27; PRESC at 0 range 28 .. 31; end record; subtype TIMEOUTR_TIMEOUTA_Field is HAL.UInt12; subtype TIMEOUTR_TIMEOUTB_Field is HAL.UInt12; -- Status register 1 type TIMEOUTR_Register is record -- Bus timeout A TIMEOUTA : TIMEOUTR_TIMEOUTA_Field := 16#0#; -- Idle clock timeout detection TIDLE : Boolean := False; -- unspecified Reserved_13_14 : HAL.UInt2 := 16#0#; -- Clock timeout enable TIMOUTEN : Boolean := False; -- Bus timeout B TIMEOUTB : TIMEOUTR_TIMEOUTB_Field := 16#0#; -- unspecified Reserved_28_30 : HAL.UInt3 := 16#0#; -- Extended clock timeout enable TEXTEN : Boolean := False; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for TIMEOUTR_Register use record TIMEOUTA at 0 range 0 .. 11; TIDLE at 0 range 12 .. 12; Reserved_13_14 at 0 range 13 .. 14; TIMOUTEN at 0 range 15 .. 15; TIMEOUTB at 0 range 16 .. 27; Reserved_28_30 at 0 range 28 .. 30; TEXTEN at 0 range 31 .. 31; end record; subtype ISR_ADDCODE_Field is HAL.UInt7; -- Interrupt and Status register type ISR_Register is record -- Transmit data register empty (transmitters) TXE : Boolean := True; -- Transmit interrupt status (transmitters) TXIS : Boolean := False; -- Read-only. Receive data register not empty (receivers) RXNE : Boolean := False; -- Read-only. Address matched (slave mode) ADDR : Boolean := False; -- Read-only. Not acknowledge received flag NACKF : Boolean := False; -- Read-only. Stop detection flag STOPF : Boolean := False; -- Read-only. Transfer Complete (master mode) TC : Boolean := False; -- Read-only. Transfer Complete Reload TCR : Boolean := False; -- Read-only. Bus error BERR : Boolean := False; -- Read-only. Arbitration lost ARLO : Boolean := False; -- Read-only. Overrun/Underrun (slave mode) OVR : Boolean := False; -- Read-only. PEC Error in reception PECERR : Boolean := False; -- Read-only. Timeout or t_low detection flag TIMEOUT : Boolean := False; -- Read-only. SMBus alert ALERT : Boolean := False; -- unspecified Reserved_14_14 : HAL.Bit := 16#0#; -- Read-only. Bus busy BUSY : Boolean := False; -- Read-only. Transfer direction (Slave mode) DIR : Boolean := False; -- Read-only. Address match code (Slave mode) ADDCODE : ISR_ADDCODE_Field := 16#0#; -- unspecified Reserved_24_31 : HAL.UInt8 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for ISR_Register use record TXE at 0 range 0 .. 0; TXIS at 0 range 1 .. 1; RXNE at 0 range 2 .. 2; ADDR at 0 range 3 .. 3; NACKF at 0 range 4 .. 4; STOPF at 0 range 5 .. 5; TC at 0 range 6 .. 6; TCR at 0 range 7 .. 7; BERR at 0 range 8 .. 8; ARLO at 0 range 9 .. 9; OVR at 0 range 10 .. 10; PECERR at 0 range 11 .. 11; TIMEOUT at 0 range 12 .. 12; ALERT at 0 range 13 .. 13; Reserved_14_14 at 0 range 14 .. 14; BUSY at 0 range 15 .. 15; DIR at 0 range 16 .. 16; ADDCODE at 0 range 17 .. 23; Reserved_24_31 at 0 range 24 .. 31; end record; -- Interrupt clear register type ICR_Register is record -- unspecified Reserved_0_2 : HAL.UInt3 := 16#0#; -- Write-only. Address Matched flag clear ADDRCF : Boolean := False; -- Write-only. Not Acknowledge flag clear NACKCF : Boolean := False; -- Write-only. Stop detection flag clear STOPCF : Boolean := False; -- unspecified Reserved_6_7 : HAL.UInt2 := 16#0#; -- Write-only. Bus error flag clear BERRCF : Boolean := False; -- Write-only. Arbitration lost flag clear ARLOCF : Boolean := False; -- Write-only. Overrun/Underrun flag clear OVRCF : Boolean := False; -- Write-only. PEC Error flag clear PECCF : Boolean := False; -- Write-only. Timeout detection flag clear TIMOUTCF : Boolean := False; -- Write-only. Alert flag clear ALERTCF : Boolean := False; -- unspecified Reserved_14_31 : HAL.UInt18 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for ICR_Register use record Reserved_0_2 at 0 range 0 .. 2; ADDRCF at 0 range 3 .. 3; NACKCF at 0 range 4 .. 4; STOPCF at 0 range 5 .. 5; Reserved_6_7 at 0 range 6 .. 7; BERRCF at 0 range 8 .. 8; ARLOCF at 0 range 9 .. 9; OVRCF at 0 range 10 .. 10; PECCF at 0 range 11 .. 11; TIMOUTCF at 0 range 12 .. 12; ALERTCF at 0 range 13 .. 13; Reserved_14_31 at 0 range 14 .. 31; end record; subtype PECR_PEC_Field is HAL.UInt8; -- PEC register type PECR_Register is record -- Read-only. Packet error checking register PEC : PECR_PEC_Field; -- unspecified Reserved_8_31 : HAL.UInt24; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for PECR_Register use record PEC at 0 range 0 .. 7; Reserved_8_31 at 0 range 8 .. 31; end record; subtype RXDR_RXDATA_Field is HAL.UInt8; -- Receive data register type RXDR_Register is record -- Read-only. 8-bit receive data RXDATA : RXDR_RXDATA_Field; -- unspecified Reserved_8_31 : HAL.UInt24; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for RXDR_Register use record RXDATA at 0 range 0 .. 7; Reserved_8_31 at 0 range 8 .. 31; end record; subtype TXDR_TXDATA_Field is HAL.UInt8; -- Transmit data register type TXDR_Register is record -- 8-bit transmit data TXDATA : TXDR_TXDATA_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 TXDR_Register use record TXDATA at 0 range 0 .. 7; Reserved_8_31 at 0 range 8 .. 31; end record; ----------------- -- Peripherals -- ----------------- -- Inter-integrated circuit type I2C_Peripheral is record -- Control register 1 CR1 : aliased CR1_Register; -- Control register 2 CR2 : aliased CR2_Register; -- Own address register 1 OAR1 : aliased OAR1_Register; -- Own address register 2 OAR2 : aliased OAR2_Register; -- Timing register TIMINGR : aliased TIMINGR_Register; -- Status register 1 TIMEOUTR : aliased TIMEOUTR_Register; -- Interrupt and Status register ISR : aliased ISR_Register; -- Interrupt clear register ICR : aliased ICR_Register; -- PEC register PECR : aliased PECR_Register; -- Receive data register RXDR : aliased RXDR_Register; -- Transmit data register TXDR : aliased TXDR_Register; end record with Volatile; for I2C_Peripheral use record CR1 at 16#0# range 0 .. 31; CR2 at 16#4# range 0 .. 31; OAR1 at 16#8# range 0 .. 31; OAR2 at 16#C# range 0 .. 31; TIMINGR at 16#10# range 0 .. 31; TIMEOUTR at 16#14# range 0 .. 31; ISR at 16#18# range 0 .. 31; ICR at 16#1C# range 0 .. 31; PECR at 16#20# range 0 .. 31; RXDR at 16#24# range 0 .. 31; TXDR at 16#28# range 0 .. 31; end record; -- Inter-integrated circuit I2C1_Periph : aliased I2C_Peripheral with Import, Address => System'To_Address (16#40005400#); -- Inter-integrated circuit I2C2_Periph : aliased I2C_Peripheral with Import, Address => System'To_Address (16#40005800#); -- Inter-integrated circuit I2C3_Periph : aliased I2C_Peripheral with Import, Address => System'To_Address (16#40005C00#); -- Inter-integrated circuit I2C4_Periph : aliased I2C_Peripheral with Import, Address => System'To_Address (16#40008400#); end STM32_SVD.I2C;
34.281633
74
0.550839
9a576f9d1aeb5b40b9cb2462cc08373bcbc4e7bb
926
ads
Ada
source/encodings-line_endings-generic_strip_cr.ads
Vovanium/Encodings
6b22e4321a78441d9036f697361cc32e3b7fe006
[ "MIT" ]
null
null
null
source/encodings-line_endings-generic_strip_cr.ads
Vovanium/Encodings
6b22e4321a78441d9036f697361cc32e3b7fe006
[ "MIT" ]
null
null
null
source/encodings-line_endings-generic_strip_cr.ads
Vovanium/Encodings
6b22e4321a78441d9036f697361cc32e3b7fe006
[ "MIT" ]
null
null
null
generic type Character_Type is (<>); -- Character, Wide_Character, Wide_Wide_Character (or whatever) type String_Type is array(Positive range <>) of Character_Type; Carriage_Return: in Character_Type; -- CR in the corresponding type Line_Feed: in Character_Type; -- LF in the corresponding type type Coder_Base is abstract tagged private; -- Type to derive package Encodings.Line_Endings.Generic_Strip_CR is type Coder is new Coder_Base with private; procedure Convert( This: in out Coder; -- Coder state Source: in String_Type; -- String to be converted Source_Last: out Natural; -- Last index of source string read (length if string is starting at 1) Target: out String_Type; -- Converted string Target_Last: out Natural -- Last Index of destination string written ); private type Coder is new Coder_Base with record Have_CR: Boolean := False; end record; end Encodings.Line_Endings.Generic_Strip_CR;
44.095238
99
0.774298
4bc35db6a9993f131084790467b08be04c73bdc0
405
ads
Ada
src/toml-generic_dump.ads
pmderodat/ada-toml
1bc843e35520ca1d1861d52cfb9121d51ec9075b
[ "BSD-3-Clause" ]
19
2019-03-25T15:32:12.000Z
2022-03-22T13:15:57.000Z
src/toml-generic_dump.ads
mosteo/ada-toml
d3454cdd51fa04098cdc76d2d30dd56f79a650e6
[ "BSD-3-Clause" ]
8
2019-04-14T10:09:23.000Z
2021-09-10T11:03:38.000Z
src/toml-generic_dump.ads
mosteo/ada-toml
d3454cdd51fa04098cdc76d2d30dd56f79a650e6
[ "BSD-3-Clause" ]
3
2019-04-12T08:42:24.000Z
2021-06-24T12:59:46.000Z
generic type Output_Stream (<>) is limited private; -- Stream of bytes with procedure Put (Stream : in out Output_Stream; Bytes : String) is <>; -- Write all Bytes in Stream procedure TOML.Generic_Dump (Stream : in out Output_Stream; Value : TOML_Value) with Preelaborate, Pre => Value.Kind = TOML_Table; -- Turn the given Value into a valid TOML document and write it to Stream
31.153846
76
0.706173
1e5217d4ac3dff52807470836488f2aad6bd479c
6,185
adb
Ada
src/giza-types.adb
Fabien-Chouteau/Giza
9f6c167666dbba8f0e5f0ba3e33825c0b3f399bd
[ "BSD-3-Clause" ]
7
2017-10-18T02:40:24.000Z
2020-12-19T22:41:19.000Z
src/giza-types.adb
Fabien-Chouteau/Giza
9f6c167666dbba8f0e5f0ba3e33825c0b3f399bd
[ "BSD-3-Clause" ]
null
null
null
src/giza-types.adb
Fabien-Chouteau/Giza
9f6c167666dbba8f0e5f0ba3e33825c0b3f399bd
[ "BSD-3-Clause" ]
2
2019-05-06T08:30:26.000Z
2020-11-22T11:27:27.000Z
------------------------------------------------------------------------------ -- -- -- Giza -- -- -- -- Copyright (C) 2016 Fabien Chouteau ([email protected]) -- -- -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions are -- -- met: -- -- 1. Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- 2. Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in -- -- the documentation and/or other materials provided with the -- -- distribution. -- -- 3. Neither the name of the copyright holder nor the names of its -- -- contributors may be used to endorse or promote products derived -- -- from this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -- -- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -- -- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -- -- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -- -- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -- -- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ with Ada.Numerics.Elementary_Functions; use Ada.Numerics.Elementary_Functions; package body Giza.Types is ------------ -- Center -- ------------ function Center (R : Rect_T) return Point_T is begin return (R.Org.X + R.Size.W / 2, R.Org.Y + R.Size.H / 2); end Center; ------------------ -- Intersection -- ------------------ function Intersection (A, B : Rect_T) return Rect_T is P1 : constant Point_T := A.Org; P2 : constant Point_T := A.Org + A.Size; P3 : constant Point_T := B.Org; P4 : constant Point_T := B.Org + B.Size; Ret1, Ret2 : Point_T; H, W : Natural; begin Ret1.X := Dim'Max (P1.X, P3.X); Ret1.Y := Dim'Max (P1.Y, P3.Y); Ret2.X := Dim'Min (P2.X, P4.X); Ret2.Y := Dim'Min (P2.Y, P4.Y); if Ret2.X - Ret1.X < 0 then W := 0; else W := Ret2.X - Ret1.X; end if; if Ret2.Y - Ret1.Y < 0 then H := 0; else H := Ret2.Y - Ret1.Y; end if; return (Ret1, (W, H)); end Intersection; --------- -- "*" -- --------- function "*" (A, B : HC_Matrix) return HC_Matrix is Res : HC_Matrix; begin Res.V11 := A.V11 * B.V11 + A.V12 * B.V21 + A.V13 * B.V31; Res.V12 := A.V11 * B.V12 + A.V12 * B.V22 + A.V13 * B.V32; Res.V13 := A.V11 * B.V13 + A.V12 * B.V23 + A.V13 * B.V33; Res.V21 := A.V21 * B.V11 + A.V22 * B.V21 + A.V23 * B.V31; Res.V22 := A.V21 * B.V12 + A.V22 * B.V22 + A.V23 * B.V32; Res.V23 := A.V21 * B.V13 + A.V22 * B.V23 + A.V23 * B.V33; Res.V31 := A.V31 * B.V11 + A.V32 * B.V21 + A.V33 * B.V31; Res.V32 := A.V31 * B.V12 + A.V32 * B.V22 + A.V33 * B.V32; Res.V33 := A.V31 * B.V13 + A.V32 * B.V23 + A.V33 * B.V33; return Res; end "*"; --------- -- "*" -- --------- function "*" (A : HC_Matrix; B : Point_T) return Point_T is Res : Point_T; begin Res.X := Dim (Float (B.X) * A.V11 + Float (B.Y) * A.V12 + 1.0 * A.V13); Res.Y := Dim (Float (B.X) * A.V21 + Float (B.Y) * A.V22 + 1.0 * A.V23); return Res; end "*"; -------- -- Id -- -------- function Id return HC_Matrix is Res : HC_Matrix; begin Res.V11 := 1.0; Res.V22 := 1.0; Res.V33 := 1.0; return Res; end Id; --------------------- -- Rotation_Matrix -- --------------------- function Rotation_Matrix (Rad : Float) return HC_Matrix is Res : HC_Matrix; begin Res.V11 := Cos (Rad); Res.V12 := -Sin (Rad); Res.V21 := Sin (Rad); Res.V22 := Cos (Rad); Res.V33 := 1.0; return Res; end Rotation_Matrix; ------------------------ -- Translation_Matrix -- ------------------------ function Translation_Matrix (Pt : Point_T) return HC_Matrix is Res : HC_Matrix; begin Res.V11 := 1.0; Res.V22 := 1.0; Res.V33 := 1.0; Res.V13 := Float (Pt.X); Res.V23 := Float (Pt.Y); return Res; end Translation_Matrix; ------------------ -- Scale_Matrix -- ------------------ function Scale_Matrix (Scale : Float) return HC_Matrix is Res : HC_Matrix; begin Res.V11 := Scale; Res.V22 := Scale; Res.V33 := 1.0; return Res; end Scale_Matrix; ------------------ -- Scale_Matrix -- ------------------ function Scale_Matrix (X, Y : Float) return HC_Matrix is Res : HC_Matrix; begin Res.V11 := X; Res.V22 := Y; Res.V33 := 1.0; return Res; end Scale_Matrix; end Giza.Types;
33.797814
78
0.468391
5838b686349b0996cdf0872f8dcbeba0ddf740cb
8,171
ads
Ada
src/wiki-parsers.ads
jquorning/ada-wiki
21dcbeb3897499ee4b4a85353f8a782e154c0a43
[ "Apache-2.0" ]
18
2015-10-26T21:32:08.000Z
2021-11-30T10:38:51.000Z
src/wiki-parsers.ads
jquorning/ada-wiki
21dcbeb3897499ee4b4a85353f8a782e154c0a43
[ "Apache-2.0" ]
2
2018-03-18T08:22:06.000Z
2022-02-16T22:15:05.000Z
src/wiki-parsers.ads
jquorning/ada-wiki
21dcbeb3897499ee4b4a85353f8a782e154c0a43
[ "Apache-2.0" ]
2
2019-04-05T17:10:34.000Z
2022-02-13T20:50:56.000Z
----------------------------------------------------------------------- -- wiki-parsers -- Wiki parser -- Copyright (C) 2011, 2015, 2016, 2018, 2020 Stephane Carrez -- Written by Stephane Carrez ([email protected]) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in writing, software -- distributed under the License is distributed on an "AS IS" BASIS, -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. ----------------------------------------------------------------------- with Wiki.Attributes; with Wiki.Plugins; with Wiki.Filters; with Wiki.Strings; with Wiki.Documents; with Wiki.Streams; -- == Wiki Parsers {#wiki-parsers} == -- The `Wikis.Parsers` package implements a parser for several well known wiki formats -- but also for HTML. While reading the input, the parser populates a wiki `Document` -- instance with headers, paragraphs, links, and other elements. -- -- Engine : Wiki.Parsers.Parser; -- -- Before using the parser, it must be configured to choose the syntax by using the -- `Set_Syntax` procedure: -- -- Engine.Set_Syntax (Wiki.SYNTAX_HTML); -- -- The parser can be configured to use filters. A filter is added by using the -- `Add_Filter` procedure. A filter is added at begining of the chain so that -- the filter added last is called first. The wiki `Document` is always built through -- the filter chain so this allows filters to change or alter the content that was parsed. -- -- Engine.Add_Filter (TOC'Unchecked_Access); -- Engine.Add_Filter (Filter'Unchecked_Access); -- -- The `Parse` procedure is then used to parse either a string content or some stream -- represented by the `Input_Stream` interface. After the `Parse` procedure -- completes, the `Document` instance holds the wiki document. -- -- Engine.Parse (Some_Text, Doc); -- package Wiki.Parsers is pragma Preelaborate; type Parser is tagged limited private; -- Set the plugin factory to find and use plugins. procedure Set_Plugin_Factory (Engine : in out Parser; Factory : in Wiki.Plugins.Plugin_Factory_Access); -- Set the wiki syntax that the wiki engine must use. procedure Set_Syntax (Engine : in out Parser; Syntax : in Wiki_Syntax := SYNTAX_MIX); -- Add a filter in the wiki engine. procedure Add_Filter (Engine : in out Parser; Filter : in Wiki.Filters.Filter_Type_Access); -- Set the plugin context. procedure Set_Context (Engine : in out Parser; Context : in Wiki.Plugins.Plugin_Context); -- Parse the wiki text contained in <b>Text</b> according to the wiki syntax -- defined on the parser. The string is assumed to be in UTF-8 format. procedure Parse (Engine : in out Parser; Text : in String; Doc : in out Wiki.Documents.Document); -- Parse the wiki text contained in <b>Text</b> according to the wiki syntax -- defined on the parser. procedure Parse (Engine : in out Parser; Text : in Wiki.Strings.WString; Doc : in out Wiki.Documents.Document); -- Parse the wiki text contained in <b>Text</b> according to the wiki syntax -- defined on the parser. procedure Parse (Engine : in out Parser; Text : in Wiki.Strings.UString; Doc : in out Wiki.Documents.Document); -- Parse the wiki stream managed by <tt>Stream</tt> according to the wiki syntax configured -- on the wiki engine. procedure Parse (Engine : in out Parser; Stream : in Wiki.Streams.Input_Stream_Access; Doc : in out Wiki.Documents.Document); private type Parser_Handler is access procedure (P : in out Parser; Token : in Wiki.Strings.WChar); type Parser_Table is array (0 .. 127) of Parser_Handler; type Parser_Table_Access is access constant Parser_Table; type Parser is tagged limited record Context : aliased Wiki.Plugins.Plugin_Context; Pending : Wiki.Strings.WChar; Has_Pending : Boolean; Previous_Syntax : Wiki_Syntax; Table : Parser_Table_Access; Document : Wiki.Documents.Document; Format : Wiki.Format_Map; Text : Wiki.Strings.BString (512); Empty_Line : Boolean := True; Is_Eof : Boolean := False; In_Paragraph : Boolean := False; In_List : Boolean := False; In_Table : Boolean := False; Need_Paragraph : Boolean := True; Link_Double_Bracket : Boolean := False; Link_No_Space : Boolean := False; Is_Dotclear : Boolean := False; Link_Title_First : Boolean := False; Check_Image_Link : Boolean := False; Header_Offset : Integer := 0; Preformat_Column : Natural := 1; Quote_Level : Natural := 0; Escape_Char : Wiki.Strings.WChar; Param_Char : Wiki.Strings.WChar; List_Level : Natural := 0; Previous_Tag : Html_Tag := UNKNOWN_TAG; Reader : Wiki.Streams.Input_Stream_Access := null; Attributes : Wiki.Attributes.Attribute_List; end record; -- Peek the next character from the wiki text buffer. procedure Peek (P : in out Parser'Class; Token : out Wiki.Strings.WChar); pragma Inline (Peek); -- Put back the character so that it will be returned by the next call to Peek. procedure Put_Back (P : in out Parser; Token : in Wiki.Strings.WChar); -- Skip all the spaces and tabs as well as end of the current line (CR+LF). procedure Skip_End_Of_Line (P : in out Parser); -- Skip white spaces and tabs. procedure Skip_Spaces (P : in out Parser); -- Flush the wiki text that was collected in the text buffer. procedure Flush_Text (P : in out Parser); -- Flush the wiki dl/dt/dd definition list. procedure Flush_List (P : in out Parser); -- Append a character to the wiki text buffer. procedure Parse_Text (P : in out Parser; Token : in Wiki.Strings.WChar); -- Check if the link refers to an image and must be rendered as an image. -- Returns a positive index of the start the the image link. function Is_Image (P : in Parser; Link : in Wiki.Strings.WString) return Natural; -- Returns true if we are included from another wiki content. function Is_Included (P : in Parser) return Boolean; -- Find the plugin with the given name. -- Returns null if there is no such plugin. function Find (P : in Parser; Name : in Wiki.Strings.WString) return Wiki.Plugins.Wiki_Plugin_Access; type String_Array is array (Positive range <>) of Wiki.String_Access; -- Extract a list of parameters separated by the given separator (ex: '|'). procedure Parse_Parameters (P : in out Parser; Separator : in Wiki.Strings.WChar; Terminator : in Wiki.Strings.WChar; Names : in String_Array; Max : in Positive := 200); procedure Start_Element (P : in out Parser; Tag : in Wiki.Html_Tag; Attributes : in out Wiki.Attributes.Attribute_List); procedure End_Element (P : in out Parser; Tag : in Wiki.Html_Tag); procedure Parse_Token (P : in out Parser); end Wiki.Parsers;
42.118557
95
0.611431
9a37ebc8739f9f5a301df9e77ce86c69d3052d81
2,883
adb
Ada
src/sdl-clipboard.adb
mosteo/sdlada
429c594de613c5ba2f0d7c59f8708956697e14f1
[ "Zlib" ]
89
2015-01-03T01:41:23.000Z
2022-02-23T18:21:11.000Z
src/sdl-clipboard.adb
mosteo/sdlada
429c594de613c5ba2f0d7c59f8708956697e14f1
[ "Zlib" ]
66
2015-05-01T00:54:03.000Z
2022-01-20T04:09:59.000Z
src/sdl-clipboard.adb
Jellix/sdlada
997d2ae2da5c75e2ea99cee98372cf5b752519cf
[ "Zlib" ]
33
2015-04-30T23:39:31.000Z
2022-01-03T13:00:41.000Z
-------------------------------------------------------------------------------------------------------------------- -- 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.Strings; with SDL; with SDL.Error; with SDL.Video.Windows; package body SDL.Clipboard is package C renames Interfaces.C; procedure Check_For_Window is Init_Value : constant SDL.Init_Flags := SDL.Was_Initialised and SDL.Enable_Screen; begin if Init_Value /= SDL.Enable_Screen then raise Clipboard_Error with "SDL screen subsystem has not been initialised."; end if; if SDL.Video.Windows.Exist = False then raise Clipboard_Error with "No windows have been created."; end if; end Check_For_Window; function Get return Ada.Strings.UTF_Encoding.UTF_8_String is function SDL_Get_Clipboard_Text return C.Strings.chars_ptr with Import => True, Convention => C, External_Name => "SDL_GetClipboardText"; begin Check_For_Window; return C.Strings.Value (SDL_Get_Clipboard_Text); end Get; function Is_Empty return Boolean is function SDL_Has_Clipboard_Text return SDL_Bool with Import => True, Convention => C, External_Name => "SDL_HasClipboardText"; begin Check_For_Window; return (if SDL_Has_Clipboard_Text = SDL_True then False else True); end Is_Empty; procedure Set (Text : in Ada.Strings.UTF_Encoding.UTF_8_String) is function SDL_Set_Clipboard_Text (C_Str : in C.char_array) return C.int with Import => True, Convention => C, External_Name => "SDL_SetClipboardText"; begin Check_For_Window; if SDL_Set_Clipboard_Text (C.To_C (Text)) /= Success then raise Clipboard_Error with SDL.Error.Get; end if; end Set; end SDL.Clipboard;
36.961538
116
0.638918
a06e311e7f7f0535d070cd1ba378aedf51b96e27
2,291
adb
Ada
testcases/traits/traits.adb
jrmarino/AdaBase
660f278613773dc4007c8b3fab21bcfddc1828b3
[ "0BSD" ]
30
2016-02-21T11:09:30.000Z
2021-12-08T14:12:32.000Z
testcases/traits/traits.adb
jrmarino/AdaBase
660f278613773dc4007c8b3fab21bcfddc1828b3
[ "0BSD" ]
3
2018-10-29T18:44:48.000Z
2022-03-12T23:14:20.000Z
testcases/traits/traits.adb
jrmarino/AdaBase
660f278613773dc4007c8b3fab21bcfddc1828b3
[ "0BSD" ]
3
2015-04-22T12:17:27.000Z
2017-01-19T14:29:59.000Z
with Ada.Text_IO; with Ada.Exceptions; with AdaBase; with Connect; with GNAT.Traceback.Symbolic; procedure Traits is package SYM renames GNAT.Traceback.Symbolic; package TIO renames Ada.Text_IO; package CON renames Connect; package EX renames Ada.Exceptions; -- Database_Driver renames specific driver using subtype procedure display_versions (driver : CON.Database_Driver); procedure display_traits (driver : CON.Database_Driver); procedure display_versions (driver : CON.Database_Driver) is begin TIO.Put_Line (" client info: " & driver.trait_client_info); TIO.Put_Line ("client version: " & driver.trait_client_version); TIO.Put_Line (" server info: " & driver.trait_server_info); TIO.Put_Line ("server version: " & driver.trait_server_version); TIO.Put_Line (" driver: " & driver.trait_driver); end display_versions; procedure display_traits (driver : CON.Database_Driver) is begin TIO.Put_Line (""); TIO.Put_Line (" autocommit: " & driver.trait_autocommit'Img); TIO.Put_Line (" column case: " & driver.trait_column_case'Img); TIO.Put_Line (" error_mode: " & driver.trait_error_mode'Img); TIO.Put_Line (" blob_size: " & driver.trait_max_blob_size'Img); TIO.Put_Line (" multiquery on: " & driver.trait_multiquery_enabled'Img); TIO.Put_Line (" encoding: " & driver.trait_character_set); end display_traits; begin CON.connect_database; display_versions (driver => CON.DR); display_traits (driver => CON.DR); CON.DR.disconnect; CON.DR.set_trait_autocommit (trait => True); CON.DR.set_trait_column_case (trait => AdaBase.upper_case); CON.DR.set_trait_error_mode (trait => AdaBase.silent); CON.DR.set_trait_max_blob_size (trait => 2 ** 16); CON.DR.set_trait_multiquery_enabled (True); CON.DR.set_trait_character_set (""); CON.connect_database; display_traits (driver => CON.DR); CON.DR.disconnect; exception when E : others => TIO.Put_Line (""); TIO.Put_Line ("exception name: " & EX.Exception_Name (E)); TIO.Put_Line ("exception msg : " & EX.Exception_Message (E)); TIO.Put_Line ("Traceback:"); TIO.Put_Line (SYM.Symbolic_Traceback (E)); end Traits;
33.202899
78
0.688346
a08edef739acecb0a95f694626b700f5d8934cdd
329,328
adb
Ada
RecComp/Lab2/Zynq_Book/hls/tut3A/matrix_mult_prj/solution3/.autopilot/db/matrix_mult.adb
MarkBlanco/FPGA_Sandbox
4a9502ac1f84018d1bebb8b8dc4f272fd9da0d3b
[ "MIT" ]
3
2021-01-25T08:01:19.000Z
2021-02-12T19:49:30.000Z
RecComp/Lab2/Zynq_Book/hls/tut3A/matrix_mult_prj/solution3/.autopilot/db/matrix_mult.adb
MarkBlanco/FPGA_Sandbox
4a9502ac1f84018d1bebb8b8dc4f272fd9da0d3b
[ "MIT" ]
null
null
null
RecComp/Lab2/Zynq_Book/hls/tut3A/matrix_mult_prj/solution3/.autopilot/db/matrix_mult.adb
MarkBlanco/FPGA_Sandbox
4a9502ac1f84018d1bebb8b8dc4f272fd9da0d3b
[ "MIT" ]
null
null
null
<?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/> <cdfg class_id="1" tracking_level="1" version="0" object_id="_0"> <name>matrix_mult</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>a</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo class_id="6" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>a</originalName> <rtlName/> <coreName>RAM</coreName> </Obj> <bitwidth>8</bitwidth> </Value> <direction>0</direction> <if_type>1</if_type> <array_size>25</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>b</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>b</originalName> <rtlName/> <coreName>RAM</coreName> </Obj> <bitwidth>8</bitwidth> </Value> <direction>0</direction> <if_type>1</if_type> <array_size>25</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>prod</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>prod</originalName> <rtlName/> <coreName>RAM</coreName> </Obj> <bitwidth>16</bitwidth> </Value> <direction>1</direction> <if_type>1</if_type> <array_size>25</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>82</count> <item_version>0</item_version> <item class_id="9" tracking_level="1" version="0" object_id="_4"> <Value> <Obj> <type>0</type> <id>8</id> <name/> <fileName>matrix_mult.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>10</lineNumber> <contextFuncName>matrix_mult</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item class_id="10" tracking_level="0" version="0"> <first>C:\Users\markb\Source\Repos\FPGA_Sandbox\RecComp\Lab2\Zynq_Book\hls\tut3A</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>matrix_mult.cpp</first> <second>matrix_mult</second> </first> <second>10</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>100</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>10</id> <name>indvar_flatten</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>5</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>102</item> <item>103</item> <item>104</item> <item>105</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>11</id> <name>i</name> <fileName>matrix_mult.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>10</lineNumber> <contextFuncName>matrix_mult</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\markb\Source\Repos\FPGA_Sandbox\RecComp\Lab2\Zynq_Book\hls\tut3A</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>matrix_mult.cpp</first> <second>matrix_mult</second> </first> <second>10</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>3</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>107</item> <item>108</item> <item>109</item> <item>110</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>12</id> <name>j</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>j</originalName> <rtlName/> <coreName/> </Obj> <bitwidth>3</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>111</item> <item>112</item> <item>113</item> <item>114</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>13</id> <name>exitcond_flatten</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName>exitcond_flatten_fu_214_p2</rtlName> <coreName/> </Obj> <bitwidth>1</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>115</item> <item>117</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>14</id> <name>indvar_flatten_next</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName>indvar_flatten_next_fu_220_p2</rtlName> <coreName/> </Obj> <bitwidth>5</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>118</item> <item>120</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>15</id> <name/> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>121</item> <item>122</item> <item>123</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>17</id> <name>i_1</name> <fileName>matrix_mult.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>10</lineNumber> <contextFuncName>matrix_mult</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\markb\Source\Repos\FPGA_Sandbox\RecComp\Lab2\Zynq_Book\hls\tut3A</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>matrix_mult.cpp</first> <second>matrix_mult</second> </first> <second>10</second> </item> </second> </item> </inlineStackInfo> <originalName>i</originalName> <rtlName>i_1_fu_226_p2</rtlName> <coreName/> </Obj> <bitwidth>3</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>124</item> <item>126</item> </oprand_edges> <opcode>add</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_12"> <Value> <Obj> <type>0</type> <id>20</id> <name>exitcond</name> <fileName>matrix_mult.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>12</lineNumber> <contextFuncName>matrix_mult</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\markb\Source\Repos\FPGA_Sandbox\RecComp\Lab2\Zynq_Book\hls\tut3A</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>matrix_mult.cpp</first> <second>matrix_mult</second> </first> <second>12</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>exitcond_fu_232_p2</rtlName> <coreName/> </Obj> <bitwidth>1</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>127</item> <item>129</item> </oprand_edges> <opcode>icmp</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_13"> <Value> <Obj> <type>0</type> <id>21</id> <name>j_mid2</name> <fileName>matrix_mult.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>12</lineNumber> <contextFuncName>matrix_mult</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\markb\Source\Repos\FPGA_Sandbox\RecComp\Lab2\Zynq_Book\hls\tut3A</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>matrix_mult.cpp</first> <second>matrix_mult</second> </first> <second>12</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>j_mid2_fu_238_p3</rtlName> <coreName/> </Obj> <bitwidth>3</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>130</item> <item>131</item> <item>132</item> </oprand_edges> <opcode>select</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_14"> <Value> <Obj> <type>0</type> <id>22</id> <name>i_cast6_mid2_v</name> <fileName>matrix_mult.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>10</lineNumber> <contextFuncName>matrix_mult</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\markb\Source\Repos\FPGA_Sandbox\RecComp\Lab2\Zynq_Book\hls\tut3A</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>matrix_mult.cpp</first> <second>matrix_mult</second> </first> <second>10</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>i_cast6_mid2_v_fu_246_p3</rtlName> <coreName/> </Obj> <bitwidth>3</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>133</item> <item>134</item> <item>135</item> </oprand_edges> <opcode>select</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_15"> <Value> <Obj> <type>0</type> <id>23</id> <name>i_cast6_mid2_cast</name> <fileName>matrix_mult.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>10</lineNumber> <contextFuncName>matrix_mult</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\markb\Source\Repos\FPGA_Sandbox\RecComp\Lab2\Zynq_Book\hls\tut3A</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>matrix_mult.cpp</first> <second>matrix_mult</second> </first> <second>10</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>i_cast6_mid2_cast_fu_254_p1</rtlName> <coreName/> </Obj> <bitwidth>6</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>136</item> </oprand_edges> <opcode>zext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_16"> <Value> <Obj> <type>0</type> <id>24</id> <name>tmp</name> <fileName>matrix_mult.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>10</lineNumber> <contextFuncName>matrix_mult</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\markb\Source\Repos\FPGA_Sandbox\RecComp\Lab2\Zynq_Book\hls\tut3A</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>matrix_mult.cpp</first> <second>matrix_mult</second> </first> <second>10</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_fu_257_p3</rtlName> <coreName/> </Obj> <bitwidth>5</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>138</item> <item>139</item> <item>141</item> </oprand_edges> <opcode>bitconcatenate</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_17"> <Value> <Obj> <type>0</type> <id>25</id> <name>p_shl_cast</name> <fileName>matrix_mult.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>matrix_mult</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\markb\Source\Repos\FPGA_Sandbox\RecComp\Lab2\Zynq_Book\hls\tut3A</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>matrix_mult.cpp</first> <second>matrix_mult</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>p_shl_cast_fu_264_p1</rtlName> <coreName/> </Obj> <bitwidth>6</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>142</item> </oprand_edges> <opcode>zext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_18"> <Value> <Obj> <type>0</type> <id>26</id> <name>tmp_7</name> <fileName>matrix_mult.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>matrix_mult</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\markb\Source\Repos\FPGA_Sandbox\RecComp\Lab2\Zynq_Book\hls\tut3A</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>matrix_mult.cpp</first> <second>matrix_mult</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_7_fu_268_p2</rtlName> <coreName/> </Obj> <bitwidth>6</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>143</item> <item>144</item> </oprand_edges> <opcode>add</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_19"> <Value> <Obj> <type>0</type> <id>27</id> <name>tmp_7_cast</name> <fileName>matrix_mult.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>matrix_mult</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\markb\Source\Repos\FPGA_Sandbox\RecComp\Lab2\Zynq_Book\hls\tut3A</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>matrix_mult.cpp</first> <second>matrix_mult</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_7_cast_fu_380_p1</rtlName> <coreName/> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>145</item> </oprand_edges> <opcode>zext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_20"> <Value> <Obj> <type>0</type> <id>28</id> <name>a_addr</name> <fileName>matrix_mult.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>matrix_mult</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\markb\Source\Repos\FPGA_Sandbox\RecComp\Lab2\Zynq_Book\hls\tut3A</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>matrix_mult.cpp</first> <second>matrix_mult</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>5</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>146</item> <item>148</item> <item>149</item> </oprand_edges> <opcode>getelementptr</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_21"> <Value> <Obj> <type>0</type> <id>29</id> <name>tmp_8</name> <fileName>matrix_mult.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>matrix_mult</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\markb\Source\Repos\FPGA_Sandbox\RecComp\Lab2\Zynq_Book\hls\tut3A</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>matrix_mult.cpp</first> <second>matrix_mult</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_8_fu_292_p2</rtlName> <coreName/> </Obj> <bitwidth>6</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>150</item> <item>152</item> </oprand_edges> <opcode>add</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_22"> <Value> <Obj> <type>0</type> <id>30</id> <name>tmp_8_cast</name> <fileName>matrix_mult.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>matrix_mult</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\markb\Source\Repos\FPGA_Sandbox\RecComp\Lab2\Zynq_Book\hls\tut3A</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>matrix_mult.cpp</first> <second>matrix_mult</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_8_cast_fu_315_p1</rtlName> <coreName/> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>153</item> </oprand_edges> <opcode>zext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_23"> <Value> <Obj> <type>0</type> <id>31</id> <name>a_addr_1</name> <fileName>matrix_mult.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>matrix_mult</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\markb\Source\Repos\FPGA_Sandbox\RecComp\Lab2\Zynq_Book\hls\tut3A</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>matrix_mult.cpp</first> <second>matrix_mult</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>5</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>154</item> <item>155</item> <item>156</item> </oprand_edges> <opcode>getelementptr</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_24"> <Value> <Obj> <type>0</type> <id>32</id> <name>tmp_9</name> <fileName>matrix_mult.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>matrix_mult</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\markb\Source\Repos\FPGA_Sandbox\RecComp\Lab2\Zynq_Book\hls\tut3A</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>matrix_mult.cpp</first> <second>matrix_mult</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_9_fu_342_p2</rtlName> <coreName/> </Obj> <bitwidth>6</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>157</item> <item>159</item> </oprand_edges> <opcode>add</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_25"> <Value> <Obj> <type>0</type> <id>33</id> <name>tmp_9_cast</name> <fileName>matrix_mult.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>matrix_mult</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\markb\Source\Repos\FPGA_Sandbox\RecComp\Lab2\Zynq_Book\hls\tut3A</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>matrix_mult.cpp</first> <second>matrix_mult</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_9_cast_fu_368_p1</rtlName> <coreName/> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>160</item> </oprand_edges> <opcode>sext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_26"> <Value> <Obj> <type>0</type> <id>34</id> <name>a_addr_2</name> <fileName>matrix_mult.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>matrix_mult</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\markb\Source\Repos\FPGA_Sandbox\RecComp\Lab2\Zynq_Book\hls\tut3A</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>matrix_mult.cpp</first> <second>matrix_mult</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>5</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>161</item> <item>162</item> <item>163</item> </oprand_edges> <opcode>getelementptr</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_27"> <Value> <Obj> <type>0</type> <id>35</id> <name>tmp_10</name> <fileName>matrix_mult.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>matrix_mult</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\markb\Source\Repos\FPGA_Sandbox\RecComp\Lab2\Zynq_Book\hls\tut3A</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>matrix_mult.cpp</first> <second>matrix_mult</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_10_fu_347_p2</rtlName> <coreName/> </Obj> <bitwidth>6</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>164</item> <item>166</item> </oprand_edges> <opcode>add</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_28"> <Value> <Obj> <type>0</type> <id>36</id> <name>tmp_10_cast</name> <fileName>matrix_mult.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>matrix_mult</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\markb\Source\Repos\FPGA_Sandbox\RecComp\Lab2\Zynq_Book\hls\tut3A</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>matrix_mult.cpp</first> <second>matrix_mult</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_10_cast_fu_372_p1</rtlName> <coreName/> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>167</item> </oprand_edges> <opcode>sext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_29"> <Value> <Obj> <type>0</type> <id>37</id> <name>a_addr_3</name> <fileName>matrix_mult.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>matrix_mult</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\markb\Source\Repos\FPGA_Sandbox\RecComp\Lab2\Zynq_Book\hls\tut3A</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>matrix_mult.cpp</first> <second>matrix_mult</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>5</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>168</item> <item>169</item> <item>170</item> </oprand_edges> <opcode>getelementptr</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_30"> <Value> <Obj> <type>0</type> <id>38</id> <name>tmp_11</name> <fileName>matrix_mult.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>matrix_mult</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\markb\Source\Repos\FPGA_Sandbox\RecComp\Lab2\Zynq_Book\hls\tut3A</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>matrix_mult.cpp</first> <second>matrix_mult</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_11_fu_297_p2</rtlName> <coreName/> </Obj> <bitwidth>6</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>171</item> <item>173</item> </oprand_edges> <opcode>add</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_31"> <Value> <Obj> <type>0</type> <id>39</id> <name>tmp_11_cast</name> <fileName>matrix_mult.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>matrix_mult</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\markb\Source\Repos\FPGA_Sandbox\RecComp\Lab2\Zynq_Book\hls\tut3A</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>matrix_mult.cpp</first> <second>matrix_mult</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_11_cast_fu_319_p1</rtlName> <coreName/> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>174</item> </oprand_edges> <opcode>sext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_32"> <Value> <Obj> <type>0</type> <id>40</id> <name>a_addr_4</name> <fileName>matrix_mult.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>matrix_mult</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\markb\Source\Repos\FPGA_Sandbox\RecComp\Lab2\Zynq_Book\hls\tut3A</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>matrix_mult.cpp</first> <second>matrix_mult</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>5</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>175</item> <item>176</item> <item>177</item> </oprand_edges> <opcode>getelementptr</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_33"> <Value> <Obj> <type>0</type> <id>41</id> <name>j_cast5</name> <fileName>matrix_mult.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>12</lineNumber> <contextFuncName>matrix_mult</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\markb\Source\Repos\FPGA_Sandbox\RecComp\Lab2\Zynq_Book\hls\tut3A</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>matrix_mult.cpp</first> <second>matrix_mult</second> </first> <second>12</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>j_cast5_fu_376_p1</rtlName> <coreName/> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>178</item> </oprand_edges> <opcode>zext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_34"> <Value> <Obj> <type>0</type> <id>42</id> <name>j_cast5_cast4</name> <fileName>matrix_mult.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>matrix_mult</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\markb\Source\Repos\FPGA_Sandbox\RecComp\Lab2\Zynq_Book\hls\tut3A</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>matrix_mult.cpp</first> <second>matrix_mult</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>j_cast5_cast4_fu_384_p1</rtlName> <coreName/> </Obj> <bitwidth>6</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>179</item> </oprand_edges> <opcode>zext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_35"> <Value> <Obj> <type>0</type> <id>43</id> <name>j_cast5_cast3</name> <fileName>matrix_mult.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>matrix_mult</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\markb\Source\Repos\FPGA_Sandbox\RecComp\Lab2\Zynq_Book\hls\tut3A</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>matrix_mult.cpp</first> <second>matrix_mult</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>j_cast5_cast3_fu_274_p1</rtlName> <coreName/> </Obj> <bitwidth>5</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>180</item> </oprand_edges> <opcode>zext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_36"> <Value> <Obj> <type>0</type> <id>44</id> <name>j_cast5_cast</name> <fileName>matrix_mult.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>matrix_mult</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\markb\Source\Repos\FPGA_Sandbox\RecComp\Lab2\Zynq_Book\hls\tut3A</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>matrix_mult.cpp</first> <second>matrix_mult</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>j_cast5_cast_fu_277_p1</rtlName> <coreName/> </Obj> <bitwidth>4</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>181</item> </oprand_edges> <opcode>zext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_37"> <Value> <Obj> <type>0</type> <id>45</id> <name>b_addr</name> <fileName>matrix_mult.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>matrix_mult</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\markb\Source\Repos\FPGA_Sandbox\RecComp\Lab2\Zynq_Book\hls\tut3A</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>matrix_mult.cpp</first> <second>matrix_mult</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>5</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>182</item> <item>183</item> <item>184</item> </oprand_edges> <opcode>getelementptr</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_38"> <Value> <Obj> <type>0</type> <id>46</id> <name>tmp_12</name> <fileName>matrix_mult.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>matrix_mult</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\markb\Source\Repos\FPGA_Sandbox\RecComp\Lab2\Zynq_Book\hls\tut3A</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>matrix_mult.cpp</first> <second>matrix_mult</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_12_fu_280_p2</rtlName> <coreName/> </Obj> <bitwidth>4</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>185</item> <item>187</item> </oprand_edges> <opcode>add</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_39"> <Value> <Obj> <type>0</type> <id>47</id> <name>tmp_12_cast</name> <fileName>matrix_mult.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>matrix_mult</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\markb\Source\Repos\FPGA_Sandbox\RecComp\Lab2\Zynq_Book\hls\tut3A</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>matrix_mult.cpp</first> <second>matrix_mult</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_12_cast_fu_302_p1</rtlName> <coreName/> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>188</item> </oprand_edges> <opcode>zext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_40"> <Value> <Obj> <type>0</type> <id>48</id> <name>b_addr_1</name> <fileName>matrix_mult.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>matrix_mult</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\markb\Source\Repos\FPGA_Sandbox\RecComp\Lab2\Zynq_Book\hls\tut3A</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>matrix_mult.cpp</first> <second>matrix_mult</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>5</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>189</item> <item>190</item> <item>191</item> </oprand_edges> <opcode>getelementptr</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_41"> <Value> <Obj> <type>0</type> <id>49</id> <name>tmp_13</name> <fileName>matrix_mult.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>matrix_mult</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\markb\Source\Repos\FPGA_Sandbox\RecComp\Lab2\Zynq_Book\hls\tut3A</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>matrix_mult.cpp</first> <second>matrix_mult</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_13_fu_387_p2</rtlName> <coreName/> </Obj> <bitwidth>5</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>192</item> <item>194</item> </oprand_edges> <opcode>add</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_42"> <Value> <Obj> <type>0</type> <id>50</id> <name>tmp_13_cast</name> <fileName>matrix_mult.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>matrix_mult</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\markb\Source\Repos\FPGA_Sandbox\RecComp\Lab2\Zynq_Book\hls\tut3A</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>matrix_mult.cpp</first> <second>matrix_mult</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_13_cast_fu_404_p1</rtlName> <coreName/> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>195</item> </oprand_edges> <opcode>zext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_43"> <Value> <Obj> <type>0</type> <id>51</id> <name>b_addr_2</name> <fileName>matrix_mult.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>matrix_mult</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\markb\Source\Repos\FPGA_Sandbox\RecComp\Lab2\Zynq_Book\hls\tut3A</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>matrix_mult.cpp</first> <second>matrix_mult</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>5</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>196</item> <item>197</item> <item>198</item> </oprand_edges> <opcode>getelementptr</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_44"> <Value> <Obj> <type>0</type> <id>52</id> <name>tmp_14</name> <fileName>matrix_mult.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>matrix_mult</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\markb\Source\Repos\FPGA_Sandbox\RecComp\Lab2\Zynq_Book\hls\tut3A</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>matrix_mult.cpp</first> <second>matrix_mult</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_14_fu_323_p2</rtlName> <coreName/> </Obj> <bitwidth>5</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>199</item> <item>201</item> </oprand_edges> <opcode>add</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_45"> <Value> <Obj> <type>0</type> <id>53</id> <name>tmp_14_cast</name> <fileName>matrix_mult.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>matrix_mult</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\markb\Source\Repos\FPGA_Sandbox\RecComp\Lab2\Zynq_Book\hls\tut3A</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>matrix_mult.cpp</first> <second>matrix_mult</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_14_cast_fu_352_p1</rtlName> <coreName/> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>202</item> </oprand_edges> <opcode>zext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_46"> <Value> <Obj> <type>0</type> <id>54</id> <name>b_addr_3</name> <fileName>matrix_mult.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>matrix_mult</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\markb\Source\Repos\FPGA_Sandbox\RecComp\Lab2\Zynq_Book\hls\tut3A</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>matrix_mult.cpp</first> <second>matrix_mult</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>5</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>203</item> <item>204</item> <item>205</item> </oprand_edges> <opcode>getelementptr</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_47"> <Value> <Obj> <type>0</type> <id>55</id> <name>tmp_15</name> <fileName>matrix_mult.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>matrix_mult</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\markb\Source\Repos\FPGA_Sandbox\RecComp\Lab2\Zynq_Book\hls\tut3A</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>matrix_mult.cpp</first> <second>matrix_mult</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_15_fu_286_p2</rtlName> <coreName/> </Obj> <bitwidth>5</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>206</item> <item>208</item> </oprand_edges> <opcode>add</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_48"> <Value> <Obj> <type>0</type> <id>56</id> <name>tmp_15_cast</name> <fileName>matrix_mult.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>matrix_mult</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\markb\Source\Repos\FPGA_Sandbox\RecComp\Lab2\Zynq_Book\hls\tut3A</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>matrix_mult.cpp</first> <second>matrix_mult</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_15_cast_fu_306_p1</rtlName> <coreName/> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>209</item> </oprand_edges> <opcode>zext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_49"> <Value> <Obj> <type>0</type> <id>57</id> <name>b_addr_4</name> <fileName>matrix_mult.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>matrix_mult</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\markb\Source\Repos\FPGA_Sandbox\RecComp\Lab2\Zynq_Book\hls\tut3A</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>matrix_mult.cpp</first> <second>matrix_mult</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>5</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>210</item> <item>211</item> <item>212</item> </oprand_edges> <opcode>getelementptr</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_50"> <Value> <Obj> <type>0</type> <id>58</id> <name>tmp_16</name> <fileName>matrix_mult.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>13</lineNumber> <contextFuncName>matrix_mult</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\markb\Source\Repos\FPGA_Sandbox\RecComp\Lab2\Zynq_Book\hls\tut3A</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>matrix_mult.cpp</first> <second>matrix_mult</second> </first> <second>13</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_16_fu_392_p2</rtlName> <coreName/> </Obj> <bitwidth>6</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> </item> <item class_id_reference="9" object_id="_51"> <Value> <Obj> <type>0</type> <id>59</id> <name>tmp_16_cast</name> <fileName>matrix_mult.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>13</lineNumber> <contextFuncName>matrix_mult</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\markb\Source\Repos\FPGA_Sandbox\RecComp\Lab2\Zynq_Book\hls\tut3A</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>matrix_mult.cpp</first> <second>matrix_mult</second> </first> <second>13</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_16_cast_fu_428_p1</rtlName> <coreName/> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>215</item> </oprand_edges> <opcode>zext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_52"> <Value> <Obj> <type>0</type> <id>60</id> <name>prod_addr</name> <fileName>matrix_mult.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>13</lineNumber> <contextFuncName>matrix_mult</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\markb\Source\Repos\FPGA_Sandbox\RecComp\Lab2\Zynq_Book\hls\tut3A</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>matrix_mult.cpp</first> <second>matrix_mult</second> </first> <second>13</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>5</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>216</item> <item>217</item> <item>218</item> </oprand_edges> <opcode>getelementptr</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_53"> <Value> <Obj> <type>0</type> <id>64</id> <name>a_load</name> <fileName>matrix_mult.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>matrix_mult</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\markb\Source\Repos\FPGA_Sandbox\RecComp\Lab2\Zynq_Book\hls\tut3A</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>matrix_mult.cpp</first> <second>matrix_mult</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>219</item> </oprand_edges> <opcode>load</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_54"> <Value> <Obj> <type>0</type> <id>65</id> <name>tmp2</name> <fileName>matrix_mult.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>matrix_mult</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\markb\Source\Repos\FPGA_Sandbox\RecComp\Lab2\Zynq_Book\hls\tut3A</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>matrix_mult.cpp</first> <second>matrix_mult</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>16</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>220</item> </oprand_edges> <opcode>sext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_55"> <Value> <Obj> <type>0</type> <id>66</id> <name>b_load</name> <fileName>matrix_mult.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>matrix_mult</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\markb\Source\Repos\FPGA_Sandbox\RecComp\Lab2\Zynq_Book\hls\tut3A</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>matrix_mult.cpp</first> <second>matrix_mult</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>221</item> </oprand_edges> <opcode>load</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_56"> <Value> <Obj> <type>0</type> <id>67</id> <name>tmp_6</name> <fileName>matrix_mult.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>matrix_mult</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\markb\Source\Repos\FPGA_Sandbox\RecComp\Lab2\Zynq_Book\hls\tut3A</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>matrix_mult.cpp</first> <second>matrix_mult</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>16</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>222</item> </oprand_edges> <opcode>sext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_57"> <Value> <Obj> <type>0</type> <id>68</id> <name>tmp_2</name> <fileName>matrix_mult.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>matrix_mult</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\markb\Source\Repos\FPGA_Sandbox\RecComp\Lab2\Zynq_Book\hls\tut3A</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>matrix_mult.cpp</first> <second>matrix_mult</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>matrix_mult_mac_mcud_U3</rtlName> <coreName/> </Obj> <bitwidth>16</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>223</item> <item>224</item> </oprand_edges> <opcode>mul</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_58"> <Value> <Obj> <type>0</type> <id>69</id> <name>a_load_1</name> <fileName>matrix_mult.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>matrix_mult</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\markb\Source\Repos\FPGA_Sandbox\RecComp\Lab2\Zynq_Book\hls\tut3A</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>matrix_mult.cpp</first> <second>matrix_mult</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>225</item> </oprand_edges> <opcode>load</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_59"> <Value> <Obj> <type>0</type> <id>70</id> <name>tmp_s</name> <fileName>matrix_mult.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>matrix_mult</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\markb\Source\Repos\FPGA_Sandbox\RecComp\Lab2\Zynq_Book\hls\tut3A</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>matrix_mult.cpp</first> <second>matrix_mult</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>16</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>226</item> </oprand_edges> <opcode>sext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_60"> <Value> <Obj> <type>0</type> <id>71</id> <name>b_load_1</name> <fileName>matrix_mult.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>matrix_mult</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\markb\Source\Repos\FPGA_Sandbox\RecComp\Lab2\Zynq_Book\hls\tut3A</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>matrix_mult.cpp</first> <second>matrix_mult</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>227</item> </oprand_edges> <opcode>load</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_61"> <Value> <Obj> <type>0</type> <id>72</id> <name>tmp_1_1</name> <fileName>matrix_mult.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>matrix_mult</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\markb\Source\Repos\FPGA_Sandbox\RecComp\Lab2\Zynq_Book\hls\tut3A</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>matrix_mult.cpp</first> <second>matrix_mult</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>16</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>228</item> </oprand_edges> <opcode>sext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_62"> <Value> <Obj> <type>0</type> <id>73</id> <name>tmp_2_1</name> <fileName>matrix_mult.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>matrix_mult</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\markb\Source\Repos\FPGA_Sandbox\RecComp\Lab2\Zynq_Book\hls\tut3A</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>matrix_mult.cpp</first> <second>matrix_mult</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>matrix_mult_mul_8bkb_U1</rtlName> <coreName/> </Obj> <bitwidth>16</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>229</item> <item>230</item> </oprand_edges> <opcode>mul</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_63"> <Value> <Obj> <type>0</type> <id>74</id> <name>a_load_2</name> <fileName>matrix_mult.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>matrix_mult</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\markb\Source\Repos\FPGA_Sandbox\RecComp\Lab2\Zynq_Book\hls\tut3A</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>matrix_mult.cpp</first> <second>matrix_mult</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>231</item> </oprand_edges> <opcode>load</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_64"> <Value> <Obj> <type>0</type> <id>75</id> <name>tmp_3</name> <fileName>matrix_mult.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>matrix_mult</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\markb\Source\Repos\FPGA_Sandbox\RecComp\Lab2\Zynq_Book\hls\tut3A</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>matrix_mult.cpp</first> <second>matrix_mult</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>16</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>232</item> </oprand_edges> <opcode>sext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_65"> <Value> <Obj> <type>0</type> <id>76</id> <name>b_load_2</name> <fileName>matrix_mult.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>matrix_mult</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\markb\Source\Repos\FPGA_Sandbox\RecComp\Lab2\Zynq_Book\hls\tut3A</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>matrix_mult.cpp</first> <second>matrix_mult</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>233</item> </oprand_edges> <opcode>load</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_66"> <Value> <Obj> <type>0</type> <id>77</id> <name>tmp_1_2</name> <fileName>matrix_mult.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>matrix_mult</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\markb\Source\Repos\FPGA_Sandbox\RecComp\Lab2\Zynq_Book\hls\tut3A</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>matrix_mult.cpp</first> <second>matrix_mult</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>16</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>234</item> </oprand_edges> <opcode>sext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_67"> <Value> <Obj> <type>0</type> <id>78</id> <name>tmp_2_2</name> <fileName>matrix_mult.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>matrix_mult</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\markb\Source\Repos\FPGA_Sandbox\RecComp\Lab2\Zynq_Book\hls\tut3A</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>matrix_mult.cpp</first> <second>matrix_mult</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>matrix_mult_mac_mdEe_U4</rtlName> <coreName/> </Obj> <bitwidth>16</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>235</item> <item>236</item> </oprand_edges> <opcode>mul</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_68"> <Value> <Obj> <type>0</type> <id>79</id> <name>a_load_3</name> <fileName>matrix_mult.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>matrix_mult</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\markb\Source\Repos\FPGA_Sandbox\RecComp\Lab2\Zynq_Book\hls\tut3A</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>matrix_mult.cpp</first> <second>matrix_mult</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>237</item> </oprand_edges> <opcode>load</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_69"> <Value> <Obj> <type>0</type> <id>80</id> <name>tmp_5</name> <fileName>matrix_mult.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>matrix_mult</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\markb\Source\Repos\FPGA_Sandbox\RecComp\Lab2\Zynq_Book\hls\tut3A</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>matrix_mult.cpp</first> <second>matrix_mult</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>16</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>238</item> </oprand_edges> <opcode>sext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_70"> <Value> <Obj> <type>0</type> <id>81</id> <name>b_load_3</name> <fileName>matrix_mult.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>matrix_mult</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\markb\Source\Repos\FPGA_Sandbox\RecComp\Lab2\Zynq_Book\hls\tut3A</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>matrix_mult.cpp</first> <second>matrix_mult</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>239</item> </oprand_edges> <opcode>load</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_71"> <Value> <Obj> <type>0</type> <id>82</id> <name>tmp_1_3</name> <fileName>matrix_mult.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>matrix_mult</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\markb\Source\Repos\FPGA_Sandbox\RecComp\Lab2\Zynq_Book\hls\tut3A</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>matrix_mult.cpp</first> <second>matrix_mult</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>16</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>240</item> </oprand_edges> <opcode>sext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_72"> <Value> <Obj> <type>0</type> <id>83</id> <name>tmp_2_3</name> <fileName>matrix_mult.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>matrix_mult</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\markb\Source\Repos\FPGA_Sandbox\RecComp\Lab2\Zynq_Book\hls\tut3A</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>matrix_mult.cpp</first> <second>matrix_mult</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>matrix_mult_mac_mcud_U2</rtlName> <coreName/> </Obj> <bitwidth>16</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>241</item> <item>242</item> </oprand_edges> <opcode>mul</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_73"> <Value> <Obj> <type>0</type> <id>84</id> <name>a_load_4</name> <fileName>matrix_mult.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>matrix_mult</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\markb\Source\Repos\FPGA_Sandbox\RecComp\Lab2\Zynq_Book\hls\tut3A</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>matrix_mult.cpp</first> <second>matrix_mult</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>243</item> </oprand_edges> <opcode>load</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_74"> <Value> <Obj> <type>0</type> <id>85</id> <name>tmp_4</name> <fileName>matrix_mult.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>matrix_mult</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\markb\Source\Repos\FPGA_Sandbox\RecComp\Lab2\Zynq_Book\hls\tut3A</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>matrix_mult.cpp</first> <second>matrix_mult</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>16</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>244</item> </oprand_edges> <opcode>sext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_75"> <Value> <Obj> <type>0</type> <id>86</id> <name>b_load_4</name> <fileName>matrix_mult.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>matrix_mult</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\markb\Source\Repos\FPGA_Sandbox\RecComp\Lab2\Zynq_Book\hls\tut3A</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>matrix_mult.cpp</first> <second>matrix_mult</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>245</item> </oprand_edges> <opcode>load</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_76"> <Value> <Obj> <type>0</type> <id>87</id> <name>tmp_1_4</name> <fileName>matrix_mult.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>matrix_mult</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\markb\Source\Repos\FPGA_Sandbox\RecComp\Lab2\Zynq_Book\hls\tut3A</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>matrix_mult.cpp</first> <second>matrix_mult</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>16</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>246</item> </oprand_edges> <opcode>sext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_77"> <Value> <Obj> <type>0</type> <id>88</id> <name>tmp_2_4</name> <fileName>matrix_mult.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>matrix_mult</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\markb\Source\Repos\FPGA_Sandbox\RecComp\Lab2\Zynq_Book\hls\tut3A</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>matrix_mult.cpp</first> <second>matrix_mult</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>matrix_mult_mul_8bkb_U0</rtlName> <coreName/> </Obj> <bitwidth>16</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>247</item> <item>248</item> </oprand_edges> <opcode>mul</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_78"> <Value> <Obj> <type>0</type> <id>89</id> <name>tmp1</name> <fileName>matrix_mult.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>matrix_mult</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\markb\Source\Repos\FPGA_Sandbox\RecComp\Lab2\Zynq_Book\hls\tut3A</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>matrix_mult.cpp</first> <second>matrix_mult</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>matrix_mult_mac_mcud_U3</rtlName> <coreName/> </Obj> <bitwidth>16</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>249</item> <item>250</item> </oprand_edges> <opcode>add</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_79"> <Value> <Obj> <type>0</type> <id>90</id> <name>tmp4</name> <fileName>matrix_mult.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>matrix_mult</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\markb\Source\Repos\FPGA_Sandbox\RecComp\Lab2\Zynq_Book\hls\tut3A</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>matrix_mult.cpp</first> <second>matrix_mult</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>matrix_mult_mac_mcud_U2</rtlName> <coreName/> </Obj> <bitwidth>16</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>251</item> <item>252</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>91</id> <name>tmp3</name> <fileName>matrix_mult.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>matrix_mult</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\markb\Source\Repos\FPGA_Sandbox\RecComp\Lab2\Zynq_Book\hls\tut3A</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>matrix_mult.cpp</first> <second>matrix_mult</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>matrix_mult_mac_mdEe_U4</rtlName> <coreName/> </Obj> <bitwidth>16</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>253</item> <item>254</item> </oprand_edges> <opcode>add</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_81"> <Value> <Obj> <type>0</type> <id>92</id> <name>tmp_3_4</name> <fileName>matrix_mult.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>matrix_mult</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\markb\Source\Repos\FPGA_Sandbox\RecComp\Lab2\Zynq_Book\hls\tut3A</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>matrix_mult.cpp</first> <second>matrix_mult</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_3_4_fu_424_p2</rtlName> <coreName/> </Obj> <bitwidth>16</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>255</item> <item>256</item> </oprand_edges> <opcode>add</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_82"> <Value> <Obj> <type>0</type> <id>93</id> <name/> <fileName>matrix_mult.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>matrix_mult</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\markb\Source\Repos\FPGA_Sandbox\RecComp\Lab2\Zynq_Book\hls\tut3A</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>matrix_mult.cpp</first> <second>matrix_mult</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>257</item> <item>258</item> </oprand_edges> <opcode>store</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_83"> <Value> <Obj> <type>0</type> <id>95</id> <name>j_1</name> <fileName>matrix_mult.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>12</lineNumber> <contextFuncName>matrix_mult</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\markb\Source\Repos\FPGA_Sandbox\RecComp\Lab2\Zynq_Book\hls\tut3A</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>matrix_mult.cpp</first> <second>matrix_mult</second> </first> <second>12</second> </item> </second> </item> </inlineStackInfo> <originalName>j</originalName> <rtlName>j_1_fu_310_p2</rtlName> <coreName/> </Obj> <bitwidth>3</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>259</item> <item>260</item> </oprand_edges> <opcode>add</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_84"> <Value> <Obj> <type>0</type> <id>96</id> <name/> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>261</item> </oprand_edges> <opcode>br</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_85"> <Value> <Obj> <type>0</type> <id>98</id> <name/> <fileName>matrix_mult.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>21</lineNumber> <contextFuncName>matrix_mult</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>C:\Users\markb\Source\Repos\FPGA_Sandbox\RecComp\Lab2\Zynq_Book\hls\tut3A</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>matrix_mult.cpp</first> <second>matrix_mult</second> </first> <second>21</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <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>16</count> <item_version>0</item_version> <item class_id="16" tracking_level="1" version="0" object_id="_86"> <Value> <Obj> <type>2</type> <id>101</id> <name>empty</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>5</bitwidth> </Value> <const_type>0</const_type> <content>0</content> </item> <item class_id_reference="16" object_id="_87"> <Value> <Obj> <type>2</type> <id>106</id> <name>empty</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>3</bitwidth> </Value> <const_type>0</const_type> <content>0</content> </item> <item class_id_reference="16" object_id="_88"> <Value> <Obj> <type>2</type> <id>116</id> <name>empty</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>5</bitwidth> </Value> <const_type>0</const_type> <content>25</content> </item> <item class_id_reference="16" object_id="_89"> <Value> <Obj> <type>2</type> <id>119</id> <name>empty</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>5</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>125</id> <name>empty</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>3</bitwidth> </Value> <const_type>0</const_type> <content>1</content> </item> <item class_id_reference="16" object_id="_91"> <Value> <Obj> <type>2</type> <id>128</id> <name>empty</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>3</bitwidth> </Value> <const_type>0</const_type> <content>5</content> </item> <item class_id_reference="16" object_id="_92"> <Value> <Obj> <type>2</type> <id>140</id> <name>empty</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>2</bitwidth> </Value> <const_type>0</const_type> <content>0</content> </item> <item class_id_reference="16" object_id="_93"> <Value> <Obj> <type>2</type> <id>147</id> <name>empty</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>32</bitwidth> </Value> <const_type>0</const_type> <content>0</content> </item> <item class_id_reference="16" object_id="_94"> <Value> <Obj> <type>2</type> <id>151</id> <name>empty</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>6</bitwidth> </Value> <const_type>0</const_type> <content>1</content> </item> <item class_id_reference="16" object_id="_95"> <Value> <Obj> <type>2</type> <id>158</id> <name>empty</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>6</bitwidth> </Value> <const_type>0</const_type> <content>2</content> </item> <item class_id_reference="16" object_id="_96"> <Value> <Obj> <type>2</type> <id>165</id> <name>empty</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>6</bitwidth> </Value> <const_type>0</const_type> <content>3</content> </item> <item class_id_reference="16" object_id="_97"> <Value> <Obj> <type>2</type> <id>172</id> <name>empty</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>6</bitwidth> </Value> <const_type>0</const_type> <content>4</content> </item> <item class_id_reference="16" object_id="_98"> <Value> <Obj> <type>2</type> <id>186</id> <name>empty</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>4</bitwidth> </Value> <const_type>0</const_type> <content>5</content> </item> <item class_id_reference="16" object_id="_99"> <Value> <Obj> <type>2</type> <id>193</id> <name>empty</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>5</bitwidth> </Value> <const_type>0</const_type> <content>10</content> </item> <item class_id_reference="16" object_id="_100"> <Value> <Obj> <type>2</type> <id>200</id> <name>empty</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>5</bitwidth> </Value> <const_type>0</const_type> <content>15</content> </item> <item class_id_reference="16" object_id="_101"> <Value> <Obj> <type>2</type> <id>207</id> <name>empty</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>5</bitwidth> </Value> <const_type>0</const_type> <content>20</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="_102"> <Obj> <type>3</type> <id>9</id> <name/> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <node_objs> <count>1</count> <item_version>0</item_version> <item>8</item> </node_objs> </item> <item class_id_reference="18" object_id="_103"> <Obj> <type>3</type> <id>16</id> <name/> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <node_objs> <count>6</count> <item_version>0</item_version> <item>10</item> <item>11</item> <item>12</item> <item>13</item> <item>14</item> <item>15</item> </node_objs> </item> <item class_id_reference="18" object_id="_104"> <Obj> <type>3</type> <id>97</id> <name>.reset</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <node_objs> <count>74</count> <item_version>0</item_version> <item>17</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>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>95</item> <item>96</item> </node_objs> </item> <item class_id_reference="18" object_id="_105"> <Obj> <type>3</type> <id>99</id> <name/> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <node_objs> <count>1</count> <item_version>0</item_version> <item>98</item> </node_objs> </item> </blocks> <edges class_id="19" tracking_level="0" version="0"> <count>148</count> <item_version>0</item_version> <item class_id="20" tracking_level="1" version="0" object_id="_106"> <id>100</id> <edge_type>2</edge_type> <source_obj>16</source_obj> <sink_obj>8</sink_obj> </item> <item class_id_reference="20" object_id="_107"> <id>102</id> <edge_type>1</edge_type> <source_obj>101</source_obj> <sink_obj>10</sink_obj> </item> <item class_id_reference="20" object_id="_108"> <id>103</id> <edge_type>2</edge_type> <source_obj>9</source_obj> <sink_obj>10</sink_obj> </item> <item class_id_reference="20" object_id="_109"> <id>104</id> <edge_type>1</edge_type> <source_obj>14</source_obj> <sink_obj>10</sink_obj> </item> <item class_id_reference="20" object_id="_110"> <id>105</id> <edge_type>2</edge_type> <source_obj>97</source_obj> <sink_obj>10</sink_obj> </item> <item class_id_reference="20" object_id="_111"> <id>107</id> <edge_type>1</edge_type> <source_obj>106</source_obj> <sink_obj>11</sink_obj> </item> <item class_id_reference="20" object_id="_112"> <id>108</id> <edge_type>2</edge_type> <source_obj>9</source_obj> <sink_obj>11</sink_obj> </item> <item class_id_reference="20" object_id="_113"> <id>109</id> <edge_type>1</edge_type> <source_obj>22</source_obj> <sink_obj>11</sink_obj> </item> <item class_id_reference="20" object_id="_114"> <id>110</id> <edge_type>2</edge_type> <source_obj>97</source_obj> <sink_obj>11</sink_obj> </item> <item class_id_reference="20" object_id="_115"> <id>111</id> <edge_type>1</edge_type> <source_obj>106</source_obj> <sink_obj>12</sink_obj> </item> <item class_id_reference="20" object_id="_116"> <id>112</id> <edge_type>2</edge_type> <source_obj>9</source_obj> <sink_obj>12</sink_obj> </item> <item class_id_reference="20" object_id="_117"> <id>113</id> <edge_type>1</edge_type> <source_obj>95</source_obj> <sink_obj>12</sink_obj> </item> <item class_id_reference="20" object_id="_118"> <id>114</id> <edge_type>2</edge_type> <source_obj>97</source_obj> <sink_obj>12</sink_obj> </item> <item class_id_reference="20" object_id="_119"> <id>115</id> <edge_type>1</edge_type> <source_obj>10</source_obj> <sink_obj>13</sink_obj> </item> <item class_id_reference="20" object_id="_120"> <id>117</id> <edge_type>1</edge_type> <source_obj>116</source_obj> <sink_obj>13</sink_obj> </item> <item class_id_reference="20" object_id="_121"> <id>118</id> <edge_type>1</edge_type> <source_obj>10</source_obj> <sink_obj>14</sink_obj> </item> <item class_id_reference="20" object_id="_122"> <id>120</id> <edge_type>1</edge_type> <source_obj>119</source_obj> <sink_obj>14</sink_obj> </item> <item class_id_reference="20" object_id="_123"> <id>121</id> <edge_type>1</edge_type> <source_obj>13</source_obj> <sink_obj>15</sink_obj> </item> <item class_id_reference="20" object_id="_124"> <id>122</id> <edge_type>2</edge_type> <source_obj>97</source_obj> <sink_obj>15</sink_obj> </item> <item class_id_reference="20" object_id="_125"> <id>123</id> <edge_type>2</edge_type> <source_obj>99</source_obj> <sink_obj>15</sink_obj> </item> <item class_id_reference="20" object_id="_126"> <id>124</id> <edge_type>1</edge_type> <source_obj>11</source_obj> <sink_obj>17</sink_obj> </item> <item class_id_reference="20" object_id="_127"> <id>126</id> <edge_type>1</edge_type> <source_obj>125</source_obj> <sink_obj>17</sink_obj> </item> <item class_id_reference="20" object_id="_128"> <id>127</id> <edge_type>1</edge_type> <source_obj>12</source_obj> <sink_obj>20</sink_obj> </item> <item class_id_reference="20" object_id="_129"> <id>129</id> <edge_type>1</edge_type> <source_obj>128</source_obj> <sink_obj>20</sink_obj> </item> <item class_id_reference="20" object_id="_130"> <id>130</id> <edge_type>1</edge_type> <source_obj>20</source_obj> <sink_obj>21</sink_obj> </item> <item class_id_reference="20" object_id="_131"> <id>131</id> <edge_type>1</edge_type> <source_obj>106</source_obj> <sink_obj>21</sink_obj> </item> <item class_id_reference="20" object_id="_132"> <id>132</id> <edge_type>1</edge_type> <source_obj>12</source_obj> <sink_obj>21</sink_obj> </item> <item class_id_reference="20" object_id="_133"> <id>133</id> <edge_type>1</edge_type> <source_obj>20</source_obj> <sink_obj>22</sink_obj> </item> <item class_id_reference="20" object_id="_134"> <id>134</id> <edge_type>1</edge_type> <source_obj>17</source_obj> <sink_obj>22</sink_obj> </item> <item class_id_reference="20" object_id="_135"> <id>135</id> <edge_type>1</edge_type> <source_obj>11</source_obj> <sink_obj>22</sink_obj> </item> <item class_id_reference="20" object_id="_136"> <id>136</id> <edge_type>1</edge_type> <source_obj>22</source_obj> <sink_obj>23</sink_obj> </item> <item class_id_reference="20" object_id="_137"> <id>139</id> <edge_type>1</edge_type> <source_obj>22</source_obj> <sink_obj>24</sink_obj> </item> <item class_id_reference="20" object_id="_138"> <id>141</id> <edge_type>1</edge_type> <source_obj>140</source_obj> <sink_obj>24</sink_obj> </item> <item class_id_reference="20" object_id="_139"> <id>142</id> <edge_type>1</edge_type> <source_obj>24</source_obj> <sink_obj>25</sink_obj> </item> <item class_id_reference="20" object_id="_140"> <id>143</id> <edge_type>1</edge_type> <source_obj>23</source_obj> <sink_obj>26</sink_obj> </item> <item class_id_reference="20" object_id="_141"> <id>144</id> <edge_type>1</edge_type> <source_obj>25</source_obj> <sink_obj>26</sink_obj> </item> <item class_id_reference="20" object_id="_142"> <id>145</id> <edge_type>1</edge_type> <source_obj>26</source_obj> <sink_obj>27</sink_obj> </item> <item class_id_reference="20" object_id="_143"> <id>146</id> <edge_type>1</edge_type> <source_obj>1</source_obj> <sink_obj>28</sink_obj> </item> <item class_id_reference="20" object_id="_144"> <id>148</id> <edge_type>1</edge_type> <source_obj>147</source_obj> <sink_obj>28</sink_obj> </item> <item class_id_reference="20" object_id="_145"> <id>149</id> <edge_type>1</edge_type> <source_obj>27</source_obj> <sink_obj>28</sink_obj> </item> <item class_id_reference="20" object_id="_146"> <id>150</id> <edge_type>1</edge_type> <source_obj>26</source_obj> <sink_obj>29</sink_obj> </item> <item class_id_reference="20" object_id="_147"> <id>152</id> <edge_type>1</edge_type> <source_obj>151</source_obj> <sink_obj>29</sink_obj> </item> <item class_id_reference="20" object_id="_148"> <id>153</id> <edge_type>1</edge_type> <source_obj>29</source_obj> <sink_obj>30</sink_obj> </item> <item class_id_reference="20" object_id="_149"> <id>154</id> <edge_type>1</edge_type> <source_obj>1</source_obj> <sink_obj>31</sink_obj> </item> <item class_id_reference="20" object_id="_150"> <id>155</id> <edge_type>1</edge_type> <source_obj>147</source_obj> <sink_obj>31</sink_obj> </item> <item class_id_reference="20" object_id="_151"> <id>156</id> <edge_type>1</edge_type> <source_obj>30</source_obj> <sink_obj>31</sink_obj> </item> <item class_id_reference="20" object_id="_152"> <id>157</id> <edge_type>1</edge_type> <source_obj>26</source_obj> <sink_obj>32</sink_obj> </item> <item class_id_reference="20" object_id="_153"> <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="_154"> <id>160</id> <edge_type>1</edge_type> <source_obj>32</source_obj> <sink_obj>33</sink_obj> </item> <item class_id_reference="20" object_id="_155"> <id>161</id> <edge_type>1</edge_type> <source_obj>1</source_obj> <sink_obj>34</sink_obj> </item> <item class_id_reference="20" object_id="_156"> <id>162</id> <edge_type>1</edge_type> <source_obj>147</source_obj> <sink_obj>34</sink_obj> </item> <item class_id_reference="20" object_id="_157"> <id>163</id> <edge_type>1</edge_type> <source_obj>33</source_obj> <sink_obj>34</sink_obj> </item> <item class_id_reference="20" object_id="_158"> <id>164</id> <edge_type>1</edge_type> <source_obj>26</source_obj> <sink_obj>35</sink_obj> </item> <item class_id_reference="20" object_id="_159"> <id>166</id> <edge_type>1</edge_type> <source_obj>165</source_obj> <sink_obj>35</sink_obj> </item> <item class_id_reference="20" object_id="_160"> <id>167</id> <edge_type>1</edge_type> <source_obj>35</source_obj> <sink_obj>36</sink_obj> </item> <item class_id_reference="20" object_id="_161"> <id>168</id> <edge_type>1</edge_type> <source_obj>1</source_obj> <sink_obj>37</sink_obj> </item> <item class_id_reference="20" object_id="_162"> <id>169</id> <edge_type>1</edge_type> <source_obj>147</source_obj> <sink_obj>37</sink_obj> </item> <item class_id_reference="20" object_id="_163"> <id>170</id> <edge_type>1</edge_type> <source_obj>36</source_obj> <sink_obj>37</sink_obj> </item> <item class_id_reference="20" object_id="_164"> <id>171</id> <edge_type>1</edge_type> <source_obj>26</source_obj> <sink_obj>38</sink_obj> </item> <item class_id_reference="20" object_id="_165"> <id>173</id> <edge_type>1</edge_type> <source_obj>172</source_obj> <sink_obj>38</sink_obj> </item> <item class_id_reference="20" object_id="_166"> <id>174</id> <edge_type>1</edge_type> <source_obj>38</source_obj> <sink_obj>39</sink_obj> </item> <item class_id_reference="20" object_id="_167"> <id>175</id> <edge_type>1</edge_type> <source_obj>1</source_obj> <sink_obj>40</sink_obj> </item> <item class_id_reference="20" object_id="_168"> <id>176</id> <edge_type>1</edge_type> <source_obj>147</source_obj> <sink_obj>40</sink_obj> </item> <item class_id_reference="20" object_id="_169"> <id>177</id> <edge_type>1</edge_type> <source_obj>39</source_obj> <sink_obj>40</sink_obj> </item> <item class_id_reference="20" object_id="_170"> <id>178</id> <edge_type>1</edge_type> <source_obj>21</source_obj> <sink_obj>41</sink_obj> </item> <item class_id_reference="20" object_id="_171"> <id>179</id> <edge_type>1</edge_type> <source_obj>21</source_obj> <sink_obj>42</sink_obj> </item> <item class_id_reference="20" object_id="_172"> <id>180</id> <edge_type>1</edge_type> <source_obj>21</source_obj> <sink_obj>43</sink_obj> </item> <item class_id_reference="20" object_id="_173"> <id>181</id> <edge_type>1</edge_type> <source_obj>21</source_obj> <sink_obj>44</sink_obj> </item> <item class_id_reference="20" object_id="_174"> <id>182</id> <edge_type>1</edge_type> <source_obj>2</source_obj> <sink_obj>45</sink_obj> </item> <item class_id_reference="20" object_id="_175"> <id>183</id> <edge_type>1</edge_type> <source_obj>147</source_obj> <sink_obj>45</sink_obj> </item> <item class_id_reference="20" object_id="_176"> <id>184</id> <edge_type>1</edge_type> <source_obj>41</source_obj> <sink_obj>45</sink_obj> </item> <item class_id_reference="20" object_id="_177"> <id>185</id> <edge_type>1</edge_type> <source_obj>44</source_obj> <sink_obj>46</sink_obj> </item> <item class_id_reference="20" object_id="_178"> <id>187</id> <edge_type>1</edge_type> <source_obj>186</source_obj> <sink_obj>46</sink_obj> </item> <item class_id_reference="20" object_id="_179"> <id>188</id> <edge_type>1</edge_type> <source_obj>46</source_obj> <sink_obj>47</sink_obj> </item> <item class_id_reference="20" object_id="_180"> <id>189</id> <edge_type>1</edge_type> <source_obj>2</source_obj> <sink_obj>48</sink_obj> </item> <item class_id_reference="20" object_id="_181"> <id>190</id> <edge_type>1</edge_type> <source_obj>147</source_obj> <sink_obj>48</sink_obj> </item> <item class_id_reference="20" object_id="_182"> <id>191</id> <edge_type>1</edge_type> <source_obj>47</source_obj> <sink_obj>48</sink_obj> </item> <item class_id_reference="20" object_id="_183"> <id>192</id> <edge_type>1</edge_type> <source_obj>43</source_obj> <sink_obj>49</sink_obj> </item> <item class_id_reference="20" object_id="_184"> <id>194</id> <edge_type>1</edge_type> <source_obj>193</source_obj> <sink_obj>49</sink_obj> </item> <item class_id_reference="20" object_id="_185"> <id>195</id> <edge_type>1</edge_type> <source_obj>49</source_obj> <sink_obj>50</sink_obj> </item> <item class_id_reference="20" object_id="_186"> <id>196</id> <edge_type>1</edge_type> <source_obj>2</source_obj> <sink_obj>51</sink_obj> </item> <item class_id_reference="20" object_id="_187"> <id>197</id> <edge_type>1</edge_type> <source_obj>147</source_obj> <sink_obj>51</sink_obj> </item> <item class_id_reference="20" object_id="_188"> <id>198</id> <edge_type>1</edge_type> <source_obj>50</source_obj> <sink_obj>51</sink_obj> </item> <item class_id_reference="20" object_id="_189"> <id>199</id> <edge_type>1</edge_type> <source_obj>43</source_obj> <sink_obj>52</sink_obj> </item> <item class_id_reference="20" object_id="_190"> <id>201</id> <edge_type>1</edge_type> <source_obj>200</source_obj> <sink_obj>52</sink_obj> </item> <item class_id_reference="20" object_id="_191"> <id>202</id> <edge_type>1</edge_type> <source_obj>52</source_obj> <sink_obj>53</sink_obj> </item> <item class_id_reference="20" object_id="_192"> <id>203</id> <edge_type>1</edge_type> <source_obj>2</source_obj> <sink_obj>54</sink_obj> </item> <item class_id_reference="20" object_id="_193"> <id>204</id> <edge_type>1</edge_type> <source_obj>147</source_obj> <sink_obj>54</sink_obj> </item> <item class_id_reference="20" object_id="_194"> <id>205</id> <edge_type>1</edge_type> <source_obj>53</source_obj> <sink_obj>54</sink_obj> </item> <item class_id_reference="20" object_id="_195"> <id>206</id> <edge_type>1</edge_type> <source_obj>43</source_obj> <sink_obj>55</sink_obj> </item> <item class_id_reference="20" object_id="_196"> <id>208</id> <edge_type>1</edge_type> <source_obj>207</source_obj> <sink_obj>55</sink_obj> </item> <item class_id_reference="20" object_id="_197"> <id>209</id> <edge_type>1</edge_type> <source_obj>55</source_obj> <sink_obj>56</sink_obj> </item> <item class_id_reference="20" object_id="_198"> <id>210</id> <edge_type>1</edge_type> <source_obj>2</source_obj> <sink_obj>57</sink_obj> </item> <item class_id_reference="20" object_id="_199"> <id>211</id> <edge_type>1</edge_type> <source_obj>147</source_obj> <sink_obj>57</sink_obj> </item> <item class_id_reference="20" object_id="_200"> <id>212</id> <edge_type>1</edge_type> <source_obj>56</source_obj> <sink_obj>57</sink_obj> </item> <item class_id_reference="20" object_id="_201"> <id>213</id> <edge_type>1</edge_type> <source_obj>26</source_obj> <sink_obj>58</sink_obj> </item> <item class_id_reference="20" object_id="_202"> <id>214</id> <edge_type>1</edge_type> <source_obj>42</source_obj> <sink_obj>58</sink_obj> </item> <item class_id_reference="20" object_id="_203"> <id>215</id> <edge_type>1</edge_type> <source_obj>58</source_obj> <sink_obj>59</sink_obj> </item> <item class_id_reference="20" object_id="_204"> <id>216</id> <edge_type>1</edge_type> <source_obj>3</source_obj> <sink_obj>60</sink_obj> </item> <item class_id_reference="20" object_id="_205"> <id>217</id> <edge_type>1</edge_type> <source_obj>147</source_obj> <sink_obj>60</sink_obj> </item> <item class_id_reference="20" object_id="_206"> <id>218</id> <edge_type>1</edge_type> <source_obj>59</source_obj> <sink_obj>60</sink_obj> </item> <item class_id_reference="20" object_id="_207"> <id>219</id> <edge_type>1</edge_type> <source_obj>28</source_obj> <sink_obj>64</sink_obj> </item> <item class_id_reference="20" object_id="_208"> <id>220</id> <edge_type>1</edge_type> <source_obj>64</source_obj> <sink_obj>65</sink_obj> </item> <item class_id_reference="20" object_id="_209"> <id>221</id> <edge_type>1</edge_type> <source_obj>45</source_obj> <sink_obj>66</sink_obj> </item> <item class_id_reference="20" object_id="_210"> <id>222</id> <edge_type>1</edge_type> <source_obj>66</source_obj> <sink_obj>67</sink_obj> </item> <item class_id_reference="20" object_id="_211"> <id>223</id> <edge_type>1</edge_type> <source_obj>65</source_obj> <sink_obj>68</sink_obj> </item> <item class_id_reference="20" object_id="_212"> <id>224</id> <edge_type>1</edge_type> <source_obj>67</source_obj> <sink_obj>68</sink_obj> </item> <item class_id_reference="20" object_id="_213"> <id>225</id> <edge_type>1</edge_type> <source_obj>31</source_obj> <sink_obj>69</sink_obj> </item> <item class_id_reference="20" object_id="_214"> <id>226</id> <edge_type>1</edge_type> <source_obj>69</source_obj> <sink_obj>70</sink_obj> </item> <item class_id_reference="20" object_id="_215"> <id>227</id> <edge_type>1</edge_type> <source_obj>48</source_obj> <sink_obj>71</sink_obj> </item> <item class_id_reference="20" object_id="_216"> <id>228</id> <edge_type>1</edge_type> <source_obj>71</source_obj> <sink_obj>72</sink_obj> </item> <item class_id_reference="20" object_id="_217"> <id>229</id> <edge_type>1</edge_type> <source_obj>70</source_obj> <sink_obj>73</sink_obj> </item> <item class_id_reference="20" object_id="_218"> <id>230</id> <edge_type>1</edge_type> <source_obj>72</source_obj> <sink_obj>73</sink_obj> </item> <item class_id_reference="20" object_id="_219"> <id>231</id> <edge_type>1</edge_type> <source_obj>34</source_obj> <sink_obj>74</sink_obj> </item> <item class_id_reference="20" object_id="_220"> <id>232</id> <edge_type>1</edge_type> <source_obj>74</source_obj> <sink_obj>75</sink_obj> </item> <item class_id_reference="20" object_id="_221"> <id>233</id> <edge_type>1</edge_type> <source_obj>51</source_obj> <sink_obj>76</sink_obj> </item> <item class_id_reference="20" object_id="_222"> <id>234</id> <edge_type>1</edge_type> <source_obj>76</source_obj> <sink_obj>77</sink_obj> </item> <item class_id_reference="20" object_id="_223"> <id>235</id> <edge_type>1</edge_type> <source_obj>75</source_obj> <sink_obj>78</sink_obj> </item> <item class_id_reference="20" object_id="_224"> <id>236</id> <edge_type>1</edge_type> <source_obj>77</source_obj> <sink_obj>78</sink_obj> </item> <item class_id_reference="20" object_id="_225"> <id>237</id> <edge_type>1</edge_type> <source_obj>37</source_obj> <sink_obj>79</sink_obj> </item> <item class_id_reference="20" object_id="_226"> <id>238</id> <edge_type>1</edge_type> <source_obj>79</source_obj> <sink_obj>80</sink_obj> </item> <item class_id_reference="20" object_id="_227"> <id>239</id> <edge_type>1</edge_type> <source_obj>54</source_obj> <sink_obj>81</sink_obj> </item> <item class_id_reference="20" object_id="_228"> <id>240</id> <edge_type>1</edge_type> <source_obj>81</source_obj> <sink_obj>82</sink_obj> </item> <item class_id_reference="20" object_id="_229"> <id>241</id> <edge_type>1</edge_type> <source_obj>80</source_obj> <sink_obj>83</sink_obj> </item> <item class_id_reference="20" object_id="_230"> <id>242</id> <edge_type>1</edge_type> <source_obj>82</source_obj> <sink_obj>83</sink_obj> </item> <item class_id_reference="20" object_id="_231"> <id>243</id> <edge_type>1</edge_type> <source_obj>40</source_obj> <sink_obj>84</sink_obj> </item> <item class_id_reference="20" object_id="_232"> <id>244</id> <edge_type>1</edge_type> <source_obj>84</source_obj> <sink_obj>85</sink_obj> </item> <item class_id_reference="20" object_id="_233"> <id>245</id> <edge_type>1</edge_type> <source_obj>57</source_obj> <sink_obj>86</sink_obj> </item> <item class_id_reference="20" object_id="_234"> <id>246</id> <edge_type>1</edge_type> <source_obj>86</source_obj> <sink_obj>87</sink_obj> </item> <item class_id_reference="20" object_id="_235"> <id>247</id> <edge_type>1</edge_type> <source_obj>85</source_obj> <sink_obj>88</sink_obj> </item> <item class_id_reference="20" object_id="_236"> <id>248</id> <edge_type>1</edge_type> <source_obj>87</source_obj> <sink_obj>88</sink_obj> </item> <item class_id_reference="20" object_id="_237"> <id>249</id> <edge_type>1</edge_type> <source_obj>73</source_obj> <sink_obj>89</sink_obj> </item> <item class_id_reference="20" object_id="_238"> <id>250</id> <edge_type>1</edge_type> <source_obj>68</source_obj> <sink_obj>89</sink_obj> </item> <item class_id_reference="20" object_id="_239"> <id>251</id> <edge_type>1</edge_type> <source_obj>88</source_obj> <sink_obj>90</sink_obj> </item> <item class_id_reference="20" object_id="_240"> <id>252</id> <edge_type>1</edge_type> <source_obj>83</source_obj> <sink_obj>90</sink_obj> </item> <item class_id_reference="20" object_id="_241"> <id>253</id> <edge_type>1</edge_type> <source_obj>78</source_obj> <sink_obj>91</sink_obj> </item> <item class_id_reference="20" object_id="_242"> <id>254</id> <edge_type>1</edge_type> <source_obj>90</source_obj> <sink_obj>91</sink_obj> </item> <item class_id_reference="20" object_id="_243"> <id>255</id> <edge_type>1</edge_type> <source_obj>89</source_obj> <sink_obj>92</sink_obj> </item> <item class_id_reference="20" object_id="_244"> <id>256</id> <edge_type>1</edge_type> <source_obj>91</source_obj> <sink_obj>92</sink_obj> </item> <item class_id_reference="20" object_id="_245"> <id>257</id> <edge_type>1</edge_type> <source_obj>92</source_obj> <sink_obj>93</sink_obj> </item> <item class_id_reference="20" object_id="_246"> <id>258</id> <edge_type>1</edge_type> <source_obj>60</source_obj> <sink_obj>93</sink_obj> </item> <item class_id_reference="20" object_id="_247"> <id>259</id> <edge_type>1</edge_type> <source_obj>21</source_obj> <sink_obj>95</sink_obj> </item> <item class_id_reference="20" object_id="_248"> <id>260</id> <edge_type>1</edge_type> <source_obj>125</source_obj> <sink_obj>95</sink_obj> </item> <item class_id_reference="20" object_id="_249"> <id>261</id> <edge_type>2</edge_type> <source_obj>16</source_obj> <sink_obj>96</sink_obj> </item> <item class_id_reference="20" object_id="_250"> <id>302</id> <edge_type>2</edge_type> <source_obj>9</source_obj> <sink_obj>16</sink_obj> </item> <item class_id_reference="20" object_id="_251"> <id>303</id> <edge_type>2</edge_type> <source_obj>16</source_obj> <sink_obj>99</sink_obj> </item> <item class_id_reference="20" object_id="_252"> <id>304</id> <edge_type>2</edge_type> <source_obj>16</source_obj> <sink_obj>97</sink_obj> </item> <item class_id_reference="20" object_id="_253"> <id>305</id> <edge_type>2</edge_type> <source_obj>97</source_obj> <sink_obj>16</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="_254"> <mId>1</mId> <mTag>matrix_mult</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>88</mMinLatency> <mMaxLatency>-1</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"/> </item> <item class_id_reference="22" object_id="_255"> <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>9</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"/> </item> <item class_id_reference="22" object_id="_256"> <mId>3</mId> <mTag>Row_Col</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>16</item> <item>97</item> </basic_blocks> <mII>3</mII> <mDepth>15</mDepth> <mMinTripCount>25</mMinTripCount> <mMaxTripCount>25</mMaxTripCount> <mMinLatency>86</mMinLatency> <mMaxLatency>-1</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"/> </item> <item class_id_reference="22" object_id="_257"> <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>99</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"/> </item> </cdfg_regions> <fsm class_id="24" tracking_level="1" version="0" object_id="_258"> <states class_id="25" tracking_level="0" version="0"> <count>17</count> <item_version>0</item_version> <item class_id="26" tracking_level="1" version="0" object_id="_259"> <id>1</id> <operations class_id="27" tracking_level="0" version="0"> <count>5</count> <item_version>0</item_version> <item class_id="28" tracking_level="1" version="0" object_id="_260"> <id>4</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_261"> <id>5</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_262"> <id>6</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_263"> <id>7</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_264"> <id>8</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_265"> <id>2</id> <operations> <count>10</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_266"> <id>10</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_267"> <id>11</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_268"> <id>12</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_269"> <id>13</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_270"> <id>14</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_271"> <id>15</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_272"> <id>17</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_273"> <id>20</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_274"> <id>21</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_275"> <id>22</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_276"> <id>3</id> <operations> <count>8</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_277"> <id>23</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_278"> <id>24</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_279"> <id>25</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_280"> <id>26</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_281"> <id>43</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_282"> <id>44</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_283"> <id>46</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_284"> <id>55</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_285"> <id>4</id> <operations> <count>9</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_286"> <id>29</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_287"> <id>38</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_288"> <id>47</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_289"> <id>48</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_290"> <id>56</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_291"> <id>57</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_292"> <id>71</id> <stage>2</stage> <latency>2</latency> </item> <item class_id_reference="28" object_id="_293"> <id>86</id> <stage>2</stage> <latency>2</latency> </item> <item class_id_reference="28" object_id="_294"> <id>95</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_295"> <id>5</id> <operations> <count>8</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_296"> <id>30</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_297"> <id>31</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_298"> <id>39</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_299"> <id>40</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_300"> <id>69</id> <stage>2</stage> <latency>2</latency> </item> <item class_id_reference="28" object_id="_301"> <id>71</id> <stage>1</stage> <latency>2</latency> </item> <item class_id_reference="28" object_id="_302"> <id>84</id> <stage>2</stage> <latency>2</latency> </item> <item class_id_reference="28" object_id="_303"> <id>86</id> <stage>1</stage> <latency>2</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_304"> <id>6</id> <operations> <count>2</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_305"> <id>69</id> <stage>1</stage> <latency>2</latency> </item> <item class_id_reference="28" object_id="_306"> <id>84</id> <stage>1</stage> <latency>2</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_307"> <id>7</id> <operations> <count>4</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_308"> <id>52</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_309"> <id>85</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_310"> <id>87</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_311"> <id>88</id> <stage>5</stage> <latency>5</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_312"> <id>8</id> <operations> <count>9</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_313"> <id>32</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_314"> <id>35</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_315"> <id>53</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_316"> <id>54</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_317"> <id>70</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_318"> <id>72</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_319"> <id>73</id> <stage>5</stage> <latency>5</latency> </item> <item class_id_reference="28" object_id="_320"> <id>81</id> <stage>2</stage> <latency>2</latency> </item> <item class_id_reference="28" object_id="_321"> <id>88</id> <stage>4</stage> <latency>5</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_322"> <id>9</id> <operations> <count>12</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_323"> <id>33</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_324"> <id>34</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_325"> <id>36</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_326"> <id>37</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_327"> <id>41</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_328"> <id>45</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_329"> <id>66</id> <stage>2</stage> <latency>2</latency> </item> <item class_id_reference="28" object_id="_330"> <id>73</id> <stage>4</stage> <latency>5</latency> </item> <item class_id_reference="28" object_id="_331"> <id>74</id> <stage>2</stage> <latency>2</latency> </item> <item class_id_reference="28" object_id="_332"> <id>79</id> <stage>2</stage> <latency>2</latency> </item> <item class_id_reference="28" object_id="_333"> <id>81</id> <stage>1</stage> <latency>2</latency> </item> <item class_id_reference="28" object_id="_334"> <id>88</id> <stage>3</stage> <latency>5</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_335"> <id>10</id> <operations> <count>14</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_336"> <id>27</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_337"> <id>28</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_338"> <id>42</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_339"> <id>49</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_340"> <id>58</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_341"> <id>64</id> <stage>2</stage> <latency>2</latency> </item> <item class_id_reference="28" object_id="_342"> <id>66</id> <stage>1</stage> <latency>2</latency> </item> <item class_id_reference="28" object_id="_343"> <id>73</id> <stage>3</stage> <latency>5</latency> </item> <item class_id_reference="28" object_id="_344"> <id>74</id> <stage>1</stage> <latency>2</latency> </item> <item class_id_reference="28" object_id="_345"> <id>79</id> <stage>1</stage> <latency>2</latency> </item> <item class_id_reference="28" object_id="_346"> <id>80</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_347"> <id>82</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_348"> <id>83</id> <stage>3</stage> <latency>3</latency> </item> <item class_id_reference="28" object_id="_349"> <id>88</id> <stage>2</stage> <latency>5</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_350"> <id>11</id> <operations> <count>10</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_351"> <id>50</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_352"> <id>51</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_353"> <id>64</id> <stage>1</stage> <latency>2</latency> </item> <item class_id_reference="28" object_id="_354"> <id>65</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_355"> <id>67</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_356"> <id>68</id> <stage>3</stage> <latency>3</latency> </item> <item class_id_reference="28" object_id="_357"> <id>73</id> <stage>2</stage> <latency>5</latency> </item> <item class_id_reference="28" object_id="_358"> <id>76</id> <stage>2</stage> <latency>2</latency> </item> <item class_id_reference="28" object_id="_359"> <id>83</id> <stage>2</stage> <latency>3</latency> </item> <item class_id_reference="28" object_id="_360"> <id>88</id> <stage>1</stage> <latency>5</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_361"> <id>12</id> <operations> <count>8</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_362"> <id>68</id> <stage>2</stage> <latency>3</latency> </item> <item class_id_reference="28" object_id="_363"> <id>73</id> <stage>1</stage> <latency>5</latency> </item> <item class_id_reference="28" object_id="_364"> <id>75</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_365"> <id>76</id> <stage>1</stage> <latency>2</latency> </item> <item class_id_reference="28" object_id="_366"> <id>77</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_367"> <id>78</id> <stage>3</stage> <latency>3</latency> </item> <item class_id_reference="28" object_id="_368"> <id>83</id> <stage>1</stage> <latency>3</latency> </item> <item class_id_reference="28" object_id="_369"> <id>90</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_370"> <id>13</id> <operations> <count>3</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_371"> <id>68</id> <stage>1</stage> <latency>3</latency> </item> <item class_id_reference="28" object_id="_372"> <id>78</id> <stage>2</stage> <latency>3</latency> </item> <item class_id_reference="28" object_id="_373"> <id>89</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_374"> <id>14</id> <operations> <count>2</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_375"> <id>78</id> <stage>1</stage> <latency>3</latency> </item> <item class_id_reference="28" object_id="_376"> <id>91</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_377"> <id>15</id> <operations> <count>1</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_378"> <id>92</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_379"> <id>16</id> <operations> <count>10</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_380"> <id>18</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_381"> <id>19</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_382"> <id>59</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_383"> <id>60</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_384"> <id>61</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_385"> <id>62</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_386"> <id>63</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_387"> <id>93</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_388"> <id>94</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_389"> <id>96</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_390"> <id>17</id> <operations> <count>1</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_391"> <id>98</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> </states> <transitions class_id="29" tracking_level="0" version="0"> <count>17</count> <item_version>0</item_version> <item class_id="30" tracking_level="1" version="0" object_id="_392"> <inState>1</inState> <outState>2</outState> <condition class_id="31" tracking_level="0" version="0"> <id>35</id> <sop class_id="32" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="33" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_393"> <inState>3</inState> <outState>4</outState> <condition> <id>56</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_394"> <inState>4</inState> <outState>5</outState> <condition> <id>57</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_395"> <inState>5</inState> <outState>6</outState> <condition> <id>58</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_396"> <inState>6</inState> <outState>7</outState> <condition> <id>59</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_397"> <inState>7</inState> <outState>8</outState> <condition> <id>60</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_398"> <inState>8</inState> <outState>9</outState> <condition> <id>61</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_399"> <inState>9</inState> <outState>10</outState> <condition> <id>62</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_400"> <inState>10</inState> <outState>11</outState> <condition> <id>63</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_401"> <inState>11</inState> <outState>12</outState> <condition> <id>64</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_402"> <inState>12</inState> <outState>13</outState> <condition> <id>65</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_403"> <inState>13</inState> <outState>14</outState> <condition> <id>66</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_404"> <inState>14</inState> <outState>15</outState> <condition> <id>67</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_405"> <inState>15</inState> <outState>16</outState> <condition> <id>68</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_406"> <inState>16</inState> <outState>2</outState> <condition> <id>69</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_407"> <inState>2</inState> <outState>17</outState> <condition> <id>55</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>1</count> <item_version>0</item_version> <item class_id="34" tracking_level="0" version="0"> <first class_id="35" tracking_level="0" version="0"> <first>13</first> <second>0</second> </first> <second>0</second> </item> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_408"> <inState>2</inState> <outState>3</outState> <condition> <id>70</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>1</count> <item_version>0</item_version> <item> <first> <first>13</first> <second>0</second> </first> <second>1</second> </item> </item> </sop> </condition> </item> </transitions> </fsm> <res class_id="36" tracking_level="1" version="0" object_id="_409"> <dp_component_resource class_id="37" tracking_level="0" version="0"> <count>2</count> <item_version>0</item_version> <item class_id="38" tracking_level="0" version="0"> <first>matrix_mult_mul_8bkb_U0 (matrix_mult_mul_8bkb)</first> <second class_id="39" tracking_level="0" version="0"> <count>3</count> <item_version>0</item_version> <item class_id="40" tracking_level="0" version="0"> <first>DSP48E</first> <second>0</second> </item> <item> <first>FF</first> <second>102</second> </item> <item> <first>LUT</first> <second>77</second> </item> </second> </item> <item> <first>matrix_mult_mul_8bkb_U1 (matrix_mult_mul_8bkb)</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>DSP48E</first> <second>0</second> </item> <item> <first>FF</first> <second>102</second> </item> <item> <first>LUT</first> <second>77</second> </item> </second> </item> </dp_component_resource> <dp_expression_resource> <count>20</count> <item_version>0</item_version> <item> <first>ap_enable_pp0 ( xor ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>1</second> </item> <item> <first>(1P1)</first> <second>2</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>2</second> </item> </second> </item> <item> <first>ap_enable_reg_pp0_iter1 ( xor ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>1</second> </item> <item> <first>(1P1)</first> <second>2</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>2</second> </item> </second> </item> <item> <first>exitcond_flatten_fu_214_p2 ( icmp ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>5</second> </item> <item> <first>(1P1)</first> <second>4</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>2</second> </item> </second> </item> <item> <first>exitcond_fu_232_p2 ( icmp ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>3</second> </item> <item> <first>(1P1)</first> <second>3</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>1</second> </item> </second> </item> <item> <first>i_1_fu_226_p2 ( + ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>3</second> </item> <item> <first>(1P1)</first> <second>1</second> </item> <item> <first>FF</first> <second>14</second> </item> <item> <first>LUT</first> <second>9</second> </item> </second> </item> <item> <first>i_cast6_mid2_v_fu_246_p3 ( select ) </first> <second> <count>5</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>1</second> </item> <item> <first>(1P1)</first> <second>3</second> </item> <item> <first>(2P2)</first> <second>3</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>3</second> </item> </second> </item> <item> <first>indvar_flatten_next_fu_220_p2 ( + ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>5</second> </item> <item> <first>(1P1)</first> <second>1</second> </item> <item> <first>FF</first> <second>20</second> </item> <item> <first>LUT</first> <second>10</second> </item> </second> </item> <item> <first>j_1_fu_310_p2 ( + ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>3</second> </item> <item> <first>(1P1)</first> <second>1</second> </item> <item> <first>FF</first> <second>14</second> </item> <item> <first>LUT</first> <second>9</second> </item> </second> </item> <item> <first>j_mid2_fu_238_p3 ( select ) </first> <second> <count>5</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>1</second> </item> <item> <first>(1P1)</first> <second>1</second> </item> <item> <first>(2P2)</first> <second>3</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>3</second> </item> </second> </item> <item> <first>tmp_10_fu_347_p2 ( + ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>6</second> </item> <item> <first>(1P1)</first> <second>2</second> </item> <item> <first>FF</first> <second>23</second> </item> <item> <first>LUT</first> <second>11</second> </item> </second> </item> <item> <first>tmp_11_fu_297_p2 ( + ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>6</second> </item> <item> <first>(1P1)</first> <second>3</second> </item> <item> <first>FF</first> <second>23</second> </item> <item> <first>LUT</first> <second>11</second> </item> </second> </item> <item> <first>tmp_12_fu_280_p2 ( + ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>4</second> </item> <item> <first>(1P1)</first> <second>3</second> </item> <item> <first>FF</first> <second>17</second> </item> <item> <first>LUT</first> <second>9</second> </item> </second> </item> <item> <first>tmp_13_fu_387_p2 ( + ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>5</second> </item> <item> <first>(1P1)</first> <second>4</second> </item> <item> <first>FF</first> <second>20</second> </item> <item> <first>LUT</first> <second>10</second> </item> </second> </item> <item> <first>tmp_14_fu_323_p2 ( + ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>5</second> </item> <item> <first>(1P1)</first> <second>4</second> </item> <item> <first>FF</first> <second>20</second> </item> <item> <first>LUT</first> <second>10</second> </item> </second> </item> <item> <first>tmp_15_fu_286_p2 ( + ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>5</second> </item> <item> <first>(1P1)</first> <second>5</second> </item> <item> <first>FF</first> <second>20</second> </item> <item> <first>LUT</first> <second>10</second> </item> </second> </item> <item> <first>tmp_16_fu_392_p2 ( + ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>6</second> </item> <item> <first>(1P1)</first> <second>6</second> </item> <item> <first>FF</first> <second>23</second> </item> <item> <first>LUT</first> <second>11</second> </item> </second> </item> <item> <first>tmp_3_4_fu_424_p2 ( + ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>16</second> </item> <item> <first>(1P1)</first> <second>16</second> </item> <item> <first>FF</first> <second>53</second> </item> <item> <first>LUT</first> <second>21</second> </item> </second> </item> <item> <first>tmp_7_fu_268_p2 ( + ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>6</second> </item> <item> <first>(1P1)</first> <second>6</second> </item> <item> <first>FF</first> <second>23</second> </item> <item> <first>LUT</first> <second>11</second> </item> </second> </item> <item> <first>tmp_8_fu_292_p2 ( + ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>6</second> </item> <item> <first>(1P1)</first> <second>1</second> </item> <item> <first>FF</first> <second>23</second> </item> <item> <first>LUT</first> <second>11</second> </item> </second> </item> <item> <first>tmp_9_fu_342_p2 ( + ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>6</second> </item> <item> <first>(1P1)</first> <second>2</second> </item> <item> <first>FF</first> <second>23</second> </item> <item> <first>LUT</first> <second>11</second> </item> </second> </item> </dp_expression_resource> <dp_fifo_resource> <count>0</count> <item_version>0</item_version> </dp_fifo_resource> <dp_memory_resource> <count>0</count> <item_version>0</item_version> </dp_memory_resource> <dp_multiplexer_resource> <count>14</count> <item_version>0</item_version> <item> <first>a_address0</first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0Size)</first> <second>4</second> </item> <item> <first>(1Bits)</first> <second>5</second> </item> <item> <first>(2Count)</first> <second>20</second> </item> <item> <first>LUT</first> <second>21</second> </item> </second> </item> <item> <first>a_address1</first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0Size)</first> <second>3</second> </item> <item> <first>(1Bits)</first> <second>5</second> </item> <item> <first>(2Count)</first> <second>15</second> </item> <item> <first>LUT</first> <second>15</second> </item> </second> </item> <item> <first>ap_NS_fsm</first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0Size)</first> <second>6</second> </item> <item> <first>(1Bits)</first> <second>1</second> </item> <item> <first>(2Count)</first> <second>6</second> </item> <item> <first>LUT</first> <second>33</second> </item> </second> </item> <item> <first>ap_enable_reg_pp0_iter1</first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0Size)</first> <second>2</second> </item> <item> <first>(1Bits)</first> <second>1</second> </item> <item> <first>(2Count)</first> <second>2</second> </item> <item> <first>LUT</first> <second>9</second> </item> </second> </item> <item> <first>ap_enable_reg_pp0_iter4</first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0Size)</first> <second>2</second> </item> <item> <first>(1Bits)</first> <second>1</second> </item> <item> <first>(2Count)</first> <second>2</second> </item> <item> <first>LUT</first> <second>9</second> </item> </second> </item> <item> <first>b_address0</first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0Size)</first> <second>4</second> </item> <item> <first>(1Bits)</first> <second>5</second> </item> <item> <first>(2Count)</first> <second>20</second> </item> <item> <first>LUT</first> <second>21</second> </item> </second> </item> <item> <first>b_address1</first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0Size)</first> <second>3</second> </item> <item> <first>(1Bits)</first> <second>5</second> </item> <item> <first>(2Count)</first> <second>15</second> </item> <item> <first>LUT</first> <second>15</second> </item> </second> </item> <item> <first>i_phi_fu_187_p4</first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0Size)</first> <second>2</second> </item> <item> <first>(1Bits)</first> <second>3</second> </item> <item> <first>(2Count)</first> <second>6</second> </item> <item> <first>LUT</first> <second>9</second> </item> </second> </item> <item> <first>i_reg_183</first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0Size)</first> <second>2</second> </item> <item> <first>(1Bits)</first> <second>3</second> </item> <item> <first>(2Count)</first> <second>6</second> </item> <item> <first>LUT</first> <second>9</second> </item> </second> </item> <item> <first>indvar_flatten_phi_fu_176_p4</first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0Size)</first> <second>2</second> </item> <item> <first>(1Bits)</first> <second>5</second> </item> <item> <first>(2Count)</first> <second>10</second> </item> <item> <first>LUT</first> <second>9</second> </item> </second> </item> <item> <first>indvar_flatten_reg_172</first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0Size)</first> <second>2</second> </item> <item> <first>(1Bits)</first> <second>5</second> </item> <item> <first>(2Count)</first> <second>10</second> </item> <item> <first>LUT</first> <second>9</second> </item> </second> </item> <item> <first>j_phi_fu_198_p4</first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0Size)</first> <second>2</second> </item> <item> <first>(1Bits)</first> <second>3</second> </item> <item> <first>(2Count)</first> <second>6</second> </item> <item> <first>LUT</first> <second>9</second> </item> </second> </item> <item> <first>j_reg_194</first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0Size)</first> <second>2</second> </item> <item> <first>(1Bits)</first> <second>3</second> </item> <item> <first>(2Count)</first> <second>6</second> </item> <item> <first>LUT</first> <second>9</second> </item> </second> </item> <item> <first>reg_209</first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0Size)</first> <second>2</second> </item> <item> <first>(1Bits)</first> <second>8</second> </item> <item> <first>(2Count)</first> <second>16</second> </item> <item> <first>LUT</first> <second>9</second> </item> </second> </item> </dp_multiplexer_resource> <dp_register_resource> <count>37</count> <item_version>0</item_version> <item> <first>a_load_1_reg_544</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>8</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>8</second> </item> </second> </item> <item> <first>ap_CS_fsm</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>5</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>5</second> </item> </second> </item> <item> <first>ap_enable_reg_pp0_iter0</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>1</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>1</second> </item> </second> </item> <item> <first>ap_enable_reg_pp0_iter1</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>1</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>1</second> </item> </second> </item> <item> <first>ap_enable_reg_pp0_iter2</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>1</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>1</second> </item> </second> </item> <item> <first>ap_enable_reg_pp0_iter3</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>1</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>1</second> </item> </second> </item> <item> <first>ap_enable_reg_pp0_iter4</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>1</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>1</second> </item> </second> </item> <item> <first>ap_reg_pp0_iter3_tmp_16_reg_619</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>6</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>6</second> </item> </second> </item> <item> <first>b_load_1_reg_539</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>8</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>8</second> </item> </second> </item> <item> <first>b_load_3_reg_604</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>8</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>8</second> </item> </second> </item> <item> <first>exitcond_flatten_reg_453</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>1</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>1</second> </item> </second> </item> <item> <first>i_cast6_mid2_v_reg_471</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>3</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>3</second> </item> </second> </item> <item> <first>i_reg_183</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>3</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>3</second> </item> </second> </item> <item> <first>indvar_flatten_next_reg_457</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>5</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>5</second> </item> </second> </item> <item> <first>indvar_flatten_reg_172</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>5</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>5</second> </item> </second> </item> <item> <first>j_1_reg_524</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>3</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>3</second> </item> </second> </item> <item> <first>j_cast5_cast3_reg_488</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>5</second> </item> <item> <first>(Consts)</first> <second>2</second> </item> <item> <first>FF</first> <second>3</second> </item> </second> </item> <item> <first>j_mid2_reg_462</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>3</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>3</second> </item> </second> </item> <item> <first>j_reg_194</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>3</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>3</second> </item> </second> </item> <item> <first>reg_205</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>8</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>8</second> </item> </second> </item> <item> <first>reg_209</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>8</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>8</second> </item> </second> </item> <item> <first>tmp1_reg_674</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>16</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>16</second> </item> </second> </item> <item> <first>tmp3_reg_679</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>16</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>16</second> </item> </second> </item> <item> <first>tmp4_reg_669</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>16</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>16</second> </item> </second> </item> <item> <first>tmp_10_reg_569</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>6</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>6</second> </item> </second> </item> <item> <first>tmp_11_reg_509</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>6</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>6</second> </item> </second> </item> <item> <first>tmp_12_reg_494</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>4</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>4</second> </item> </second> </item> <item> <first>tmp_13_reg_614</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>5</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>5</second> </item> </second> </item> <item> <first>tmp_14_reg_549</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>5</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>5</second> </item> </second> </item> <item> <first>tmp_15_reg_499</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>5</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>5</second> </item> </second> </item> <item> <first>tmp_16_reg_619</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>6</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>6</second> </item> </second> </item> <item> <first>tmp_2_1_reg_654</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>16</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>16</second> </item> </second> </item> <item> <first>tmp_2_4_reg_649</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>16</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>16</second> </item> </second> </item> <item> <first>tmp_3_4_reg_684</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>16</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>16</second> </item> </second> </item> <item> <first>tmp_7_reg_478</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>6</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>6</second> </item> </second> </item> <item> <first>tmp_8_reg_504</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>6</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>6</second> </item> </second> </item> <item> <first>tmp_9_reg_564</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>6</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>6</second> </item> </second> </item> </dp_register_resource> <dp_component_map class_id="41" tracking_level="0" version="0"> <count>2</count> <item_version>0</item_version> <item class_id="42" tracking_level="0" version="0"> <first>matrix_mult_mul_8bkb_U0 (matrix_mult_mul_8bkb)</first> <second> <count>1</count> <item_version>0</item_version> <item>88</item> </second> </item> <item> <first>matrix_mult_mul_8bkb_U1 (matrix_mult_mul_8bkb)</first> <second> <count>1</count> <item_version>0</item_version> <item>73</item> </second> </item> </dp_component_map> <dp_expression_map> <count>18</count> <item_version>0</item_version> <item> <first>exitcond_flatten_fu_214_p2 ( icmp ) </first> <second> <count>1</count> <item_version>0</item_version> <item>13</item> </second> </item> <item> <first>exitcond_fu_232_p2 ( icmp ) </first> <second> <count>1</count> <item_version>0</item_version> <item>20</item> </second> </item> <item> <first>i_1_fu_226_p2 ( + ) </first> <second> <count>1</count> <item_version>0</item_version> <item>17</item> </second> </item> <item> <first>i_cast6_mid2_v_fu_246_p3 ( select ) </first> <second> <count>1</count> <item_version>0</item_version> <item>22</item> </second> </item> <item> <first>indvar_flatten_next_fu_220_p2 ( + ) </first> <second> <count>1</count> <item_version>0</item_version> <item>14</item> </second> </item> <item> <first>j_1_fu_310_p2 ( + ) </first> <second> <count>1</count> <item_version>0</item_version> <item>95</item> </second> </item> <item> <first>j_mid2_fu_238_p3 ( select ) </first> <second> <count>1</count> <item_version>0</item_version> <item>21</item> </second> </item> <item> <first>tmp_10_fu_347_p2 ( + ) </first> <second> <count>1</count> <item_version>0</item_version> <item>35</item> </second> </item> <item> <first>tmp_11_fu_297_p2 ( + ) </first> <second> <count>1</count> <item_version>0</item_version> <item>38</item> </second> </item> <item> <first>tmp_12_fu_280_p2 ( + ) </first> <second> <count>1</count> <item_version>0</item_version> <item>46</item> </second> </item> <item> <first>tmp_13_fu_387_p2 ( + ) </first> <second> <count>1</count> <item_version>0</item_version> <item>49</item> </second> </item> <item> <first>tmp_14_fu_323_p2 ( + ) </first> <second> <count>1</count> <item_version>0</item_version> <item>52</item> </second> </item> <item> <first>tmp_15_fu_286_p2 ( + ) </first> <second> <count>1</count> <item_version>0</item_version> <item>55</item> </second> </item> <item> <first>tmp_16_fu_392_p2 ( + ) </first> <second> <count>1</count> <item_version>0</item_version> <item>58</item> </second> </item> <item> <first>tmp_3_4_fu_424_p2 ( + ) </first> <second> <count>1</count> <item_version>0</item_version> <item>92</item> </second> </item> <item> <first>tmp_7_fu_268_p2 ( + ) </first> <second> <count>1</count> <item_version>0</item_version> <item>26</item> </second> </item> <item> <first>tmp_8_fu_292_p2 ( + ) </first> <second> <count>1</count> <item_version>0</item_version> <item>29</item> </second> </item> <item> <first>tmp_9_fu_342_p2 ( + ) </first> <second> <count>1</count> <item_version>0</item_version> <item>32</item> </second> </item> </dp_expression_map> <dp_fifo_map> <count>0</count> <item_version>0</item_version> </dp_fifo_map> <dp_memory_map> <count>0</count> <item_version>0</item_version> </dp_memory_map> </res> <node_label_latency class_id="43" tracking_level="0" version="0"> <count>82</count> <item_version>0</item_version> <item class_id="44" tracking_level="0" version="0"> <first>8</first> <second class_id="45" tracking_level="0" version="0"> <first>0</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>14</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>15</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>20</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>21</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>22</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>23</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>24</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>9</first> <second>0</second> </second> </item> <item> <first>28</first> <second> <first>9</first> <second>0</second> </second> </item> <item> <first>29</first> <second> <first>3</first> <second>0</second> </second> </item> <item> <first>30</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>31</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>32</first> <second> <first>7</first> <second>0</second> </second> </item> <item> <first>33</first> <second> <first>8</first> <second>0</second> </second> </item> <item> <first>34</first> <second> <first>8</first> <second>0</second> </second> </item> <item> <first>35</first> <second> <first>7</first> <second>0</second> </second> </item> <item> <first>36</first> <second> <first>8</first> <second>0</second> </second> </item> <item> <first>37</first> <second> <first>8</first> <second>0</second> </second> </item> <item> <first>38</first> <second> <first>3</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>4</first> <second>0</second> </second> </item> <item> <first>41</first> <second> <first>8</first> <second>0</second> </second> </item> <item> <first>42</first> <second> <first>9</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>2</first> <second>0</second> </second> </item> <item> <first>45</first> <second> <first>8</first> <second>0</second> </second> </item> <item> <first>46</first> <second> <first>2</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>3</first> <second>0</second> </second> </item> <item> <first>49</first> <second> <first>9</first> <second>0</second> </second> </item> <item> <first>50</first> <second> <first>10</first> <second>0</second> </second> </item> <item> <first>51</first> <second> <first>10</first> <second>0</second> </second> </item> <item> <first>52</first> <second> <first>6</first> <second>0</second> </second> </item> <item> <first>53</first> <second> <first>7</first> <second>0</second> </second> </item> <item> <first>54</first> <second> <first>7</first> <second>0</second> </second> </item> <item> <first>55</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>56</first> <second> <first>3</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>9</first> <second>0</second> </second> </item> <item> <first>59</first> <second> <first>15</first> <second>0</second> </second> </item> <item> <first>60</first> <second> <first>15</first> <second>0</second> </second> </item> <item> <first>64</first> <second> <first>9</first> <second>1</second> </second> </item> <item> <first>65</first> <second> <first>10</first> <second>0</second> </second> </item> <item> <first>66</first> <second> <first>8</first> <second>1</second> </second> </item> <item> <first>67</first> <second> <first>10</first> <second>0</second> </second> </item> <item> <first>68</first> <second> <first>10</first> <second>2</second> </second> </item> <item> <first>69</first> <second> <first>4</first> <second>1</second> </second> </item> <item> <first>70</first> <second> <first>7</first> <second>0</second> </second> </item> <item> <first>71</first> <second> <first>3</first> <second>1</second> </second> </item> <item> <first>72</first> <second> <first>7</first> <second>0</second> </second> </item> <item> <first>73</first> <second> <first>7</first> <second>4</second> </second> </item> <item> <first>74</first> <second> <first>8</first> <second>1</second> </second> </item> <item> <first>75</first> <second> <first>11</first> <second>0</second> </second> </item> <item> <first>76</first> <second> <first>10</first> <second>1</second> </second> </item> <item> <first>77</first> <second> <first>11</first> <second>0</second> </second> </item> <item> <first>78</first> <second> <first>11</first> <second>2</second> </second> </item> <item> <first>79</first> <second> <first>8</first> <second>1</second> </second> </item> <item> <first>80</first> <second> <first>9</first> <second>0</second> </second> </item> <item> <first>81</first> <second> <first>7</first> <second>1</second> </second> </item> <item> <first>82</first> <second> <first>9</first> <second>0</second> </second> </item> <item> <first>83</first> <second> <first>9</first> <second>2</second> </second> </item> <item> <first>84</first> <second> <first>4</first> <second>1</second> </second> </item> <item> <first>85</first> <second> <first>6</first> <second>0</second> </second> </item> <item> <first>86</first> <second> <first>3</first> <second>1</second> </second> </item> <item> <first>87</first> <second> <first>6</first> <second>0</second> </second> </item> <item> <first>88</first> <second> <first>6</first> <second>4</second> </second> </item> <item> <first>89</first> <second> <first>12</first> <second>0</second> </second> </item> <item> <first>90</first> <second> <first>11</first> <second>0</second> </second> </item> <item> <first>91</first> <second> <first>13</first> <second>0</second> </second> </item> <item> <first>92</first> <second> <first>14</first> <second>0</second> </second> </item> <item> <first>93</first> <second> <first>15</first> <second>0</second> </second> </item> <item> <first>95</first> <second> <first>3</first> <second>0</second> </second> </item> <item> <first>96</first> <second> <first>15</first> <second>0</second> </second> </item> <item> <first>98</first> <second> <first>2</first> <second>0</second> </second> </item> </node_label_latency> <bblk_ent_exit class_id="46" tracking_level="0" version="0"> <count>4</count> <item_version>0</item_version> <item class_id="47" tracking_level="0" version="0"> <first>9</first> <second class_id="48" tracking_level="0" version="0"> <first>0</first> <second>0</second> </second> </item> <item> <first>16</first> <second> <first>1</first> <second>1</second> </second> </item> <item> <first>97</first> <second> <first>1</first> <second>15</second> </second> </item> <item> <first>99</first> <second> <first>2</first> <second>2</second> </second> </item> </bblk_ent_exit> <regions class_id="49" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="50" tracking_level="1" version="0" object_id="_410"> <region_name>Row_Col</region_name> <basic_blocks> <count>2</count> <item_version>0</item_version> <item>16</item> <item>97</item> </basic_blocks> <nodes> <count>0</count> <item_version>0</item_version> </nodes> <anchor_node>-1</anchor_node> <region_type>8</region_type> <interval>3</interval> <pipe_depth>15</pipe_depth> </item> </regions> <dp_fu_nodes class_id="51" tracking_level="0" version="0"> <count>67</count> <item_version>0</item_version> <item class_id="52" tracking_level="0" version="0"> <first>66</first> <second> <count>1</count> <item_version>0</item_version> <item>48</item> </second> </item> <item> <first>73</first> <second> <count>1</count> <item_version>0</item_version> <item>57</item> </second> </item> <item> <first>80</first> <second> <count>10</count> <item_version>0</item_version> <item>71</item> <item>71</item> <item>86</item> <item>86</item> <item>81</item> <item>81</item> <item>66</item> <item>66</item> <item>76</item> <item>76</item> </second> </item> <item> <first>89</first> <second> <count>1</count> <item_version>0</item_version> <item>31</item> </second> </item> <item> <first>96</first> <second> <count>1</count> <item_version>0</item_version> <item>40</item> </second> </item> <item> <first>103</first> <second> <count>10</count> <item_version>0</item_version> <item>69</item> <item>69</item> <item>84</item> <item>84</item> <item>74</item> <item>74</item> <item>79</item> <item>79</item> <item>64</item> <item>64</item> </second> </item> <item> <first>112</first> <second> <count>1</count> <item_version>0</item_version> <item>54</item> </second> </item> <item> <first>120</first> <second> <count>1</count> <item_version>0</item_version> <item>34</item> </second> </item> <item> <first>127</first> <second> <count>1</count> <item_version>0</item_version> <item>37</item> </second> </item> <item> <first>134</first> <second> <count>1</count> <item_version>0</item_version> <item>45</item> </second> </item> <item> <first>144</first> <second> <count>1</count> <item_version>0</item_version> <item>28</item> </second> </item> <item> <first>152</first> <second> <count>1</count> <item_version>0</item_version> <item>51</item> </second> </item> <item> <first>160</first> <second> <count>1</count> <item_version>0</item_version> <item>60</item> </second> </item> <item> <first>167</first> <second> <count>1</count> <item_version>0</item_version> <item>93</item> </second> </item> <item> <first>176</first> <second> <count>1</count> <item_version>0</item_version> <item>10</item> </second> </item> <item> <first>187</first> <second> <count>1</count> <item_version>0</item_version> <item>11</item> </second> </item> <item> <first>198</first> <second> <count>1</count> <item_version>0</item_version> <item>12</item> </second> </item> <item> <first>214</first> <second> <count>1</count> <item_version>0</item_version> <item>13</item> </second> </item> <item> <first>220</first> <second> <count>1</count> <item_version>0</item_version> <item>14</item> </second> </item> <item> <first>226</first> <second> <count>1</count> <item_version>0</item_version> <item>17</item> </second> </item> <item> <first>232</first> <second> <count>1</count> <item_version>0</item_version> <item>20</item> </second> </item> <item> <first>238</first> <second> <count>1</count> <item_version>0</item_version> <item>21</item> </second> </item> <item> <first>246</first> <second> <count>1</count> <item_version>0</item_version> <item>22</item> </second> </item> <item> <first>254</first> <second> <count>1</count> <item_version>0</item_version> <item>23</item> </second> </item> <item> <first>257</first> <second> <count>1</count> <item_version>0</item_version> <item>24</item> </second> </item> <item> <first>264</first> <second> <count>1</count> <item_version>0</item_version> <item>25</item> </second> </item> <item> <first>268</first> <second> <count>1</count> <item_version>0</item_version> <item>26</item> </second> </item> <item> <first>274</first> <second> <count>1</count> <item_version>0</item_version> <item>43</item> </second> </item> <item> <first>277</first> <second> <count>1</count> <item_version>0</item_version> <item>44</item> </second> </item> <item> <first>280</first> <second> <count>1</count> <item_version>0</item_version> <item>46</item> </second> </item> <item> <first>286</first> <second> <count>1</count> <item_version>0</item_version> <item>55</item> </second> </item> <item> <first>292</first> <second> <count>1</count> <item_version>0</item_version> <item>29</item> </second> </item> <item> <first>297</first> <second> <count>1</count> <item_version>0</item_version> <item>38</item> </second> </item> <item> <first>302</first> <second> <count>1</count> <item_version>0</item_version> <item>47</item> </second> </item> <item> <first>306</first> <second> <count>1</count> <item_version>0</item_version> <item>56</item> </second> </item> <item> <first>310</first> <second> <count>1</count> <item_version>0</item_version> <item>95</item> </second> </item> <item> <first>315</first> <second> <count>1</count> <item_version>0</item_version> <item>30</item> </second> </item> <item> <first>319</first> <second> <count>1</count> <item_version>0</item_version> <item>39</item> </second> </item> <item> <first>323</first> <second> <count>1</count> <item_version>0</item_version> <item>52</item> </second> </item> <item> <first>328</first> <second> <count>1</count> <item_version>0</item_version> <item>85</item> </second> </item> <item> <first>332</first> <second> <count>1</count> <item_version>0</item_version> <item>87</item> </second> </item> <item> <first>336</first> <second> <count>5</count> <item_version>0</item_version> <item>88</item> <item>88</item> <item>88</item> <item>88</item> <item>88</item> </second> </item> <item> <first>342</first> <second> <count>1</count> <item_version>0</item_version> <item>32</item> </second> </item> <item> <first>347</first> <second> <count>1</count> <item_version>0</item_version> <item>35</item> </second> </item> <item> <first>352</first> <second> <count>1</count> <item_version>0</item_version> <item>53</item> </second> </item> <item> <first>356</first> <second> <count>1</count> <item_version>0</item_version> <item>70</item> </second> </item> <item> <first>359</first> <second> <count>1</count> <item_version>0</item_version> <item>72</item> </second> </item> <item> <first>362</first> <second> <count>5</count> <item_version>0</item_version> <item>73</item> <item>73</item> <item>73</item> <item>73</item> <item>73</item> </second> </item> <item> <first>368</first> <second> <count>1</count> <item_version>0</item_version> <item>33</item> </second> </item> <item> <first>372</first> <second> <count>1</count> <item_version>0</item_version> <item>36</item> </second> </item> <item> <first>376</first> <second> <count>1</count> <item_version>0</item_version> <item>41</item> </second> </item> <item> <first>380</first> <second> <count>1</count> <item_version>0</item_version> <item>27</item> </second> </item> <item> <first>384</first> <second> <count>1</count> <item_version>0</item_version> <item>42</item> </second> </item> <item> <first>387</first> <second> <count>1</count> <item_version>0</item_version> <item>49</item> </second> </item> <item> <first>392</first> <second> <count>1</count> <item_version>0</item_version> <item>58</item> </second> </item> <item> <first>397</first> <second> <count>1</count> <item_version>0</item_version> <item>80</item> </second> </item> <item> <first>401</first> <second> <count>1</count> <item_version>0</item_version> <item>82</item> </second> </item> <item> <first>404</first> <second> <count>1</count> <item_version>0</item_version> <item>50</item> </second> </item> <item> <first>408</first> <second> <count>1</count> <item_version>0</item_version> <item>65</item> </second> </item> <item> <first>412</first> <second> <count>1</count> <item_version>0</item_version> <item>67</item> </second> </item> <item> <first>416</first> <second> <count>1</count> <item_version>0</item_version> <item>75</item> </second> </item> <item> <first>420</first> <second> <count>1</count> <item_version>0</item_version> <item>77</item> </second> </item> <item> <first>424</first> <second> <count>1</count> <item_version>0</item_version> <item>92</item> </second> </item> <item> <first>428</first> <second> <count>1</count> <item_version>0</item_version> <item>59</item> </second> </item> <item> <first>432</first> <second> <count>4</count> <item_version>0</item_version> <item>83</item> <item>83</item> <item>83</item> <item>90</item> </second> </item> <item> <first>439</first> <second> <count>4</count> <item_version>0</item_version> <item>68</item> <item>68</item> <item>68</item> <item>89</item> </second> </item> <item> <first>446</first> <second> <count>4</count> <item_version>0</item_version> <item>78</item> <item>78</item> <item>78</item> <item>91</item> </second> </item> </dp_fu_nodes> <dp_fu_nodes_expression class_id="54" tracking_level="0" version="0"> <count>59</count> <item_version>0</item_version> <item class_id="55" tracking_level="0" version="0"> <first>a_addr_1_gep_fu_89</first> <second> <count>1</count> <item_version>0</item_version> <item>31</item> </second> </item> <item> <first>a_addr_2_gep_fu_120</first> <second> <count>1</count> <item_version>0</item_version> <item>34</item> </second> </item> <item> <first>a_addr_3_gep_fu_127</first> <second> <count>1</count> <item_version>0</item_version> <item>37</item> </second> </item> <item> <first>a_addr_4_gep_fu_96</first> <second> <count>1</count> <item_version>0</item_version> <item>40</item> </second> </item> <item> <first>a_addr_gep_fu_144</first> <second> <count>1</count> <item_version>0</item_version> <item>28</item> </second> </item> <item> <first>b_addr_1_gep_fu_66</first> <second> <count>1</count> <item_version>0</item_version> <item>48</item> </second> </item> <item> <first>b_addr_2_gep_fu_152</first> <second> <count>1</count> <item_version>0</item_version> <item>51</item> </second> </item> <item> <first>b_addr_3_gep_fu_112</first> <second> <count>1</count> <item_version>0</item_version> <item>54</item> </second> </item> <item> <first>b_addr_4_gep_fu_73</first> <second> <count>1</count> <item_version>0</item_version> <item>57</item> </second> </item> <item> <first>b_addr_gep_fu_134</first> <second> <count>1</count> <item_version>0</item_version> <item>45</item> </second> </item> <item> <first>exitcond_flatten_fu_214</first> <second> <count>1</count> <item_version>0</item_version> <item>13</item> </second> </item> <item> <first>exitcond_fu_232</first> <second> <count>1</count> <item_version>0</item_version> <item>20</item> </second> </item> <item> <first>i_1_fu_226</first> <second> <count>1</count> <item_version>0</item_version> <item>17</item> </second> </item> <item> <first>i_cast6_mid2_cast_fu_254</first> <second> <count>1</count> <item_version>0</item_version> <item>23</item> </second> </item> <item> <first>i_cast6_mid2_v_fu_246</first> <second> <count>1</count> <item_version>0</item_version> <item>22</item> </second> </item> <item> <first>i_phi_fu_187</first> <second> <count>1</count> <item_version>0</item_version> <item>11</item> </second> </item> <item> <first>indvar_flatten_next_fu_220</first> <second> <count>1</count> <item_version>0</item_version> <item>14</item> </second> </item> <item> <first>indvar_flatten_phi_fu_176</first> <second> <count>1</count> <item_version>0</item_version> <item>10</item> </second> </item> <item> <first>j_1_fu_310</first> <second> <count>1</count> <item_version>0</item_version> <item>95</item> </second> </item> <item> <first>j_cast5_cast3_fu_274</first> <second> <count>1</count> <item_version>0</item_version> <item>43</item> </second> </item> <item> <first>j_cast5_cast4_fu_384</first> <second> <count>1</count> <item_version>0</item_version> <item>42</item> </second> </item> <item> <first>j_cast5_cast_fu_277</first> <second> <count>1</count> <item_version>0</item_version> <item>44</item> </second> </item> <item> <first>j_cast5_fu_376</first> <second> <count>1</count> <item_version>0</item_version> <item>41</item> </second> </item> <item> <first>j_mid2_fu_238</first> <second> <count>1</count> <item_version>0</item_version> <item>21</item> </second> </item> <item> <first>j_phi_fu_198</first> <second> <count>1</count> <item_version>0</item_version> <item>12</item> </second> </item> <item> <first>p_shl_cast_fu_264</first> <second> <count>1</count> <item_version>0</item_version> <item>25</item> </second> </item> <item> <first>prod_addr_gep_fu_160</first> <second> <count>1</count> <item_version>0</item_version> <item>60</item> </second> </item> <item> <first>tmp2_fu_408</first> <second> <count>1</count> <item_version>0</item_version> <item>65</item> </second> </item> <item> <first>tmp_10_cast_fu_372</first> <second> <count>1</count> <item_version>0</item_version> <item>36</item> </second> </item> <item> <first>tmp_10_fu_347</first> <second> <count>1</count> <item_version>0</item_version> <item>35</item> </second> </item> <item> <first>tmp_11_cast_fu_319</first> <second> <count>1</count> <item_version>0</item_version> <item>39</item> </second> </item> <item> <first>tmp_11_fu_297</first> <second> <count>1</count> <item_version>0</item_version> <item>38</item> </second> </item> <item> <first>tmp_12_cast_fu_302</first> <second> <count>1</count> <item_version>0</item_version> <item>47</item> </second> </item> <item> <first>tmp_12_fu_280</first> <second> <count>1</count> <item_version>0</item_version> <item>46</item> </second> </item> <item> <first>tmp_13_cast_fu_404</first> <second> <count>1</count> <item_version>0</item_version> <item>50</item> </second> </item> <item> <first>tmp_13_fu_387</first> <second> <count>1</count> <item_version>0</item_version> <item>49</item> </second> </item> <item> <first>tmp_14_cast_fu_352</first> <second> <count>1</count> <item_version>0</item_version> <item>53</item> </second> </item> <item> <first>tmp_14_fu_323</first> <second> <count>1</count> <item_version>0</item_version> <item>52</item> </second> </item> <item> <first>tmp_15_cast_fu_306</first> <second> <count>1</count> <item_version>0</item_version> <item>56</item> </second> </item> <item> <first>tmp_15_fu_286</first> <second> <count>1</count> <item_version>0</item_version> <item>55</item> </second> </item> <item> <first>tmp_16_cast_fu_428</first> <second> <count>1</count> <item_version>0</item_version> <item>59</item> </second> </item> <item> <first>tmp_16_fu_392</first> <second> <count>1</count> <item_version>0</item_version> <item>58</item> </second> </item> <item> <first>tmp_1_1_fu_359</first> <second> <count>1</count> <item_version>0</item_version> <item>72</item> </second> </item> <item> <first>tmp_1_2_fu_420</first> <second> <count>1</count> <item_version>0</item_version> <item>77</item> </second> </item> <item> <first>tmp_1_3_fu_401</first> <second> <count>1</count> <item_version>0</item_version> <item>82</item> </second> </item> <item> <first>tmp_1_4_fu_332</first> <second> <count>1</count> <item_version>0</item_version> <item>87</item> </second> </item> <item> <first>tmp_3_4_fu_424</first> <second> <count>1</count> <item_version>0</item_version> <item>92</item> </second> </item> <item> <first>tmp_3_fu_416</first> <second> <count>1</count> <item_version>0</item_version> <item>75</item> </second> </item> <item> <first>tmp_4_fu_328</first> <second> <count>1</count> <item_version>0</item_version> <item>85</item> </second> </item> <item> <first>tmp_5_fu_397</first> <second> <count>1</count> <item_version>0</item_version> <item>80</item> </second> </item> <item> <first>tmp_6_fu_412</first> <second> <count>1</count> <item_version>0</item_version> <item>67</item> </second> </item> <item> <first>tmp_7_cast_fu_380</first> <second> <count>1</count> <item_version>0</item_version> <item>27</item> </second> </item> <item> <first>tmp_7_fu_268</first> <second> <count>1</count> <item_version>0</item_version> <item>26</item> </second> </item> <item> <first>tmp_8_cast_fu_315</first> <second> <count>1</count> <item_version>0</item_version> <item>30</item> </second> </item> <item> <first>tmp_8_fu_292</first> <second> <count>1</count> <item_version>0</item_version> <item>29</item> </second> </item> <item> <first>tmp_9_cast_fu_368</first> <second> <count>1</count> <item_version>0</item_version> <item>33</item> </second> </item> <item> <first>tmp_9_fu_342</first> <second> <count>1</count> <item_version>0</item_version> <item>32</item> </second> </item> <item> <first>tmp_fu_257</first> <second> <count>1</count> <item_version>0</item_version> <item>24</item> </second> </item> <item> <first>tmp_s_fu_356</first> <second> <count>1</count> <item_version>0</item_version> <item>70</item> </second> </item> </dp_fu_nodes_expression> <dp_fu_nodes_module> <count>5</count> <item_version>0</item_version> <item> <first>grp_fu_336</first> <second> <count>5</count> <item_version>0</item_version> <item>88</item> <item>88</item> <item>88</item> <item>88</item> <item>88</item> </second> </item> <item> <first>grp_fu_362</first> <second> <count>5</count> <item_version>0</item_version> <item>73</item> <item>73</item> <item>73</item> <item>73</item> <item>73</item> </second> </item> <item> <first>grp_fu_432</first> <second> <count>4</count> <item_version>0</item_version> <item>83</item> <item>83</item> <item>83</item> <item>90</item> </second> </item> <item> <first>grp_fu_439</first> <second> <count>4</count> <item_version>0</item_version> <item>68</item> <item>68</item> <item>68</item> <item>89</item> </second> </item> <item> <first>grp_fu_446</first> <second> <count>4</count> <item_version>0</item_version> <item>78</item> <item>78</item> <item>78</item> <item>91</item> </second> </item> </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="56" tracking_level="0" version="0"> <count>5</count> <item_version>0</item_version> <item class_id="57" tracking_level="0" version="0"> <first class_id="58" tracking_level="0" version="0"> <first>a</first> <second>0</second> </first> <second> <count>6</count> <item_version>0</item_version> <item>69</item> <item>69</item> <item>74</item> <item>74</item> <item>64</item> <item>64</item> </second> </item> <item> <first> <first>a</first> <second>1</second> </first> <second> <count>4</count> <item_version>0</item_version> <item>84</item> <item>84</item> <item>79</item> <item>79</item> </second> </item> <item> <first> <first>b</first> <second>0</second> </first> <second> <count>6</count> <item_version>0</item_version> <item>86</item> <item>86</item> <item>81</item> <item>81</item> <item>66</item> <item>66</item> </second> </item> <item> <first> <first>b</first> <second>1</second> </first> <second> <count>4</count> <item_version>0</item_version> <item>71</item> <item>71</item> <item>76</item> <item>76</item> </second> </item> <item> <first> <first>prod</first> <second>0</second> </first> <second> <count>1</count> <item_version>0</item_version> <item>93</item> </second> </item> </dp_mem_port_nodes> <dp_reg_nodes> <count>50</count> <item_version>0</item_version> <item> <first>172</first> <second> <count>1</count> <item_version>0</item_version> <item>10</item> </second> </item> <item> <first>183</first> <second> <count>1</count> <item_version>0</item_version> <item>11</item> </second> </item> <item> <first>194</first> <second> <count>1</count> <item_version>0</item_version> <item>12</item> </second> </item> <item> <first>205</first> <second> <count>2</count> <item_version>0</item_version> <item>86</item> <item>66</item> </second> </item> <item> <first>209</first> <second> <count>2</count> <item_version>0</item_version> <item>84</item> <item>74</item> </second> </item> <item> <first>453</first> <second> <count>1</count> <item_version>0</item_version> <item>13</item> </second> </item> <item> <first>457</first> <second> <count>1</count> <item_version>0</item_version> <item>14</item> </second> </item> <item> <first>462</first> <second> <count>1</count> <item_version>0</item_version> <item>21</item> </second> </item> <item> <first>471</first> <second> <count>1</count> <item_version>0</item_version> <item>22</item> </second> </item> <item> <first>478</first> <second> <count>1</count> <item_version>0</item_version> <item>26</item> </second> </item> <item> <first>488</first> <second> <count>1</count> <item_version>0</item_version> <item>43</item> </second> </item> <item> <first>494</first> <second> <count>1</count> <item_version>0</item_version> <item>46</item> </second> </item> <item> <first>499</first> <second> <count>1</count> <item_version>0</item_version> <item>55</item> </second> </item> <item> <first>504</first> <second> <count>1</count> <item_version>0</item_version> <item>29</item> </second> </item> <item> <first>509</first> <second> <count>1</count> <item_version>0</item_version> <item>38</item> </second> </item> <item> <first>514</first> <second> <count>1</count> <item_version>0</item_version> <item>48</item> </second> </item> <item> <first>519</first> <second> <count>1</count> <item_version>0</item_version> <item>57</item> </second> </item> <item> <first>524</first> <second> <count>1</count> <item_version>0</item_version> <item>95</item> </second> </item> <item> <first>529</first> <second> <count>1</count> <item_version>0</item_version> <item>31</item> </second> </item> <item> <first>534</first> <second> <count>1</count> <item_version>0</item_version> <item>40</item> </second> </item> <item> <first>539</first> <second> <count>1</count> <item_version>0</item_version> <item>71</item> </second> </item> <item> <first>544</first> <second> <count>1</count> <item_version>0</item_version> <item>69</item> </second> </item> <item> <first>549</first> <second> <count>1</count> <item_version>0</item_version> <item>52</item> </second> </item> <item> <first>554</first> <second> <count>1</count> <item_version>0</item_version> <item>85</item> </second> </item> <item> <first>559</first> <second> <count>1</count> <item_version>0</item_version> <item>87</item> </second> </item> <item> <first>564</first> <second> <count>1</count> <item_version>0</item_version> <item>32</item> </second> </item> <item> <first>569</first> <second> <count>1</count> <item_version>0</item_version> <item>35</item> </second> </item> <item> <first>574</first> <second> <count>1</count> <item_version>0</item_version> <item>54</item> </second> </item> <item> <first>579</first> <second> <count>1</count> <item_version>0</item_version> <item>70</item> </second> </item> <item> <first>584</first> <second> <count>1</count> <item_version>0</item_version> <item>72</item> </second> </item> <item> <first>589</first> <second> <count>1</count> <item_version>0</item_version> <item>34</item> </second> </item> <item> <first>594</first> <second> <count>1</count> <item_version>0</item_version> <item>37</item> </second> </item> <item> <first>599</first> <second> <count>1</count> <item_version>0</item_version> <item>45</item> </second> </item> <item> <first>604</first> <second> <count>1</count> <item_version>0</item_version> <item>81</item> </second> </item> <item> <first>609</first> <second> <count>1</count> <item_version>0</item_version> <item>28</item> </second> </item> <item> <first>614</first> <second> <count>1</count> <item_version>0</item_version> <item>49</item> </second> </item> <item> <first>619</first> <second> <count>1</count> <item_version>0</item_version> <item>58</item> </second> </item> <item> <first>624</first> <second> <count>1</count> <item_version>0</item_version> <item>80</item> </second> </item> <item> <first>629</first> <second> <count>1</count> <item_version>0</item_version> <item>82</item> </second> </item> <item> <first>634</first> <second> <count>1</count> <item_version>0</item_version> <item>51</item> </second> </item> <item> <first>639</first> <second> <count>1</count> <item_version>0</item_version> <item>65</item> </second> </item> <item> <first>644</first> <second> <count>1</count> <item_version>0</item_version> <item>67</item> </second> </item> <item> <first>649</first> <second> <count>1</count> <item_version>0</item_version> <item>88</item> </second> </item> <item> <first>654</first> <second> <count>1</count> <item_version>0</item_version> <item>73</item> </second> </item> <item> <first>659</first> <second> <count>1</count> <item_version>0</item_version> <item>75</item> </second> </item> <item> <first>664</first> <second> <count>1</count> <item_version>0</item_version> <item>77</item> </second> </item> <item> <first>669</first> <second> <count>1</count> <item_version>0</item_version> <item>90</item> </second> </item> <item> <first>674</first> <second> <count>1</count> <item_version>0</item_version> <item>89</item> </second> </item> <item> <first>679</first> <second> <count>1</count> <item_version>0</item_version> <item>91</item> </second> </item> <item> <first>684</first> <second> <count>1</count> <item_version>0</item_version> <item>92</item> </second> </item> </dp_reg_nodes> <dp_regname_nodes> <count>50</count> <item_version>0</item_version> <item> <first>a_addr_1_reg_529</first> <second> <count>1</count> <item_version>0</item_version> <item>31</item> </second> </item> <item> <first>a_addr_2_reg_589</first> <second> <count>1</count> <item_version>0</item_version> <item>34</item> </second> </item> <item> <first>a_addr_3_reg_594</first> <second> <count>1</count> <item_version>0</item_version> <item>37</item> </second> </item> <item> <first>a_addr_4_reg_534</first> <second> <count>1</count> <item_version>0</item_version> <item>40</item> </second> </item> <item> <first>a_addr_reg_609</first> <second> <count>1</count> <item_version>0</item_version> <item>28</item> </second> </item> <item> <first>a_load_1_reg_544</first> <second> <count>1</count> <item_version>0</item_version> <item>69</item> </second> </item> <item> <first>b_addr_1_reg_514</first> <second> <count>1</count> <item_version>0</item_version> <item>48</item> </second> </item> <item> <first>b_addr_2_reg_634</first> <second> <count>1</count> <item_version>0</item_version> <item>51</item> </second> </item> <item> <first>b_addr_3_reg_574</first> <second> <count>1</count> <item_version>0</item_version> <item>54</item> </second> </item> <item> <first>b_addr_4_reg_519</first> <second> <count>1</count> <item_version>0</item_version> <item>57</item> </second> </item> <item> <first>b_addr_reg_599</first> <second> <count>1</count> <item_version>0</item_version> <item>45</item> </second> </item> <item> <first>b_load_1_reg_539</first> <second> <count>1</count> <item_version>0</item_version> <item>71</item> </second> </item> <item> <first>b_load_3_reg_604</first> <second> <count>1</count> <item_version>0</item_version> <item>81</item> </second> </item> <item> <first>exitcond_flatten_reg_453</first> <second> <count>1</count> <item_version>0</item_version> <item>13</item> </second> </item> <item> <first>i_cast6_mid2_v_reg_471</first> <second> <count>1</count> <item_version>0</item_version> <item>22</item> </second> </item> <item> <first>i_reg_183</first> <second> <count>1</count> <item_version>0</item_version> <item>11</item> </second> </item> <item> <first>indvar_flatten_next_reg_457</first> <second> <count>1</count> <item_version>0</item_version> <item>14</item> </second> </item> <item> <first>indvar_flatten_reg_172</first> <second> <count>1</count> <item_version>0</item_version> <item>10</item> </second> </item> <item> <first>j_1_reg_524</first> <second> <count>1</count> <item_version>0</item_version> <item>95</item> </second> </item> <item> <first>j_cast5_cast3_reg_488</first> <second> <count>1</count> <item_version>0</item_version> <item>43</item> </second> </item> <item> <first>j_mid2_reg_462</first> <second> <count>1</count> <item_version>0</item_version> <item>21</item> </second> </item> <item> <first>j_reg_194</first> <second> <count>1</count> <item_version>0</item_version> <item>12</item> </second> </item> <item> <first>reg_205</first> <second> <count>2</count> <item_version>0</item_version> <item>86</item> <item>66</item> </second> </item> <item> <first>reg_209</first> <second> <count>2</count> <item_version>0</item_version> <item>84</item> <item>74</item> </second> </item> <item> <first>tmp1_reg_674</first> <second> <count>1</count> <item_version>0</item_version> <item>89</item> </second> </item> <item> <first>tmp2_reg_639</first> <second> <count>1</count> <item_version>0</item_version> <item>65</item> </second> </item> <item> <first>tmp3_reg_679</first> <second> <count>1</count> <item_version>0</item_version> <item>91</item> </second> </item> <item> <first>tmp4_reg_669</first> <second> <count>1</count> <item_version>0</item_version> <item>90</item> </second> </item> <item> <first>tmp_10_reg_569</first> <second> <count>1</count> <item_version>0</item_version> <item>35</item> </second> </item> <item> <first>tmp_11_reg_509</first> <second> <count>1</count> <item_version>0</item_version> <item>38</item> </second> </item> <item> <first>tmp_12_reg_494</first> <second> <count>1</count> <item_version>0</item_version> <item>46</item> </second> </item> <item> <first>tmp_13_reg_614</first> <second> <count>1</count> <item_version>0</item_version> <item>49</item> </second> </item> <item> <first>tmp_14_reg_549</first> <second> <count>1</count> <item_version>0</item_version> <item>52</item> </second> </item> <item> <first>tmp_15_reg_499</first> <second> <count>1</count> <item_version>0</item_version> <item>55</item> </second> </item> <item> <first>tmp_16_reg_619</first> <second> <count>1</count> <item_version>0</item_version> <item>58</item> </second> </item> <item> <first>tmp_1_1_reg_584</first> <second> <count>1</count> <item_version>0</item_version> <item>72</item> </second> </item> <item> <first>tmp_1_2_reg_664</first> <second> <count>1</count> <item_version>0</item_version> <item>77</item> </second> </item> <item> <first>tmp_1_3_reg_629</first> <second> <count>1</count> <item_version>0</item_version> <item>82</item> </second> </item> <item> <first>tmp_1_4_reg_559</first> <second> <count>1</count> <item_version>0</item_version> <item>87</item> </second> </item> <item> <first>tmp_2_1_reg_654</first> <second> <count>1</count> <item_version>0</item_version> <item>73</item> </second> </item> <item> <first>tmp_2_4_reg_649</first> <second> <count>1</count> <item_version>0</item_version> <item>88</item> </second> </item> <item> <first>tmp_3_4_reg_684</first> <second> <count>1</count> <item_version>0</item_version> <item>92</item> </second> </item> <item> <first>tmp_3_reg_659</first> <second> <count>1</count> <item_version>0</item_version> <item>75</item> </second> </item> <item> <first>tmp_4_reg_554</first> <second> <count>1</count> <item_version>0</item_version> <item>85</item> </second> </item> <item> <first>tmp_5_reg_624</first> <second> <count>1</count> <item_version>0</item_version> <item>80</item> </second> </item> <item> <first>tmp_6_reg_644</first> <second> <count>1</count> <item_version>0</item_version> <item>67</item> </second> </item> <item> <first>tmp_7_reg_478</first> <second> <count>1</count> <item_version>0</item_version> <item>26</item> </second> </item> <item> <first>tmp_8_reg_504</first> <second> <count>1</count> <item_version>0</item_version> <item>29</item> </second> </item> <item> <first>tmp_9_reg_564</first> <second> <count>1</count> <item_version>0</item_version> <item>32</item> </second> </item> <item> <first>tmp_s_reg_579</first> <second> <count>1</count> <item_version>0</item_version> <item>70</item> </second> </item> </dp_regname_nodes> <dp_reg_phi> <count>3</count> <item_version>0</item_version> <item> <first>172</first> <second> <count>1</count> <item_version>0</item_version> <item>10</item> </second> </item> <item> <first>183</first> <second> <count>1</count> <item_version>0</item_version> <item>11</item> </second> </item> <item> <first>194</first> <second> <count>1</count> <item_version>0</item_version> <item>12</item> </second> </item> </dp_reg_phi> <dp_regname_phi> <count>3</count> <item_version>0</item_version> <item> <first>i_reg_183</first> <second> <count>1</count> <item_version>0</item_version> <item>11</item> </second> </item> <item> <first>indvar_flatten_reg_172</first> <second> <count>1</count> <item_version>0</item_version> <item>10</item> </second> </item> <item> <first>j_reg_194</first> <second> <count>1</count> <item_version>0</item_version> <item>12</item> </second> </item> </dp_regname_phi> <dp_port_io_nodes class_id="59" tracking_level="0" version="0"> <count>5</count> <item_version>0</item_version> <item class_id="60" tracking_level="0" version="0"> <first>a(p0)</first> <second> <count>1</count> <item_version>0</item_version> <item> <first>load</first> <second> <count>6</count> <item_version>0</item_version> <item>69</item> <item>69</item> <item>74</item> <item>74</item> <item>64</item> <item>64</item> </second> </item> </second> </item> <item> <first>a(p1)</first> <second> <count>1</count> <item_version>0</item_version> <item> <first>load</first> <second> <count>4</count> <item_version>0</item_version> <item>84</item> <item>84</item> <item>79</item> <item>79</item> </second> </item> </second> </item> <item> <first>b(p0)</first> <second> <count>1</count> <item_version>0</item_version> <item> <first>load</first> <second> <count>6</count> <item_version>0</item_version> <item>86</item> <item>86</item> <item>81</item> <item>81</item> <item>66</item> <item>66</item> </second> </item> </second> </item> <item> <first>b(p1)</first> <second> <count>1</count> <item_version>0</item_version> <item> <first>load</first> <second> <count>4</count> <item_version>0</item_version> <item>71</item> <item>71</item> <item>76</item> <item>76</item> </second> </item> </second> </item> <item> <first>prod(p0)</first> <second> <count>1</count> <item_version>0</item_version> <item> <first>store</first> <second> <count>1</count> <item_version>0</item_version> <item>93</item> </second> </item> </second> </item> </dp_port_io_nodes> <port2core class_id="61" tracking_level="0" version="0"> <count>3</count> <item_version>0</item_version> <item class_id="62" tracking_level="0" version="0"> <first>1</first> <second>RAM</second> </item> <item> <first>2</first> <second>RAM</second> </item> <item> <first>3</first> <second>RAM</second> </item> </port2core> <node2core> <count>0</count> <item_version>0</item_version> </node2core> </syndb> </boost_serialization>
31.124468
107
0.421495
06c34b5a9a4ca884530722c50dc41dc3958d9445
12,383
adb
Ada
tests/kat/test_vectors.adb
damaki/libkeccak
d06217e525f7927380690d6c37b485bdbe8aa96e
[ "BSD-3-Clause" ]
26
2015-09-20T17:52:38.000Z
2021-07-29T21:47:04.000Z
tests/kat/test_vectors.adb
damaki/libkeccak
d06217e525f7927380690d6c37b485bdbe8aa96e
[ "BSD-3-Clause" ]
3
2019-03-12T16:01:36.000Z
2020-05-23T13:06:43.000Z
tests/kat/test_vectors.adb
damaki/libkeccak
d06217e525f7927380690d6c37b485bdbe8aa96e
[ "BSD-3-Clause" ]
2
2019-04-15T18:02:19.000Z
2020-11-22T11:22:18.000Z
------------------------------------------------------------------------------- -- Copyright (c) 2019, Daniel King -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions are met: -- * Redistributions 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. -- * The name of the copyright holder may not 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 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.Characters.Latin_1; use Ada.Characters.Latin_1; with Ada.Strings.Maps; use Ada.Strings.Maps; with Ada.Strings.Fixed; use Ada.Strings.Fixed; with Ada.Text_IO; with Ada.Unchecked_Deallocation; with Interfaces; use Interfaces; with GNAT.Regpat; package body Test_Vectors is use type Ada.Containers.Count_Type; use type GNAT.Regpat.Match_Array; use type GNAT.Regpat.Match_Location; procedure Initialize (Object : in out Value_Choice) is begin case Object.VType is when String_Type => Object.Str := Null_Unbounded_String; when Integer_Type => Object.Int := 0; when Hex_Array_Type => Object.Hex := null; end case; end; procedure Adjust (Object : in out Value_Choice) is begin if Object.VType = Hex_Array_Type and then Object.Hex /= null then Object.Hex := new Keccak.Types.Byte_Array'(Object.Hex.all); end if; end Adjust; procedure Finalize (Object : in out Value_Choice) is procedure Free is new Ada.Unchecked_Deallocation(Keccak.Types.Byte_Array, Byte_Array_Access); begin if Object.VType = Hex_Array_Type and then Object.Hex /= null then Free (Object.Hex); end if; end Finalize; function Hex_String_To_Byte_Array (Str : in String) return Byte_Array_Access is function Char_To_Byte(C : in Character) return Keccak.Types.Byte is Byte : Keccak.Types.Byte; begin if C >= '0' and C <= '9' then Byte := Keccak.Types.Byte(Character'Pos(C) - Character'Pos('0')); elsif C >= 'a' and C <= 'f' then Byte := Keccak.Types.Byte(16#A# + (Character'Pos(C) - Character'Pos('a'))); elsif C >= 'A' and C <= 'F' then Byte := Keccak.Types.Byte(16#A# + (Character'Pos(C) - Character'Pos('A'))); else raise Constraint_Error; end if; return Byte; end Char_To_Byte; Byte_Array : Byte_Array_Access; I : Natural := 0; begin if (Str'Length mod 2 /= 0) then raise Constraint_Error; end if; Byte_Array := new Keccak.Types.Byte_Array(0 .. Str'Length/2 - 1); while I < Str'Length loop Byte_Array.all(I/2) := Shift_Left(Char_To_Byte(Str(Str'First + I)), 4) or Char_To_Byte(Str(Str'First + I + 1)); I := I + 2; end loop; return Byte_Array; end Hex_String_To_Byte_Array; function String_To_Byte_Array (Str : in String) return Byte_Array_Access is Byte_Array : Byte_Array_Access; begin Byte_Array := new Keccak.Types.Byte_Array(1 .. Str'Length); for I in Natural range 0 .. Str'Length - 1 loop Byte_Array(Byte_Array'First + I) := Keccak.Types.Byte(Character'Pos(Str(Str'First + I))); end loop; return Byte_Array; end String_To_Byte_Array; function Byte_Array_To_String(Data : in Keccak.Types.Byte_Array) return String is Hex_Characters : constant array(Keccak.Types.Byte range 0 .. 15) of Character := ('0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'); Str : String(1 .. Data'Length*2); I : Natural := 0; begin while I < Data'Length loop Str(I*2 + 1) := Hex_Characters(Shift_Right(Data(Data'First + I), 4)); Str(I*2 + 2) := Hex_Characters(Data(Data'First + I) mod 16); I := I + 1; end loop; return Str; end Byte_Array_To_String; function Create_List (Value : in Value_Choice) return Value_Choice_Lists.List is begin return L : Value_Choice_Lists.List do L := Value_Choice_Lists.Empty_List; L.Append (Value); end return; end Create_List; Pair_Regex : GNAT.Regpat.Pattern_Matcher := GNAT.Regpat.Compile("^(\w+)\s*=\s*""?([^""]*)""?$"); Empty_Line_Regex : GNAT.Regpat.Pattern_Matcher := GNAT.Regpat.Compile("^\s*$"); procedure Load (File_Name : in String; Schema : in Schema_Maps.Map; Vectors_List : out Lists.List) is File : Ada.Text_IO.File_Type; Test_Vector : Test_Vector_Maps.Map := Test_Vector_Maps.Empty_Map; procedure Append_Test_Vector is begin if not Test_Vector_Maps.Is_Empty (Test_Vector) then -- Check if there are any missing required schema values for C in Schema.Iterate loop if Schema_Maps.Element (C).Required then if not Test_Vector.Contains (Schema_Maps.Key (C)) then raise Schema_Error with "Missing required value"; end if; end if; end loop; Lists.Append (Vectors_List, Test_Vector); end if; end Append_Test_Vector; begin Vectors_List := Lists.Empty_List; Ada.Text_IO.Open (File => File, Mode => Ada.Text_IO.In_File, Name => File_Name); while not Ada.Text_IO.End_Of_File (File) loop declare -- Read a line and trim whitespace. Line : constant String := Trim (Source => Ada.Text_IO.Get_Line (File), Left => To_Set (" " & CR), Right => To_Set (" " & CR)); Pair_Match : GNAT.Regpat.Match_Array (0 .. 2) := (others => GNAT.Regpat.No_Match); Empty_Line_Match : GNAT.Regpat.Match_Array (0 .. 0) := (others => GNAT.Regpat.No_Match); Key_First : Natural; Key_Last : Natural; Key : Unbounded_String; Value_First : Natural; Value_Last : Natural; Value : Unbounded_String; begin GNAT.Regpat.Match (Pair_Regex, Line, Pair_Match); GNAT.Regpat.Match (Empty_Line_Regex, Line, Empty_Line_Match); if Empty_Line_Match (0) /= GNAT.Regpat.No_Match then -- Found an empty line. This signals the end of the current test vector entry. Append_Test_Vector; Test_Vector_Maps.Clear (Test_Vector); elsif Pair_Match (0) /= GNAT.Regpat.No_Match then Key_First := Pair_Match (1).First; Key_Last := Pair_Match (1).Last; Key := To_Unbounded_String (Line (Key_First .. Key_Last)); if Pair_Match (2) = GNAT.Regpat.No_Match then Value_First := Line'First; Value_Last := Line'First - 1; else Value_First := Pair_Match (2).First; Value_Last := Pair_Match (2).Last; end if; Value := To_Unbounded_String (Line (Value_First .. Value_Last)); if Schema.Contains (Key) then -- Some test vector files do not have blank lines separating -- each test vector, so if we find a key that we have already -- put into the current test vector then we have found the -- start of the next test vector. if Test_Vector.Contains (Key) and not Schema.Element (Key).Is_List then Append_Test_Vector; end if; if Test_Vector.Contains (Key) then declare procedure Update_List (Key : in Unbounded_String; List : in out Value_Choice_Lists.List) is begin case Schema.Element (Key).VType is when String_Type => List.Append (Value_Choice'(Controlled with VType => String_Type, Str => Value)); when Integer_Type => List.Append (Value_Choice'(Controlled with VType => Integer_Type, Int => Integer'Value (To_String (Value)))); when Hex_Array_Type => List.Append (Value_Choice'(Controlled with VType => Hex_Array_Type, Hex => Hex_String_To_Byte_Array (To_String (Value)))); end case; end Update_List; begin Test_Vector.Update_Element (Position => Test_Vector.Find (Key), Process => Update_List'Access); end; else case Schema.Element (Key).VType is when String_Type => Test_Vector.Insert (Key => Key, New_Item => Create_List (Value_Choice'(Controlled with VType => String_Type, Str => Value))); when Integer_Type => Test_Vector.Insert (Key => Key, New_Item => Create_List (Value_Choice'(Controlled with VType => Integer_Type, Int => Integer'Value (To_String (Value))))); when Hex_Array_Type => Test_Vector.Insert (Key => Key, New_Item => Create_List (Value_Choice'(Controlled with VType => Hex_Array_Type, Hex => Hex_String_To_Byte_Array (To_String (Value))))); end case; end if; else raise Schema_Error with "Unknown key"; end if; end if; end; end loop; Ada.Text_IO.Close (File); Append_Test_Vector; end Load; end Test_Vectors;
38.576324
126
0.519745
1efbef61c096f68ba78b89a45b738619071a28ce
5,091
ads
Ada
string_ops.ads
davidkristola/vole
aa8e19d9deff2efe98fcd4dc0028c2895d624693
[ "Unlicense" ]
4
2015-02-02T12:11:41.000Z
2020-12-19T02:14:21.000Z
string_ops.ads
davidkristola/vole
aa8e19d9deff2efe98fcd4dc0028c2895d624693
[ "Unlicense" ]
null
null
null
string_ops.ads
davidkristola/vole
aa8e19d9deff2efe98fcd4dc0028c2895d624693
[ "Unlicense" ]
3
2017-02-22T10:44:02.000Z
2021-05-16T09:34:39.000Z
-- public domain with Ada.Calendar; with Ada.Strings.Maps; with Interfaces; package String_Ops is pragma Elaborate_Body; type String_Pointer_Type is access String; -- All the control characters plus space and non-breaking-space. -- function Is_White_Space (Char : in Character) return Boolean; -- The Stuff routines place the source into the target, -- padding with space or zeros. -- procedure Stuff (This : in String; Into : out String); procedure Stuff_Right (This : in String; Into : out String); procedure Stuff_Number (Number : in Integer; Into : out String); procedure Stuff_Hex (Number : in Interfaces.Unsigned_32; Into : out String); -- Kills Ada comments from The_String -- function Drop_Ada_Comments (The_String : String) return String; function Drop_Vole_Comments (The_String : String) return String; function Up_Case (The_String : String) return String; function Down_Case (The_String : String) return String; -- Discards blanks from the front and back end -- of The_String. -- function Trim_Blanks (The_String : String) return String; -- Many times the important string will be enclosed in -- quotation marks or brackets. This trims one character -- off of each end. -- function Trim_One_From_Both_Ends(The_String : String) return String; -- Discards non-printable characters from -- The_String. -- function Filter (The_String : String) return String; -- Return the first substring of Str (deliniated by white space). -- Note: Str is assumed to not start with white space. -- function First (Str : in String) return String; -- Return the second part of Str. -- function Rest (Str : in String) return String; -- Return the second substring of Str (deliniated by white space). -- function Second (Str : in String) return String; -- This returns the Rest of the Rest. -- function Second_Rest (Str : in String) return String; -- Return the third substring of Str (deliniated by white space). -- function Third (Str : in String) return String; -- Return the Nth substring of Str (deliniated by white space). -- function Nth (Str : in String; N : in Positive) return String; -- Return the Nth substring of Str (deliniated by Set). -- function Nth (Str : in String; N : in Positive; Set : in Ada.Strings.Maps.Character_Set) return String; -- This is a caseless compare. -- function Same(L, R : in String) return Boolean; -- This is a specialized "=" for strings. For -- the length of the smaller of Check and Master, -- both strings must be the same. -- function Conformance (Master : in String; Check : in String) return Boolean; -- Returns a string in the form "16#0000_0000#" -- function Integer_To_Hex_String (Value : in Interfaces.Unsigned_32) return String; -- These return images without leading blanks. -- function Str (Int : Integer) return String; function Str (Int : Interfaces.Unsigned_32) return String; -- This "image" routine will only resort to scientific notation -- if the number is too large or too small. -- function Img (Flt : Float) return String; -- This will take a number (floating point or integer) from the -- string and return a Float. -- function Value (Str : String) return Float; function Img (Int : Integer) return String renames Str; function Value (Str : String) return Integer; function Long_Date (Date : in Ada.Calendar.Time := Ada.Calendar.Clock) return String; function Short_Date (Date : in Ada.Calendar.Time := Ada.Calendar.Clock) return String; function Date_As_Filename (Date : in Ada.Calendar.Time := Ada.Calendar.Clock) return String; function IP_Address (Addr : Interfaces.Unsigned_32) return String; ----------------------------------------------------------------------------- generic type Selection_Type is (<>); -- enumeration package Selection_Ops is -- Return true if and only if Str passes "Conformance" -- to the image of a member of Selection_Type. -- Str is up cased before conformance checking. -- function String_Matches (Str : in String) return Boolean; -- Return the number of "Conformance" matches. -- function String_Matches (Str : in String) return Natural; -- Returns the first member of Selection_Type to -- conform to Str, or the first member of -- Selection_Type. -- function To_Selection (Str : in String) return Selection_Type; end Selection_Ops; end String_Ops;
27.518919
80
0.617364
294bb53a596a458e0c4f561239f74832b0d29989
3,868
ada
Ada
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c9/c94001g.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/c9/c94001g.ada
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
null
null
null
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c9/c94001g.ada
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
2
2020-07-27T00:22:36.000Z
2021-04-01T09:41:02.000Z
-- C94001G.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 A COMPLETED TASK WITH DEPENDENT TASKS TERMINATES WHEN -- A L L DEPENDENT TASKS HAVE TERMINATED. -- WEI 3/ 4/82 -- JBG 4/2/84 -- JWC 6/28/85 RENAMED FROM C940AIA-B.ADA with Impdef; WITH REPORT; USE REPORT; PROCEDURE C94001G IS PACKAGE SPY IS -- PROVIDE PROTECTED ACCESS TO SPYNUMB SUBTYPE ARG IS NATURAL RANGE 0..9; FUNCTION SPYNUMB RETURN NATURAL; -- READ FUNCTION FINIT_POS (DIGT : IN ARG) RETURN NATURAL; -- WRITE PROCEDURE PSPY_NUMB (DIGT : IN ARG); -- WRITE END SPY; USE SPY; PACKAGE BODY SPY IS TASK GUARD IS ENTRY READ (NUMB : OUT NATURAL); ENTRY WRITE (NUMB : IN NATURAL); END GUARD; TASK BODY GUARD IS SPYNUMB : NATURAL := 0; BEGIN LOOP SELECT ACCEPT READ (NUMB : OUT NATURAL) DO NUMB := SPYNUMB; END READ; OR ACCEPT WRITE (NUMB : IN NATURAL) DO SPYNUMB := 10*SPYNUMB+NUMB; END WRITE; OR TERMINATE; END SELECT; END LOOP; END GUARD; FUNCTION SPYNUMB RETURN NATURAL IS TEMP : NATURAL; BEGIN GUARD.READ (TEMP); RETURN TEMP; END SPYNUMB; FUNCTION FINIT_POS (DIGT: IN ARG) RETURN NATURAL IS BEGIN GUARD.WRITE (DIGT); RETURN DIGT; END FINIT_POS; PROCEDURE PSPY_NUMB (DIGT : IN ARG) IS BEGIN GUARD.WRITE (DIGT); END PSPY_NUMB; END SPY; BEGIN TEST ("C94001G", "TERMINATION WHEN ALL DEPENDENT TASKS " & "HAVE TERMINATED"); BLOCK: DECLARE TASK TYPE TT1; TASK BODY TT1 IS BEGIN DELAY 1.0 * Impdef.One_Second; PSPY_NUMB (1); END TT1; TASK T1 IS END T1; TASK BODY T1 IS OBJ_TT1_1, OBJ_TT1_2, OBJ_TT1_3 : TT1; BEGIN NULL; END T1; BEGIN NULL; END BLOCK; -- WAIT HERE FOR TERMINATION. IF SPYNUMB /= 111 THEN FAILED ("TASK T1 TERMINATED BEFORE " & "ALL DEPENDENT TASKS HAVE TERMINATED"); COMMENT ("ACTUAL ORDER WAS:" & INTEGER'IMAGE(SPYNUMB)); END IF; RESULT; END C94001G;
30.944
79
0.541107
a0218a6b4090e23bafb74931694e1211ecc5fab3
18,455
ads
Ada
bb-runtimes/runtimes/ravenscar-full-stm32f3x4/gnat/s-libdou.ads
JCGobbi/Nucleo-STM32F334R8
2a0b1b4b2664c92773703ac5e95dcb71979d051c
[ "BSD-3-Clause" ]
null
null
null
bb-runtimes/runtimes/ravenscar-full-stm32f3x4/gnat/s-libdou.ads
JCGobbi/Nucleo-STM32F334R8
2a0b1b4b2664c92773703ac5e95dcb71979d051c
[ "BSD-3-Clause" ]
null
null
null
bb-runtimes/runtimes/ravenscar-full-stm32f3x4/gnat/s-libdou.ads
JCGobbi/Nucleo-STM32F334R8
2a0b1b4b2664c92773703ac5e95dcb71979d051c
[ "BSD-3-Clause" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- S Y S T E M . L I B M _ D O U B L E -- -- -- -- S p e c -- -- -- -- Copyright (C) 2014-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. -- -- -- ------------------------------------------------------------------------------ -- This is the Ada Cert Math specific version of s-libdou.ads with System.Libm_Prefix; -- @llrset Libm -- LLR Libm -- ======== package System.Libm_Double is pragma Pure; package SLP renames System.Libm_Prefix; -- This package provides an implementation of the various C99 functions -- used in the Ada run time. It is intended to be used for targets that -- do not have a C math library, or where the C math library isn't of -- sufficient quality and accuracy to meet Ada requirements. -- In case of error conditions, NaNs or infinities are returned as -- recommended in clause F.9 of the C99 standard. When called from C code, -- the implementation behaves as if the FENV_ACCESS state is off, assuming -- default rounding behavior and exception behavior. -- The following C99 elementary functions are provided: -- Acos, Acosh, Asin, Asinh, Atan, Atan2, Atanh, Cosh, Exp, Exp2, Log, -- Log1p, Log2, Pow, Sin, Sinh, Tan, Tanh -- All functions with a NaN argument return a NaN result, except where -- stated otherwise. Unless otherwise specified, where the symbol +- occurs -- in both an argument and the result, the result has the same sign as -- the argument. -- Each function lists C special values, Ada expected values as well as -- Ada accuracy requirements the function meets. For accuracy requirements -- the maximum relative error (abbreviated as MRE) is given, as well as -- the domain for which the accuracy is guaranteed, where applicable. -- The maximum relative error is expressed as multiple of Eps, -- where Eps is Long_Float'Model_Epsilon. -- What about principal branch ??? ---------- -- Acos -- ---------- function Acos (X : Long_Float) return Long_Float with Export, Convention => C, External_Name => SLP.Prefix & "acos"; -- @llr acos (Long_Float) Special Values -- The Acos function shall return the following special values: -- -- C99 special values: -- Acos (1) = +0 -- Acos (x) = NaN if abs (x) > 1 -- -- Ada expected values: -- Acos (0) = Pi/2.0 (tightly approximated) -- Acos (-1) = Pi (tightly approximated) -- Acos (x) return a result in [0, Pi] radians -- -- @llr acos (Long_Float) Accuracy -- The Acos function shall return the inverse cosine of <X> with the -- following accuracy: -- -- Ada accuracy requirements: -- MRE <= 4.0 * Eps ----------- -- Acosh -- ----------- function Acosh (X : Long_Float) return Long_Float with Export, Convention => C, External_Name => SLP.Prefix & "acosh"; -- @llr acosh (Long_Float) Special Values -- The Acosh function shall return the following special values: -- -- C99 special values: -- Acosh (1) = +0 -- Acosh (x) = NaN if abs X > 1 -- Acosh (+INF) = +INF -- -- @llr acosh (Long_Float) Accuracy -- The Acosh function shall return the inverse hyperbolic tangent of <X> -- with the following accuracy: -- -- Ada accuracy requirements: -- MRE <= 8.0 * Eps ---------- -- Asin -- ---------- function Asin (X : Long_Float) return Long_Float with Export, Convention => C, External_Name => SLP.Prefix & "asin"; -- @llr asin (Long_Float) Special Values -- The Asin function shall return the following special values: -- -- C99 special values: -- Asin (+-0) = +-0 -- Asin (x) = NaN if abs (x) > 1 -- -- Ada expected values: -- Asin (1) = Pi/2.0 (tightly approximated) -- Asin (-1) = -Pi/2 (tightly approximated) -- Asin (x) return a result in [-Pi/2, Pi/2] radians -- -- @llr asin (Long_Float) Accuracy -- The Asin function shall return the inverse sine of <X> with the -- following accuracy: -- -- Ada accuracy requirements: -- MRE <= 4.0 * Eps ----------- -- Asinh -- ----------- function Asinh (X : Long_Float) return Long_Float with Export, Convention => C, External_Name => SLP.Prefix & "asinh"; -- @llr asinh (Long_Float) Special Values -- The Asinh function shall return the following special values: -- -- C99 special values: -- Asinh (0) = 0 -- Asinh (+INF) = +INF -- -- @llr asinh (Long_Float) Accuracy -- The Asinh function shall return the inverse hyperbolic sine of <X> -- with the following accuracy: -- -- Ada accuracy requirements: -- MRE <= 8.0 * Eps ---------- -- Atan -- ---------- function Atan (X : Long_Float) return Long_Float with Export, Convention => C, External_Name => SLP.Prefix & "atan"; -- @llr atan (Long_Float) Special Values -- The Atan function shall return the following special values: -- -- C99 special values: -- Atan (+-0) = +-Pi -- Atan2 (+-INF) = +-0.5 * Pi -- -- C expected values: -- Atan (x) return a result in [-Pi/2, Pi/2] ----------- -- Atan2 -- ----------- function Atan2 (Y : Long_Float; X : Long_Float) return Long_Float with Export, Convention => C, External_Name => SLP.Prefix & "atan2"; -- @llr atan2 (Long_Float; Long_Float) Special Values -- The Atan2 function shall return the following special values: -- -- C99 special values: -- Atan2 (+-0, -0) = +-Pi -- Atan2 (+-0, +0) = +-0 -- Atan2 (+-0, x) = +-Pi, if x < 0 -- Atan2 (+-0, x) = +-0, if x > 0 -- Atan2 (y, +-0) = -0.5 * Pi, if y < 0 -- Atan2 (y, +-0) = 0.5 * Pi, if y > 0 -- Atan2 (+-y, -INF) = +-Pi, if y > 0 and y is finite -- (tightly approximated) -- Atan2 (+-y, +INF) = +-0, if y > 0 and y is finite -- Atan2 (+-INF, x) = +-0.5 * Pi, if x is finite -- (tightly approximated) -- Atan2 (+-INF, -INF) = +-0.75 * Pi (tightly approximated) -- Atan2 (+-INF, +INF) = +-0.25 * Pi (tightly approximated) -- -- Ada expected values: -- Atan2 (y, x) return a result in [-Pi, Pi] -- -- @llr atan2 (Long_Float; Long_Float) Accuracy -- The Atan2 function shall return the inverse tangent of <Y> / <X> -- with the following accuracy: -- -- Ada accuracy requirements: -- MRE <= 4.0 * Eps ----------- -- Atanh -- ----------- function Atanh (X : Long_Float) return Long_Float with Export, Convention => C, External_Name => SLP.Prefix & "atanh"; -- @llr atanh (Long_Float) Special Values -- The Atanh function shall return the following special values: -- -- C99 special values: -- Atanh (0) = 0 -- Atanh (+-1) = +- INF -- Atanh (X) = NaN for abs X > 1 -- -- @llr atanh (Long_Float) Accuracy -- The Atanh function shall return the inverse hyperbolic tangent of <X> -- with the following accuracy: -- -- Ada accuracy requirements: -- MRE <= 8.0 * Eps --------- -- Cos -- --------- function Cos (X : Long_Float) return Long_Float with Export, Convention => C, External_Name => SLP.Prefix & "cos"; -- @llr cos (Long_Float) Special Values -- The Cos function shall return the following special values: -- -- C99 special values: -- Cos (+-0) = 1 -- Cos (+-INF) = NaN -- -- Ada expected values: -- abs (Cos (x)) <= 1 -- -- @llr cos (Long_Float) Accuracy -- The Cos function shall return the cosine of <X> -- with the following accuracy: -- -- Ada accuracy requirements: -- MRE <= 2.0 * Eps ---------- -- Cosh -- ---------- function Cosh (X : Long_Float) return Long_Float with Export, Convention => C, External_Name => SLP.Prefix & "cosh"; -- @llr cosh (Long_Float) Special Values -- The Cosh function shall return the following special values: -- -- C99 special values: -- Cosh (+-0) = 1 -- Cosh (+-INF) = +INF -- -- Ada expected values: -- abs (Cosh (x)) > 1 -- -- @llr cosh (Long_Float) Accuracy -- The Cosh function shall return the hyperbolic cosine of <X> -- with the following accuracy: -- -- Ada accuracy requirements: -- MRE <= 8.0 * Eps --------- -- Exp -- --------- function Exp (X : Long_Float) return Long_Float with Export, Convention => C, External_Name => SLP.Prefix & "exp"; -- @llr exp (Long_Float) Special Values -- The Exp function shall return the following special values: -- -- C99 special values: -- Exp (+-0) = 1 -- Exp (-INF) = +0 -- Exp (+INF) = +INF -- -- @llr exp (Long_Float) Accuracy -- The Exp function shall return the exponential of <X> -- with the following accuracy: -- -- Ada accuracy requirements: -- MRE <= 4.0 * Eps ---------- -- Exp2 -- ---------- function Exp2 (X : Long_Float) return Long_Float with Export, Convention => C, External_Name => SLP.Prefix & "exp2"; -- @llr exp2 (Long_Float) Special Values -- The Exp2 function shall return the following special values: -- -- C99 special values: -- Exp2 (+-0) = 1 -- Exp2 (-INF) = +0 -- Exp2 (+INF) = +INF -- -- @llr exp2 (Long_Float) Accuracy -- The Exp2 function shall return the exponential of <X> in base 2 -- with the following accuracy: -- -- Accuracy requirements: -- MRE <= 4.0 * Eps --------- -- Log -- --------- function Log (X : Long_Float) return Long_Float with Export, Convention => C, External_Name => SLP.Prefix & "log"; -- @llr log (Long_Float) Special Values -- The Log function shall return the following special values: -- -- C99 special values: -- Log (+-0) = -INF -- Log (1) = +0 -- Log (x) = NaN if x<0 -- Log (+INF) = +INF -- -- @llr log (Long_Float) Accuracy -- The Log function shall return the logarithm of <X> -- with the following accuracy: -- -- Ada accuracy requirements: -- MRE <= 4.0 * Eps ----------- -- Log1p -- ----------- function Log1p (X : Long_Float) return Long_Float with Export, Convention => C, External_Name => SLP.Prefix & "log1p"; -- @llr log1p (Long_Float) Special Values: -- The Log1p function shall return the following special values: -- -- C99 special values: -- Log1p (+-0) = -INF -- Log1p (1) = +0 -- Log1p (x) = NaN if x<0 -- Log1p (+INF) = +INF -- -- @llr log1p (Long_Float) Accuracy -- The Log1p function shall return the logarithm of <X> + 1 -- with the following accuracy: -- -- Accuracy requirements: -- MRE <= 4.0 * Eps ---------- -- Log2 -- ---------- function Log2 (X : Long_Float) return Long_Float with Export, Convention => C, External_Name => SLP.Prefix & "log2"; -- @llr log2 (Long_Float) Special Values -- The Log2 function shall return the following special values: -- -- C99 Special values: -- Log2 (+-0) = -INF -- Log2 (1) = +0 -- Log2 (x) = NaN if x<0 -- Log2 (+INF) = +INF -- -- @llr log2 (Long_Float) Accuracy -- The Log2 function shall return the logarithm of <X> in base 2 -- with the following accuracy: -- -- Accuracy requirements: -- MRE <= 4.0 * Eps --------- -- Pow -- --------- function Pow (Left, Right : Long_Float) return Long_Float with Export, Convention => C, External_Name => SLP.Prefix & "pow"; -- @llr pow (Long_Float; Long_Float) Special Values -- The Pow function shall return the following special values -- -- C99 Special values: -- Pow (+-0, y) = +-INF, if y < 0 and y an odd integer -- Pow (+-0, y) = +INF, if y < 0 and y not an odd integer -- Pow (+-0, y) = +-0 if y > 0 and y an odd integer -- Pow (+-0, y) = +0 if y > 0 and y not an odd integer -- Pow (-1, +-INF) = 1 -- Pow (1, y) = 1 for any y, even a NaN -- Pow (x, +-0) = 1 for any x, even a NaN -- Pow (x, y) = NaN, if x < 0 and both x and y finite and not integer -- Pow (x, -INF) = +INF if abs (x) < 1 -- Pow (x, -INF) = +0 if abs (x) > 1 -- Pow (x, +INF) = +0 if abs (x) < 1 -- Pow (x, +INF) = +INF if abs (x) > 1 -- Pow (-INF, y) = -0 if y < 0 and y an odd integer -- Pow (-INF, y) = +0 if y < 0 and y not an odd integer -- Pow (-INF, y) = -INF if y > 0 and y an odd integer -- Pow (-INF, y) = +INF if y > 0 and y not an odd integer -- Pow (+INF, y) = +0 if y < 0 -- Pow (+INF, y) = +INF if y > 0 -- -- @llr pow (Long_Float; Long_Float) Accuracy -- The Pow function shall return <Left> to the power of <Right> -- with the following accuracy: -- -- Ada Accuracy requirements: -- MRE <= (4.0 + abs (x * Log (y)) / 32) * Eps --------- -- Sin -- --------- function Sin (X : Long_Float) return Long_Float with Export, Convention => C, External_Name => SLP.Prefix & "sin"; -- @llr sin (Long_Float) Special Values -- The Sin function shall return the following special values -- -- C99 special values: -- Sin (+-0) = +-0 -- Sin (+-INF) = NaN -- -- @llr sin (Long_Float) Accuracy -- The Sin function shall return the sine of <X> -- with the following accuracy: -- -- Ada accuracy requirements: -- MRE <= 2.0 * Eps ---------- -- Sinh -- ---------- function Sinh (X : Long_Float) return Long_Float with Export, Convention => C, External_Name => SLP.Prefix & "sinh"; -- @llr sinh (Long_Float) Special Values -- The Sinh function shall return the following special values: -- -- C99 Special values: -- Sinh (+-0) = +-0 -- Sinh (+-INF) = +-INF -- -- @llr sinh (Long_Float) Accuracy -- The Sinh function shall return the hyperbolic sine of <X> -- with the following accuracy: -- -- Ada accuracy requirements: -- MRE <= 8.0 * Eps ---------- -- Sqrt -- ---------- function Sqrt (X : Long_Float) return Long_Float with Convention => C; -- The Sqrt function shall return the following special values: -- -- C99 special values: -- Sqrt (+-0) = +-0 -- Sqrt (INF) = INF -- Sqrt (X) = NaN, for X < 0.0 --------- -- Tan -- --------- function Tan (X : Long_Float) return Long_Float with Export, Convention => C, External_Name => SLP.Prefix & "tan"; -- @llr tan (Long_Float) Special Values -- The Tan function shall return the following special values: -- -- C99 special values: -- Tan (+-0) = +0 -- Tan (+-INF) = NaN -- -- @llr tan (Long_Float) Accuracy -- The Tan function shall return the tangent of <X> -- with the following accuracy: -- -- Ada accuracy requirements: -- MRE <= 4.0 * Eps ---------- -- Tanh -- ---------- function Tanh (X : Long_Float) return Long_Float with Export, Convention => C, External_Name => SLP.Prefix & "tanh"; -- @llr tanh (Long_Float) Special Values -- The Tanh function shall return the following special values: -- -- C99 special values: -- Tanh (+-0) = +-0 -- Tanh (+-INF) = +-1 -- -- @llr tanh (Long_Float) Accuracy -- The Tanh function shall return the hyperbolic tangent of <X> -- with the following accuracy: -- -- Ada accuracy requirements: -- MRE <= 8.0 * Eps private function Identity (X : Long_Float) return Long_Float is (X); function Infinity return Long_Float with Import, Convention => Intrinsic, External_Name => "__builtin_inf"; function NaN return Long_Float is (Infinity - Infinity); function Exact (X : Long_Long_Float) return Long_Float is (Long_Float (X)); function Epsilon return Long_Float is (Long_Float'Model_Epsilon); function Maximum_Relative_Error (X : Long_Float) return Float is (Float (0.0 * X)); end System.Libm_Double;
34.559925
79
0.526741
3896688e8a9de1c15b48ed021cfca2415e2bce8e
973
ads
Ada
awa/samples/src/atlas.ads
Letractively/ada-awa
3c82a4d29ed6c1209a2ac7d5fe123c142f3cffbe
[ "Apache-2.0" ]
7
2016-05-01T13:19:01.000Z
2020-03-18T14:47:27.000Z
awa/samples/src/atlas.ads
Letractively/ada-awa
3c82a4d29ed6c1209a2ac7d5fe123c142f3cffbe
[ "Apache-2.0" ]
3
2018-06-06T15:52:11.000Z
2020-03-11T14:03:46.000Z
src/atlas.ads
stcarrez/atlas
712e6c99ebf2d6742f493b74bef9275205df98c6
[ "Apache-2.0" ]
null
null
null
----------------------------------------------------------------------- -- atlas -- Atlas demo ----------------------------------------------------------------------- -- Copyright (C) 2009, 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. ----------------------------------------------------------------------- package Atlas is pragma Pure; end Atlas;
44.227273
76
0.56629
1e70a387619d769593c05b61e739d44e0f97fd15
34,241
ads
Ada
support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/s-rident.ads
orb-zhuchen/Orb
6da2404b949ac28bde786e08bf4debe4a27cd3a0
[ "CNRI-Python-GPL-Compatible", "MIT" ]
null
null
null
support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/s-rident.ads
orb-zhuchen/Orb
6da2404b949ac28bde786e08bf4debe4a27cd3a0
[ "CNRI-Python-GPL-Compatible", "MIT" ]
null
null
null
support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/s-rident.ads
orb-zhuchen/Orb
6da2404b949ac28bde786e08bf4debe4a27cd3a0
[ "CNRI-Python-GPL-Compatible", "MIT" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- S Y S T E M . R I D E N T -- -- -- -- S p e c -- -- -- -- 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. -- -- -- ------------------------------------------------------------------------------ -- This package defines the set of restriction identifiers. It is a generic -- package that is instantiated by the compiler/binder in package Rident, and -- is instantiated in package System.Restrictions for use at run-time. -- The reason that we make this a generic package is so that in the case of -- the instantiation in Rident for use at compile time and bind time, we can -- generate normal image tables for the enumeration types, which are needed -- for diagnostic and informational messages. At run-time we really do not -- want to waste the space for these image tables, and they are not needed, -- so we can do the instantiation under control of Discard_Names to remove -- the tables. --------------------------------------------------- -- Note On Compile/Run-Time Consistency Checking -- --------------------------------------------------- -- This unit is with'ed by the run-time (to make System.Restrictions which is -- used for run-time access to restriction information), by the compiler (to -- determine what restrictions are implemented and what their category is) and -- by the binder (in processing ali files, and generating the information used -- at run-time to access restriction information). -- Normally the version of System.Rident referenced in all three contexts -- should be the same. However, problems could arise in certain inconsistent -- builds that used inconsistent versions of the compiler and run-time. This -- sort of thing is not strictly correct, but it does arise when short-cuts -- are taken in build procedures. -- Previously, this kind of inconsistency could cause a significant problem. -- If versions of System.Rident accessed by the compiler and binder differed, -- then the binder could fail to recognize the R (restrictions line) in the -- ali file, leading to bind errors when restrictions were added or removed. -- The latest implementation avoids both this problem by using a named -- scheme for recording restrictions, rather than a positional scheme which -- fails completely if restrictions are added or subtracted. Now the worst -- that happens at bind time in inconsistent builds is that unrecognized -- restrictions are ignored, and the consistency checking for restrictions -- might be incomplete, which is no big deal. pragma Compiler_Unit_Warning; generic package System.Rident is pragma Preelaborate; -- The following enumeration type defines the set of restriction -- identifiers that are implemented in GNAT. -- To add a new restriction identifier, add an entry with the name to be -- used in the pragma, and add calls to the Restrict.Check_Restriction -- routine as appropriate. type Restriction_Id is -- The following cases are checked for consistency in the binder. The -- binder will check that every unit either has the restriction set, or -- does not violate the restriction. (Simple_Barriers, -- Ada 2012 (D.7 (10.9/3)) Pure_Barriers, -- GNAT No_Abort_Statements, -- (RM D.7(5), H.4(3)) No_Access_Parameter_Allocators, -- Ada 2012 (RM H.4 (8.3/3)) No_Access_Subprograms, -- (RM H.4(17)) No_Allocators, -- (RM H.4(7)) No_Anonymous_Allocators, -- Ada 2012 (RM H.4(8/1)) No_Asynchronous_Control, -- (RM J.13(3/2) No_Calendar, -- GNAT No_Coextensions, -- Ada 2012 (RM H.4(8.2/3)) No_Default_Stream_Attributes, -- Ada 2012 (RM 13.12.1(4/2)) No_Delay, -- (RM H.4(21)) No_Direct_Boolean_Operators, -- GNAT No_Dispatch, -- (RM H.4(19)) No_Dispatching_Calls, -- GNAT No_Dynamic_Attachment, -- Ada 2012 (RM E.7(10/3)) No_Dynamic_Priorities, -- (RM D.9(9)) No_Enumeration_Maps, -- GNAT No_Entry_Calls_In_Elaboration_Code, -- GNAT No_Entry_Queue, -- GNAT (Ravenscar) No_Exception_Handlers, -- GNAT No_Exception_Propagation, -- GNAT No_Exception_Registration, -- GNAT No_Exceptions, -- (RM H.4(12)) No_Finalization, -- GNAT No_Fixed_IO, -- GNAT No_Fixed_Point, -- (RM H.4(15)) No_Floating_Point, -- (RM H.4(14)) No_IO, -- (RM H.4(20)) No_Implicit_Conditionals, -- GNAT No_Implicit_Dynamic_Code, -- GNAT No_Implicit_Heap_Allocations, -- (RM D.8(8), H.4(3)) No_Implicit_Task_Allocations, -- GNAT No_Implicit_Protected_Object_Allocations, -- GNAT No_Initialize_Scalars, -- GNAT No_Local_Allocators, -- (RM H.4(8)) No_Local_Timing_Events, -- (RM D.7(10.2/2)) No_Local_Protected_Objects, -- Ada 2012 (D.7(10/1.3)) No_Long_Long_Integers, -- GNAT No_Multiple_Elaboration, -- GNAT No_Nested_Finalization, -- (RM D.7(4)) No_Protected_Type_Allocators, -- Ada 2012 (D.7 (10.3/2)) No_Protected_Types, -- (RM H.4(5)) No_Recursion, -- (RM H.4(22)) No_Reentrancy, -- (RM H.4(23)) No_Relative_Delay, -- Ada 2012 (D.7 (10.5/3)) No_Requeue_Statements, -- Ada 2012 (D.7 (10.6/3)) No_Secondary_Stack, -- GNAT No_Select_Statements, -- Ada 2012 (D.7 (10.7/4)) No_Specific_Termination_Handlers, -- (RM D.7(10.7/2)) No_Standard_Allocators_After_Elaboration, -- Ada 2012 (RM D.7(19.1/2)) No_Standard_Storage_Pools, -- GNAT No_Stream_Optimizations, -- GNAT No_Streams, -- GNAT No_Task_Allocators, -- (RM D.7(7)) No_Task_Attributes_Package, -- GNAT No_Task_At_Interrupt_Priority, -- GNAT No_Task_Hierarchy, -- (RM D.7(3), H.4(3)) No_Task_Termination, -- GNAT (Ravenscar) No_Tasking, -- GNAT No_Terminate_Alternatives, -- (RM D.7(6)) No_Unchecked_Access, -- (RM H.4(18)) No_Unchecked_Conversion, -- (RM J.13(4/2)) No_Unchecked_Deallocation, -- (RM J.13(5/2)) Static_Priorities, -- GNAT Static_Storage_Size, -- GNAT -- The following require consistency checking with special rules. See -- individual routines in unit Bcheck for details of what is required. No_Default_Initialization, -- GNAT -- The following cases do not require consistency checking and if used -- as a configuration pragma within a specific unit, apply only to that -- unit (e.g. if used in the package spec, do not apply to the body) -- Note: No_Elaboration_Code is handled specially. Like the other -- non-partition-wide restrictions, it can only be set in a unit that -- is part of the extended main source unit (body/spec/subunits). But -- it is sticky, in that if it is found anywhere within any of these -- units, it applies to all units in this extended main source. Immediate_Reclamation, -- (RM H.4(10)) No_Dynamic_Sized_Objects, -- GNAT No_Implementation_Aspect_Specifications, -- Ada 2012 AI-241 No_Implementation_Attributes, -- Ada 2005 AI-257 No_Implementation_Identifiers, -- Ada 2012 AI-246 No_Implementation_Pragmas, -- Ada 2005 AI-257 No_Implementation_Restrictions, -- GNAT No_Implementation_Units, -- Ada 2012 AI-242 No_Implicit_Aliasing, -- GNAT No_Implicit_Loops, -- GNAT No_Elaboration_Code, -- GNAT No_Obsolescent_Features, -- Ada 2005 AI-368 No_Wide_Characters, -- GNAT Static_Dispatch_Tables, -- GNAT SPARK_05, -- GNAT -- The following cases require a parameter value No_Specification_Of_Aspect, -- 2012 (RM 13.12.1 (6.1/3)) No_Use_Of_Attribute, -- 2012 (RM 13.12.1 (6.2/3)) No_Use_Of_Pragma, -- 2012 (RM 13.12.1 (6.3/3)) -- The following entries are fully checked at compile/bind time, which -- means that the compiler can in general tell the minimum value which -- could be used with a restrictions pragma. The binder can deduce the -- appropriate minimum value for the partition by taking the maximum -- value required by any unit. Max_Protected_Entries, -- (RM D.7(14)) Max_Select_Alternatives, -- (RM D.7(12)) Max_Task_Entries, -- (RM D.7(13), H.4(3)) -- The following entries are also fully checked at compile/bind time, -- and the compiler can also at least in some cases tell the minimum -- value which could be used with a restriction pragma. The difference -- is that the contributions are additive, so the binder deduces this -- value by adding the unit contributions. Max_Tasks, -- (RM D.7(19), H.4(3)) -- The following entries are checked at compile time only for zero/ -- nonzero entries. This means that the compiler can tell at compile -- time if a restriction value of zero is (would be) violated, but that -- the compiler cannot distinguish between different non-zero values. Max_Asynchronous_Select_Nesting, -- (RM D.7(18), H.4(3)) Max_Entry_Queue_Length, -- Ada 2012 (RM D.7 (19.1/2)) -- The remaining entries are not checked at compile/bind time Max_Storage_At_Blocking, -- (RM D.7(17)) Not_A_Restriction_Id); -- Synonyms permitted for historical purposes of compatibility. -- Must be coordinated with Restrict.Process_Restriction_Synonym. Boolean_Entry_Barriers : Restriction_Id renames Simple_Barriers; Max_Entry_Queue_Depth : Restriction_Id renames Max_Entry_Queue_Length; No_Dynamic_Interrupts : Restriction_Id renames No_Dynamic_Attachment; No_Requeue : Restriction_Id renames No_Requeue_Statements; No_Task_Attributes : Restriction_Id renames No_Task_Attributes_Package; SPARK : Restriction_Id renames SPARK_05; subtype All_Restrictions is Restriction_Id range Simple_Barriers .. Max_Storage_At_Blocking; -- All restrictions (excluding only Not_A_Restriction_Id) subtype All_Boolean_Restrictions is Restriction_Id range Simple_Barriers .. SPARK_05; -- All restrictions which do not take a parameter subtype Partition_Boolean_Restrictions is All_Boolean_Restrictions range Simple_Barriers .. Static_Storage_Size; -- Boolean restrictions that are checked for partition consistency. -- Note that all parameter restrictions are checked for partition -- consistency by default, so this distinction is only needed in the -- case of Boolean restrictions. subtype Cunit_Boolean_Restrictions is All_Boolean_Restrictions range Immediate_Reclamation .. SPARK_05; -- Boolean restrictions that are not checked for partition consistency -- and that thus apply only to the current unit. Note that for these -- restrictions, the compiler does not apply restrictions found in -- with'ed units, parent specs etc. to the main unit, and vice versa. subtype All_Parameter_Restrictions is Restriction_Id range No_Specification_Of_Aspect .. Max_Storage_At_Blocking; -- All restrictions that take a parameter subtype Integer_Parameter_Restrictions is Restriction_Id range Max_Protected_Entries .. Max_Storage_At_Blocking; -- All restrictions taking an integer parameter subtype Checked_Parameter_Restrictions is All_Parameter_Restrictions range Max_Protected_Entries .. Max_Entry_Queue_Length; -- These are the parameter restrictions that can be at least partially -- checked at compile/binder time. Minimally, the compiler can detect -- violations of a restriction pragma with a value of zero reliably. subtype Checked_Max_Parameter_Restrictions is Checked_Parameter_Restrictions range Max_Protected_Entries .. Max_Task_Entries; -- Restrictions with parameters that can be checked in some cases by -- maximizing among statically detected instances where the compiler -- can determine the count. subtype Checked_Add_Parameter_Restrictions is Checked_Parameter_Restrictions range Max_Tasks .. Max_Tasks; -- Restrictions with parameters that can be checked in some cases by -- summing the statically detected instances where the compiler can -- determine the count. subtype Checked_Val_Parameter_Restrictions is Checked_Parameter_Restrictions range Max_Protected_Entries .. Max_Tasks; -- Restrictions with parameter where the count is known at least in some -- cases by the compiler/binder. subtype Checked_Zero_Parameter_Restrictions is Checked_Parameter_Restrictions range Max_Asynchronous_Select_Nesting .. Max_Entry_Queue_Length; -- Restrictions with parameters where the compiler can detect the use of -- the feature, and hence violations of a restriction specifying a value -- of zero, but cannot detect specific values other than zero/nonzero. subtype Unchecked_Parameter_Restrictions is All_Parameter_Restrictions range Max_Storage_At_Blocking .. Max_Storage_At_Blocking; -- Restrictions with parameters where the compiler cannot ever detect -- corresponding compile time usage, so the binder and compiler never -- detect violations of any restriction. ------------------------------------- -- Restriction Status Declarations -- ------------------------------------- -- The following declarations are used to record the current status or -- restrictions (for the current unit, or related units, at compile time, -- and for all units in a partition at bind time or run time). type Restriction_Flags is array (All_Restrictions) of Boolean; type Restriction_Values is array (All_Parameter_Restrictions) of Natural; type Parameter_Flags is array (All_Parameter_Restrictions) of Boolean; type Restrictions_Info is record Set : Restriction_Flags; -- An entry is True in the Set array if a restrictions pragma has been -- encountered for the given restriction. If the value is True for a -- parameter restriction, then the corresponding entry in the Value -- array gives the minimum value encountered for any such restriction. Value : Restriction_Values; -- If the entry for a parameter restriction in Set is True (i.e. a -- restrictions pragma for the restriction has been encountered), then -- the corresponding entry in the Value array is the minimum value -- specified by any such restrictions pragma. Note that a restrictions -- pragma specifying a value greater than Int'Last is simply ignored. Violated : Restriction_Flags; -- An entry is True in the violations array if the compiler has detected -- a violation of the restriction. For a parameter restriction, the -- Count and Unknown arrays have additional information. Count : Restriction_Values; -- If an entry for a parameter restriction is True in Violated, the -- corresponding entry in the Count array may record additional -- information. If the actual minimum count is known (by taking -- maximums, or sums, depending on the restriction), it will be -- recorded in this array. If not, then the value will remain zero. -- The value is also zero for a non-violated restriction. Unknown : Parameter_Flags; -- If an entry for a parameter restriction is True in Violated, the -- corresponding entry in the Unknown array may record additional -- information. If the actual count is not known by the compiler (but -- is known to be non-zero), then the entry in Unknown will be True. -- This indicates that the value in Count is not known to be exact, -- and the actual violation count may be higher. -- Note: If Violated (K) is True, then either Count (K) > 0 or -- Unknown (K) = True. It is possible for both these to be set. -- For example, if Count (K) = 3 and Unknown (K) is True, it means -- that the actual violation count is at least 3 but might be higher. end record; No_Restrictions : constant Restrictions_Info := (Set => (others => False), Value => (others => 0), Violated => (others => False), Count => (others => 0), Unknown => (others => False)); -- Used to initialize Restrictions_Info variables ---------------------------------- -- Profile Definitions and Data -- ---------------------------------- -- Note: to add a profile, modify the following declarations appropriately, -- add Name_xxx to Snames, and add a branch to the conditions for pragmas -- Profile and Profile_Warnings in the body of Sem_Prag. type Profile_Name is (No_Profile, No_Implementation_Extensions, Restricted_Tasking, Restricted, Ravenscar, GNAT_Extended_Ravenscar, GNAT_Ravenscar_EDF); -- Names of recognized profiles. No_Profile is used to indicate that a -- restriction came from pragma Restrictions[_Warning], as opposed to -- pragma Profile[_Warning]. Restricted_Tasking is a non-user profile that -- contaings the minimal set of restrictions to trigger the user of the -- restricted tasking runtime. Restricted is the corresponding user profile -- that also restrict protected types. subtype Profile_Name_Actual is Profile_Name range No_Implementation_Extensions .. Profile_Name'Last; -- Actual used profile names type Profile_Data is record Set : Restriction_Flags; -- Set to True if given restriction must be set for the profile, and -- False if it need not be set (False does not mean that it must not be -- set, just that it need not be set). If the flag is True for a -- parameter restriction, then the Value array gives the maximum value -- permitted by the profile. Value : Restriction_Values; -- An entry in this array is meaningful only if the corresponding flag -- in Set is True. In that case, the value in this array is the maximum -- value of the parameter permitted by the profile. end record; Profile_Info : constant array (Profile_Name_Actual) of Profile_Data := ( -- No_Implementation_Extensions profile No_Implementation_Extensions => (Set => (No_Implementation_Aspect_Specifications => True, No_Implementation_Attributes => True, No_Implementation_Identifiers => True, No_Implementation_Pragmas => True, No_Implementation_Units => True, others => False), -- Value settings for Restricted profile (none Value => (others => 0)), -- Restricted_Tasking Profile Restricted_Tasking => -- Restrictions for Restricted_Tasking profile (Set => (No_Abort_Statements => True, No_Asynchronous_Control => True, No_Dynamic_Attachment => True, No_Dynamic_Priorities => True, No_Local_Protected_Objects => True, No_Protected_Type_Allocators => True, No_Requeue_Statements => True, No_Task_Allocators => True, No_Task_Attributes_Package => True, No_Task_Hierarchy => True, No_Terminate_Alternatives => True, Max_Asynchronous_Select_Nesting => True, Max_Select_Alternatives => True, Max_Task_Entries => True, others => False), -- Value settings for Restricted_Tasking profile Value => (Max_Asynchronous_Select_Nesting => 0, Max_Select_Alternatives => 0, Max_Task_Entries => 0, others => 0)), -- Restricted Profile Restricted => -- Restrictions for Restricted profile (Set => (No_Abort_Statements => True, No_Asynchronous_Control => True, No_Dynamic_Attachment => True, No_Dynamic_Priorities => True, No_Entry_Queue => True, No_Local_Protected_Objects => True, No_Protected_Type_Allocators => True, No_Requeue_Statements => True, No_Task_Allocators => True, No_Task_Attributes_Package => True, No_Task_Hierarchy => True, No_Terminate_Alternatives => True, Max_Asynchronous_Select_Nesting => True, Max_Protected_Entries => True, Max_Select_Alternatives => True, Max_Task_Entries => True, others => False), -- Value settings for Restricted profile Value => (Max_Asynchronous_Select_Nesting => 0, Max_Protected_Entries => 1, Max_Select_Alternatives => 0, Max_Task_Entries => 0, others => 0)), -- Ravenscar Profile -- Note: the table entries here only represent the -- required restriction profile for Ravenscar. The -- full Ravenscar profile also requires: -- pragma Dispatching_Policy (FIFO_Within_Priorities); -- pragma Locking_Policy (Ceiling_Locking); -- pragma Detect_Blocking; Ravenscar => -- Restrictions for Ravenscar = Restricted profile .. (Set => (No_Abort_Statements => True, No_Asynchronous_Control => True, No_Dynamic_Attachment => True, No_Dynamic_Priorities => True, No_Entry_Queue => True, No_Local_Protected_Objects => True, No_Protected_Type_Allocators => True, No_Requeue_Statements => True, No_Task_Allocators => True, No_Task_Attributes_Package => True, No_Task_Hierarchy => True, No_Terminate_Alternatives => True, Max_Asynchronous_Select_Nesting => True, Max_Protected_Entries => True, Max_Select_Alternatives => True, Max_Task_Entries => True, -- plus these additional restrictions: No_Calendar => True, No_Implicit_Heap_Allocations => True, No_Local_Timing_Events => True, No_Relative_Delay => True, No_Select_Statements => True, No_Specific_Termination_Handlers => True, No_Task_Termination => True, Simple_Barriers => True, others => False), -- Value settings for Ravenscar (same as Restricted) Value => (Max_Asynchronous_Select_Nesting => 0, Max_Protected_Entries => 1, Max_Select_Alternatives => 0, Max_Task_Entries => 0, others => 0)), GNAT_Extended_Ravenscar => -- Restrictions for GNAT_Extended_Ravenscar = -- Restricted profile .. (Set => (No_Abort_Statements => True, No_Asynchronous_Control => True, No_Dynamic_Attachment => True, No_Dynamic_Priorities => True, No_Local_Protected_Objects => True, No_Protected_Type_Allocators => True, No_Requeue_Statements => True, No_Task_Allocators => True, No_Task_Attributes_Package => True, No_Task_Hierarchy => True, No_Terminate_Alternatives => True, Max_Asynchronous_Select_Nesting => True, Max_Select_Alternatives => True, Max_Task_Entries => True, -- plus these additional restrictions: No_Implicit_Task_Allocations => True, No_Implicit_Protected_Object_Allocations => True, No_Local_Timing_Events => True, No_Select_Statements => True, No_Specific_Termination_Handlers => True, No_Task_Termination => True, Pure_Barriers => True, others => False), -- Value settings for Ravenscar (same as Restricted) Value => (Max_Asynchronous_Select_Nesting => 0, Max_Select_Alternatives => 0, Max_Task_Entries => 0, others => 0)), -- GNAT_Ravenscar_EDF Profile -- Note: the table entries here only represent the -- required restriction profile for GNAT_Ravenscar_EDF. -- The full GNAT_Ravenscar_EDF profile also requires: -- pragma Dispatching_Policy (EDF_Across_Priorities); -- pragma Locking_Policy (Ceiling_Locking); -- pragma Detect_Blocking; GNAT_Ravenscar_EDF => -- Restrictions for Ravenscar = Restricted profile .. (Set => (No_Abort_Statements => True, No_Asynchronous_Control => True, No_Dynamic_Attachment => True, No_Dynamic_Priorities => True, No_Entry_Queue => True, No_Local_Protected_Objects => True, No_Protected_Type_Allocators => True, No_Requeue_Statements => True, No_Task_Allocators => True, No_Task_Attributes_Package => True, No_Task_Hierarchy => True, No_Terminate_Alternatives => True, Max_Asynchronous_Select_Nesting => True, Max_Protected_Entries => True, Max_Select_Alternatives => True, Max_Task_Entries => True, -- plus these additional restrictions: No_Calendar => True, No_Implicit_Heap_Allocations => True, No_Local_Timing_Events => True, No_Relative_Delay => True, No_Select_Statements => True, No_Specific_Termination_Handlers => True, No_Task_Termination => True, Simple_Barriers => True, others => False), -- Value settings for Ravenscar (same as Restricted) Value => (Max_Asynchronous_Select_Nesting => 0, Max_Protected_Entries => 1, Max_Select_Alternatives => 0, Max_Task_Entries => 0, others => 0))); end System.Rident;
53.169255
79
0.523963
13f05798a00daf651073cfabfb28598bbf158b40
692
adb
Ada
opengl-view.adb
io7m/coreland-opengl-ada
31760853a42fcba1e37513e0521548592817c7f2
[ "0BSD" ]
1
2017-10-07T05:53:51.000Z
2017-10-07T05:53:51.000Z
opengl-view.adb
io7m/coreland-opengl-ada
31760853a42fcba1e37513e0521548592817c7f2
[ "0BSD" ]
null
null
null
opengl-view.adb
io7m/coreland-opengl-ada
31760853a42fcba1e37513e0521548592817c7f2
[ "0BSD" ]
null
null
null
with OpenGL.Thin; package body OpenGL.View is -- -- Viewport specification. -- procedure Depth_Range (Near : in OpenGL.Types.Clamped_Double_t; Far : in OpenGL.Types.Clamped_Double_t) is begin Thin.Depth_Range (Near_Value => Thin.Double_t (Near), Far_Value => Thin.Double_t (Far)); end Depth_Range; procedure Viewport (Left : in Natural; Bottom : in Natural; Width : in Positive; Height : in Positive) is begin Thin.Viewport (X => Thin.Integer_t (Left), Y => Thin.Integer_t (Bottom), Width => Thin.Size_t (Width), Height => Thin.Size_t (Height)); end Viewport; end OpenGL.View;
21.625
48
0.618497
4bfe3349947c1f6f7c460face2978a41801233b5
3,398
adb
Ada
day07/src/bag.adb
jwarwick/aoc_2020
b88e5a69f7ce035c4bc0a2474e0e0cdbb7b43377
[ "MIT" ]
3
2020-12-26T23:44:33.000Z
2021-12-06T16:00:54.000Z
day07/src/bag.adb
jwarwick/aoc_2020
b88e5a69f7ce035c4bc0a2474e0e0cdbb7b43377
[ "MIT" ]
null
null
null
day07/src/bag.adb
jwarwick/aoc_2020
b88e5a69f7ce035c4bc0a2474e0e0cdbb7b43377
[ "MIT" ]
null
null
null
with Ada.Text_IO; with Ada.Strings.Fixed; use Ada.Strings.Fixed; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; package body Bag is package TIO renames Ada.Text_IO; function "<" (Left, Right : Bag_Combo) return Boolean is begin return Left.Color < Right.Color; end "<"; function test_data return Bag_Maps.Map is d : constant Bag_Maps.Map := parse_rules("test1.txt"); begin return d; end test_data; function input_data return Bag_Maps.Map is d : constant Bag_Maps.Map := parse_rules("input.txt"); begin return d; end input_data; function extract_color(line : in String; rest : out Unbounded_String) return Bag_Color is first_space : constant Natural := index(line, " "); second_space : constant Natural := index(line(first_space+1 .. line'last), " "); first_word : constant String := line(line'first .. first_space-1); second_word : constant String := line(first_space+1 .. second_space-1); ident : constant String := first_word & "_" & second_word; c : constant Bag_Color := Bag_Color'Value(ident); begin rest := to_unbounded_string(line(second_space+1..line'last)); return c; end extract_color; procedure drop_one(line : in String; rest : out Unbounded_String) is first_space : constant Natural := index(line, " "); begin rest := to_unbounded_string(line(first_space+1..line'last)); end drop_one; function get_next(uline : in out Unbounded_String) return Bag_Combo is line : constant String := to_string(uline); first_space : constant Natural := index(line, " "); num : constant Natural := Natural'Value(line(line'first .. first_space-1)); s : constant String := line(first_space+1 .. line'last); color : constant Bag_Color := extract_color(s, uline); begin return Bag_Combo'(Color => color, Count => num); end get_next; function build_set(line : in String) return Bag_Sets.Set is s : Bag_Sets.Set := Empty_Set; rest : Unbounded_String := to_unbounded_string(line); begin if 'n' = line(line'first) then return s; end if; loop declare combo : constant Bag_Combo := get_next(rest); begin s.insert(combo); if 0 = index(to_string(rest), " ") then exit; end if; drop_one(to_string(rest), rest); end; end loop; return s; end build_set; -- procedure print(m : in Bag_Maps.Map) is -- begin -- for c in m.Iterate loop -- TIO.put_line(Bag_Color'Image(key(c))); -- for s of element(c) loop -- TIO.put_line(" " & Bag_Color'Image(s.Color) & ":" & Natural'Image(s.Count)); -- end loop; -- end loop; -- end print; procedure parse_line(line : in String; m : in out Bag_Maps.Map) is rest : Unbounded_String; c : constant Bag_Color := extract_color(line, rest); s : Bag_Sets.Set; begin drop_one(to_string(rest), rest); drop_one(to_string(rest), rest); s := build_set(to_string(rest)); m.insert(c, s); end parse_line; -- function parse_rules(f : in String) return Bag_Maps.Map is file : TIO.File_Type; d : Bag_Maps.Map := Empty_Map; begin TIO.open(File => file, Mode => TIO.In_File, Name => f); while not TIO.end_of_file(file) loop parse_line(TIO.get_line(file), d); end loop; TIO.close(file); -- print(d); return d; end parse_rules; end Bag;
30.890909
91
0.652737