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
4d18e8650ce957cda47e30a5649555fbd718f002
7,941
ads
Ada
support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/a-ztedit.ads
orb-zhuchen/Orb
6da2404b949ac28bde786e08bf4debe4a27cd3a0
[ "CNRI-Python-GPL-Compatible", "MIT" ]
null
null
null
support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/a-ztedit.ads
orb-zhuchen/Orb
6da2404b949ac28bde786e08bf4debe4a27cd3a0
[ "CNRI-Python-GPL-Compatible", "MIT" ]
null
null
null
support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/a-ztedit.ads
orb-zhuchen/Orb
6da2404b949ac28bde786e08bf4debe4a27cd3a0
[ "CNRI-Python-GPL-Compatible", "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 D I T I N G -- -- -- -- S p e c -- -- -- -- Copyright (C) 1992-2019, Free Software Foundation, Inc. -- -- -- -- This specification is derived from the Ada Reference Manual for use with -- -- GNAT. The copyright notice above, and the license provisions that follow -- -- apply solely to the contents of the part following the private keyword. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ package Ada.Wide_Wide_Text_IO.Editing is type Picture is private; function Valid (Pic_String : String; Blank_When_Zero : Boolean := False) return Boolean; function To_Picture (Pic_String : String; Blank_When_Zero : Boolean := False) return Picture; function Pic_String (Pic : Picture) return String; function Blank_When_Zero (Pic : Picture) return Boolean; Max_Picture_Length : constant := 64; Picture_Error : exception; Default_Currency : constant Wide_Wide_String := "$"; Default_Fill : constant Wide_Wide_Character := ' '; Default_Separator : constant Wide_Wide_Character := ','; Default_Radix_Mark : constant Wide_Wide_Character := '.'; generic type Num is delta <> digits <>; Default_Currency : Wide_Wide_String := Wide_Wide_Text_IO.Editing.Default_Currency; Default_Fill : Wide_Wide_Character := Wide_Wide_Text_IO.Editing.Default_Fill; Default_Separator : Wide_Wide_Character := Wide_Wide_Text_IO.Editing.Default_Separator; Default_Radix_Mark : Wide_Wide_Character := Wide_Wide_Text_IO.Editing.Default_Radix_Mark; package Decimal_Output is function Length (Pic : Picture; Currency : Wide_Wide_String := Default_Currency) return Natural; function Valid (Item : Num; Pic : Picture; Currency : Wide_Wide_String := Default_Currency) return Boolean; function Image (Item : Num; Pic : Picture; Currency : Wide_Wide_String := Default_Currency; Fill : Wide_Wide_Character := Default_Fill; Separator : Wide_Wide_Character := Default_Separator; Radix_Mark : Wide_Wide_Character := Default_Radix_Mark) return Wide_Wide_String; procedure Put (File : File_Type; Item : Num; Pic : Picture; Currency : Wide_Wide_String := Default_Currency; Fill : Wide_Wide_Character := Default_Fill; Separator : Wide_Wide_Character := Default_Separator; Radix_Mark : Wide_Wide_Character := Default_Radix_Mark); procedure Put (Item : Num; Pic : Picture; Currency : Wide_Wide_String := Default_Currency; Fill : Wide_Wide_Character := Default_Fill; Separator : Wide_Wide_Character := Default_Separator; Radix_Mark : Wide_Wide_Character := Default_Radix_Mark); procedure Put (To : out Wide_Wide_String; Item : Num; Pic : Picture; Currency : Wide_Wide_String := Default_Currency; Fill : Wide_Wide_Character := Default_Fill; Separator : Wide_Wide_Character := Default_Separator; Radix_Mark : Wide_Wide_Character := Default_Radix_Mark); end Decimal_Output; private MAX_PICSIZE : constant := 50; MAX_MONEYSIZE : constant := 10; Invalid_Position : constant := -1; subtype Pic_Index is Natural range 0 .. MAX_PICSIZE; type Picture_Record (Length : Pic_Index := 0) is record Expanded : String (1 .. Length); end record; type Format_Record is record Picture : Picture_Record; -- Read only Blank_When_Zero : Boolean; -- Read/write Original_BWZ : Boolean; -- The following components get written Star_Fill : Boolean := False; Radix_Position : Integer := Invalid_Position; Sign_Position, Second_Sign : Integer := Invalid_Position; Start_Float, End_Float : Integer := Invalid_Position; Start_Currency, End_Currency : Integer := Invalid_Position; Max_Leading_Digits : Integer := 0; Max_Trailing_Digits : Integer := 0; Max_Currency_Digits : Integer := 0; Floater : Wide_Wide_Character := '!'; -- Initialized to illegal value end record; type Picture is record Contents : Format_Record; end record; type Number_Attributes is record Negative : Boolean := False; Has_Fraction : Boolean := False; Start_Of_Int, End_Of_Int, Start_Of_Fraction, End_Of_Fraction : Integer := Invalid_Position; -- invalid value end record; function Parse_Number_String (Str : String) return Number_Attributes; -- Assumed format is 'IMAGE or Fixed_IO.Put format (depends on no -- trailing blanks...) procedure Precalculate (Pic : in out Format_Record); -- Precalculates fields from the user supplied data function Format_Number (Pic : Format_Record; Number : String; Currency_Symbol : Wide_Wide_String; Fill_Character : Wide_Wide_Character; Separator_Character : Wide_Wide_Character; Radix_Point : Wide_Wide_Character) return Wide_Wide_String; -- Formats number according to Pic function Expand (Picture : String) return String; end Ada.Wide_Wide_Text_IO.Editing;
39.904523
78
0.543131
1229e8a489feb79584235e78d189420040367f32
899
ads
Ada
4-high/gel/source/applet/gel-applet-gui_world.ads
charlie5/lace-alire
9ace9682cf4daac7adb9f980c2868d6225b8111c
[ "0BSD" ]
1
2022-01-20T07:13:42.000Z
2022-01-20T07:13:42.000Z
4-high/gel/source/applet/gel-applet-gui_world.ads
charlie5/lace-alire
9ace9682cf4daac7adb9f980c2868d6225b8111c
[ "0BSD" ]
null
null
null
4-high/gel/source/applet/gel-applet-gui_world.ads
charlie5/lace-alire
9ace9682cf4daac7adb9f980c2868d6225b8111c
[ "0BSD" ]
null
null
null
with gel.World, gel.Camera, gel.Window; package gel.Applet.gui_world -- -- Provides a gel applet configured with a single window and a single GUI world. -- is type Item is new gel.Applet.item with private; type View is access all Item'Class; package Forge is function new_Applet (Name : in String; use_Window : in gel.Window.view; space_Kind : in physics.space_Kind) return gel.Applet.gui_world.view; end Forge; procedure free (Self : in out View); gui_world_Id : constant world_Id := 1; gui_camera_Id : constant camera_Id := 1; function gui_World (Self : in Item) return gel.World .view; function gui_Camera (Self : in Item) return gel.Camera.view; private type Item is new gel.Applet.item with record null; end record; end gel.Applet.gui_world;
21.404762
96
0.638487
39ba7dcbd46b0cabfb7cce7999ed95058cfe13c9
3,179
adb
Ada
Ada95/samples/ncurses.adb
neverware-mirrors/ncurses
931939e0d2765af13962820e59cb6629df3ee638
[ "X11" ]
269
2015-03-01T21:34:42.000Z
2022-03-30T23:07:18.000Z
Ada95/samples/ncurses.adb
neverware-mirrors/ncurses
931939e0d2765af13962820e59cb6629df3ee638
[ "X11" ]
3
2020-10-09T15:00:37.000Z
2020-10-09T15:05:19.000Z
Ada95/samples/ncurses.adb
neverware-mirrors/ncurses
931939e0d2765af13962820e59cb6629df3ee638
[ "X11" ]
97
2016-04-25T06:22:54.000Z
2022-03-30T23:07:19.000Z
------------------------------------------------------------------------------ -- -- -- GNAT ncurses Binding Samples -- -- -- -- ncurses -- -- -- -- B O D Y -- -- -- ------------------------------------------------------------------------------ -- Copyright 2020 Thomas E. Dickey -- -- Copyright 2000 Free Software Foundation, Inc. -- -- -- -- Permission is hereby granted, free of charge, to any person obtaining a -- -- copy of this software and associated documentation files (the -- -- "Software"), to deal in the Software without restriction, including -- -- without limitation the rights to use, copy, modify, merge, publish, -- -- distribute, distribute with modifications, sublicense, and/or sell -- -- copies of the Software, and to permit persons to whom the Software is -- -- furnished to do so, subject to the following conditions: -- -- -- -- The above copyright notice and this permission notice shall be included -- -- in all copies or substantial portions of the Software. -- -- -- -- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -- -- OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -- -- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -- -- IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -- -- DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -- -- OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR -- -- THE USE OR OTHER DEALINGS IN THE SOFTWARE. -- -- -- -- Except as contained in this notice, the name(s) of the above copyright -- -- holders shall not be used in advertising or otherwise to promote the -- -- sale, use or other dealings in this Software without prior written -- -- authorization. -- ------------------------------------------------------------------------------ -- Author: Eugene V. Melaragno <[email protected]> 2000 -- Version Control -- $Revision: 1.2 $ -- Binding Version 01.00 ------------------------------------------------------------------------------ with ncurses2.m; use ncurses2.m; with GNAT.OS_Lib; use GNAT.OS_Lib; procedure ncurses is begin OS_Exit (main); end ncurses;
64.877551
78
0.412708
c5de372bcc97d4337edf72ef357aad5ba8a0df62
996
adb
Ada
contrib/gnu/gdb/dist/gdb/testsuite/gdb.ada/watch_arg/watch.adb
TheSledgeHammer/2.11BSD
fe61f0b9aaa273783cd027c7b5ec77e95ead2153
[ "BSD-3-Clause" ]
3
2021-05-04T17:09:06.000Z
2021-10-04T07:19:26.000Z
contrib/gnu/gdb/dist/gdb/testsuite/gdb.ada/watch_arg/watch.adb
TheSledgeHammer/2.11BSD
fe61f0b9aaa273783cd027c7b5ec77e95ead2153
[ "BSD-3-Clause" ]
null
null
null
contrib/gnu/gdb/dist/gdb/testsuite/gdb.ada/watch_arg/watch.adb
TheSledgeHammer/2.11BSD
fe61f0b9aaa273783cd027c7b5ec77e95ead2153
[ "BSD-3-Clause" ]
null
null
null
-- Copyright 2006-2020 Free Software Foundation, Inc. -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation; either version 3 of the License, or -- (at your option) any later version. -- -- This program is distributed in the hope that it will be useful, -- but WITHOUT ANY WARRANTY; without even the implied warranty of -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- GNU General Public License for more details. -- -- You should have received a copy of the GNU General Public License -- along with this program. If not, see <http://www.gnu.org/licenses/>. with Pck; use Pck; procedure Watch is procedure Foo (X : in out Integer) is begin -- Reference X in a way that does not change its value. Do_Nothing (X'Address); -- BREAK1 end Foo; X : Integer := 1; begin Foo (X); X := 2; -- BREAK2 end Watch;
30.181818
73
0.696787
10ad81e7aa1ece89df157ad1234f2651c3bf477b
1,458
ads
Ada
source/oasis/program-elements-index_constraints.ads
optikos/oasis
9f64d46d26d964790d69f9db681c874cfb3bf96d
[ "MIT" ]
null
null
null
source/oasis/program-elements-index_constraints.ads
optikos/oasis
9f64d46d26d964790d69f9db681c874cfb3bf96d
[ "MIT" ]
null
null
null
source/oasis/program-elements-index_constraints.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.Constraints; with Program.Lexical_Elements; with Program.Elements.Discrete_Ranges; package Program.Elements.Index_Constraints is pragma Pure (Program.Elements.Index_Constraints); type Index_Constraint is limited interface and Program.Elements.Constraints.Constraint; type Index_Constraint_Access is access all Index_Constraint'Class with Storage_Size => 0; not overriding function Ranges (Self : Index_Constraint) return not null Program.Elements.Discrete_Ranges .Discrete_Range_Vector_Access is abstract; type Index_Constraint_Text is limited interface; type Index_Constraint_Text_Access is access all Index_Constraint_Text'Class with Storage_Size => 0; not overriding function To_Index_Constraint_Text (Self : aliased in out Index_Constraint) return Index_Constraint_Text_Access is abstract; not overriding function Left_Bracket_Token (Self : Index_Constraint_Text) return not null Program.Lexical_Elements.Lexical_Element_Access is abstract; not overriding function Right_Bracket_Token (Self : Index_Constraint_Text) return not null Program.Lexical_Elements.Lexical_Element_Access is abstract; end Program.Elements.Index_Constraints;
31.695652
78
0.748971
4da80ae2a9dec0f96c9cfb6f9bdad08826ea6fd1
1,783
adb
Ada
src/ada/src/services/arv/automation_request_validator_communication.adb
VVCAS-Sean/OpenUxAS
dcd7be29d182d278a5387908f568d6f8a06b79ee
[ "NASA-1.3" ]
88
2017-08-24T07:02:01.000Z
2022-03-18T04:34:17.000Z
src/ada/src/services/arv/automation_request_validator_communication.adb
VVCAS-Sean/OpenUxAS
dcd7be29d182d278a5387908f568d6f8a06b79ee
[ "NASA-1.3" ]
46
2017-06-08T18:18:08.000Z
2022-03-15T18:24:43.000Z
src/ada/src/services/arv/automation_request_validator_communication.adb
VVCAS-Sean/OpenUxAS
dcd7be29d182d278a5387908f568d6f8a06b79ee
[ "NASA-1.3" ]
53
2017-06-22T14:48:05.000Z
2022-02-15T16:59:38.000Z
with AVTAS.LMCP.Types; with LMCP_Message_Conversions; use LMCP_Message_Conversions; package body Automation_Request_Validator_Communication is ---------------- -- Initialize -- ---------------- procedure Initialize (This : out Automation_Request_Validator_Mailbox; Source_Group : String; Unique_Id : Int64; Entity_Id : UInt32; Service_Id : UInt32) is begin -- The procedure UxAS.Comms.LMCP_Net_Client.Initialize_Network_Client() -- will also initialize its Message_Sender_Pipe component but will not -- use it for sending: -- -- This.Message_Sender_Pipe.Initialize_Push -- (Source_Group => Value (This.Message_Source_Group), -- Entity_Id => This.Entity_Id, -- Service_Id => UInt32 (This.Network_Id)); This.Message_Sender_Pipe.Initialize_Push (Source_Group => Source_Group, Entity_Id => AVTAS.LMCP.Types.UInt32 (Entity_Id), Service_Id => AVTAS.LMCP.Types.UInt32 (Service_Id)); This.Unique_Entity_Send_Message_Id := Unique_Id; end Initialize; -------------------------- -- sendBroadcastMessage -- -------------------------- -- this is sendSharedLMCPObjectBroadcastMessage(), in our code Send_Shared_LMCP_Object_Broadcast_Message procedure sendBroadcastMessage (This : in out Automation_Request_Validator_Mailbox; Msg : Message_Root'Class) is begin This.Unique_Entity_Send_Message_Id := This.Unique_Entity_Send_Message_Id + 1; -- This.Message_Sender_Pipe.Send_Shared_Broadcast_Message (Msg); This.Message_Sender_Pipe.Send_Shared_Broadcast_Message (As_Object_Any (Msg)); end sendBroadcastMessage; end Automation_Request_Validator_Communication;
34.288462
108
0.674145
dfada069511790a395865b49c97d4d6e992ac4db
755
adb
Ada
src/courbes/courbes-bezier_quadratiques.adb
SKNZ/BezierToSTL
6cc9ed48aa1729140a0bb17aa7f67c17b51561ac
[ "MIT" ]
null
null
null
src/courbes/courbes-bezier_quadratiques.adb
SKNZ/BezierToSTL
6cc9ed48aa1729140a0bb17aa7f67c17b51561ac
[ "MIT" ]
null
null
null
src/courbes/courbes-bezier_quadratiques.adb
SKNZ/BezierToSTL
6cc9ed48aa1729140a0bb17aa7f67c17b51561ac
[ "MIT" ]
null
null
null
with Courbes.Visiteurs; use Courbes.Visiteurs; package body Courbes.Bezier_Quadratiques is function Ctor_Bezier_Quadratique (Debut, Fin, C : Point2D) return Bezier_Quadratique is begin return (Debut => Debut, Fin => Fin, Controle => C); end; overriding function Obtenir_Point(Self : Bezier_Quadratique; X : Coordonnee_Normalisee) return Point2D is begin return (1.0 - X) ** 2 * Self.Debut + 2.0 * X * (1.0 - X) * Self.Controle + X ** 2 * Self.Fin; end; overriding procedure Accepter (Self : Bezier_Quadratique; Visiteur : Visiteur_Courbe'Class) is begin Visiteur.Visiter (Self); end; end Courbes.Bezier_Quadratiques;
30.2
109
0.621192
12288b25ee942db6b31a20b9062e6c2ec805af16
3,778
ads
Ada
source/league/matreshka-internals-unicode-collation.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
24
2016-11-29T06:59:41.000Z
2021-08-30T11:55:16.000Z
source/league/matreshka-internals-unicode-collation.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
2
2019-01-16T05:15:20.000Z
2019-02-03T10:03:32.000Z
source/league/matreshka-internals-unicode-collation.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
4
2017-07-18T07:11:05.000Z
2020-06-21T03:02:25.000Z
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Localization, Internationalization, Globalization for Ada -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2009-2010, 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 Matreshka.Internals.Locales; with Matreshka.Internals.Strings; package Matreshka.Internals.Unicode.Collation is pragma Preelaborate; function Construct_Sort_Key (Locale : Matreshka.Internals.Locales.Locale_Data_Access; Source : Matreshka.Internals.Strings.Shared_String_Access) return Matreshka.Internals.Strings.Shared_Sort_Key_Access; -- Construct sort key. end Matreshka.Internals.Unicode.Collation;
65.137931
78
0.444944
dc5d76fc03d67b2a803b2f6ba5b2d7430457d81d
320
ads
Ada
Ada/finalize/object.ads
egustafson/sandbox
9804e966347b33558b0497a04edb1a591d2d7773
[ "Apache-2.0" ]
2
2019-09-27T21:25:26.000Z
2019-12-29T11:26:54.000Z
Ada/finalize/object.ads
egustafson/sandbox
9804e966347b33558b0497a04edb1a591d2d7773
[ "Apache-2.0" ]
7
2020-08-11T17:32:14.000Z
2020-08-11T17:32:39.000Z
Ada/finalize/object.ads
egustafson/sandbox
9804e966347b33558b0497a04edb1a591d2d7773
[ "Apache-2.0" ]
2
2016-07-18T10:55:50.000Z
2020-08-19T01:46:08.000Z
with Ada.Finalization; package Object is type Object is new Ada.Finalization.Controlled with private; function New_Object( X : in Integer ) return Object; procedure Put( O : Object ); private type Object is new Ada.Finalization.Controlled with record X : Integer := 0; end record;
18.823529
63
0.684375
18d6b86643af7f7d201ba98163a7d01bd7f9aadb
113,315
adb
Ada
boards/ip_colordetect/colordetect/colordetect/.autopilot/db/Block_ZN2xf2cv3MatILi9ELi2160ELi3840ELi1ELi2EEC2Eii_exit1_proc.adb
Kgfu/PYNQ_HelloWorld
a5197130e7d4a5e7f382c3963349c1c0bd213213
[ "BSD-3-Clause" ]
null
null
null
boards/ip_colordetect/colordetect/colordetect/.autopilot/db/Block_ZN2xf2cv3MatILi9ELi2160ELi3840ELi1ELi2EEC2Eii_exit1_proc.adb
Kgfu/PYNQ_HelloWorld
a5197130e7d4a5e7f382c3963349c1c0bd213213
[ "BSD-3-Clause" ]
null
null
null
boards/ip_colordetect/colordetect/colordetect/.autopilot/db/Block_ZN2xf2cv3MatILi9ELi2160ELi3840ELi1ELi2EEC2Eii_exit1_proc.adb
Kgfu/PYNQ_HelloWorld
a5197130e7d4a5e7f382c3963349c1c0bd213213
[ "BSD-3-Clause" ]
null
null
null
<?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/> <cdfg class_id="1" tracking_level="1" version="0" object_id="_0"> <name>Block_ZN2xf2cv3MatILi9ELi2160ELi3840ELi1ELi2EEC2Eii_exit1_proc</name> <ret_bitwidth>0</ret_bitwidth> <ports class_id="2" tracking_level="0" version="0"> <count>16</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>rows</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <contextNormFuncName/> <inlineStackInfo class_id="6" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <control/> <opType/> <implIndex/> <coreName/> <coreId>49</coreId> </Obj> <bitwidth>32</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>cols</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <contextNormFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <control/> <opType/> <implIndex/> <coreName/> <coreId>808598902</coreId> </Obj> <bitwidth>32</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>imgInput_rows_out</name> <fileName>src/xf_colordetect_accel_stream.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>149</lineNumber> <contextFuncName>colordetect_accel</contextFuncName> <contextNormFuncName>colordetect_accel</contextNormFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item class_id="8" tracking_level="0" version="0"> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first> <second class_id="9" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="10" tracking_level="0" version="0"> <first class_id="11" tracking_level="0" version="0"> <first>src/xf_colordetect_accel_stream.cpp</first> <second>colordetect_accel</second> </first> <second>149</second> </item> </second> </item> </inlineStackInfo> <originalName>imgInput.rows</originalName> <rtlName/> <control/> <opType/> <implIndex/> <coreName>FIFO_SRL</coreName> <coreId>49</coreId> </Obj> <bitwidth>32</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="_4"> <Value> <Obj> <type>1</type> <id>4</id> <name>imgInput_cols_out</name> <fileName>src/xf_colordetect_accel_stream.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>149</lineNumber> <contextFuncName>colordetect_accel</contextFuncName> <contextNormFuncName>colordetect_accel</contextNormFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>src/xf_colordetect_accel_stream.cpp</first> <second>colordetect_accel</second> </first> <second>149</second> </item> </second> </item> </inlineStackInfo> <originalName>imgInput.cols</originalName> <rtlName/> <control/> <opType/> <implIndex/> <coreName>FIFO_SRL</coreName> <coreId>49</coreId> </Obj> <bitwidth>32</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="_5"> <Value> <Obj> <type>1</type> <id>5</id> <name>rgb2hsv_rows_out</name> <fileName>src/xf_colordetect_accel_stream.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>150</lineNumber> <contextFuncName>colordetect_accel</contextFuncName> <contextNormFuncName>colordetect_accel</contextNormFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>src/xf_colordetect_accel_stream.cpp</first> <second>colordetect_accel</second> </first> <second>150</second> </item> </second> </item> </inlineStackInfo> <originalName>rgb2hsv.rows</originalName> <rtlName/> <control/> <opType/> <implIndex/> <coreName>FIFO_SRL</coreName> <coreId>0</coreId> </Obj> <bitwidth>32</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="_6"> <Value> <Obj> <type>1</type> <id>6</id> <name>rgb2hsv_cols_out</name> <fileName>src/xf_colordetect_accel_stream.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>150</lineNumber> <contextFuncName>colordetect_accel</contextFuncName> <contextNormFuncName>colordetect_accel</contextNormFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>src/xf_colordetect_accel_stream.cpp</first> <second>colordetect_accel</second> </first> <second>150</second> </item> </second> </item> </inlineStackInfo> <originalName>rgb2hsv.cols</originalName> <rtlName/> <control/> <opType/> <implIndex/> <coreName>FIFO_SRL</coreName> <coreId>540697701</coreId> </Obj> <bitwidth>32</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="_7"> <Value> <Obj> <type>1</type> <id>7</id> <name>imgHelper1_rows_out</name> <fileName>src/xf_colordetect_accel_stream.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>152</lineNumber> <contextFuncName>colordetect_accel</contextFuncName> <contextNormFuncName>colordetect_accel</contextNormFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>src/xf_colordetect_accel_stream.cpp</first> <second>colordetect_accel</second> </first> <second>152</second> </item> </second> </item> </inlineStackInfo> <originalName>imgHelper1.rows</originalName> <rtlName/> <control/> <opType/> <implIndex/> <coreName>FIFO_SRL</coreName> <coreId>129</coreId> </Obj> <bitwidth>32</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="_8"> <Value> <Obj> <type>1</type> <id>8</id> <name>imgHelper1_cols_out</name> <fileName>src/xf_colordetect_accel_stream.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>152</lineNumber> <contextFuncName>colordetect_accel</contextFuncName> <contextNormFuncName>colordetect_accel</contextNormFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>src/xf_colordetect_accel_stream.cpp</first> <second>colordetect_accel</second> </first> <second>152</second> </item> </second> </item> </inlineStackInfo> <originalName>imgHelper1.cols</originalName> <rtlName/> <control/> <opType/> <implIndex/> <coreName>FIFO_SRL</coreName> <coreId>129</coreId> </Obj> <bitwidth>32</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="_9"> <Value> <Obj> <type>1</type> <id>9</id> <name>imgHelper2_rows_out</name> <fileName>src/xf_colordetect_accel_stream.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>153</lineNumber> <contextFuncName>colordetect_accel</contextFuncName> <contextNormFuncName>colordetect_accel</contextNormFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>src/xf_colordetect_accel_stream.cpp</first> <second>colordetect_accel</second> </first> <second>153</second> </item> </second> </item> </inlineStackInfo> <originalName>imgHelper2.rows</originalName> <rtlName/> <control/> <opType/> <implIndex/> <coreName>FIFO_SRL</coreName> <coreId>1</coreId> </Obj> <bitwidth>32</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="_10"> <Value> <Obj> <type>1</type> <id>10</id> <name>imgHelper2_cols_out</name> <fileName>src/xf_colordetect_accel_stream.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>153</lineNumber> <contextFuncName>colordetect_accel</contextFuncName> <contextNormFuncName>colordetect_accel</contextNormFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>src/xf_colordetect_accel_stream.cpp</first> <second>colordetect_accel</second> </first> <second>153</second> </item> </second> </item> </inlineStackInfo> <originalName>imgHelper2.cols</originalName> <rtlName/> <control/> <opType/> <implIndex/> <coreName>FIFO_SRL</coreName> <coreId>49</coreId> </Obj> <bitwidth>32</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>imgHelper3_rows_out</name> <fileName>src/xf_colordetect_accel_stream.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>154</lineNumber> <contextFuncName>colordetect_accel</contextFuncName> <contextNormFuncName>colordetect_accel</contextNormFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>src/xf_colordetect_accel_stream.cpp</first> <second>colordetect_accel</second> </first> <second>154</second> </item> </second> </item> </inlineStackInfo> <originalName>imgHelper3.rows</originalName> <rtlName/> <control/> <opType/> <implIndex/> <coreName>FIFO_SRL</coreName> <coreId>49</coreId> </Obj> <bitwidth>32</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>imgHelper3_cols_out</name> <fileName>src/xf_colordetect_accel_stream.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>154</lineNumber> <contextFuncName>colordetect_accel</contextFuncName> <contextNormFuncName>colordetect_accel</contextNormFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>src/xf_colordetect_accel_stream.cpp</first> <second>colordetect_accel</second> </first> <second>154</second> </item> </second> </item> </inlineStackInfo> <originalName>imgHelper3.cols</originalName> <rtlName/> <control/> <opType/> <implIndex/> <coreName>FIFO_SRL</coreName> <coreId>3576655584</coreId> </Obj> <bitwidth>32</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>imgHelper4_rows_out</name> <fileName>src/xf_colordetect_accel_stream.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>155</lineNumber> <contextFuncName>colordetect_accel</contextFuncName> <contextNormFuncName>colordetect_accel</contextNormFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>src/xf_colordetect_accel_stream.cpp</first> <second>colordetect_accel</second> </first> <second>155</second> </item> </second> </item> </inlineStackInfo> <originalName>imgHelper4.rows</originalName> <rtlName/> <control/> <opType/> <implIndex/> <coreName>FIFO_SRL</coreName> <coreId>3577122617</coreId> </Obj> <bitwidth>32</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="_14"> <Value> <Obj> <type>1</type> <id>14</id> <name>imgHelper4_cols_out</name> <fileName>src/xf_colordetect_accel_stream.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>155</lineNumber> <contextFuncName>colordetect_accel</contextFuncName> <contextNormFuncName>colordetect_accel</contextNormFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>src/xf_colordetect_accel_stream.cpp</first> <second>colordetect_accel</second> </first> <second>155</second> </item> </second> </item> </inlineStackInfo> <originalName>imgHelper4.cols</originalName> <rtlName/> <control/> <opType/> <implIndex/> <coreName>FIFO_SRL</coreName> <coreId>3576445488</coreId> </Obj> <bitwidth>32</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="_15"> <Value> <Obj> <type>1</type> <id>15</id> <name>imgOutput_rows_out</name> <fileName>src/xf_colordetect_accel_stream.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>156</lineNumber> <contextFuncName>colordetect_accel</contextFuncName> <contextNormFuncName>colordetect_accel</contextNormFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>src/xf_colordetect_accel_stream.cpp</first> <second>colordetect_accel</second> </first> <second>156</second> </item> </second> </item> </inlineStackInfo> <originalName>imgOutput.rows</originalName> <rtlName/> <control/> <opType/> <implIndex/> <coreName>FIFO_SRL</coreName> <coreId>49</coreId> </Obj> <bitwidth>32</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="_16"> <Value> <Obj> <type>1</type> <id>16</id> <name>imgOutput_cols_out</name> <fileName>src/xf_colordetect_accel_stream.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>156</lineNumber> <contextFuncName>colordetect_accel</contextFuncName> <contextNormFuncName>colordetect_accel</contextNormFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>src/xf_colordetect_accel_stream.cpp</first> <second>colordetect_accel</second> </first> <second>156</second> </item> </second> </item> </inlineStackInfo> <originalName>imgOutput.cols</originalName> <rtlName/> <control/> <opType/> <implIndex/> <coreName>FIFO_SRL</coreName> <coreId>3577547689</coreId> </Obj> <bitwidth>32</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="12" tracking_level="0" version="0"> <count>17</count> <item_version>0</item_version> <item class_id="13" tracking_level="1" version="0" object_id="_17"> <Value> <Obj> <type>0</type> <id>17</id> <name>cols_read</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <contextNormFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <control/> <opType/> <implIndex/> <coreName/> <coreId>0</coreId> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>50</item> <item>51</item> </oprand_edges> <opcode>read</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>1</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="13" object_id="_18"> <Value> <Obj> <type>0</type> <id>18</id> <name>rows_read</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <contextNormFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <control/> <opType/> <implIndex/> <coreName/> <coreId>0</coreId> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>52</item> <item>53</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>2</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="13" object_id="_19"> <Value> <Obj> <type>0</type> <id>33</id> <name>imgInput_rows_out_write_ln614</name> <fileName>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/common/xf_structs.hpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>614</lineNumber> <contextFuncName>init</contextFuncName> <contextNormFuncName>init</contextNormFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/common/xf_structs.hpp</first> <second>init</second> </first> <second>614</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <control>auto</control> <opType>fifo</opType> <implIndex>srl</implIndex> <coreName>FIFO_SRL</coreName> <coreId>81</coreId> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>55</item> <item>56</item> <item>57</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>3.40</m_delay> <m_topoIndex>3</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="13" object_id="_20"> <Value> <Obj> <type>0</type> <id>34</id> <name>imgInput_cols_out_write_ln615</name> <fileName>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/common/xf_structs.hpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>615</lineNumber> <contextFuncName>init</contextFuncName> <contextNormFuncName>init</contextNormFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/common/xf_structs.hpp</first> <second>init</second> </first> <second>615</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <control>auto</control> <opType>fifo</opType> <implIndex>srl</implIndex> <coreName>FIFO_SRL</coreName> <coreId>81</coreId> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>58</item> <item>59</item> <item>60</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>3.40</m_delay> <m_topoIndex>4</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="13" object_id="_21"> <Value> <Obj> <type>0</type> <id>35</id> <name>rgb2hsv_rows_out_write_ln614</name> <fileName>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/common/xf_structs.hpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>614</lineNumber> <contextFuncName>init</contextFuncName> <contextNormFuncName>init</contextNormFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/common/xf_structs.hpp</first> <second>init</second> </first> <second>614</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <control>auto</control> <opType>fifo</opType> <implIndex>srl</implIndex> <coreName>FIFO_SRL</coreName> <coreId>81</coreId> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>61</item> <item>62</item> <item>63</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>3.40</m_delay> <m_topoIndex>5</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="13" object_id="_22"> <Value> <Obj> <type>0</type> <id>36</id> <name>rgb2hsv_cols_out_write_ln615</name> <fileName>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/common/xf_structs.hpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>615</lineNumber> <contextFuncName>init</contextFuncName> <contextNormFuncName>init</contextNormFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/common/xf_structs.hpp</first> <second>init</second> </first> <second>615</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <control>auto</control> <opType>fifo</opType> <implIndex>srl</implIndex> <coreName>FIFO_SRL</coreName> <coreId>81</coreId> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>64</item> <item>65</item> <item>66</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>3.40</m_delay> <m_topoIndex>6</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="13" object_id="_23"> <Value> <Obj> <type>0</type> <id>37</id> <name>imgHelper1_rows_out_write_ln614</name> <fileName>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/common/xf_structs.hpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>614</lineNumber> <contextFuncName>init</contextFuncName> <contextNormFuncName>init</contextNormFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/common/xf_structs.hpp</first> <second>init</second> </first> <second>614</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <control>auto</control> <opType>fifo</opType> <implIndex>srl</implIndex> <coreName>FIFO_SRL</coreName> <coreId>81</coreId> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>67</item> <item>68</item> <item>69</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>3.36</m_delay> <m_topoIndex>7</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="13" object_id="_24"> <Value> <Obj> <type>0</type> <id>38</id> <name>imgHelper1_cols_out_write_ln615</name> <fileName>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/common/xf_structs.hpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>615</lineNumber> <contextFuncName>init</contextFuncName> <contextNormFuncName>init</contextNormFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/common/xf_structs.hpp</first> <second>init</second> </first> <second>615</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <control>auto</control> <opType>fifo</opType> <implIndex>srl</implIndex> <coreName>FIFO_SRL</coreName> <coreId>81</coreId> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>70</item> <item>71</item> <item>72</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>3.36</m_delay> <m_topoIndex>8</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="13" object_id="_25"> <Value> <Obj> <type>0</type> <id>39</id> <name>imgHelper2_rows_out_write_ln614</name> <fileName>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/common/xf_structs.hpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>614</lineNumber> <contextFuncName>init</contextFuncName> <contextNormFuncName>init</contextNormFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/common/xf_structs.hpp</first> <second>init</second> </first> <second>614</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <control>auto</control> <opType>fifo</opType> <implIndex>srl</implIndex> <coreName>FIFO_SRL</coreName> <coreId>81</coreId> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>73</item> <item>74</item> <item>75</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>3.32</m_delay> <m_topoIndex>9</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="13" object_id="_26"> <Value> <Obj> <type>0</type> <id>40</id> <name>imgHelper2_cols_out_write_ln615</name> <fileName>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/common/xf_structs.hpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>615</lineNumber> <contextFuncName>init</contextFuncName> <contextNormFuncName>init</contextNormFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/common/xf_structs.hpp</first> <second>init</second> </first> <second>615</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <control>auto</control> <opType>fifo</opType> <implIndex>srl</implIndex> <coreName>FIFO_SRL</coreName> <coreId>81</coreId> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>76</item> <item>77</item> <item>78</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>3.32</m_delay> <m_topoIndex>10</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="13" object_id="_27"> <Value> <Obj> <type>0</type> <id>41</id> <name>imgHelper3_rows_out_write_ln614</name> <fileName>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/common/xf_structs.hpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>614</lineNumber> <contextFuncName>init</contextFuncName> <contextNormFuncName>init</contextNormFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/common/xf_structs.hpp</first> <second>init</second> </first> <second>614</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <control>auto</control> <opType>fifo</opType> <implIndex>srl</implIndex> <coreName>FIFO_SRL</coreName> <coreId>81</coreId> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>79</item> <item>80</item> <item>81</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>3.28</m_delay> <m_topoIndex>11</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="13" object_id="_28"> <Value> <Obj> <type>0</type> <id>42</id> <name>imgHelper3_cols_out_write_ln615</name> <fileName>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/common/xf_structs.hpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>615</lineNumber> <contextFuncName>init</contextFuncName> <contextNormFuncName>init</contextNormFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/common/xf_structs.hpp</first> <second>init</second> </first> <second>615</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <control>auto</control> <opType>fifo</opType> <implIndex>srl</implIndex> <coreName>FIFO_SRL</coreName> <coreId>81</coreId> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>82</item> <item>83</item> <item>84</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>3.28</m_delay> <m_topoIndex>12</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="13" object_id="_29"> <Value> <Obj> <type>0</type> <id>43</id> <name>imgHelper4_rows_out_write_ln614</name> <fileName>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/common/xf_structs.hpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>614</lineNumber> <contextFuncName>init</contextFuncName> <contextNormFuncName>init</contextNormFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/common/xf_structs.hpp</first> <second>init</second> </first> <second>614</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <control>auto</control> <opType>fifo</opType> <implIndex>srl</implIndex> <coreName>FIFO_SRL</coreName> <coreId>81</coreId> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>85</item> <item>86</item> <item>87</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>3.24</m_delay> <m_topoIndex>13</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="13" object_id="_30"> <Value> <Obj> <type>0</type> <id>44</id> <name>imgHelper4_cols_out_write_ln615</name> <fileName>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/common/xf_structs.hpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>615</lineNumber> <contextFuncName>init</contextFuncName> <contextNormFuncName>init</contextNormFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/common/xf_structs.hpp</first> <second>init</second> </first> <second>615</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <control>auto</control> <opType>fifo</opType> <implIndex>srl</implIndex> <coreName>FIFO_SRL</coreName> <coreId>81</coreId> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>88</item> <item>89</item> <item>90</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>3.24</m_delay> <m_topoIndex>14</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="13" object_id="_31"> <Value> <Obj> <type>0</type> <id>45</id> <name>imgOutput_rows_out_write_ln614</name> <fileName>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/common/xf_structs.hpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>614</lineNumber> <contextFuncName>init</contextFuncName> <contextNormFuncName>init</contextNormFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/common/xf_structs.hpp</first> <second>init</second> </first> <second>614</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <control>auto</control> <opType>fifo</opType> <implIndex>srl</implIndex> <coreName>FIFO_SRL</coreName> <coreId>81</coreId> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>91</item> <item>92</item> <item>93</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>3.26</m_delay> <m_topoIndex>15</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="13" object_id="_32"> <Value> <Obj> <type>0</type> <id>46</id> <name>imgOutput_cols_out_write_ln615</name> <fileName>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/common/xf_structs.hpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>615</lineNumber> <contextFuncName>init</contextFuncName> <contextNormFuncName>init</contextNormFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/common/xf_structs.hpp</first> <second>init</second> </first> <second>615</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <control>auto</control> <opType>fifo</opType> <implIndex>srl</implIndex> <coreName>FIFO_SRL</coreName> <coreId>81</coreId> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>94</item> <item>95</item> <item>96</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>3.26</m_delay> <m_topoIndex>16</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="13" object_id="_33"> <Value> <Obj> <type>0</type> <id>47</id> <name>_ln0</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <contextNormFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <control/> <opType/> <implIndex/> <coreName/> <coreId>913</coreId> </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>17</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> </nodes> <consts class_id="15" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </consts> <blocks class_id="16" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="17" tracking_level="1" version="0" object_id="_34"> <Obj> <type>3</type> <id>48</id> <name>Block__ZN2xf2cv3MatILi9ELi2160ELi3840ELi1ELi2EEC2Eii.exit1_proc</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <contextNormFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <control/> <opType/> <implIndex/> <coreName/> <coreId>1768189039</coreId> </Obj> <node_objs> <count>17</count> <item_version>0</item_version> <item>17</item> <item>18</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> </node_objs> </item> </blocks> <edges class_id="18" tracking_level="0" version="0"> <count>30</count> <item_version>0</item_version> <item class_id="19" tracking_level="1" version="0" object_id="_35"> <id>51</id> <edge_type>1</edge_type> <source_obj>2</source_obj> <sink_obj>17</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="19" object_id="_36"> <id>53</id> <edge_type>1</edge_type> <source_obj>1</source_obj> <sink_obj>18</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="19" object_id="_37"> <id>56</id> <edge_type>1</edge_type> <source_obj>3</source_obj> <sink_obj>33</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="19" object_id="_38"> <id>57</id> <edge_type>1</edge_type> <source_obj>18</source_obj> <sink_obj>33</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="19" object_id="_39"> <id>59</id> <edge_type>1</edge_type> <source_obj>4</source_obj> <sink_obj>34</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="19" object_id="_40"> <id>60</id> <edge_type>1</edge_type> <source_obj>17</source_obj> <sink_obj>34</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="19" object_id="_41"> <id>62</id> <edge_type>1</edge_type> <source_obj>5</source_obj> <sink_obj>35</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="19" object_id="_42"> <id>63</id> <edge_type>1</edge_type> <source_obj>18</source_obj> <sink_obj>35</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="19" object_id="_43"> <id>65</id> <edge_type>1</edge_type> <source_obj>6</source_obj> <sink_obj>36</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="19" object_id="_44"> <id>66</id> <edge_type>1</edge_type> <source_obj>17</source_obj> <sink_obj>36</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="19" object_id="_45"> <id>68</id> <edge_type>1</edge_type> <source_obj>7</source_obj> <sink_obj>37</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="19" object_id="_46"> <id>69</id> <edge_type>1</edge_type> <source_obj>18</source_obj> <sink_obj>37</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="19" object_id="_47"> <id>71</id> <edge_type>1</edge_type> <source_obj>8</source_obj> <sink_obj>38</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="19" object_id="_48"> <id>72</id> <edge_type>1</edge_type> <source_obj>17</source_obj> <sink_obj>38</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="19" object_id="_49"> <id>74</id> <edge_type>1</edge_type> <source_obj>9</source_obj> <sink_obj>39</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="19" object_id="_50"> <id>75</id> <edge_type>1</edge_type> <source_obj>18</source_obj> <sink_obj>39</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="19" object_id="_51"> <id>77</id> <edge_type>1</edge_type> <source_obj>10</source_obj> <sink_obj>40</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="19" object_id="_52"> <id>78</id> <edge_type>1</edge_type> <source_obj>17</source_obj> <sink_obj>40</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="19" object_id="_53"> <id>80</id> <edge_type>1</edge_type> <source_obj>11</source_obj> <sink_obj>41</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="19" object_id="_54"> <id>81</id> <edge_type>1</edge_type> <source_obj>18</source_obj> <sink_obj>41</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="19" object_id="_55"> <id>83</id> <edge_type>1</edge_type> <source_obj>12</source_obj> <sink_obj>42</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="19" object_id="_56"> <id>84</id> <edge_type>1</edge_type> <source_obj>17</source_obj> <sink_obj>42</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="19" object_id="_57"> <id>86</id> <edge_type>1</edge_type> <source_obj>13</source_obj> <sink_obj>43</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="19" object_id="_58"> <id>87</id> <edge_type>1</edge_type> <source_obj>18</source_obj> <sink_obj>43</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="19" object_id="_59"> <id>89</id> <edge_type>1</edge_type> <source_obj>14</source_obj> <sink_obj>44</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="19" object_id="_60"> <id>90</id> <edge_type>1</edge_type> <source_obj>17</source_obj> <sink_obj>44</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="19" object_id="_61"> <id>92</id> <edge_type>1</edge_type> <source_obj>15</source_obj> <sink_obj>45</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="19" object_id="_62"> <id>93</id> <edge_type>1</edge_type> <source_obj>18</source_obj> <sink_obj>45</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="19" object_id="_63"> <id>95</id> <edge_type>1</edge_type> <source_obj>16</source_obj> <sink_obj>46</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="19" object_id="_64"> <id>96</id> <edge_type>1</edge_type> <source_obj>17</source_obj> <sink_obj>46</sink_obj> <is_back_edge>0</is_back_edge> </item> </edges> </cdfg> <cdfg_regions class_id="20" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="21" tracking_level="1" version="0" object_id="_65"> <mId>1</mId> <mTag>Block__ZN2xf2cv3MatILi9ELi2160ELi3840ELi1ELi2EEC2Eii.exit1_proc</mTag> <mNormTag>Block_ZN2xf2cv3MatILi9ELi2160ELi3840ELi1ELi2EEC2Eii_exit1_proc</mNormTag> <mType>0</mType> <sub_regions> <count>0</count> <item_version>0</item_version> </sub_regions> <basic_blocks> <count>1</count> <item_version>0</item_version> <item>48</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"/> </item> </cdfg_regions> <fsm class_id="23" tracking_level="1" version="0" object_id="_66"> <states class_id="24" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="25" tracking_level="1" version="0" object_id="_67"> <id>1</id> <operations class_id="26" tracking_level="0" version="0"> <count>31</count> <item_version>0</item_version> <item class_id="27" tracking_level="1" version="0" object_id="_68"> <id>17</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="27" object_id="_69"> <id>18</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="27" object_id="_70"> <id>19</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="27" object_id="_71"> <id>20</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="27" object_id="_72"> <id>21</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="27" object_id="_73"> <id>22</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="27" object_id="_74"> <id>23</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="27" object_id="_75"> <id>24</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="27" object_id="_76"> <id>25</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="27" object_id="_77"> <id>26</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="27" object_id="_78"> <id>27</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="27" object_id="_79"> <id>28</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="27" object_id="_80"> <id>29</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="27" object_id="_81"> <id>30</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="27" object_id="_82"> <id>31</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="27" object_id="_83"> <id>32</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="27" object_id="_84"> <id>33</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="27" object_id="_85"> <id>34</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="27" object_id="_86"> <id>35</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="27" object_id="_87"> <id>36</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="27" object_id="_88"> <id>37</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="27" object_id="_89"> <id>38</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="27" object_id="_90"> <id>39</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="27" object_id="_91"> <id>40</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="27" object_id="_92"> <id>41</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="27" object_id="_93"> <id>42</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="27" object_id="_94"> <id>43</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="27" object_id="_95"> <id>44</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="27" object_id="_96"> <id>45</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="27" object_id="_97"> <id>46</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="27" object_id="_98"> <id>47</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> </states> <transitions class_id="28" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </transitions> </fsm> <res class_id="29" tracking_level="1" version="0" object_id="_99"> <dp_component_resource class_id="30" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </dp_component_resource> <dp_expression_resource> <count>1</count> <item_version>0</item_version> <item class_id="31" tracking_level="0" version="0"> <first>ap_block_state1 ( or ) </first> <second class_id="32" tracking_level="0" version="0"> <count>4</count> <item_version>0</item_version> <item class_id="33" tracking_level="0" version="0"> <first>(0P0)</first> <second>1</second> </item> <item> <first>(1P1)</first> <second>1</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>1</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>16</count> <item_version>0</item_version> <item> <first>ap_done</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>imgHelper1_cols_out_blk_n</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>imgHelper1_rows_out_blk_n</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>imgHelper2_cols_out_blk_n</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>imgHelper2_rows_out_blk_n</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>imgHelper3_cols_out_blk_n</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>imgHelper3_rows_out_blk_n</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>imgHelper4_cols_out_blk_n</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>imgHelper4_rows_out_blk_n</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>imgInput_cols_out_blk_n</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>imgInput_rows_out_blk_n</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>imgOutput_cols_out_blk_n</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>imgOutput_rows_out_blk_n</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>real_start</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>rgb2hsv_cols_out_blk_n</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>rgb2hsv_rows_out_blk_n</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> </dp_multiplexer_resource> <dp_register_resource> <count>3</count> <item_version>0</item_version> <item> <first>ap_CS_fsm</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_done_reg</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>start_once_reg</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> </dp_register_resource> <dp_dsp_resource> <count>0</count> <item_version>0</item_version> </dp_dsp_resource> <dp_component_map class_id="34" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </dp_component_map> <dp_expression_map> <count>0</count> <item_version>0</item_version> </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="35" tracking_level="0" version="0"> <count>17</count> <item_version>0</item_version> <item class_id="36" tracking_level="0" version="0"> <first>17</first> <second class_id="37" tracking_level="0" version="0"> <first>0</first> <second>0</second> </second> </item> <item> <first>18</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>34</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>35</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>36</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>37</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>38</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>39</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>40</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>41</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>42</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>43</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>44</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>45</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>46</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>47</first> <second> <first>0</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>48</first> <second class_id="40" tracking_level="0" version="0"> <first>0</first> <second>0</second> </second> </item> </bblk_ent_exit> <regions class_id="41" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </regions> <dp_fu_nodes class_id="42" tracking_level="0" version="0"> <count>16</count> <item_version>0</item_version> <item class_id="43" tracking_level="0" version="0"> <first>48</first> <second> <count>1</count> <item_version>0</item_version> <item>17</item> </second> </item> <item> <first>54</first> <second> <count>1</count> <item_version>0</item_version> <item>18</item> </second> </item> <item> <first>60</first> <second> <count>1</count> <item_version>0</item_version> <item>33</item> </second> </item> <item> <first>68</first> <second> <count>1</count> <item_version>0</item_version> <item>34</item> </second> </item> <item> <first>76</first> <second> <count>1</count> <item_version>0</item_version> <item>35</item> </second> </item> <item> <first>84</first> <second> <count>1</count> <item_version>0</item_version> <item>36</item> </second> </item> <item> <first>92</first> <second> <count>1</count> <item_version>0</item_version> <item>37</item> </second> </item> <item> <first>100</first> <second> <count>1</count> <item_version>0</item_version> <item>38</item> </second> </item> <item> <first>108</first> <second> <count>1</count> <item_version>0</item_version> <item>39</item> </second> </item> <item> <first>116</first> <second> <count>1</count> <item_version>0</item_version> <item>40</item> </second> </item> <item> <first>124</first> <second> <count>1</count> <item_version>0</item_version> <item>41</item> </second> </item> <item> <first>132</first> <second> <count>1</count> <item_version>0</item_version> <item>42</item> </second> </item> <item> <first>140</first> <second> <count>1</count> <item_version>0</item_version> <item>43</item> </second> </item> <item> <first>148</first> <second> <count>1</count> <item_version>0</item_version> <item>44</item> </second> </item> <item> <first>156</first> <second> <count>1</count> <item_version>0</item_version> <item>45</item> </second> </item> <item> <first>164</first> <second> <count>1</count> <item_version>0</item_version> <item>46</item> </second> </item> </dp_fu_nodes> <dp_fu_nodes_expression class_id="45" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </dp_fu_nodes_expression> <dp_fu_nodes_module> <count>0</count> <item_version>0</item_version> </dp_fu_nodes_module> <dp_fu_nodes_io> <count>16</count> <item_version>0</item_version> <item class_id="46" tracking_level="0" version="0"> <first>cols_read_read_fu_48</first> <second> <count>1</count> <item_version>0</item_version> <item>17</item> </second> </item> <item> <first>rows_read_read_fu_54</first> <second> <count>1</count> <item_version>0</item_version> <item>18</item> </second> </item> <item> <first>write_ln614_write_fu_108</first> <second> <count>1</count> <item_version>0</item_version> <item>39</item> </second> </item> <item> <first>write_ln614_write_fu_124</first> <second> <count>1</count> <item_version>0</item_version> <item>41</item> </second> </item> <item> <first>write_ln614_write_fu_140</first> <second> <count>1</count> <item_version>0</item_version> <item>43</item> </second> </item> <item> <first>write_ln614_write_fu_156</first> <second> <count>1</count> <item_version>0</item_version> <item>45</item> </second> </item> <item> <first>write_ln614_write_fu_60</first> <second> <count>1</count> <item_version>0</item_version> <item>33</item> </second> </item> <item> <first>write_ln614_write_fu_76</first> <second> <count>1</count> <item_version>0</item_version> <item>35</item> </second> </item> <item> <first>write_ln614_write_fu_92</first> <second> <count>1</count> <item_version>0</item_version> <item>37</item> </second> </item> <item> <first>write_ln615_write_fu_100</first> <second> <count>1</count> <item_version>0</item_version> <item>38</item> </second> </item> <item> <first>write_ln615_write_fu_116</first> <second> <count>1</count> <item_version>0</item_version> <item>40</item> </second> </item> <item> <first>write_ln615_write_fu_132</first> <second> <count>1</count> <item_version>0</item_version> <item>42</item> </second> </item> <item> <first>write_ln615_write_fu_148</first> <second> <count>1</count> <item_version>0</item_version> <item>44</item> </second> </item> <item> <first>write_ln615_write_fu_164</first> <second> <count>1</count> <item_version>0</item_version> <item>46</item> </second> </item> <item> <first>write_ln615_write_fu_68</first> <second> <count>1</count> <item_version>0</item_version> <item>34</item> </second> </item> <item> <first>write_ln615_write_fu_84</first> <second> <count>1</count> <item_version>0</item_version> <item>36</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="47" 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="48" tracking_level="0" version="0"> <count>16</count> <item_version>0</item_version> <item class_id="49" tracking_level="0" version="0"> <first>cols</first> <second> <count>1</count> <item_version>0</item_version> <item> <first>read</first> <second> <count>1</count> <item_version>0</item_version> <item>17</item> </second> </item> </second> </item> <item> <first>imgHelper1_cols_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>38</item> </second> </item> </second> </item> <item> <first>imgHelper1_rows_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>37</item> </second> </item> </second> </item> <item> <first>imgHelper2_cols_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>40</item> </second> </item> </second> </item> <item> <first>imgHelper2_rows_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>39</item> </second> </item> </second> </item> <item> <first>imgHelper3_cols_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>42</item> </second> </item> </second> </item> <item> <first>imgHelper3_rows_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>41</item> </second> </item> </second> </item> <item> <first>imgHelper4_cols_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>44</item> </second> </item> </second> </item> <item> <first>imgHelper4_rows_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>43</item> </second> </item> </second> </item> <item> <first>imgInput_cols_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>34</item> </second> </item> </second> </item> <item> <first>imgInput_rows_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>33</item> </second> </item> </second> </item> <item> <first>imgOutput_cols_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>46</item> </second> </item> </second> </item> <item> <first>imgOutput_rows_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>45</item> </second> </item> </second> </item> <item> <first>rgb2hsv_cols_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>36</item> </second> </item> </second> </item> <item> <first>rgb2hsv_rows_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>35</item> </second> </item> </second> </item> <item> <first>rows</first> <second> <count>1</count> <item_version>0</item_version> <item> <first>read</first> <second> <count>1</count> <item_version>0</item_version> <item>18</item> </second> </item> </second> </item> </dp_port_io_nodes> <port2core> <count>14</count> <item_version>0</item_version> <item> <first>3</first> <second> <first>1151</first> <second>10</second> </second> </item> <item> <first>4</first> <second> <first>1151</first> <second>10</second> </second> </item> <item> <first>5</first> <second> <first>1151</first> <second>10</second> </second> </item> <item> <first>6</first> <second> <first>1151</first> <second>10</second> </second> </item> <item> <first>7</first> <second> <first>1151</first> <second>10</second> </second> </item> <item> <first>8</first> <second> <first>1151</first> <second>10</second> </second> </item> <item> <first>9</first> <second> <first>1151</first> <second>10</second> </second> </item> <item> <first>10</first> <second> <first>1151</first> <second>10</second> </second> </item> <item> <first>11</first> <second> <first>1151</first> <second>10</second> </second> </item> <item> <first>12</first> <second> <first>1151</first> <second>10</second> </second> </item> <item> <first>13</first> <second> <first>1151</first> <second>10</second> </second> </item> <item> <first>14</first> <second> <first>1151</first> <second>10</second> </second> </item> <item> <first>15</first> <second> <first>1151</first> <second>10</second> </second> </item> <item> <first>16</first> <second> <first>1151</first> <second>10</second> </second> </item> </port2core> <node2core> <count>14</count> <item_version>0</item_version> <item> <first>33</first> <second> <first>1151</first> <second>10</second> </second> </item> <item> <first>34</first> <second> <first>1151</first> <second>10</second> </second> </item> <item> <first>35</first> <second> <first>1151</first> <second>10</second> </second> </item> <item> <first>36</first> <second> <first>1151</first> <second>10</second> </second> </item> <item> <first>37</first> <second> <first>1151</first> <second>10</second> </second> </item> <item> <first>38</first> <second> <first>1151</first> <second>10</second> </second> </item> <item> <first>39</first> <second> <first>1151</first> <second>10</second> </second> </item> <item> <first>40</first> <second> <first>1151</first> <second>10</second> </second> </item> <item> <first>41</first> <second> <first>1151</first> <second>10</second> </second> </item> <item> <first>42</first> <second> <first>1151</first> <second>10</second> </second> </item> <item> <first>43</first> <second> <first>1151</first> <second>10</second> </second> </item> <item> <first>44</first> <second> <first>1151</first> <second>10</second> </second> </item> <item> <first>45</first> <second> <first>1151</first> <second>10</second> </second> </item> <item> <first>46</first> <second> <first>1151</first> <second>10</second> </second> </item> </node2core> </syndb> </boost_serialization>
32.61802
140
0.467229
4df597ae84c40abc89806db6692c321df9ad2924
7,682
ads
Ada
bb-runtimes/runtimes/ravenscar-full-stm32f3x4/gnat/a-stuten.ads
JCGobbi/Nucleo-STM32F334R8
2a0b1b4b2664c92773703ac5e95dcb71979d051c
[ "BSD-3-Clause" ]
1
2020-01-20T21:26:46.000Z
2020-01-20T21:26:46.000Z
bb-runtimes/runtimes/ravenscar-full-stm32f3x4/gnat/a-stuten.ads
JCGobbi/Nucleo-STM32F334R8
2a0b1b4b2664c92773703ac5e95dcb71979d051c
[ "BSD-3-Clause" ]
null
null
null
bb-runtimes/runtimes/ravenscar-full-stm32f3x4/gnat/a-stuten.ads
JCGobbi/Nucleo-STM32F334R8
2a0b1b4b2664c92773703ac5e95dcb71979d051c
[ "BSD-3-Clause" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- A D A . S T R I N G S . U T F _ E N C O D I N G -- -- -- -- S p e c -- -- -- -- This specification is derived from the Ada Reference Manual for use with -- -- GNAT. The copyright notice above, and the license provisions that follow -- -- apply solely to the contents of the part following the private keyword. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- -- -- -- -- -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ -- This is one of the Ada 2012 package defined in AI05-0137-1. It is a parent -- package that contains declarations used in the child packages for handling -- UTF encoded strings. Note: this package is consistent with Ada 95, and may -- be used in Ada 95 or Ada 2005 mode. with Interfaces; with Unchecked_Conversion; package Ada.Strings.UTF_Encoding is pragma Pure (UTF_Encoding); subtype UTF_String is String; -- Used to represent a string of 8-bit values containing a sequence of -- values encoded in one of three ways (UTF-8, UTF-16BE, or UTF-16LE). -- Typically used in connection with a Scheme parameter indicating which -- of the encodings applies. This is not strictly a String value in the -- sense defined in the Ada RM, but in practice type String accommodates -- all possible 256 codes, and can be used to hold any sequence of 8-bit -- codes. We use String directly rather than create a new type so that -- all existing facilities for manipulating type String (e.g. the child -- packages of Ada.Strings) are available for manipulation of UTF_Strings. type Encoding_Scheme is (UTF_8, UTF_16BE, UTF_16LE); -- Used to specify which of three possible encodings apply to a UTF_String subtype UTF_8_String is String; -- Similar to UTF_String but specifically represents a UTF-8 encoded string subtype UTF_16_Wide_String is Wide_String; -- This is similar to UTF_8_String but is used to represent a Wide_String -- value which is a sequence of 16-bit values encoded using UTF-16. Again -- this is not strictly a Wide_String in the sense of the Ada RM, but the -- type Wide_String can be used to represent a sequence of arbitrary 16-bit -- values, and it is more convenient to use Wide_String than a new type. Encoding_Error : exception; -- This exception is raised in the following situations: -- a) A UTF encoded string contains an invalid encoding sequence -- b) A UTF-16BE or UTF-16LE input string has an odd length -- c) An incorrect character value is present in the Input string -- d) The result for a Wide_Character output exceeds 16#FFFF# -- The exception message has the index value where the error occurred. -- The BOM (BYTE_ORDER_MARK) values defined here are used at the start of -- a string to indicate the encoding. The convention in this package is -- that on input a correct BOM is ignored and an incorrect BOM causes an -- Encoding_Error exception. On output, the output string may or may not -- include a BOM depending on the setting of Output_BOM. BOM_8 : constant UTF_8_String := Character'Val (16#EF#) & Character'Val (16#BB#) & Character'Val (16#BF#); BOM_16BE : constant UTF_String := Character'Val (16#FE#) & Character'Val (16#FF#); BOM_16LE : constant UTF_String := Character'Val (16#FF#) & Character'Val (16#FE#); BOM_16 : constant UTF_16_Wide_String := (1 => Wide_Character'Val (16#FEFF#)); function Encoding (Item : UTF_String; Default : Encoding_Scheme := UTF_8) return Encoding_Scheme; -- This function inspects a UTF_String value to determine whether it -- starts with a BOM for UTF-8, UTF-16BE, or UTF_16LE. If so, the result -- is the scheme corresponding to the BOM. If no valid BOM is present -- then the result is the specified Default value. private function To_Unsigned_8 is new Unchecked_Conversion (Character, Interfaces.Unsigned_8); function To_Unsigned_16 is new Unchecked_Conversion (Wide_Character, Interfaces.Unsigned_16); function To_Unsigned_32 is new Unchecked_Conversion (Wide_Wide_Character, Interfaces.Unsigned_32); subtype UTF_XE_Encoding is Encoding_Scheme range UTF_16BE .. UTF_16LE; -- Subtype containing only UTF_16BE and UTF_16LE entries -- Utility routines for converting between UTF-16 and UTF-16LE/BE function From_UTF_16 (Item : UTF_16_Wide_String; Output_Scheme : UTF_XE_Encoding; Output_BOM : Boolean := False) return UTF_String; -- The input string Item is encoded in UTF-16. The output is encoded using -- Output_Scheme (which is either UTF-16LE or UTF-16BE). There are no error -- cases. The output starts with BOM_16BE/LE if Output_BOM is True. function To_UTF_16 (Item : UTF_String; Input_Scheme : UTF_XE_Encoding; Output_BOM : Boolean := False) return UTF_16_Wide_String; -- The input string Item is encoded using Input_Scheme which is either -- UTF-16LE or UTF-16BE. The output is the corresponding UTF_16 wide -- string. Encoding error is raised if the length of the input is odd. -- The output starts with BOM_16 if Output_BOM is True. procedure Raise_Encoding_Error (Index : Natural); pragma No_Return (Raise_Encoding_Error); -- Raise Encoding_Error exception for bad encoding in input item. The -- parameter Index is the index of the location in Item for the error. end Ada.Strings.UTF_Encoding;
52.97931
79
0.584744
50cbd2c3c893f6ae96657746e92f1c6ccffb7e37
2,321
ads
Ada
source/torrent-trackers.ads
reznikmm/torrent
7b32dbab106a54846000409e79f853339b7ecd64
[ "MIT" ]
4
2019-12-14T19:02:48.000Z
2020-12-06T16:56:33.000Z
source/torrent-trackers.ads
reznikmm/torrent
7b32dbab106a54846000409e79f853339b7ecd64
[ "MIT" ]
null
null
null
source/torrent-trackers.ads
reznikmm/torrent
7b32dbab106a54846000409e79f853339b7ecd64
[ "MIT" ]
null
null
null
-- Copyright (c) 2019 Maxim Reznik <[email protected]> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with League.IRIs; with League.Strings; package Torrent.Trackers is type Announcement_Kind is (Started, Completed, Stopped, Regular); function Event_URL (Tracker : League.IRIs.IRI; Info_Hash : SHA1; Peer_Id : SHA1; Port : Positive; Uploaded : Ada.Streams.Stream_Element_Count; Downloaded : Ada.Streams.Stream_Element_Count; Left : Ada.Streams.Stream_Element_Count; Event : Announcement_Kind) return League.IRIs.IRI; -- Construct an URL to request a tracker. type Response (<>) is tagged private; function Parse (Data : Ada.Streams.Stream_Element_Array) return Response; -- Decode tracker's response. Constraint_Error is raised if it fails. function Is_Failure (Self : Response'Class) return Boolean; -- If the query failed. function Failure_Reason (Self : Response'Class) return League.Strings.Universal_String; -- A human readable string which explains why the query failed. function Interval (Self : Response'Class) return Duration; -- The number of seconds the downloader should wait between regular -- rerequests. function Peer_Count (Self : Response'Class) return Natural; -- Length of peer lists. function Peer_Id (Self : Response'Class; Index : Positive) return SHA1; -- The peer's self-selected ID function Peer_Address (Self : Response'Class; Index : Positive) return League.Strings.Universal_String; -- The peer's IP address or DNS name. function Peer_Port (Self : Response'Class; Index : Positive) return Natural; -- The peer's port number. private type Peer is record Id : SHA1; Address : League.Strings.Universal_String; Port : Natural; end record; type Peer_Array is array (Positive range <>) of Peer; type Response (Peer_Count : Natural) is tagged record Is_Failure : Boolean; Failure_Reason : League.Strings.Universal_String; Interval : Duration; Peers : Peer_Array (1 .. Peer_Count); end record; end Torrent.Trackers;
29.75641
76
0.656183
4dae29b132d7c0e6e8a61d6a43a4526795f82ac4
2,548
adb
Ada
src/wi2wic-applications.adb
stcarrez/wi2wic
e0a93f50a9fd3c56cad147616e5814599d10855b
[ "Apache-2.0" ]
2
2020-09-26T16:42:03.000Z
2021-03-28T03:47:05.000Z
src/wi2wic-applications.adb
stcarrez/wi2wic
e0a93f50a9fd3c56cad147616e5814599d10855b
[ "Apache-2.0" ]
null
null
null
src/wi2wic-applications.adb
stcarrez/wi2wic
e0a93f50a9fd3c56cad147616e5814599d10855b
[ "Apache-2.0" ]
null
null
null
----------------------------------------------------------------------- -- wi2wic -- wi2wic applications -- Copyright (C) 2020 Stephane Carrez -- Written by Stephane Carrez ([email protected]) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in writing, software -- distributed under the License is distributed on an "AS IS" BASIS, -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. ----------------------------------------------------------------------- with Util.Log.Loggers; package body Wi2wic.Applications is Log : constant Util.Log.Loggers.Logger := Util.Log.Loggers.Create ("Wi2wic"); -- ------------------------------ -- Configures the REST application so that it is ready to handler REST -- operations as well as give access to the Swagger UI that describes them. -- ------------------------------ not overriding procedure Configure (App : in out Application_Type; Config : in Util.Properties.Manager'Class) is Cfg : Util.Properties.Manager; begin Log.Info ("Initializing application servlets..."); Cfg.Copy (Config); App.Set_Init_Parameters (Cfg); -- Register the servlets and filters App.Add_Servlet (Name => "api", Server => App.Api'Unchecked_Access); App.Add_Servlet (Name => "files", Server => App.Files'Unchecked_Access); App.Add_Filter (Name => "dump", Filter => App.Dump'Unchecked_Access); App.Add_Filter (Name => "measures", Filter => App.Measures'Unchecked_Access); App.Add_Filter (Name => "no-cache", Filter => App.No_Cache'Unchecked_Access); -- Define servlet mappings App.Add_Mapping (Name => "api", Pattern => "/*"); App.Add_Mapping (Name => "files", Pattern => "*.html"); App.Add_Mapping (Name => "files", Pattern => "*.js"); App.Add_Mapping (Name => "files", Pattern => "*.png"); App.Add_Mapping (Name => "files", Pattern => "*.css"); App.Add_Mapping (Name => "files", Pattern => "*.svg"); App.Add_Mapping (Name => "files", Pattern => "*.map"); App.Add_Mapping (Name => "files", Pattern => "*.jpg"); end Configure; end Wi2wic.Applications;
42.466667
84
0.604003
0bc2e06376e602c842605efd64ed3d84c1e31e0e
9,285
ads
Ada
src/arch/socs/stm32f439/soc-usart.ads
PThierry/ewok-kernel
e9c23cb3fd0afd8378bc27418778e1117d5e16cc
[ "Apache-2.0" ]
65
2018-09-26T09:10:11.000Z
2022-01-30T21:17:37.000Z
src/arch/socs/stm32f439/soc-usart.ads
PThierry/ewok-kernel
e9c23cb3fd0afd8378bc27418778e1117d5e16cc
[ "Apache-2.0" ]
22
2019-04-07T15:15:54.000Z
2020-10-15T12:45:54.000Z
src/arch/socs/stm32f439/soc-usart.ads
PThierry/ewok-kernel
e9c23cb3fd0afd8378bc27418778e1117d5e16cc
[ "Apache-2.0" ]
10
2018-09-27T09:43:08.000Z
2021-01-29T22:50:17.000Z
-- -- Copyright 2018 The wookey project team <[email protected]> -- - Ryad Benadjila -- - Arnauld Michelizza -- - Mathieu Renard -- - Philippe Thierry -- - Philippe Trebuchet -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in writing, software -- distributed under the License is distributed on an "AS IS" BASIS, -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. -- -- with system; package soc.usart with spark_mode => off is -------------------------------- -- Status register (USART_SR) -- -------------------------------- type t_USART_SR is record PE : boolean; -- Parity error FE : boolean; -- Framing error NF : boolean; -- Noise detected flag ORE : boolean; -- Overrun error IDLE : boolean; -- IDLE line detected RXNE : boolean; -- Read data register not empty TC : boolean; -- Transmission complete TXE : boolean; -- Transmit data register empty LBD : boolean; -- LIN break detection flag CTS : boolean; -- CTS flag end record with volatile_full_access, size => 32; for t_USART_SR use record PE at 0 range 0 .. 0; FE at 0 range 1 .. 1; NF at 0 range 2 .. 2; ORE at 0 range 3 .. 3; IDLE at 0 range 4 .. 4; RXNE at 0 range 5 .. 5; TC at 0 range 6 .. 6; TXE at 0 range 7 .. 7; LBD at 0 range 8 .. 8; CTS at 0 range 9 .. 9; end record; ------------------------------ -- Data register (USART_DR) -- ------------------------------ type t_USART_DR is new bits_9 with volatile_full_access, size => 32; ------------------------------------ -- Baud rate register (USART_BRR) -- ------------------------------------ type t_USART_BRR is record DIV_FRACTION : bits_4; DIV_MANTISSA : bits_12; end record with volatile_full_access, size => 32; for t_USART_BRR use record DIV_FRACTION at 0 range 0 .. 3; DIV_MANTISSA at 0 range 4 .. 15; end record; ------------------------------------ -- Control register 1 (USART_CR1) -- ------------------------------------ type t_parity is (PARITY_EVEN, PARITY_ODD) with size => 1; for t_parity use (PARITY_EVEN => 0, PARITY_ODD => 1); type t_data_len is (DATA_8BITS, DATA_9BITS) with size => 1; for t_data_len use (DATA_8BITS => 0, DATA_9BITS => 1); type t_USART_CR1 is record SBK : boolean; -- Send break RWU : boolean; -- Receiver wakeup RE : boolean; -- Receiver enable TE : boolean; -- Transmitter enable IDLEIE : boolean; -- IDLE interrupt enable RXNEIE : boolean; -- RXNE interrupt enable TCIE : boolean; -- Transmission complete interrupt enable TXEIE : boolean; -- TXE interrupt enable PEIE : boolean; -- PE interrupt enable PS : t_parity; -- Parity selection PCE : boolean; -- Parity control enable WAKE : boolean; -- Wakeup method M : t_data_len; -- Word length UE : boolean; -- USART enable reserved_14_14 : bit; OVER8 : boolean; -- Oversampling mode end record with volatile_full_access, size => 32; for t_USART_CR1 use record SBK at 0 range 0 .. 0; RWU at 0 range 1 .. 1; RE at 0 range 2 .. 2; TE at 0 range 3 .. 3; IDLEIE at 0 range 4 .. 4; RXNEIE at 0 range 5 .. 5; TCIE at 0 range 6 .. 6; TXEIE at 0 range 7 .. 7; PEIE at 0 range 8 .. 8; PS at 0 range 9 .. 9; PCE at 0 range 10 .. 10; WAKE at 0 range 11 .. 11; M at 0 range 12 .. 12; UE at 0 range 13 .. 13; Reserved_14_14 at 0 range 14 .. 14; OVER8 at 0 range 15 .. 15; end record; ------------------------------------ -- Control register 2 (USART_CR2) -- ------------------------------------ type t_stop_bits is (STOP_1, STOP_0_dot_5, STOP_2, STOP_1_dot_5) with size => 2; for t_stop_bits use (STOP_1 => 2#00#, STOP_0_dot_5 => 2#01#, STOP_2 => 2#10#, STOP_1_dot_5 => 2#11#); type t_USART_CR2 is record ADD : bits_4; -- Address of the USART node reserved_4_4 : bit; LBDL : boolean; -- lin break detection length LBDIE : boolean; -- LIN break detection interrupt enable reserved_7_7 : bit; LBCL : boolean; -- Last bit clock pulse CPHA : boolean; -- Clock phase CPOL : boolean; -- Clock polarity CLKEN : boolean; -- Clock enable STOP : t_stop_bits; -- STOP bits LINEN : boolean; -- LIN mode enable end record with volatile_full_access, size => 32; for t_USART_CR2 use record ADD at 0 range 0 .. 3; reserved_4_4 at 0 range 4 .. 4; LBDL at 0 range 5 .. 5; LBDIE at 0 range 6 .. 6; reserved_7_7 at 0 range 7 .. 7; LBCL at 0 range 8 .. 8; CPHA at 0 range 9 .. 9; CPOL at 0 range 10 .. 10; CLKEN at 0 range 11 .. 11; STOP at 0 range 12 .. 13; LINEN at 0 range 14 .. 14; end record; ------------------------------------ -- Control register 3 (USART_CR3) -- ------------------------------------ type t_USART_CR3 is record EIE : boolean; -- Error interrupt enable IREN : boolean; -- IrDA mode enable IRLP : boolean; -- IrDA low-power HDSEL : boolean; -- Half-duplex selection NACK : boolean; -- Smartcard NACK enable SCEN : boolean; -- Smartcard mode enable DMAR : boolean; -- DMA enable receiver DMAT : boolean; -- DMA enable transmitter RTSE : boolean; -- RTS enable CTSE : boolean; -- CTS enable CTSIE : boolean; -- CTS interrupt enable ONEBIT : boolean; -- One sample bit method enable end record with volatile_full_access, size => 32; for t_USART_CR3 use record EIE at 0 range 0 .. 0; IREN at 0 range 1 .. 1; IRLP at 0 range 2 .. 2; HDSEL at 0 range 3 .. 3; NACK at 0 range 4 .. 4; SCEN at 0 range 5 .. 5; DMAR at 0 range 6 .. 6; DMAT at 0 range 7 .. 7; RTSE at 0 range 8 .. 8; CTSE at 0 range 9 .. 9; CTSIE at 0 range 10 .. 10; ONEBIT at 0 range 11 .. 11; end record; ---------------------------------------------------- -- Guard time and prescaler register (USART_GTPR) -- ---------------------------------------------------- type t_USART_GTPR is record PSC : unsigned_8; -- Prescaler value GT : unsigned_8; -- Guard time value end record with volatile_full_access, size => 32; for t_USART_GTPR use record PSC at 0 range 0 .. 7; GT at 0 range 8 .. 15; end record; ---------------------- -- USART peripheral -- ---------------------- type t_USART_peripheral is record SR : t_USART_SR; DR : t_USART_DR; BRR : t_USART_BRR; CR1 : t_USART_CR1; CR2 : t_USART_CR2; CR3 : t_USART_CR3; GTPR : t_USART_GTPR; end record with volatile; for t_USART_peripheral use record SR at 16#00# range 0 .. 31; DR at 16#04# range 0 .. 31; BRR at 16#08# range 0 .. 31; CR1 at 16#0C# range 0 .. 31; CR2 at 16#10# range 0 .. 31; CR3 at 16#14# range 0 .. 31; GTPR at 16#18# range 0 .. 31; end record; type t_USART_peripheral_access is access all t_USART_peripheral; USART1 : aliased t_USART_peripheral with import, volatile, address => system'to_address(16#4001_1000#); USART6 : aliased t_USART_peripheral with import, volatile, address => system'to_address(16#4001_1400#); UART4 : aliased t_USART_peripheral with import, volatile, address => system'to_address(16#4000_4C00#); procedure set_baudrate (usart : in t_USART_peripheral_access; baudrate : in unsigned_32); procedure transmit (usart : in t_USART_peripheral_access; data : in t_USART_DR); procedure receive (usart : in t_USART_peripheral_access; data : out t_USART_DR); end soc.usart;
32.578947
81
0.506085
50d1d9639b01bbe3c9c8b0517e894337176be2d3
16,455
ads
Ada
source/asis/spec/ada-strings-wide_wide_bounded.ads
faelys/gela-asis
48a3bee90eda9f0c9d958b4e3c80a5a9b1c65253
[ "BSD-3-Clause" ]
4
2016-02-05T15:51:56.000Z
2022-03-25T20:38:32.000Z
source/asis/spec/ada-strings-wide_wide_bounded.ads
faelys/gela-asis
48a3bee90eda9f0c9d958b4e3c80a5a9b1c65253
[ "BSD-3-Clause" ]
null
null
null
source/asis/spec/ada-strings-wide_wide_bounded.ads
faelys/gela-asis
48a3bee90eda9f0c9d958b4e3c80a5a9b1c65253
[ "BSD-3-Clause" ]
null
null
null
------------------------------------------------------------------------------ -- A d a r u n - t i m e s p e c i f i c a t i o n -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- - - - - - - - - - - - - - - - -- -- Read copyright and license at the end of ada.ads file -- ------------------------------------------------------------------------------ -- $Revision: 209 $ $Date: 2013-11-30 21:03:24 +0200 (Сб., 30 нояб. 2013) $ with Ada.Strings.Wide_Wide_Maps; package Ada.Strings.Wide_Wide_Bounded is pragma Preelaborate (Wide_Wide_Bounded); generic Max : Positive; -- Maximum length of a Bounded_Wide_Wide_String package Generic_Bounded_Length is Max_Length : constant Positive := Max; type Bounded_Wide_Wide_String is private; Null_Bounded_Wide_Wide_String : constant Bounded_Wide_Wide_String; subtype Length_Range is Natural range 0 .. Max_Length; function Length (Source : in Bounded_Wide_Wide_String) return Length_Range; -- Conversion, Concatenation, and Selection functions function To_Bounded_Wide_Wide_String (Source : in Wide_Wide_String; Drop : in Truncation := Error) return Bounded_Wide_Wide_String; function To_Wide_Wide_String (Source : in Bounded_Wide_Wide_String) return Wide_Wide_String; procedure Set_Bounded_Wide_Wide_String (Target : out Bounded_Wide_Wide_String; Source : in Wide_Wide_String; Drop : in Truncation := Error); function Append (Left, Right : in Bounded_Wide_Wide_String; Drop : in Truncation := Error) return Bounded_Wide_Wide_String; function Append (Left : in Bounded_Wide_Wide_String; Right : in Wide_Wide_String; Drop : in Truncation := Error) return Bounded_Wide_Wide_String; function Append (Left : in Wide_Wide_String; Right : in Bounded_Wide_Wide_String; Drop : in Truncation := Error) return Bounded_Wide_Wide_String; function Append (Left : in Bounded_Wide_Wide_String; Right : in Wide_Wide_Character; Drop : in Truncation := Error) return Bounded_Wide_Wide_String; function Append (Left : in Wide_Wide_Character; Right : in Bounded_Wide_Wide_String; Drop : in Truncation := Error) return Bounded_Wide_Wide_String; procedure Append (Source : in out Bounded_Wide_Wide_String; New_Item : in Bounded_Wide_Wide_String; Drop : in Truncation := Error); procedure Append (Source : in out Bounded_Wide_Wide_String; New_Item : in Wide_Wide_String; Drop : in Truncation := Error); procedure Append (Source : in out Bounded_Wide_Wide_String; New_Item : in Wide_Wide_Character; Drop : in Truncation := Error); function "&" (Left, Right : in Bounded_Wide_Wide_String) return Bounded_Wide_Wide_String; function "&" (Left : in Bounded_Wide_Wide_String; Right : in Wide_Wide_String) return Bounded_Wide_Wide_String; function "&" (Left : in Wide_Wide_String; Right : in Bounded_Wide_Wide_String) return Bounded_Wide_Wide_String; function "&" (Left : in Bounded_Wide_Wide_String; Right : in Wide_Wide_Character) return Bounded_Wide_Wide_String; function "&" (Left : in Wide_Wide_Character; Right : in Bounded_Wide_Wide_String) return Bounded_Wide_Wide_String; function Element (Source : in Bounded_Wide_Wide_String; Index : in Positive) return Wide_Wide_Character; procedure Replace_Element (Source : in out Bounded_Wide_Wide_String; Index : in Positive; By : in Wide_Wide_Character); function Slice (Source : in Bounded_Wide_Wide_String; Low : in Positive; High : in Natural) return Wide_Wide_String; function Bounded_Slice (Source : in Bounded_Wide_Wide_String; Low : in Positive; High : in Natural) return Bounded_Wide_Wide_String; procedure Bounded_Slice (Source : in Bounded_Wide_Wide_String; Target : out Bounded_Wide_Wide_String; Low : in Positive; High : in Natural); function "=" (Left, Right : in Bounded_Wide_Wide_String) return Boolean; function "=" (Left : in Bounded_Wide_Wide_String; Right : in Wide_Wide_String) return Boolean; function "=" (Left : in Wide_Wide_String; Right : in Bounded_Wide_Wide_String) return Boolean; function "<" (Left, Right : in Bounded_Wide_Wide_String) return Boolean; function "<" (Left : in Bounded_Wide_Wide_String; Right : in Wide_Wide_String) return Boolean; function "<" (Left : in Wide_Wide_String; Right : in Bounded_Wide_Wide_String) return Boolean; function "<=" (Left, Right : in Bounded_Wide_Wide_String) return Boolean; function "<=" (Left : in Bounded_Wide_Wide_String; Right : in Wide_Wide_String) return Boolean; function "<=" (Left : in Wide_Wide_String; Right : in Bounded_Wide_Wide_String) return Boolean; function ">" (Left, Right : in Bounded_Wide_Wide_String) return Boolean; function ">" (Left : in Bounded_Wide_Wide_String; Right : in Wide_Wide_String) return Boolean; function ">" (Left : in Wide_Wide_String; Right : in Bounded_Wide_Wide_String) return Boolean; function ">=" (Left, Right : in Bounded_Wide_Wide_String) return Boolean; function ">=" (Left : in Bounded_Wide_Wide_String; Right : in Wide_Wide_String) return Boolean; function ">=" (Left : in Wide_Wide_String; Right : in Bounded_Wide_Wide_String) return Boolean; -- Search subprograms function Index (Source : in Bounded_Wide_Wide_String; Pattern : in Wide_Wide_String; From : in Positive; Going : in Direction := Forward; Mapping : in Wide_Wide_Maps.Wide_Wide_Character_Mapping := Wide_Wide_Maps.Identity) return Natural; function Index (Source : in Bounded_Wide_Wide_String; Pattern : in Wide_Wide_String; From : in Positive; Going : in Direction := Forward; Mapping : in Wide_Wide_Maps.Wide_Wide_Character_Mapping_Function) return Natural; function Index (Source : in Bounded_Wide_Wide_String; Pattern : in Wide_Wide_String; Going : in Direction := Forward; Mapping : in Wide_Wide_Maps.Wide_Wide_Character_Mapping := Wide_Wide_Maps.Identity) return Natural; function Index (Source : in Bounded_Wide_Wide_String; Pattern : in Wide_Wide_String; Going : in Direction := Forward; Mapping : in Wide_Wide_Maps.Wide_Wide_Character_Mapping_Function) return Natural; function Index (Source : in Bounded_Wide_Wide_String; Set : in Wide_Wide_Maps.Wide_Wide_Character_Set; From : in Positive; Test : in Membership := Inside; Going : in Direction := Forward) return Natural; function Index (Source : in Bounded_Wide_Wide_String; Set : in Wide_Wide_Maps.Wide_Wide_Character_Set; Test : in Membership := Inside; Going : in Direction := Forward) return Natural; function Index_Non_Blank (Source : in Bounded_Wide_Wide_String; From : in Positive; Going : in Direction := Forward) return Natural; function Index_Non_Blank (Source : in Bounded_Wide_Wide_String; Going : in Direction := Forward) return Natural; function Count (Source : in Bounded_Wide_Wide_String; Pattern : in Wide_Wide_String; Mapping : in Wide_Wide_Maps.Wide_Wide_Character_Mapping := Wide_Wide_Maps.Identity) return Natural; function Count (Source : in Bounded_Wide_Wide_String; Pattern : in Wide_Wide_String; Mapping : in Wide_Wide_Maps.Wide_Wide_Character_Mapping_Function) return Natural; function Count (Source : in Bounded_Wide_Wide_String; Set : in Wide_Wide_Maps.Wide_Wide_Character_Set) return Natural; procedure Find_Token (Source : in Bounded_Wide_Wide_String; Set : in Wide_Wide_Maps.Wide_Wide_Character_Set; Test : in Membership; First : out Positive; Last : out Natural); -- Wide_Wide_String translation subprograms function Translate (Source : in Bounded_Wide_Wide_String; Mapping : in Wide_Wide_Maps.Wide_Wide_Character_Mapping) return Bounded_Wide_Wide_String; procedure Translate (Source : in out Bounded_Wide_Wide_String; Mapping : in Wide_Wide_Maps.Wide_Wide_Character_Mapping); function Translate (Source : in Bounded_Wide_Wide_String; Mapping : in Wide_Wide_Maps.Wide_Wide_Character_Mapping_Function) return Bounded_Wide_Wide_String; procedure Translate (Source : in out Bounded_Wide_Wide_String; Mapping : in Wide_Wide_Maps.Wide_Wide_Character_Mapping_Function); -- Wide_Wide_String transformation subprograms function Replace_Slice (Source : in Bounded_Wide_Wide_String; Low : in Positive; High : in Natural; By : in Wide_Wide_String; Drop : in Truncation := Error) return Bounded_Wide_Wide_String; procedure Replace_Slice (Source : in out Bounded_Wide_Wide_String; Low : in Positive; High : in Natural; By : in Wide_Wide_String; Drop : in Truncation := Error); function Insert (Source : in Bounded_Wide_Wide_String; Before : in Positive; New_Item : in Wide_Wide_String; Drop : in Truncation := Error) return Bounded_Wide_Wide_String; procedure Insert (Source : in out Bounded_Wide_Wide_String; Before : in Positive; New_Item : in Wide_Wide_String; Drop : in Truncation := Error); function Overwrite (Source : in Bounded_Wide_Wide_String; Position : in Positive; New_Item : in Wide_Wide_String; Drop : in Truncation := Error) return Bounded_Wide_Wide_String; procedure Overwrite (Source : in out Bounded_Wide_Wide_String; Position : in Positive; New_Item : in Wide_Wide_String; Drop : in Truncation := Error); function Delete (Source : in Bounded_Wide_Wide_String; From : in Positive; Through : in Natural) return Bounded_Wide_Wide_String; procedure Delete (Source : in out Bounded_Wide_Wide_String; From : in Positive; Through : in Natural); -- Wide_Wide_String selector subprograms function Trim (Source : in Bounded_Wide_Wide_String; Side : in Trim_End) return Bounded_Wide_Wide_String; procedure Trim (Source : in out Bounded_Wide_Wide_String; Side : in Trim_End); function Trim (Source : in Bounded_Wide_Wide_String; Left : in Wide_Wide_Maps.Wide_Wide_Character_Set; Right : in Wide_Wide_Maps.Wide_Wide_Character_Set) return Bounded_Wide_Wide_String; procedure Trim (Source : in out Bounded_Wide_Wide_String; Left : in Wide_Wide_Maps.Wide_Wide_Character_Set; Right : in Wide_Wide_Maps.Wide_Wide_Character_Set); function Head (Source : in Bounded_Wide_Wide_String; Count : in Natural; Pad : in Wide_Wide_Character := Wide_Wide_Space; Drop : in Truncation := Error) return Bounded_Wide_Wide_String; procedure Head (Source : in out Bounded_Wide_Wide_String; Count : in Natural; Pad : in Wide_Wide_Character := Wide_Wide_Space; Drop : in Truncation := Error); function Tail (Source : in Bounded_Wide_Wide_String; Count : in Natural; Pad : in Wide_Wide_Character := Wide_Wide_Space; Drop : in Truncation := Error) return Bounded_Wide_Wide_String; procedure Tail (Source : in out Bounded_Wide_Wide_String; Count : in Natural; Pad : in Wide_Wide_Character := Wide_Wide_Space; Drop : in Truncation := Error); -- Wide_Wide_String constructor subprograms function "*" (Left : in Natural; Right : in Wide_Wide_Character) return Bounded_Wide_Wide_String; function "*" (Left : in Natural; Right : in Wide_Wide_String) return Bounded_Wide_Wide_String; function "*" (Left : in Natural; Right : in Bounded_Wide_Wide_String) return Bounded_Wide_Wide_String; function Replicate (Count : in Natural; Item : in Wide_Wide_Character; Drop : in Truncation := Error) return Bounded_Wide_Wide_String; function Replicate (Count : in Natural; Item : in Wide_Wide_String; Drop : in Truncation := Error) return Bounded_Wide_Wide_String; function Replicate (Count : in Natural; Item : in Bounded_Wide_Wide_String; Drop : in Truncation := Error) return Bounded_Wide_Wide_String; private type Bounded_Wide_Wide_String is null record; Null_Bounded_Wide_Wide_String : constant Bounded_Wide_Wide_String := (null record); end Generic_Bounded_Length; end Ada.Strings.Wide_Wide_Bounded;
41.658228
79
0.539897
0b3670842d919ac78feab3b7671db23d4660ab24
8,981
ada
Ada
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c6/c64106d.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/c6/c64106d.ada
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
null
null
null
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c6/c64106d.ada
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
2
2020-07-27T00:22:36.000Z
2021-04-01T09:41:02.000Z
-- C64106D.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 ASSIGNMENTS TO FORMAL PARAMETERS OF UNCONSTRAINED -- RECORD, PRIVATE, AND LIMITED PRIVATE TYPES WITH DEFAULT -- CONSTRAINTS DO NOT RAISE CONSTRAINT_ERROR IF THE ACTUAL PARAMETER -- IS UNCONSTRAINED, EVEN IF THE CONSTRAINT VALUES OF THE OBJECT -- BEING ASSIGNED ARE DIFFERENT THAN THOSE OF THE ACTUAL PARAMETER. -- SUBTESTS ARE: -- (A) UNCONSTRAINED ACTUAL PARAMETERS OF RECORD TYPE. -- (B) UNCONSTRAINED ACTUAL PARAMETERS OF PRIVATE TYPE. -- (C) UNCONSTRAINED ACTUAL PARAMETERS OF LIMITED PRIVATE TYPE. -- JRK 4/16/81 -- CPP 8/9/84 -- JRK 11/28/84 WITH REPORT; PROCEDURE C64106D IS USE REPORT; BEGIN TEST ("C64106D", "CHECK ASSIGNMENTS TO FORMAL PARAMETERS OF " & "UNCONSTRAINED TYPES WITH UNCONSTRAINED " & "ACTUAL PARAMETERS"); -------------------------------------------------- DECLARE -- (A) PACKAGE PKG IS SUBTYPE INTRANGE IS INTEGER RANGE 0..31; TYPE RECTYPE (CONSTRAINT : INTRANGE := 15) IS RECORD INTFLD : INTRANGE; STRFLD : STRING(1..CONSTRAINT); END RECORD; PROCEDURE P (REC1 : IN RECTYPE; REC2 : IN OUT RECTYPE; REC3 : OUT RECTYPE); END PKG; REC91, REC92, REC93 : PKG.RECTYPE := (IDENT_INT(5), 5, IDENT_STR("12345")); REC_OOPS : PKG.RECTYPE; PACKAGE BODY PKG IS PROCEDURE P (REC1 : IN RECTYPE; REC2 : IN OUT RECTYPE; REC3 : OUT RECTYPE) IS PROCEDURE P1 (REC11 : IN RECTYPE; REC12 : IN OUT RECTYPE; REC13 : OUT RECTYPE) IS BEGIN IF NOT REC11'CONSTRAINED THEN FAILED ("REC11 IS NOT CONSTRAINED - A.1"); END IF; IF REC11.CONSTRAINT /= IDENT_INT(9) THEN FAILED ("REC11 CONSTRAINT IS NOT 9 " & "- A.1"); END IF; BEGIN -- ASSIGNMENT TO IN OUT PARAMETER REC12 := REC_OOPS; EXCEPTION WHEN OTHERS => FAILED ("EXCEPTION RAISED - A.1"); END; BEGIN -- ASSIGNMENT TO OUT PARAMETER REC13 := REC_OOPS; EXCEPTION WHEN OTHERS => FAILED ("EXCEPTION RAISED - A.2"); END; END P1; BEGIN P1 (REC1, REC2, REC3); END P; BEGIN REC91 := (9, 9, "123456789"); REC92 := REC91; REC93 := REC91; REC_OOPS := (4, 4, "OOPS"); END PKG; USE PKG; BEGIN -- (A) PKG.P (REC91, REC92, REC93); IF (REC92 /= REC_OOPS) OR (REC93 /= REC_OOPS) THEN FAILED ("RESULTANT VALUE OF REC92 OR REC93 INCORRECT"); END IF; END; -- (A) -------------------------------------------------- DECLARE -- (B) PACKAGE PKG IS SUBTYPE INTRANGE IS INTEGER RANGE 0..31; TYPE RECTYPE (CONSTRAINT : INTRANGE := 15) IS PRIVATE; PROCEDURE P (REC1 : IN RECTYPE; REC2 : IN OUT RECTYPE; REC3 : OUT RECTYPE); PRIVATE TYPE RECTYPE (CONSTRAINT : INTRANGE := 15) IS RECORD INTFLD : INTRANGE; STRFLD : STRING(1..CONSTRAINT); END RECORD; END PKG; REC91, REC92, REC93 : PKG.RECTYPE; REC_OOPS : PKG.RECTYPE; PACKAGE BODY PKG IS PROCEDURE P (REC1 : IN RECTYPE; REC2 : IN OUT RECTYPE; REC3 : OUT RECTYPE) IS PROCEDURE P1 (REC11 : IN RECTYPE; REC12 : IN OUT RECTYPE; REC13 : OUT RECTYPE) IS BEGIN IF REC3'CONSTRAINED THEN FAILED ("REC3 IS CONSTRAINED - B.1"); END IF; BEGIN -- ASSIGNMENT TO IN OUT PARAMETER REC12 := REC_OOPS; EXCEPTION WHEN OTHERS => FAILED ("EXCEPTION RAISED - B.1"); END; BEGIN -- ASSIGNMENT TO OUT PARAMETER REC13 := REC_OOPS; EXCEPTION WHEN OTHERS => FAILED ("EXCEPTION RAISED - B.2"); END; END P1; BEGIN P1 (REC1, REC2, REC3); END P; BEGIN REC91 := (9, 9, "123456789"); REC92 := REC91; REC93 := REC91; REC_OOPS := (4, 4, "OOPS"); END PKG; BEGIN -- (B) PKG.P (REC91, REC92, REC93); END; -- (B) -------------------------------------------------- DECLARE -- (C) PACKAGE PKG IS SUBTYPE INTRANGE IS INTEGER RANGE 0..31; TYPE RECTYPE (CONSTRAINT : INTRANGE := 15) IS LIMITED PRIVATE; PROCEDURE P (REC1 : IN RECTYPE; REC2 : IN OUT RECTYPE; REC3 : OUT RECTYPE); PRIVATE TYPE RECTYPE (CONSTRAINT : INTRANGE := 15) IS RECORD INTFLD : INTRANGE; STRFLD : STRING(1..CONSTRAINT); END RECORD; END PKG; REC91, REC92, REC93 : PKG.RECTYPE; REC_OOPS : PKG.RECTYPE; PACKAGE BODY PKG IS PROCEDURE P (REC1 : IN RECTYPE; REC2 : IN OUT RECTYPE; REC3 : OUT RECTYPE) IS PROCEDURE P1 (REC11 : IN RECTYPE; REC12 : IN OUT RECTYPE; REC13 : OUT RECTYPE) IS BEGIN BEGIN -- ASSIGNMENT TO IN OUT PARAMETER REC12 := REC_OOPS; EXCEPTION WHEN OTHERS => FAILED ("EXCEPTION RAISED - C.1"); END; BEGIN -- ASSIGNMENT TO OUT PARAMETER REC13 := REC_OOPS; EXCEPTION WHEN OTHERS => FAILED ("EXCEPTION RAISED - C.2"); END; END P1; BEGIN P1 (REC1, REC2, REC3); END P; BEGIN REC91 := (9, 9, "123456789"); REC92 := REC91; REC93 := REC91; REC_OOPS := (4, 4, "OOPS"); END PKG; BEGIN -- (C) PKG.P (REC91, REC92, REC93); END; -- (C) -------------------------------------------------- RESULT; END C64106D;
31.960854
79
0.42679
50c992d32fa877108af5173f2106e8c68ed2802e
4,316
ads
Ada
support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/g-regexp.ads
orb-zhuchen/Orb
6da2404b949ac28bde786e08bf4debe4a27cd3a0
[ "CNRI-Python-GPL-Compatible", "MIT" ]
null
null
null
support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/g-regexp.ads
orb-zhuchen/Orb
6da2404b949ac28bde786e08bf4debe4a27cd3a0
[ "CNRI-Python-GPL-Compatible", "MIT" ]
null
null
null
support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/g-regexp.ads
orb-zhuchen/Orb
6da2404b949ac28bde786e08bf4debe4a27cd3a0
[ "CNRI-Python-GPL-Compatible", "MIT" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- G N A T . R E G E X P -- -- -- -- S p e c -- -- -- -- Copyright (C) 1998-2019, AdaCore -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ -- Simple Regular expression matching -- This package provides a simple implementation of a regular expression -- pattern matching algorithm, using a subset of the syntax of regular -- expressions copied from familiar Unix style utilities. -- See file s-regexp.ads for full documentation of the interface ------------------------------------------------------------ -- Summary of Pattern Matching Packages in GNAT Hierarchy -- ------------------------------------------------------------ -- There are three related packages that perform pattern matching functions. -- the following is an outline of these packages, to help you determine -- which is best for your needs. -- GNAT.Regexp (files g-regexp.ads/s-regexp.ads/s-regexp.adb) -- This is a simple package providing Unix-style regular expression -- matching with the restriction that it matches entire strings. It -- is particularly useful for file name matching, and in particular -- it provides "globbing patterns" that are useful in implementing -- unix or DOS style wild card matching for file names. -- GNAT.Regpat (files g-regpat.ads/s-regpat.ads/g-regpat.adb) -- This is a more complete implementation of Unix-style regular -- expressions, copied from the original V7 style regular expression -- library written in C by Henry Spencer. It is functionally the -- same as this library, and uses the same internal data structures -- stored in a binary compatible manner. -- GNAT.Spitbol.Patterns (files g-spipat.ads/g-spipat.adb) -- This is a completely general pattern matching package based on the -- pattern language of SNOBOL4, as implemented in SPITBOL. The pattern -- language is modeled on context free grammars, with context sensitive -- extensions that provide full (type 0) computational capabilities. with System.Regexp; package GNAT.Regexp renames System.Regexp;
60.788732
78
0.506951
4d73a7b353533bfbe94c6381b6bb4c04fc8d81ed
161
ada
Ada
Task/Knuth-shuffle/Ada/knuth-shuffle-1.ada
mullikine/RosettaCodeData
4f0027c6ce83daa36118ee8b67915a13cd23ab67
[ "Info-ZIP" ]
1
2018-11-09T22:08:38.000Z
2018-11-09T22:08:38.000Z
Task/Knuth-shuffle/Ada/knuth-shuffle-1.ada
mullikine/RosettaCodeData
4f0027c6ce83daa36118ee8b67915a13cd23ab67
[ "Info-ZIP" ]
null
null
null
Task/Knuth-shuffle/Ada/knuth-shuffle-1.ada
mullikine/RosettaCodeData
4f0027c6ce83daa36118ee8b67915a13cd23ab67
[ "Info-ZIP" ]
1
2018-11-09T22:08:40.000Z
2018-11-09T22:08:40.000Z
generic type Element_Type is private; type Array_Type is array (Positive range <>) of Element_Type; procedure Generic_Shuffle (List : in out Array_Type);
26.833333
64
0.763975
1cb94eec4dfe4b52212e6523cb889baf5f09b2a0
9,413
adb
Ada
src/rejuvenation-finder.adb
TNO/Rejuvenation-Ada
8113ec28da3923ccde40d76cbab70e0e614f4b75
[ "BSD-3-Clause" ]
1
2022-03-08T13:00:47.000Z
2022-03-08T13:00:47.000Z
src/libraries/Rejuvenation_Lib/src/rejuvenation-finder.adb
selroc/Renaissance-Ada
39230b34aced4a9d83831be346ca103136c53715
[ "BSD-3-Clause" ]
null
null
null
src/libraries/Rejuvenation_Lib/src/rejuvenation-finder.adb
selroc/Renaissance-Ada
39230b34aced4a9d83831be346ca103136c53715
[ "BSD-3-Clause" ]
null
null
null
package body Rejuvenation.Finder is -- Public: Find Node_Kind -------- function Find (Node : Ada_Node'Class; Predicate : not null access function (Node : Ada_Node'Class) return Boolean) return Node_List.Vector is (Find_Predicate (Node, Predicate, Into)); function Find_Non_Contained (Node : Ada_Node'Class; Predicate : not null access function (Node : Ada_Node'Class) return Boolean) return Node_List.Vector is (Find_Predicate (Node, Predicate, Over)); function Find (Node : Ada_Node'Class; Node_Kind : Ada_Node_Kind_Type) return Node_List.Vector is function Predicate (Node : Ada_Node'Class) return Boolean; function Predicate (Node : Ada_Node'Class) return Boolean is begin return Node.Kind = Node_Kind; end Predicate; begin return Find_Predicate (Node, Predicate'Access, Into); end Find; function Find_Non_Contained (Node : Ada_Node'Class; Node_Kind : Ada_Node_Kind_Type) return Node_List.Vector is function Predicate (Node : Ada_Node'Class) return Boolean; function Predicate (Node : Ada_Node'Class) return Boolean is begin return Node.Kind = Node_Kind; end Predicate; begin return Find_Predicate (Node, Predicate'Access, Over); end Find_Non_Contained; function Find_First (Node : Ada_Node'Class; Node_Kind : Ada_Node_Kind_Type) return Ada_Node is function Predicate (Node : Ada_Node'Class) return Boolean; function Predicate (Node : Ada_Node'Class) return Boolean is begin return Node.Kind = Node_Kind; end Predicate; use Node_List; Results : constant Node_List.Vector := Find_Predicate (Node, Predicate'Access, Stop); begin return (if Results.Is_Empty then No_Ada_Node else Element (Results.First)); end Find_First; function Find_Sub_List (Node : Ada_Node'Class; Node_Kinds : Node_Kind_Type_Array) return Node_List_List.Vector is begin return Find_NK_Sub_List (Node, Node_Kinds); end Find_Sub_List; -- Public: Find Match_Pattern -------- function Find_Full (Node : Ada_Node'Class; Find_Pattern : Pattern) return Match_Pattern_List.Vector is begin return Find_MP (Node, Find_Pattern.As_Ada_Node, Into); end Find_Full; function Find_Non_Contained_Full (Node : Ada_Node'Class; Find_Pattern : Pattern) return Match_Pattern_List.Vector is begin return Find_MP (Node, Find_Pattern.As_Ada_Node, Over); end Find_Non_Contained_Full; function Find_First_Full (Node : Ada_Node'Class; Find_Pattern : Pattern; Result : out Match_Pattern) return Boolean is use Match_Pattern_List; Results : constant Match_Pattern_List.Vector := Find_MP (Node, Find_Pattern.As_Ada_Node, Stop); begin if Results.Is_Empty then return False; else Result := Element (Results.First); return True; end if; end Find_First_Full; function Find_Sub_List (Node : Ada_Node'Class; Find_Pattern : Pattern; Next : Containment) return Match_Pattern_List.Vector; function Find_Sub_List (Node : Ada_Node'Class; Find_Pattern : Pattern; Next : Containment) return Match_Pattern_List.Vector is Find_Node : constant Ada_Node := Find_Pattern.As_Ada_Node; begin if Find_Node.Kind in Ada_Ada_List then return Find_MP_Sub_List (Node, Find_Node.Children, Next); else raise Pattern_Is_No_List_Exception; end if; end Find_Sub_List; function Find_Sub_List (Node : Ada_Node'Class; Find_Pattern : Pattern) return Match_Pattern_List.Vector is (Find_Sub_List (Node, Find_Pattern, Contained)); function Find_Non_Contained_Sub_List (Node : Ada_Node'Class; Find_Pattern : Pattern) return Match_Pattern_List.Vector is (Find_Sub_List (Node, Find_Pattern, Non_Contained)); function Find_Full (Node : Ada_Node'Class; Find_Patterns : Pattern_Array) return Match_Pattern_List.Vector is Result : Match_Pattern_List.Vector; begin for Find_Pattern of Find_Patterns loop Result.Append (Find_Full (Node, Find_Pattern)); end loop; return Result; end Find_Full; -- Private -------- function Find_Predicate (Node : Ada_Node'Class; Predicate : not null access function (Node : Ada_Node'Class) return Boolean; Next : Visit_Status) return Node_List.Vector is Result : Node_List.Vector; function Visit (Node : Ada_Node'Class) return Visit_Status; function Visit (Node : Ada_Node'Class) return Visit_Status is begin if Predicate (Node) then Result.Append (Ada_Node (Node)); -- TODO: look up which was prefer Node.As_Ada_Node or this return Next; else return Into; end if; end Visit; begin Node.Traverse (Visit'Access); return Result; end Find_Predicate; function Find_MP (Node : Ada_Node'Class; Pattern : Ada_Node; Next : Visit_Status) return Match_Pattern_List.Vector is Result : Match_Pattern_List.Vector; function Visit (Node : Ada_Node'Class) return Visit_Status; function Visit (Node : Ada_Node'Class) return Visit_Status is MP : Match_Pattern; Success : constant Boolean := MP.Match_Full (Pattern, Ada_Node (Node)); begin if Success then Result.Append (MP); return Next; else return Into; end if; end Visit; begin Node.Traverse (Visit'Access); return Result; end Find_MP; function Find_NK_Sub_List (Node : Ada_Node'Class; Node_Kinds : Node_Kind_Type_Array) return Node_List_List.Vector is Result : Node_List_List.Vector; function Visit (Node : Ada_Node'Class) return Visit_Status; function Visit (Node : Ada_Node'Class) return Visit_Status is begin if Node.Kind in Ada_Ada_List then for Node_Index in Node.Children'First .. (Node.Children'Last - Node_Kinds'Last) loop declare Success : Boolean; Nodes : Node_List.Vector; begin Success := True; for Kind_Index in Node_Kinds'Range loop -- array range starts at 0 if Node.Child (Node_Index + Kind_Index).Kind = Node_Kinds (Kind_Index) then Nodes.Append (Node.Child (Node_Index + Kind_Index)); else Success := False; end if; end loop; if Success then Result.Append (Nodes); end if; end; end loop; end if; return Into; end Visit; begin Node.Traverse (Visit'Access); return Result; end Find_NK_Sub_List; function Find_MP_Sub_List (Node : Ada_Node'Class; Pattern : Ada_Node_Array; Next : Containment) return Match_Pattern_List.Vector -- Special cases: -- We do not allow matches to contain overlapping nodes -- E.g. When the pattern $S_Stmt1; $S_Stmt2; -- is used to find a sublist in the list of nodes "A; B; C; D;" -- We find "A; B;" and "C; D;" -- Hence "B; C;" is NOT found -- -- Non-Contained: -- Don't go into matches, but when no match go into! is Result : Match_Pattern_List.Vector; function Visit (Node : Ada_Node'Class) return Visit_Status; function Visit (Node : Ada_Node'Class) return Visit_Status is begin if Node.Kind in Ada_Ada_List then declare Upperbound : constant Integer := Node.Last_Child_Index - Pattern'Length + 1; -- last possible index / start position to fit the whole pattern -- into remaining tail of the list Skip : Natural := Node.First_Child_Index - 1; -- skip counter to prevent overlapping matches begin for Node_Index in Node.Children'Range loop if Node_Index > Skip and then Node_Index <= Upperbound then declare MP : Match_Pattern; Success : constant Boolean := MP.Match_Prefix (Pattern, Node.Children, Node_Index); begin if Success then Result.Append (MP); Skip := Node_Index + Pattern'Length - 1; end if; end; end if; -- Do we need to vist this node? if Next = Contained or else Node_Index > Skip then Node.Child (Node_Index).Traverse (Visit'Access); end if; end loop; return Over; end; end if; return Into; end Visit; begin Node.Traverse (Visit'Access); return Result; end Find_MP_Sub_List; end Rejuvenation.Finder;
31.908475
79
0.604164
12407e4062c6ab16404bb116d1130d87723dcbbf
1,486
ads
Ada
src/main/resources/project-templates/aws_web_server/src/@[email protected]
georgemackayshore/Ada-IntelliJ
581f87237a610b3142aed20358b955bdca807213
[ "Apache-2.0" ]
17
2018-10-03T21:31:03.000Z
2021-01-22T04:16:05.000Z
src/main/resources/project-templates/aws_web_server/src/@[email protected]
georgemackayshore/Ada-IntelliJ
581f87237a610b3142aed20358b955bdca807213
[ "Apache-2.0" ]
20
2018-11-01T21:17:09.000Z
2021-10-01T18:57:20.000Z
src/main/resources/project-templates/aws_web_server/src/@[email protected]
georgemackayshore/Ada-IntelliJ
581f87237a610b3142aed20358b955bdca807213
[ "Apache-2.0" ]
4
2020-04-14T15:02:37.000Z
2022-03-10T20:35:54.000Z
with AWS.Config; with AWS.Response; with AWS.Services.Dispatchers.URI; with AWS.Status; package @[email protected] is use AWS; procedure Initialize (Web_Config : in Config.Object); -- Initialize state in this package depending on the HTTP configuration. -- For example it sets the web root for all dispatchers. All resources -- (templates, images, CSS file...) will be searched under this root -- directory. ------------- -- Default -- ------------- type Default is new Services.Dispatchers.URI.Handler with private; -- Handle everything not covered by the other dispatchers (CSS, Image) overriding function Dispatch (Dispatcher : in Default; Request : in Status.Data) return Response.Data; --------- -- CSS -- --------- type CSS is new Services.Dispatchers.URI.Handler with private; overriding function Dispatch (Dispatcher : in CSS; Request : in Status.Data) return Response.Data; ----------- -- Image -- ----------- type Image is new Services.Dispatchers.URI.Handler with private; overriding function Dispatch (Dispatcher : in Image; Request : in Status.Data) return Response.Data; private type Default is new Services.Dispatchers.URI.Handler with null record; type CSS is new Services.Dispatchers.URI.Handler with null record; type Image is new Services.Dispatchers.URI.Handler with null record; end @[email protected];
26.070175
76
0.674966
122e90bbdec2ba19245b9e6ca42a0f24a4819cb1
2,794
ads
Ada
tools/scitools/conf/understand/ada/ada12/s-proinf.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/s-proinf.ads
brucegua/moocos
575c161cfa35e220f10d042e2e5ca18773691695
[ "Apache-2.0" ]
null
null
null
tools/scitools/conf/understand/ada/ada12/s-proinf.ads
brucegua/moocos
575c161cfa35e220f10d042e2e5ca18773691695
[ "Apache-2.0" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- S Y S T E M . P R O G R A M _ I N F O -- -- -- -- S p e c -- -- -- -- Copyright (C) 1996-2009, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- -- -- -- -- -- -- -- -- 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 definitions and routines used as parameters -- to the run-time system at program startup. package System.Program_Info is pragma Preelaborate; function Default_Task_Stack return Integer; -- The default stack size for each created thread. This default value -- can be overridden on a per-task basis by the language-defined -- Storage_Size pragma. end System.Program_Info;
63.5
78
0.367215
0ba6c07b040088129bfad191279b90d24812c302
4,396
ada
Ada
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c4/c48004b.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/c4/c48004b.ada
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
null
null
null
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c4/c48004b.ada
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
2
2020-07-27T00:22:36.000Z
2021-04-01T09:41:02.000Z
-- C48004B.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 FORM "NEW T" IS PERMITTED IF T IS A CONSTRAINED -- RECORD, PRIVATE, OR LIMITED PRIVATE TYPE. -- RM 01/12/80 -- JBG 03/03/83 -- EG 07/05/84 WITH REPORT; PROCEDURE C48004B IS USE REPORT; BEGIN TEST("C48004B","CHECK THAT THE FORM 'NEW T' IS PERMITTED IF " & "T IS A CONSTRAINED RECORD, PRIVATE, OR " & "LIMITED PRIVATE TYPE"); DECLARE TYPE TB0(A , B : INTEGER ) IS RECORD C : INTEGER := 7; END RECORD; SUBTYPE TB IS TB0( 2 , 3 ); TYPE ATB IS ACCESS TB0; VB : ATB; TYPE TBB0( A , B : INTEGER := 5 ) IS RECORD C : INTEGER := 6; END RECORD; SUBTYPE TBB IS TBB0( 4 , 5 ); TYPE ATBB IS ACCESS TBB0; VBB : ATBB; PACKAGE P IS TYPE PRIV0( A , B : INTEGER ) IS PRIVATE; TYPE LPRIV0( A , B : INTEGER := 1 ) IS LIMITED PRIVATE; FUNCTION FUN(LP : LPRIV0) RETURN INTEGER; PRIVATE TYPE PRIV0( A , B : INTEGER ) IS RECORD Q : INTEGER; END RECORD; TYPE LPRIV0( A , B : INTEGER := 1 ) IS RECORD Q : INTEGER := 7; END RECORD; END P; USE P; SUBTYPE PRIV IS P.PRIV0( 12 , 13 ); TYPE A_PRIV IS ACCESS P.PRIV0; VP : A_PRIV; TYPE A_LPRIV IS ACCESS LPRIV0; VLP : A_LPRIV; TYPE LCR(A, B : INTEGER := 4) IS RECORD C : P.LPRIV0; END RECORD; SUBTYPE SLCR IS LCR(1, 2); TYPE A_SLCR IS ACCESS SLCR; VSLCR : A_SLCR; PACKAGE BODY P IS FUNCTION FUN(LP : LPRIV0) RETURN INTEGER IS BEGIN RETURN LP.Q; END FUN; END P; BEGIN VB := NEW TB; IF ( VB.A /= IDENT_INT(2) OR VB.B /= 3 OR VB.C /= 7 ) THEN FAILED( "WRONG VALUES - B1" ); END IF; VBB := NEW TBB0; IF ( VBB.A /= IDENT_INT(5) OR VBB.B /= 5 OR VBB.C /= 6 ) THEN FAILED( "WRONG VALUES - B2" ); END IF; VP := NEW PRIV; IF ( VP.A /= IDENT_INT(12) OR VP.B /= 13 ) THEN FAILED( "WRONG VALUES - B3" ); END IF; VLP := NEW LPRIV0; IF ( VLP.A /= IDENT_INT(1) OR VLP.B /= 1 OR P.FUN(VLP.ALL) /= IDENT_INT(7) ) THEN FAILED( "WRONG VALUES - B4" ); END IF; VSLCR := NEW SLCR; IF ( VSLCR.A /= IDENT_INT(1) OR VSLCR.B /= IDENT_INT(2) OR P.FUN(VSLCR.C) /= IDENT_INT(7) ) THEN FAILED ("WRONG VALUES - B5"); END IF; END; RESULT; END C48004B;
31.177305
79
0.484759
df5e05eb237544b888e6f6f9b16a00a2be6b2899
145,807
adb
Ada
HLS/lab3/dct.prj/solution5/.autopilot/db/dct_1d.sched.adb
lfVelez/ISPR
840f41c2053a48642a7b287feecfea79c6f389b3
[ "MIT" ]
1
2021-03-03T16:53:52.000Z
2021-03-03T16:53:52.000Z
HLS/lab3/dct.prj/solution5/.autopilot/db/dct_1d.sched.adb
lfVelez/ISPR
840f41c2053a48642a7b287feecfea79c6f389b3
[ "MIT" ]
null
null
null
HLS/lab3/dct.prj/solution5/.autopilot/db/dct_1d.sched.adb
lfVelez/ISPR
840f41c2053a48642a7b287feecfea79c6f389b3
[ "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></userIPName> <cdfg class_id="1" tracking_level="1" version="0" object_id="_0"> <name>dct_1d</name> <ret_bitwidth>0</ret_bitwidth> <ports class_id="2" tracking_level="0" version="0"> <count>11</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>src</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></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>16</bitwidth> </Value> <direction>0</direction> <if_type>1</if_type> <array_size>8</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>src1</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>16</bitwidth> </Value> <direction>0</direction> <if_type>1</if_type> <array_size>8</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>src2</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>16</bitwidth> </Value> <direction>0</direction> <if_type>1</if_type> <array_size>8</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>src3</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>16</bitwidth> </Value> <direction>0</direction> <if_type>1</if_type> <array_size>8</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>src4</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>16</bitwidth> </Value> <direction>0</direction> <if_type>1</if_type> <array_size>8</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>src5</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>16</bitwidth> </Value> <direction>0</direction> <if_type>1</if_type> <array_size>8</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>src6</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>16</bitwidth> </Value> <direction>0</direction> <if_type>1</if_type> <array_size>8</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>src7</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>16</bitwidth> </Value> <direction>0</direction> <if_type>1</if_type> <array_size>8</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>tmp_6</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>4</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="_10"> <Value> <Obj> <type>1</type> <id>10</id> <name>dst</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>dst</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>16</bitwidth> </Value> <direction>1</direction> <if_type>1</if_type> <array_size>64</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>tmp_61</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>4</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> </ports> <nodes class_id="8" tracking_level="0" version="0"> <count>83</count> <item_version>0</item_version> <item class_id="9" tracking_level="1" version="0" object_id="_12"> <Value> <Obj> <type>0</type> <id>20</id> <name>tmp_61_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>4</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>113</item> <item>114</item> </oprand_edges> <opcode>read</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_13"> <Value> <Obj> <type>0</type> <id>21</id> <name>tmp_6_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>4</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>115</item> <item>116</item> </oprand_edges> <opcode>read</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_14"> <Value> <Obj> <type>0</type> <id>22</id> <name>tmp_12</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>7</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>118</item> <item>119</item> <item>121</item> </oprand_edges> <opcode>bitconcatenate</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_15"> <Value> <Obj> <type>0</type> <id>23</id> <name>tmp_20_cast</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>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>122</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_6_cast</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>64</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>123</item> </oprand_edges> <opcode>zext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_17"> <Value> <Obj> <type>0</type> <id>25</id> <name>src_addr</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>3</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>124</item> <item>126</item> <item>127</item> </oprand_edges> <opcode>getelementptr</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_18"> <Value> <Obj> <type>0</type> <id>26</id> <name>src1_addr</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>3</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>128</item> <item>129</item> <item>130</item> </oprand_edges> <opcode>getelementptr</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_19"> <Value> <Obj> <type>0</type> <id>27</id> <name>src2_addr</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>3</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>131</item> <item>132</item> <item>133</item> </oprand_edges> <opcode>getelementptr</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_20"> <Value> <Obj> <type>0</type> <id>28</id> <name>src3_addr</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>3</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>134</item> <item>135</item> <item>136</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>src4_addr</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>3</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>137</item> <item>138</item> <item>139</item> </oprand_edges> <opcode>getelementptr</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_22"> <Value> <Obj> <type>0</type> <id>30</id> <name>src5_addr</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>3</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>140</item> <item>141</item> <item>142</item> </oprand_edges> <opcode>getelementptr</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_23"> <Value> <Obj> <type>0</type> <id>31</id> <name>src6_addr</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>3</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>143</item> <item>144</item> <item>145</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>src7_addr</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>3</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>146</item> <item>147</item> <item>148</item> </oprand_edges> <opcode>getelementptr</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_25"> <Value> <Obj> <type>0</type> <id>33</id> <name></name> <fileName>dct.c</fileName> <fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory> <lineNumber>13</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item class_id="11" tracking_level="0" version="0"> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</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>dct.c</first> <second>dct_1d</second> </first> <second>13</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>149</item> </oprand_edges> <opcode>br</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_26"> <Value> <Obj> <type>0</type> <id>35</id> <name>k</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>k</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>4</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>151</item> <item>152</item> <item>153</item> <item>154</item> </oprand_edges> <opcode>phi</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_27"> <Value> <Obj> <type>0</type> <id>36</id> <name>tmp</name> <fileName>dct.c</fileName> <fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory> <lineNumber>13</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>13</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>155</item> <item>157</item> </oprand_edges> <opcode>icmp</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_28"> <Value> <Obj> <type>0</type> <id>37</id> <name>k_1</name> <fileName>dct.c</fileName> <fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory> <lineNumber>13</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>13</second> </item> </second> </item> </inlineStackInfo> <originalName>k</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>4</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>158</item> <item>160</item> </oprand_edges> <opcode>add</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_29"> <Value> <Obj> <type>0</type> <id>38</id> <name></name> <fileName>dct.c</fileName> <fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory> <lineNumber>13</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>13</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>161</item> <item>162</item> <item>163</item> </oprand_edges> <opcode>br</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_30"> <Value> <Obj> <type>0</type> <id>44</id> <name>tmp_s</name> <fileName>dct.c</fileName> <fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>64</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>164</item> </oprand_edges> <opcode>zext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_31"> <Value> <Obj> <type>0</type> <id>45</id> <name>tmp_cast</name> <fileName>dct.c</fileName> <fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory> <lineNumber>19</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>19</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>165</item> </oprand_edges> <opcode>zext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_32"> <Value> <Obj> <type>0</type> <id>46</id> <name>tmp_13</name> <fileName>dct.c</fileName> <fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory> <lineNumber>19</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>19</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>166</item> <item>167</item> </oprand_edges> <opcode>add</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_33"> <Value> <Obj> <type>0</type> <id>47</id> <name>tmp_21_cast</name> <fileName>dct.c</fileName> <fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory> <lineNumber>19</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>19</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>64</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>168</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>48</id> <name>dst_addr</name> <fileName>dct.c</fileName> <fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory> <lineNumber>19</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>19</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>6</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>169</item> <item>170</item> <item>171</item> </oprand_edges> <opcode>getelementptr</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_35"> <Value> <Obj> <type>0</type> <id>49</id> <name>dct_coeff_table_0_ad</name> <fileName>dct.c</fileName> <fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>3</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>172</item> <item>173</item> <item>174</item> </oprand_edges> <opcode>getelementptr</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_36"> <Value> <Obj> <type>0</type> <id>50</id> <name>dct_coeff_table_0_lo</name> <fileName>dct.c</fileName> <fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>14</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>175</item> </oprand_edges> <opcode>load</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_37"> <Value> <Obj> <type>0</type> <id>51</id> <name>coeff_cast</name> <fileName>dct.c</fileName> <fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>29</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>176</item> </oprand_edges> <opcode>zext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_38"> <Value> <Obj> <type>0</type> <id>52</id> <name>src_load</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>16</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>177</item> </oprand_edges> <opcode>load</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_39"> <Value> <Obj> <type>0</type> <id>53</id> <name>tmp_171_cast</name> <fileName>dct.c</fileName> <fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory> <lineNumber>17</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>17</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>29</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>178</item> </oprand_edges> <opcode>sext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_40"> <Value> <Obj> <type>0</type> <id>54</id> <name>tmp_4</name> <fileName>dct.c</fileName> <fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory> <lineNumber>17</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>17</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>29</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>179</item> <item>180</item> </oprand_edges> <opcode>mul</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_41"> <Value> <Obj> <type>0</type> <id>55</id> <name>dct_coeff_table_1_ad</name> <fileName>dct.c</fileName> <fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>3</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>181</item> <item>182</item> <item>183</item> </oprand_edges> <opcode>getelementptr</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_42"> <Value> <Obj> <type>0</type> <id>56</id> <name>dct_coeff_table_1_lo</name> <fileName>dct.c</fileName> <fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>15</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>184</item> </oprand_edges> <opcode>load</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_43"> <Value> <Obj> <type>0</type> <id>57</id> <name>coeff_1_cast</name> <fileName>dct.c</fileName> <fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>29</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>185</item> </oprand_edges> <opcode>sext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_44"> <Value> <Obj> <type>0</type> <id>58</id> <name>src1_load</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>16</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>186</item> </oprand_edges> <opcode>load</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_45"> <Value> <Obj> <type>0</type> <id>59</id> <name>tmp_17_1_cast</name> <fileName>dct.c</fileName> <fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory> <lineNumber>17</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>17</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>29</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>187</item> </oprand_edges> <opcode>sext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_46"> <Value> <Obj> <type>0</type> <id>60</id> <name>tmp_18_1</name> <fileName>dct.c</fileName> <fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory> <lineNumber>17</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>17</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>29</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>188</item> <item>189</item> </oprand_edges> <opcode>mul</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_47"> <Value> <Obj> <type>0</type> <id>61</id> <name>dct_coeff_table_2_ad</name> <fileName>dct.c</fileName> <fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>3</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>190</item> <item>191</item> <item>192</item> </oprand_edges> <opcode>getelementptr</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_48"> <Value> <Obj> <type>0</type> <id>62</id> <name>dct_coeff_table_2_lo</name> <fileName>dct.c</fileName> <fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>15</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>193</item> </oprand_edges> <opcode>load</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_49"> <Value> <Obj> <type>0</type> <id>63</id> <name>coeff_2_cast</name> <fileName>dct.c</fileName> <fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>29</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>194</item> </oprand_edges> <opcode>sext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_50"> <Value> <Obj> <type>0</type> <id>64</id> <name>src2_load</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>16</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>195</item> </oprand_edges> <opcode>load</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_51"> <Value> <Obj> <type>0</type> <id>65</id> <name>tmp_17_2_cast</name> <fileName>dct.c</fileName> <fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory> <lineNumber>17</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>17</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>29</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>196</item> </oprand_edges> <opcode>sext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_52"> <Value> <Obj> <type>0</type> <id>66</id> <name>tmp_18_2</name> <fileName>dct.c</fileName> <fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory> <lineNumber>17</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>17</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>29</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>197</item> <item>198</item> </oprand_edges> <opcode>mul</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_53"> <Value> <Obj> <type>0</type> <id>67</id> <name>dct_coeff_table_3_ad</name> <fileName>dct.c</fileName> <fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>3</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>199</item> <item>200</item> <item>201</item> </oprand_edges> <opcode>getelementptr</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_54"> <Value> <Obj> <type>0</type> <id>68</id> <name>dct_coeff_table_3_lo</name> <fileName>dct.c</fileName> <fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>15</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>202</item> </oprand_edges> <opcode>load</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_55"> <Value> <Obj> <type>0</type> <id>69</id> <name>coeff_3_cast</name> <fileName>dct.c</fileName> <fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>29</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>203</item> </oprand_edges> <opcode>sext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_56"> <Value> <Obj> <type>0</type> <id>70</id> <name>src3_load</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>16</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>204</item> </oprand_edges> <opcode>load</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_57"> <Value> <Obj> <type>0</type> <id>71</id> <name>tmp_17_3_cast</name> <fileName>dct.c</fileName> <fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory> <lineNumber>17</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>17</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>29</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>205</item> </oprand_edges> <opcode>sext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_58"> <Value> <Obj> <type>0</type> <id>72</id> <name>tmp_18_3</name> <fileName>dct.c</fileName> <fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory> <lineNumber>17</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>17</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>29</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>206</item> <item>207</item> </oprand_edges> <opcode>mul</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_59"> <Value> <Obj> <type>0</type> <id>73</id> <name>dct_coeff_table_4_ad</name> <fileName>dct.c</fileName> <fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>3</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>208</item> <item>209</item> <item>210</item> </oprand_edges> <opcode>getelementptr</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_60"> <Value> <Obj> <type>0</type> <id>74</id> <name>dct_coeff_table_4_lo</name> <fileName>dct.c</fileName> <fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>15</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>211</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>75</id> <name>coeff_4_cast</name> <fileName>dct.c</fileName> <fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>29</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>212</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>76</id> <name>src4_load</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>16</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>213</item> </oprand_edges> <opcode>load</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_63"> <Value> <Obj> <type>0</type> <id>77</id> <name>tmp_17_4_cast</name> <fileName>dct.c</fileName> <fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory> <lineNumber>17</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>17</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>29</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>214</item> </oprand_edges> <opcode>sext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_64"> <Value> <Obj> <type>0</type> <id>78</id> <name>tmp_18_4</name> <fileName>dct.c</fileName> <fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory> <lineNumber>17</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>17</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>29</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>215</item> <item>216</item> </oprand_edges> <opcode>mul</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_65"> <Value> <Obj> <type>0</type> <id>79</id> <name>dct_coeff_table_5_ad</name> <fileName>dct.c</fileName> <fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>3</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>217</item> <item>218</item> <item>219</item> </oprand_edges> <opcode>getelementptr</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_66"> <Value> <Obj> <type>0</type> <id>80</id> <name>dct_coeff_table_5_lo</name> <fileName>dct.c</fileName> <fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>15</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>220</item> </oprand_edges> <opcode>load</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_67"> <Value> <Obj> <type>0</type> <id>81</id> <name>coeff_5_cast</name> <fileName>dct.c</fileName> <fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>29</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>221</item> </oprand_edges> <opcode>sext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_68"> <Value> <Obj> <type>0</type> <id>82</id> <name>src5_load</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>16</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>222</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>83</id> <name>tmp_17_5_cast</name> <fileName>dct.c</fileName> <fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory> <lineNumber>17</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>17</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>29</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>223</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>84</id> <name>tmp_18_5</name> <fileName>dct.c</fileName> <fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory> <lineNumber>17</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>17</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>29</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>224</item> <item>225</item> </oprand_edges> <opcode>mul</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_71"> <Value> <Obj> <type>0</type> <id>85</id> <name>dct_coeff_table_6_ad</name> <fileName>dct.c</fileName> <fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>3</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>226</item> <item>227</item> <item>228</item> </oprand_edges> <opcode>getelementptr</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_72"> <Value> <Obj> <type>0</type> <id>86</id> <name>dct_coeff_table_6_lo</name> <fileName>dct.c</fileName> <fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>15</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>229</item> </oprand_edges> <opcode>load</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_73"> <Value> <Obj> <type>0</type> <id>87</id> <name>coeff_6_cast</name> <fileName>dct.c</fileName> <fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>29</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>230</item> </oprand_edges> <opcode>sext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_74"> <Value> <Obj> <type>0</type> <id>88</id> <name>src6_load</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>16</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="_75"> <Value> <Obj> <type>0</type> <id>89</id> <name>tmp_17_6_cast</name> <fileName>dct.c</fileName> <fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory> <lineNumber>17</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>17</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>29</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="_76"> <Value> <Obj> <type>0</type> <id>90</id> <name>tmp_18_6</name> <fileName>dct.c</fileName> <fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory> <lineNumber>17</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>17</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>29</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>233</item> <item>234</item> </oprand_edges> <opcode>mul</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_77"> <Value> <Obj> <type>0</type> <id>91</id> <name>dct_coeff_table_7_ad</name> <fileName>dct.c</fileName> <fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>3</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>235</item> <item>236</item> <item>237</item> </oprand_edges> <opcode>getelementptr</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_78"> <Value> <Obj> <type>0</type> <id>92</id> <name>dct_coeff_table_7_lo</name> <fileName>dct.c</fileName> <fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>15</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>238</item> </oprand_edges> <opcode>load</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_79"> <Value> <Obj> <type>0</type> <id>93</id> <name>coeff_7_cast</name> <fileName>dct.c</fileName> <fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>29</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>239</item> </oprand_edges> <opcode>sext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_80"> <Value> <Obj> <type>0</type> <id>94</id> <name>src7_load</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>16</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>240</item> </oprand_edges> <opcode>load</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_81"> <Value> <Obj> <type>0</type> <id>95</id> <name>tmp_17_7_cast</name> <fileName>dct.c</fileName> <fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory> <lineNumber>17</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>17</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>29</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>241</item> </oprand_edges> <opcode>sext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_82"> <Value> <Obj> <type>0</type> <id>96</id> <name>tmp_18_7</name> <fileName>dct.c</fileName> <fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory> <lineNumber>17</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>17</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>29</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>242</item> <item>243</item> </oprand_edges> <opcode>mul</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_83"> <Value> <Obj> <type>0</type> <id>97</id> <name>tmp2</name> <fileName>dct.c</fileName> <fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory> <lineNumber>19</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>19</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>29</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>244</item> <item>245</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>98</id> <name>tmp3</name> <fileName>dct.c</fileName> <fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory> <lineNumber>19</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>19</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>29</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>246</item> <item>247</item> </oprand_edges> <opcode>add</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_85"> <Value> <Obj> <type>0</type> <id>99</id> <name>tmp1</name> <fileName>dct.c</fileName> <fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory> <lineNumber>19</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>19</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>29</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>248</item> <item>249</item> </oprand_edges> <opcode>add</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_86"> <Value> <Obj> <type>0</type> <id>100</id> <name>tmp5</name> <fileName>dct.c</fileName> <fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory> <lineNumber>19</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>19</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>29</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>250</item> <item>251</item> </oprand_edges> <opcode>add</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_87"> <Value> <Obj> <type>0</type> <id>101</id> <name>tmp7</name> <fileName>dct.c</fileName> <fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory> <lineNumber>19</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>19</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>29</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>252</item> <item>254</item> </oprand_edges> <opcode>add</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_88"> <Value> <Obj> <type>0</type> <id>102</id> <name>tmp6</name> <fileName>dct.c</fileName> <fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory> <lineNumber>19</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>19</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>29</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="_89"> <Value> <Obj> <type>0</type> <id>103</id> <name>tmp4</name> <fileName>dct.c</fileName> <fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory> <lineNumber>19</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>19</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>29</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>257</item> <item>258</item> </oprand_edges> <opcode>add</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_90"> <Value> <Obj> <type>0</type> <id>104</id> <name>tmp_5</name> <fileName>dct.c</fileName> <fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory> <lineNumber>19</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>19</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>29</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="_91"> <Value> <Obj> <type>0</type> <id>105</id> <name>tmp_7</name> <fileName>dct.c</fileName> <fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory> <lineNumber>19</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>19</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>16</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>262</item> <item>263</item> <item>265</item> <item>267</item> </oprand_edges> <opcode>partselect</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_92"> <Value> <Obj> <type>0</type> <id>106</id> <name></name> <fileName>dct.c</fileName> <fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory> <lineNumber>19</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>19</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>268</item> <item>269</item> </oprand_edges> <opcode>store</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_93"> <Value> <Obj> <type>0</type> <id>108</id> <name></name> <fileName>dct.c</fileName> <fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory> <lineNumber>13</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>13</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>270</item> </oprand_edges> <opcode>br</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_94"> <Value> <Obj> <type>0</type> <id>110</id> <name></name> <fileName>dct.c</fileName> <fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory> <lineNumber>21</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>21</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>8</count> <item_version>0</item_version> <item class_id="16" tracking_level="1" version="0" object_id="_95"> <Value> <Obj> <type>2</type> <id>120</id> <name>empty</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>3</bitwidth> </Value> <const_type>0</const_type> <content>0</content> </item> <item class_id_reference="16" object_id="_96"> <Value> <Obj> <type>2</type> <id>125</id> <name>empty</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>64</bitwidth> </Value> <const_type>0</const_type> <content>0</content> </item> <item class_id_reference="16" object_id="_97"> <Value> <Obj> <type>2</type> <id>150</id> <name>empty</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>4</bitwidth> </Value> <const_type>0</const_type> <content>0</content> </item> <item class_id_reference="16" object_id="_98"> <Value> <Obj> <type>2</type> <id>156</id> <name>empty</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>4</bitwidth> </Value> <const_type>0</const_type> <content>8</content> </item> <item class_id_reference="16" object_id="_99"> <Value> <Obj> <type>2</type> <id>159</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>4</bitwidth> </Value> <const_type>0</const_type> <content>1</content> </item> <item class_id_reference="16" object_id="_100"> <Value> <Obj> <type>2</type> <id>253</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>29</bitwidth> </Value> <const_type>0</const_type> <content>4096</content> </item> <item class_id_reference="16" object_id="_101"> <Value> <Obj> <type>2</type> <id>264</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>13</content> </item> <item class_id_reference="16" object_id="_102"> <Value> <Obj> <type>2</type> <id>266</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>28</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="_103"> <Obj> <type>3</type> <id>34</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>14</count> <item_version>0</item_version> <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> </node_objs> </item> <item class_id_reference="18" object_id="_104"> <Obj> <type>3</type> <id>39</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>35</item> <item>36</item> <item>37</item> <item>38</item> </node_objs> </item> <item class_id_reference="18" object_id="_105"> <Obj> <type>3</type> <id>109</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>64</count> <item_version>0</item_version> <item>44</item> <item>45</item> <item>46</item> <item>47</item> <item>48</item> <item>49</item> <item>50</item> <item>51</item> <item>52</item> <item>53</item> <item>54</item> <item>55</item> <item>56</item> <item>57</item> <item>58</item> <item>59</item> <item>60</item> <item>61</item> <item>62</item> <item>63</item> <item>64</item> <item>65</item> <item>66</item> <item>67</item> <item>68</item> <item>69</item> <item>70</item> <item>71</item> <item>72</item> <item>73</item> <item>74</item> <item>75</item> <item>76</item> <item>77</item> <item>78</item> <item>79</item> <item>80</item> <item>81</item> <item>82</item> <item>83</item> <item>84</item> <item>85</item> <item>86</item> <item>87</item> <item>88</item> <item>89</item> <item>90</item> <item>91</item> <item>92</item> <item>93</item> <item>94</item> <item>95</item> <item>96</item> <item>97</item> <item>98</item> <item>99</item> <item>100</item> <item>101</item> <item>102</item> <item>103</item> <item>104</item> <item>105</item> <item>106</item> <item>108</item> </node_objs> </item> <item class_id_reference="18" object_id="_106"> <Obj> <type>3</type> <id>111</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>110</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="_107"> <id>114</id> <edge_type>1</edge_type> <source_obj>11</source_obj> <sink_obj>20</sink_obj> </item> <item class_id_reference="20" object_id="_108"> <id>116</id> <edge_type>1</edge_type> <source_obj>9</source_obj> <sink_obj>21</sink_obj> </item> <item class_id_reference="20" object_id="_109"> <id>119</id> <edge_type>1</edge_type> <source_obj>20</source_obj> <sink_obj>22</sink_obj> </item> <item class_id_reference="20" object_id="_110"> <id>121</id> <edge_type>1</edge_type> <source_obj>120</source_obj> <sink_obj>22</sink_obj> </item> <item class_id_reference="20" object_id="_111"> <id>122</id> <edge_type>1</edge_type> <source_obj>22</source_obj> <sink_obj>23</sink_obj> </item> <item class_id_reference="20" object_id="_112"> <id>123</id> <edge_type>1</edge_type> <source_obj>21</source_obj> <sink_obj>24</sink_obj> </item> <item class_id_reference="20" object_id="_113"> <id>124</id> <edge_type>1</edge_type> <source_obj>1</source_obj> <sink_obj>25</sink_obj> </item> <item class_id_reference="20" object_id="_114"> <id>126</id> <edge_type>1</edge_type> <source_obj>125</source_obj> <sink_obj>25</sink_obj> </item> <item class_id_reference="20" object_id="_115"> <id>127</id> <edge_type>1</edge_type> <source_obj>24</source_obj> <sink_obj>25</sink_obj> </item> <item class_id_reference="20" object_id="_116"> <id>128</id> <edge_type>1</edge_type> <source_obj>2</source_obj> <sink_obj>26</sink_obj> </item> <item class_id_reference="20" object_id="_117"> <id>129</id> <edge_type>1</edge_type> <source_obj>125</source_obj> <sink_obj>26</sink_obj> </item> <item class_id_reference="20" object_id="_118"> <id>130</id> <edge_type>1</edge_type> <source_obj>24</source_obj> <sink_obj>26</sink_obj> </item> <item class_id_reference="20" object_id="_119"> <id>131</id> <edge_type>1</edge_type> <source_obj>3</source_obj> <sink_obj>27</sink_obj> </item> <item class_id_reference="20" object_id="_120"> <id>132</id> <edge_type>1</edge_type> <source_obj>125</source_obj> <sink_obj>27</sink_obj> </item> <item class_id_reference="20" object_id="_121"> <id>133</id> <edge_type>1</edge_type> <source_obj>24</source_obj> <sink_obj>27</sink_obj> </item> <item class_id_reference="20" object_id="_122"> <id>134</id> <edge_type>1</edge_type> <source_obj>4</source_obj> <sink_obj>28</sink_obj> </item> <item class_id_reference="20" object_id="_123"> <id>135</id> <edge_type>1</edge_type> <source_obj>125</source_obj> <sink_obj>28</sink_obj> </item> <item class_id_reference="20" object_id="_124"> <id>136</id> <edge_type>1</edge_type> <source_obj>24</source_obj> <sink_obj>28</sink_obj> </item> <item class_id_reference="20" object_id="_125"> <id>137</id> <edge_type>1</edge_type> <source_obj>5</source_obj> <sink_obj>29</sink_obj> </item> <item class_id_reference="20" object_id="_126"> <id>138</id> <edge_type>1</edge_type> <source_obj>125</source_obj> <sink_obj>29</sink_obj> </item> <item class_id_reference="20" object_id="_127"> <id>139</id> <edge_type>1</edge_type> <source_obj>24</source_obj> <sink_obj>29</sink_obj> </item> <item class_id_reference="20" object_id="_128"> <id>140</id> <edge_type>1</edge_type> <source_obj>6</source_obj> <sink_obj>30</sink_obj> </item> <item class_id_reference="20" object_id="_129"> <id>141</id> <edge_type>1</edge_type> <source_obj>125</source_obj> <sink_obj>30</sink_obj> </item> <item class_id_reference="20" object_id="_130"> <id>142</id> <edge_type>1</edge_type> <source_obj>24</source_obj> <sink_obj>30</sink_obj> </item> <item class_id_reference="20" object_id="_131"> <id>143</id> <edge_type>1</edge_type> <source_obj>7</source_obj> <sink_obj>31</sink_obj> </item> <item class_id_reference="20" object_id="_132"> <id>144</id> <edge_type>1</edge_type> <source_obj>125</source_obj> <sink_obj>31</sink_obj> </item> <item class_id_reference="20" object_id="_133"> <id>145</id> <edge_type>1</edge_type> <source_obj>24</source_obj> <sink_obj>31</sink_obj> </item> <item class_id_reference="20" object_id="_134"> <id>146</id> <edge_type>1</edge_type> <source_obj>8</source_obj> <sink_obj>32</sink_obj> </item> <item class_id_reference="20" object_id="_135"> <id>147</id> <edge_type>1</edge_type> <source_obj>125</source_obj> <sink_obj>32</sink_obj> </item> <item class_id_reference="20" object_id="_136"> <id>148</id> <edge_type>1</edge_type> <source_obj>24</source_obj> <sink_obj>32</sink_obj> </item> <item class_id_reference="20" object_id="_137"> <id>149</id> <edge_type>2</edge_type> <source_obj>39</source_obj> <sink_obj>33</sink_obj> </item> <item class_id_reference="20" object_id="_138"> <id>151</id> <edge_type>1</edge_type> <source_obj>150</source_obj> <sink_obj>35</sink_obj> </item> <item class_id_reference="20" object_id="_139"> <id>152</id> <edge_type>2</edge_type> <source_obj>34</source_obj> <sink_obj>35</sink_obj> </item> <item class_id_reference="20" object_id="_140"> <id>153</id> <edge_type>1</edge_type> <source_obj>37</source_obj> <sink_obj>35</sink_obj> </item> <item class_id_reference="20" object_id="_141"> <id>154</id> <edge_type>2</edge_type> <source_obj>109</source_obj> <sink_obj>35</sink_obj> </item> <item class_id_reference="20" object_id="_142"> <id>155</id> <edge_type>1</edge_type> <source_obj>35</source_obj> <sink_obj>36</sink_obj> </item> <item class_id_reference="20" object_id="_143"> <id>157</id> <edge_type>1</edge_type> <source_obj>156</source_obj> <sink_obj>36</sink_obj> </item> <item class_id_reference="20" object_id="_144"> <id>158</id> <edge_type>1</edge_type> <source_obj>35</source_obj> <sink_obj>37</sink_obj> </item> <item class_id_reference="20" object_id="_145"> <id>160</id> <edge_type>1</edge_type> <source_obj>159</source_obj> <sink_obj>37</sink_obj> </item> <item class_id_reference="20" object_id="_146"> <id>161</id> <edge_type>1</edge_type> <source_obj>36</source_obj> <sink_obj>38</sink_obj> </item> <item class_id_reference="20" object_id="_147"> <id>162</id> <edge_type>2</edge_type> <source_obj>109</source_obj> <sink_obj>38</sink_obj> </item> <item class_id_reference="20" object_id="_148"> <id>163</id> <edge_type>2</edge_type> <source_obj>111</source_obj> <sink_obj>38</sink_obj> </item> <item class_id_reference="20" object_id="_149"> <id>164</id> <edge_type>1</edge_type> <source_obj>35</source_obj> <sink_obj>44</sink_obj> </item> <item class_id_reference="20" object_id="_150"> <id>165</id> <edge_type>1</edge_type> <source_obj>35</source_obj> <sink_obj>45</sink_obj> </item> <item class_id_reference="20" object_id="_151"> <id>166</id> <edge_type>1</edge_type> <source_obj>23</source_obj> <sink_obj>46</sink_obj> </item> <item class_id_reference="20" object_id="_152"> <id>167</id> <edge_type>1</edge_type> <source_obj>45</source_obj> <sink_obj>46</sink_obj> </item> <item class_id_reference="20" object_id="_153"> <id>168</id> <edge_type>1</edge_type> <source_obj>46</source_obj> <sink_obj>47</sink_obj> </item> <item class_id_reference="20" object_id="_154"> <id>169</id> <edge_type>1</edge_type> <source_obj>10</source_obj> <sink_obj>48</sink_obj> </item> <item class_id_reference="20" object_id="_155"> <id>170</id> <edge_type>1</edge_type> <source_obj>125</source_obj> <sink_obj>48</sink_obj> </item> <item class_id_reference="20" object_id="_156"> <id>171</id> <edge_type>1</edge_type> <source_obj>47</source_obj> <sink_obj>48</sink_obj> </item> <item class_id_reference="20" object_id="_157"> <id>172</id> <edge_type>1</edge_type> <source_obj>12</source_obj> <sink_obj>49</sink_obj> </item> <item class_id_reference="20" object_id="_158"> <id>173</id> <edge_type>1</edge_type> <source_obj>125</source_obj> <sink_obj>49</sink_obj> </item> <item class_id_reference="20" object_id="_159"> <id>174</id> <edge_type>1</edge_type> <source_obj>44</source_obj> <sink_obj>49</sink_obj> </item> <item class_id_reference="20" object_id="_160"> <id>175</id> <edge_type>1</edge_type> <source_obj>49</source_obj> <sink_obj>50</sink_obj> </item> <item class_id_reference="20" object_id="_161"> <id>176</id> <edge_type>1</edge_type> <source_obj>50</source_obj> <sink_obj>51</sink_obj> </item> <item class_id_reference="20" object_id="_162"> <id>177</id> <edge_type>1</edge_type> <source_obj>25</source_obj> <sink_obj>52</sink_obj> </item> <item class_id_reference="20" object_id="_163"> <id>178</id> <edge_type>1</edge_type> <source_obj>52</source_obj> <sink_obj>53</sink_obj> </item> <item class_id_reference="20" object_id="_164"> <id>179</id> <edge_type>1</edge_type> <source_obj>51</source_obj> <sink_obj>54</sink_obj> </item> <item class_id_reference="20" object_id="_165"> <id>180</id> <edge_type>1</edge_type> <source_obj>53</source_obj> <sink_obj>54</sink_obj> </item> <item class_id_reference="20" object_id="_166"> <id>181</id> <edge_type>1</edge_type> <source_obj>13</source_obj> <sink_obj>55</sink_obj> </item> <item class_id_reference="20" object_id="_167"> <id>182</id> <edge_type>1</edge_type> <source_obj>125</source_obj> <sink_obj>55</sink_obj> </item> <item class_id_reference="20" object_id="_168"> <id>183</id> <edge_type>1</edge_type> <source_obj>44</source_obj> <sink_obj>55</sink_obj> </item> <item class_id_reference="20" object_id="_169"> <id>184</id> <edge_type>1</edge_type> <source_obj>55</source_obj> <sink_obj>56</sink_obj> </item> <item class_id_reference="20" object_id="_170"> <id>185</id> <edge_type>1</edge_type> <source_obj>56</source_obj> <sink_obj>57</sink_obj> </item> <item class_id_reference="20" object_id="_171"> <id>186</id> <edge_type>1</edge_type> <source_obj>26</source_obj> <sink_obj>58</sink_obj> </item> <item class_id_reference="20" object_id="_172"> <id>187</id> <edge_type>1</edge_type> <source_obj>58</source_obj> <sink_obj>59</sink_obj> </item> <item class_id_reference="20" object_id="_173"> <id>188</id> <edge_type>1</edge_type> <source_obj>57</source_obj> <sink_obj>60</sink_obj> </item> <item class_id_reference="20" object_id="_174"> <id>189</id> <edge_type>1</edge_type> <source_obj>59</source_obj> <sink_obj>60</sink_obj> </item> <item class_id_reference="20" object_id="_175"> <id>190</id> <edge_type>1</edge_type> <source_obj>14</source_obj> <sink_obj>61</sink_obj> </item> <item class_id_reference="20" object_id="_176"> <id>191</id> <edge_type>1</edge_type> <source_obj>125</source_obj> <sink_obj>61</sink_obj> </item> <item class_id_reference="20" object_id="_177"> <id>192</id> <edge_type>1</edge_type> <source_obj>44</source_obj> <sink_obj>61</sink_obj> </item> <item class_id_reference="20" object_id="_178"> <id>193</id> <edge_type>1</edge_type> <source_obj>61</source_obj> <sink_obj>62</sink_obj> </item> <item class_id_reference="20" object_id="_179"> <id>194</id> <edge_type>1</edge_type> <source_obj>62</source_obj> <sink_obj>63</sink_obj> </item> <item class_id_reference="20" object_id="_180"> <id>195</id> <edge_type>1</edge_type> <source_obj>27</source_obj> <sink_obj>64</sink_obj> </item> <item class_id_reference="20" object_id="_181"> <id>196</id> <edge_type>1</edge_type> <source_obj>64</source_obj> <sink_obj>65</sink_obj> </item> <item class_id_reference="20" object_id="_182"> <id>197</id> <edge_type>1</edge_type> <source_obj>63</source_obj> <sink_obj>66</sink_obj> </item> <item class_id_reference="20" object_id="_183"> <id>198</id> <edge_type>1</edge_type> <source_obj>65</source_obj> <sink_obj>66</sink_obj> </item> <item class_id_reference="20" object_id="_184"> <id>199</id> <edge_type>1</edge_type> <source_obj>15</source_obj> <sink_obj>67</sink_obj> </item> <item class_id_reference="20" object_id="_185"> <id>200</id> <edge_type>1</edge_type> <source_obj>125</source_obj> <sink_obj>67</sink_obj> </item> <item class_id_reference="20" object_id="_186"> <id>201</id> <edge_type>1</edge_type> <source_obj>44</source_obj> <sink_obj>67</sink_obj> </item> <item class_id_reference="20" object_id="_187"> <id>202</id> <edge_type>1</edge_type> <source_obj>67</source_obj> <sink_obj>68</sink_obj> </item> <item class_id_reference="20" object_id="_188"> <id>203</id> <edge_type>1</edge_type> <source_obj>68</source_obj> <sink_obj>69</sink_obj> </item> <item class_id_reference="20" object_id="_189"> <id>204</id> <edge_type>1</edge_type> <source_obj>28</source_obj> <sink_obj>70</sink_obj> </item> <item class_id_reference="20" object_id="_190"> <id>205</id> <edge_type>1</edge_type> <source_obj>70</source_obj> <sink_obj>71</sink_obj> </item> <item class_id_reference="20" object_id="_191"> <id>206</id> <edge_type>1</edge_type> <source_obj>69</source_obj> <sink_obj>72</sink_obj> </item> <item class_id_reference="20" object_id="_192"> <id>207</id> <edge_type>1</edge_type> <source_obj>71</source_obj> <sink_obj>72</sink_obj> </item> <item class_id_reference="20" object_id="_193"> <id>208</id> <edge_type>1</edge_type> <source_obj>16</source_obj> <sink_obj>73</sink_obj> </item> <item class_id_reference="20" object_id="_194"> <id>209</id> <edge_type>1</edge_type> <source_obj>125</source_obj> <sink_obj>73</sink_obj> </item> <item class_id_reference="20" object_id="_195"> <id>210</id> <edge_type>1</edge_type> <source_obj>44</source_obj> <sink_obj>73</sink_obj> </item> <item class_id_reference="20" object_id="_196"> <id>211</id> <edge_type>1</edge_type> <source_obj>73</source_obj> <sink_obj>74</sink_obj> </item> <item class_id_reference="20" object_id="_197"> <id>212</id> <edge_type>1</edge_type> <source_obj>74</source_obj> <sink_obj>75</sink_obj> </item> <item class_id_reference="20" object_id="_198"> <id>213</id> <edge_type>1</edge_type> <source_obj>29</source_obj> <sink_obj>76</sink_obj> </item> <item class_id_reference="20" object_id="_199"> <id>214</id> <edge_type>1</edge_type> <source_obj>76</source_obj> <sink_obj>77</sink_obj> </item> <item class_id_reference="20" object_id="_200"> <id>215</id> <edge_type>1</edge_type> <source_obj>75</source_obj> <sink_obj>78</sink_obj> </item> <item class_id_reference="20" object_id="_201"> <id>216</id> <edge_type>1</edge_type> <source_obj>77</source_obj> <sink_obj>78</sink_obj> </item> <item class_id_reference="20" object_id="_202"> <id>217</id> <edge_type>1</edge_type> <source_obj>17</source_obj> <sink_obj>79</sink_obj> </item> <item class_id_reference="20" object_id="_203"> <id>218</id> <edge_type>1</edge_type> <source_obj>125</source_obj> <sink_obj>79</sink_obj> </item> <item class_id_reference="20" object_id="_204"> <id>219</id> <edge_type>1</edge_type> <source_obj>44</source_obj> <sink_obj>79</sink_obj> </item> <item class_id_reference="20" object_id="_205"> <id>220</id> <edge_type>1</edge_type> <source_obj>79</source_obj> <sink_obj>80</sink_obj> </item> <item class_id_reference="20" object_id="_206"> <id>221</id> <edge_type>1</edge_type> <source_obj>80</source_obj> <sink_obj>81</sink_obj> </item> <item class_id_reference="20" object_id="_207"> <id>222</id> <edge_type>1</edge_type> <source_obj>30</source_obj> <sink_obj>82</sink_obj> </item> <item class_id_reference="20" object_id="_208"> <id>223</id> <edge_type>1</edge_type> <source_obj>82</source_obj> <sink_obj>83</sink_obj> </item> <item class_id_reference="20" object_id="_209"> <id>224</id> <edge_type>1</edge_type> <source_obj>81</source_obj> <sink_obj>84</sink_obj> </item> <item class_id_reference="20" object_id="_210"> <id>225</id> <edge_type>1</edge_type> <source_obj>83</source_obj> <sink_obj>84</sink_obj> </item> <item class_id_reference="20" object_id="_211"> <id>226</id> <edge_type>1</edge_type> <source_obj>18</source_obj> <sink_obj>85</sink_obj> </item> <item class_id_reference="20" object_id="_212"> <id>227</id> <edge_type>1</edge_type> <source_obj>125</source_obj> <sink_obj>85</sink_obj> </item> <item class_id_reference="20" object_id="_213"> <id>228</id> <edge_type>1</edge_type> <source_obj>44</source_obj> <sink_obj>85</sink_obj> </item> <item class_id_reference="20" object_id="_214"> <id>229</id> <edge_type>1</edge_type> <source_obj>85</source_obj> <sink_obj>86</sink_obj> </item> <item class_id_reference="20" object_id="_215"> <id>230</id> <edge_type>1</edge_type> <source_obj>86</source_obj> <sink_obj>87</sink_obj> </item> <item class_id_reference="20" object_id="_216"> <id>231</id> <edge_type>1</edge_type> <source_obj>31</source_obj> <sink_obj>88</sink_obj> </item> <item class_id_reference="20" object_id="_217"> <id>232</id> <edge_type>1</edge_type> <source_obj>88</source_obj> <sink_obj>89</sink_obj> </item> <item class_id_reference="20" object_id="_218"> <id>233</id> <edge_type>1</edge_type> <source_obj>87</source_obj> <sink_obj>90</sink_obj> </item> <item class_id_reference="20" object_id="_219"> <id>234</id> <edge_type>1</edge_type> <source_obj>89</source_obj> <sink_obj>90</sink_obj> </item> <item class_id_reference="20" object_id="_220"> <id>235</id> <edge_type>1</edge_type> <source_obj>19</source_obj> <sink_obj>91</sink_obj> </item> <item class_id_reference="20" object_id="_221"> <id>236</id> <edge_type>1</edge_type> <source_obj>125</source_obj> <sink_obj>91</sink_obj> </item> <item class_id_reference="20" object_id="_222"> <id>237</id> <edge_type>1</edge_type> <source_obj>44</source_obj> <sink_obj>91</sink_obj> </item> <item class_id_reference="20" object_id="_223"> <id>238</id> <edge_type>1</edge_type> <source_obj>91</source_obj> <sink_obj>92</sink_obj> </item> <item class_id_reference="20" object_id="_224"> <id>239</id> <edge_type>1</edge_type> <source_obj>92</source_obj> <sink_obj>93</sink_obj> </item> <item class_id_reference="20" object_id="_225"> <id>240</id> <edge_type>1</edge_type> <source_obj>32</source_obj> <sink_obj>94</sink_obj> </item> <item class_id_reference="20" object_id="_226"> <id>241</id> <edge_type>1</edge_type> <source_obj>94</source_obj> <sink_obj>95</sink_obj> </item> <item class_id_reference="20" object_id="_227"> <id>242</id> <edge_type>1</edge_type> <source_obj>93</source_obj> <sink_obj>96</sink_obj> </item> <item class_id_reference="20" object_id="_228"> <id>243</id> <edge_type>1</edge_type> <source_obj>95</source_obj> <sink_obj>96</sink_obj> </item> <item class_id_reference="20" object_id="_229"> <id>244</id> <edge_type>1</edge_type> <source_obj>60</source_obj> <sink_obj>97</sink_obj> </item> <item class_id_reference="20" object_id="_230"> <id>245</id> <edge_type>1</edge_type> <source_obj>54</source_obj> <sink_obj>97</sink_obj> </item> <item class_id_reference="20" object_id="_231"> <id>246</id> <edge_type>1</edge_type> <source_obj>72</source_obj> <sink_obj>98</sink_obj> </item> <item class_id_reference="20" object_id="_232"> <id>247</id> <edge_type>1</edge_type> <source_obj>66</source_obj> <sink_obj>98</sink_obj> </item> <item class_id_reference="20" object_id="_233"> <id>248</id> <edge_type>1</edge_type> <source_obj>97</source_obj> <sink_obj>99</sink_obj> </item> <item class_id_reference="20" object_id="_234"> <id>249</id> <edge_type>1</edge_type> <source_obj>98</source_obj> <sink_obj>99</sink_obj> </item> <item class_id_reference="20" object_id="_235"> <id>250</id> <edge_type>1</edge_type> <source_obj>84</source_obj> <sink_obj>100</sink_obj> </item> <item class_id_reference="20" object_id="_236"> <id>251</id> <edge_type>1</edge_type> <source_obj>78</source_obj> <sink_obj>100</sink_obj> </item> <item class_id_reference="20" object_id="_237"> <id>252</id> <edge_type>1</edge_type> <source_obj>96</source_obj> <sink_obj>101</sink_obj> </item> <item class_id_reference="20" object_id="_238"> <id>254</id> <edge_type>1</edge_type> <source_obj>253</source_obj> <sink_obj>101</sink_obj> </item> <item class_id_reference="20" object_id="_239"> <id>255</id> <edge_type>1</edge_type> <source_obj>90</source_obj> <sink_obj>102</sink_obj> </item> <item class_id_reference="20" object_id="_240"> <id>256</id> <edge_type>1</edge_type> <source_obj>101</source_obj> <sink_obj>102</sink_obj> </item> <item class_id_reference="20" object_id="_241"> <id>257</id> <edge_type>1</edge_type> <source_obj>100</source_obj> <sink_obj>103</sink_obj> </item> <item class_id_reference="20" object_id="_242"> <id>258</id> <edge_type>1</edge_type> <source_obj>102</source_obj> <sink_obj>103</sink_obj> </item> <item class_id_reference="20" object_id="_243"> <id>259</id> <edge_type>1</edge_type> <source_obj>99</source_obj> <sink_obj>104</sink_obj> </item> <item class_id_reference="20" object_id="_244"> <id>260</id> <edge_type>1</edge_type> <source_obj>103</source_obj> <sink_obj>104</sink_obj> </item> <item class_id_reference="20" object_id="_245"> <id>263</id> <edge_type>1</edge_type> <source_obj>104</source_obj> <sink_obj>105</sink_obj> </item> <item class_id_reference="20" object_id="_246"> <id>265</id> <edge_type>1</edge_type> <source_obj>264</source_obj> <sink_obj>105</sink_obj> </item> <item class_id_reference="20" object_id="_247"> <id>267</id> <edge_type>1</edge_type> <source_obj>266</source_obj> <sink_obj>105</sink_obj> </item> <item class_id_reference="20" object_id="_248"> <id>268</id> <edge_type>1</edge_type> <source_obj>105</source_obj> <sink_obj>106</sink_obj> </item> <item class_id_reference="20" object_id="_249"> <id>269</id> <edge_type>1</edge_type> <source_obj>48</source_obj> <sink_obj>106</sink_obj> </item> <item class_id_reference="20" object_id="_250"> <id>270</id> <edge_type>2</edge_type> <source_obj>39</source_obj> <sink_obj>108</sink_obj> </item> <item class_id_reference="20" object_id="_251"> <id>299</id> <edge_type>2</edge_type> <source_obj>34</source_obj> <sink_obj>39</sink_obj> </item> <item class_id_reference="20" object_id="_252"> <id>300</id> <edge_type>2</edge_type> <source_obj>39</source_obj> <sink_obj>111</sink_obj> </item> <item class_id_reference="20" object_id="_253"> <id>301</id> <edge_type>2</edge_type> <source_obj>39</source_obj> <sink_obj>109</sink_obj> </item> <item class_id_reference="20" object_id="_254"> <id>302</id> <edge_type>2</edge_type> <source_obj>109</source_obj> <sink_obj>39</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="_255"> <mId>1</mId> <mTag>dct_1d</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>14</mMinLatency> <mMaxLatency>-1</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"></mDfPipe> </item> <item class_id_reference="22" object_id="_256"> <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>-1</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"></mDfPipe> </item> <item class_id_reference="22" object_id="_257"> <mId>3</mId> <mTag>DCT_Outer_Loop</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>39</item> <item>109</item> </basic_blocks> <mII>1</mII> <mDepth>6</mDepth> <mMinTripCount>8</mMinTripCount> <mMaxTripCount>8</mMaxTripCount> <mMinLatency>12</mMinLatency> <mMaxLatency>-1</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"></mDfPipe> </item> <item class_id_reference="22" object_id="_258"> <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>111</item> </basic_blocks> <mII>-1</mII> <mDepth>-1</mDepth> <mMinTripCount>-1</mMinTripCount> <mMaxTripCount>-1</mMaxTripCount> <mMinLatency>0</mMinLatency> <mMaxLatency>-1</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"></mDfPipe> </item> </cdfg_regions> <fsm class_id="-1"></fsm> <res class_id="-1"></res> <node_label_latency class_id="26" tracking_level="0" version="0"> <count>83</count> <item_version>0</item_version> <item class_id="27" tracking_level="0" version="0"> <first>20</first> <second class_id="28" tracking_level="0" version="0"> <first>0</first> <second>0</second> </second> </item> <item> <first>21</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>22</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>23</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>24</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>25</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>26</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>27</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>28</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>29</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>30</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>31</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>32</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>33</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>35</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>36</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>37</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>38</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>44</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>45</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>46</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>47</first> <second> <first>6</first> <second>0</second> </second> </item> <item> <first>48</first> <second> <first>6</first> <second>0</second> </second> </item> <item> <first>49</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>50</first> <second> <first>2</first> <second>1</second> </second> </item> <item> <first>51</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>52</first> <second> <first>2</first> <second>1</second> </second> </item> <item> <first>53</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>54</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>55</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>56</first> <second> <first>1</first> <second>1</second> </second> </item> <item> <first>57</first> <second> <first>3</first> <second>0</second> </second> </item> <item> <first>58</first> <second> <first>1</first> <second>1</second> </second> </item> <item> <first>59</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>61</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>62</first> <second> <first>2</first> <second>1</second> </second> </item> <item> <first>63</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>64</first> <second> <first>2</first> <second>1</second> </second> </item> <item> <first>65</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>66</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>67</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>68</first> <second> <first>1</first> <second>1</second> </second> </item> <item> <first>69</first> <second> <first>3</first> <second>0</second> </second> </item> <item> <first>70</first> <second> <first>1</first> <second>1</second> </second> </item> <item> <first>71</first> <second> <first>3</first> <second>0</second> </second> </item> <item> <first>72</first> <second> <first>3</first> <second>0</second> </second> </item> <item> <first>73</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>74</first> <second> <first>2</first> <second>1</second> </second> </item> <item> <first>75</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>76</first> <second> <first>2</first> <second>1</second> </second> </item> <item> <first>77</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>1</first> <second>0</second> </second> </item> <item> <first>80</first> <second> <first>1</first> <second>1</second> </second> </item> <item> <first>81</first> <second> <first>3</first> <second>0</second> </second> </item> <item> <first>82</first> <second> <first>1</first> <second>1</second> </second> </item> <item> <first>83</first> <second> <first>3</first> <second>0</second> </second> </item> <item> <first>84</first> <second> <first>3</first> <second>0</second> </second> </item> <item> <first>85</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>86</first> <second> <first>2</first> <second>1</second> </second> </item> <item> <first>87</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>88</first> <second> <first>2</first> <second>1</second> </second> </item> <item> <first>89</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>90</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>91</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>92</first> <second> <first>2</first> <second>1</second> </second> </item> <item> <first>93</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>94</first> <second> <first>2</first> <second>1</second> </second> </item> <item> <first>95</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>96</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>97</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>98</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>99</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>100</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>101</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>102</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>103</first> <second> <first>5</first> <second>0</second> </second> </item> <item> <first>104</first> <second> <first>5</first> <second>0</second> </second> </item> <item> <first>105</first> <second> <first>5</first> <second>0</second> </second> </item> <item> <first>106</first> <second> <first>6</first> <second>0</second> </second> </item> <item> <first>108</first> <second> <first>6</first> <second>0</second> </second> </item> <item> <first>110</first> <second> <first>2</first> <second>0</second> </second> </item> </node_label_latency> <bblk_ent_exit class_id="29" tracking_level="0" version="0"> <count>4</count> <item_version>0</item_version> <item class_id="30" tracking_level="0" version="0"> <first>34</first> <second class_id="31" tracking_level="0" version="0"> <first>0</first> <second>0</second> </second> </item> <item> <first>39</first> <second> <first>1</first> <second>1</second> </second> </item> <item> <first>109</first> <second> <first>1</first> <second>6</second> </second> </item> <item> <first>111</first> <second> <first>2</first> <second>2</second> </second> </item> </bblk_ent_exit> <regions class_id="32" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="33" tracking_level="1" version="0" object_id="_259"> <region_name>DCT_Outer_Loop</region_name> <basic_blocks> <count>2</count> <item_version>0</item_version> <item>39</item> <item>109</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>6</pipe_depth> </item> </regions> <dp_fu_nodes class_id="34" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </dp_fu_nodes> <dp_fu_nodes_expression class_id="35" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </dp_fu_nodes_expression> <dp_fu_nodes_module> <count>0</count> <item_version>0</item_version> </dp_fu_nodes_module> <dp_fu_nodes_io> <count>0</count> <item_version>0</item_version> </dp_fu_nodes_io> <return_ports> <count>0</count> <item_version>0</item_version> </return_ports> <dp_mem_port_nodes class_id="36" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </dp_mem_port_nodes> <dp_reg_nodes> <count>0</count> <item_version>0</item_version> </dp_reg_nodes> <dp_regname_nodes> <count>0</count> <item_version>0</item_version> </dp_regname_nodes> <dp_reg_phi> <count>0</count> <item_version>0</item_version> </dp_reg_phi> <dp_regname_phi> <count>0</count> <item_version>0</item_version> </dp_regname_phi> <dp_port_io_nodes class_id="37" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </dp_port_io_nodes> <port2core class_id="38" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </port2core> <node2core> <count>0</count> <item_version>0</item_version> </node2core> </syndb> </boost_serialization>
25.967409
90
0.582853
fb7c06aeaa9e8764318e93d08cea78379361f5ce
29,048
adb
Ada
src/implementation/yaml-lexer.adb
robdaemon/AdaYaml
2cb52c5e7eee3a2d9951945d5ddb4eeddc088f6e
[ "MIT" ]
null
null
null
src/implementation/yaml-lexer.adb
robdaemon/AdaYaml
2cb52c5e7eee3a2d9951945d5ddb4eeddc088f6e
[ "MIT" ]
null
null
null
src/implementation/yaml-lexer.adb
robdaemon/AdaYaml
2cb52c5e7eee3a2d9951945d5ddb4eeddc088f6e
[ "MIT" ]
null
null
null
-- part of AdaYaml, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "copying.txt" with Yaml.Lexer.Evaluation; package body Yaml.Lexer is use type Text.Reference; ----------------------------------------------------------------------------- -- Initialization and buffer handling -- ----------------------------------------------------------------------------- procedure Basic_Init (L : in out Instance; Pool : Text.Pool.Reference) is begin L.State := Outside_Doc'Access; L.Flow_Depth := 0; L.Annotation_Depth := 0; L.Line_Start_State := Outside_Doc'Access; L.Json_Enabling_State := After_Token'Access; L.Pool := Pool; L.Proposed_Indentation := -1; end Basic_Init; procedure Init (L : in out Instance; Input : Source.Pointer; Pool : Text.Pool.Reference; Initial_Buffer_Size : Positive := Default_Initial_Buffer_Size) is begin L.Init (Input, Initial_Buffer_Size); Basic_Init (L, Pool); L.Cur := Next (L); end Init; procedure Init (L : in out Instance; Input : String; Pool : Text.Pool.Reference) is begin L.Init (Input); Basic_Init (L, Pool); L.Cur := Next (L); end Init; ----------------------------------------------------------------------------- -- interface and utilities ----------------------------------------------------------------------------- function Escaped (S : String) return String is Ret : String (1 .. S'Length * 4 + 2) := (1 => '"', others => <>); Retpos : Positive := 2; procedure Add_Escape_Sequence (C : Character) with Inline is begin Ret (Retpos .. Retpos + 1) := "\" & C; Retpos := Retpos + 2; end Add_Escape_Sequence; begin for C of S loop case C is when Line_Feed => Add_Escape_Sequence ('l'); when Carriage_Return => Add_Escape_Sequence ('c'); when '"' | ''' | '\' => Add_Escape_Sequence (C); when Character'Val (9) => Add_Escape_Sequence ('t'); when Character'Val (0) .. Character'Val (8) | Character'Val (11) | Character'Val (12) | Character'Val (14) .. Character'Val (31) => Add_Escape_Sequence ('x'); declare type Byte is range 0 .. 255; Charpos : constant Byte := Character'Pos (C); begin Ret (Retpos .. Retpos + 1) := (Character'Val (Charpos / 16 + Character'Pos ('0'))) & (Character'Val (Charpos mod 16 + Character'Pos ('0'))); Retpos := Retpos + 2; end; when others => Ret (Retpos) := C; Retpos := Retpos + 1; end case; end loop; Ret (Retpos) := '"'; return Ret (1 .. Retpos); end Escaped; function Escaped (C : Character) return String is (Escaped ("" & C)); function Escaped (C : Text.Reference) return String is (Escaped (C.Value)); function Next_Is_Plain_Safe (L : Instance) return Boolean is (case L.Buffer (L.Pos) is when Space_Or_Line_End => False, when Flow_Indicator => L.Flow_Depth + L.Annotation_Depth = 0, when ')' => L.Annotation_Depth = 0, when others => True); function Next_Token (L : in out Instance) return Token is Ret : Token; begin loop exit when L.State.all (L, Ret); end loop; return Ret; end Next_Token; function Short_Lexeme (L : Instance) return String is (L.Buffer (L.Token_Start .. L.Pos - 2)); function Full_Lexeme (L : Instance) return String is (L.Buffer (L.Token_Start - 1 .. L.Pos - 2)); procedure Start_Token (L : in out Instance) is begin L.Token_Start := L.Pos; L.Token_Start_Mark := Cur_Mark (L); end Start_Token; function Cur_Mark (L : Instance; Offset : Integer := -1) return Mark is ((Line => L.Cur_Line, Column => L.Pos + 1 - L.Line_Start + Offset, Index => L.Prev_Lines_Chars + L.Pos + 1 - L.Line_Start + Offset)); function Current_Content (L : Instance) return Text.Reference is (L.Value); function Escaped_Current (L : Instance) return String is (Escaped (L.Value)); function Current_Indentation (L : Instance) return Indentation_Type is (L.Pos - L.Line_Start - 1); function Recent_Indentation (L : Instance) return Indentation_Type is (L.Indentation); function Last_Scalar_Was_Multiline (L : Instance) return Boolean is (L.Seen_Multiline); function Recent_Start_Mark (L : Instance) return Mark is (L.Token_Start_Mark); -- to be called whenever a '-' is read as first character in a line. this -- function checks for whether this is a directives end marker ('---'). if -- yes, the lexer position is updated to be after the marker. function Is_Directives_End (L : in out Instance) return Boolean is Peek : Positive := L.Pos; begin if L.Buffer (Peek) = '-' then Peek := Peek + 1; if L.Buffer (Peek) = '-' then Peek := Peek + 1; if L.Buffer (Peek) in Space_Or_Line_End then L.Pos := Peek; L.Cur := Next (L); return True; end if; end if; end if; return False; end Is_Directives_End; -- similar to Hyphen_Line_Type, this function checks whether, when a line -- begin with a '.', that line contains a document end marker ('...'). if -- yes, the lexer position is updated to be after the marker. function Is_Document_End (L : in out Instance) return Boolean is Peek : Positive := L.Pos; begin if L.Buffer (Peek) = '.' then Peek := Peek + 1; if L.Buffer (Peek) = '.' then Peek := Peek + 1; if L.Buffer (Peek) in Space_Or_Line_End then L.Pos := Peek; L.Cur := Next (L); return True; end if; end if; end if; return False; end Is_Document_End; function Start_Line (L : in out Instance) return Line_Start_Kind is begin case L.Cur is when '-' => return (if Is_Directives_End (L) then Directives_End_Marker else Content); when '.' => return (if Is_Document_End (L) then Document_End_Marker else Content); when others => while L.Cur = ' ' loop L.Cur := Next (L); end loop; return (case L.Cur is when '#' => Comment, when Line_Feed | Carriage_Return => Newline, when End_Of_Input => Stream_End, when others => Content); end case; end Start_Line; ----------------------------------------------------------------------------- -- Tokenization -- ----------------------------------------------------------------------------- function Outside_Doc (L : in out Instance; T : out Token) return Boolean is begin case L.Cur is when '%' => Start_Token (L); loop L.Cur := Next (L); exit when L.Cur in Space_Or_Line_End; end loop; T := (Start_Pos => L.Token_Start_Mark, End_Pos => Cur_Mark (L), Kind => <>); declare Name : constant String := Short_Lexeme (L); begin if Name = "YAML" then L.State := Yaml_Version'Access; T.Kind := Yaml_Directive; return True; elsif Name = "TAG" then L.State := Tag_Shorthand'Access; T.Kind := Tag_Directive; return True; else L.State := Unknown_Directive'Access; T.Kind := Unknown_Directive; return True; end if; end; when '-' => Start_Token (L); if Is_Directives_End (L) then L.State := After_Token'Access; T.Kind := Directives_End; else L.State := Indentation_Setting_Token'Access; T.Kind := Indentation; end if; T.Start_Pos := L.Token_Start_Mark; T.End_Pos := Cur_Mark (L); L.Indentation := -1; L.Line_Start_State := Line_Start'Access; return True; when '.' => Start_Token (L); if Is_Document_End (L) then L.State := Expect_Line_End'Access; T.Kind := Document_End; else L.State := Indentation_Setting_Token'Access; L.Line_Start_State := Line_Start'Access; L.Indentation := -1; T.Kind := Indentation; end if; T.Start_Pos := L.Token_Start_Mark; T.End_Pos := Cur_Mark (L); return True; when others => Start_Token (L); while L.Cur = ' ' loop L.Cur := Next (L); end loop; if L.Cur in Comment_Or_Line_End then L.State := Expect_Line_End'Access; return False; end if; T := (Start_Pos => L.Token_Start_Mark, End_Pos => Cur_Mark (L), Kind => Indentation); L.Indentation := -1; L.State := Indentation_Setting_Token'Access; L.Line_Start_State := Line_Start'Access; return True; end case; end Outside_Doc; function Yaml_Version (L : in out Instance; T : out Token) return Boolean is procedure Read_Numeric_Subtoken is begin if not (L.Cur in Digit) then raise Lexer_Error with "Illegal character in YAML version string: " & Escaped (L.Cur); end if; loop L.Cur := Next (L); exit when not (L.Cur in Digit); end loop; end Read_Numeric_Subtoken; begin while L.Cur = ' ' loop L.Cur := Next (L); end loop; Start_Token (L); Read_Numeric_Subtoken; if L.Cur /= '.' then raise Lexer_Error with "Illegal character in YAML version string: " & Escaped (L.Cur); end if; L.Cur := Next (L); Read_Numeric_Subtoken; if not (L.Cur in Space_Or_Line_End) then raise Lexer_Error with "Illegal character in YAML version string: " & Escaped (L.Cur); end if; T := (Start_Pos => L.Token_Start_Mark, End_Pos => Cur_Mark (L), Kind => Directive_Param); L.State := Expect_Line_End'Access; return True; end Yaml_Version; function Tag_Shorthand (L : in out Instance; T : out Token) return Boolean is begin while L.Cur = ' ' loop L.Cur := Next (L); end loop; if L.Cur /= '!' then raise Lexer_Error with "Illegal character, tag shorthand must start with ""!"":" & Escaped (L.Cur); end if; Start_Token (L); L.Cur := Next (L); if L.Cur /= ' ' then while L.Cur in Tag_Shorthand_Char loop L.Cur := Next (L); end loop; if L.Cur /= '!' then if L.Cur in Space_Or_Line_End then raise Lexer_Error with "Tag shorthand must end with ""!""."; else raise Lexer_Error with "Illegal character in tag shorthand: " & Escaped (L.Cur); end if; end if; L.Cur := Next (L); if L.Cur /= ' ' then raise Lexer_Error with "Missing space after tag shorthand"; end if; end if; T := (Start_Pos => L.Token_Start_Mark, End_Pos => Cur_Mark (L), Kind => Tag_Handle); L.State := At_Tag_Uri'Access; return True; end Tag_Shorthand; function At_Tag_Uri (L : in out Instance; T : out Token) return Boolean is begin while L.Cur = ' ' loop L.Cur := Next (L); end loop; Start_Token (L); if L.Cur = '<' then raise Lexer_Error with "Illegal character in tag prefix: " & Escaped (L.Cur); end if; Evaluation.Read_URI (L, False); T := (Start_Pos => L.Token_Start_Mark, End_Pos => Cur_Mark (L), Kind => Suffix); L.State := Expect_Line_End'Access; return True; end At_Tag_Uri; function Unknown_Directive (L : in out Instance; T : out Token) return Boolean is begin while L.Cur = ' ' loop L.Cur := Next (L); end loop; if L.Cur in Comment_Or_Line_End then L.State := Expect_Line_End'Access; return False; end if; Start_Token (L); loop L.Cur := Next (L); exit when L.Cur in Space_Or_Line_End; end loop; T := (Start_Pos => L.Token_Start_Mark, End_Pos => Cur_Mark (L), Kind => Directive_Param); return True; end Unknown_Directive; procedure End_Line (L : in out Instance) is begin loop case L.Cur is when Line_Feed => Handle_LF (L); L.Cur := L.Next; L.State := L.Line_Start_State; exit; when Carriage_Return => Handle_CR (L); L.Cur := L.Next; L.State := L.Line_Start_State; exit; when End_Of_Input => L.State := Stream_End'Access; exit; when '#' => loop L.Cur := Next (L); exit when L.Cur in Line_End; end loop; when others => null; -- forbidden by precondition end case; end loop; end End_Line; function Expect_Line_End (L : in out Instance; T : out Token) return Boolean is pragma Unreferenced (T); begin while L.Cur = ' ' loop L.Cur := Next (L); end loop; if not (L.Cur in Comment_Or_Line_End) then raise Lexer_Error with "Unexpected character (expected line end): " & Escaped (L.Cur); end if; End_Line (L); return False; end Expect_Line_End; function Stream_End (L : in out Instance; T : out Token) return Boolean is begin Start_Token (L); T := (Start_Pos => L.Token_Start_Mark, End_Pos => Cur_Mark (L), Kind => Stream_End); return True; end Stream_End; function Line_Start (L : in out Instance; T : out Token) return Boolean is begin case Start_Line (L) is when Directives_End_Marker => return Line_Dir_End (L, T); when Document_End_Marker => return Line_Doc_End (L, T); when Comment | Newline => End_Line (L); return False; when Stream_End => L.State := Stream_End'Access; return False; when Content => return Line_Indentation (L, T); end case; end Line_Start; function Flow_Line_Start (L : in out Instance; T : out Token) return Boolean is pragma Unreferenced (T); Indent : Natural; begin case L.Cur is when '-' => if Is_Directives_End (L) then raise Lexer_Error with "Directives end marker before end of flow content"; else Indent := 0; end if; when '.' => if Is_Document_End (L) then raise Lexer_Error with "Document end marker before end of flow content"; else Indent := 0; end if; when others => while L.Cur = ' ' loop L.Cur := Next (L); end loop; Indent := L.Pos - L.Line_Start - 1; end case; if Indent <= L.Indentation then raise Lexer_Error with "Too few indentation spaces (must surpass surrounding block element)" & L.Indentation'Img; end if; L.State := Inside_Line'Access; return False; end Flow_Line_Start; function Flow_Line_Indentation (L : in out Instance; T : out Token) return Boolean is pragma Unreferenced (T); begin if L.Pos - L.Line_Start - 1 < L.Indentation then raise Lexer_Error with "Too few indentation spaces (must surpass surrounding block element)"; end if; L.State := Inside_Line'Access; return False; end Flow_Line_Indentation; procedure Check_Indicator_Char (L : in out Instance; Kind : Token_Kind; T : out Token) is begin if Next_Is_Plain_Safe (L) then Evaluation.Read_Plain_Scalar (L, T); else Start_Token (L); L.Cur := Next (L); T := (Start_Pos => L.Token_Start_Mark, End_Pos => Cur_Mark (L), Kind => Kind); L.State := Before_Indentation_Setting_Token'Access; end if; end Check_Indicator_Char; procedure Enter_Flow_Collection (L : in out Instance; T : out Token; Kind : Token_Kind) is begin Start_Token (L); if L.Flow_Depth + L.Annotation_Depth = 0 then L.Json_Enabling_State := After_Json_Enabling_Token'Access; L.Line_Start_State := Flow_Line_Start'Access; L.Proposed_Indentation := -1; end if; L.Flow_Depth := L.Flow_Depth + 1; L.State := After_Token'Access; L.Cur := Next (L); T := (Start_Pos => L.Token_Start_Mark, End_Pos => Cur_Mark (L), Kind => Kind); end Enter_Flow_Collection; procedure Leave_Flow_Collection (L : in out Instance; T : out Token; Kind : Token_Kind) is begin Start_Token (L); if L.Flow_Depth = 0 then raise Lexer_Error with "No flow collection to leave!"; end if; L.Flow_Depth := L.Flow_Depth - 1; if L.Flow_Depth + L.Annotation_Depth = 0 then L.Json_Enabling_State := After_Token'Access; L.Line_Start_State := Line_Start'Access; end if; L.State := L.Json_Enabling_State; L.Cur := Next (L); T := (Start_Pos => L.Token_Start_Mark, End_Pos => Cur_Mark (L), Kind => Kind); end Leave_Flow_Collection; procedure Read_Namespace (L : in out Instance; T : out Token; NS_Char : Character; Kind : Token_Kind) with Pre => L.Cur = NS_Char is begin Start_Token (L); L.Cur := Next (L); if L.Cur = '<' then raise Lexer_Error with "Verbatim URIs not supported in YAML 1.3"; else -- we need to scan for a possible second NS_Char in case this is not a -- primary tag handle. We must lookahead here because there may be -- URI characters in the suffix that are not allowed in the handle. declare Handle_End : Positive := L.Token_Start; begin loop if L.Buffer (Handle_End) in Space_Or_Line_End | Flow_Indicator | Annotation_Param_Indicator then Handle_End := L.Token_Start; L.Pos := L.Pos - 1; exit; elsif L.Buffer (Handle_End) = NS_Char then Handle_End := Handle_End + 1; exit; else Handle_End := Handle_End + 1; end if; end loop; while L.Pos < Handle_End loop L.Cur := Next (L); if not (L.Cur in Tag_Shorthand_Char | NS_Char) then raise Lexer_Error with "Illegal character in tag handle: " & Escaped (L.Cur); end if; end loop; L.Cur := Next (L); T := (Start_Pos => L.Token_Start_Mark, End_Pos => Cur_Mark (L), Kind => Kind); L.State := At_Suffix'Access; end; end if; end Read_Namespace; procedure Read_Anchor_Name (L : in out Instance) is begin Start_Token (L); loop L.Cur := Next (L); exit when not (L.Cur in Ascii_Char | Digit | '-' | '_'); end loop; if not (L.Cur in Space_Or_Line_End | Flow_Indicator | ')') then raise Lexer_Error with "Illegal character in anchor: " & Escaped (L.Cur); elsif L.Pos = L.Token_Start + 1 then raise Lexer_Error with "Anchor name must not be empty"; end if; L.State := After_Token'Access; end Read_Anchor_Name; function Inside_Line (L : in out Instance; T : out Token) return Boolean is begin case L.Cur is when ':' => Check_Indicator_Char (L, Map_Value_Ind, T); if T.Kind = Map_Value_Ind and then L.Proposed_Indentation /= -1 then -- necessary in the case of an empty scalar with node props -- in an implicit block map key L.Indentation := L.Proposed_Indentation; L.Proposed_Indentation := -1; end if; return True; when '?' => Check_Indicator_Char (L, Map_Key_Ind, T); return True; when '-' => Check_Indicator_Char (L, Seq_Item_Ind, T); return True; when Comment_Or_Line_End => End_Line (L); return False; when '"' => Evaluation.Read_Double_Quoted_Scalar (L, T); L.State := L.Json_Enabling_State; return True; when ''' => Evaluation.Read_Single_Quoted_Scalar (L, T); L.State := L.Json_Enabling_State; return True; when '>' | '|' => if L.Flow_Depth + L.Annotation_Depth > 0 then Evaluation.Read_Plain_Scalar (L, T); else Evaluation.Read_Block_Scalar (L, T); end if; return True; when '{' => Enter_Flow_Collection (L, T, Flow_Map_Start); return True; when '}' => Leave_Flow_Collection (L, T, Flow_Map_End); return True; when '[' => Enter_Flow_Collection (L, T, Flow_Seq_Start); return True; when ']' => Leave_Flow_Collection (L, T, Flow_Seq_End); return True; when ')' => Start_Token (L); if L.Annotation_Depth > 0 then L.Annotation_Depth := L.Annotation_Depth - 1; if L.Flow_Depth + L.Annotation_Depth = 0 then L.Json_Enabling_State := After_Token'Access; L.Line_Start_State := Line_Start'Access; end if; L.State := After_Token'Access; L.Cur := Next (L); T := (Start_Pos => L.Token_Start_Mark, End_Pos => Cur_Mark (L), Kind => Params_End); else Evaluation.Read_Plain_Scalar (L, T); end if; return True; when ',' => Start_Token (L); L.Cur := Next (L); T := (Start_Pos => L.Token_Start_Mark, End_Pos => Cur_Mark (L), Kind => Flow_Separator); L.State := After_Token'Access; return True; when '!' => Read_Namespace (L, T, '!', Tag_Handle); return True; when '&' => Read_Anchor_Name (L); T := (Start_Pos => L.Token_Start_Mark, End_Pos => Cur_Mark (L), Kind => Anchor); return True; when '*' => Read_Anchor_Name (L); T := (Start_Pos => L.Token_Start_Mark, End_Pos => Cur_Mark (L), Kind => Alias); return True; when '@' => Read_Namespace (L, T, '@', Annotation_Handle); return True; when '`' => raise Lexer_Error with "Reserved characters cannot start a plain scalar."; when others => Evaluation.Read_Plain_Scalar (L, T); return True; end case; end Inside_Line; function Indentation_Setting_Token (L : in out Instance; T : out Token) return Boolean is Cached_Indentation : constant Natural := L.Pos - L.Line_Start - 1; begin return Ret : constant Boolean := Inside_Line (L, T) do if Ret and then L.Flow_Depth + L.Annotation_Depth = 0 then if T.Kind in Node_Property_Kind then L.Proposed_Indentation := Cached_Indentation; else L.Indentation := Cached_Indentation; end if; end if; end return; end Indentation_Setting_Token; function After_Token (L : in out Instance; T : out Token) return Boolean is pragma Unreferenced (T); begin while L.Cur = ' ' loop L.Cur := Next (L); end loop; if L.Cur in Comment_Or_Line_End then End_Line (L); else L.State := Inside_Line'Access; end if; return False; end After_Token; function Before_Indentation_Setting_Token (L : in out Instance; T : out Token) return Boolean is begin if After_Token (L, T) then null; end if; if L.State = Inside_Line'Access then L.State := Indentation_Setting_Token'Access; end if; return False; end Before_Indentation_Setting_Token; function After_Json_Enabling_Token (L : in out Instance; T : out Token) return Boolean is begin while L.Cur = ' ' loop L.Cur := Next (L); end loop; loop case L.Cur is when ':' => Start_Token (L); L.Cur := Next (L); T := (Start_Pos => L.Token_Start_Mark, End_Pos => Cur_Mark (L), Kind => Map_Value_Ind); L.State := After_Token'Access; return True; when '#' | Carriage_Return | Line_Feed => End_Line (L); if Flow_Line_Start (L, T) then null; end if; when End_Of_Input => L.State := Stream_End'Access; return False; when others => L.State := Inside_Line'Access; return False; end case; end loop; end After_Json_Enabling_Token; function Line_Indentation (L : in out Instance; T : out Token) return Boolean is begin T := (Start_Pos => (Line => L.Cur_Line, Column => 1, Index => L.Prev_Lines_Chars), End_Pos => Cur_Mark (L), Kind => Indentation); L.State := Indentation_Setting_Token'Access; return True; end Line_Indentation; function Line_Dir_End (L : in out Instance; T : out Token) return Boolean is begin T := (Start_Pos => (Line => L.Cur_Line, Column => 1, Index => L.Prev_Lines_Chars), End_Pos => Cur_Mark (L), Kind => Directives_End); L.State := After_Token'Access; L.Indentation := -1; L.Proposed_Indentation := -1; return True; end Line_Dir_End; -- similar to Indentation_After_Plain_Scalar, but used for a document end -- marker ending a plain scalar. function Line_Doc_End (L : in out Instance; T : out Token) return Boolean is begin T := (Start_Pos => (Line => L.Cur_Line, Column => 1, Index => L.Prev_Lines_Chars), End_Pos => Cur_Mark (L), Kind => Document_End); L.State := Expect_Line_End'Access; L.Line_Start_State := Outside_Doc'Access; return True; end Line_Doc_End; function At_Suffix (L : in out Instance; T : out Token) return Boolean is begin Start_Token (L); while L.Cur in Suffix_Char loop L.Cur := Next (L); end loop; L.Value := L.Pool.From_String (L.Full_Lexeme); T := (Start_Pos => L.Token_Start_Mark, End_Pos => Cur_Mark (L), Kind => Suffix); L.State := After_Suffix'Access; return True; end At_Suffix; function After_Suffix (L : in out Instance; T : out Token) return Boolean is begin L.State := After_Token'Access; if L.Cur = '(' then Start_Token (L); T := (Start_Pos => L.Token_Start_Mark, End_Pos => Cur_Mark (L), Kind => Params_Start); L.Annotation_Depth := L.Annotation_Depth + 1; L.Proposed_Indentation := -1; L.Cur := Next (L); return True; else return False; end if; end After_Suffix; end Yaml.Lexer;
34.829736
101
0.522446
12dd532bd902d156104bbde212dd75d82b65fb1c
9,197
adb
Ada
support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/a-wtmoau.adb
orb-zhuchen/Orb
6da2404b949ac28bde786e08bf4debe4a27cd3a0
[ "CNRI-Python-GPL-Compatible", "MIT" ]
null
null
null
support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/a-wtmoau.adb
orb-zhuchen/Orb
6da2404b949ac28bde786e08bf4debe4a27cd3a0
[ "CNRI-Python-GPL-Compatible", "MIT" ]
null
null
null
support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/a-wtmoau.adb
orb-zhuchen/Orb
6da2404b949ac28bde786e08bf4debe4a27cd3a0
[ "CNRI-Python-GPL-Compatible", "MIT" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- A D A . W I D E _ T E X T _ I O . M O D U L A R _ A U X -- -- -- -- B o d y -- -- -- -- Copyright (C) 1992-2019, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ with Ada.Wide_Text_IO.Generic_Aux; use Ada.Wide_Text_IO.Generic_Aux; with System.Img_BIU; use System.Img_BIU; with System.Img_Uns; use System.Img_Uns; with System.Img_LLB; use System.Img_LLB; with System.Img_LLU; use System.Img_LLU; with System.Img_LLW; use System.Img_LLW; with System.Img_WIU; use System.Img_WIU; with System.Val_Uns; use System.Val_Uns; with System.Val_LLU; use System.Val_LLU; package body Ada.Wide_Text_IO.Modular_Aux is use System.Unsigned_Types; ----------------------- -- Local Subprograms -- ----------------------- procedure Load_Modular (File : File_Type; Buf : out String; Ptr : in out Natural); -- This is an auxiliary routine that is used to load an possibly signed -- modular literal value from the input file into Buf, starting at Ptr + 1. -- Ptr is left set to the last character stored. ------------- -- Get_LLU -- ------------- procedure Get_LLU (File : File_Type; Item : out Long_Long_Unsigned; Width : Field) is Buf : String (1 .. Field'Last); Stop : Integer := 0; Ptr : aliased Integer := 1; begin if Width /= 0 then Load_Width (File, Width, Buf, Stop); String_Skip (Buf, Ptr); else Load_Modular (File, Buf, Stop); end if; Item := Scan_Long_Long_Unsigned (Buf, Ptr'Access, Stop); Check_End_Of_Field (Buf, Stop, Ptr, Width); end Get_LLU; ------------- -- Get_Uns -- ------------- procedure Get_Uns (File : File_Type; Item : out Unsigned; Width : Field) is Buf : String (1 .. Field'Last); Stop : Integer := 0; Ptr : aliased Integer := 1; begin if Width /= 0 then Load_Width (File, Width, Buf, Stop); String_Skip (Buf, Ptr); else Load_Modular (File, Buf, Stop); end if; Item := Scan_Unsigned (Buf, Ptr'Access, Stop); Check_End_Of_Field (Buf, Stop, Ptr, Width); end Get_Uns; -------------- -- Gets_LLU -- -------------- procedure Gets_LLU (From : String; Item : out Long_Long_Unsigned; Last : out Positive) is Pos : aliased Integer; begin String_Skip (From, Pos); Item := Scan_Long_Long_Unsigned (From, Pos'Access, From'Last); Last := Pos - 1; exception when Constraint_Error => raise Data_Error; end Gets_LLU; -------------- -- Gets_Uns -- -------------- procedure Gets_Uns (From : String; Item : out Unsigned; Last : out Positive) is Pos : aliased Integer; begin String_Skip (From, Pos); Item := Scan_Unsigned (From, Pos'Access, From'Last); Last := Pos - 1; exception when Constraint_Error => raise Data_Error; end Gets_Uns; ------------------ -- Load_Modular -- ------------------ procedure Load_Modular (File : File_Type; Buf : out String; Ptr : in out Natural) is Hash_Loc : Natural; Loaded : Boolean; begin Load_Skip (File); -- Note: it is a bit strange to allow a minus sign here, but it seems -- consistent with the general behavior expected by the ACVC tests -- which is to scan past junk and then signal data error, see ACVC -- test CE3704F, case (6), which is for signed integer exponents, -- which seems a similar case. Load (File, Buf, Ptr, '+', '-'); Load_Digits (File, Buf, Ptr, Loaded); if Loaded then -- Deal with based case. We recognize either the standard '#' or the -- allowed alternative replacement ':' (see RM J.2(3)). Load (File, Buf, Ptr, '#', ':', Loaded); if Loaded then Hash_Loc := Ptr; Load_Extended_Digits (File, Buf, Ptr); Load (File, Buf, Ptr, Buf (Hash_Loc)); end if; Load (File, Buf, Ptr, 'E', 'e', Loaded); if Loaded then -- Note: it is strange to allow a minus sign, since the syntax -- does not, but that is what ACVC test CE3704F, case (6) wants -- for the signed case, and there seems no good reason to treat -- exponents differently for the signed and unsigned cases. Load (File, Buf, Ptr, '+', '-'); Load_Digits (File, Buf, Ptr); end if; end if; end Load_Modular; ------------- -- Put_LLU -- ------------- procedure Put_LLU (File : File_Type; Item : Long_Long_Unsigned; Width : Field; Base : Number_Base) is Buf : String (1 .. Field'Last); Ptr : Natural := 0; begin if Base = 10 and then Width = 0 then Set_Image_Long_Long_Unsigned (Item, Buf, Ptr); elsif Base = 10 then Set_Image_Width_Long_Long_Unsigned (Item, Width, Buf, Ptr); else Set_Image_Based_Long_Long_Unsigned (Item, Base, Width, Buf, Ptr); end if; Put_Item (File, Buf (1 .. Ptr)); end Put_LLU; ------------- -- Put_Uns -- ------------- procedure Put_Uns (File : File_Type; Item : Unsigned; Width : Field; Base : Number_Base) is Buf : String (1 .. Field'Last); Ptr : Natural := 0; begin if Base = 10 and then Width = 0 then Set_Image_Unsigned (Item, Buf, Ptr); elsif Base = 10 then Set_Image_Width_Unsigned (Item, Width, Buf, Ptr); else Set_Image_Based_Unsigned (Item, Base, Width, Buf, Ptr); end if; Put_Item (File, Buf (1 .. Ptr)); end Put_Uns; -------------- -- Puts_LLU -- -------------- procedure Puts_LLU (To : out String; Item : Long_Long_Unsigned; Base : Number_Base) is Buf : String (1 .. Field'Last); Ptr : Natural := 0; begin if Base = 10 then Set_Image_Width_Long_Long_Unsigned (Item, To'Length, Buf, Ptr); else Set_Image_Based_Long_Long_Unsigned (Item, Base, To'Length, Buf, Ptr); end if; if Ptr > To'Length then raise Layout_Error; else To (To'First .. To'First + Ptr - 1) := Buf (1 .. Ptr); end if; end Puts_LLU; -------------- -- Puts_Uns -- -------------- procedure Puts_Uns (To : out String; Item : Unsigned; Base : Number_Base) is Buf : String (1 .. Field'Last); Ptr : Natural := 0; begin if Base = 10 then Set_Image_Width_Unsigned (Item, To'Length, Buf, Ptr); else Set_Image_Based_Unsigned (Item, Base, To'Length, Buf, Ptr); end if; if Ptr > To'Length then raise Layout_Error; else To (To'First .. To'First + Ptr - 1) := Buf (1 .. Ptr); end if; end Puts_Uns; end Ada.Wide_Text_IO.Modular_Aux;
30.055556
79
0.505273
23f176e4602bec0d55eb187e7ce7dd2c7a669ac5
6,227
ads
Ada
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/a-calcon.ads
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/a-calcon.ads
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/a-calcon.ads
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- A D A . C A L E N D A R . C O N V E R S I O N S -- -- -- -- 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. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ -- This package provides various routines for conversion between Ada and Unix -- time models - Time, Duration, struct tm and struct timespec. with Interfaces.C; package Ada.Calendar.Conversions is function To_Ada_Time (Unix_Time : Interfaces.C.long) return Time; -- Convert a time value represented as number of seconds since the -- Unix Epoch to a time value relative to an Ada implementation-defined -- Epoch. The units of the result are nanoseconds on all targets. Raises -- Time_Error if the result cannot fit into a Time value. function To_Ada_Time (tm_year : Interfaces.C.int; tm_mon : Interfaces.C.int; tm_day : Interfaces.C.int; tm_hour : Interfaces.C.int; tm_min : Interfaces.C.int; tm_sec : Interfaces.C.int; tm_isdst : Interfaces.C.int) return Time; -- Convert a time value expressed in Unix-like fields of struct tm into -- a Time value relative to the Ada Epoch. The ranges of the formals are -- as follows: -- tm_year -- years since 1900 -- tm_mon -- months since January [0 .. 11] -- tm_day -- day of the month [1 .. 31] -- tm_hour -- hours since midnight [0 .. 24] -- tm_min -- minutes after the hour [0 .. 59] -- tm_sec -- seconds after the minute [0 .. 60] -- tm_isdst -- Daylight Savings Time flag [-1 .. 1] -- The returned value is in UTC and may or may not contain leap seconds -- depending on whether binder flag "-y" was used. Raises Time_Error if -- the input values are out of the defined ranges or if tm_sec equals 60 -- and the instance in time is not a leap second occurrence. function To_Duration (tv_sec : Interfaces.C.long; tv_nsec : Interfaces.C.long) return Duration; -- Convert an elapsed time value expressed in Unix-like fields of struct -- timespec into a Duration value. The expected ranges are: -- tv_sec - seconds -- tv_nsec - nanoseconds procedure To_Struct_Timespec (D : Duration; tv_sec : out Interfaces.C.long; tv_nsec : out Interfaces.C.long); -- Convert a Duration value into the constituents of struct timespec. -- Formal tv_sec denotes seconds and tv_nsecs denotes nanoseconds. procedure To_Struct_Tm (T : Time; tm_year : out Interfaces.C.int; tm_mon : out Interfaces.C.int; tm_day : out Interfaces.C.int; tm_hour : out Interfaces.C.int; tm_min : out Interfaces.C.int; tm_sec : out Interfaces.C.int); -- Convert a Time value set in the Ada Epoch into the constituents of -- struct tm. The ranges of the out formals are as follows: -- tm_year -- years since 1900 -- tm_mon -- months since January [0 .. 11] -- tm_day -- day of the month [1 .. 31] -- tm_hour -- hours since midnight [0 .. 24] -- tm_min -- minutes after the hour [0 .. 59] -- tm_sec -- seconds after the minute [0 .. 60] -- tm_isdst -- Daylight Savings Time flag [-1 .. 1] -- The input date is considered to be in UTC function To_Unix_Time (Ada_Time : Time) return Interfaces.C.long; -- Convert a time value represented as number of time units since the Ada -- implementation-defined Epoch to a value relative to the Unix Epoch. The -- units of the result are seconds. Raises Time_Error if the result cannot -- fit into a Time value. function To_Unix_Nano_Time (Ada_Time : Time) return Interfaces.C.long_long; -- Convert a time value represented as number of time units since the Ada -- implementation-defined Epoch to a value relative to the Unix Epoch. The -- units of the result are nanoseconds. Raises Time_Error if the result -- cannot fit into a Time value. end Ada.Calendar.Conversions;
51.46281
78
0.547615
124bed963d359dcb3c3418482e564e105cacf266
10,932
adb
Ada
polynomial/clenshaw/clenshaw.adb
jscparker/math_packages
b112a90338014d5c2dfae3f7265ee30841fb6cfd
[ "ISC", "MIT" ]
30
2018-12-09T01:15:04.000Z
2022-03-20T16:14:54.000Z
polynomial/clenshaw/clenshaw.adb
jscparker/math_packages
b112a90338014d5c2dfae3f7265ee30841fb6cfd
[ "ISC", "MIT" ]
null
null
null
polynomial/clenshaw/clenshaw.adb
jscparker/math_packages
b112a90338014d5c2dfae3f7265ee30841fb6cfd
[ "ISC", "MIT" ]
null
null
null
----------------------------------------------------------------------- -- package body Clenshaw. Generates functions from recurrance relations. -- Copyright (C) 2018 Jonathan S. Parker -- -- Permission to use, copy, modify, and/or distribute this software for any -- purpose with or without fee is hereby granted, provided that the above -- copyright notice and this permission notice appear in all copies. -- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -- ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF -- OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. --------------------------------------------------------------------------- package body Clenshaw is Zero : constant Real := +0.0; ----------------- -- Evaluate_Qs -- ----------------- -- The recurrance relation for the Q's at X is easily written as matrix -- equation. In the following, f(X) is the given function for Q_0: -- -- Q(0) = Q_0(p,X); -- Q(1) = 0 + Alpha_1*Q_0; -- Q(2) = 0 + Alpha_2*Q_1 + Beta_2*Q_0; -- Q(3) = 0 + Alpha_3*Q_2 + Beta_3*Q_1; -- ... -- Q(N) = 0 + Alpha_N*Q_N-1 + Beta_N*Q_N-2 -- -- In matrix form, M*Q = (f(X), 0, 0, ...) , this becomes: -- -- | 1 0 0 0 | |Q(0)| | Q_0(p,X)| | C_0 | -- | E_1 1 0 0 | |Q(1)| = | 0 | = | C_1 | -- | B_2 E_2 1 0 | |Q(2)| | 0 | | C_2 | -- | 0 B_3 E_3 1 | |Q(3)| | 0 | | C_3 | -- -- where E_m = -Alpha_m, B_m = -Beta_m. -- -- So Q = M_inverse * C is the desired solution, but there may be numerical -- error in the calculation of M_inverse by back-substitution. The -- solution vector Q can be improved numerically by iterative refinement -- via Newton's method: -- -- Q_new = Q_old + M_inverse * (C - M*Q_old) -- -- where Q = M_inverse * C is the calculation of Q given at the top. -- procedure Evaluate_Qs (X : in Real; Q : in out Poly_Values; Max_Poly_ID : in Poly_ID_Type; P : in Real := 0.0; No_Of_Iterations : in Positive := 1) is Product, Del : Poly_Values; m : Poly_ID_Type; begin -- -- Step 0. Initialize excess values of Q to Zero. -- if Max_Poly_ID < Poly_ID_Type'Last then for m in Max_Poly_ID+1 .. Poly_ID_Type'Last loop Q(m) := Zero; end loop; end if; -- -- Step 0. Want zeroth order poly Q_0(p,X). No work to do. -- if Max_Poly_ID = Poly_ID_Type'First then m := Poly_ID_Type'First; Q(m) := Q_0(p,X); end if; -- -- Step 0b. Poly is 1st order. Almost no work to do. -- Don't do any iteration. -- if Max_Poly_ID = Poly_ID_Type'First + 1 then m := Poly_ID_Type'First; Q(m) := Q_0(p,X); m := Poly_ID_Type'First+1; Q(m) := Alpha(m,p,X) * Q(m-1); end if; -- -- Step 1. We now know that Max_Poly_ID > 1. -- Start by getting starting value of Q by solving M*Q = f. -- Use recurrence relation to get Q at X. -- Start with special formulas for the 1st two Q's: -- if Max_Poly_ID > Poly_ID_Type'First + 1 then m := Poly_ID_Type'First; Q(m) := Q_0(p,X); m := Poly_ID_Type'First+1; Q(m) := Alpha(m,p,X) * Q(m-1); for m in Poly_ID_Type'First+2..Max_Poly_ID loop Q(m) := Alpha(m,p,X) * Q(m-1) + Beta(m,p,X) * Q(m-2); end loop; -- -- Step 2. Improve Q numerically through Newton iteration. -- Q_new = Q_old + M_inverse * (C - M*Q_old) -- Iterate: for Iter in 2..No_Of_Iterations loop -- Get Product = M*Q_old: m := Poly_ID_Type'First; Product(m) := Q(m); m := Poly_ID_Type'First+1; Product(m) := Q(m) - Alpha(m,p,X)*Q(m-1); for m in Poly_ID_Type'First+2..Max_Poly_ID loop Product(m) := Q(m) - Alpha(m,p,X)*Q(m-1) - Beta(m,p,X)*Q(m-2); end loop; -- Get Residual = (Q_0(p,X), 0, ... , 0) - M*D_old. Reuse the -- array Product to hold the value of Residual: Product(Poly_ID_Type'First) := Zero; -- Residual is always exactly 0.0 here for m in Poly_ID_Type'First+1 .. Max_Poly_ID loop Product(m) := - Product(m); end loop; -- Get Del = M_inverse * (C - M*Q_old) = M_inverse * Product: m := Max_Poly_ID; Del(m) := Product(m); m := Max_Poly_ID - 1; Del(m) := Product(m) + Alpha(m,p,X)*Del(m-1); for m in Poly_ID_Type'First+2 .. Max_Poly_ID loop Del(m) := Product(m) + Alpha(m,p,X)*Del(m-1) + Beta(m,p,X)*Del(m-2); end loop; -- Get Q_new = Q_old + Del; for m in Poly_ID_Type'First..Max_Poly_ID loop Q(m) := Q(m) + Del(m); end loop; end loop Iterate; end if; end Evaluate_Qs; ------------- -- M_times -- ------------- -- M is Upper-Triangular. -- The elements of M are 1 down the diagonal, and -Alpha(m,p,X) and -- -Beta(m,p,X) down the the off-diagonals. -- function M_times (D : in Coefficients; X : in Real; P : in Real; Sum_Limit : in Poly_ID_Type) return Coefficients is Product : Coefficients; m : Poly_ID_Type; begin -- These inits are amazingly slow! for m in Sum_Limit .. Poly_ID_Type'Last loop Product(m) := Zero; end loop; -- Get Product = M*D: m := Sum_Limit; Product(m) := D(m); if Sum_Limit > Poly_ID_Type'First then m := Sum_Limit - 1; Product(m) := D(m) - Alpha(m+1,p,X)*D(m+1); end if; if Sum_Limit > Poly_ID_Type'First+1 then for m in Poly_ID_Type'First .. Sum_Limit-2 loop Product(m) := D(m) - Alpha(m+1,p,X)*D(m+1) - Beta(m+2,p,X)*D(m+2); end loop; end if; return Product; end M_times; pragma Inline (M_times); --------------------- -- M_inverse_times -- --------------------- -- M is Upper-Triangular so solution is by back-substitution. -- The elements of M are 1 down the diagonal, and -Alpha and -- -Beta down the off-diagonals. -- function M_inverse_times (C : in Coefficients; X : in Real; P : in Real; Sum_Limit : in Poly_ID_Type) return Coefficients is Result : Coefficients; m : Poly_ID_Type; begin -- These inits are amazingly slow! for m in Sum_Limit .. Poly_ID_Type'Last loop Result(m) := Zero; end loop; m := Sum_Limit; Result(m) := C(m); if Sum_Limit > Poly_ID_Type'First then m := Sum_Limit - 1; Result(m) := C(m) + Alpha(m+1,p,X) * Result(m+1); end if; if Sum_Limit > Poly_ID_Type'First+1 then for m in reverse Poly_ID_Type'First .. Sum_Limit-2 loop Result(m) := C(m) + Alpha(m+1,p,X) * Result(m+1) + Beta(m+2,p,X) * Result(m+2); end loop; end if; return Result; end M_inverse_times; pragma Inline (M_inverse_times); --------- -- Sum -- --------- -- This is easily written as matrix equation, with Sum = D(0): -- -- D_n = C_n; -- D_n-1 = C_n-1 + Alpha_n*D_n; -- D_n-2 = C_n-2 + Alpha_n-1*D_n-1 + Beta_n-2*D_n-2; -- ... -- D_1 = C_1 + Alpha_2*D_2 + Beta_3*D_3 -- D_0 = C_0 + Alpha_1*D_1 + Beta_2*D_2 -- -- In matrix form, M*D = C, this becomes: -- -- -- | 1 E_1 B_2 0 | |D(0) | | C(0) | -- | 0 1 E_2 B_3 | |D(1) | | C(1) | -- -- ... -- -- | 1 E_n-2 B_n-1 0 | |D(n-3)| = | C(n-3) | -- | 0 1 E_n-1 B_n | |D(n-2)| | C(n-2) | -- | 0 0 1 E_n | |D(n-1)| | C(n-1) | -- | 0 0 0 1 | |D(n) | | C(n) | -- -- where E_m = -Alpha_m, B_m = -Beta_m. -- -- Can attemp iterative refinement of D with Newton's -- method: -- D_new = D_old + M_inverse * (C - M*D_old) -- -- where D = M_inverse * C is the calculation of D given at the top. if the -- said calculation of D is numerically imperfect, then the iteration above -- will produce improved values of D. Of course, if the Coefficients of -- the polynomials C are numerically poor, then this effort may be wasted. -- function Sum (X : in Real; C : in Coefficients; Sum_Limit : in Poly_ID_Type; P : in Real := 0.0; No_Of_Iterations : in Positive := 1) return Real is Product, Del : Coefficients; -- initialized by M_inverse_times and M_times. D : Coefficients; -- initialized by M_inverse_times. Result : Real := Zero; begin -- -- Step 1. Getting starting value of D (D_old) by solving M*D = C. -- D := M_inverse_times (C, X, p, Sum_Limit); -- -- Step 2. Improve D numerically through Newton iteration. -- D_new = D_old + M_inverse * (C - M*D_old) -- Iterate: for k in 2..No_Of_Iterations loop -- Get Product = M*D_old: Product := M_times (D, X, p, Sum_Limit); -- Get Residual = C - M*D_old. Reuse the array Product -- to hold the value of Residual: for m in Poly_ID_Type'First..Sum_Limit loop Product(m) := C(m) - Product(m); end loop; -- Get Del = M_inverse * (A - M*D_old) = M_inverse * Product: Del := M_inverse_times (Product, X, p, Sum_Limit); -- Get D_new = D_old + Del; for m in Poly_ID_Type'First..Sum_Limit loop D(m) := D(m) + Del(m); end loop; end loop Iterate; Result := D(0) * Q_0 (p, X); return Result; end Sum; end Clenshaw;
31.595376
82
0.490212
df13ef4dfc7399b8af852efd2384eafb97607e8f
2,216
adb
Ada
src/asf-events-faces-actions.adb
jquorning/ada-asf
ddc697c5dfa4e22c57c6958f4cff27e14d02ce98
[ "Apache-2.0" ]
12
2015-01-18T23:02:20.000Z
2022-03-25T15:30:30.000Z
src/asf-events-faces-actions.adb
jquorning/ada-asf
ddc697c5dfa4e22c57c6958f4cff27e14d02ce98
[ "Apache-2.0" ]
3
2021-01-06T09:44:02.000Z
2022-02-04T20:20:53.000Z
src/asf-events-faces-actions.adb
jquorning/ada-asf
ddc697c5dfa4e22c57c6958f4cff27e14d02ce98
[ "Apache-2.0" ]
4
2016-04-12T05:29:00.000Z
2022-01-24T23:53:59.000Z
----------------------------------------------------------------------- -- asf-events-faces-actions -- Actions Events -- 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 body ASF.Events.Faces.Actions is -- ------------------------------ -- Get the method expression to invoke -- ------------------------------ function Get_Method (Event : in Action_Event) return EL.Expressions.Method_Expression is begin return Event.Method; end Get_Method; -- ------------------------------ -- Get the method binding with the Ada bean object to invoke. -- ------------------------------ function Get_Method_Info (Event : in Action_Event; Context : in Contexts.Faces.Faces_Context'Class) return EL.Expressions.Method_Info is begin return Event.Method.Get_Method_Info (Context => Context.Get_ELContext.all); end Get_Method_Info; -- ------------------------------ -- Post an <b>Action_Event</b> on the component. -- ------------------------------ procedure Post_Event (UI : in out Components.Base.UIComponent'Class; Method : in EL.Expressions.Method_Expression) is Ev : constant Action_Event_Access := new Action_Event; begin Ev.Phase := ASF.Events.Phases.INVOKE_APPLICATION; Ev.Component := UI'Unchecked_Access; Ev.Method := Method; UI.Queue_Event (Ev.all'Access); end Post_Event; end ASF.Events.Faces.Actions;
41.811321
91
0.57852
1264e473b768947efa1664195309b02ba264ca56
3,489
ads
Ada
src/natools-web-backends.ads
faelys/natools-web
f7ba99f2ffb6f5a06d1b1e8becbf5f92fd58c750
[ "0BSD" ]
1
2015-04-23T10:48:58.000Z
2015-04-23T10:48:58.000Z
src/natools-web-backends.ads
faelys/natools-web
f7ba99f2ffb6f5a06d1b1e8becbf5f92fd58c750
[ "0BSD" ]
null
null
null
src/natools-web-backends.ads
faelys/natools-web
f7ba99f2ffb6f5a06d1b1e8becbf5f92fd58c750
[ "0BSD" ]
null
null
null
------------------------------------------------------------------------------ -- Copyright (c) 2015, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- purpose with or without fee is hereby granted, provided that the above -- -- copyright notice and this permission notice appear in all copies. -- -- -- -- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -- -- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -- -- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -- -- ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -- -- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -- -- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF -- -- OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -- ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ -- Natools.Web.Backends provides an interface for stream-based backends -- -- used in web elements. -- -- Even though how parameters are used by implementations is not defined, -- -- the following constraints apply: -- -- * Directory and Name have filesystem-like semantics, in that together -- -- they define a unique stream, but distinct streams can have the same -- -- name in a different directory, or different names in the same -- -- directory. -- -- * Directories can be enumerated to reach all the files it contains. -- ------------------------------------------------------------------------------ with Ada.Streams; with Natools.S_Expressions; package Natools.Web.Backends is pragma Preelaborate; type Backend is interface; function Create (Self : in out Backend; Directory, Name : in S_Expressions.Atom) return Ada.Streams.Root_Stream_Type'Class is abstract; -- Create a new file, which must not exist previously procedure Delete (Self : in out Backend; Directory, Name : in S_Expressions.Atom) is abstract; -- Destroy a file, which must exist previously function Read (Self : in Backend; Directory, Name : in S_Expressions.Atom) return Ada.Streams.Root_Stream_Type'Class is abstract; -- Read the contents of an existing file function Append (Self : in out Backend; Directory, Name : in S_Expressions.Atom) return Ada.Streams.Root_Stream_Type'Class is abstract; -- Return a stream to append data to the given file function Overwrite (Self : in out Backend; Directory, Name : in S_Expressions.Atom) return Ada.Streams.Root_Stream_Type'Class is abstract; -- Reset the given file to empty and return a stream to write on it procedure Iterate (Self : in Backend; Directory : in S_Expressions.Atom; Process : not null access procedure (Name : in S_Expressions.Atom)) is abstract; -- Iterate over all the existing file names in Directory end Natools.Web.Backends;
47.148649
78
0.566065
4a24ed2bf8092e89524fff11dc9d1eb01a4b345c
2,099
ads
Ada
.emacs.d/elpa/ada-mode-7.1.4/ada_re2c_c.ads
caqg/linux-home
eed631aae6f5e59e4f46e14f1dff443abca5fa28
[ "Linux-OpenIB" ]
null
null
null
.emacs.d/elpa/ada-mode-7.1.4/ada_re2c_c.ads
caqg/linux-home
eed631aae6f5e59e4f46e14f1dff443abca5fa28
[ "Linux-OpenIB" ]
null
null
null
.emacs.d/elpa/ada-mode-7.1.4/ada_re2c_c.ads
caqg/linux-home
eed631aae6f5e59e4f46e14f1dff443abca5fa28
[ "Linux-OpenIB" ]
null
null
null
-- generated parser support file. -- command line: wisitoken-bnf-generate.exe --generate LALR Ada_Emacs re2c PROCESS ada.wy -- -- Copyright (C) 2013 - 2020 Free Software Foundation, Inc. -- This program is free software; you can redistribute it and/or -- modify it under the terms of the GNU General Public License as -- published by the Free Software Foundation; either version 3, or (at -- your option) any later version. -- -- This software is distributed in the hope that it will be useful, -- but WITHOUT ANY WARRANTY; without even the implied warranty of -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -- General Public License for more details. -- -- You should have received a copy of the GNU General Public License -- along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. with Interfaces.C; with WisiToken; with System; package ada_re2c_c is function New_Lexer (Buffer : in System.Address; Length : in Interfaces.C.size_t; Verbosity : in Interfaces.C.int) return System.Address with Import => True, Convention => C, External_Name => "ada_new_lexer"; -- Create the lexer object, passing it the full text to process. procedure Free_Lexer (Lexer : in out System.Address) with Import => True, Convention => C, External_Name => "ada_free_lexer"; -- Free the lexer object procedure Reset_Lexer (Lexer : in System.Address) with Import => True, Convention => C, External_Name => "ada_reset_lexer"; function Next_Token (Lexer : in System.Address; ID : out WisiToken.Token_ID; Byte_Position : out Interfaces.C.size_t; Byte_Length : out Interfaces.C.size_t; Char_Position : out Interfaces.C.size_t; Char_Length : out Interfaces.C.size_t; Line_Start : out Interfaces.C.int) return Interfaces.C.int with Import => True, Convention => C, External_Name => "ada_next_token"; end ada_re2c_c;
34.983333
91
0.657932
122cb05a868e7f2e52a68f03ca8c81c53c8067a1
18,224
adb
Ada
bb-runtimes/src/s-bbcppr__armv7m.adb
JCGobbi/Nucleo-STM32F334R8
2a0b1b4b2664c92773703ac5e95dcb71979d051c
[ "BSD-3-Clause" ]
null
null
null
bb-runtimes/src/s-bbcppr__armv7m.adb
JCGobbi/Nucleo-STM32F334R8
2a0b1b4b2664c92773703ac5e95dcb71979d051c
[ "BSD-3-Clause" ]
null
null
null
bb-runtimes/src/s-bbcppr__armv7m.adb
JCGobbi/Nucleo-STM32F334R8
2a0b1b4b2664c92773703ac5e95dcb71979d051c
[ "BSD-3-Clause" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- S Y S T E M . B B . C P U _ P R I M I T I V E S -- -- -- -- B o d y -- -- -- -- Copyright (C) 1999-2002 Universidad Politecnica de Madrid -- -- Copyright (C) 2003-2005 The European Space Agency -- -- Copyright (C) 2003-2020, AdaCore -- -- -- -- GNARL is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNARL is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- ------------------------------------------------------------------------------ -- This version is for ARM bareboard targets using the ARMv7-M targets, -- which only use Thumb2 instructions. with Ada.Unchecked_Conversion; use Ada; with System.Multiprocessors; with System.BB.Board_Support; with System.BB.CPU_Specific; with System.BB.Threads; with System.BB.Threads.Queues; with System.Machine_Code; use System.Machine_Code; with System.BB.CPU_Primitives.Context_Switch_Trigger; package body System.BB.CPU_Primitives is use Board_Support; use Board_Support.Time; use System.BB.CPU_Primitives.Context_Switch_Trigger; use Parameters; use Threads.Queues; NL : constant String := ASCII.LF & ASCII.HT; -- New line separator in Asm templates Has_VTOR : constant Boolean := System.BB.Parameters.Has_VTOR; -- Set True iff the Vector Table Offset Register (VTOR) can be used -- (armv7-m architecture or Cortex-M0+). Has_OS_Extensions : constant Boolean := System.BB.Parameters.Has_OS_Extensions; -- Set True iff the core implements the armv6-m OS extensions Is_ARMv6m : constant Boolean := System.BB.Parameters.Is_ARMv6m; -- Set True iff the core implements the armv6-m architecture ----------- -- Traps -- ----------- Reset_Vector : constant Vector_Id := 1; NMI_Vector : constant Vector_Id := 2; Hard_Fault_Vector : constant Vector_Id := 3; -- Mem_Manage_Vector : constant Vector_Id := 4; -- Never referenced Bus_Fault_Vector : constant Vector_Id := 5; Usage_Fault_Vector : constant Vector_Id := 6; SV_Call_Vector : constant Vector_Id := 11; -- Debug_Mon_Vector : constant Vector_Id := 12; -- Never referenced Pend_SV_Vector : constant Vector_Id := 14; Sys_Tick_Vector : constant Vector_Id := 15; Interrupt_Request_Vector : constant Vector_Id := 16; pragma Assert (Interrupt_Request_Vector = Vector_Id'Last); type Trap_Handler_Ptr is access procedure (Id : Vector_Id); function To_Pointer is new Unchecked_Conversion (Address, Trap_Handler_Ptr); type Trap_Handler_Table is array (Vector_Id) of Trap_Handler_Ptr; pragma Suppress_Initialization (Trap_Handler_Table); Trap_Handlers : Trap_Handler_Table; pragma Export (C, Trap_Handlers, "__gnat_bb_exception_handlers"); System_Vectors : constant System.Address; pragma Import (Asm, System_Vectors, "__vectors"); -- As ARMv7M does not directly provide a single-shot alarm timer, and -- we have to use Sys_Tick for that, we need to have this clock generate -- interrupts at a relatively high rate. To avoid unnecessary overhead -- when no alarms are requested, we'll only call the alarm handler if -- the current time exceeds the Alarm_Time by at most half the modulus -- of Timer_Interval. Alarm_Time : Board_Support.Time.Timer_Interval; pragma Volatile (Alarm_Time); pragma Import (C, Alarm_Time, "__gnat_alarm_time"); procedure SV_Call_Handler; pragma Export (Asm, SV_Call_Handler, "__gnat_sv_call_trap"); procedure Sys_Tick_Handler; pragma Export (Asm, Sys_Tick_Handler, "__gnat_sys_tick_trap"); procedure Interrupt_Request_Handler; pragma Export (Asm, Interrupt_Request_Handler, "__gnat_irq_trap"); procedure GNAT_Error_Handler (Trap : Vector_Id); pragma No_Return (GNAT_Error_Handler); ----------------------- -- Context Switching -- ----------------------- -- This port uses the ARMv6/7-M hardware for saving volatile context for -- interrupts, see the Hardware_Context type below for details. Any -- non-volatile registers will be preserved by the interrupt handler in -- the same way as it happens for ordinary procedure calls. -- The non-volatile registers, as well as the value of the stack pointer -- (SP_process) are saved in the Context buffer of the Thread_Descriptor. -- Any non-volatile floating-point registers are saved on the stack. -- R4 .. R11 are at offset 0 .. 7 SP_process : constant Context_Id := 8; type Hardware_Context is record R0, R1, R2, R3 : Word; R12, LR, PC, PSR : Word; end record; VTOR : Address with Volatile, Address => 16#E000_ED08#; -- Vec. Table Offset AIRCR : Word with Volatile, Address => 16#E000_ED0C#; -- App Int/Reset Ctrl CCR : Word with Volatile, Address => 16#E000_ED14#; -- Config. Control SHPR1 : Word with Volatile, Address => 16#E000_ED18#; -- Sys Hand 4- 7 Prio SHPR2 : Word with Volatile, Address => 16#E000_ED1C#; -- Sys Hand 8-11 Prio SHPR3 : Word with Volatile, Address => 16#E000_ED20#; -- Sys Hand 12-15 Prio SHCSR : Word with Volatile, Address => 16#E000_ED24#; -- Sys Hand Ctrl/State function PRIMASK return Word with Inline, Export, Convention => C; -- Function returning the contents of the PRIMASK register ------------- -- PRIMASK -- ------------- function PRIMASK return Word is R : Word; begin Asm ("mrs %0, PRIMASK", Outputs => Word'Asm_Output ("=r", R), Volatile => True); return R; end PRIMASK; -------------------- -- Initialize_CPU -- -------------------- procedure Initialize_CPU is Interrupt_Stack_Table : array (System.Multiprocessors.CPU) of System.Address; pragma Import (Asm, Interrupt_Stack_Table, "interrupt_stack_table"); -- Table containing a pointer to the top of the stack for each processor begin if Has_OS_Extensions then -- Switch the stack pointer to SP_process (PSP) Asm ("mrs r0, MSP" & NL & "msr PSP, r0" & NL & "mrs r0, CONTROL" & NL & "movs r1, #2" & NL & "orr r0,r0,r1" & NL & "msr CONTROL,r0" & NL & "mrs r0, CONTROL", Clobber => "r0,r1", Volatile => True); -- Initialize SP_main (MSP) Asm ("msr MSP, %0", Inputs => Address'Asm_Input ("r", Interrupt_Stack_Table (1)), Volatile => True); end if; if Has_VTOR then -- Initialize vector table VTOR := System_Vectors'Address; end if; -- Set configuration: stack is 8 byte aligned, trap on divide by 0, -- no trap on unaligned access, can enter thread mode from any level. CCR := CCR or 16#211#; -- Set priorities of system handlers. The Pend_SV handler runs at the -- lowest priority, so context switching does not block higher priority -- interrupt handlers. All other system handlers run at the highest -- priority (0), so they will not be interrupted. This is also true for -- the SysTick interrupt, as this interrupt must be serviced promptly in -- order to avoid losing track of time. SHPR1 := 0; SHPR2 := 0; SHPR3 := 16#00_FF_00_00#; if not Is_ARMv6m then -- Write the required key (16#05FA#) and desired PRIGROUP value. We -- configure this to 3, to have 16 group priorities AIRCR := 16#05FA_0300#; pragma Assert (AIRCR = 16#FA05_0300#); -- Key value is swapped end if; -- Enable usage, bus and memory management fault SHCSR := SHCSR or 16#7_0000#; -- Call context switch hardware initialization Initialize_Context_Switch; -- Unmask Fault Asm ("cpsie f", Volatile => True); end Initialize_CPU; ---------------------- -- Initialize_Stack -- ---------------------- procedure Initialize_Stack (Base : Address; Size : Storage_Elements.Storage_Offset; Stack_Pointer : out Address) is use System.Storage_Elements; begin -- Force alignment Stack_Pointer := Base + (Size - (Size mod CPU_Specific.Stack_Alignment)); end Initialize_Stack; -------------------- -- Context_Switch -- -------------------- procedure Context_Switch is begin -- Interrupts must be disabled at this point pragma Assert (PRIMASK = 1); Trigger_Context_Switch; -- Memory must be clobbered, as task switching causes a task to signal, -- which means its memory changes must be visible to all other tasks. Asm ("", Volatile => True, Clobber => "memory"); end Context_Switch; ----------------- -- Get_Context -- ----------------- function Get_Context (Context : Context_Buffer; Index : Context_Id) return Word is (Word (Context (Index))); ------------------------ -- GNAT_Error_Handler -- ------------------------ procedure GNAT_Error_Handler (Trap : Vector_Id) is begin case Trap is when Reset_Vector => raise Program_Error with "unexpected reset"; when NMI_Vector => raise Program_Error with "non-maskable interrupt"; when Hard_Fault_Vector => raise Program_Error with "hard fault"; when Bus_Fault_Vector => raise Program_Error with "bus fault"; when Usage_Fault_Vector => raise Constraint_Error with "usage fault"; when others => raise Program_Error with "unhandled trap"; end case; end GNAT_Error_Handler; ---------------------------------- -- Interrupt_Request_Handler -- -- ---------------------------------- procedure Interrupt_Request_Handler is begin -- Call the handler (System.BB.Interrupts.Interrupt_Wrapper) Trap_Handlers (Interrupt_Request_Vector)(Interrupt_Request_Vector); -- The handler has changed the current priority (BASEPRI), although -- being useless on ARMv7m. We need to revert it. -- The interrupt handler may have scheduled a new task, so we need to -- check whether a context switch is needed. if Has_OS_Extensions then if Context_Switch_Needed then -- Perform a context switch because the currently executing thread -- is no longer the one with the highest priority. -- No need to update execution time. Already done in the wrapper. -- Note that the following context switch is not immediate, but -- will only take effect after interrupts are enabled. Context_Switch; end if; else -- When OS extensions are not available, the context switch will be -- handled in the lower level trap handler: -- __gnat_irq_trap_without_os_extensions null; end if; -- Restore interrupt masking of interrupted thread Enable_Interrupts (Running_Thread.Active_Priority); end Interrupt_Request_Handler; --------------------- -- SV_Call_Handler -- --------------------- procedure SV_Call_Handler is begin GNAT_Error_Handler (SV_Call_Vector); end SV_Call_Handler; ----------------- -- Set_Context -- ----------------- procedure Set_Context (Context : in out Context_Buffer; Index : Context_Id; Value : Word) is begin Context (Index) := Address (Value); end Set_Context; ---------------------- -- Sys_Tick_Handler -- ---------------------- procedure Sys_Tick_Handler is Max_Alarm_Interval : constant Timer_Interval := Timer_Interval'Last / 2; Now : constant Timer_Interval := Timer_Interval (Read_Clock); begin -- The following allows max. efficiency for "useless" tick interrupts if Alarm_Time - Now <= Max_Alarm_Interval then -- Alarm is still in the future, nothing to do, so return quickly return; end if; Alarm_Time := Now + Max_Alarm_Interval; -- Call the alarm handler Trap_Handlers (Sys_Tick_Vector)(Sys_Tick_Vector); -- The interrupt handler may have scheduled a new task if Context_Switch_Needed then Context_Switch; end if; Enable_Interrupts (Running_Thread.Active_Priority); end Sys_Tick_Handler; ------------------------ -- Initialize_Context -- ------------------------ procedure Initialize_Context (Buffer : not null access Context_Buffer; Program_Counter : System.Address; Argument : System.Address; Stack_Pointer : System.Address) is HW_Ctx_Bytes : constant System.Address := Hardware_Context'Size / 8; New_SP : constant System.Address := (Stack_Pointer - HW_Ctx_Bytes) and not 4; HW_Ctx : Hardware_Context with Address => New_SP; begin -- No need to initialize the context of the environment task if Program_Counter = Null_Address then return; end if; HW_Ctx := (R0 => Word (Argument), PC => Word (Program_Counter), PSR => 2**24, -- Set thumb bit others => 0); Buffer.all := (SP_process => New_SP, others => 0); end Initialize_Context; ---------------------------- -- Install_Error_Handlers -- ---------------------------- procedure Install_Error_Handlers is EH : constant Address := GNAT_Error_Handler'Address; begin Install_Trap_Handler (EH, Reset_Vector); Install_Trap_Handler (EH, NMI_Vector); Install_Trap_Handler (EH, Hard_Fault_Vector); Install_Trap_Handler (EH, Bus_Fault_Vector); Install_Trap_Handler (EH, Usage_Fault_Vector); if Has_OS_Extensions then Install_Trap_Handler (EH, Pend_SV_Vector); Install_Trap_Handler (EH, SV_Call_Vector); end if; end Install_Error_Handlers; -------------------------- -- Install_Trap_Handler -- -------------------------- procedure Install_Trap_Handler (Service_Routine : System.Address; Vector : Vector_Id; Synchronous : Boolean := False) is pragma Unreferenced (Synchronous); begin Trap_Handlers (Vector) := To_Pointer (Service_Routine); end Install_Trap_Handler; ------------------------ -- Disable_Interrupts -- ------------------------ procedure Disable_Interrupts is begin Asm ("cpsid i", Volatile => True); end Disable_Interrupts; ----------------------- -- Enable_Interrupts -- ----------------------- procedure Enable_Interrupts (Level : Integer) is procedure Clear_PRIMASK_Register; -- Wrapper around the Clear PRIMASK register instruction ---------------------------- -- Clear_PRIMASK_Register -- ---------------------------- procedure Clear_PRIMASK_Register is begin -- Enabling interrupts will cause any pending interrupts to take -- effect. The instruction barrier is required by the architecture -- to ensure subsequent instructions are executed with interrupts -- enabled and at the right hardware priority level. Asm ("cpsie i" & NL & "isb", Clobber => "memory", Volatile => True); end Clear_PRIMASK_Register; begin if Is_ARMv6m then -- The absence of the BASEPRI register on the ARMv6-M architecture -- means only one interrupt priority can be supported on this -- architecture. Consequently, interrupts have to remain -- disabled while we are at a priority level of Interrupt_Priority, -- otherwise it would allow interrupt handlers to run when a task or -- another interrupt handler is running at this level; creating -- a scenario where a protected object's mutual exclusion may be -- violated. if Level /= Interrupt_Priority'Last then Clear_PRIMASK_Register; end if; else -- Set BASEPRI to mask interrupts below Level and enable interrupts Board_Support.Interrupts.Set_Current_Priority (Level); Clear_PRIMASK_Register; end if; end Enable_Interrupts; end System.BB.CPU_Primitives;
35.11368
79
0.588455
0be662baabe89833205e4eefb09fde125ac23ab8
1,453
ads
Ada
tier-1/xcb/source/thin/xcb-xcb_visualtype_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_visualtype_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_visualtype_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_visualtype_t; with Interfaces.C; with Interfaces.C.Pointers; package xcb.xcb_visualtype_iterator_t is -- Item -- type Item is record data : access xcb.xcb_visualtype_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_visualtype_iterator_t .Item; -- Pointer -- package C_Pointers is new Interfaces.C.Pointers (Index => Interfaces.C.size_t, Element => xcb.xcb_visualtype_iterator_t.Item, Element_Array => xcb.xcb_visualtype_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_visualtype_iterator_t .Pointer; -- Pointer_Pointer -- package C_Pointer_Pointers is new Interfaces.C.Pointers (Index => Interfaces.C.size_t, Element => xcb.xcb_visualtype_iterator_t.Pointer, Element_Array => xcb.xcb_visualtype_iterator_t.Pointer_Array, Default_Terminator => null); subtype Pointer_Pointer is C_Pointer_Pointers.Pointer; end xcb.xcb_visualtype_iterator_t;
26.907407
78
0.671025
10df730932c8d6b1a60d29af77a6b4f210834376
2,689
adb
Ada
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/a-sulcin.adb
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/a-sulcin.adb
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/a-sulcin.adb
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ADA.STRINGS.UNBOUNDED.LESS_CASE_INSENSITIVE -- -- -- -- B o d y -- -- -- -- Copyright (C) 2011-2020, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- This unit was originally developed by Matthew J Heaney. -- ------------------------------------------------------------------------------ with Ada.Strings.Unbounded.Aux; with Ada.Strings.Less_Case_Insensitive; function Ada.Strings.Unbounded.Less_Case_Insensitive (Left, Right : Unbounded.Unbounded_String) return Boolean is SL, SR : Aux.Big_String_Access; LL, LR : Natural; begin Aux.Get_String (Left, SL, LL); Aux.Get_String (Right, SR, LR); return Ada.Strings.Less_Case_Insensitive (Left => SL (1 .. LL), Right => SR (1 .. LR)); end Ada.Strings.Unbounded.Less_Case_Insensitive;
56.020833
78
0.431759
12e0d04b6160fb653e3a4a92c2e77c34457fe067
4,262
ads
Ada
software/hal/hpl/STM32/drivers/debug_stm32f4/stm32-dwt.ads
TUM-EI-RCS/StratoX
5fdd04e01a25efef6052376f43ce85b5bc973392
[ "BSD-3-Clause" ]
12
2017-06-08T14:19:57.000Z
2022-03-09T02:48:59.000Z
software/hal/hpl/STM32/drivers/debug_stm32f4/stm32-dwt.ads
TUM-EI-RCS/StratoX
5fdd04e01a25efef6052376f43ce85b5bc973392
[ "BSD-3-Clause" ]
6
2017-06-08T13:13:50.000Z
2020-05-15T09:32:43.000Z
software/hal/hpl/STM32/drivers/debug_stm32f4/stm32-dwt.ads
TUM-EI-RCS/StratoX
5fdd04e01a25efef6052376f43ce85b5bc973392
[ "BSD-3-Clause" ]
3
2017-06-30T14:05:06.000Z
2022-02-17T12:20:45.000Z
-- Data Watchpoint and Trace (DWT) Unit -- Gives access to cycle counter. pragma Restrictions (No_Elaboration_Code); with Interfaces; use Interfaces; with System; package STM32.DWT is DWT_Core_Base : constant System.Address := System'To_Address (16#E000_1000#); procedure Enable; procedure Disable; -- enable/disable overall DWT functionality procedure Enable_Cycle_Counter; procedure Enable_Sleep_Counter; procedure Disable_Cycle_Counter; procedure Disable_Sleep_Counter; function Read_Cycle_Counter return Unsigned_32; function Read_Sleep_Counter return Unsigned_8; type DWT_Ctrl_Register is record NUMCOMP : HAL.Uint4; Reserved_23_27 : HAL.Uint5; CYCEVTENA : Boolean; FOLDEVTENA : Boolean; LSUEVTENA : Boolean; SLEEPEVTENA : Boolean; EXCEVTENA : Boolean; CPIEVTENA : Boolean; EXCTRCENA : Boolean; Reserved_13_15 : HAL.Uint3; PCSAMPLEENA : Boolean; SYNCTAP : HAL.UInt2; CYCTAP : Boolean; POSTCNT : HAL.Uint4; POSTPRESET : HAL.Uint4; CYCCNTENA : Boolean; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for DWT_Ctrl_Register use record NUMCOMP at 0 range 28 .. 31; Reserved_23_27 at 0 range 23 .. 27; CYCEVTENA at 0 range 22 .. 22; FOLDEVTENA at 0 range 21 .. 21; LSUEVTENA at 0 range 20 .. 20; SLEEPEVTENA at 0 range 19 .. 19; EXCEVTENA at 0 range 18 .. 18; CPIEVTENA at 0 range 17 .. 17; EXCTRCENA at 0 range 16 .. 16; Reserved_13_15 at 0 range 13 .. 15; PCSAMPLEENA at 0 range 12 .. 12; SYNCTAP at 0 range 10 .. 11; CYCTAP at 0 range 9 .. 9; POSTCNT at 0 range 5 .. 8; POSTPRESET at 0 range 1 .. 4; CYCCNTENA at 0 range 0 .. 0; end record; ---------------- -- DWT_Core_T -- ---------------- type DWT_Core_T is record DWT_CTRL : DWT_Ctrl_Register; -- cycle count DWT_CYCCNT : Word; -- additional cycles required to execute multi-cycle -- instructions and instruction fetch stalls DWT_CPICNT : Byte; -- 8..31 reserved -- exception overhead (entry and exit) count DWT_EXCNT : Byte; -- 8..31 reserved -- sleep count DWT_SLEEPCNT : Byte; -- 8..31 reserved -- cycles waiting for Load/Store to complete DWT_LSUCNT : Byte; -- 8..31 reserved -- folded instruction count (saved cycles) DWT_FOLDCNT : Byte; -- 8..31 reserved -- program counter sample reg DWT_PCSR : Word; -- Comparator and Mask Registers DWT_COMP0 : Word; DWT_MASK0 : Word; DWT_FUNC0 : Word; DWT_COMP1 : Word; DWT_MASK1 : Word; DWT_FUNC1 : Word; DWT_COMP2 : Word; DWT_MASK2 : Word; DWT_FUNC2 : Word; DWT_COMP3 : Word; DWT_MASK3 : Word; DWT_FUNC4 : Word; end record with Volatile; for DWT_Core_T use record DWT_CTRL at 0 range 0 .. 31; DWT_CYCCNT at 4 range 0 .. 31; DWT_CPICNT at 8 range 0 .. 7; DWT_EXCNT at 12 range 0 .. 7; DWT_SLEEPCNT at 16 range 0 .. 7; DWT_LSUCNT at 20 range 0 .. 7; DWT_FOLDCNT at 24 range 0 .. 7; DWT_PCSR at 28 range 0 .. 31; DWT_COMP0 at 32 range 0 .. 31; DWT_MASK0 at 36 range 0 .. 31; DWT_FUNC0 at 40 range 0 .. 31; -- there is an address jump DWT_COMP1 at 48 range 0 .. 31; DWT_MASK1 at 52 range 0 .. 31; DWT_FUNC1 at 56 range 0 .. 31; -- another address jump DWT_COMP2 at 64 range 0 .. 31; DWT_MASK2 at 68 range 0 .. 31; DWT_FUNC2 at 72 range 0 .. 31; -- another address jump DWT_COMP3 at 80 range 0 .. 31; DWT_MASK3 at 84 range 0 .. 31; DWT_FUNC4 at 88 range 0 .. 31; -- TODO: PID4..0 end record; Core_DWT : aliased DWT_Core_T with Import, Address => DWT_Core_Base; -- Linker_Section => ".ccmdata"; -- pointer to CCM end STM32.DWT;
31.57037
59
0.578836
0b71df02356a19c4d17de220c52d1d2229b44857
6,524
adb
Ada
examples/test_web.adb
ytomino/web-ada
376fe024e4c8784bd4350a343a1416b79292fbb5
[ "FSFAP" ]
2
2015-02-09T21:09:15.000Z
2021-11-17T19:53:08.000Z
examples/test_web.adb
ytomino/web-ada
376fe024e4c8784bd4350a343a1416b79292fbb5
[ "FSFAP" ]
null
null
null
examples/test_web.adb
ytomino/web-ada
376fe024e4c8784bd4350a343a1416b79292fbb5
[ "FSFAP" ]
null
null
null
with Ada.Calendar; with Ada.Characters.Latin_1; with Ada.Command_Line; with Ada.Directories; with Ada.Streams.Stream_IO; with Ada.Text_IO.Text_Streams; with Web.HTML; with Web.Lock_Files; with Web.Producers; with Web.RSS; pragma Unreferenced (Web.RSS); procedure test_web is use type Ada.Calendar.Time; Verbose : Boolean := False; HT : Character renames Ada.Characters.Latin_1.HT; Template_Source : constant String := "template.html"; Template_Cache : constant String := Ada.Directories.Compose ( Ada.Directories.Containing_Directory (Ada.Command_Line.Command_Name), "template-cache.dat"); Lock_Name : constant String := Ada.Directories.Compose ( Ada.Directories.Containing_Directory (Ada.Command_Line.Command_Name), "lockfile"); Output_Name : constant String := Ada.Directories.Compose ( Ada.Directories.Containing_Directory (Ada.Command_Line.Command_Name), "out"); procedure Check_Line (F : in Ada.Text_IO.File_Type; S : in String) is Line : constant String := Ada.Text_IO.Get_Line (F); begin if Verbose then Ada.Text_IO.Put_Line (Line); end if; pragma Assert (Line = S); end Check_Line; procedure Try_Produce (By_Iterator : Boolean) is Lock : Web.Lock_Files.Lock_Type := Web.Lock_Files.Lock (Lock_Name); Output_File : Ada.Text_IO.File_Type; Output : Ada.Text_IO.Text_Streams.Stream_Access; Template_Source_File : Ada.Streams.Stream_IO.File_Type; Template_Cache_File : Ada.Streams.Stream_IO.File_Type; Is_Cache : Boolean; begin Ada.Text_IO.Create (Output_File, Name => Output_Name); Output := Ada.Text_IO.Text_Streams.Stream (Output_File); Web.Header_Content_Type (Output, Web.Text_HTML); Web.Header_Break (Output); Ada.Streams.Stream_IO.Open ( Template_Source_File, Ada.Streams.Stream_IO.In_File, Name => Template_Source); declare procedure Handler ( Output : not null access Ada.Streams.Root_Stream_Type'Class; Tag : in String; Contents : in Web.Producers.Template) is begin if Tag = "title" then Web.HTML.Write_In_HTML (Output, Web.HTML.HTML, "<<sample>>"); elsif Tag = "generator" then Web.HTML.Write_Begin_Attribute (Output, "content"); if By_Iterator then Web.HTML.Write_In_Attribute (Output, Web.HTML.HTML, "by iterator"); else -- by closure Web.HTML.Write_In_Attribute (Output, Web.HTML.HTML, "by closure"); end if; Web.HTML.Write_End_Attribute (Output); elsif Tag = "href" then String'Write (Output, "href="""); Web.HTML.Write_In_Attribute ( Output, Web.HTML.HTML, "http://www.google.co.jp/search?q=1%2B1"); Character'Write (Output, '"'); elsif Tag = "is_cache" then if Is_Cache then if By_Iterator then for I in Web.Producers.Produce (Output, Contents, "true") loop raise Web.Producers.Data_Error; end loop; else -- by closure Web.Producers.Produce (Output, Contents, "true"); end if; else if By_Iterator then for I in Web.Producers.Produce (Output, Contents, "false") loop raise Web.Producers.Data_Error; end loop; else -- by closure Web.Producers.Produce (Output, Contents, "false"); end if; end if; else raise Web.Producers.Data_Error; end if; end Handler; Template : Web.Producers.Template := Web.Producers.Read ( Ada.Streams.Stream_IO.Stream (Template_Source_File), Ada.Streams.Stream_Element_Count ( Ada.Streams.Stream_IO.Size (Template_Source_File)), Parsing => False); -- suppress parsing now begin if Ada.Directories.Exists (Template_Cache) and then Ada.Directories.Modification_Time (Template_Cache) > Ada.Directories.Modification_Time (Template_Source) then Is_Cache := True; -- read parsed-structure from cache file Ada.Streams.Stream_IO.Open (Template_Cache_File, Ada.Streams.Stream_IO.In_File, Name => Template_Cache); Web.Producers.Read_Parsed_Information ( Ada.Streams.Stream_IO.Stream (Template_Cache_File), Template); Ada.Streams.Stream_IO.Close (Template_Cache_File); else Is_Cache := False; Web.Producers.Parse (Template); -- save parsed-structure to cache file Ada.Streams.Stream_IO.Create ( Template_Cache_File, Ada.Streams.Stream_IO.Out_File, Name => Template_Cache); Web.Producers.Write_Parsed_Information ( Ada.Streams.Stream_IO.Stream (Template_Cache_File), Template); Ada.Streams.Stream_IO.Close (Template_Cache_File); end if; if By_Iterator then for I in Web.Producers.Produce (Output, Template) loop Handler (Output, Web.Producers.Tag (I), Web.Producers.Contents (I)); end loop; else -- by closure Web.Producers.Produce (Output, Template, Handler => Handler'Access); end if; end; Ada.Streams.Stream_IO.Close (Template_Source_File); Ada.Text_IO.Close (Output_File); -- check the content Ada.Text_IO.Open (Output_File, Ada.Text_IO.In_File, Name => Output_Name); Check_Line (Output_File, "content-type: text/html"); Check_Line (Output_File, ""); Check_Line (Output_File, "<html>"); Check_Line (Output_File, "<head>"); Check_Line (Output_File, HT & "<title>&lt;&lt;sample&gt;&gt;</title>"); if By_Iterator then Check_Line ( Output_File, HT & "<meta name=""GENERATOR"" content=""by iterator"" />"); else Check_Line ( Output_File, HT & "<meta name=""GENERATOR"" content=""by closure"" />"); end if; Check_Line (Output_File, "</head>"); Check_Line (Output_File, "<body>"); Check_Line ( Output_File, HT & "<a href=""http://www.google.co.jp/search?q=1%2B1"" >1 + 1 = ?" & "</a><br/>"); if Is_Cache then Check_Line (Output_File, HT & "this is cache."); else Check_Line (Output_File, HT & "this is parsed template."); end if; Check_Line (Output_File, "</body>"); Check_Line (Output_File, "</html>"); pragma Assert (Ada.Text_IO.End_Of_File (Output_File)); Ada.Text_IO.Close (Output_File); end Try_Produce; begin for I in 1 .. Ada.Command_Line.Argument_Count loop if Ada.Command_Line.Argument (I) = "-v" then Verbose := True; end if; end loop; for By_Iterator in Boolean loop for Cached in Boolean loop if not Cached and then Ada.Directories.Exists (Template_Cache) then Ada.Directories.Delete_File (Template_Cache); end if; Try_Produce (By_Iterator); end loop; end loop; pragma Assert (not Ada.Directories.Exists (Lock_Name)); -- finish Ada.Text_IO.Put_Line (Ada.Text_IO.Standard_Error.all, "ok"); end test_web;
34.518519
83
0.699571
0be05aec9c900f15f5efd2de83fbe4bc34d04034
31,987
adb
Ada
Validation/pyFrame3DD-master/gcc-master/gcc/ada/targparm.adb
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
Validation/pyFrame3DD-master/gcc-master/gcc/ada/targparm.adb
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
Validation/pyFrame3DD-master/gcc-master/gcc/ada/targparm.adb
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- T A R G P A R M -- -- -- -- B o d y -- -- -- -- Copyright (C) 1999-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 Csets; use Csets; with Opt; with Osint; use Osint; with Output; use Output; with System.OS_Lib; use System.OS_Lib; package body Targparm is use ASCII; Parameters_Obtained : Boolean := False; -- Set True after first call to Get_Target_Parameters. Used to avoid -- reading system.ads more than once, since it cannot change. -- The following array defines a tag name for each entry type Targparm_Tags is (AAM, -- AAMP ACR, -- Always_Compatible_Rep ASD, -- Atomic_Sync_Default BDC, -- Backend_Divide_Checks BOC, -- Backend_Overflow_Checks CLA, -- Command_Line_Args CRT, -- Configurable_Run_Times D32, -- Duration_32_Bits DEN, -- Denorm EXS, -- Exit_Status_Supported FEL, -- Frontend_Layout FEX, -- Frontend_Exceptions FFO, -- Fractional_Fixed_Ops MOV, -- Machine_Overflows MRN, -- Machine_Rounds PAS, -- Preallocated_Stacks SAG, -- Support_Aggregates SAP, -- Support_Atomic_Primitives SCA, -- Support_Composite_Assign SCC, -- Support_Composite_Compare SCD, -- Stack_Check_Default SCL, -- Stack_Check_Limits SCP, -- Stack_Check_Probes SLS, -- Support_Long_Shifts SNZ, -- Signed_Zeros SSL, -- Suppress_Standard_Library UAM, -- Use_Ada_Main_Program_Name ZCX); -- ZCX_By_Default Targparm_Flags : array (Targparm_Tags) of Boolean := (others => False); -- Flag is set True if corresponding parameter is scanned -- The following list of string constants gives the parameter names AAM_Str : aliased constant Source_Buffer := "AAMP"; ACR_Str : aliased constant Source_Buffer := "Always_Compatible_Rep"; ASD_Str : aliased constant Source_Buffer := "Atomic_Sync_Default"; BDC_Str : aliased constant Source_Buffer := "Backend_Divide_Checks"; BOC_Str : aliased constant Source_Buffer := "Backend_Overflow_Checks"; CLA_Str : aliased constant Source_Buffer := "Command_Line_Args"; CRT_Str : aliased constant Source_Buffer := "Configurable_Run_Time"; D32_Str : aliased constant Source_Buffer := "Duration_32_Bits"; DEN_Str : aliased constant Source_Buffer := "Denorm"; EXS_Str : aliased constant Source_Buffer := "Exit_Status_Supported"; FEL_Str : aliased constant Source_Buffer := "Frontend_Layout"; FEX_Str : aliased constant Source_Buffer := "Frontend_Exceptions"; FFO_Str : aliased constant Source_Buffer := "Fractional_Fixed_Ops"; MOV_Str : aliased constant Source_Buffer := "Machine_Overflows"; MRN_Str : aliased constant Source_Buffer := "Machine_Rounds"; PAS_Str : aliased constant Source_Buffer := "Preallocated_Stacks"; SAG_Str : aliased constant Source_Buffer := "Support_Aggregates"; SAP_Str : aliased constant Source_Buffer := "Support_Atomic_Primitives"; SCA_Str : aliased constant Source_Buffer := "Support_Composite_Assign"; SCC_Str : aliased constant Source_Buffer := "Support_Composite_Compare"; SCD_Str : aliased constant Source_Buffer := "Stack_Check_Default"; SCL_Str : aliased constant Source_Buffer := "Stack_Check_Limits"; SCP_Str : aliased constant Source_Buffer := "Stack_Check_Probes"; SLS_Str : aliased constant Source_Buffer := "Support_Long_Shifts"; SNZ_Str : aliased constant Source_Buffer := "Signed_Zeros"; SSL_Str : aliased constant Source_Buffer := "Suppress_Standard_Library"; UAM_Str : aliased constant Source_Buffer := "Use_Ada_Main_Program_Name"; ZCX_Str : aliased constant Source_Buffer := "ZCX_By_Default"; -- The following defines a set of pointers to the above strings, -- indexed by the tag values. type Buffer_Ptr is access constant Source_Buffer; Targparm_Str : constant array (Targparm_Tags) of Buffer_Ptr := (AAM => AAM_Str'Access, ACR => ACR_Str'Access, ASD => ASD_Str'Access, BDC => BDC_Str'Access, BOC => BOC_Str'Access, CLA => CLA_Str'Access, CRT => CRT_Str'Access, D32 => D32_Str'Access, DEN => DEN_Str'Access, EXS => EXS_Str'Access, FEL => FEL_Str'Access, FEX => FEX_Str'Access, FFO => FFO_Str'Access, MOV => MOV_Str'Access, MRN => MRN_Str'Access, PAS => PAS_Str'Access, SAG => SAG_Str'Access, SAP => SAP_Str'Access, SCA => SCA_Str'Access, SCC => SCC_Str'Access, SCD => SCD_Str'Access, SCL => SCL_Str'Access, SCP => SCP_Str'Access, SLS => SLS_Str'Access, SNZ => SNZ_Str'Access, SSL => SSL_Str'Access, UAM => UAM_Str'Access, ZCX => ZCX_Str'Access); ----------------------- -- Local Subprograms -- ----------------------- procedure Set_Profile_Restrictions (P : Profile_Name); -- Set Restrictions_On_Target for the given profile --------------------------- -- Get_Target_Parameters -- --------------------------- -- Version that reads in system.ads procedure Get_Target_Parameters (Make_Id : Make_Id_Type := null; Make_SC : Make_SC_Type := null; Set_NOD : Set_NOD_Type := null; Set_NSA : Set_NSA_Type := null; Set_NUA : Set_NUA_Type := null; Set_NUP : Set_NUP_Type := null) is FD : File_Descriptor; Hi : Source_Ptr; Text : Source_Buffer_Ptr; begin if Parameters_Obtained then return; end if; Name_Buffer (1 .. 10) := "system.ads"; Name_Len := 10; Read_Source_File (Name_Find, 0, Hi, Text, FD); if Null_Source_Buffer_Ptr (Text) then Write_Line ("fatal error, run-time library not installed correctly"); if FD = Null_FD then Write_Line ("cannot locate file system.ads"); else Write_Line ("no read access for file system.ads"); end if; raise Unrecoverable_Error; end if; Get_Target_Parameters (System_Text => Text, Source_First => 0, Source_Last => Hi, Make_Id => Make_Id, Make_SC => Make_SC, Set_NOD => Set_NOD, Set_NSA => Set_NSA, Set_NUA => Set_NUA, Set_NUP => Set_NUP); end Get_Target_Parameters; -- Version where caller supplies system.ads text procedure Get_Target_Parameters (System_Text : Source_Buffer_Ptr; Source_First : Source_Ptr; Source_Last : Source_Ptr; Make_Id : Make_Id_Type := null; Make_SC : Make_SC_Type := null; Set_NOD : Set_NOD_Type := null; Set_NSA : Set_NSA_Type := null; Set_NUA : Set_NUA_Type := null; Set_NUP : Set_NUP_Type := null) is pragma Assert (System_Text'First = Source_First); pragma Assert (System_Text'Last = Source_Last); P : Source_Ptr; -- Scans source buffer containing source of system.ads Fatal : Boolean := False; -- Set True if a fatal error is detected Result : Boolean; -- Records boolean from system line OK : Boolean; -- Status result from Set_NUP/NSA/NUA call PR_Start : Source_Ptr; -- Pointer to ( following pragma Restrictions procedure Collect_Name; -- Scan a name starting at System_Text (P), and put Name in Name_Buffer, -- with Name_Len being length, folded to lower case. On return, P points -- just past the last character (which should be a right paren). function Looking_At (S : Source_Buffer) return Boolean; -- True if P points to the same text as S in System_Text function Looking_At_Skip (S : Source_Buffer) return Boolean; -- True if P points to the same text as S in System_Text, -- and if True, moves P forward to skip S as a side effect. ------------------ -- Collect_Name -- ------------------ procedure Collect_Name is begin Name_Len := 0; loop if System_Text (P) in 'a' .. 'z' or else System_Text (P) = '_' or else System_Text (P) in '0' .. '9' then Name_Buffer (Name_Len + 1) := System_Text (P); elsif System_Text (P) in 'A' .. 'Z' then Name_Buffer (Name_Len + 1) := Character'Val (Character'Pos (System_Text (P)) + 32); else exit; end if; P := P + 1; Name_Len := Name_Len + 1; end loop; end Collect_Name; ---------------- -- Looking_At -- ---------------- function Looking_At (S : Source_Buffer) return Boolean is Last : constant Source_Ptr := P + S'Length - 1; begin return Last <= System_Text'Last and then System_Text (P .. Last) = S; end Looking_At; --------------------- -- Looking_At_Skip -- --------------------- function Looking_At_Skip (S : Source_Buffer) return Boolean is Result : constant Boolean := Looking_At (S); begin if Result then P := P + S'Length; end if; return Result; end Looking_At_Skip; -- Start of processing for Get_Target_Parameters begin if Parameters_Obtained then return; end if; Parameters_Obtained := True; Opt.Address_Is_Private := False; -- Loop through source lines -- Note: in the case or pragmas, we are only interested in pragmas that -- appear as configuration pragmas. These are left justified, so they -- do not have three spaces at the start. Pragmas appearing within the -- package (like Pure and No_Elaboration_Code_All) will have the three -- spaces at the start and so will be ignored. -- For a special exception, see processing for pragma Pure below P := Source_First; while not Looking_At ("end System;") loop -- Skip comments if Looking_At ("-") then goto Line_Loop_Continue; -- Test for type Address is private elsif Looking_At_Skip (" type Address is private;") then Opt.Address_Is_Private := True; goto Line_Loop_Continue; -- Test for pragma Profile (Ravenscar); elsif Looking_At_Skip ("pragma Profile (Ravenscar);") then Set_Profile_Restrictions (Ravenscar); Opt.Task_Dispatching_Policy := 'F'; Opt.Locking_Policy := 'C'; goto Line_Loop_Continue; -- Test for pragma Profile (Jorvik); elsif Looking_At_Skip ("pragma Profile (Jorvik);") then Set_Profile_Restrictions (Jorvik); Opt.Task_Dispatching_Policy := 'F'; Opt.Locking_Policy := 'C'; goto Line_Loop_Continue; -- Test for pragma Profile (GNAT_Extended_Ravenscar); elsif Looking_At_Skip ("pragma Profile (GNAT_Extended_Ravenscar);") then Set_Profile_Restrictions (GNAT_Extended_Ravenscar); Opt.Task_Dispatching_Policy := 'F'; Opt.Locking_Policy := 'C'; goto Line_Loop_Continue; -- Test for pragma Profile (GNAT_Ravenscar_EDF); elsif Looking_At_Skip ("pragma Profile (GNAT_Ravenscar_EDF);") then Set_Profile_Restrictions (GNAT_Ravenscar_EDF); Opt.Task_Dispatching_Policy := 'E'; Opt.Locking_Policy := 'C'; goto Line_Loop_Continue; -- Test for pragma Profile (Restricted); elsif Looking_At_Skip ("pragma Profile (Restricted);") then Set_Profile_Restrictions (Restricted); goto Line_Loop_Continue; -- Test for pragma Restrictions elsif Looking_At_Skip ("pragma Restrictions (") then PR_Start := P - 1; -- Boolean restrictions for K in All_Boolean_Restrictions loop declare Rname : constant String := Restriction_Id'Image (K); begin for J in Rname'Range loop if Fold_Upper (System_Text (P + Source_Ptr (J - 1))) /= Rname (J) then goto Rloop_Continue; end if; end loop; if System_Text (P + Rname'Length) = ')' then Restrictions_On_Target.Set (K) := True; goto Line_Loop_Continue; end if; end; <<Rloop_Continue>> null; end loop; -- Restrictions taking integer parameter Ploop : for K in Integer_Parameter_Restrictions loop declare Rname : constant String := All_Parameter_Restrictions'Image (K); V : Natural; -- Accumulates value begin for J in Rname'Range loop if Fold_Upper (System_Text (P + Source_Ptr (J - 1))) /= Rname (J) then goto Ploop_Continue; end if; end loop; if System_Text (P + Rname'Length .. P + Rname'Length + 3) = " => " then P := P + Rname'Length + 4; V := 0; loop if System_Text (P) in '0' .. '9' then declare pragma Unsuppress (Overflow_Check); begin -- Accumulate next digit V := 10 * V + Character'Pos (System_Text (P)) - Character'Pos ('0'); exception -- On overflow, we just ignore the pragma since -- that is the standard handling in this case. when Constraint_Error => goto Line_Loop_Continue; end; elsif System_Text (P) = '_' then null; elsif System_Text (P) = ')' then Restrictions_On_Target.Value (K) := V; Restrictions_On_Target.Set (K) := True; goto Line_Loop_Continue; else exit Ploop; end if; P := P + 1; end loop; else exit Ploop; end if; end; <<Ploop_Continue>> null; end loop Ploop; -- No_Dependence case if Looking_At_Skip ("No_Dependence => ") then -- Skip this processing (and simply ignore No_Dependence lines) -- if caller did not supply the three subprograms we need to -- process these lines. if Make_Id = null then goto Line_Loop_Continue; end if; -- We have scanned out "pragma Restrictions (No_Dependence =>" declare Unit : Node_Id; Id : Node_Id; Start : Source_Ptr; begin Unit := Empty; -- Loop through components of name, building up Unit loop Start := P; while System_Text (P) /= '.' and then System_Text (P) /= ')' loop P := P + 1; end loop; Id := Make_Id (System_Text (Start .. P - 1)); -- If first name, just capture the identifier if Unit = Empty then Unit := Id; else Unit := Make_SC (Unit, Id); end if; exit when System_Text (P) = ')'; P := P + 1; end loop; Set_NOD (Unit); goto Line_Loop_Continue; end; -- No_Specification_Of_Aspect case elsif Looking_At_Skip ("No_Specification_Of_Aspect => ") then -- Skip this processing (and simply ignore the pragma), if -- caller did not supply the subprogram we need to process -- such lines. if Set_NSA = null then goto Line_Loop_Continue; end if; -- We have scanned -- "pragma Restrictions (No_Specification_Of_Aspect =>" Collect_Name; if System_Text (P) /= ')' then goto Bad_Restrictions_Pragma; else Set_NSA (Name_Find, OK); if OK then goto Line_Loop_Continue; else goto Bad_Restrictions_Pragma; end if; end if; -- No_Use_Of_Attribute case elsif Looking_At_Skip ("No_Use_Of_Attribute => ") then -- Skip this processing (and simply ignore No_Use_Of_Attribute -- lines) if caller did not supply the subprogram we need to -- process such lines. if Set_NUA = null then goto Line_Loop_Continue; end if; -- We have scanned -- "pragma Restrictions (No_Use_Of_Attribute =>" Collect_Name; if System_Text (P) /= ')' then goto Bad_Restrictions_Pragma; else Set_NUA (Name_Find, OK); if OK then goto Line_Loop_Continue; else goto Bad_Restrictions_Pragma; end if; end if; -- No_Use_Of_Pragma case elsif Looking_At_Skip ("No_Use_Of_Pragma => ") then -- Skip this processing (and simply ignore No_Use_Of_Pragma -- lines) if caller did not supply the subprogram we need to -- process such lines. if Set_NUP = null then goto Line_Loop_Continue; end if; -- We have scanned -- "pragma Restrictions (No_Use_Of_Pragma =>" Collect_Name; if System_Text (P) /= ')' then goto Bad_Restrictions_Pragma; else Set_NUP (Name_Find, OK); if OK then goto Line_Loop_Continue; else goto Bad_Restrictions_Pragma; end if; end if; end if; -- Here if unrecognizable restrictions pragma form <<Bad_Restrictions_Pragma>> Set_Standard_Error; Write_Line ("fatal error: system.ads is incorrectly formatted"); Write_Str ("unrecognized or incorrect restrictions pragma: "); P := PR_Start; loop exit when System_Text (P) = ASCII.LF; Write_Char (System_Text (P)); exit when System_Text (P) = ')'; P := P + 1; end loop; Write_Eol; Fatal := True; Set_Standard_Output; -- Test for pragma Detect_Blocking; elsif Looking_At_Skip ("pragma Detect_Blocking;") then Opt.Detect_Blocking := True; goto Line_Loop_Continue; -- Discard_Names elsif Looking_At_Skip ("pragma Discard_Names;") then Opt.Global_Discard_Names := True; goto Line_Loop_Continue; -- Locking Policy elsif Looking_At_Skip ("pragma Locking_Policy (") then Opt.Locking_Policy := System_Text (P); Opt.Locking_Policy_Sloc := System_Location; goto Line_Loop_Continue; -- Normalize_Scalars elsif Looking_At_Skip ("pragma Normalize_Scalars;") then Opt.Normalize_Scalars := True; Opt.Init_Or_Norm_Scalars := True; goto Line_Loop_Continue; -- Partition_Elaboration_Policy elsif Looking_At_Skip ("pragma Partition_Elaboration_Policy (") then Opt.Partition_Elaboration_Policy := System_Text (P); Opt.Partition_Elaboration_Policy_Sloc := System_Location; goto Line_Loop_Continue; -- Queuing Policy elsif Looking_At_Skip ("pragma Queuing_Policy (") then Opt.Queuing_Policy := System_Text (P); Opt.Queuing_Policy_Sloc := System_Location; goto Line_Loop_Continue; -- Suppress_Exception_Locations elsif Looking_At_Skip ("pragma Suppress_Exception_Locations;") then Opt.Exception_Locations_Suppressed := True; goto Line_Loop_Continue; -- Task_Dispatching Policy elsif Looking_At_Skip ("pragma Task_Dispatching_Policy (") then Opt.Task_Dispatching_Policy := System_Text (P); Opt.Task_Dispatching_Policy_Sloc := System_Location; goto Line_Loop_Continue; -- No other configuration pragmas are permitted elsif Looking_At ("pragma ") then -- Special exception, we allow pragma Pure (System) appearing in -- column one. This is an obsolete usage which may show up in old -- tests with an obsolete version of system.ads, so we recognize -- and ignore it to make life easier in handling such tests. if Looking_At_Skip ("pragma Pure (System);") then goto Line_Loop_Continue; end if; Set_Standard_Error; Write_Line ("unrecognized line in system.ads: "); while System_Text (P) /= ')' and then System_Text (P) /= ASCII.LF loop Write_Char (System_Text (P)); P := P + 1; end loop; Write_Eol; Set_Standard_Output; Fatal := True; -- See if we have a Run_Time_Name elsif Looking_At_Skip (" Run_Time_Name : constant String := """) then Name_Len := 0; while System_Text (P) in 'A' .. 'Z' or else System_Text (P) in 'a' .. 'z' or else System_Text (P) in '0' .. '9' or else System_Text (P) = ' ' or else System_Text (P) = '_' loop Add_Char_To_Name_Buffer (System_Text (P)); P := P + 1; end loop; if System_Text (P) /= '"' or else System_Text (P + 1) /= ';' or else (System_Text (P + 2) /= ASCII.LF and then System_Text (P + 2) /= ASCII.CR) then Set_Standard_Error; Write_Line ("incorrectly formatted Run_Time_Name in system.ads"); Set_Standard_Output; Fatal := True; else Run_Time_Name_On_Target := Name_Enter; end if; goto Line_Loop_Continue; -- See if we have an Executable_Extension elsif Looking_At_Skip (" Executable_Extension : constant String := """) then Name_Len := 0; while System_Text (P) /= '"' and then System_Text (P) /= ASCII.LF loop Add_Char_To_Name_Buffer (System_Text (P)); P := P + 1; end loop; if System_Text (P) /= '"' or else System_Text (P + 1) /= ';' then Set_Standard_Error; Write_Line ("incorrectly formatted Executable_Extension in system.ads"); Set_Standard_Output; Fatal := True; else Executable_Extension_On_Target := Name_Enter; end if; goto Line_Loop_Continue; -- Next see if we have a configuration parameter else Config_Param_Loop : for K in Targparm_Tags loop if Looking_At_Skip (" " & Targparm_Str (K).all) then if Targparm_Flags (K) then Set_Standard_Error; Write_Line ("fatal error: system.ads is incorrectly formatted"); Write_Str ("duplicate line for parameter: "); for J in Targparm_Str (K)'Range loop Write_Char (Targparm_Str (K).all (J)); end loop; Write_Eol; Set_Standard_Output; Fatal := True; else Targparm_Flags (K) := True; end if; while System_Text (P) /= ':' or else System_Text (P + 1) /= '=' loop P := P + 1; end loop; P := P + 2; while System_Text (P) = ' ' loop P := P + 1; end loop; Result := (System_Text (P) = 'T'); case K is when AAM => null; when ACR => Always_Compatible_Rep_On_Target := Result; when ASD => Atomic_Sync_Default_On_Target := Result; when BDC => Backend_Divide_Checks_On_Target := Result; when BOC => Backend_Overflow_Checks_On_Target := Result; when CLA => Command_Line_Args_On_Target := Result; when CRT => Configurable_Run_Time_On_Target := Result; when D32 => Duration_32_Bits_On_Target := Result; when DEN => Denorm_On_Target := Result; when EXS => Exit_Status_Supported_On_Target := Result; when FEL => null; when FEX => Frontend_Exceptions_On_Target := Result; when FFO => Fractional_Fixed_Ops_On_Target := Result; when MOV => Machine_Overflows_On_Target := Result; when MRN => Machine_Rounds_On_Target := Result; when PAS => Preallocated_Stacks_On_Target := Result; when SAG => Support_Aggregates_On_Target := Result; when SAP => Support_Atomic_Primitives_On_Target := Result; when SCA => Support_Composite_Assign_On_Target := Result; when SCC => Support_Composite_Compare_On_Target := Result; when SCD => Stack_Check_Default_On_Target := Result; when SCL => Stack_Check_Limits_On_Target := Result; when SCP => Stack_Check_Probes_On_Target := Result; when SLS => Support_Long_Shifts_On_Target := Result; when SSL => Suppress_Standard_Library_On_Target := Result; when SNZ => Signed_Zeros_On_Target := Result; when UAM => Use_Ada_Main_Program_Name_On_Target := Result; when ZCX => ZCX_By_Default_On_Target := Result; goto Line_Loop_Continue; end case; -- Here we are seeing a parameter we do not understand. We -- simply ignore this (will happen when an old compiler is -- used to compile a newer version of GNAT which does not -- support the parameter). end if; end loop Config_Param_Loop; end if; -- Here after processing one line of System spec <<Line_Loop_Continue>> while P < Source_Last and then System_Text (P) /= CR and then System_Text (P) /= LF loop P := P + 1; end loop; while P < Source_Last and then (System_Text (P) = CR or else System_Text (P) = LF) loop P := P + 1; end loop; if P >= Source_Last then Set_Standard_Error; Write_Line ("fatal error, system.ads not formatted correctly"); Write_Line ("unexpected end of file"); Set_Standard_Output; raise Unrecoverable_Error; end if; end loop; if Fatal then raise Unrecoverable_Error; end if; end Get_Target_Parameters; ------------------------------ -- Set_Profile_Restrictions -- ------------------------------ procedure Set_Profile_Restrictions (P : Profile_Name) is R : Restriction_Flags renames Profile_Info (P).Set; V : Restriction_Values renames Profile_Info (P).Value; begin for J in R'Range loop if R (J) then Restrictions_On_Target.Set (J) := True; if J in All_Parameter_Restrictions then Restrictions_On_Target.Value (J) := V (J); end if; end if; end loop; end Set_Profile_Restrictions; end Targparm;
35.620267
79
0.512302
5072167272782cb63f243665d9e5dafd36ed272c
23,737
ads
Ada
MergeSort/b__main.ads
M1nified/Ada-Samples
0943d028b533f43a8eb56b291189311edc77e15c
[ "MIT" ]
null
null
null
MergeSort/b__main.ads
M1nified/Ada-Samples
0943d028b533f43a8eb56b291189311edc77e15c
[ "MIT" ]
null
null
null
MergeSort/b__main.ads
M1nified/Ada-Samples
0943d028b533f43a8eb56b291189311edc77e15c
[ "MIT" ]
null
null
null
pragma Ada_95; pragma Warnings (Off); with System; package ada_main is gnat_argc : Integer; gnat_argv : System.Address; gnat_envp : System.Address; pragma Import (C, gnat_argc); pragma Import (C, gnat_argv); pragma Import (C, gnat_envp); gnat_exit_status : Integer; pragma Import (C, gnat_exit_status); GNAT_Version : constant String := "GNAT Version: GPL 2016 (20160515-49)" & ASCII.NUL; pragma Export (C, GNAT_Version, "__gnat_version"); Ada_Main_Program_Name : constant String := "_ada_main" & ASCII.NUL; pragma Export (C, Ada_Main_Program_Name, "__gnat_ada_main_program_name"); procedure adainit; pragma Export (C, adainit, "adainit"); procedure adafinal; pragma Export (C, adafinal, "adafinal"); function main (argc : Integer; argv : System.Address; envp : System.Address) return Integer; pragma Export (C, main, "main"); type Version_32 is mod 2 ** 32; u00001 : constant Version_32 := 16#fae04820#; pragma Export (C, u00001, "mainB"); u00002 : constant Version_32 := 16#b6df930e#; pragma Export (C, u00002, "system__standard_libraryB"); u00003 : constant Version_32 := 16#ddf3267e#; pragma Export (C, u00003, "system__standard_libraryS"); u00004 : constant Version_32 := 16#3ffc8e18#; pragma Export (C, u00004, "adaS"); u00005 : constant Version_32 := 16#3ea7406d#; pragma Export (C, u00005, "ada__real_timeB"); u00006 : constant Version_32 := 16#8a504209#; pragma Export (C, u00006, "ada__real_timeS"); u00007 : constant Version_32 := 16#da4d2671#; pragma Export (C, u00007, "ada__exceptionsB"); u00008 : constant Version_32 := 16#4c8cceba#; pragma Export (C, u00008, "ada__exceptionsS"); u00009 : constant Version_32 := 16#e947e6a9#; pragma Export (C, u00009, "ada__exceptions__last_chance_handlerB"); u00010 : constant Version_32 := 16#41e5552e#; pragma Export (C, u00010, "ada__exceptions__last_chance_handlerS"); u00011 : constant Version_32 := 16#2da59038#; pragma Export (C, u00011, "systemS"); u00012 : constant Version_32 := 16#5f84b5ab#; pragma Export (C, u00012, "system__soft_linksB"); u00013 : constant Version_32 := 16#b321486d#; pragma Export (C, u00013, "system__soft_linksS"); u00014 : constant Version_32 := 16#b01dad17#; pragma Export (C, u00014, "system__parametersB"); u00015 : constant Version_32 := 16#538f9d47#; pragma Export (C, u00015, "system__parametersS"); u00016 : constant Version_32 := 16#0f0cb66d#; pragma Export (C, u00016, "system__secondary_stackB"); u00017 : constant Version_32 := 16#86c45f51#; pragma Export (C, u00017, "system__secondary_stackS"); u00018 : constant Version_32 := 16#39a03df9#; pragma Export (C, u00018, "system__storage_elementsB"); u00019 : constant Version_32 := 16#0066da3c#; pragma Export (C, u00019, "system__storage_elementsS"); u00020 : constant Version_32 := 16#41837d1e#; pragma Export (C, u00020, "system__stack_checkingB"); u00021 : constant Version_32 := 16#a31afbd0#; pragma Export (C, u00021, "system__stack_checkingS"); u00022 : constant Version_32 := 16#87a448ff#; pragma Export (C, u00022, "system__exception_tableB"); u00023 : constant Version_32 := 16#700bf97a#; pragma Export (C, u00023, "system__exception_tableS"); u00024 : constant Version_32 := 16#ce4af020#; pragma Export (C, u00024, "system__exceptionsB"); u00025 : constant Version_32 := 16#45c6fdce#; pragma Export (C, u00025, "system__exceptionsS"); u00026 : constant Version_32 := 16#4c9e814d#; pragma Export (C, u00026, "system__exceptions__machineS"); u00027 : constant Version_32 := 16#aa0563fc#; pragma Export (C, u00027, "system__exceptions_debugB"); u00028 : constant Version_32 := 16#532f69fc#; pragma Export (C, u00028, "system__exceptions_debugS"); u00029 : constant Version_32 := 16#6c2f8802#; pragma Export (C, u00029, "system__img_intB"); u00030 : constant Version_32 := 16#2f7e70fa#; pragma Export (C, u00030, "system__img_intS"); u00031 : constant Version_32 := 16#39df8c17#; pragma Export (C, u00031, "system__tracebackB"); u00032 : constant Version_32 := 16#73874efc#; pragma Export (C, u00032, "system__tracebackS"); u00033 : constant Version_32 := 16#9ed49525#; pragma Export (C, u00033, "system__traceback_entriesB"); u00034 : constant Version_32 := 16#2dfe6648#; pragma Export (C, u00034, "system__traceback_entriesS"); u00035 : constant Version_32 := 16#d2b6296c#; pragma Export (C, u00035, "system__traceback__symbolicB"); u00036 : constant Version_32 := 16#dd19f67a#; pragma Export (C, u00036, "system__traceback__symbolicS"); u00037 : constant Version_32 := 16#701f9d88#; pragma Export (C, u00037, "ada__exceptions__tracebackB"); u00038 : constant Version_32 := 16#20245e75#; pragma Export (C, u00038, "ada__exceptions__tracebackS"); u00039 : constant Version_32 := 16#5d344636#; pragma Export (C, u00039, "system__crtlS"); u00040 : constant Version_32 := 16#b6a35849#; pragma Export (C, u00040, "system__dwarf_linesB"); u00041 : constant Version_32 := 16#44249c75#; pragma Export (C, u00041, "system__dwarf_linesS"); u00042 : constant Version_32 := 16#12c24a43#; pragma Export (C, u00042, "ada__charactersS"); u00043 : constant Version_32 := 16#8f637df8#; pragma Export (C, u00043, "ada__characters__handlingB"); u00044 : constant Version_32 := 16#3b3f6154#; pragma Export (C, u00044, "ada__characters__handlingS"); u00045 : constant Version_32 := 16#4b7bb96a#; pragma Export (C, u00045, "ada__characters__latin_1S"); u00046 : constant Version_32 := 16#af50e98f#; pragma Export (C, u00046, "ada__stringsS"); u00047 : constant Version_32 := 16#e2ea8656#; pragma Export (C, u00047, "ada__strings__mapsB"); u00048 : constant Version_32 := 16#1e526bec#; pragma Export (C, u00048, "ada__strings__mapsS"); u00049 : constant Version_32 := 16#4a6f6ca4#; pragma Export (C, u00049, "system__bit_opsB"); u00050 : constant Version_32 := 16#0765e3a3#; pragma Export (C, u00050, "system__bit_opsS"); u00051 : constant Version_32 := 16#1923ecbb#; pragma Export (C, u00051, "system__unsigned_typesS"); u00052 : constant Version_32 := 16#92f05f13#; pragma Export (C, u00052, "ada__strings__maps__constantsS"); u00053 : constant Version_32 := 16#5ab55268#; pragma Export (C, u00053, "interfacesS"); u00054 : constant Version_32 := 16#57a37a42#; pragma Export (C, u00054, "system__address_imageB"); u00055 : constant Version_32 := 16#8c490d02#; pragma Export (C, u00055, "system__address_imageS"); u00056 : constant Version_32 := 16#ec78c2bf#; pragma Export (C, u00056, "system__img_unsB"); u00057 : constant Version_32 := 16#86d7d04c#; pragma Export (C, u00057, "system__img_unsS"); u00058 : constant Version_32 := 16#d7aac20c#; pragma Export (C, u00058, "system__ioB"); u00059 : constant Version_32 := 16#b3e76777#; pragma Export (C, u00059, "system__ioS"); u00060 : constant Version_32 := 16#cf909744#; pragma Export (C, u00060, "system__object_readerB"); u00061 : constant Version_32 := 16#6942daaf#; pragma Export (C, u00061, "system__object_readerS"); u00062 : constant Version_32 := 16#769e25e6#; pragma Export (C, u00062, "interfaces__cB"); u00063 : constant Version_32 := 16#70be4e8c#; pragma Export (C, u00063, "interfaces__cS"); u00064 : constant Version_32 := 16#1a74a354#; pragma Export (C, u00064, "system__val_lliB"); u00065 : constant Version_32 := 16#b7817698#; pragma Export (C, u00065, "system__val_lliS"); u00066 : constant Version_32 := 16#afdbf393#; pragma Export (C, u00066, "system__val_lluB"); u00067 : constant Version_32 := 16#63d1bbc9#; pragma Export (C, u00067, "system__val_lluS"); u00068 : constant Version_32 := 16#27b600b2#; pragma Export (C, u00068, "system__val_utilB"); u00069 : constant Version_32 := 16#810526c6#; pragma Export (C, u00069, "system__val_utilS"); u00070 : constant Version_32 := 16#d1060688#; pragma Export (C, u00070, "system__case_utilB"); u00071 : constant Version_32 := 16#09acf9ef#; pragma Export (C, u00071, "system__case_utilS"); u00072 : constant Version_32 := 16#84a27f0d#; pragma Export (C, u00072, "interfaces__c_streamsB"); u00073 : constant Version_32 := 16#b1330297#; pragma Export (C, u00073, "interfaces__c_streamsS"); u00074 : constant Version_32 := 16#931ff6be#; pragma Export (C, u00074, "system__exception_tracesB"); u00075 : constant Version_32 := 16#097ab0a2#; pragma Export (C, u00075, "system__exception_tracesS"); u00076 : constant Version_32 := 16#ce7de326#; pragma Export (C, u00076, "system__win32S"); u00077 : constant Version_32 := 16#8c33a517#; pragma Export (C, u00077, "system__wch_conB"); u00078 : constant Version_32 := 16#36d8b2ea#; pragma Export (C, u00078, "system__wch_conS"); u00079 : constant Version_32 := 16#9721e840#; pragma Export (C, u00079, "system__wch_stwB"); u00080 : constant Version_32 := 16#1bc99eeb#; pragma Export (C, u00080, "system__wch_stwS"); u00081 : constant Version_32 := 16#a831679c#; pragma Export (C, u00081, "system__wch_cnvB"); u00082 : constant Version_32 := 16#396f0819#; pragma Export (C, u00082, "system__wch_cnvS"); u00083 : constant Version_32 := 16#ece6fdb6#; pragma Export (C, u00083, "system__wch_jisB"); u00084 : constant Version_32 := 16#b91f1138#; pragma Export (C, u00084, "system__wch_jisS"); u00085 : constant Version_32 := 16#044a9dc0#; pragma Export (C, u00085, "system__taskingB"); u00086 : constant Version_32 := 16#a52e3c8f#; pragma Export (C, u00086, "system__taskingS"); u00087 : constant Version_32 := 16#d81a47c0#; pragma Export (C, u00087, "system__task_primitivesS"); u00088 : constant Version_32 := 16#2dd04756#; pragma Export (C, u00088, "system__os_interfaceS"); u00089 : constant Version_32 := 16#f5163a3e#; pragma Export (C, u00089, "interfaces__c__stringsB"); u00090 : constant Version_32 := 16#603c1c44#; pragma Export (C, u00090, "interfaces__c__stringsS"); u00091 : constant Version_32 := 16#3dfacd19#; pragma Export (C, u00091, "system__task_primitives__operationsB"); u00092 : constant Version_32 := 16#26d8e313#; pragma Export (C, u00092, "system__task_primitives__operationsS"); u00093 : constant Version_32 := 16#1b28662b#; pragma Export (C, u00093, "system__float_controlB"); u00094 : constant Version_32 := 16#cd59d304#; pragma Export (C, u00094, "system__float_controlS"); u00095 : constant Version_32 := 16#da8ccc08#; pragma Export (C, u00095, "system__interrupt_managementB"); u00096 : constant Version_32 := 16#1065b90c#; pragma Export (C, u00096, "system__interrupt_managementS"); u00097 : constant Version_32 := 16#f65595cf#; pragma Export (C, u00097, "system__multiprocessorsB"); u00098 : constant Version_32 := 16#15090f4b#; pragma Export (C, u00098, "system__multiprocessorsS"); u00099 : constant Version_32 := 16#a99e1d66#; pragma Export (C, u00099, "system__os_primitivesB"); u00100 : constant Version_32 := 16#a72a814e#; pragma Export (C, u00100, "system__os_primitivesS"); u00101 : constant Version_32 := 16#b6166bc6#; pragma Export (C, u00101, "system__task_lockB"); u00102 : constant Version_32 := 16#4c2fa756#; pragma Export (C, u00102, "system__task_lockS"); u00103 : constant Version_32 := 16#1a9147da#; pragma Export (C, u00103, "system__win32__extS"); u00104 : constant Version_32 := 16#77769007#; pragma Export (C, u00104, "system__task_infoB"); u00105 : constant Version_32 := 16#fa4399cf#; pragma Export (C, u00105, "system__task_infoS"); u00106 : constant Version_32 := 16#ab9ad34e#; pragma Export (C, u00106, "system__tasking__debugB"); u00107 : constant Version_32 := 16#f1f2435f#; pragma Export (C, u00107, "system__tasking__debugS"); u00108 : constant Version_32 := 16#fd83e873#; pragma Export (C, u00108, "system__concat_2B"); u00109 : constant Version_32 := 16#2f0547e8#; pragma Export (C, u00109, "system__concat_2S"); u00110 : constant Version_32 := 16#2b70b149#; pragma Export (C, u00110, "system__concat_3B"); u00111 : constant Version_32 := 16#26d5cc9d#; pragma Export (C, u00111, "system__concat_3S"); u00112 : constant Version_32 := 16#d0432c8d#; pragma Export (C, u00112, "system__img_enum_newB"); u00113 : constant Version_32 := 16#4ce996f8#; pragma Export (C, u00113, "system__img_enum_newS"); u00114 : constant Version_32 := 16#118e865d#; pragma Export (C, u00114, "system__stack_usageB"); u00115 : constant Version_32 := 16#3a3ac346#; pragma Export (C, u00115, "system__stack_usageS"); u00116 : constant Version_32 := 16#920eada5#; pragma Export (C, u00116, "ada__tagsB"); u00117 : constant Version_32 := 16#13ca27f3#; pragma Export (C, u00117, "ada__tagsS"); u00118 : constant Version_32 := 16#c3335bfd#; pragma Export (C, u00118, "system__htableB"); u00119 : constant Version_32 := 16#a96723d2#; pragma Export (C, u00119, "system__htableS"); u00120 : constant Version_32 := 16#089f5cd0#; pragma Export (C, u00120, "system__string_hashB"); u00121 : constant Version_32 := 16#0b3948ac#; pragma Export (C, u00121, "system__string_hashS"); u00122 : constant Version_32 := 16#1d9142a4#; pragma Export (C, u00122, "system__val_unsB"); u00123 : constant Version_32 := 16#098b0180#; pragma Export (C, u00123, "system__val_unsS"); u00124 : constant Version_32 := 16#d5bfa9f3#; pragma Export (C, u00124, "ada__text_ioB"); u00125 : constant Version_32 := 16#c3f01c15#; pragma Export (C, u00125, "ada__text_ioS"); u00126 : constant Version_32 := 16#10558b11#; pragma Export (C, u00126, "ada__streamsB"); u00127 : constant Version_32 := 16#2e6701ab#; pragma Export (C, u00127, "ada__streamsS"); u00128 : constant Version_32 := 16#db5c917c#; pragma Export (C, u00128, "ada__io_exceptionsS"); u00129 : constant Version_32 := 16#b29d05bd#; pragma Export (C, u00129, "system__file_ioB"); u00130 : constant Version_32 := 16#8ad4715d#; pragma Export (C, u00130, "system__file_ioS"); u00131 : constant Version_32 := 16#cf417de3#; pragma Export (C, u00131, "ada__finalizationS"); u00132 : constant Version_32 := 16#95817ed8#; pragma Export (C, u00132, "system__finalization_rootB"); u00133 : constant Version_32 := 16#6257e3a8#; pragma Export (C, u00133, "system__finalization_rootS"); u00134 : constant Version_32 := 16#9dd55695#; pragma Export (C, u00134, "system__os_libB"); u00135 : constant Version_32 := 16#bf5ce13f#; pragma Export (C, u00135, "system__os_libS"); u00136 : constant Version_32 := 16#1a817b8e#; pragma Export (C, u00136, "system__stringsB"); u00137 : constant Version_32 := 16#531a815e#; pragma Export (C, u00137, "system__stringsS"); u00138 : constant Version_32 := 16#d03a0a90#; pragma Export (C, u00138, "system__file_control_blockS"); u00139 : constant Version_32 := 16#3cc73d8e#; pragma Export (C, u00139, "system__tasking__rendezvousB"); u00140 : constant Version_32 := 16#3e44c873#; pragma Export (C, u00140, "system__tasking__rendezvousS"); u00141 : constant Version_32 := 16#100eaf58#; pragma Export (C, u00141, "system__restrictionsB"); u00142 : constant Version_32 := 16#8405da99#; pragma Export (C, u00142, "system__restrictionsS"); u00143 : constant Version_32 := 16#72d3cb03#; pragma Export (C, u00143, "system__tasking__entry_callsB"); u00144 : constant Version_32 := 16#ddf2aa0b#; pragma Export (C, u00144, "system__tasking__entry_callsS"); u00145 : constant Version_32 := 16#5f5b1a91#; pragma Export (C, u00145, "system__tasking__initializationB"); u00146 : constant Version_32 := 16#ed62fcff#; pragma Export (C, u00146, "system__tasking__initializationS"); u00147 : constant Version_32 := 16#4fa7bdc7#; pragma Export (C, u00147, "system__soft_links__taskingB"); u00148 : constant Version_32 := 16#5ae92880#; pragma Export (C, u00148, "system__soft_links__taskingS"); u00149 : constant Version_32 := 16#17d21067#; pragma Export (C, u00149, "ada__exceptions__is_null_occurrenceB"); u00150 : constant Version_32 := 16#e1d7566f#; pragma Export (C, u00150, "ada__exceptions__is_null_occurrenceS"); u00151 : constant Version_32 := 16#d89f9b67#; pragma Export (C, u00151, "system__tasking__task_attributesB"); u00152 : constant Version_32 := 16#a1da3c09#; pragma Export (C, u00152, "system__tasking__task_attributesS"); u00153 : constant Version_32 := 16#5933ea28#; pragma Export (C, u00153, "system__tasking__protected_objectsB"); u00154 : constant Version_32 := 16#5744f344#; pragma Export (C, u00154, "system__tasking__protected_objectsS"); u00155 : constant Version_32 := 16#ee80728a#; pragma Export (C, u00155, "system__tracesB"); u00156 : constant Version_32 := 16#dfb8f892#; pragma Export (C, u00156, "system__tracesS"); u00157 : constant Version_32 := 16#3ea9332d#; pragma Export (C, u00157, "system__tasking__protected_objects__entriesB"); u00158 : constant Version_32 := 16#a0c7bfc6#; pragma Export (C, u00158, "system__tasking__protected_objects__entriesS"); u00159 : constant Version_32 := 16#6f8919f6#; pragma Export (C, u00159, "system__tasking__protected_objects__operationsB"); u00160 : constant Version_32 := 16#902e29cd#; pragma Export (C, u00160, "system__tasking__protected_objects__operationsS"); u00161 : constant Version_32 := 16#94c4f9d9#; pragma Export (C, u00161, "system__tasking__queuingB"); u00162 : constant Version_32 := 16#05e644a6#; pragma Export (C, u00162, "system__tasking__queuingS"); u00163 : constant Version_32 := 16#c6ee4b22#; pragma Export (C, u00163, "system__tasking__utilitiesB"); u00164 : constant Version_32 := 16#deb05b52#; pragma Export (C, u00164, "system__tasking__utilitiesS"); u00165 : constant Version_32 := 16#bd6fc52e#; pragma Export (C, u00165, "system__traces__taskingB"); u00166 : constant Version_32 := 16#0b40d4b2#; pragma Export (C, u00166, "system__traces__taskingS"); u00167 : constant Version_32 := 16#d2210985#; pragma Export (C, u00167, "system__tasking__stagesB"); u00168 : constant Version_32 := 16#c1acd10e#; pragma Export (C, u00168, "system__tasking__stagesS"); u00169 : constant Version_32 := 16#ee101ba4#; pragma Export (C, u00169, "system__memoryB"); u00170 : constant Version_32 := 16#74d8f60c#; pragma Export (C, u00170, "system__memoryS"); -- BEGIN ELABORATION ORDER -- ada%s -- ada.characters%s -- ada.characters.handling%s -- ada.characters.latin_1%s -- interfaces%s -- system%s -- system.case_util%s -- system.case_util%b -- system.float_control%s -- system.float_control%b -- system.htable%s -- system.img_enum_new%s -- system.img_enum_new%b -- system.img_int%s -- system.img_int%b -- system.io%s -- system.io%b -- system.multiprocessors%s -- system.os_primitives%s -- system.parameters%s -- system.parameters%b -- system.crtl%s -- interfaces.c_streams%s -- interfaces.c_streams%b -- system.restrictions%s -- system.restrictions%b -- system.standard_library%s -- system.exceptions_debug%s -- system.exceptions_debug%b -- system.storage_elements%s -- system.storage_elements%b -- system.stack_checking%s -- system.stack_checking%b -- system.stack_usage%s -- system.stack_usage%b -- system.string_hash%s -- system.string_hash%b -- system.htable%b -- system.strings%s -- system.strings%b -- system.os_lib%s -- system.task_lock%s -- system.traceback_entries%s -- system.traceback_entries%b -- ada.exceptions%s -- ada.exceptions.is_null_occurrence%s -- ada.exceptions.is_null_occurrence%b -- system.soft_links%s -- system.task_lock%b -- system.traces%s -- system.traces%b -- system.unsigned_types%s -- system.img_uns%s -- system.img_uns%b -- system.val_lli%s -- system.val_llu%s -- system.val_uns%s -- system.val_util%s -- system.val_util%b -- system.val_uns%b -- system.val_llu%b -- system.val_lli%b -- system.wch_con%s -- system.wch_con%b -- system.wch_cnv%s -- system.wch_jis%s -- system.wch_jis%b -- system.wch_cnv%b -- system.wch_stw%s -- system.wch_stw%b -- ada.exceptions.last_chance_handler%s -- ada.exceptions.last_chance_handler%b -- ada.exceptions.traceback%s -- system.address_image%s -- system.bit_ops%s -- system.bit_ops%b -- system.concat_2%s -- system.concat_2%b -- system.concat_3%s -- system.concat_3%b -- system.exception_table%s -- system.exception_table%b -- ada.io_exceptions%s -- ada.strings%s -- ada.strings.maps%s -- ada.strings.maps.constants%s -- ada.tags%s -- ada.streams%s -- ada.streams%b -- interfaces.c%s -- system.multiprocessors%b -- interfaces.c.strings%s -- system.exceptions%s -- system.exceptions%b -- system.exceptions.machine%s -- system.file_control_block%s -- system.file_io%s -- system.finalization_root%s -- system.finalization_root%b -- ada.finalization%s -- system.win32%s -- system.os_interface%s -- system.interrupt_management%s -- system.interrupt_management%b -- system.task_info%s -- system.task_info%b -- system.task_primitives%s -- system.tasking%s -- system.task_primitives.operations%s -- system.tasking%b -- system.tasking.debug%s -- system.tasking.debug%b -- system.traces.tasking%s -- system.traces.tasking%b -- system.win32.ext%s -- system.task_primitives.operations%b -- system.os_primitives%b -- system.exception_traces%s -- system.exception_traces%b -- system.memory%s -- system.memory%b -- system.standard_library%b -- system.object_reader%s -- system.dwarf_lines%s -- system.secondary_stack%s -- system.file_io%b -- interfaces.c.strings%b -- interfaces.c%b -- ada.tags%b -- ada.strings.maps%b -- system.soft_links%b -- system.os_lib%b -- ada.characters.handling%b -- system.secondary_stack%b -- system.dwarf_lines%b -- system.object_reader%b -- system.address_image%b -- ada.exceptions.traceback%b -- system.soft_links.tasking%s -- system.soft_links.tasking%b -- system.tasking.entry_calls%s -- system.tasking.initialization%s -- system.tasking.task_attributes%s -- system.tasking.task_attributes%b -- system.tasking.utilities%s -- system.traceback%s -- system.traceback%b -- system.traceback.symbolic%s -- system.traceback.symbolic%b -- ada.exceptions%b -- system.tasking.initialization%b -- ada.real_time%s -- ada.real_time%b -- ada.text_io%s -- ada.text_io%b -- system.tasking.protected_objects%s -- system.tasking.protected_objects%b -- system.tasking.protected_objects.entries%s -- system.tasking.protected_objects.entries%b -- system.tasking.queuing%s -- system.tasking.queuing%b -- system.tasking.utilities%b -- system.tasking.rendezvous%s -- system.tasking.protected_objects.operations%s -- system.tasking.protected_objects.operations%b -- system.tasking.rendezvous%b -- system.tasking.entry_calls%b -- system.tasking.stages%s -- system.tasking.stages%b -- main%b -- END ELABORATION ORDER end ada_main;
42.924051
80
0.697139
50336a9dcc1101ea4e917034a650a64039a57c3d
6,246
adb
Ada
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-pack19.adb
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-pack19.adb
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-pack19.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 _ 1 9 -- -- -- -- 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_19 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_19; 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_19 -- ------------ function Get_19 (Arr : System.Address; N : Natural; Rev_SSO : Boolean) return Bits_19 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_19; ------------ -- Set_19 -- ------------ procedure Set_19 (Arr : System.Address; N : Natural; E : Bits_19; 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_19; end System.Pack_19;
39.531646
78
0.460775
0ef47485dbceb2f6adf2c4b3f961e6d09f4d4a7f
27,289
ads
Ada
awa/src/model/awa-oauth-models.ads
twdroeger/ada-awa
77b824773747aecb912c37b1b7b59ea414679b80
[ "Apache-2.0" ]
null
null
null
awa/src/model/awa-oauth-models.ads
twdroeger/ada-awa
77b824773747aecb912c37b1b7b59ea414679b80
[ "Apache-2.0" ]
null
null
null
awa/src/model/awa-oauth-models.ads
twdroeger/ada-awa
77b824773747aecb912c37b1b7b59ea414679b80
[ "Apache-2.0" ]
null
null
null
----------------------------------------------------------------------- -- AWA.OAuth.Models -- AWA.OAuth.Models ----------------------------------------------------------------------- -- File generated by ada-gen DO NOT MODIFY -- Template used: templates/model/package-spec.xhtml -- Ada Generator: https://ada-gen.googlecode.com/svn/trunk Revision 1095 ----------------------------------------------------------------------- -- Copyright (C) 2019 Stephane Carrez -- Written by Stephane Carrez ([email protected]) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in writing, software -- distributed under the License is distributed on an "AS IS" BASIS, -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. ----------------------------------------------------------------------- pragma Warnings (Off); with ADO.Sessions; with ADO.Objects; with ADO.Statements; with ADO.SQL; with ADO.Schemas; with Ada.Calendar; with Ada.Containers.Vectors; with Ada.Strings.Unbounded; with Util.Beans.Objects; with Util.Beans.Basic.Lists; with AWA.Users.Models; pragma Warnings (On); package AWA.OAuth.Models is pragma Style_Checks ("-mr"); type Application_Ref is new ADO.Objects.Object_Ref with null record; type Callback_Ref is new ADO.Objects.Object_Ref with null record; type Session_Ref is new ADO.Objects.Object_Ref with null record; -- -------------------- -- The application that is granted access to the database. -- -------------------- -- Create an object key for Application. function Application_Key (Id : in ADO.Identifier) return ADO.Objects.Object_Key; -- Create an object key for Application from a string. -- Raises Constraint_Error if the string cannot be converted into the object key. function Application_Key (Id : in String) return ADO.Objects.Object_Key; Null_Application : constant Application_Ref; function "=" (Left, Right : Application_Ref'Class) return Boolean; -- Set the application identifier. procedure Set_Id (Object : in out Application_Ref; Value : in ADO.Identifier); -- Get the application identifier. function Get_Id (Object : in Application_Ref) return ADO.Identifier; -- Set the application name. procedure Set_Name (Object : in out Application_Ref; Value : in Ada.Strings.Unbounded.Unbounded_String); procedure Set_Name (Object : in out Application_Ref; Value : in String); -- Get the application name. function Get_Name (Object : in Application_Ref) return Ada.Strings.Unbounded.Unbounded_String; function Get_Name (Object : in Application_Ref) return String; -- Set the application secret key. procedure Set_Secret_Key (Object : in out Application_Ref; Value : in Ada.Strings.Unbounded.Unbounded_String); procedure Set_Secret_Key (Object : in out Application_Ref; Value : in String); -- Get the application secret key. function Get_Secret_Key (Object : in Application_Ref) return Ada.Strings.Unbounded.Unbounded_String; function Get_Secret_Key (Object : in Application_Ref) return String; -- Set the application public identifier. procedure Set_Client_Id (Object : in out Application_Ref; Value : in Ada.Strings.Unbounded.Unbounded_String); procedure Set_Client_Id (Object : in out Application_Ref; Value : in String); -- Get the application public identifier. function Get_Client_Id (Object : in Application_Ref) return Ada.Strings.Unbounded.Unbounded_String; function Get_Client_Id (Object : in Application_Ref) return String; -- Get the optimistic lock version. function Get_Version (Object : in Application_Ref) return Integer; -- Set the application create date. procedure Set_Create_Date (Object : in out Application_Ref; Value : in Ada.Calendar.Time); -- Get the application create date. function Get_Create_Date (Object : in Application_Ref) return Ada.Calendar.Time; -- Set the application update date. procedure Set_Update_Date (Object : in out Application_Ref; Value : in Ada.Calendar.Time); -- Get the application update date. function Get_Update_Date (Object : in Application_Ref) return Ada.Calendar.Time; -- Set the application title displayed in the OAuth login form. procedure Set_Title (Object : in out Application_Ref; Value : in Ada.Strings.Unbounded.Unbounded_String); procedure Set_Title (Object : in out Application_Ref; Value : in String); -- Get the application title displayed in the OAuth login form. function Get_Title (Object : in Application_Ref) return Ada.Strings.Unbounded.Unbounded_String; function Get_Title (Object : in Application_Ref) return String; -- Set the application description. procedure Set_Description (Object : in out Application_Ref; Value : in Ada.Strings.Unbounded.Unbounded_String); procedure Set_Description (Object : in out Application_Ref; Value : in String); -- Get the application description. function Get_Description (Object : in Application_Ref) return Ada.Strings.Unbounded.Unbounded_String; function Get_Description (Object : in Application_Ref) return String; -- Set the optional login URL. procedure Set_App_Login_Url (Object : in out Application_Ref; Value : in Ada.Strings.Unbounded.Unbounded_String); procedure Set_App_Login_Url (Object : in out Application_Ref; Value : in String); -- Get the optional login URL. function Get_App_Login_Url (Object : in Application_Ref) return Ada.Strings.Unbounded.Unbounded_String; function Get_App_Login_Url (Object : in Application_Ref) return String; -- Set the application logo URL. procedure Set_App_Logo_Url (Object : in out Application_Ref; Value : in Ada.Strings.Unbounded.Unbounded_String); procedure Set_App_Logo_Url (Object : in out Application_Ref; Value : in String); -- Get the application logo URL. function Get_App_Logo_Url (Object : in Application_Ref) return Ada.Strings.Unbounded.Unbounded_String; function Get_App_Logo_Url (Object : in Application_Ref) return String; -- procedure Set_User (Object : in out Application_Ref; Value : in AWA.Users.Models.User_Ref'Class); -- function Get_User (Object : in Application_Ref) return AWA.Users.Models.User_Ref'Class; -- Load the entity identified by 'Id'. -- Raises the NOT_FOUND exception if it does not exist. procedure Load (Object : in out Application_Ref; Session : in out ADO.Sessions.Session'Class; Id : in ADO.Identifier); -- Load the entity identified by 'Id'. -- Returns True in <b>Found</b> if the object was found and False if it does not exist. procedure Load (Object : in out Application_Ref; Session : in out ADO.Sessions.Session'Class; Id : in ADO.Identifier; Found : out Boolean); -- Find and load the entity. overriding procedure Find (Object : in out Application_Ref; Session : in out ADO.Sessions.Session'Class; Query : in ADO.SQL.Query'Class; Found : out Boolean); -- Save the entity. If the entity does not have an identifier, an identifier is allocated -- and it is inserted in the table. Otherwise, only data fields which have been changed -- are updated. overriding procedure Save (Object : in out Application_Ref; Session : in out ADO.Sessions.Master_Session'Class); -- Delete the entity. overriding procedure Delete (Object : in out Application_Ref; Session : in out ADO.Sessions.Master_Session'Class); overriding function Get_Value (From : in Application_Ref; Name : in String) return Util.Beans.Objects.Object; -- Table definition APPLICATION_TABLE : constant ADO.Schemas.Class_Mapping_Access; -- Internal method to allocate the Object_Record instance overriding procedure Allocate (Object : in out Application_Ref); -- Copy of the object. procedure Copy (Object : in Application_Ref; Into : in out Application_Ref); package Application_Vectors is new Ada.Containers.Vectors (Index_Type => Natural, Element_Type => Application_Ref, "=" => "="); subtype Application_Vector is Application_Vectors.Vector; procedure List (Object : in out Application_Vector; Session : in out ADO.Sessions.Session'Class; Query : in ADO.SQL.Query'Class); -- Create an object key for Callback. function Callback_Key (Id : in ADO.Identifier) return ADO.Objects.Object_Key; -- Create an object key for Callback from a string. -- Raises Constraint_Error if the string cannot be converted into the object key. function Callback_Key (Id : in String) return ADO.Objects.Object_Key; Null_Callback : constant Callback_Ref; function "=" (Left, Right : Callback_Ref'Class) return Boolean; -- procedure Set_Id (Object : in out Callback_Ref; Value : in ADO.Identifier); -- function Get_Id (Object : in Callback_Ref) return ADO.Identifier; -- procedure Set_Url (Object : in out Callback_Ref; Value : in Ada.Strings.Unbounded.Unbounded_String); procedure Set_Url (Object : in out Callback_Ref; Value : in String); -- function Get_Url (Object : in Callback_Ref) return Ada.Strings.Unbounded.Unbounded_String; function Get_Url (Object : in Callback_Ref) return String; -- Get the optimistic lock version. function Get_Version (Object : in Callback_Ref) return Integer; -- procedure Set_Application (Object : in out Callback_Ref; Value : in AWA.OAuth.Models.Application_Ref'Class); -- function Get_Application (Object : in Callback_Ref) return AWA.OAuth.Models.Application_Ref'Class; -- Load the entity identified by 'Id'. -- Raises the NOT_FOUND exception if it does not exist. procedure Load (Object : in out Callback_Ref; Session : in out ADO.Sessions.Session'Class; Id : in ADO.Identifier); -- Load the entity identified by 'Id'. -- Returns True in <b>Found</b> if the object was found and False if it does not exist. procedure Load (Object : in out Callback_Ref; Session : in out ADO.Sessions.Session'Class; Id : in ADO.Identifier; Found : out Boolean); -- Find and load the entity. overriding procedure Find (Object : in out Callback_Ref; Session : in out ADO.Sessions.Session'Class; Query : in ADO.SQL.Query'Class; Found : out Boolean); -- Save the entity. If the entity does not have an identifier, an identifier is allocated -- and it is inserted in the table. Otherwise, only data fields which have been changed -- are updated. overriding procedure Save (Object : in out Callback_Ref; Session : in out ADO.Sessions.Master_Session'Class); -- Delete the entity. overriding procedure Delete (Object : in out Callback_Ref; Session : in out ADO.Sessions.Master_Session'Class); overriding function Get_Value (From : in Callback_Ref; Name : in String) return Util.Beans.Objects.Object; -- Table definition CALLBACK_TABLE : constant ADO.Schemas.Class_Mapping_Access; -- Internal method to allocate the Object_Record instance overriding procedure Allocate (Object : in out Callback_Ref); -- Copy of the object. procedure Copy (Object : in Callback_Ref; Into : in out Callback_Ref); package Callback_Vectors is new Ada.Containers.Vectors (Index_Type => Natural, Element_Type => Callback_Ref, "=" => "="); subtype Callback_Vector is Callback_Vectors.Vector; procedure List (Object : in out Callback_Vector; Session : in out ADO.Sessions.Session'Class; Query : in ADO.SQL.Query'Class); -- -------------------- -- The session is created when the user has granted an access to an application -- or when the application has refreshed its access token. -- -------------------- -- Create an object key for Session. function Session_Key (Id : in ADO.Identifier) return ADO.Objects.Object_Key; -- Create an object key for Session from a string. -- Raises Constraint_Error if the string cannot be converted into the object key. function Session_Key (Id : in String) return ADO.Objects.Object_Key; Null_Session : constant Session_Ref; function "=" (Left, Right : Session_Ref'Class) return Boolean; -- Set the session identifier. procedure Set_Id (Object : in out Session_Ref; Value : in ADO.Identifier); -- Get the session identifier. function Get_Id (Object : in Session_Ref) return ADO.Identifier; -- Set the session creation date. procedure Set_Create_Date (Object : in out Session_Ref; Value : in Ada.Calendar.Time); -- Get the session creation date. function Get_Create_Date (Object : in Session_Ref) return Ada.Calendar.Time; -- Set a random salt string to access/request token generation. procedure Set_Salt (Object : in out Session_Ref; Value : in Ada.Strings.Unbounded.Unbounded_String); procedure Set_Salt (Object : in out Session_Ref; Value : in String); -- Get a random salt string to access/request token generation. function Get_Salt (Object : in Session_Ref) return Ada.Strings.Unbounded.Unbounded_String; function Get_Salt (Object : in Session_Ref) return String; -- Set the expiration date. procedure Set_Expire_Date (Object : in out Session_Ref; Value : in Ada.Calendar.Time); -- Get the expiration date. function Get_Expire_Date (Object : in Session_Ref) return Ada.Calendar.Time; -- Set the application that is granted access. procedure Set_Application (Object : in out Session_Ref; Value : in AWA.OAuth.Models.Application_Ref'Class); -- Get the application that is granted access. function Get_Application (Object : in Session_Ref) return AWA.OAuth.Models.Application_Ref'Class; -- procedure Set_User (Object : in out Session_Ref; Value : in AWA.Users.Models.User_Ref'Class); -- function Get_User (Object : in Session_Ref) return AWA.Users.Models.User_Ref'Class; -- procedure Set_Session (Object : in out Session_Ref; Value : in AWA.Users.Models.Session_Ref'Class); -- function Get_Session (Object : in Session_Ref) return AWA.Users.Models.Session_Ref'Class; -- Load the entity identified by 'Id'. -- Raises the NOT_FOUND exception if it does not exist. procedure Load (Object : in out Session_Ref; Session : in out ADO.Sessions.Session'Class; Id : in ADO.Identifier); -- Load the entity identified by 'Id'. -- Returns True in <b>Found</b> if the object was found and False if it does not exist. procedure Load (Object : in out Session_Ref; Session : in out ADO.Sessions.Session'Class; Id : in ADO.Identifier; Found : out Boolean); -- Find and load the entity. overriding procedure Find (Object : in out Session_Ref; Session : in out ADO.Sessions.Session'Class; Query : in ADO.SQL.Query'Class; Found : out Boolean); -- Save the entity. If the entity does not have an identifier, an identifier is allocated -- and it is inserted in the table. Otherwise, only data fields which have been changed -- are updated. overriding procedure Save (Object : in out Session_Ref; Session : in out ADO.Sessions.Master_Session'Class); -- Delete the entity. overriding procedure Delete (Object : in out Session_Ref; Session : in out ADO.Sessions.Master_Session'Class); overriding function Get_Value (From : in Session_Ref; Name : in String) return Util.Beans.Objects.Object; -- Table definition SESSION_TABLE : constant ADO.Schemas.Class_Mapping_Access; -- Internal method to allocate the Object_Record instance overriding procedure Allocate (Object : in out Session_Ref); -- Copy of the object. procedure Copy (Object : in Session_Ref; Into : in out Session_Ref); package Session_Vectors is new Ada.Containers.Vectors (Index_Type => Natural, Element_Type => Session_Ref, "=" => "="); subtype Session_Vector is Session_Vectors.Vector; procedure List (Object : in out Session_Vector; Session : in out ADO.Sessions.Session'Class; Query : in ADO.SQL.Query'Class); private APPLICATION_NAME : aliased constant String := "awa_application"; COL_0_1_NAME : aliased constant String := "id"; COL_1_1_NAME : aliased constant String := "name"; COL_2_1_NAME : aliased constant String := "secret_key"; COL_3_1_NAME : aliased constant String := "client_id"; COL_4_1_NAME : aliased constant String := "version"; COL_5_1_NAME : aliased constant String := "create_date"; COL_6_1_NAME : aliased constant String := "update_date"; COL_7_1_NAME : aliased constant String := "title"; COL_8_1_NAME : aliased constant String := "description"; COL_9_1_NAME : aliased constant String := "app_login_url"; COL_10_1_NAME : aliased constant String := "app_logo_url"; COL_11_1_NAME : aliased constant String := "user_id"; APPLICATION_DEF : aliased constant ADO.Schemas.Class_Mapping := (Count => 12, Table => APPLICATION_NAME'Access, Members => ( 1 => COL_0_1_NAME'Access, 2 => COL_1_1_NAME'Access, 3 => COL_2_1_NAME'Access, 4 => COL_3_1_NAME'Access, 5 => COL_4_1_NAME'Access, 6 => COL_5_1_NAME'Access, 7 => COL_6_1_NAME'Access, 8 => COL_7_1_NAME'Access, 9 => COL_8_1_NAME'Access, 10 => COL_9_1_NAME'Access, 11 => COL_10_1_NAME'Access, 12 => COL_11_1_NAME'Access) ); APPLICATION_TABLE : constant ADO.Schemas.Class_Mapping_Access := APPLICATION_DEF'Access; Null_Application : constant Application_Ref := Application_Ref'(ADO.Objects.Object_Ref with null record); type Application_Impl is new ADO.Objects.Object_Record (Key_Type => ADO.Objects.KEY_INTEGER, Of_Class => APPLICATION_DEF'Access) with record Name : Ada.Strings.Unbounded.Unbounded_String; Secret_Key : Ada.Strings.Unbounded.Unbounded_String; Client_Id : Ada.Strings.Unbounded.Unbounded_String; Version : Integer; Create_Date : Ada.Calendar.Time; Update_Date : Ada.Calendar.Time; Title : Ada.Strings.Unbounded.Unbounded_String; Description : Ada.Strings.Unbounded.Unbounded_String; App_Login_Url : Ada.Strings.Unbounded.Unbounded_String; App_Logo_Url : Ada.Strings.Unbounded.Unbounded_String; User : AWA.Users.Models.User_Ref; end record; type Application_Access is access all Application_Impl; overriding procedure Destroy (Object : access Application_Impl); overriding procedure Find (Object : in out Application_Impl; Session : in out ADO.Sessions.Session'Class; Query : in ADO.SQL.Query'Class; Found : out Boolean); overriding procedure Load (Object : in out Application_Impl; Session : in out ADO.Sessions.Session'Class); procedure Load (Object : in out Application_Impl; Stmt : in out ADO.Statements.Query_Statement'Class; Session : in out ADO.Sessions.Session'Class); overriding procedure Save (Object : in out Application_Impl; Session : in out ADO.Sessions.Master_Session'Class); procedure Create (Object : in out Application_Impl; Session : in out ADO.Sessions.Master_Session'Class); overriding procedure Delete (Object : in out Application_Impl; Session : in out ADO.Sessions.Master_Session'Class); procedure Set_Field (Object : in out Application_Ref'Class; Impl : out Application_Access); CALLBACK_NAME : aliased constant String := "awa_callback"; COL_0_2_NAME : aliased constant String := "id"; COL_1_2_NAME : aliased constant String := "url"; COL_2_2_NAME : aliased constant String := "version"; COL_3_2_NAME : aliased constant String := "application_id"; CALLBACK_DEF : aliased constant ADO.Schemas.Class_Mapping := (Count => 4, Table => CALLBACK_NAME'Access, Members => ( 1 => COL_0_2_NAME'Access, 2 => COL_1_2_NAME'Access, 3 => COL_2_2_NAME'Access, 4 => COL_3_2_NAME'Access) ); CALLBACK_TABLE : constant ADO.Schemas.Class_Mapping_Access := CALLBACK_DEF'Access; Null_Callback : constant Callback_Ref := Callback_Ref'(ADO.Objects.Object_Ref with null record); type Callback_Impl is new ADO.Objects.Object_Record (Key_Type => ADO.Objects.KEY_INTEGER, Of_Class => CALLBACK_DEF'Access) with record Url : Ada.Strings.Unbounded.Unbounded_String; Version : Integer; Application : AWA.OAuth.Models.Application_Ref; end record; type Callback_Access is access all Callback_Impl; overriding procedure Destroy (Object : access Callback_Impl); overriding procedure Find (Object : in out Callback_Impl; Session : in out ADO.Sessions.Session'Class; Query : in ADO.SQL.Query'Class; Found : out Boolean); overriding procedure Load (Object : in out Callback_Impl; Session : in out ADO.Sessions.Session'Class); procedure Load (Object : in out Callback_Impl; Stmt : in out ADO.Statements.Query_Statement'Class; Session : in out ADO.Sessions.Session'Class); overriding procedure Save (Object : in out Callback_Impl; Session : in out ADO.Sessions.Master_Session'Class); procedure Create (Object : in out Callback_Impl; Session : in out ADO.Sessions.Master_Session'Class); overriding procedure Delete (Object : in out Callback_Impl; Session : in out ADO.Sessions.Master_Session'Class); procedure Set_Field (Object : in out Callback_Ref'Class; Impl : out Callback_Access); SESSION_NAME : aliased constant String := "awa_oauth_session"; COL_0_3_NAME : aliased constant String := "id"; COL_1_3_NAME : aliased constant String := "create_date"; COL_2_3_NAME : aliased constant String := "salt"; COL_3_3_NAME : aliased constant String := "expire_date"; COL_4_3_NAME : aliased constant String := "application_id"; COL_5_3_NAME : aliased constant String := "user_id"; COL_6_3_NAME : aliased constant String := "session_id"; SESSION_DEF : aliased constant ADO.Schemas.Class_Mapping := (Count => 7, Table => SESSION_NAME'Access, Members => ( 1 => COL_0_3_NAME'Access, 2 => COL_1_3_NAME'Access, 3 => COL_2_3_NAME'Access, 4 => COL_3_3_NAME'Access, 5 => COL_4_3_NAME'Access, 6 => COL_5_3_NAME'Access, 7 => COL_6_3_NAME'Access) ); SESSION_TABLE : constant ADO.Schemas.Class_Mapping_Access := SESSION_DEF'Access; Null_Session : constant Session_Ref := Session_Ref'(ADO.Objects.Object_Ref with null record); type Session_Impl is new ADO.Objects.Object_Record (Key_Type => ADO.Objects.KEY_INTEGER, Of_Class => SESSION_DEF'Access) with record Create_Date : Ada.Calendar.Time; Salt : Ada.Strings.Unbounded.Unbounded_String; Expire_Date : Ada.Calendar.Time; Application : AWA.OAuth.Models.Application_Ref; User : AWA.Users.Models.User_Ref; Session : AWA.Users.Models.Session_Ref; end record; type Session_Access is access all Session_Impl; overriding procedure Destroy (Object : access Session_Impl); overriding procedure Find (Object : in out Session_Impl; Session : in out ADO.Sessions.Session'Class; Query : in ADO.SQL.Query'Class; Found : out Boolean); overriding procedure Load (Object : in out Session_Impl; Session : in out ADO.Sessions.Session'Class); procedure Load (Object : in out Session_Impl; Stmt : in out ADO.Statements.Query_Statement'Class; Session : in out ADO.Sessions.Session'Class); overriding procedure Save (Object : in out Session_Impl; Session : in out ADO.Sessions.Master_Session'Class); procedure Create (Object : in out Session_Impl; Session : in out ADO.Sessions.Master_Session'Class); overriding procedure Delete (Object : in out Session_Impl; Session : in out ADO.Sessions.Master_Session'Class); procedure Set_Field (Object : in out Session_Ref'Class; Impl : out Session_Access); end AWA.OAuth.Models;
40.013196
94
0.632123
4de356edeccb9f01c3e74294f79030611e8d935e
4,938
adb
Ada
src/natools-web-filters-stores.adb
faelys/natools-web
f7ba99f2ffb6f5a06d1b1e8becbf5f92fd58c750
[ "0BSD" ]
1
2015-04-23T10:48:58.000Z
2015-04-23T10:48:58.000Z
src/natools-web-filters-stores.adb
faelys/natools-web
f7ba99f2ffb6f5a06d1b1e8becbf5f92fd58c750
[ "0BSD" ]
null
null
null
src/natools-web-filters-stores.adb
faelys/natools-web
f7ba99f2ffb6f5a06d1b1e8becbf5f92fd58c750
[ "0BSD" ]
null
null
null
------------------------------------------------------------------------------ -- Copyright (c) 2015, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- purpose with or without fee is hereby granted, provided that the above -- -- copyright notice and this permission notice appear in all copies. -- -- -- -- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -- -- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -- -- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -- -- ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -- -- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -- -- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF -- -- OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -- ------------------------------------------------------------------------------ with Natools.S_Expressions.Interpreter_Loop; with Natools.S_Expressions.Special_Descriptors; package body Natools.Web.Filters.Stores is procedure Add_Filter (Filters : in out Filter_Maps.Unsafe_Maps.Map; Constructors : in Constructor_Maps.Constant_Map; Name : in S_Expressions.Atom; Arguments : in out S_Expressions.Lockable.Descriptor'Class); -- Build a new filter and add it to Filters procedure Update is new S_Expressions.Interpreter_Loop (Filter_Maps.Unsafe_Maps.Map, Constructor_Maps.Constant_Map, Add_Filter); ----------------------------- -- Local Helper Suprograms -- ----------------------------- procedure Add_Filter (Filters : in out Filter_Maps.Unsafe_Maps.Map; Constructors : in Constructor_Maps.Constant_Map; Name : in S_Expressions.Atom; Arguments : in out S_Expressions.Lockable.Descriptor'Class) is use type S_Expressions.Events.Event; Position : Constructor_Maps.Cursor; begin if Arguments.Current_Event /= S_Expressions.Events.Add_Atom then Filters.Exclude (Name); return; end if; Position := Constructors.Find (Arguments.Current_Atom); if not Constructor_Maps.Has_Element (Position) then Log (Severities.Error, "Unable to find filter type """ & S_Expressions.To_String (Arguments.Current_Atom) & '"'); return; end if; Arguments.Next; begin declare New_Filter : constant Filter'Class := Constructor_Maps.Element (Position).all (Arguments); begin Filters.Include (Name, New_Filter); end; exception when No_Filter => null; end; end Add_Filter; ---------------------- -- Public Interface -- ---------------------- function Duplicate (Source : in Store) return Store is begin return (Constructors => Source.Constructors, Filters => Filter_Maps.Empty_Constant_Map); end Duplicate; function Get_Filter (Container : in Store; Name : in S_Expressions.Atom) return Filter'Class is begin Try_Filter : declare Position : constant Filter_Maps.Cursor := Container.Filters.Find (Name); begin if Filter_Maps.Has_Element (Position) then return Filter_Maps.Element (Position); end if; end Try_Filter; Try_Constructor : declare Position : constant Constructor_Maps.Cursor := Container.Constructors.Find (Name); begin if Constructor_Maps.Has_Element (Position) then return Constructor_Maps.Element (Position).all (S_Expressions.Special_Descriptors.Empty_Descriptor); end if; end Try_Constructor; raise No_Filter with "No filter with given Name found in container"; end Get_Filter; procedure Populate (Container : in out Store; Expression : in out S_Expressions.Lockable.Descriptor'Class) is Map : Filter_Maps.Unsafe_Maps.Map := Container.Filters.To_Unsafe_Map; begin Update (Expression, Map, Container.Constructors); Container.Filters := Filter_Maps.Create (Map); end Populate; procedure Register (Container : in out Store; Name : in S_Expressions.Atom; Callback : in Constructor) is begin Container.Constructors := Container.Constructors.Include (Name, Callback); end Register; procedure Register (Container : in out Store; Name : in S_Expressions.Atom; Filter : in Filters.Filter'Class) is begin Container.Filters := Container.Filters.Include (Name, Filter); end Register; end Natools.Web.Filters.Stores;
33.591837
78
0.609559
104f0b539f12ba704c9273b2e6cb5ad9bf6958b2
1,011
adb
Ada
gdb/testsuite/gdb.ada/array_bounds/bar.adb
greyblue9/binutils-gdb
05377632b124fe7600eea7f4ee0e9a35d1b0cbdc
[ "BSD-3-Clause" ]
1
2020-10-14T03:24:35.000Z
2020-10-14T03:24:35.000Z
gdb/testsuite/gdb.ada/array_bounds/bar.adb
greyblue9/binutils-gdb
05377632b124fe7600eea7f4ee0e9a35d1b0cbdc
[ "BSD-3-Clause" ]
null
null
null
gdb/testsuite/gdb.ada/array_bounds/bar.adb
greyblue9/binutils-gdb
05377632b124fe7600eea7f4ee0e9a35d1b0cbdc
[ "BSD-3-Clause" ]
null
null
null
-- Copyright 2008-2021 Free Software Foundation, Inc. -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation; either version 3 of the License, or -- (at your option) any later version. -- -- This program is distributed in the hope that it will be useful, -- but WITHOUT ANY WARRANTY; without even the implied warranty of -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- GNU General Public License for more details. -- -- You should have received a copy of the GNU General Public License -- along with this program. If not, see <http://www.gnu.org/licenses/>. procedure Bar is type Index is (Zero, One, Two); type Vector is array (Index) of Integer; type IVector is array (Integer range 2 .. 5) of Integer; Table : Vector := (0, 1, 2); ITable : IVector := (2, 3, 4, 5); begin Table (Zero) := 5; -- START ITable (3) := 10; end Bar;
36.107143
73
0.693373
fb5c93f0abf75f8263155b3a4b2cef5d19c4c8db
10,656
adb
Ada
line_collision/example.adb
Lucretia/old_nehe_ada95
d0378c3bfce202eb01bf00b57c128735dbe8582d
[ "BSD-3-Clause" ]
null
null
null
line_collision/example.adb
Lucretia/old_nehe_ada95
d0378c3bfce202eb01bf00b57c128735dbe8582d
[ "BSD-3-Clause" ]
null
null
null
line_collision/example.adb
Lucretia/old_nehe_ada95
d0378c3bfce202eb01bf00b57c128735dbe8582d
[ "BSD-3-Clause" ]
null
null
null
--------------------------------------------------------------------------------- -- Copyright 2004-2005 © Luke A. Guest -- -- This code is to be used for tutorial purposes only. -- You may not redistribute this code in any form without my express permission. --------------------------------------------------------------------------------- --with Ada.Real_Time; with Interfaces.C; with Unchecked_Conversion; with Text_Io; use Text_Io; with GL; with GLU; with GL.EXT; with Ada.Strings.Maps; with Ada.Strings.Fixed; with System; with Geometrical_Methods; with GLUtils; use type GL.GLbitfield; use type GL.EXT.glLockArraysEXTPtr; use type GL.EXT.glUnlockArraysEXTPtr; package body Example is package GM renames Geometrical_Methods; procedure PrintGLInfo is begin Put_Line("GL Vendor => " & GLUtils.GL_Vendor); Put_Line("GL Version => " & GLUtils.GL_Version); Put_Line("GL Renderer => " & GLUtils.GL_Renderer); Put_Line("GL Extensions => " & GLUtils.GL_Extensions); New_Line; Put_Line("GLU Version => " & GLUtils.GLU_Version); Put_Line("GLU Extensions => " & GLUtils.GLU_Extensions); New_Line; end PrintGLInfo; procedure PrintUsage is begin Put_Line("Keys"); Put_Line("Cursor keys => Rotate"); Put_Line("Page Down/Up => Zoom in/out"); Put_Line("F1 => Toggle Fullscreen"); Put_Line("Escape => Quit"); Put_Line("N & M/N & M + Shift => Move Dot in X"); Put_Line("O & K/O & K + Shift => Move Dot in Y"); Put_Line("D/D + Shift => Move Plane"); Put_Line("R => Reset"); end PrintUsage; procedure CalculateFPS is CurrentTime : Float := Float(SDL.Timer.GetTicks) / 1000.0; ElapsedTime : Float := CurrentTime - LastElapsedTime; FramesPerSecond : String(1 .. 10); MillisecondPerFrame : String(1 .. 10); package Float_InOut is new Text_IO.Float_IO(Float); use Float_InOut; begin FrameCount := FrameCount + 1; if ElapsedTime > 1.0 then FPS := Float(FrameCount) / ElapsedTime; Put(FramesPerSecond, FPS, Aft => 2, Exp => 0); Put(MillisecondPerFrame, 1000.0 / FPS, Aft => 2, Exp => 0); SDL.Video.WM_Set_Caption_Title(Example.GetTitle & " " & FramesPerSecond & " fps " & MillisecondPerFrame & " ms/frame"); LastElapsedTime := CurrentTime; FrameCount := 0; end if; end CalculateFPS; function Initialise return Boolean is begin GL.glClearColor(0.0, 0.0, 0.0, 0.0); -- Black Background. GL.glClearDepth(1.0); -- Depth Buffer Setup. GL.glDepthFunc(GL.GL_LEQUAL); -- The Type Of Depth Testing (Less Or Equal). GL.glEnable(GL.GL_DEPTH_TEST); -- Enable Depth Testing. GL.glShadeModel(GL.GL_SMOOTH); -- Select Smooth Shading. GL.glHint(GL.GL_PERSPECTIVE_CORRECTION_HINT, GL.GL_NICEST); -- Set Perspective Calculations To Most Accurate. -- GL.glFrontFace(GL.GL_CCW); -- GL.glCullFace(GL.GL_NONE); -- GL.glEnable(GL.GL_CULL_FACE); return True; end Initialise; procedure Uninitialise is begin null; end Uninitialise; -- procedure Update(Ticks : in Integer) is procedure Update is Result : Interfaces.C.int; begin -- Check the modifiers if Keys(SDL.Keysym.K_LSHIFT) = True or Keys(SDL.Keysym.K_RSHIFT) = True then ShiftPressed := True; else ShiftPressed := False; end if; if Keys(SDL.Keysym.K_LCTRL) = True or Keys(SDL.Keysym.K_RCTRL) = True then CtrlPressed := True; else CtrlPressed := False; end if; if Keys(SDL.Keysym.K_F1) = True then Result := SDL.Video.WM_ToggleFullScreen(ScreenSurface); end if; -- Move the camera. if Keys(SDL.Keysym.K_LEFT) = True then CameraYSpeed := CameraYSpeed - 0.1; end if; if Keys(SDL.Keysym.K_RIGHT) = True then CameraYSpeed := CameraYSpeed + 0.1; end if; if Keys(SDL.Keysym.K_UP) = True then CameraXSpeed := CameraXSpeed - 0.1; end if; if Keys(SDL.Keysym.K_DOWN) = True then CameraXSpeed := CameraXSpeed + 0.1; end if; if Keys(SDL.Keysym.K_PAGEUP) = True then Zoom := Zoom + 0.1; end if; if Keys(SDL.Keysym.K_PAGEDOWN) = True then Zoom := Zoom - 0.1; end if; if Keys(SDL.Keysym.K_ESCAPE) = True then AppQuit := True; end if; if Keys(SDL.Keysym.K_R) = True then TestLine.StartPoint := Vector3.Object'(-1.0, 0.0, 0.0); TestLine.EndPoint := Vector3.Object'(1.0, 0.0, 0.0); TestPlane.Distance := 0.0; end if; -- Move the dot. if Keys(SDL.Keysym.K_N) = True and NPressed = False then NPressed := True; if ShiftPressed = True then TestLine.StartPoint.X := TestLine.StartPoint.X - LineSmallDelta; TestLine.EndPoint.X := TestLine.EndPoint.X - LineSmallDelta; else TestLine.StartPoint.X := TestLine.StartPoint.X - LineDelta; TestLine.EndPoint.X := TestLine.EndPoint.X - LineDelta; end if; end if; if Keys(SDL.Keysym.K_N) = False then NPressed := False; end if; if Keys(SDL.Keysym.K_M) = True and MPressed = False then MPressed := True; if ShiftPressed = True then TestLine.StartPoint.X := TestLine.StartPoint.X + LineSmallDelta; TestLine.EndPoint.X := TestLine.EndPoint.X + LineSmallDelta; else TestLine.StartPoint.X := TestLine.StartPoint.X + LineDelta; TestLine.EndPoint.X := TestLine.EndPoint.X + LineDelta; end if; end if; if Keys(SDL.Keysym.K_M) = False then MPressed := False; end if; if Keys(SDL.Keysym.K_O) = True and OPressed = False then OPressed := True; if ShiftPressed = True then TestLine.StartPoint.Y := TestLine.StartPoint.Y + LineSmallDelta; TestLine.EndPoint.Y := TestLine.EndPoint.Y + LineSmallDelta; else TestLine.StartPoint.Y := TestLine.StartPoint.Y + LineDelta; TestLine.EndPoint.Y := TestLine.EndPoint.Y + LineDelta; end if; end if; if Keys(SDL.Keysym.K_O) = False then OPressed := False; end if; if Keys(SDL.Keysym.K_K) = True and KPressed = False then KPressed := True; if ShiftPressed = True then TestLine.StartPoint.Y := TestLine.StartPoint.Y - LineSmallDelta; TestLine.EndPoint.Y := TestLine.EndPoint.Y - LineSmallDelta; else TestLine.StartPoint.Y := TestLine.StartPoint.Y - LineDelta; TestLine.EndPoint.Y := TestLine.EndPoint.Y - LineDelta; end if; end if; if Keys(SDL.Keysym.K_K) = False then KPressed := False; end if; -- Move the plane along the normal (Distance). if Keys(SDL.Keysym.K_D) = True and DPressed = False then DPressed := True; if ShiftPressed = True then TestPlane.Distance := TestPlane.Distance - 0.5; else TestPlane.Distance := TestPlane.Distance + 0.5; end if; end if; if Keys(SDL.Keysym.K_D) = False then DPressed := False; end if; end Update; procedure Draw is Collision : Boolean := False; begin GL.glClear(GL.GL_COLOR_BUFFER_BIT or GL.GL_DEPTH_BUFFER_BIT); -- Clear Screen And Depth Buffer. GL.glLoadIdentity; -- Reset The Modelview Matrix. -- Move the camera aound the scene. GL.glTranslatef(0.0, 0.0, Zoom); GL.glRotatef(CameraXSpeed, 1.0, 0.0, 0.0); -- Rotate On The Y-Axis By angle. GL.glRotatef(CameraYSpeed, 0.0, 1.0, 0.0); -- Rotate On The Y-Axis By angle. Collision := GM.CollisionDetected(TestPlane, TestLine); -- Draw plane. GL.glBegin(GL.GL_QUADS); if Collision = True then GL.glColor3f(1.0, 0.0, 0.0); else GL.glColor3f(0.0, 0.2, 0.5); end if; --GL.glColor3f(0.0, 0.2, 0.5); GL.glVertex3f(GL.GLfloat(TestPlane.Distance), -1.0, -1.0); GL.glVertex3f(GL.GLfloat(TestPlane.Distance), 1.0, -1.0); GL.glVertex3f(GL.GLfloat(TestPlane.Distance), 1.0, 1.0); GL.glVertex3f(GL.GLfloat(TestPlane.Distance), -1.0, 1.0); GL.glNormal3f(GL.GLfloat(TestPlane.Normal.X), GL.GLfloat(TestPlane.Normal.Y), GL.GLfloat(TestPlane.Normal.Z)); gl.glEnd; GL.glBegin(GL.GL_LINES); if Collision = True then GL.glColor3f(1.0, 1.0, 0.0); else GL.glColor3f(1.0, 1.0, 1.0); end if; GL.glVertex3f(GL.GLfloat(TestLine.StartPoint.X), GL.GLfloat(TestLine.StartPoint.Y), GL.GLfloat(TestLine.StartPoint.Z)); GL.glVertex3f(GL.GLfloat(TestLine.EndPoint.X), GL.GLfloat(TestLine.EndPoint.Y), GL.GLfloat(TestLine.EndPoint.Z)); GL.glEnd; GL.glFlush; -- Flush The GL Rendering Pipeline. -- Text_IO.Put_Line("Dot: " & Vector3.Output(Dot)); end Draw; function GetTitle return String is begin return Title; end GetTitle; function GetWidth return Integer is begin return Width; end GetWidth; function GetHeight return Integer is begin return Height; end GetHeight; function GetBitsPerPixel return Integer is begin return BitsPerPixel; end GetBitsPerPixel; procedure SetLastTickCount(Ticks : in Integer) is begin LastTickCount := Ticks; end SetLastTickCount; procedure SetSurface(Surface : in SDL.Video.Surface_Ptr) is begin ScreenSurface := Surface; end SetSurface; function GetSurface return SDL.Video.Surface_Ptr is begin return ScreenSurface; end GetSurface; procedure SetKey(Key : in SDL.Keysym.Key; Down : in Boolean) is begin Keys(Key) := Down; end SetKey; procedure SetActive(Active : in Boolean) is begin AppActive := Active; end SetActive; function IsActive return Boolean is begin return AppActive; end IsActive; procedure SetQuit(Quit : in Boolean) is begin AppQuit := Quit; end SetQuit; function Quit return Boolean is begin return AppQuit; end Quit; end Example;
21.354709
127
0.589433
50cfb98e7f4a779cca4d4ca0505ede6cb674301c
4,287
ads
Ada
tools/scitools/conf/understand/ada/ada12/g-hesora.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-hesora.ads
brucegua/moocos
575c161cfa35e220f10d042e2e5ca18773691695
[ "Apache-2.0" ]
null
null
null
tools/scitools/conf/understand/ada/ada12/g-hesora.ads
brucegua/moocos
575c161cfa35e220f10d042e2e5ca18773691695
[ "Apache-2.0" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- G N A T . H E A P _ S O R T _ A -- -- -- -- S p e c -- -- -- -- Copyright (C) 1995-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. -- -- -- ------------------------------------------------------------------------------ -- Heapsort using access to procedure parameters -- This package provides a heap sort routine that works with access to -- subprogram parameters, so that it can be used with different types with -- shared sorting code. It is considered obsoleted by GNAT.Heap_Sort which -- offers a similar routine with a more convenient interface. -- This heapsort algorithm uses approximately N*log(N) compares in the -- worst case and is in place with no additional storage required. See -- the body for exact details of the algorithm used. pragma Compiler_Unit; package GNAT.Heap_Sort_A is pragma Preelaborate; -- The data to be sorted is assumed to be indexed by integer values from -- 1 to N, where N is the number of items to be sorted. In addition, the -- index value zero is used for a temporary location used during the sort. type Move_Procedure is access procedure (From : Natural; To : Natural); -- A pointer to a procedure that moves the data item with index From to -- the data item with index To. An index value of zero is used for moves -- from and to the single temporary location used by the sort. type Lt_Function is access function (Op1, Op2 : Natural) return Boolean; -- A pointer to a function that compares two items and returns True if -- the item with index Op1 is less than the item with index Op2, and False -- if the Op1 item is greater than or equal to the Op2 item. procedure Sort (N : Natural; Move : Move_Procedure; Lt : Lt_Function); -- This procedures sorts items in the range from 1 to N into ascending -- order making calls to Lt to do required comparisons, and Move to move -- items around. Note that, as described above, both Move and Lt use a -- single temporary location with index value zero. This sort is not -- stable, i.e. the order of equal elements in the input is not preserved. end GNAT.Heap_Sort_A;
61.242857
78
0.487287
12f51fd8cc1c5926e3d424097e302deb325cab56
162,647
adb
Ada
HLS/lab3/dct.prj/solution1/.autopilot/db/dct_1d2.adb
lfVelez/ISPR
840f41c2053a48642a7b287feecfea79c6f389b3
[ "MIT" ]
1
2021-03-03T16:53:52.000Z
2021-03-03T16:53:52.000Z
HLS/lab3/dct.prj/solution1/.autopilot/db/dct_1d2.adb
lfVelez/ISPR
840f41c2053a48642a7b287feecfea79c6f389b3
[ "MIT" ]
null
null
null
HLS/lab3/dct.prj/solution1/.autopilot/db/dct_1d2.adb
lfVelez/ISPR
840f41c2053a48642a7b287feecfea79c6f389b3
[ "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>dct_1d2</name> <ret_bitwidth>0</ret_bitwidth> <ports class_id="2" tracking_level="0" version="0"> <count>4</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>src</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>src</originalName> <rtlName/> <coreName>RAM</coreName> </Obj> <bitwidth>16</bitwidth> </Value> <direction>0</direction> <if_type>1</if_type> <array_size>64</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>tmp_6</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> <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>dst</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>dst</originalName> <rtlName/> <coreName>RAM</coreName> </Obj> <bitwidth>16</bitwidth> </Value> <direction>1</direction> <if_type>1</if_type> <array_size>64</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>tmp_61</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> <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> </ports> <nodes class_id="8" tracking_level="0" version="0"> <count>44</count> <item_version>0</item_version> <item class_id="9" tracking_level="1" version="0" object_id="_5"> <Value> <Obj> <type>0</type> <id>6</id> <name>tmp_61_read</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> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>64</item> <item>65</item> </oprand_edges> <opcode>read</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_6"> <Value> <Obj> <type>0</type> <id>7</id> <name>tmp_6_read</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> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>66</item> <item>67</item> </oprand_edges> <opcode>read</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_7"> <Value> <Obj> <type>0</type> <id>8</id> <name>tmp_s</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName>tmp_s_fu_129_p3</rtlName> <coreName/> </Obj> <bitwidth>7</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>69</item> <item>70</item> <item>72</item> </oprand_edges> <opcode>bitconcatenate</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_8"> <Value> <Obj> <type>0</type> <id>9</id> <name>tmp_24_cast</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName>tmp_24_cast_fu_137_p1</rtlName> <coreName/> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>73</item> </oprand_edges> <opcode>zext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_9"> <Value> <Obj> <type>0</type> <id>10</id> <name>tmp_15</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName>tmp_15_fu_141_p3</rtlName> <coreName/> </Obj> <bitwidth>7</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>74</item> <item>75</item> <item>76</item> </oprand_edges> <opcode>bitconcatenate</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_10"> <Value> <Obj> <type>0</type> <id>11</id> <name>tmp_26_cast</name> <fileName>dct.c</fileName> <fileDirectory>..</fileDirectory> <lineNumber>4</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item class_id="11" tracking_level="0" version="0"> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</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>dct.c</first> <second>dct_1d</second> </first> <second>4</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_26_cast_fu_149_p1</rtlName> <coreName/> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>77</item> </oprand_edges> <opcode>zext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_11"> <Value> <Obj> <type>0</type> <id>12</id> <name/> <fileName>dct.c</fileName> <fileDirectory>..</fileDirectory> <lineNumber>13</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>13</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>78</item> </oprand_edges> <opcode>br</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_12"> <Value> <Obj> <type>0</type> <id>14</id> <name>k</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>k</originalName> <rtlName/> <coreName/> </Obj> <bitwidth>4</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>80</item> <item>81</item> <item>82</item> <item>83</item> </oprand_edges> <opcode>phi</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_13"> <Value> <Obj> <type>0</type> <id>15</id> <name>tmp</name> <fileName>dct.c</fileName> <fileDirectory>..</fileDirectory> <lineNumber>13</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>13</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_fu_153_p2</rtlName> <coreName/> </Obj> <bitwidth>1</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>84</item> <item>86</item> </oprand_edges> <opcode>icmp</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_14"> <Value> <Obj> <type>0</type> <id>17</id> <name>k_1</name> <fileName>dct.c</fileName> <fileDirectory>..</fileDirectory> <lineNumber>13</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>13</second> </item> </second> </item> </inlineStackInfo> <originalName>k</originalName> <rtlName>k_1_fu_159_p2</rtlName> <coreName/> </Obj> <bitwidth>4</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>87</item> <item>89</item> </oprand_edges> <opcode>add</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_15"> <Value> <Obj> <type>0</type> <id>18</id> <name/> <fileName>dct.c</fileName> <fileDirectory>..</fileDirectory> <lineNumber>13</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>13</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>90</item> <item>91</item> <item>92</item> </oprand_edges> <opcode>br</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_16"> <Value> <Obj> <type>0</type> <id>22</id> <name>tmp_cast</name> <fileName>dct.c</fileName> <fileDirectory>..</fileDirectory> <lineNumber>19</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>19</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_cast_fu_165_p1</rtlName> <coreName/> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>93</item> </oprand_edges> <opcode>zext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_17"> <Value> <Obj> <type>0</type> <id>23</id> <name>tmp_16</name> <fileName>dct.c</fileName> <fileDirectory>..</fileDirectory> <lineNumber>19</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>19</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_16_fu_169_p2</rtlName> <coreName/> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>94</item> <item>95</item> </oprand_edges> <opcode>add</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_18"> <Value> <Obj> <type>0</type> <id>24</id> <name>tmp_27_cast</name> <fileName>dct.c</fileName> <fileDirectory>..</fileDirectory> <lineNumber>19</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>19</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_27_cast_fu_174_p1</rtlName> <coreName/> </Obj> <bitwidth>64</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>96</item> </oprand_edges> <opcode>zext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_19"> <Value> <Obj> <type>0</type> <id>25</id> <name>dst_addr</name> <fileName>dct.c</fileName> <fileDirectory>..</fileDirectory> <lineNumber>19</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>19</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>6</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>97</item> <item>99</item> <item>100</item> </oprand_edges> <opcode>getelementptr</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_20"> <Value> <Obj> <type>0</type> <id>26</id> <name>tmp_18</name> <fileName>dct.c</fileName> <fileDirectory>..</fileDirectory> <lineNumber>13</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>13</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_18_fu_179_p3</rtlName> <coreName/> </Obj> <bitwidth>7</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>101</item> <item>102</item> <item>103</item> </oprand_edges> <opcode>bitconcatenate</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_21"> <Value> <Obj> <type>0</type> <id>27</id> <name>tmp_29_cast</name> <fileName>dct.c</fileName> <fileDirectory>..</fileDirectory> <lineNumber>15</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>15</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_29_cast_fu_187_p1</rtlName> <coreName/> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>104</item> </oprand_edges> <opcode>zext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_22"> <Value> <Obj> <type>0</type> <id>28</id> <name/> <fileName>dct.c</fileName> <fileDirectory>..</fileDirectory> <lineNumber>15</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>15</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>105</item> </oprand_edges> <opcode>br</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_23"> <Value> <Obj> <type>0</type> <id>30</id> <name>n</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>n</originalName> <rtlName/> <coreName/> </Obj> <bitwidth>4</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>106</item> <item>107</item> <item>108</item> <item>109</item> </oprand_edges> <opcode>phi</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_24"> <Value> <Obj> <type>0</type> <id>31</id> <name>tmp1</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>tmp</originalName> <rtlName/> <coreName/> </Obj> <bitwidth>32</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="_25"> <Value> <Obj> <type>0</type> <id>32</id> <name>tmp_11</name> <fileName>dct.c</fileName> <fileDirectory>..</fileDirectory> <lineNumber>15</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>15</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_11_fu_191_p2</rtlName> <coreName/> </Obj> <bitwidth>1</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>115</item> <item>116</item> </oprand_edges> <opcode>icmp</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_26"> <Value> <Obj> <type>0</type> <id>34</id> <name>n_1</name> <fileName>dct.c</fileName> <fileDirectory>..</fileDirectory> <lineNumber>15</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>15</second> </item> </second> </item> </inlineStackInfo> <originalName>n</originalName> <rtlName>n_1_fu_197_p2</rtlName> <coreName/> </Obj> <bitwidth>4</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>117</item> <item>118</item> </oprand_edges> <opcode>add</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_27"> <Value> <Obj> <type>0</type> <id>35</id> <name/> <fileName>dct.c</fileName> <fileDirectory>..</fileDirectory> <lineNumber>15</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>15</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>119</item> <item>120</item> <item>121</item> </oprand_edges> <opcode>br</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_28"> <Value> <Obj> <type>0</type> <id>38</id> <name>tmp_15_cast</name> <fileName>dct.c</fileName> <fileDirectory>..</fileDirectory> <lineNumber>17</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>17</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_15_cast_fu_203_p1</rtlName> <coreName/> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>122</item> </oprand_edges> <opcode>zext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_29"> <Value> <Obj> <type>0</type> <id>39</id> <name>tmp_19</name> <fileName>dct.c</fileName> <fileDirectory>..</fileDirectory> <lineNumber>17</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>17</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_19_fu_207_p2</rtlName> <coreName/> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>123</item> <item>124</item> </oprand_edges> <opcode>add</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_30"> <Value> <Obj> <type>0</type> <id>40</id> <name>tmp_30_cast</name> <fileName>dct.c</fileName> <fileDirectory>..</fileDirectory> <lineNumber>17</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>17</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_30_cast_fu_212_p1</rtlName> <coreName/> </Obj> <bitwidth>64</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>125</item> </oprand_edges> <opcode>zext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_31"> <Value> <Obj> <type>0</type> <id>41</id> <name>src_addr</name> <fileName>dct.c</fileName> <fileDirectory>..</fileDirectory> <lineNumber>17</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>17</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>6</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>126</item> <item>127</item> <item>128</item> </oprand_edges> <opcode>getelementptr</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_32"> <Value> <Obj> <type>0</type> <id>42</id> <name>tmp_20</name> <fileName>dct.c</fileName> <fileDirectory>..</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_20_fu_217_p2</rtlName> <coreName/> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>129</item> <item>130</item> </oprand_edges> <opcode>add</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_33"> <Value> <Obj> <type>0</type> <id>43</id> <name>tmp_31_cast</name> <fileName>dct.c</fileName> <fileDirectory>..</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_31_cast_fu_222_p1</rtlName> <coreName/> </Obj> <bitwidth>64</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>131</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>44</id> <name>dct_coeff_table_addr</name> <fileName>dct.c</fileName> <fileDirectory>..</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>6</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>132</item> <item>133</item> <item>134</item> </oprand_edges> <opcode>getelementptr</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_35"> <Value> <Obj> <type>0</type> <id>45</id> <name>dct_coeff_table_load</name> <fileName>dct.c</fileName> <fileDirectory>..</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>15</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>135</item> </oprand_edges> <opcode>load</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_36"> <Value> <Obj> <type>0</type> <id>46</id> <name>coeff_cast</name> <fileName>dct.c</fileName> <fileDirectory>..</fileDirectory> <lineNumber>16</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>16</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>31</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>136</item> </oprand_edges> <opcode>sext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_37"> <Value> <Obj> <type>0</type> <id>47</id> <name>src_load</name> <fileName>dct.c</fileName> <fileDirectory>..</fileDirectory> <lineNumber>17</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>17</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>16</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>137</item> </oprand_edges> <opcode>load</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_38"> <Value> <Obj> <type>0</type> <id>48</id> <name>tmp_16_cast</name> <fileName>dct.c</fileName> <fileDirectory>..</fileDirectory> <lineNumber>17</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>17</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>31</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>138</item> </oprand_edges> <opcode>sext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_39"> <Value> <Obj> <type>0</type> <id>49</id> <name>tmp_17</name> <fileName>dct.c</fileName> <fileDirectory>..</fileDirectory> <lineNumber>17</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>17</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>dct_mac_muladd_15cud_U1</rtlName> <coreName/> </Obj> <bitwidth>31</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>139</item> <item>140</item> </oprand_edges> <opcode>mul</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_40"> <Value> <Obj> <type>0</type> <id>50</id> <name>tmp_17_cast</name> <fileName>dct.c</fileName> <fileDirectory>..</fileDirectory> <lineNumber>17</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>17</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>dct_mac_muladd_15cud_U1</rtlName> <coreName/> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>141</item> </oprand_edges> <opcode>sext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_41"> <Value> <Obj> <type>0</type> <id>51</id> <name>tmp_1</name> <fileName>dct.c</fileName> <fileDirectory>..</fileDirectory> <lineNumber>17</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>17</second> </item> </second> </item> </inlineStackInfo> <originalName>tmp</originalName> <rtlName>dct_mac_muladd_15cud_U1</rtlName> <coreName/> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>142</item> <item>143</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>52</id> <name/> <fileName>dct.c</fileName> <fileDirectory>..</fileDirectory> <lineNumber>15</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>15</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>144</item> </oprand_edges> <opcode>br</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_43"> <Value> <Obj> <type>0</type> <id>54</id> <name>tmp_2</name> <fileName>dct.c</fileName> <fileDirectory>..</fileDirectory> <lineNumber>15</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>15</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_2_fu_227_p1</rtlName> <coreName/> </Obj> <bitwidth>29</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>145</item> </oprand_edges> <opcode>trunc</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_44"> <Value> <Obj> <type>0</type> <id>55</id> <name>tmp_12</name> <fileName>dct.c</fileName> <fileDirectory>..</fileDirectory> <lineNumber>19</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>19</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_12_fu_231_p2</rtlName> <coreName/> </Obj> <bitwidth>29</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>147</item> <item>148</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>56</id> <name>tmp_14</name> <fileName>dct.c</fileName> <fileDirectory>..</fileDirectory> <lineNumber>19</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>19</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>dst_d0</rtlName> <coreName/> </Obj> <bitwidth>16</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>150</item> <item>151</item> <item>153</item> <item>155</item> </oprand_edges> <opcode>partselect</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_46"> <Value> <Obj> <type>0</type> <id>57</id> <name/> <fileName>dct.c</fileName> <fileDirectory>..</fileDirectory> <lineNumber>19</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>19</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>156</item> <item>157</item> </oprand_edges> <opcode>store</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_47"> <Value> <Obj> <type>0</type> <id>59</id> <name/> <fileName>dct.c</fileName> <fileDirectory>..</fileDirectory> <lineNumber>13</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</second> </first> <second>13</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>158</item> </oprand_edges> <opcode>br</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_48"> <Value> <Obj> <type>0</type> <id>61</id> <name/> <fileName>dct.c</fileName> <fileDirectory>..</fileDirectory> <lineNumber>21</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.c</first> <second>dct_1d</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>9</count> <item_version>0</item_version> <item class_id="16" tracking_level="1" version="0" object_id="_49"> <Value> <Obj> <type>2</type> <id>71</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="_50"> <Value> <Obj> <type>2</type> <id>79</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>0</content> </item> <item class_id_reference="16" object_id="_51"> <Value> <Obj> <type>2</type> <id>85</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>8</content> </item> <item class_id_reference="16" object_id="_52"> <Value> <Obj> <type>2</type> <id>88</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>1</content> </item> <item class_id_reference="16" object_id="_53"> <Value> <Obj> <type>2</type> <id>98</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>64</bitwidth> </Value> <const_type>0</const_type> <content>0</content> </item> <item class_id_reference="16" object_id="_54"> <Value> <Obj> <type>2</type> <id>110</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="_55"> <Value> <Obj> <type>2</type> <id>146</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>29</bitwidth> </Value> <const_type>0</const_type> <content>4096</content> </item> <item class_id_reference="16" object_id="_56"> <Value> <Obj> <type>2</type> <id>152</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>13</content> </item> <item class_id_reference="16" object_id="_57"> <Value> <Obj> <type>2</type> <id>154</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>28</content> </item> </consts> <blocks class_id="17" tracking_level="0" version="0"> <count>7</count> <item_version>0</item_version> <item class_id="18" tracking_level="1" version="0" object_id="_58"> <Obj> <type>3</type> <id>13</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>7</count> <item_version>0</item_version> <item>6</item> <item>7</item> <item>8</item> <item>9</item> <item>10</item> <item>11</item> <item>12</item> </node_objs> </item> <item class_id_reference="18" object_id="_59"> <Obj> <type>3</type> <id>19</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>4</count> <item_version>0</item_version> <item>14</item> <item>15</item> <item>17</item> <item>18</item> </node_objs> </item> <item class_id_reference="18" object_id="_60"> <Obj> <type>3</type> <id>29</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>7</count> <item_version>0</item_version> <item>22</item> <item>23</item> <item>24</item> <item>25</item> <item>26</item> <item>27</item> <item>28</item> </node_objs> </item> <item class_id_reference="18" object_id="_61"> <Obj> <type>3</type> <id>36</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>5</count> <item_version>0</item_version> <item>30</item> <item>31</item> <item>32</item> <item>34</item> <item>35</item> </node_objs> </item> <item class_id_reference="18" object_id="_62"> <Obj> <type>3</type> <id>53</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>15</count> <item_version>0</item_version> <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> </node_objs> </item> <item class_id_reference="18" object_id="_63"> <Obj> <type>3</type> <id>60</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>5</count> <item_version>0</item_version> <item>54</item> <item>55</item> <item>56</item> <item>57</item> <item>59</item> </node_objs> </item> <item class_id_reference="18" object_id="_64"> <Obj> <type>3</type> <id>62</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>61</item> </node_objs> </item> </blocks> <edges class_id="19" tracking_level="0" version="0"> <count>86</count> <item_version>0</item_version> <item class_id="20" tracking_level="1" version="0" object_id="_65"> <id>65</id> <edge_type>1</edge_type> <source_obj>4</source_obj> <sink_obj>6</sink_obj> </item> <item class_id_reference="20" object_id="_66"> <id>67</id> <edge_type>1</edge_type> <source_obj>2</source_obj> <sink_obj>7</sink_obj> </item> <item class_id_reference="20" object_id="_67"> <id>70</id> <edge_type>1</edge_type> <source_obj>6</source_obj> <sink_obj>8</sink_obj> </item> <item class_id_reference="20" object_id="_68"> <id>72</id> <edge_type>1</edge_type> <source_obj>71</source_obj> <sink_obj>8</sink_obj> </item> <item class_id_reference="20" object_id="_69"> <id>73</id> <edge_type>1</edge_type> <source_obj>8</source_obj> <sink_obj>9</sink_obj> </item> <item class_id_reference="20" object_id="_70"> <id>75</id> <edge_type>1</edge_type> <source_obj>7</source_obj> <sink_obj>10</sink_obj> </item> <item class_id_reference="20" object_id="_71"> <id>76</id> <edge_type>1</edge_type> <source_obj>71</source_obj> <sink_obj>10</sink_obj> </item> <item class_id_reference="20" object_id="_72"> <id>77</id> <edge_type>1</edge_type> <source_obj>10</source_obj> <sink_obj>11</sink_obj> </item> <item class_id_reference="20" object_id="_73"> <id>78</id> <edge_type>2</edge_type> <source_obj>19</source_obj> <sink_obj>12</sink_obj> </item> <item class_id_reference="20" object_id="_74"> <id>80</id> <edge_type>1</edge_type> <source_obj>79</source_obj> <sink_obj>14</sink_obj> </item> <item class_id_reference="20" object_id="_75"> <id>81</id> <edge_type>2</edge_type> <source_obj>13</source_obj> <sink_obj>14</sink_obj> </item> <item class_id_reference="20" object_id="_76"> <id>82</id> <edge_type>1</edge_type> <source_obj>17</source_obj> <sink_obj>14</sink_obj> </item> <item class_id_reference="20" object_id="_77"> <id>83</id> <edge_type>2</edge_type> <source_obj>60</source_obj> <sink_obj>14</sink_obj> </item> <item class_id_reference="20" object_id="_78"> <id>84</id> <edge_type>1</edge_type> <source_obj>14</source_obj> <sink_obj>15</sink_obj> </item> <item class_id_reference="20" object_id="_79"> <id>86</id> <edge_type>1</edge_type> <source_obj>85</source_obj> <sink_obj>15</sink_obj> </item> <item class_id_reference="20" object_id="_80"> <id>87</id> <edge_type>1</edge_type> <source_obj>14</source_obj> <sink_obj>17</sink_obj> </item> <item class_id_reference="20" object_id="_81"> <id>89</id> <edge_type>1</edge_type> <source_obj>88</source_obj> <sink_obj>17</sink_obj> </item> <item class_id_reference="20" object_id="_82"> <id>90</id> <edge_type>1</edge_type> <source_obj>15</source_obj> <sink_obj>18</sink_obj> </item> <item class_id_reference="20" object_id="_83"> <id>91</id> <edge_type>2</edge_type> <source_obj>29</source_obj> <sink_obj>18</sink_obj> </item> <item class_id_reference="20" object_id="_84"> <id>92</id> <edge_type>2</edge_type> <source_obj>62</source_obj> <sink_obj>18</sink_obj> </item> <item class_id_reference="20" object_id="_85"> <id>93</id> <edge_type>1</edge_type> <source_obj>14</source_obj> <sink_obj>22</sink_obj> </item> <item class_id_reference="20" object_id="_86"> <id>94</id> <edge_type>1</edge_type> <source_obj>22</source_obj> <sink_obj>23</sink_obj> </item> <item class_id_reference="20" object_id="_87"> <id>95</id> <edge_type>1</edge_type> <source_obj>9</source_obj> <sink_obj>23</sink_obj> </item> <item class_id_reference="20" object_id="_88"> <id>96</id> <edge_type>1</edge_type> <source_obj>23</source_obj> <sink_obj>24</sink_obj> </item> <item class_id_reference="20" object_id="_89"> <id>97</id> <edge_type>1</edge_type> <source_obj>3</source_obj> <sink_obj>25</sink_obj> </item> <item class_id_reference="20" object_id="_90"> <id>99</id> <edge_type>1</edge_type> <source_obj>98</source_obj> <sink_obj>25</sink_obj> </item> <item class_id_reference="20" object_id="_91"> <id>100</id> <edge_type>1</edge_type> <source_obj>24</source_obj> <sink_obj>25</sink_obj> </item> <item class_id_reference="20" object_id="_92"> <id>102</id> <edge_type>1</edge_type> <source_obj>14</source_obj> <sink_obj>26</sink_obj> </item> <item class_id_reference="20" object_id="_93"> <id>103</id> <edge_type>1</edge_type> <source_obj>71</source_obj> <sink_obj>26</sink_obj> </item> <item class_id_reference="20" object_id="_94"> <id>104</id> <edge_type>1</edge_type> <source_obj>26</source_obj> <sink_obj>27</sink_obj> </item> <item class_id_reference="20" object_id="_95"> <id>105</id> <edge_type>2</edge_type> <source_obj>36</source_obj> <sink_obj>28</sink_obj> </item> <item class_id_reference="20" object_id="_96"> <id>106</id> <edge_type>1</edge_type> <source_obj>79</source_obj> <sink_obj>30</sink_obj> </item> <item class_id_reference="20" object_id="_97"> <id>107</id> <edge_type>2</edge_type> <source_obj>29</source_obj> <sink_obj>30</sink_obj> </item> <item class_id_reference="20" object_id="_98"> <id>108</id> <edge_type>1</edge_type> <source_obj>34</source_obj> <sink_obj>30</sink_obj> </item> <item class_id_reference="20" object_id="_99"> <id>109</id> <edge_type>2</edge_type> <source_obj>53</source_obj> <sink_obj>30</sink_obj> </item> <item class_id_reference="20" object_id="_100"> <id>111</id> <edge_type>1</edge_type> <source_obj>110</source_obj> <sink_obj>31</sink_obj> </item> <item class_id_reference="20" object_id="_101"> <id>112</id> <edge_type>2</edge_type> <source_obj>29</source_obj> <sink_obj>31</sink_obj> </item> <item class_id_reference="20" object_id="_102"> <id>113</id> <edge_type>1</edge_type> <source_obj>51</source_obj> <sink_obj>31</sink_obj> </item> <item class_id_reference="20" object_id="_103"> <id>114</id> <edge_type>2</edge_type> <source_obj>53</source_obj> <sink_obj>31</sink_obj> </item> <item class_id_reference="20" object_id="_104"> <id>115</id> <edge_type>1</edge_type> <source_obj>30</source_obj> <sink_obj>32</sink_obj> </item> <item class_id_reference="20" object_id="_105"> <id>116</id> <edge_type>1</edge_type> <source_obj>85</source_obj> <sink_obj>32</sink_obj> </item> <item class_id_reference="20" object_id="_106"> <id>117</id> <edge_type>1</edge_type> <source_obj>30</source_obj> <sink_obj>34</sink_obj> </item> <item class_id_reference="20" object_id="_107"> <id>118</id> <edge_type>1</edge_type> <source_obj>88</source_obj> <sink_obj>34</sink_obj> </item> <item class_id_reference="20" object_id="_108"> <id>119</id> <edge_type>1</edge_type> <source_obj>32</source_obj> <sink_obj>35</sink_obj> </item> <item class_id_reference="20" object_id="_109"> <id>120</id> <edge_type>2</edge_type> <source_obj>53</source_obj> <sink_obj>35</sink_obj> </item> <item class_id_reference="20" object_id="_110"> <id>121</id> <edge_type>2</edge_type> <source_obj>60</source_obj> <sink_obj>35</sink_obj> </item> <item class_id_reference="20" object_id="_111"> <id>122</id> <edge_type>1</edge_type> <source_obj>30</source_obj> <sink_obj>38</sink_obj> </item> <item class_id_reference="20" object_id="_112"> <id>123</id> <edge_type>1</edge_type> <source_obj>11</source_obj> <sink_obj>39</sink_obj> </item> <item class_id_reference="20" object_id="_113"> <id>124</id> <edge_type>1</edge_type> <source_obj>38</source_obj> <sink_obj>39</sink_obj> </item> <item class_id_reference="20" object_id="_114"> <id>125</id> <edge_type>1</edge_type> <source_obj>39</source_obj> <sink_obj>40</sink_obj> </item> <item class_id_reference="20" object_id="_115"> <id>126</id> <edge_type>1</edge_type> <source_obj>1</source_obj> <sink_obj>41</sink_obj> </item> <item class_id_reference="20" object_id="_116"> <id>127</id> <edge_type>1</edge_type> <source_obj>98</source_obj> <sink_obj>41</sink_obj> </item> <item class_id_reference="20" object_id="_117"> <id>128</id> <edge_type>1</edge_type> <source_obj>40</source_obj> <sink_obj>41</sink_obj> </item> <item class_id_reference="20" object_id="_118"> <id>129</id> <edge_type>1</edge_type> <source_obj>27</source_obj> <sink_obj>42</sink_obj> </item> <item class_id_reference="20" object_id="_119"> <id>130</id> <edge_type>1</edge_type> <source_obj>38</source_obj> <sink_obj>42</sink_obj> </item> <item class_id_reference="20" object_id="_120"> <id>131</id> <edge_type>1</edge_type> <source_obj>42</source_obj> <sink_obj>43</sink_obj> </item> <item class_id_reference="20" object_id="_121"> <id>132</id> <edge_type>1</edge_type> <source_obj>5</source_obj> <sink_obj>44</sink_obj> </item> <item class_id_reference="20" object_id="_122"> <id>133</id> <edge_type>1</edge_type> <source_obj>98</source_obj> <sink_obj>44</sink_obj> </item> <item class_id_reference="20" object_id="_123"> <id>134</id> <edge_type>1</edge_type> <source_obj>43</source_obj> <sink_obj>44</sink_obj> </item> <item class_id_reference="20" object_id="_124"> <id>135</id> <edge_type>1</edge_type> <source_obj>44</source_obj> <sink_obj>45</sink_obj> </item> <item class_id_reference="20" object_id="_125"> <id>136</id> <edge_type>1</edge_type> <source_obj>45</source_obj> <sink_obj>46</sink_obj> </item> <item class_id_reference="20" object_id="_126"> <id>137</id> <edge_type>1</edge_type> <source_obj>41</source_obj> <sink_obj>47</sink_obj> </item> <item class_id_reference="20" object_id="_127"> <id>138</id> <edge_type>1</edge_type> <source_obj>47</source_obj> <sink_obj>48</sink_obj> </item> <item class_id_reference="20" object_id="_128"> <id>139</id> <edge_type>1</edge_type> <source_obj>46</source_obj> <sink_obj>49</sink_obj> </item> <item class_id_reference="20" object_id="_129"> <id>140</id> <edge_type>1</edge_type> <source_obj>48</source_obj> <sink_obj>49</sink_obj> </item> <item class_id_reference="20" object_id="_130"> <id>141</id> <edge_type>1</edge_type> <source_obj>49</source_obj> <sink_obj>50</sink_obj> </item> <item class_id_reference="20" object_id="_131"> <id>142</id> <edge_type>1</edge_type> <source_obj>31</source_obj> <sink_obj>51</sink_obj> </item> <item class_id_reference="20" object_id="_132"> <id>143</id> <edge_type>1</edge_type> <source_obj>50</source_obj> <sink_obj>51</sink_obj> </item> <item class_id_reference="20" object_id="_133"> <id>144</id> <edge_type>2</edge_type> <source_obj>36</source_obj> <sink_obj>52</sink_obj> </item> <item class_id_reference="20" object_id="_134"> <id>145</id> <edge_type>1</edge_type> <source_obj>31</source_obj> <sink_obj>54</sink_obj> </item> <item class_id_reference="20" object_id="_135"> <id>147</id> <edge_type>1</edge_type> <source_obj>146</source_obj> <sink_obj>55</sink_obj> </item> <item class_id_reference="20" object_id="_136"> <id>148</id> <edge_type>1</edge_type> <source_obj>54</source_obj> <sink_obj>55</sink_obj> </item> <item class_id_reference="20" object_id="_137"> <id>151</id> <edge_type>1</edge_type> <source_obj>55</source_obj> <sink_obj>56</sink_obj> </item> <item class_id_reference="20" object_id="_138"> <id>153</id> <edge_type>1</edge_type> <source_obj>152</source_obj> <sink_obj>56</sink_obj> </item> <item class_id_reference="20" object_id="_139"> <id>155</id> <edge_type>1</edge_type> <source_obj>154</source_obj> <sink_obj>56</sink_obj> </item> <item class_id_reference="20" object_id="_140"> <id>156</id> <edge_type>1</edge_type> <source_obj>56</source_obj> <sink_obj>57</sink_obj> </item> <item class_id_reference="20" object_id="_141"> <id>157</id> <edge_type>1</edge_type> <source_obj>25</source_obj> <sink_obj>57</sink_obj> </item> <item class_id_reference="20" object_id="_142"> <id>158</id> <edge_type>2</edge_type> <source_obj>19</source_obj> <sink_obj>59</sink_obj> </item> <item class_id_reference="20" object_id="_143"> <id>183</id> <edge_type>2</edge_type> <source_obj>13</source_obj> <sink_obj>19</sink_obj> </item> <item class_id_reference="20" object_id="_144"> <id>184</id> <edge_type>2</edge_type> <source_obj>19</source_obj> <sink_obj>62</sink_obj> </item> <item class_id_reference="20" object_id="_145"> <id>185</id> <edge_type>2</edge_type> <source_obj>19</source_obj> <sink_obj>29</sink_obj> </item> <item class_id_reference="20" object_id="_146"> <id>186</id> <edge_type>2</edge_type> <source_obj>29</source_obj> <sink_obj>36</sink_obj> </item> <item class_id_reference="20" object_id="_147"> <id>187</id> <edge_type>2</edge_type> <source_obj>36</source_obj> <sink_obj>60</sink_obj> </item> <item class_id_reference="20" object_id="_148"> <id>188</id> <edge_type>2</edge_type> <source_obj>36</source_obj> <sink_obj>53</sink_obj> </item> <item class_id_reference="20" object_id="_149"> <id>189</id> <edge_type>2</edge_type> <source_obj>53</source_obj> <sink_obj>36</sink_obj> </item> <item class_id_reference="20" object_id="_150"> <id>190</id> <edge_type>2</edge_type> <source_obj>60</source_obj> <sink_obj>19</sink_obj> </item> </edges> </cdfg> <cdfg_regions class_id="21" tracking_level="0" version="0"> <count>7</count> <item_version>0</item_version> <item class_id="22" tracking_level="1" version="0" object_id="_151"> <mId>1</mId> <mTag>dct_1d2</mTag> <mType>0</mType> <sub_regions> <count>3</count> <item_version>0</item_version> <item>2</item> <item>3</item> <item>7</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>209</mMinLatency> <mMaxLatency>-1</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"/> </item> <item class_id_reference="22" object_id="_152"> <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>13</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="_153"> <mId>3</mId> <mTag>DCT_Outer_Loop</mTag> <mType>1</mType> <sub_regions> <count>3</count> <item_version>0</item_version> <item>4</item> <item>5</item> <item>6</item> </sub_regions> <basic_blocks> <count>0</count> <item_version>0</item_version> </basic_blocks> <mII>-1</mII> <mDepth>-1</mDepth> <mMinTripCount>8</mMinTripCount> <mMaxTripCount>8</mMaxTripCount> <mMinLatency>208</mMinLatency> <mMaxLatency>-1</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"/> </item> <item class_id_reference="22" object_id="_154"> <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>2</count> <item_version>0</item_version> <item>19</item> <item>29</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="_155"> <mId>5</mId> <mTag>DCT_Inner_Loop</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>36</item> <item>53</item> </basic_blocks> <mII>-1</mII> <mDepth>-1</mDepth> <mMinTripCount>8</mMinTripCount> <mMaxTripCount>8</mMaxTripCount> <mMinLatency>24</mMinLatency> <mMaxLatency>-1</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"/> </item> <item class_id_reference="22" object_id="_156"> <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>1</count> <item_version>0</item_version> <item>60</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="_157"> <mId>7</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>62</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="_158"> <states class_id="25" tracking_level="0" version="0"> <count>5</count> <item_version>0</item_version> <item class_id="26" tracking_level="1" version="0" object_id="_159"> <id>1</id> <operations class_id="27" tracking_level="0" version="0"> <count>7</count> <item_version>0</item_version> <item class_id="28" tracking_level="1" version="0" object_id="_160"> <id>6</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_161"> <id>7</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_162"> <id>8</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_163"> <id>9</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_164"> <id>10</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_165"> <id>11</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_166"> <id>12</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_167"> <id>2</id> <operations> <count>15</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_168"> <id>14</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_169"> <id>15</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_170"> <id>16</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_171"> <id>17</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_172"> <id>18</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_173"> <id>20</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_174"> <id>21</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_175"> <id>22</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_176"> <id>23</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_177"> <id>24</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_178"> <id>25</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_179"> <id>26</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_180"> <id>27</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_181"> <id>28</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_182"> <id>61</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_183"> <id>3</id> <operations> <count>21</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_184"> <id>30</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_185"> <id>31</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_186"> <id>32</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_187"> <id>33</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_188"> <id>34</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_189"> <id>35</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_190"> <id>38</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_191"> <id>39</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_192"> <id>40</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_193"> <id>41</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_194"> <id>42</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_195"> <id>43</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_196"> <id>44</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_197"> <id>45</id> <stage>2</stage> <latency>2</latency> </item> <item class_id_reference="28" object_id="_198"> <id>47</id> <stage>2</stage> <latency>2</latency> </item> <item class_id_reference="28" object_id="_199"> <id>54</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_200"> <id>55</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_201"> <id>56</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_202"> <id>57</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_203"> <id>58</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_204"> <id>59</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_205"> <id>4</id> <operations> <count>2</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_206"> <id>45</id> <stage>1</stage> <latency>2</latency> </item> <item class_id_reference="28" object_id="_207"> <id>47</id> <stage>1</stage> <latency>2</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_208"> <id>5</id> <operations> <count>7</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_209"> <id>37</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_210"> <id>46</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_211"> <id>48</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_212"> <id>49</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_213"> <id>50</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_214"> <id>51</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_215"> <id>52</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> </states> <transitions class_id="29" tracking_level="0" version="0"> <count>6</count> <item_version>0</item_version> <item class_id="30" tracking_level="1" version="0" object_id="_216"> <inState>1</inState> <outState>2</outState> <condition class_id="31" tracking_level="0" version="0"> <id>14</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="_217"> <inState>2</inState> <outState>3</outState> <condition> <id>16</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>15</first> <second>0</second> </first> <second>1</second> </item> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_218"> <inState>3</inState> <outState>4</outState> <condition> <id>17</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>1</count> <item_version>0</item_version> <item> <first> <first>32</first> <second>0</second> </first> <second>1</second> </item> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_219"> <inState>4</inState> <outState>5</outState> <condition> <id>19</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="_220"> <inState>5</inState> <outState>3</outState> <condition> <id>21</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="_221"> <inState>3</inState> <outState>2</outState> <condition> <id>23</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>1</count> <item_version>0</item_version> <item> <first> <first>32</first> <second>0</second> </first> <second>0</second> </item> </item> </sop> </condition> </item> </transitions> </fsm> <res class_id="36" tracking_level="1" version="0" object_id="_222"> <dp_component_resource class_id="37" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </dp_component_resource> <dp_expression_resource> <count>8</count> <item_version>0</item_version> <item class_id="38" tracking_level="0" version="0"> <first>k_1_fu_159_p2 ( + ) </first> <second class_id="39" tracking_level="0" version="0"> <count>4</count> <item_version>0</item_version> <item class_id="40" tracking_level="0" version="0"> <first>(0P0)</first> <second>4</second> </item> <item> <first>(1P1)</first> <second>1</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>13</second> </item> </second> </item> <item> <first>n_1_fu_197_p2 ( + ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>4</second> </item> <item> <first>(1P1)</first> <second>1</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>13</second> </item> </second> </item> <item> <first>tmp_11_fu_191_p2 ( icmp ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>4</second> </item> <item> <first>(1P1)</first> <second>5</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>2</second> </item> </second> </item> <item> <first>tmp_12_fu_231_p2 ( + ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>13</second> </item> <item> <first>(1P1)</first> <second>29</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>36</second> </item> </second> </item> <item> <first>tmp_16_fu_169_p2 ( + ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>8</second> </item> <item> <first>(1P1)</first> <second>8</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>15</second> </item> </second> </item> <item> <first>tmp_19_fu_207_p2 ( + ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>8</second> </item> <item> <first>(1P1)</first> <second>8</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>15</second> </item> </second> </item> <item> <first>tmp_20_fu_217_p2 ( + ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>8</second> </item> <item> <first>(1P1)</first> <second>8</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>15</second> </item> </second> </item> <item> <first>tmp_fu_153_p2 ( icmp ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>4</second> </item> <item> <first>(1P1)</first> <second>5</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>2</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>1</count> <item_version>0</item_version> <item> <first>dct_coeff_table_U</first> <second> <count>7</count> <item_version>0</item_version> <item> <first>(0Words)</first> <second>64</second> </item> <item> <first>(1Bits)</first> <second>15</second> </item> <item> <first>(2Banks)</first> <second>1</second> </item> <item> <first>(3W*Bits*Banks)</first> <second>960</second> </item> <item> <first>BRAM</first> <second>0</second> </item> <item> <first>FF</first> <second>15</second> </item> <item> <first>LUT</first> <second>15</second> </item> </second> </item> </dp_memory_resource> <dp_multiplexer_resource> <count>4</count> <item_version>0</item_version> <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>k_reg_95</first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0Size)</first> <second>2</second> </item> <item> <first>(1Bits)</first> <second>4</second> </item> <item> <first>(2Count)</first> <second>8</second> </item> <item> <first>LUT</first> <second>9</second> </item> </second> </item> <item> <first>n_reg_106</first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0Size)</first> <second>2</second> </item> <item> <first>(1Bits)</first> <second>4</second> </item> <item> <first>(2Count)</first> <second>8</second> </item> <item> <first>LUT</first> <second>9</second> </item> </second> </item> <item> <first>tmp1_reg_117</first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0Size)</first> <second>2</second> </item> <item> <first>(1Bits)</first> <second>32</second> </item> <item> <first>(2Count)</first> <second>64</second> </item> <item> <first>LUT</first> <second>9</second> </item> </second> </item> </dp_multiplexer_resource> <dp_register_resource> <count>12</count> <item_version>0</item_version> <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>dct_coeff_table_load_reg_308</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>15</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>15</second> </item> </second> </item> <item> <first>dst_addr_reg_280</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>k_1_reg_275</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>k_reg_95</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>n_1_reg_293</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>n_reg_106</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>src_load_reg_313</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>tmp1_reg_117</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>32</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>32</second> </item> </second> </item> <item> <first>tmp_24_cast_reg_262</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>8</second> </item> <item> <first>(Consts)</first> <second>4</second> </item> <item> <first>FF</first> <second>4</second> </item> </second> </item> <item> <first>tmp_26_cast_reg_267</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>8</second> </item> <item> <first>(Consts)</first> <second>4</second> </item> <item> <first>FF</first> <second>4</second> </item> </second> </item> <item> <first>tmp_29_cast_reg_285</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>8</second> </item> <item> <first>(Consts)</first> <second>4</second> </item> <item> <first>FF</first> <second>4</second> </item> </second> </item> </dp_register_resource> <dp_component_map class_id="41" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </dp_component_map> <dp_expression_map> <count>8</count> <item_version>0</item_version> <item class_id="42" tracking_level="0" version="0"> <first>k_1_fu_159_p2 ( + ) </first> <second> <count>1</count> <item_version>0</item_version> <item>17</item> </second> </item> <item> <first>n_1_fu_197_p2 ( + ) </first> <second> <count>1</count> <item_version>0</item_version> <item>34</item> </second> </item> <item> <first>tmp_11_fu_191_p2 ( icmp ) </first> <second> <count>1</count> <item_version>0</item_version> <item>32</item> </second> </item> <item> <first>tmp_12_fu_231_p2 ( + ) </first> <second> <count>1</count> <item_version>0</item_version> <item>55</item> </second> </item> <item> <first>tmp_16_fu_169_p2 ( + ) </first> <second> <count>1</count> <item_version>0</item_version> <item>23</item> </second> </item> <item> <first>tmp_19_fu_207_p2 ( + ) </first> <second> <count>1</count> <item_version>0</item_version> <item>39</item> </second> </item> <item> <first>tmp_20_fu_217_p2 ( + ) </first> <second> <count>1</count> <item_version>0</item_version> <item>42</item> </second> </item> <item> <first>tmp_fu_153_p2 ( icmp ) </first> <second> <count>1</count> <item_version>0</item_version> <item>15</item> </second> </item> </dp_expression_map> <dp_fifo_map> <count>0</count> <item_version>0</item_version> </dp_fifo_map> <dp_memory_map> <count>1</count> <item_version>0</item_version> <item> <first>dct_coeff_table_U</first> <second> <count>1</count> <item_version>0</item_version> <item>41</item> </second> </item> </dp_memory_map> </res> <node_label_latency class_id="43" tracking_level="0" version="0"> <count>44</count> <item_version>0</item_version> <item class_id="44" tracking_level="0" version="0"> <first>6</first> <second class_id="45" tracking_level="0" version="0"> <first>0</first> <second>0</second> </second> </item> <item> <first>7</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>8</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>9</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>10</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>11</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>12</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>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>18</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>1</first> <second>0</second> </second> </item> <item> <first>24</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>25</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>26</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>27</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>28</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>30</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>31</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>32</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>34</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>35</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>38</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>39</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>40</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>41</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>42</first> <second> <first>2</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>2</first> <second>1</second> </second> </item> <item> <first>46</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>47</first> <second> <first>2</first> <second>1</second> </second> </item> <item> <first>48</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>49</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>50</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>51</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>52</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>54</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>55</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>56</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>57</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>59</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>61</first> <second> <first>1</first> <second>0</second> </second> </item> </node_label_latency> <bblk_ent_exit class_id="46" tracking_level="0" version="0"> <count>7</count> <item_version>0</item_version> <item class_id="47" tracking_level="0" version="0"> <first>13</first> <second class_id="48" tracking_level="0" version="0"> <first>0</first> <second>0</second> </second> </item> <item> <first>19</first> <second> <first>1</first> <second>1</second> </second> </item> <item> <first>29</first> <second> <first>1</first> <second>1</second> </second> </item> <item> <first>36</first> <second> <first>2</first> <second>2</second> </second> </item> <item> <first>53</first> <second> <first>2</first> <second>4</second> </second> </item> <item> <first>60</first> <second> <first>2</first> <second>2</second> </second> </item> <item> <first>62</first> <second> <first>1</first> <second>1</second> </second> </item> </bblk_ent_exit> <regions class_id="49" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </regions> <dp_fu_nodes class_id="50" tracking_level="0" version="0"> <count>35</count> <item_version>0</item_version> <item class_id="51" tracking_level="0" version="0"> <first>48</first> <second> <count>1</count> <item_version>0</item_version> <item>6</item> </second> </item> <item> <first>54</first> <second> <count>1</count> <item_version>0</item_version> <item>7</item> </second> </item> <item> <first>60</first> <second> <count>1</count> <item_version>0</item_version> <item>25</item> </second> </item> <item> <first>67</first> <second> <count>1</count> <item_version>0</item_version> <item>41</item> </second> </item> <item> <first>74</first> <second> <count>1</count> <item_version>0</item_version> <item>44</item> </second> </item> <item> <first>81</first> <second> <count>2</count> <item_version>0</item_version> <item>45</item> <item>45</item> </second> </item> <item> <first>86</first> <second> <count>2</count> <item_version>0</item_version> <item>47</item> <item>47</item> </second> </item> <item> <first>91</first> <second> <count>1</count> <item_version>0</item_version> <item>57</item> </second> </item> <item> <first>99</first> <second> <count>1</count> <item_version>0</item_version> <item>14</item> </second> </item> <item> <first>110</first> <second> <count>1</count> <item_version>0</item_version> <item>30</item> </second> </item> <item> <first>121</first> <second> <count>1</count> <item_version>0</item_version> <item>31</item> </second> </item> <item> <first>129</first> <second> <count>1</count> <item_version>0</item_version> <item>8</item> </second> </item> <item> <first>137</first> <second> <count>1</count> <item_version>0</item_version> <item>9</item> </second> </item> <item> <first>141</first> <second> <count>1</count> <item_version>0</item_version> <item>10</item> </second> </item> <item> <first>149</first> <second> <count>1</count> <item_version>0</item_version> <item>11</item> </second> </item> <item> <first>153</first> <second> <count>1</count> <item_version>0</item_version> <item>15</item> </second> </item> <item> <first>159</first> <second> <count>1</count> <item_version>0</item_version> <item>17</item> </second> </item> <item> <first>165</first> <second> <count>1</count> <item_version>0</item_version> <item>22</item> </second> </item> <item> <first>169</first> <second> <count>1</count> <item_version>0</item_version> <item>23</item> </second> </item> <item> <first>174</first> <second> <count>1</count> <item_version>0</item_version> <item>24</item> </second> </item> <item> <first>179</first> <second> <count>1</count> <item_version>0</item_version> <item>26</item> </second> </item> <item> <first>187</first> <second> <count>1</count> <item_version>0</item_version> <item>27</item> </second> </item> <item> <first>191</first> <second> <count>1</count> <item_version>0</item_version> <item>32</item> </second> </item> <item> <first>197</first> <second> <count>1</count> <item_version>0</item_version> <item>34</item> </second> </item> <item> <first>203</first> <second> <count>1</count> <item_version>0</item_version> <item>38</item> </second> </item> <item> <first>207</first> <second> <count>1</count> <item_version>0</item_version> <item>39</item> </second> </item> <item> <first>212</first> <second> <count>1</count> <item_version>0</item_version> <item>40</item> </second> </item> <item> <first>217</first> <second> <count>1</count> <item_version>0</item_version> <item>42</item> </second> </item> <item> <first>222</first> <second> <count>1</count> <item_version>0</item_version> <item>43</item> </second> </item> <item> <first>227</first> <second> <count>1</count> <item_version>0</item_version> <item>54</item> </second> </item> <item> <first>231</first> <second> <count>1</count> <item_version>0</item_version> <item>55</item> </second> </item> <item> <first>237</first> <second> <count>1</count> <item_version>0</item_version> <item>56</item> </second> </item> <item> <first>248</first> <second> <count>1</count> <item_version>0</item_version> <item>46</item> </second> </item> <item> <first>251</first> <second> <count>1</count> <item_version>0</item_version> <item>48</item> </second> </item> <item> <first>254</first> <second> <count>3</count> <item_version>0</item_version> <item>49</item> <item>50</item> <item>51</item> </second> </item> </dp_fu_nodes> <dp_fu_nodes_expression class_id="53" tracking_level="0" version="0"> <count>30</count> <item_version>0</item_version> <item class_id="54" tracking_level="0" version="0"> <first>coeff_cast_fu_248</first> <second> <count>1</count> <item_version>0</item_version> <item>46</item> </second> </item> <item> <first>dct_coeff_table_addr_gep_fu_74</first> <second> <count>1</count> <item_version>0</item_version> <item>44</item> </second> </item> <item> <first>dst_addr_gep_fu_60</first> <second> <count>1</count> <item_version>0</item_version> <item>25</item> </second> </item> <item> <first>grp_fu_254</first> <second> <count>3</count> <item_version>0</item_version> <item>49</item> <item>50</item> <item>51</item> </second> </item> <item> <first>k_1_fu_159</first> <second> <count>1</count> <item_version>0</item_version> <item>17</item> </second> </item> <item> <first>k_phi_fu_99</first> <second> <count>1</count> <item_version>0</item_version> <item>14</item> </second> </item> <item> <first>n_1_fu_197</first> <second> <count>1</count> <item_version>0</item_version> <item>34</item> </second> </item> <item> <first>n_phi_fu_110</first> <second> <count>1</count> <item_version>0</item_version> <item>30</item> </second> </item> <item> <first>src_addr_gep_fu_67</first> <second> <count>1</count> <item_version>0</item_version> <item>41</item> </second> </item> <item> <first>tmp1_phi_fu_121</first> <second> <count>1</count> <item_version>0</item_version> <item>31</item> </second> </item> <item> <first>tmp_11_fu_191</first> <second> <count>1</count> <item_version>0</item_version> <item>32</item> </second> </item> <item> <first>tmp_12_fu_231</first> <second> <count>1</count> <item_version>0</item_version> <item>55</item> </second> </item> <item> <first>tmp_14_fu_237</first> <second> <count>1</count> <item_version>0</item_version> <item>56</item> </second> </item> <item> <first>tmp_15_cast_fu_203</first> <second> <count>1</count> <item_version>0</item_version> <item>38</item> </second> </item> <item> <first>tmp_15_fu_141</first> <second> <count>1</count> <item_version>0</item_version> <item>10</item> </second> </item> <item> <first>tmp_16_cast_fu_251</first> <second> <count>1</count> <item_version>0</item_version> <item>48</item> </second> </item> <item> <first>tmp_16_fu_169</first> <second> <count>1</count> <item_version>0</item_version> <item>23</item> </second> </item> <item> <first>tmp_18_fu_179</first> <second> <count>1</count> <item_version>0</item_version> <item>26</item> </second> </item> <item> <first>tmp_19_fu_207</first> <second> <count>1</count> <item_version>0</item_version> <item>39</item> </second> </item> <item> <first>tmp_20_fu_217</first> <second> <count>1</count> <item_version>0</item_version> <item>42</item> </second> </item> <item> <first>tmp_24_cast_fu_137</first> <second> <count>1</count> <item_version>0</item_version> <item>9</item> </second> </item> <item> <first>tmp_26_cast_fu_149</first> <second> <count>1</count> <item_version>0</item_version> <item>11</item> </second> </item> <item> <first>tmp_27_cast_fu_174</first> <second> <count>1</count> <item_version>0</item_version> <item>24</item> </second> </item> <item> <first>tmp_29_cast_fu_187</first> <second> <count>1</count> <item_version>0</item_version> <item>27</item> </second> </item> <item> <first>tmp_2_fu_227</first> <second> <count>1</count> <item_version>0</item_version> <item>54</item> </second> </item> <item> <first>tmp_30_cast_fu_212</first> <second> <count>1</count> <item_version>0</item_version> <item>40</item> </second> </item> <item> <first>tmp_31_cast_fu_222</first> <second> <count>1</count> <item_version>0</item_version> <item>43</item> </second> </item> <item> <first>tmp_cast_fu_165</first> <second> <count>1</count> <item_version>0</item_version> <item>22</item> </second> </item> <item> <first>tmp_fu_153</first> <second> <count>1</count> <item_version>0</item_version> <item>15</item> </second> </item> <item> <first>tmp_s_fu_129</first> <second> <count>1</count> <item_version>0</item_version> <item>8</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>2</count> <item_version>0</item_version> <item> <first>tmp_61_read_read_fu_48</first> <second> <count>1</count> <item_version>0</item_version> <item>6</item> </second> </item> <item> <first>tmp_6_read_read_fu_54</first> <second> <count>1</count> <item_version>0</item_version> <item>7</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="55" tracking_level="0" version="0"> <count>3</count> <item_version>0</item_version> <item class_id="56" tracking_level="0" version="0"> <first class_id="57" tracking_level="0" version="0"> <first>dct_coeff_table</first> <second>0</second> </first> <second> <count>2</count> <item_version>0</item_version> <item>45</item> <item>45</item> </second> </item> <item> <first> <first>dst</first> <second>0</second> </first> <second> <count>1</count> <item_version>0</item_version> <item>57</item> </second> </item> <item> <first> <first>src</first> <second>0</second> </first> <second> <count>2</count> <item_version>0</item_version> <item>47</item> <item>47</item> </second> </item> </dp_mem_port_nodes> <dp_reg_nodes> <count>14</count> <item_version>0</item_version> <item> <first>95</first> <second> <count>1</count> <item_version>0</item_version> <item>14</item> </second> </item> <item> <first>106</first> <second> <count>1</count> <item_version>0</item_version> <item>30</item> </second> </item> <item> <first>117</first> <second> <count>1</count> <item_version>0</item_version> <item>31</item> </second> </item> <item> <first>262</first> <second> <count>1</count> <item_version>0</item_version> <item>9</item> </second> </item> <item> <first>267</first> <second> <count>1</count> <item_version>0</item_version> <item>11</item> </second> </item> <item> <first>275</first> <second> <count>1</count> <item_version>0</item_version> <item>17</item> </second> </item> <item> <first>280</first> <second> <count>1</count> <item_version>0</item_version> <item>25</item> </second> </item> <item> <first>285</first> <second> <count>1</count> <item_version>0</item_version> <item>27</item> </second> </item> <item> <first>293</first> <second> <count>1</count> <item_version>0</item_version> <item>34</item> </second> </item> <item> <first>298</first> <second> <count>1</count> <item_version>0</item_version> <item>41</item> </second> </item> <item> <first>303</first> <second> <count>1</count> <item_version>0</item_version> <item>44</item> </second> </item> <item> <first>308</first> <second> <count>1</count> <item_version>0</item_version> <item>45</item> </second> </item> <item> <first>313</first> <second> <count>1</count> <item_version>0</item_version> <item>47</item> </second> </item> <item> <first>318</first> <second> <count>1</count> <item_version>0</item_version> <item>51</item> </second> </item> </dp_reg_nodes> <dp_regname_nodes> <count>14</count> <item_version>0</item_version> <item> <first>dct_coeff_table_addr_reg_303</first> <second> <count>1</count> <item_version>0</item_version> <item>44</item> </second> </item> <item> <first>dct_coeff_table_load_reg_308</first> <second> <count>1</count> <item_version>0</item_version> <item>45</item> </second> </item> <item> <first>dst_addr_reg_280</first> <second> <count>1</count> <item_version>0</item_version> <item>25</item> </second> </item> <item> <first>k_1_reg_275</first> <second> <count>1</count> <item_version>0</item_version> <item>17</item> </second> </item> <item> <first>k_reg_95</first> <second> <count>1</count> <item_version>0</item_version> <item>14</item> </second> </item> <item> <first>n_1_reg_293</first> <second> <count>1</count> <item_version>0</item_version> <item>34</item> </second> </item> <item> <first>n_reg_106</first> <second> <count>1</count> <item_version>0</item_version> <item>30</item> </second> </item> <item> <first>src_addr_reg_298</first> <second> <count>1</count> <item_version>0</item_version> <item>41</item> </second> </item> <item> <first>src_load_reg_313</first> <second> <count>1</count> <item_version>0</item_version> <item>47</item> </second> </item> <item> <first>tmp1_reg_117</first> <second> <count>1</count> <item_version>0</item_version> <item>31</item> </second> </item> <item> <first>tmp_1_reg_318</first> <second> <count>1</count> <item_version>0</item_version> <item>51</item> </second> </item> <item> <first>tmp_24_cast_reg_262</first> <second> <count>1</count> <item_version>0</item_version> <item>9</item> </second> </item> <item> <first>tmp_26_cast_reg_267</first> <second> <count>1</count> <item_version>0</item_version> <item>11</item> </second> </item> <item> <first>tmp_29_cast_reg_285</first> <second> <count>1</count> <item_version>0</item_version> <item>27</item> </second> </item> </dp_regname_nodes> <dp_reg_phi> <count>3</count> <item_version>0</item_version> <item> <first>95</first> <second> <count>1</count> <item_version>0</item_version> <item>14</item> </second> </item> <item> <first>106</first> <second> <count>1</count> <item_version>0</item_version> <item>30</item> </second> </item> <item> <first>117</first> <second> <count>1</count> <item_version>0</item_version> <item>31</item> </second> </item> </dp_reg_phi> <dp_regname_phi> <count>3</count> <item_version>0</item_version> <item> <first>k_reg_95</first> <second> <count>1</count> <item_version>0</item_version> <item>14</item> </second> </item> <item> <first>n_reg_106</first> <second> <count>1</count> <item_version>0</item_version> <item>30</item> </second> </item> <item> <first>tmp1_reg_117</first> <second> <count>1</count> <item_version>0</item_version> <item>31</item> </second> </item> </dp_regname_phi> <dp_port_io_nodes class_id="58" tracking_level="0" version="0"> <count>4</count> <item_version>0</item_version> <item class_id="59" tracking_level="0" version="0"> <first>dst(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>57</item> </second> </item> </second> </item> <item> <first>src(p0)</first> <second> <count>1</count> <item_version>0</item_version> <item> <first>load</first> <second> <count>2</count> <item_version>0</item_version> <item>47</item> <item>47</item> </second> </item> </second> </item> <item> <first>tmp_6</first> <second> <count>1</count> <item_version>0</item_version> <item> <first>read</first> <second> <count>1</count> <item_version>0</item_version> <item>7</item> </second> </item> </second> </item> <item> <first>tmp_61</first> <second> <count>1</count> <item_version>0</item_version> <item> <first>read</first> <second> <count>1</count> <item_version>0</item_version> <item>6</item> </second> </item> </second> </item> </dp_port_io_nodes> <port2core class_id="60" tracking_level="0" version="0"> <count>2</count> <item_version>0</item_version> <item class_id="61" tracking_level="0" version="0"> <first>1</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>
30.041928
86
0.437543
12b23ae77c0f7d2a80323bd6d5acf0bc3769f9b7
4,328
ads
Ada
src/log_filter_handlers.ads
Lyaaaaaaaaaaaaaaa/Lyaaaaa-s-Log-Filters
d1b402170642271ae73828522ac80313b392a229
[ "MIT" ]
1
2019-04-19T13:57:50.000Z
2019-04-19T13:57:50.000Z
src/log_filter_handlers.ads
Lyaaaaaaaaaaaaaaa/Lyaaaaa-s-Logs-Filter
d1b402170642271ae73828522ac80313b392a229
[ "MIT" ]
2
2019-05-10T12:23:17.000Z
2019-05-31T12:56:06.000Z
src/log_filter_handlers.ads
Lyaaaaaaaaaaaaaaa/Lyaaaaa-s-Log-Filters
d1b402170642271ae73828522ac80313b392a229
[ "MIT" ]
null
null
null
---------------------------------------------------------- -- Copyright (c), The MIT License (MIT) -- Author: Lyaaaaaaaaaaaaaaa -- -- Revision History: -- 18/09/2019 Lyaaaaaaaaaaaaaaa -- - Added file header -- - Removed procedure Init_Objects (unused procedure) ---------------------------------------------------------- ---------------------- -- Gtk includes -- ---------------------- with GtkAda; with Gtk; use Gtk; with Glib; use Glib; with Gtk.Box; use Gtk.Box; with Gtk.Main; use Gtk.Main; with Gtk.Label; use Gtk.Label; with Gtk.Button; use Gtk.Button; with Gtk.Widget; use Gtk.Widget; with Glib.Error; use Glib.Error; with Gtk.Window; use Gtk.Window; with gtk.Dialog; use gtk.Dialog; with Gtk.Spinner; use Gtk.Spinner; with Gtk.Text_Iter; use Gtk.Text_Iter; with Gtk.Text_View; use Gtk.Text_View; with Gtk.Assistant; use Gtk.Assistant; with Gtk.Menu_Item; use Gtk.Menu_Item; with Gtkada.Builder; use Gtkada.Builder; with Gtk.Text_Buffer; use Gtk.Text_Buffer; with Gtkada.Handlers; use Gtkada.Handlers; with Gtk.Entry_Buffer; use Gtk.Entry_Buffer; with Gtk.About_Dialog; use Gtk.About_Dialog; with Gtkada.File_Selection; use Gtkada.File_Selection; ---------------------------------------------------------- ---------------------- -- Ada includes -- ---------------------- with Ada.Text_IO; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; ---------------------------------------------------------- ------------------------- -- Custom includes -- ------------------------- with Log_Filter; use Log_Filter; ---------------------------------------------------------- package Log_Filter_Handlers is -- Init GtkAda, connect the interface file with the package -- Connect the signals with the handlers. ---------------------------------------------------------- -------------------------------------------- -- Procedures and functions -- -------------------------------------------- procedure Init; -- Inits will Initialize GTKAda and create the objetcs. procedure Connect_Interface; -- Will load the interface xml file -- and link the objects declared ealier -- to the widget of the xml file. procedure Register_Handlers; -- Links Gtk's signals with the Log_Filter_Handlers. procedure Start_Interface; -- Displays the main window and start gtk's loop. procedure Quit (Self : access Gtk_Widget_Record'Class); -- Unreference the builder and shutdown the application. ----------------- -- Buttons -- ----------------- procedure Button_Start_Clicked (Self : access Gtk_Button_Record'Class); -- The "Start" button handler. Calls Log_Filter's methods. procedure Button_Select_File_Clicked (Self : access Gtk_Button_Record'Class); -- The "Select file" button handler. -- Close opened file, open file chooser dialog, display file's path ------------------- -- Assistant -- ------------------- procedure Display_Help_Assistant (Self : access Gtk_Menu_Item_Record'Class); -- Show the assistant dialog. procedure Display_Next_Page (Self : access Gtk_Assistant_Record'Class); -- Will show the next page of the assistant. procedure Validate_Steps; -- will validate the steps (assistant dialog) and unlock the "next" buttons. procedure Quit_Assistant (self : access Gtk_Assistant_Record'Class); -- Hide the assistant dialog and unref it. ----------------- -- About -- ----------------- procedure Display_About (self : access Gtk_Menu_Item_Record'Class); -- Show the about dialog. procedure Quit_About (self : access Gtk_Dialog_Record'Class); -- Hide the about dialog and unref it. ------------------- -- Functions -- ------------------- function Status_Message return String; -- Formats a text with the number of returned lines. end Log_Filter_Handlers;
31.136691
80
0.523567
39dfc4f303cfd665de5f277c38bad362063e9eb8
6,799
ads
Ada
source/nodes/program-nodes-while_loop_statements.ads
reznikmm/gela
20134f1d154fb763812e73860c6f4b04f353df79
[ "MIT" ]
null
null
null
source/nodes/program-nodes-while_loop_statements.ads
reznikmm/gela
20134f1d154fb763812e73860c6f4b04f353df79
[ "MIT" ]
null
null
null
source/nodes/program-nodes-while_loop_statements.ads
reznikmm/gela
20134f1d154fb763812e73860c6f4b04f353df79
[ "MIT" ]
1
2019-10-16T09:05:27.000Z
2019-10-16T09:05:27.000Z
-- SPDX-FileCopyrightText: 2019 Max Reznik <[email protected]> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Elements.Defining_Identifiers; with Program.Lexical_Elements; with Program.Elements.Expressions; with Program.Element_Vectors; with Program.Elements.Identifiers; with Program.Elements.While_Loop_Statements; with Program.Element_Visitors; package Program.Nodes.While_Loop_Statements is pragma Preelaborate; type While_Loop_Statement is new Program.Nodes.Node and Program.Elements.While_Loop_Statements.While_Loop_Statement and Program.Elements.While_Loop_Statements.While_Loop_Statement_Text with private; function Create (Statement_Identifier : Program.Elements.Defining_Identifiers .Defining_Identifier_Access; Colon_Token : Program.Lexical_Elements .Lexical_Element_Access; While_Token : not null Program.Lexical_Elements .Lexical_Element_Access; Condition : not null Program.Elements.Expressions .Expression_Access; Loop_Token : not null Program.Lexical_Elements .Lexical_Element_Access; Statements : not null Program.Element_Vectors .Element_Vector_Access; End_Token : not null Program.Lexical_Elements .Lexical_Element_Access; Loop_Token_2 : not null Program.Lexical_Elements .Lexical_Element_Access; End_Statement_Identifier : Program.Elements.Identifiers.Identifier_Access; Semicolon_Token : not null Program.Lexical_Elements .Lexical_Element_Access) return While_Loop_Statement; type Implicit_While_Loop_Statement is new Program.Nodes.Node and Program.Elements.While_Loop_Statements.While_Loop_Statement with private; function Create (Statement_Identifier : Program.Elements.Defining_Identifiers .Defining_Identifier_Access; Condition : not null Program.Elements.Expressions .Expression_Access; Statements : not null Program.Element_Vectors .Element_Vector_Access; End_Statement_Identifier : Program.Elements.Identifiers.Identifier_Access; Is_Part_Of_Implicit : Boolean := False; Is_Part_Of_Inherited : Boolean := False; Is_Part_Of_Instance : Boolean := False) return Implicit_While_Loop_Statement with Pre => Is_Part_Of_Implicit or Is_Part_Of_Inherited or Is_Part_Of_Instance; private type Base_While_Loop_Statement is abstract new Program.Nodes.Node and Program.Elements.While_Loop_Statements.While_Loop_Statement with record Statement_Identifier : Program.Elements.Defining_Identifiers .Defining_Identifier_Access; Condition : not null Program.Elements.Expressions .Expression_Access; Statements : not null Program.Element_Vectors .Element_Vector_Access; End_Statement_Identifier : Program.Elements.Identifiers .Identifier_Access; end record; procedure Initialize (Self : in out Base_While_Loop_Statement'Class); overriding procedure Visit (Self : not null access Base_While_Loop_Statement; Visitor : in out Program.Element_Visitors.Element_Visitor'Class); overriding function Statement_Identifier (Self : Base_While_Loop_Statement) return Program.Elements.Defining_Identifiers.Defining_Identifier_Access; overriding function Condition (Self : Base_While_Loop_Statement) return not null Program.Elements.Expressions.Expression_Access; overriding function Statements (Self : Base_While_Loop_Statement) return not null Program.Element_Vectors.Element_Vector_Access; overriding function End_Statement_Identifier (Self : Base_While_Loop_Statement) return Program.Elements.Identifiers.Identifier_Access; overriding function Is_While_Loop_Statement (Self : Base_While_Loop_Statement) return Boolean; overriding function Is_Statement (Self : Base_While_Loop_Statement) return Boolean; type While_Loop_Statement is new Base_While_Loop_Statement and Program.Elements.While_Loop_Statements.While_Loop_Statement_Text with record Colon_Token : Program.Lexical_Elements.Lexical_Element_Access; While_Token : not null Program.Lexical_Elements .Lexical_Element_Access; Loop_Token : not null Program.Lexical_Elements .Lexical_Element_Access; End_Token : not null Program.Lexical_Elements .Lexical_Element_Access; Loop_Token_2 : not null Program.Lexical_Elements .Lexical_Element_Access; Semicolon_Token : not null Program.Lexical_Elements .Lexical_Element_Access; end record; overriding function To_While_Loop_Statement_Text (Self : in out While_Loop_Statement) return Program.Elements.While_Loop_Statements .While_Loop_Statement_Text_Access; overriding function Colon_Token (Self : While_Loop_Statement) return Program.Lexical_Elements.Lexical_Element_Access; overriding function While_Token (Self : While_Loop_Statement) return not null Program.Lexical_Elements.Lexical_Element_Access; overriding function Loop_Token (Self : While_Loop_Statement) return not null Program.Lexical_Elements.Lexical_Element_Access; overriding function End_Token (Self : While_Loop_Statement) return not null Program.Lexical_Elements.Lexical_Element_Access; overriding function Loop_Token_2 (Self : While_Loop_Statement) return not null Program.Lexical_Elements.Lexical_Element_Access; overriding function Semicolon_Token (Self : While_Loop_Statement) return not null Program.Lexical_Elements.Lexical_Element_Access; type Implicit_While_Loop_Statement is new Base_While_Loop_Statement with record Is_Part_Of_Implicit : Boolean; Is_Part_Of_Inherited : Boolean; Is_Part_Of_Instance : Boolean; end record; overriding function To_While_Loop_Statement_Text (Self : in out Implicit_While_Loop_Statement) return Program.Elements.While_Loop_Statements .While_Loop_Statement_Text_Access; overriding function Is_Part_Of_Implicit (Self : Implicit_While_Loop_Statement) return Boolean; overriding function Is_Part_Of_Inherited (Self : Implicit_While_Loop_Statement) return Boolean; overriding function Is_Part_Of_Instance (Self : Implicit_While_Loop_Statement) return Boolean; end Program.Nodes.While_Loop_Statements;
37.153005
79
0.72996
fbc869c897960eb5ae108b7cc9b381413da2e088
117,576
adb
Ada
Vivado_HLS_Tutorial/Design_Analysis/lab1/dct_prj/solution1/.autopilot/db/dct_dct_1d.bind.adb
williambong/Vivado
68efafbc44b65c0bb047dbafc0ff7f1b56ee36bb
[ "MIT" ]
null
null
null
Vivado_HLS_Tutorial/Design_Analysis/lab1/dct_prj/solution1/.autopilot/db/dct_dct_1d.bind.adb
williambong/Vivado
68efafbc44b65c0bb047dbafc0ff7f1b56ee36bb
[ "MIT" ]
null
null
null
Vivado_HLS_Tutorial/Design_Analysis/lab1/dct_prj/solution1/.autopilot/db/dct_dct_1d.bind.adb
williambong/Vivado
68efafbc44b65c0bb047dbafc0ff7f1b56ee36bb
[ "MIT" ]
null
null
null
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <!DOCTYPE boost_serialization> <boost_serialization signature="serialization::archive" version="11"> <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>dct_dct_1d</name> <ret_bitwidth>0</ret_bitwidth> <ports class_id="2" tracking_level="0" version="0"> <count>4</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>src</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>src</originalName> <rtlName></rtlName> <coreName>RAM</coreName> </Obj> <bitwidth>16</bitwidth> </Value> <direction>0</direction> <if_type>1</if_type> <array_size>64</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>tmp_1</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>4</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>dst</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>dst</originalName> <rtlName></rtlName> <coreName>RAM</coreName> </Obj> <bitwidth>16</bitwidth> </Value> <direction>1</direction> <if_type>1</if_type> <array_size>64</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>tmp_11</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>4</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> </ports> <nodes class_id="8" tracking_level="0" version="0"> <count>44</count> <item_version>0</item_version> <item class_id="9" tracking_level="1" version="0" object_id="_5"> <Value> <Obj> <type>0</type> <id>6</id> <name>tmp_11_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>4</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>64</item> <item>65</item> </oprand_edges> <opcode>read</opcode> </item> <item class_id_reference="9" object_id="_6"> <Value> <Obj> <type>0</type> <id>7</id> <name>tmp_1_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>4</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>66</item> <item>67</item> </oprand_edges> <opcode>read</opcode> </item> <item class_id_reference="9" object_id="_7"> <Value> <Obj> <type>0</type> <id>8</id> <name>tmp</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>7</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>69</item> <item>70</item> <item>72</item> </oprand_edges> <opcode>bitconcatenate</opcode> </item> <item class_id_reference="9" object_id="_8"> <Value> <Obj> <type>0</type> <id>9</id> <name>p_addr_cast</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>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>73</item> </oprand_edges> <opcode>zext</opcode> </item> <item class_id_reference="9" object_id="_9"> <Value> <Obj> <type>0</type> <id>10</id> <name>tmp_6</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>7</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>74</item> <item>75</item> <item>76</item> </oprand_edges> <opcode>bitconcatenate</opcode> </item> <item class_id_reference="9" object_id="_10"> <Value> <Obj> <type>0</type> <id>11</id> <name>p_addr2_cast</name> <fileName>dct.cpp</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</fileDirectory> <lineNumber>57</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item class_id="11" tracking_level="0" version="0"> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</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>dct.cpp</first> <second>dct_1d</second> </first> <second>57</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>77</item> </oprand_edges> <opcode>zext</opcode> </item> <item class_id_reference="9" object_id="_11"> <Value> <Obj> <type>0</type> <id>12</id> <name></name> <fileName>dct.cpp</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</fileDirectory> <lineNumber>57</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>57</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>78</item> </oprand_edges> <opcode>br</opcode> </item> <item class_id_reference="9" object_id="_12"> <Value> <Obj> <type>0</type> <id>14</id> <name>k</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>k</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>4</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>80</item> <item>81</item> <item>82</item> <item>83</item> </oprand_edges> <opcode>phi</opcode> </item> <item class_id_reference="9" object_id="_13"> <Value> <Obj> <type>0</type> <id>15</id> <name>exitcond1</name> <fileName>dct.cpp</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</fileDirectory> <lineNumber>57</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>57</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>84</item> <item>86</item> </oprand_edges> <opcode>icmp</opcode> </item> <item class_id_reference="9" object_id="_14"> <Value> <Obj> <type>0</type> <id>17</id> <name>k_1</name> <fileName>dct.cpp</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</fileDirectory> <lineNumber>57</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>57</second> </item> </second> </item> </inlineStackInfo> <originalName>k</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>4</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>87</item> <item>89</item> </oprand_edges> <opcode>add</opcode> </item> <item class_id_reference="9" object_id="_15"> <Value> <Obj> <type>0</type> <id>18</id> <name></name> <fileName>dct.cpp</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</fileDirectory> <lineNumber>57</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>57</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>90</item> <item>91</item> <item>92</item> </oprand_edges> <opcode>br</opcode> </item> <item class_id_reference="9" object_id="_16"> <Value> <Obj> <type>0</type> <id>22</id> <name>tmp_7</name> <fileName>dct.cpp</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</fileDirectory> <lineNumber>57</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>57</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>7</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>93</item> <item>94</item> <item>95</item> </oprand_edges> <opcode>bitconcatenate</opcode> </item> <item class_id_reference="9" object_id="_17"> <Value> <Obj> <type>0</type> <id>23</id> <name>dct_coeff_table_addr6_cast</name> <fileName>dct.cpp</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</fileDirectory> <lineNumber>59</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>59</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>96</item> </oprand_edges> <opcode>zext</opcode> </item> <item class_id_reference="9" object_id="_18"> <Value> <Obj> <type>0</type> <id>24</id> <name></name> <fileName>dct.cpp</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</fileDirectory> <lineNumber>59</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>59</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>97</item> </oprand_edges> <opcode>br</opcode> </item> <item class_id_reference="9" object_id="_19"> <Value> <Obj> <type>0</type> <id>26</id> <name>n</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>n</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>4</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>98</item> <item>99</item> <item>100</item> <item>101</item> </oprand_edges> <opcode>phi</opcode> </item> <item class_id_reference="9" object_id="_20"> <Value> <Obj> <type>0</type> <id>27</id> <name>tmp1</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>tmp</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>103</item> <item>104</item> <item>105</item> <item>106</item> </oprand_edges> <opcode>phi</opcode> </item> <item class_id_reference="9" object_id="_21"> <Value> <Obj> <type>0</type> <id>28</id> <name>exitcond</name> <fileName>dct.cpp</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</fileDirectory> <lineNumber>59</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>59</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>107</item> <item>108</item> </oprand_edges> <opcode>icmp</opcode> </item> <item class_id_reference="9" object_id="_22"> <Value> <Obj> <type>0</type> <id>30</id> <name>n_1</name> <fileName>dct.cpp</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</fileDirectory> <lineNumber>59</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>59</second> </item> </second> </item> </inlineStackInfo> <originalName>n</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>4</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>109</item> <item>110</item> </oprand_edges> <opcode>add</opcode> </item> <item class_id_reference="9" object_id="_23"> <Value> <Obj> <type>0</type> <id>31</id> <name></name> <fileName>dct.cpp</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</fileDirectory> <lineNumber>59</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>59</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>111</item> <item>112</item> <item>113</item> </oprand_edges> <opcode>br</opcode> </item> <item class_id_reference="9" object_id="_24"> <Value> <Obj> <type>0</type> <id>34</id> <name>tmp_6_trn5_cast</name> <fileName>dct.cpp</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</fileDirectory> <lineNumber>60</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>60</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>114</item> </oprand_edges> <opcode>zext</opcode> </item> <item class_id_reference="9" object_id="_25"> <Value> <Obj> <type>0</type> <id>35</id> <name>dct_coeff_table_addr7</name> <fileName>dct.cpp</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</fileDirectory> <lineNumber>60</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>60</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>115</item> <item>116</item> </oprand_edges> <opcode>add</opcode> </item> <item class_id_reference="9" object_id="_26"> <Value> <Obj> <type>0</type> <id>36</id> <name>tmp_10</name> <fileName>dct.cpp</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</fileDirectory> <lineNumber>60</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>60</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>64</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>117</item> </oprand_edges> <opcode>zext</opcode> </item> <item class_id_reference="9" object_id="_27"> <Value> <Obj> <type>0</type> <id>37</id> <name>dct_coeff_table_addr</name> <fileName>dct.cpp</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</fileDirectory> <lineNumber>60</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>60</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>6</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>118</item> <item>120</item> <item>121</item> </oprand_edges> <opcode>getelementptr</opcode> </item> <item class_id_reference="9" object_id="_28"> <Value> <Obj> <type>0</type> <id>38</id> <name>dct_coeff_table_load</name> <fileName>dct.cpp</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</fileDirectory> <lineNumber>60</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>60</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>15</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>122</item> </oprand_edges> <opcode>load</opcode> </item> <item class_id_reference="9" object_id="_29"> <Value> <Obj> <type>0</type> <id>39</id> <name>coeff_cast</name> <fileName>dct.cpp</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</fileDirectory> <lineNumber>60</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>60</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>31</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>123</item> </oprand_edges> <opcode>sext</opcode> </item> <item class_id_reference="9" object_id="_30"> <Value> <Obj> <type>0</type> <id>40</id> <name>p_addr1</name> <fileName>dct.cpp</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</fileDirectory> <lineNumber>61</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>61</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>124</item> <item>125</item> </oprand_edges> <opcode>add</opcode> </item> <item class_id_reference="9" object_id="_31"> <Value> <Obj> <type>0</type> <id>41</id> <name>tmp_12</name> <fileName>dct.cpp</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</fileDirectory> <lineNumber>61</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>61</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>64</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>126</item> </oprand_edges> <opcode>zext</opcode> </item> <item class_id_reference="9" object_id="_32"> <Value> <Obj> <type>0</type> <id>42</id> <name>src_addr</name> <fileName>dct.cpp</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</fileDirectory> <lineNumber>61</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>61</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>6</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>127</item> <item>128</item> <item>129</item> </oprand_edges> <opcode>getelementptr</opcode> </item> <item class_id_reference="9" object_id="_33"> <Value> <Obj> <type>0</type> <id>43</id> <name>src_load</name> <fileName>dct.cpp</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</fileDirectory> <lineNumber>61</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>61</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>16</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>130</item> </oprand_edges> <opcode>load</opcode> </item> <item class_id_reference="9" object_id="_34"> <Value> <Obj> <type>0</type> <id>44</id> <name>tmp_7_cast</name> <fileName>dct.cpp</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</fileDirectory> <lineNumber>61</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>61</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>31</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>131</item> </oprand_edges> <opcode>sext</opcode> </item> <item class_id_reference="9" object_id="_35"> <Value> <Obj> <type>0</type> <id>45</id> <name>tmp_8</name> <fileName>dct.cpp</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</fileDirectory> <lineNumber>61</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>61</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>31</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>132</item> <item>133</item> </oprand_edges> <opcode>mul</opcode> </item> <item class_id_reference="9" object_id="_36"> <Value> <Obj> <type>0</type> <id>46</id> <name>tmp_8_cast</name> <fileName>dct.cpp</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</fileDirectory> <lineNumber>61</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>61</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>134</item> </oprand_edges> <opcode>sext</opcode> </item> <item class_id_reference="9" object_id="_37"> <Value> <Obj> <type>0</type> <id>47</id> <name>tmp_5</name> <fileName>dct.cpp</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</fileDirectory> <lineNumber>61</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>61</second> </item> </second> </item> </inlineStackInfo> <originalName>tmp</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>135</item> <item>136</item> </oprand_edges> <opcode>add</opcode> </item> <item class_id_reference="9" object_id="_38"> <Value> <Obj> <type>0</type> <id>48</id> <name></name> <fileName>dct.cpp</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</fileDirectory> <lineNumber>59</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>59</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>137</item> </oprand_edges> <opcode>br</opcode> </item> <item class_id_reference="9" object_id="_39"> <Value> <Obj> <type>0</type> <id>50</id> <name>tmp_3</name> <fileName>dct.cpp</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</fileDirectory> <lineNumber>59</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>59</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>29</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>138</item> </oprand_edges> <opcode>trunc</opcode> </item> <item class_id_reference="9" object_id="_40"> <Value> <Obj> <type>0</type> <id>51</id> <name>tmp_2</name> <fileName>dct.cpp</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</fileDirectory> <lineNumber>63</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>63</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>29</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>140</item> <item>141</item> </oprand_edges> <opcode>add</opcode> </item> <item class_id_reference="9" object_id="_41"> <Value> <Obj> <type>0</type> <id>52</id> <name>tmp_4</name> <fileName>dct.cpp</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</fileDirectory> <lineNumber>63</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>63</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>16</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>143</item> <item>144</item> <item>146</item> <item>148</item> </oprand_edges> <opcode>partselect</opcode> </item> <item class_id_reference="9" object_id="_42"> <Value> <Obj> <type>0</type> <id>53</id> <name>tmp_trn_cast</name> <fileName>dct.cpp</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</fileDirectory> <lineNumber>63</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>63</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>149</item> </oprand_edges> <opcode>zext</opcode> </item> <item class_id_reference="9" object_id="_43"> <Value> <Obj> <type>0</type> <id>54</id> <name>p_addr3</name> <fileName>dct.cpp</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</fileDirectory> <lineNumber>63</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>63</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>150</item> <item>151</item> </oprand_edges> <opcode>add</opcode> </item> <item class_id_reference="9" object_id="_44"> <Value> <Obj> <type>0</type> <id>55</id> <name>tmp_9</name> <fileName>dct.cpp</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</fileDirectory> <lineNumber>63</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>63</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>64</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>152</item> </oprand_edges> <opcode>zext</opcode> </item> <item class_id_reference="9" object_id="_45"> <Value> <Obj> <type>0</type> <id>56</id> <name>dst_addr</name> <fileName>dct.cpp</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</fileDirectory> <lineNumber>63</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>63</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>6</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>153</item> <item>154</item> <item>155</item> </oprand_edges> <opcode>getelementptr</opcode> </item> <item class_id_reference="9" object_id="_46"> <Value> <Obj> <type>0</type> <id>57</id> <name></name> <fileName>dct.cpp</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</fileDirectory> <lineNumber>63</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>63</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>156</item> <item>157</item> </oprand_edges> <opcode>store</opcode> </item> <item class_id_reference="9" object_id="_47"> <Value> <Obj> <type>0</type> <id>59</id> <name></name> <fileName>dct.cpp</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</fileDirectory> <lineNumber>57</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>57</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>158</item> </oprand_edges> <opcode>br</opcode> </item> <item class_id_reference="9" object_id="_48"> <Value> <Obj> <type>0</type> <id>61</id> <name></name> <fileName>dct.cpp</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</fileDirectory> <lineNumber>65</lineNumber> <contextFuncName>dct_1d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>65</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> </item> </nodes> <consts class_id="15" tracking_level="0" version="0"> <count>9</count> <item_version>0</item_version> <item class_id="16" tracking_level="1" version="0" object_id="_49"> <Value> <Obj> <type>2</type> <id>71</id> <name>empty</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>3</bitwidth> </Value> <const_type>0</const_type> <content>0</content> </item> <item class_id_reference="16" object_id="_50"> <Value> <Obj> <type>2</type> <id>79</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>4</bitwidth> </Value> <const_type>0</const_type> <content>0</content> </item> <item class_id_reference="16" object_id="_51"> <Value> <Obj> <type>2</type> <id>85</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>4</bitwidth> </Value> <const_type>0</const_type> <content>8</content> </item> <item class_id_reference="16" object_id="_52"> <Value> <Obj> <type>2</type> <id>88</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>4</bitwidth> </Value> <const_type>0</const_type> <content>1</content> </item> <item class_id_reference="16" object_id="_53"> <Value> <Obj> <type>2</type> <id>102</id> <name>empty</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>32</bitwidth> </Value> <const_type>0</const_type> <content>0</content> </item> <item class_id_reference="16" object_id="_54"> <Value> <Obj> <type>2</type> <id>119</id> <name>empty</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>64</bitwidth> </Value> <const_type>0</const_type> <content>0</content> </item> <item class_id_reference="16" object_id="_55"> <Value> <Obj> <type>2</type> <id>139</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>29</bitwidth> </Value> <const_type>0</const_type> <content>4096</content> </item> <item class_id_reference="16" object_id="_56"> <Value> <Obj> <type>2</type> <id>145</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>13</content> </item> <item class_id_reference="16" object_id="_57"> <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>28</content> </item> </consts> <blocks class_id="17" tracking_level="0" version="0"> <count>7</count> <item_version>0</item_version> <item class_id="18" tracking_level="1" version="0" object_id="_58"> <Obj> <type>3</type> <id>13</id> <name></name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <node_objs> <count>7</count> <item_version>0</item_version> <item>6</item> <item>7</item> <item>8</item> <item>9</item> <item>10</item> <item>11</item> <item>12</item> </node_objs> </item> <item class_id_reference="18" object_id="_59"> <Obj> <type>3</type> <id>19</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>14</item> <item>15</item> <item>17</item> <item>18</item> </node_objs> </item> <item class_id_reference="18" object_id="_60"> <Obj> <type>3</type> <id>25</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>22</item> <item>23</item> <item>24</item> </node_objs> </item> <item class_id_reference="18" object_id="_61"> <Obj> <type>3</type> <id>32</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>5</count> <item_version>0</item_version> <item>26</item> <item>27</item> <item>28</item> <item>30</item> <item>31</item> </node_objs> </item> <item class_id_reference="18" object_id="_62"> <Obj> <type>3</type> <id>49</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>15</count> <item_version>0</item_version> <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> </node_objs> </item> <item class_id_reference="18" object_id="_63"> <Obj> <type>3</type> <id>60</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>9</count> <item_version>0</item_version> <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>59</item> </node_objs> </item> <item class_id_reference="18" object_id="_64"> <Obj> <type>3</type> <id>62</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>61</item> </node_objs> </item> </blocks> <edges class_id="19" tracking_level="0" version="0"> <count>86</count> <item_version>0</item_version> <item class_id="20" tracking_level="1" version="0" object_id="_65"> <id>65</id> <edge_type>1</edge_type> <source_obj>4</source_obj> <sink_obj>6</sink_obj> </item> <item class_id_reference="20" object_id="_66"> <id>67</id> <edge_type>1</edge_type> <source_obj>2</source_obj> <sink_obj>7</sink_obj> </item> <item class_id_reference="20" object_id="_67"> <id>70</id> <edge_type>1</edge_type> <source_obj>7</source_obj> <sink_obj>8</sink_obj> </item> <item class_id_reference="20" object_id="_68"> <id>72</id> <edge_type>1</edge_type> <source_obj>71</source_obj> <sink_obj>8</sink_obj> </item> <item class_id_reference="20" object_id="_69"> <id>73</id> <edge_type>1</edge_type> <source_obj>8</source_obj> <sink_obj>9</sink_obj> </item> <item class_id_reference="20" object_id="_70"> <id>75</id> <edge_type>1</edge_type> <source_obj>6</source_obj> <sink_obj>10</sink_obj> </item> <item class_id_reference="20" object_id="_71"> <id>76</id> <edge_type>1</edge_type> <source_obj>71</source_obj> <sink_obj>10</sink_obj> </item> <item class_id_reference="20" object_id="_72"> <id>77</id> <edge_type>1</edge_type> <source_obj>10</source_obj> <sink_obj>11</sink_obj> </item> <item class_id_reference="20" object_id="_73"> <id>78</id> <edge_type>2</edge_type> <source_obj>19</source_obj> <sink_obj>12</sink_obj> </item> <item class_id_reference="20" object_id="_74"> <id>80</id> <edge_type>1</edge_type> <source_obj>79</source_obj> <sink_obj>14</sink_obj> </item> <item class_id_reference="20" object_id="_75"> <id>81</id> <edge_type>2</edge_type> <source_obj>13</source_obj> <sink_obj>14</sink_obj> </item> <item class_id_reference="20" object_id="_76"> <id>82</id> <edge_type>1</edge_type> <source_obj>17</source_obj> <sink_obj>14</sink_obj> </item> <item class_id_reference="20" object_id="_77"> <id>83</id> <edge_type>2</edge_type> <source_obj>60</source_obj> <sink_obj>14</sink_obj> </item> <item class_id_reference="20" object_id="_78"> <id>84</id> <edge_type>1</edge_type> <source_obj>14</source_obj> <sink_obj>15</sink_obj> </item> <item class_id_reference="20" object_id="_79"> <id>86</id> <edge_type>1</edge_type> <source_obj>85</source_obj> <sink_obj>15</sink_obj> </item> <item class_id_reference="20" object_id="_80"> <id>87</id> <edge_type>1</edge_type> <source_obj>14</source_obj> <sink_obj>17</sink_obj> </item> <item class_id_reference="20" object_id="_81"> <id>89</id> <edge_type>1</edge_type> <source_obj>88</source_obj> <sink_obj>17</sink_obj> </item> <item class_id_reference="20" object_id="_82"> <id>90</id> <edge_type>1</edge_type> <source_obj>15</source_obj> <sink_obj>18</sink_obj> </item> <item class_id_reference="20" object_id="_83"> <id>91</id> <edge_type>2</edge_type> <source_obj>25</source_obj> <sink_obj>18</sink_obj> </item> <item class_id_reference="20" object_id="_84"> <id>92</id> <edge_type>2</edge_type> <source_obj>62</source_obj> <sink_obj>18</sink_obj> </item> <item class_id_reference="20" object_id="_85"> <id>94</id> <edge_type>1</edge_type> <source_obj>14</source_obj> <sink_obj>22</sink_obj> </item> <item class_id_reference="20" object_id="_86"> <id>95</id> <edge_type>1</edge_type> <source_obj>71</source_obj> <sink_obj>22</sink_obj> </item> <item class_id_reference="20" object_id="_87"> <id>96</id> <edge_type>1</edge_type> <source_obj>22</source_obj> <sink_obj>23</sink_obj> </item> <item class_id_reference="20" object_id="_88"> <id>97</id> <edge_type>2</edge_type> <source_obj>32</source_obj> <sink_obj>24</sink_obj> </item> <item class_id_reference="20" object_id="_89"> <id>98</id> <edge_type>1</edge_type> <source_obj>79</source_obj> <sink_obj>26</sink_obj> </item> <item class_id_reference="20" object_id="_90"> <id>99</id> <edge_type>2</edge_type> <source_obj>25</source_obj> <sink_obj>26</sink_obj> </item> <item class_id_reference="20" object_id="_91"> <id>100</id> <edge_type>1</edge_type> <source_obj>30</source_obj> <sink_obj>26</sink_obj> </item> <item class_id_reference="20" object_id="_92"> <id>101</id> <edge_type>2</edge_type> <source_obj>49</source_obj> <sink_obj>26</sink_obj> </item> <item class_id_reference="20" object_id="_93"> <id>103</id> <edge_type>1</edge_type> <source_obj>102</source_obj> <sink_obj>27</sink_obj> </item> <item class_id_reference="20" object_id="_94"> <id>104</id> <edge_type>2</edge_type> <source_obj>25</source_obj> <sink_obj>27</sink_obj> </item> <item class_id_reference="20" object_id="_95"> <id>105</id> <edge_type>1</edge_type> <source_obj>47</source_obj> <sink_obj>27</sink_obj> </item> <item class_id_reference="20" object_id="_96"> <id>106</id> <edge_type>2</edge_type> <source_obj>49</source_obj> <sink_obj>27</sink_obj> </item> <item class_id_reference="20" object_id="_97"> <id>107</id> <edge_type>1</edge_type> <source_obj>26</source_obj> <sink_obj>28</sink_obj> </item> <item class_id_reference="20" object_id="_98"> <id>108</id> <edge_type>1</edge_type> <source_obj>85</source_obj> <sink_obj>28</sink_obj> </item> <item class_id_reference="20" object_id="_99"> <id>109</id> <edge_type>1</edge_type> <source_obj>26</source_obj> <sink_obj>30</sink_obj> </item> <item class_id_reference="20" object_id="_100"> <id>110</id> <edge_type>1</edge_type> <source_obj>88</source_obj> <sink_obj>30</sink_obj> </item> <item class_id_reference="20" object_id="_101"> <id>111</id> <edge_type>1</edge_type> <source_obj>28</source_obj> <sink_obj>31</sink_obj> </item> <item class_id_reference="20" object_id="_102"> <id>112</id> <edge_type>2</edge_type> <source_obj>49</source_obj> <sink_obj>31</sink_obj> </item> <item class_id_reference="20" object_id="_103"> <id>113</id> <edge_type>2</edge_type> <source_obj>60</source_obj> <sink_obj>31</sink_obj> </item> <item class_id_reference="20" object_id="_104"> <id>114</id> <edge_type>1</edge_type> <source_obj>26</source_obj> <sink_obj>34</sink_obj> </item> <item class_id_reference="20" object_id="_105"> <id>115</id> <edge_type>1</edge_type> <source_obj>34</source_obj> <sink_obj>35</sink_obj> </item> <item class_id_reference="20" object_id="_106"> <id>116</id> <edge_type>1</edge_type> <source_obj>23</source_obj> <sink_obj>35</sink_obj> </item> <item class_id_reference="20" object_id="_107"> <id>117</id> <edge_type>1</edge_type> <source_obj>35</source_obj> <sink_obj>36</sink_obj> </item> <item class_id_reference="20" object_id="_108"> <id>118</id> <edge_type>1</edge_type> <source_obj>5</source_obj> <sink_obj>37</sink_obj> </item> <item class_id_reference="20" object_id="_109"> <id>120</id> <edge_type>1</edge_type> <source_obj>119</source_obj> <sink_obj>37</sink_obj> </item> <item class_id_reference="20" object_id="_110"> <id>121</id> <edge_type>1</edge_type> <source_obj>36</source_obj> <sink_obj>37</sink_obj> </item> <item class_id_reference="20" object_id="_111"> <id>122</id> <edge_type>1</edge_type> <source_obj>37</source_obj> <sink_obj>38</sink_obj> </item> <item class_id_reference="20" object_id="_112"> <id>123</id> <edge_type>1</edge_type> <source_obj>38</source_obj> <sink_obj>39</sink_obj> </item> <item class_id_reference="20" object_id="_113"> <id>124</id> <edge_type>1</edge_type> <source_obj>34</source_obj> <sink_obj>40</sink_obj> </item> <item class_id_reference="20" object_id="_114"> <id>125</id> <edge_type>1</edge_type> <source_obj>9</source_obj> <sink_obj>40</sink_obj> </item> <item class_id_reference="20" object_id="_115"> <id>126</id> <edge_type>1</edge_type> <source_obj>40</source_obj> <sink_obj>41</sink_obj> </item> <item class_id_reference="20" object_id="_116"> <id>127</id> <edge_type>1</edge_type> <source_obj>1</source_obj> <sink_obj>42</sink_obj> </item> <item class_id_reference="20" object_id="_117"> <id>128</id> <edge_type>1</edge_type> <source_obj>119</source_obj> <sink_obj>42</sink_obj> </item> <item class_id_reference="20" object_id="_118"> <id>129</id> <edge_type>1</edge_type> <source_obj>41</source_obj> <sink_obj>42</sink_obj> </item> <item class_id_reference="20" object_id="_119"> <id>130</id> <edge_type>1</edge_type> <source_obj>42</source_obj> <sink_obj>43</sink_obj> </item> <item class_id_reference="20" object_id="_120"> <id>131</id> <edge_type>1</edge_type> <source_obj>43</source_obj> <sink_obj>44</sink_obj> </item> <item class_id_reference="20" object_id="_121"> <id>132</id> <edge_type>1</edge_type> <source_obj>44</source_obj> <sink_obj>45</sink_obj> </item> <item class_id_reference="20" object_id="_122"> <id>133</id> <edge_type>1</edge_type> <source_obj>39</source_obj> <sink_obj>45</sink_obj> </item> <item class_id_reference="20" object_id="_123"> <id>134</id> <edge_type>1</edge_type> <source_obj>45</source_obj> <sink_obj>46</sink_obj> </item> <item class_id_reference="20" object_id="_124"> <id>135</id> <edge_type>1</edge_type> <source_obj>46</source_obj> <sink_obj>47</sink_obj> </item> <item class_id_reference="20" object_id="_125"> <id>136</id> <edge_type>1</edge_type> <source_obj>27</source_obj> <sink_obj>47</sink_obj> </item> <item class_id_reference="20" object_id="_126"> <id>137</id> <edge_type>2</edge_type> <source_obj>32</source_obj> <sink_obj>48</sink_obj> </item> <item class_id_reference="20" object_id="_127"> <id>138</id> <edge_type>1</edge_type> <source_obj>27</source_obj> <sink_obj>50</sink_obj> </item> <item class_id_reference="20" object_id="_128"> <id>140</id> <edge_type>1</edge_type> <source_obj>139</source_obj> <sink_obj>51</sink_obj> </item> <item class_id_reference="20" object_id="_129"> <id>141</id> <edge_type>1</edge_type> <source_obj>50</source_obj> <sink_obj>51</sink_obj> </item> <item class_id_reference="20" object_id="_130"> <id>144</id> <edge_type>1</edge_type> <source_obj>51</source_obj> <sink_obj>52</sink_obj> </item> <item class_id_reference="20" object_id="_131"> <id>146</id> <edge_type>1</edge_type> <source_obj>145</source_obj> <sink_obj>52</sink_obj> </item> <item class_id_reference="20" object_id="_132"> <id>148</id> <edge_type>1</edge_type> <source_obj>147</source_obj> <sink_obj>52</sink_obj> </item> <item class_id_reference="20" object_id="_133"> <id>149</id> <edge_type>1</edge_type> <source_obj>14</source_obj> <sink_obj>53</sink_obj> </item> <item class_id_reference="20" object_id="_134"> <id>150</id> <edge_type>1</edge_type> <source_obj>53</source_obj> <sink_obj>54</sink_obj> </item> <item class_id_reference="20" object_id="_135"> <id>151</id> <edge_type>1</edge_type> <source_obj>11</source_obj> <sink_obj>54</sink_obj> </item> <item class_id_reference="20" object_id="_136"> <id>152</id> <edge_type>1</edge_type> <source_obj>54</source_obj> <sink_obj>55</sink_obj> </item> <item class_id_reference="20" object_id="_137"> <id>153</id> <edge_type>1</edge_type> <source_obj>3</source_obj> <sink_obj>56</sink_obj> </item> <item class_id_reference="20" object_id="_138"> <id>154</id> <edge_type>1</edge_type> <source_obj>119</source_obj> <sink_obj>56</sink_obj> </item> <item class_id_reference="20" object_id="_139"> <id>155</id> <edge_type>1</edge_type> <source_obj>55</source_obj> <sink_obj>56</sink_obj> </item> <item class_id_reference="20" object_id="_140"> <id>156</id> <edge_type>1</edge_type> <source_obj>52</source_obj> <sink_obj>57</sink_obj> </item> <item class_id_reference="20" object_id="_141"> <id>157</id> <edge_type>1</edge_type> <source_obj>56</source_obj> <sink_obj>57</sink_obj> </item> <item class_id_reference="20" object_id="_142"> <id>158</id> <edge_type>2</edge_type> <source_obj>19</source_obj> <sink_obj>59</sink_obj> </item> <item class_id_reference="20" object_id="_143"> <id>183</id> <edge_type>2</edge_type> <source_obj>13</source_obj> <sink_obj>19</sink_obj> </item> <item class_id_reference="20" object_id="_144"> <id>184</id> <edge_type>2</edge_type> <source_obj>19</source_obj> <sink_obj>62</sink_obj> </item> <item class_id_reference="20" object_id="_145"> <id>185</id> <edge_type>2</edge_type> <source_obj>19</source_obj> <sink_obj>25</sink_obj> </item> <item class_id_reference="20" object_id="_146"> <id>186</id> <edge_type>2</edge_type> <source_obj>25</source_obj> <sink_obj>32</sink_obj> </item> <item class_id_reference="20" object_id="_147"> <id>187</id> <edge_type>2</edge_type> <source_obj>32</source_obj> <sink_obj>60</sink_obj> </item> <item class_id_reference="20" object_id="_148"> <id>188</id> <edge_type>2</edge_type> <source_obj>32</source_obj> <sink_obj>49</sink_obj> </item> <item class_id_reference="20" object_id="_149"> <id>189</id> <edge_type>2</edge_type> <source_obj>49</source_obj> <sink_obj>32</sink_obj> </item> <item class_id_reference="20" object_id="_150"> <id>190</id> <edge_type>2</edge_type> <source_obj>60</source_obj> <sink_obj>19</sink_obj> </item> </edges> </cdfg> <cdfg_regions class_id="21" tracking_level="0" version="0"> <count>7</count> <item_version>0</item_version> <item class_id="22" tracking_level="1" version="0" object_id="_151"> <mId>1</mId> <mTag>dct_dct_1d</mTag> <mType>0</mType> <sub_regions> <count>3</count> <item_version>0</item_version> <item>2</item> <item>3</item> <item>7</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>209</mMinLatency> <mMaxLatency>-1</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"></mDfPipe> </item> <item class_id_reference="22" object_id="_152"> <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>13</item> </basic_blocks> <mII>-1</mII> <mDepth>-1</mDepth> <mMinTripCount>-1</mMinTripCount> <mMaxTripCount>-1</mMaxTripCount> <mMinLatency>0</mMinLatency> <mMaxLatency>-1</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"></mDfPipe> </item> <item class_id_reference="22" object_id="_153"> <mId>3</mId> <mTag>DCT_Outer_Loop</mTag> <mType>1</mType> <sub_regions> <count>3</count> <item_version>0</item_version> <item>4</item> <item>5</item> <item>6</item> </sub_regions> <basic_blocks> <count>0</count> <item_version>0</item_version> </basic_blocks> <mII>-1</mII> <mDepth>-1</mDepth> <mMinTripCount>8</mMinTripCount> <mMaxTripCount>8</mMaxTripCount> <mMinLatency>208</mMinLatency> <mMaxLatency>-1</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"></mDfPipe> </item> <item class_id_reference="22" object_id="_154"> <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>2</count> <item_version>0</item_version> <item>19</item> <item>25</item> </basic_blocks> <mII>-1</mII> <mDepth>-1</mDepth> <mMinTripCount>-1</mMinTripCount> <mMaxTripCount>-1</mMaxTripCount> <mMinLatency>0</mMinLatency> <mMaxLatency>-1</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"></mDfPipe> </item> <item class_id_reference="22" object_id="_155"> <mId>5</mId> <mTag>DCT_Inner_Loop</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>32</item> <item>49</item> </basic_blocks> <mII>-1</mII> <mDepth>-1</mDepth> <mMinTripCount>8</mMinTripCount> <mMaxTripCount>8</mMaxTripCount> <mMinLatency>24</mMinLatency> <mMaxLatency>-1</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"></mDfPipe> </item> <item class_id_reference="22" object_id="_156"> <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>1</count> <item_version>0</item_version> <item>60</item> </basic_blocks> <mII>-1</mII> <mDepth>-1</mDepth> <mMinTripCount>-1</mMinTripCount> <mMaxTripCount>-1</mMaxTripCount> <mMinLatency>0</mMinLatency> <mMaxLatency>-1</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"></mDfPipe> </item> <item class_id_reference="22" object_id="_157"> <mId>7</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>62</item> </basic_blocks> <mII>-1</mII> <mDepth>-1</mDepth> <mMinTripCount>-1</mMinTripCount> <mMaxTripCount>-1</mMaxTripCount> <mMinLatency>0</mMinLatency> <mMaxLatency>-1</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"></mDfPipe> </item> </cdfg_regions> <fsm class_id="24" tracking_level="1" version="0" object_id="_158"> <states class_id="25" tracking_level="0" version="0"> <count>5</count> <item_version>0</item_version> <item class_id="26" tracking_level="1" version="0" object_id="_159"> <id>1</id> <operations class_id="27" tracking_level="0" version="0"> <count>7</count> <item_version>0</item_version> <item class_id="28" tracking_level="1" version="0" object_id="_160"> <id>6</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_161"> <id>7</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_162"> <id>8</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_163"> <id>9</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_164"> <id>10</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_165"> <id>11</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_166"> <id>12</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_167"> <id>2</id> <operations> <count>11</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_168"> <id>14</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_169"> <id>15</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_170"> <id>16</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_171"> <id>17</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_172"> <id>18</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_173"> <id>20</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_174"> <id>21</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_175"> <id>22</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_176"> <id>23</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_177"> <id>24</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_178"> <id>61</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_179"> <id>3</id> <operations> <count>25</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_180"> <id>26</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_181"> <id>27</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_182"> <id>28</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_183"> <id>29</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_184"> <id>30</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_185"> <id>31</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_186"> <id>34</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_187"> <id>35</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_188"> <id>36</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_189"> <id>37</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_190"> <id>38</id> <stage>2</stage> <latency>2</latency> </item> <item class_id_reference="28" object_id="_191"> <id>40</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_192"> <id>41</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_193"> <id>42</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_194"> <id>43</id> <stage>2</stage> <latency>2</latency> </item> <item class_id_reference="28" object_id="_195"> <id>50</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_196"> <id>51</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_197"> <id>52</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_198"> <id>53</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_199"> <id>54</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_200"> <id>55</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_201"> <id>56</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_202"> <id>57</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_203"> <id>58</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_204"> <id>59</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_205"> <id>4</id> <operations> <count>2</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_206"> <id>38</id> <stage>1</stage> <latency>2</latency> </item> <item class_id_reference="28" object_id="_207"> <id>43</id> <stage>1</stage> <latency>2</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_208"> <id>5</id> <operations> <count>7</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_209"> <id>33</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_210"> <id>39</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_211"> <id>44</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_212"> <id>45</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_213"> <id>46</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_214"> <id>47</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_215"> <id>48</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> </states> <transitions class_id="29" tracking_level="0" version="0"> <count>6</count> <item_version>0</item_version> <item class_id="30" tracking_level="1" version="0" object_id="_216"> <inState>1</inState> <outState>2</outState> <condition class_id="31" tracking_level="0" version="0"> <id>14</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="_217"> <inState>2</inState> <outState>3</outState> <condition> <id>16</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>15</first> <second>0</second> </first> <second>1</second> </item> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_218"> <inState>3</inState> <outState>4</outState> <condition> <id>17</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>1</count> <item_version>0</item_version> <item> <first> <first>28</first> <second>0</second> </first> <second>1</second> </item> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_219"> <inState>4</inState> <outState>5</outState> <condition> <id>19</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="_220"> <inState>5</inState> <outState>3</outState> <condition> <id>21</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="_221"> <inState>3</inState> <outState>2</outState> <condition> <id>23</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>1</count> <item_version>0</item_version> <item> <first> <first>28</first> <second>0</second> </first> <second>0</second> </item> </item> </sop> </condition> </item> </transitions> </fsm> <res class_id="36" tracking_level="1" version="0" object_id="_222"> <dp_component_resource class_id="37" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </dp_component_resource> <dp_expression_resource> <count>0</count> <item_version>0</item_version> </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>0</count> <item_version>0</item_version> </dp_multiplexer_resource> <dp_register_resource> <count>0</count> <item_version>0</item_version> </dp_register_resource> <dp_component_map class_id="38" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </dp_component_map> <dp_expression_map> <count>0</count> <item_version>0</item_version> </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="39" tracking_level="0" version="0"> <count>44</count> <item_version>0</item_version> <item class_id="40" tracking_level="0" version="0"> <first>6</first> <second class_id="41" tracking_level="0" version="0"> <first>0</first> <second>0</second> </second> </item> <item> <first>7</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>8</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>9</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>10</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>11</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>12</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>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>18</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>1</first> <second>0</second> </second> </item> <item> <first>24</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>26</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>27</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>28</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>30</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>31</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>34</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>35</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>36</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>37</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>38</first> <second> <first>2</first> <second>1</second> </second> </item> <item> <first>39</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>40</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>41</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>42</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>43</first> <second> <first>2</first> <second>1</second> </second> </item> <item> <first>44</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>45</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>46</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>47</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>48</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>50</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>51</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>52</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>53</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>54</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>55</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>56</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>57</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>59</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>61</first> <second> <first>1</first> <second>0</second> </second> </item> </node_label_latency> <bblk_ent_exit class_id="42" tracking_level="0" version="0"> <count>7</count> <item_version>0</item_version> <item class_id="43" tracking_level="0" version="0"> <first>13</first> <second class_id="44" tracking_level="0" version="0"> <first>0</first> <second>0</second> </second> </item> <item> <first>19</first> <second> <first>1</first> <second>1</second> </second> </item> <item> <first>25</first> <second> <first>1</first> <second>1</second> </second> </item> <item> <first>32</first> <second> <first>2</first> <second>2</second> </second> </item> <item> <first>49</first> <second> <first>2</first> <second>4</second> </second> </item> <item> <first>60</first> <second> <first>2</first> <second>2</second> </second> </item> <item> <first>62</first> <second> <first>1</first> <second>1</second> </second> </item> </bblk_ent_exit> <regions class_id="45" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </regions> <dp_fu_nodes class_id="46" tracking_level="0" version="0"> <count>35</count> <item_version>0</item_version> <item class_id="47" tracking_level="0" version="0"> <first>48</first> <second> <count>1</count> <item_version>0</item_version> <item>6</item> </second> </item> <item> <first>54</first> <second> <count>1</count> <item_version>0</item_version> <item>7</item> </second> </item> <item> <first>60</first> <second> <count>1</count> <item_version>0</item_version> <item>37</item> </second> </item> <item> <first>67</first> <second> <count>2</count> <item_version>0</item_version> <item>38</item> <item>38</item> </second> </item> <item> <first>72</first> <second> <count>1</count> <item_version>0</item_version> <item>42</item> </second> </item> <item> <first>79</first> <second> <count>2</count> <item_version>0</item_version> <item>43</item> <item>43</item> </second> </item> <item> <first>84</first> <second> <count>1</count> <item_version>0</item_version> <item>56</item> </second> </item> <item> <first>91</first> <second> <count>1</count> <item_version>0</item_version> <item>57</item> </second> </item> <item> <first>100</first> <second> <count>1</count> <item_version>0</item_version> <item>14</item> </second> </item> <item> <first>112</first> <second> <count>1</count> <item_version>0</item_version> <item>26</item> </second> </item> <item> <first>123</first> <second> <count>1</count> <item_version>0</item_version> <item>27</item> </second> </item> <item> <first>131</first> <second> <count>1</count> <item_version>0</item_version> <item>8</item> </second> </item> <item> <first>139</first> <second> <count>1</count> <item_version>0</item_version> <item>9</item> </second> </item> <item> <first>143</first> <second> <count>1</count> <item_version>0</item_version> <item>10</item> </second> </item> <item> <first>151</first> <second> <count>1</count> <item_version>0</item_version> <item>11</item> </second> </item> <item> <first>155</first> <second> <count>1</count> <item_version>0</item_version> <item>15</item> </second> </item> <item> <first>161</first> <second> <count>1</count> <item_version>0</item_version> <item>17</item> </second> </item> <item> <first>167</first> <second> <count>1</count> <item_version>0</item_version> <item>22</item> </second> </item> <item> <first>175</first> <second> <count>1</count> <item_version>0</item_version> <item>23</item> </second> </item> <item> <first>179</first> <second> <count>1</count> <item_version>0</item_version> <item>28</item> </second> </item> <item> <first>185</first> <second> <count>1</count> <item_version>0</item_version> <item>30</item> </second> </item> <item> <first>191</first> <second> <count>1</count> <item_version>0</item_version> <item>34</item> </second> </item> <item> <first>195</first> <second> <count>1</count> <item_version>0</item_version> <item>35</item> </second> </item> <item> <first>200</first> <second> <count>1</count> <item_version>0</item_version> <item>36</item> </second> </item> <item> <first>205</first> <second> <count>1</count> <item_version>0</item_version> <item>40</item> </second> </item> <item> <first>210</first> <second> <count>1</count> <item_version>0</item_version> <item>41</item> </second> </item> <item> <first>215</first> <second> <count>1</count> <item_version>0</item_version> <item>50</item> </second> </item> <item> <first>219</first> <second> <count>1</count> <item_version>0</item_version> <item>51</item> </second> </item> <item> <first>225</first> <second> <count>1</count> <item_version>0</item_version> <item>52</item> </second> </item> <item> <first>236</first> <second> <count>1</count> <item_version>0</item_version> <item>53</item> </second> </item> <item> <first>240</first> <second> <count>1</count> <item_version>0</item_version> <item>54</item> </second> </item> <item> <first>245</first> <second> <count>1</count> <item_version>0</item_version> <item>55</item> </second> </item> <item> <first>250</first> <second> <count>1</count> <item_version>0</item_version> <item>39</item> </second> </item> <item> <first>253</first> <second> <count>1</count> <item_version>0</item_version> <item>44</item> </second> </item> <item> <first>256</first> <second> <count>3</count> <item_version>0</item_version> <item>45</item> <item>47</item> <item>46</item> </second> </item> </dp_fu_nodes> <dp_fu_nodes_expression class_id="49" tracking_level="0" version="0"> <count>30</count> <item_version>0</item_version> <item class_id="50" tracking_level="0" version="0"> <first>coeff_cast_fu_250</first> <second> <count>1</count> <item_version>0</item_version> <item>39</item> </second> </item> <item> <first>dct_coeff_table_addr6_cast_fu_175</first> <second> <count>1</count> <item_version>0</item_version> <item>23</item> </second> </item> <item> <first>dct_coeff_table_addr7_fu_195</first> <second> <count>1</count> <item_version>0</item_version> <item>35</item> </second> </item> <item> <first>dct_coeff_table_addr_gep_fu_60</first> <second> <count>1</count> <item_version>0</item_version> <item>37</item> </second> </item> <item> <first>dst_addr_gep_fu_84</first> <second> <count>1</count> <item_version>0</item_version> <item>56</item> </second> </item> <item> <first>exitcond1_fu_155</first> <second> <count>1</count> <item_version>0</item_version> <item>15</item> </second> </item> <item> <first>exitcond_fu_179</first> <second> <count>1</count> <item_version>0</item_version> <item>28</item> </second> </item> <item> <first>grp_fu_256</first> <second> <count>3</count> <item_version>0</item_version> <item>45</item> <item>47</item> <item>46</item> </second> </item> <item> <first>k_1_fu_161</first> <second> <count>1</count> <item_version>0</item_version> <item>17</item> </second> </item> <item> <first>k_phi_fu_100</first> <second> <count>1</count> <item_version>0</item_version> <item>14</item> </second> </item> <item> <first>n_1_fu_185</first> <second> <count>1</count> <item_version>0</item_version> <item>30</item> </second> </item> <item> <first>n_phi_fu_112</first> <second> <count>1</count> <item_version>0</item_version> <item>26</item> </second> </item> <item> <first>p_addr1_fu_205</first> <second> <count>1</count> <item_version>0</item_version> <item>40</item> </second> </item> <item> <first>p_addr2_cast_fu_151</first> <second> <count>1</count> <item_version>0</item_version> <item>11</item> </second> </item> <item> <first>p_addr3_fu_240</first> <second> <count>1</count> <item_version>0</item_version> <item>54</item> </second> </item> <item> <first>p_addr_cast_fu_139</first> <second> <count>1</count> <item_version>0</item_version> <item>9</item> </second> </item> <item> <first>src_addr_gep_fu_72</first> <second> <count>1</count> <item_version>0</item_version> <item>42</item> </second> </item> <item> <first>tmp1_phi_fu_123</first> <second> <count>1</count> <item_version>0</item_version> <item>27</item> </second> </item> <item> <first>tmp_10_fu_200</first> <second> <count>1</count> <item_version>0</item_version> <item>36</item> </second> </item> <item> <first>tmp_12_fu_210</first> <second> <count>1</count> <item_version>0</item_version> <item>41</item> </second> </item> <item> <first>tmp_2_fu_219</first> <second> <count>1</count> <item_version>0</item_version> <item>51</item> </second> </item> <item> <first>tmp_3_fu_215</first> <second> <count>1</count> <item_version>0</item_version> <item>50</item> </second> </item> <item> <first>tmp_4_fu_225</first> <second> <count>1</count> <item_version>0</item_version> <item>52</item> </second> </item> <item> <first>tmp_6_fu_143</first> <second> <count>1</count> <item_version>0</item_version> <item>10</item> </second> </item> <item> <first>tmp_6_trn5_cast_fu_191</first> <second> <count>1</count> <item_version>0</item_version> <item>34</item> </second> </item> <item> <first>tmp_7_cast_fu_253</first> <second> <count>1</count> <item_version>0</item_version> <item>44</item> </second> </item> <item> <first>tmp_7_fu_167</first> <second> <count>1</count> <item_version>0</item_version> <item>22</item> </second> </item> <item> <first>tmp_9_fu_245</first> <second> <count>1</count> <item_version>0</item_version> <item>55</item> </second> </item> <item> <first>tmp_fu_131</first> <second> <count>1</count> <item_version>0</item_version> <item>8</item> </second> </item> <item> <first>tmp_trn_cast_fu_236</first> <second> <count>1</count> <item_version>0</item_version> <item>53</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>2</count> <item_version>0</item_version> <item> <first>tmp_11_read_read_fu_48</first> <second> <count>1</count> <item_version>0</item_version> <item>6</item> </second> </item> <item> <first>tmp_1_read_read_fu_54</first> <second> <count>1</count> <item_version>0</item_version> <item>7</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="51" tracking_level="0" version="0"> <count>3</count> <item_version>0</item_version> <item class_id="52" tracking_level="0" version="0"> <first class_id="53" tracking_level="0" version="0"> <first>dct_coeff_table</first> <second>0</second> </first> <second> <count>2</count> <item_version>0</item_version> <item>38</item> <item>38</item> </second> </item> <item> <first> <first>dst</first> <second>0</second> </first> <second> <count>1</count> <item_version>0</item_version> <item>57</item> </second> </item> <item> <first> <first>src</first> <second>0</second> </first> <second> <count>2</count> <item_version>0</item_version> <item>43</item> <item>43</item> </second> </item> </dp_mem_port_nodes> <dp_reg_nodes> <count>13</count> <item_version>0</item_version> <item> <first>96</first> <second> <count>1</count> <item_version>0</item_version> <item>14</item> </second> </item> <item> <first>108</first> <second> <count>1</count> <item_version>0</item_version> <item>26</item> </second> </item> <item> <first>119</first> <second> <count>1</count> <item_version>0</item_version> <item>27</item> </second> </item> <item> <first>264</first> <second> <count>1</count> <item_version>0</item_version> <item>9</item> </second> </item> <item> <first>269</first> <second> <count>1</count> <item_version>0</item_version> <item>11</item> </second> </item> <item> <first>277</first> <second> <count>1</count> <item_version>0</item_version> <item>17</item> </second> </item> <item> <first>282</first> <second> <count>1</count> <item_version>0</item_version> <item>23</item> </second> </item> <item> <first>290</first> <second> <count>1</count> <item_version>0</item_version> <item>30</item> </second> </item> <item> <first>295</first> <second> <count>1</count> <item_version>0</item_version> <item>37</item> </second> </item> <item> <first>300</first> <second> <count>1</count> <item_version>0</item_version> <item>42</item> </second> </item> <item> <first>305</first> <second> <count>1</count> <item_version>0</item_version> <item>38</item> </second> </item> <item> <first>310</first> <second> <count>1</count> <item_version>0</item_version> <item>43</item> </second> </item> <item> <first>315</first> <second> <count>1</count> <item_version>0</item_version> <item>47</item> </second> </item> </dp_reg_nodes> <dp_regname_nodes> <count>13</count> <item_version>0</item_version> <item> <first>dct_coeff_table_addr6_cast_reg_282</first> <second> <count>1</count> <item_version>0</item_version> <item>23</item> </second> </item> <item> <first>dct_coeff_table_addr_reg_295</first> <second> <count>1</count> <item_version>0</item_version> <item>37</item> </second> </item> <item> <first>dct_coeff_table_load_reg_305</first> <second> <count>1</count> <item_version>0</item_version> <item>38</item> </second> </item> <item> <first>k_1_reg_277</first> <second> <count>1</count> <item_version>0</item_version> <item>17</item> </second> </item> <item> <first>k_reg_96</first> <second> <count>1</count> <item_version>0</item_version> <item>14</item> </second> </item> <item> <first>n_1_reg_290</first> <second> <count>1</count> <item_version>0</item_version> <item>30</item> </second> </item> <item> <first>n_reg_108</first> <second> <count>1</count> <item_version>0</item_version> <item>26</item> </second> </item> <item> <first>p_addr2_cast_reg_269</first> <second> <count>1</count> <item_version>0</item_version> <item>11</item> </second> </item> <item> <first>p_addr_cast_reg_264</first> <second> <count>1</count> <item_version>0</item_version> <item>9</item> </second> </item> <item> <first>src_addr_reg_300</first> <second> <count>1</count> <item_version>0</item_version> <item>42</item> </second> </item> <item> <first>src_load_reg_310</first> <second> <count>1</count> <item_version>0</item_version> <item>43</item> </second> </item> <item> <first>tmp1_reg_119</first> <second> <count>1</count> <item_version>0</item_version> <item>27</item> </second> </item> <item> <first>tmp_5_reg_315</first> <second> <count>1</count> <item_version>0</item_version> <item>47</item> </second> </item> </dp_regname_nodes> <dp_reg_phi> <count>3</count> <item_version>0</item_version> <item> <first>96</first> <second> <count>1</count> <item_version>0</item_version> <item>14</item> </second> </item> <item> <first>108</first> <second> <count>1</count> <item_version>0</item_version> <item>26</item> </second> </item> <item> <first>119</first> <second> <count>1</count> <item_version>0</item_version> <item>27</item> </second> </item> </dp_reg_phi> <dp_regname_phi> <count>3</count> <item_version>0</item_version> <item> <first>k_reg_96</first> <second> <count>1</count> <item_version>0</item_version> <item>14</item> </second> </item> <item> <first>n_reg_108</first> <second> <count>1</count> <item_version>0</item_version> <item>26</item> </second> </item> <item> <first>tmp1_reg_119</first> <second> <count>1</count> <item_version>0</item_version> <item>27</item> </second> </item> </dp_regname_phi> <dp_port_io_nodes class_id="54" tracking_level="0" version="0"> <count>4</count> <item_version>0</item_version> <item class_id="55" tracking_level="0" version="0"> <first>dst(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>57</item> </second> </item> </second> </item> <item> <first>src(p0)</first> <second> <count>1</count> <item_version>0</item_version> <item> <first>load</first> <second> <count>2</count> <item_version>0</item_version> <item>43</item> <item>43</item> </second> </item> </second> </item> <item> <first>tmp_1</first> <second> <count>1</count> <item_version>0</item_version> <item> <first>read</first> <second> <count>1</count> <item_version>0</item_version> <item>7</item> </second> </item> </second> </item> <item> <first>tmp_11</first> <second> <count>1</count> <item_version>0</item_version> <item> <first>read</first> <second> <count>1</count> <item_version>0</item_version> <item>6</item> </second> </item> </second> </item> </dp_port_io_nodes> <port2core class_id="56" tracking_level="0" version="0"> <count>2</count> <item_version>0</item_version> <item class_id="57" tracking_level="0" version="0"> <first>1</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>
24.784148
98
0.583827
12850814c21508e56c5e0e21693f0c3f860ea8a4
93,366
ads
Ada
src/stm32-usb_otg.ads
damaki/EVB1000
1589a3f3bd79d7c9970f3b0758e133e3ec1ee6e2
[ "MIT" ]
null
null
null
src/stm32-usb_otg.ads
damaki/EVB1000
1589a3f3bd79d7c9970f3b0758e133e3ec1ee6e2
[ "MIT" ]
null
null
null
src/stm32-usb_otg.ads
damaki/EVB1000
1589a3f3bd79d7c9970f3b0758e133e3ec1ee6e2
[ "MIT" ]
1
2021-02-10T14:33:06.000Z
2021-02-10T14:33:06.000Z
-- This spec has been automatically generated from STM32F105xx.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; with System; package STM32.USB_OTG is pragma Preelaborate; --------------- -- Registers -- --------------- ------------------------- -- FS_GOTGCTL_Register -- ------------------------- subtype FS_GOTGCTL_SRQSCS_Field is STM32.Bit; subtype FS_GOTGCTL_SRQ_Field is STM32.Bit; subtype FS_GOTGCTL_HNGSCS_Field is STM32.Bit; subtype FS_GOTGCTL_HNPRQ_Field is STM32.Bit; subtype FS_GOTGCTL_HSHNPEN_Field is STM32.Bit; subtype FS_GOTGCTL_DHNPEN_Field is STM32.Bit; subtype FS_GOTGCTL_CIDSTS_Field is STM32.Bit; subtype FS_GOTGCTL_DBCT_Field is STM32.Bit; subtype FS_GOTGCTL_ASVLD_Field is STM32.Bit; subtype FS_GOTGCTL_BSVLD_Field is STM32.Bit; -- OTG_FS control and status register (OTG_FS_GOTGCTL) type FS_GOTGCTL_Register is record -- Read-only. Session request success SRQSCS : FS_GOTGCTL_SRQSCS_Field := 16#0#; -- Session request SRQ : FS_GOTGCTL_SRQ_Field := 16#0#; -- unspecified Reserved_2_7 : STM32.UInt6 := 16#0#; -- Read-only. Host negotiation success HNGSCS : FS_GOTGCTL_HNGSCS_Field := 16#0#; -- HNP request HNPRQ : FS_GOTGCTL_HNPRQ_Field := 16#0#; -- Host set HNP enable HSHNPEN : FS_GOTGCTL_HSHNPEN_Field := 16#0#; -- Device HNP enabled DHNPEN : FS_GOTGCTL_DHNPEN_Field := 16#1#; -- unspecified Reserved_12_15 : STM32.UInt4 := 16#0#; -- Read-only. Connector ID status CIDSTS : FS_GOTGCTL_CIDSTS_Field := 16#0#; -- Read-only. Long/short debounce time DBCT : FS_GOTGCTL_DBCT_Field := 16#0#; -- Read-only. A-session valid ASVLD : FS_GOTGCTL_ASVLD_Field := 16#0#; -- Read-only. B-session valid BSVLD : FS_GOTGCTL_BSVLD_Field := 16#0#; -- unspecified Reserved_20_31 : STM32.UInt12 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for FS_GOTGCTL_Register use record SRQSCS at 0 range 0 .. 0; SRQ at 0 range 1 .. 1; Reserved_2_7 at 0 range 2 .. 7; HNGSCS at 0 range 8 .. 8; HNPRQ at 0 range 9 .. 9; HSHNPEN at 0 range 10 .. 10; DHNPEN at 0 range 11 .. 11; Reserved_12_15 at 0 range 12 .. 15; CIDSTS at 0 range 16 .. 16; DBCT at 0 range 17 .. 17; ASVLD at 0 range 18 .. 18; BSVLD at 0 range 19 .. 19; Reserved_20_31 at 0 range 20 .. 31; end record; ------------------------- -- FS_GOTGINT_Register -- ------------------------- subtype FS_GOTGINT_SEDET_Field is STM32.Bit; subtype FS_GOTGINT_SRSSCHG_Field is STM32.Bit; subtype FS_GOTGINT_HNSSCHG_Field is STM32.Bit; subtype FS_GOTGINT_HNGDET_Field is STM32.Bit; subtype FS_GOTGINT_ADTOCHG_Field is STM32.Bit; subtype FS_GOTGINT_DBCDNE_Field is STM32.Bit; -- OTG_FS interrupt register (OTG_FS_GOTGINT) type FS_GOTGINT_Register is record -- unspecified Reserved_0_1 : STM32.UInt2 := 16#0#; -- Session end detected SEDET : FS_GOTGINT_SEDET_Field := 16#0#; -- unspecified Reserved_3_7 : STM32.UInt5 := 16#0#; -- Session request success status change SRSSCHG : FS_GOTGINT_SRSSCHG_Field := 16#0#; -- Host negotiation success status change HNSSCHG : FS_GOTGINT_HNSSCHG_Field := 16#0#; -- unspecified Reserved_10_16 : STM32.UInt7 := 16#0#; -- Host negotiation detected HNGDET : FS_GOTGINT_HNGDET_Field := 16#0#; -- A-device timeout change ADTOCHG : FS_GOTGINT_ADTOCHG_Field := 16#0#; -- Debounce done DBCDNE : FS_GOTGINT_DBCDNE_Field := 16#0#; -- unspecified Reserved_20_31 : STM32.UInt12 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for FS_GOTGINT_Register use record Reserved_0_1 at 0 range 0 .. 1; SEDET at 0 range 2 .. 2; Reserved_3_7 at 0 range 3 .. 7; SRSSCHG at 0 range 8 .. 8; HNSSCHG at 0 range 9 .. 9; Reserved_10_16 at 0 range 10 .. 16; HNGDET at 0 range 17 .. 17; ADTOCHG at 0 range 18 .. 18; DBCDNE at 0 range 19 .. 19; Reserved_20_31 at 0 range 20 .. 31; end record; ------------------------- -- FS_GAHBCFG_Register -- ------------------------- subtype FS_GAHBCFG_GINT_Field is STM32.Bit; subtype FS_GAHBCFG_TXFELVL_Field is STM32.Bit; subtype FS_GAHBCFG_PTXFELVL_Field is STM32.Bit; -- OTG_FS AHB configuration register (OTG_FS_GAHBCFG) type FS_GAHBCFG_Register is record -- Global interrupt mask GINT : FS_GAHBCFG_GINT_Field := 16#0#; -- unspecified Reserved_1_6 : STM32.UInt6 := 16#0#; -- TxFIFO empty level TXFELVL : FS_GAHBCFG_TXFELVL_Field := 16#0#; -- Periodic TxFIFO empty level PTXFELVL : FS_GAHBCFG_PTXFELVL_Field := 16#0#; -- unspecified Reserved_9_31 : STM32.UInt23 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for FS_GAHBCFG_Register use record GINT at 0 range 0 .. 0; Reserved_1_6 at 0 range 1 .. 6; TXFELVL at 0 range 7 .. 7; PTXFELVL at 0 range 8 .. 8; Reserved_9_31 at 0 range 9 .. 31; end record; ------------------------- -- FS_GUSBCFG_Register -- ------------------------- subtype FS_GUSBCFG_TOCAL_Field is STM32.UInt3; subtype FS_GUSBCFG_PHYSEL_Field is STM32.Bit; subtype FS_GUSBCFG_SRPCAP_Field is STM32.Bit; subtype FS_GUSBCFG_HNPCAP_Field is STM32.Bit; subtype FS_GUSBCFG_TRDT_Field is STM32.UInt4; subtype FS_GUSBCFG_FHMOD_Field is STM32.Bit; subtype FS_GUSBCFG_FDMOD_Field is STM32.Bit; subtype FS_GUSBCFG_CTXPKT_Field is STM32.Bit; -- OTG_FS USB configuration register (OTG_FS_GUSBCFG) type FS_GUSBCFG_Register is record -- FS timeout calibration TOCAL : FS_GUSBCFG_TOCAL_Field := 16#0#; -- unspecified Reserved_3_6 : STM32.UInt4 := 16#0#; -- Write-only. Full Speed serial transceiver select PHYSEL : FS_GUSBCFG_PHYSEL_Field := 16#0#; -- SRP-capable SRPCAP : FS_GUSBCFG_SRPCAP_Field := 16#0#; -- HNP-capable HNPCAP : FS_GUSBCFG_HNPCAP_Field := 16#1#; -- USB turnaround time TRDT : FS_GUSBCFG_TRDT_Field := 16#2#; -- unspecified Reserved_14_28 : STM32.UInt15 := 16#0#; -- Force host mode FHMOD : FS_GUSBCFG_FHMOD_Field := 16#0#; -- Force device mode FDMOD : FS_GUSBCFG_FDMOD_Field := 16#0#; -- Corrupt Tx packet CTXPKT : FS_GUSBCFG_CTXPKT_Field := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for FS_GUSBCFG_Register use record TOCAL at 0 range 0 .. 2; Reserved_3_6 at 0 range 3 .. 6; PHYSEL at 0 range 7 .. 7; SRPCAP at 0 range 8 .. 8; HNPCAP at 0 range 9 .. 9; TRDT at 0 range 10 .. 13; Reserved_14_28 at 0 range 14 .. 28; FHMOD at 0 range 29 .. 29; FDMOD at 0 range 30 .. 30; CTXPKT at 0 range 31 .. 31; end record; ------------------------- -- FS_GRSTCTL_Register -- ------------------------- subtype FS_GRSTCTL_CSRST_Field is STM32.Bit; subtype FS_GRSTCTL_HSRST_Field is STM32.Bit; subtype FS_GRSTCTL_FCRST_Field is STM32.Bit; subtype FS_GRSTCTL_RXFFLSH_Field is STM32.Bit; subtype FS_GRSTCTL_TXFFLSH_Field is STM32.Bit; subtype FS_GRSTCTL_TXFNUM_Field is STM32.UInt5; subtype FS_GRSTCTL_AHBIDL_Field is STM32.Bit; -- OTG_FS reset register (OTG_FS_GRSTCTL) type FS_GRSTCTL_Register is record -- Core soft reset CSRST : FS_GRSTCTL_CSRST_Field := 16#0#; -- HCLK soft reset HSRST : FS_GRSTCTL_HSRST_Field := 16#0#; -- Host frame counter reset FCRST : FS_GRSTCTL_FCRST_Field := 16#0#; -- unspecified Reserved_3_3 : STM32.Bit := 16#0#; -- RxFIFO flush RXFFLSH : FS_GRSTCTL_RXFFLSH_Field := 16#0#; -- TxFIFO flush TXFFLSH : FS_GRSTCTL_TXFFLSH_Field := 16#0#; -- TxFIFO number TXFNUM : FS_GRSTCTL_TXFNUM_Field := 16#0#; -- unspecified Reserved_11_30 : STM32.UInt20 := 16#40000#; -- Read-only. AHB master idle AHBIDL : FS_GRSTCTL_AHBIDL_Field := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for FS_GRSTCTL_Register use record CSRST at 0 range 0 .. 0; HSRST at 0 range 1 .. 1; FCRST at 0 range 2 .. 2; Reserved_3_3 at 0 range 3 .. 3; RXFFLSH at 0 range 4 .. 4; TXFFLSH at 0 range 5 .. 5; TXFNUM at 0 range 6 .. 10; Reserved_11_30 at 0 range 11 .. 30; AHBIDL at 0 range 31 .. 31; end record; ------------------------- -- FS_GINTSTS_Register -- ------------------------- subtype FS_GINTSTS_CMOD_Field is STM32.Bit; subtype FS_GINTSTS_MMIS_Field is STM32.Bit; subtype FS_GINTSTS_OTGINT_Field is STM32.Bit; subtype FS_GINTSTS_SOF_Field is STM32.Bit; subtype FS_GINTSTS_RXFLVL_Field is STM32.Bit; subtype FS_GINTSTS_NPTXFE_Field is STM32.Bit; subtype FS_GINTSTS_GINAKEFF_Field is STM32.Bit; subtype FS_GINTSTS_GOUTNAKEFF_Field is STM32.Bit; subtype FS_GINTSTS_ESUSP_Field is STM32.Bit; subtype FS_GINTSTS_USBSUSP_Field is STM32.Bit; subtype FS_GINTSTS_USBRST_Field is STM32.Bit; subtype FS_GINTSTS_ENUMDNE_Field is STM32.Bit; subtype FS_GINTSTS_ISOODRP_Field is STM32.Bit; subtype FS_GINTSTS_EOPF_Field is STM32.Bit; subtype FS_GINTSTS_IEPINT_Field is STM32.Bit; subtype FS_GINTSTS_OEPINT_Field is STM32.Bit; subtype FS_GINTSTS_IISOIXFR_Field is STM32.Bit; subtype FS_GINTSTS_IPXFR_INCOMPISOOUT_Field is STM32.Bit; subtype FS_GINTSTS_HPRTINT_Field is STM32.Bit; subtype FS_GINTSTS_HCINT_Field is STM32.Bit; subtype FS_GINTSTS_PTXFE_Field is STM32.Bit; subtype FS_GINTSTS_CIDSCHG_Field is STM32.Bit; subtype FS_GINTSTS_DISCINT_Field is STM32.Bit; subtype FS_GINTSTS_SRQINT_Field is STM32.Bit; subtype FS_GINTSTS_WKUPINT_Field is STM32.Bit; -- OTG_FS core interrupt register (OTG_FS_GINTSTS) type FS_GINTSTS_Register is record -- Read-only. Current mode of operation CMOD : FS_GINTSTS_CMOD_Field := 16#0#; -- Mode mismatch interrupt MMIS : FS_GINTSTS_MMIS_Field := 16#0#; -- Read-only. OTG interrupt OTGINT : FS_GINTSTS_OTGINT_Field := 16#0#; -- Start of frame SOF : FS_GINTSTS_SOF_Field := 16#0#; -- Read-only. RxFIFO non-empty RXFLVL : FS_GINTSTS_RXFLVL_Field := 16#0#; -- Read-only. Non-periodic TxFIFO empty NPTXFE : FS_GINTSTS_NPTXFE_Field := 16#1#; -- Read-only. Global IN non-periodic NAK effective GINAKEFF : FS_GINTSTS_GINAKEFF_Field := 16#0#; -- Read-only. Global OUT NAK effective GOUTNAKEFF : FS_GINTSTS_GOUTNAKEFF_Field := 16#0#; -- unspecified Reserved_8_9 : STM32.UInt2 := 16#0#; -- Early suspend ESUSP : FS_GINTSTS_ESUSP_Field := 16#0#; -- USB suspend USBSUSP : FS_GINTSTS_USBSUSP_Field := 16#0#; -- USB reset USBRST : FS_GINTSTS_USBRST_Field := 16#0#; -- Enumeration done ENUMDNE : FS_GINTSTS_ENUMDNE_Field := 16#0#; -- Isochronous OUT packet dropped interrupt ISOODRP : FS_GINTSTS_ISOODRP_Field := 16#0#; -- End of periodic frame interrupt EOPF : FS_GINTSTS_EOPF_Field := 16#0#; -- unspecified Reserved_16_17 : STM32.UInt2 := 16#0#; -- Read-only. IN endpoint interrupt IEPINT : FS_GINTSTS_IEPINT_Field := 16#0#; -- Read-only. OUT endpoint interrupt OEPINT : FS_GINTSTS_OEPINT_Field := 16#0#; -- Incomplete isochronous IN transfer IISOIXFR : FS_GINTSTS_IISOIXFR_Field := 16#0#; -- Incomplete periodic transfer(Host mode)/Incomplete isochronous OUT -- transfer(Device mode) IPXFR_INCOMPISOOUT : FS_GINTSTS_IPXFR_INCOMPISOOUT_Field := 16#0#; -- unspecified Reserved_22_23 : STM32.UInt2 := 16#0#; -- Read-only. Host port interrupt HPRTINT : FS_GINTSTS_HPRTINT_Field := 16#0#; -- Read-only. Host channels interrupt HCINT : FS_GINTSTS_HCINT_Field := 16#0#; -- Read-only. Periodic TxFIFO empty PTXFE : FS_GINTSTS_PTXFE_Field := 16#1#; -- unspecified Reserved_27_27 : STM32.Bit := 16#0#; -- Connector ID status change CIDSCHG : FS_GINTSTS_CIDSCHG_Field := 16#0#; -- Disconnect detected interrupt DISCINT : FS_GINTSTS_DISCINT_Field := 16#0#; -- Session request/new session detected interrupt SRQINT : FS_GINTSTS_SRQINT_Field := 16#0#; -- Resume/remote wakeup detected interrupt WKUPINT : FS_GINTSTS_WKUPINT_Field := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for FS_GINTSTS_Register use record CMOD at 0 range 0 .. 0; MMIS at 0 range 1 .. 1; OTGINT at 0 range 2 .. 2; SOF at 0 range 3 .. 3; RXFLVL at 0 range 4 .. 4; NPTXFE at 0 range 5 .. 5; GINAKEFF at 0 range 6 .. 6; GOUTNAKEFF at 0 range 7 .. 7; Reserved_8_9 at 0 range 8 .. 9; ESUSP at 0 range 10 .. 10; USBSUSP at 0 range 11 .. 11; USBRST at 0 range 12 .. 12; ENUMDNE at 0 range 13 .. 13; ISOODRP at 0 range 14 .. 14; EOPF at 0 range 15 .. 15; Reserved_16_17 at 0 range 16 .. 17; IEPINT at 0 range 18 .. 18; OEPINT at 0 range 19 .. 19; IISOIXFR at 0 range 20 .. 20; IPXFR_INCOMPISOOUT at 0 range 21 .. 21; Reserved_22_23 at 0 range 22 .. 23; HPRTINT at 0 range 24 .. 24; HCINT at 0 range 25 .. 25; PTXFE at 0 range 26 .. 26; Reserved_27_27 at 0 range 27 .. 27; CIDSCHG at 0 range 28 .. 28; DISCINT at 0 range 29 .. 29; SRQINT at 0 range 30 .. 30; WKUPINT at 0 range 31 .. 31; end record; ------------------------- -- FS_GINTMSK_Register -- ------------------------- subtype FS_GINTMSK_MMISM_Field is STM32.Bit; subtype FS_GINTMSK_OTGINT_Field is STM32.Bit; subtype FS_GINTMSK_SOFM_Field is STM32.Bit; subtype FS_GINTMSK_RXFLVLM_Field is STM32.Bit; subtype FS_GINTMSK_NPTXFEM_Field is STM32.Bit; subtype FS_GINTMSK_GINAKEFFM_Field is STM32.Bit; subtype FS_GINTMSK_GONAKEFFM_Field is STM32.Bit; subtype FS_GINTMSK_ESUSPM_Field is STM32.Bit; subtype FS_GINTMSK_USBSUSPM_Field is STM32.Bit; subtype FS_GINTMSK_USBRST_Field is STM32.Bit; subtype FS_GINTMSK_ENUMDNEM_Field is STM32.Bit; subtype FS_GINTMSK_ISOODRPM_Field is STM32.Bit; subtype FS_GINTMSK_EOPFM_Field is STM32.Bit; subtype FS_GINTMSK_EPMISM_Field is STM32.Bit; subtype FS_GINTMSK_IEPINT_Field is STM32.Bit; subtype FS_GINTMSK_OEPINT_Field is STM32.Bit; subtype FS_GINTMSK_IISOIXFRM_Field is STM32.Bit; subtype FS_GINTMSK_IPXFRM_IISOOXFRM_Field is STM32.Bit; subtype FS_GINTMSK_PRTIM_Field is STM32.Bit; subtype FS_GINTMSK_HCIM_Field is STM32.Bit; subtype FS_GINTMSK_PTXFEM_Field is STM32.Bit; subtype FS_GINTMSK_CIDSCHGM_Field is STM32.Bit; subtype FS_GINTMSK_DISCINT_Field is STM32.Bit; subtype FS_GINTMSK_SRQIM_Field is STM32.Bit; subtype FS_GINTMSK_WUIM_Field is STM32.Bit; -- OTG_FS interrupt mask register (OTG_FS_GINTMSK) type FS_GINTMSK_Register is record -- unspecified Reserved_0_0 : STM32.Bit := 16#0#; -- Mode mismatch interrupt mask MMISM : FS_GINTMSK_MMISM_Field := 16#0#; -- OTG interrupt mask OTGINT : FS_GINTMSK_OTGINT_Field := 16#0#; -- Start of frame mask SOFM : FS_GINTMSK_SOFM_Field := 16#0#; -- Receive FIFO non-empty mask RXFLVLM : FS_GINTMSK_RXFLVLM_Field := 16#0#; -- Non-periodic TxFIFO empty mask NPTXFEM : FS_GINTMSK_NPTXFEM_Field := 16#0#; -- Global non-periodic IN NAK effective mask GINAKEFFM : FS_GINTMSK_GINAKEFFM_Field := 16#0#; -- Global OUT NAK effective mask GONAKEFFM : FS_GINTMSK_GONAKEFFM_Field := 16#0#; -- unspecified Reserved_8_9 : STM32.UInt2 := 16#0#; -- Early suspend mask ESUSPM : FS_GINTMSK_ESUSPM_Field := 16#0#; -- USB suspend mask USBSUSPM : FS_GINTMSK_USBSUSPM_Field := 16#0#; -- USB reset mask USBRST : FS_GINTMSK_USBRST_Field := 16#0#; -- Enumeration done mask ENUMDNEM : FS_GINTMSK_ENUMDNEM_Field := 16#0#; -- Isochronous OUT packet dropped interrupt mask ISOODRPM : FS_GINTMSK_ISOODRPM_Field := 16#0#; -- End of periodic frame interrupt mask EOPFM : FS_GINTMSK_EOPFM_Field := 16#0#; -- unspecified Reserved_16_16 : STM32.Bit := 16#0#; -- Endpoint mismatch interrupt mask EPMISM : FS_GINTMSK_EPMISM_Field := 16#0#; -- IN endpoints interrupt mask IEPINT : FS_GINTMSK_IEPINT_Field := 16#0#; -- OUT endpoints interrupt mask OEPINT : FS_GINTMSK_OEPINT_Field := 16#0#; -- Incomplete isochronous IN transfer mask IISOIXFRM : FS_GINTMSK_IISOIXFRM_Field := 16#0#; -- Incomplete periodic transfer mask(Host mode)/Incomplete isochronous -- OUT transfer mask(Device mode) IPXFRM_IISOOXFRM : FS_GINTMSK_IPXFRM_IISOOXFRM_Field := 16#0#; -- unspecified Reserved_22_23 : STM32.UInt2 := 16#0#; -- Read-only. Host port interrupt mask PRTIM : FS_GINTMSK_PRTIM_Field := 16#0#; -- Host channels interrupt mask HCIM : FS_GINTMSK_HCIM_Field := 16#0#; -- Periodic TxFIFO empty mask PTXFEM : FS_GINTMSK_PTXFEM_Field := 16#0#; -- unspecified Reserved_27_27 : STM32.Bit := 16#0#; -- Connector ID status change mask CIDSCHGM : FS_GINTMSK_CIDSCHGM_Field := 16#0#; -- Disconnect detected interrupt mask DISCINT : FS_GINTMSK_DISCINT_Field := 16#0#; -- Session request/new session detected interrupt mask SRQIM : FS_GINTMSK_SRQIM_Field := 16#0#; -- Resume/remote wakeup detected interrupt mask WUIM : FS_GINTMSK_WUIM_Field := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for FS_GINTMSK_Register use record Reserved_0_0 at 0 range 0 .. 0; MMISM at 0 range 1 .. 1; OTGINT at 0 range 2 .. 2; SOFM at 0 range 3 .. 3; RXFLVLM at 0 range 4 .. 4; NPTXFEM at 0 range 5 .. 5; GINAKEFFM at 0 range 6 .. 6; GONAKEFFM at 0 range 7 .. 7; Reserved_8_9 at 0 range 8 .. 9; ESUSPM at 0 range 10 .. 10; USBSUSPM at 0 range 11 .. 11; USBRST at 0 range 12 .. 12; ENUMDNEM at 0 range 13 .. 13; ISOODRPM at 0 range 14 .. 14; EOPFM at 0 range 15 .. 15; Reserved_16_16 at 0 range 16 .. 16; EPMISM at 0 range 17 .. 17; IEPINT at 0 range 18 .. 18; OEPINT at 0 range 19 .. 19; IISOIXFRM at 0 range 20 .. 20; IPXFRM_IISOOXFRM at 0 range 21 .. 21; Reserved_22_23 at 0 range 22 .. 23; PRTIM at 0 range 24 .. 24; HCIM at 0 range 25 .. 25; PTXFEM at 0 range 26 .. 26; Reserved_27_27 at 0 range 27 .. 27; CIDSCHGM at 0 range 28 .. 28; DISCINT at 0 range 29 .. 29; SRQIM at 0 range 30 .. 30; WUIM at 0 range 31 .. 31; end record; -------------------------------- -- FS_GRXSTSR_Device_Register -- -------------------------------- subtype FS_GRXSTSR_Device_EPNUM_Field is STM32.UInt4; subtype FS_GRXSTSR_Device_BCNT_Field is STM32.UInt11; subtype FS_GRXSTSR_Device_DPID_Field is STM32.UInt2; subtype FS_GRXSTSR_Device_PKTSTS_Field is STM32.UInt4; subtype FS_GRXSTSR_Device_FRMNUM_Field is STM32.UInt4; -- OTG_FS Receive status debug read(Device mode) type FS_GRXSTSR_Device_Register is record -- Read-only. Endpoint number EPNUM : FS_GRXSTSR_Device_EPNUM_Field; -- Read-only. Byte count BCNT : FS_GRXSTSR_Device_BCNT_Field; -- Read-only. Data PID DPID : FS_GRXSTSR_Device_DPID_Field; -- Read-only. Packet status PKTSTS : FS_GRXSTSR_Device_PKTSTS_Field; -- Read-only. Frame number FRMNUM : FS_GRXSTSR_Device_FRMNUM_Field; -- unspecified Reserved_25_31 : STM32.UInt7; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for FS_GRXSTSR_Device_Register use record EPNUM at 0 range 0 .. 3; BCNT at 0 range 4 .. 14; DPID at 0 range 15 .. 16; PKTSTS at 0 range 17 .. 20; FRMNUM at 0 range 21 .. 24; Reserved_25_31 at 0 range 25 .. 31; end record; ------------------------------ -- FS_GRXSTSR_Host_Register -- ------------------------------ subtype FS_GRXSTSR_Host_EPNUM_Field is STM32.UInt4; subtype FS_GRXSTSR_Host_BCNT_Field is STM32.UInt11; subtype FS_GRXSTSR_Host_DPID_Field is STM32.UInt2; subtype FS_GRXSTSR_Host_PKTSTS_Field is STM32.UInt4; subtype FS_GRXSTSR_Host_FRMNUM_Field is STM32.UInt4; -- OTG_FS Receive status debug read(Host mode) type FS_GRXSTSR_Host_Register is record -- Read-only. Endpoint number EPNUM : FS_GRXSTSR_Host_EPNUM_Field; -- Read-only. Byte count BCNT : FS_GRXSTSR_Host_BCNT_Field; -- Read-only. Data PID DPID : FS_GRXSTSR_Host_DPID_Field; -- Read-only. Packet status PKTSTS : FS_GRXSTSR_Host_PKTSTS_Field; -- Read-only. Frame number FRMNUM : FS_GRXSTSR_Host_FRMNUM_Field; -- unspecified Reserved_25_31 : STM32.UInt7; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for FS_GRXSTSR_Host_Register use record EPNUM at 0 range 0 .. 3; BCNT at 0 range 4 .. 14; DPID at 0 range 15 .. 16; PKTSTS at 0 range 17 .. 20; FRMNUM at 0 range 21 .. 24; Reserved_25_31 at 0 range 25 .. 31; end record; ------------------------- -- FS_GRXFSIZ_Register -- ------------------------- subtype FS_GRXFSIZ_RXFD_Field is STM32.Short; -- OTG_FS Receive FIFO size register (OTG_FS_GRXFSIZ) type FS_GRXFSIZ_Register is record -- RxFIFO depth RXFD : FS_GRXFSIZ_RXFD_Field := 16#200#; -- unspecified Reserved_16_31 : STM32.Short := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for FS_GRXFSIZ_Register use record RXFD at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; ---------------------------------- -- FS_GNPTXFSIZ_Device_Register -- ---------------------------------- subtype FS_GNPTXFSIZ_Device_TX0FSA_Field is STM32.Short; subtype FS_GNPTXFSIZ_Device_TX0FD_Field is STM32.Short; -- OTG_FS non-periodic transmit FIFO size register (Device mode) type FS_GNPTXFSIZ_Device_Register is record -- Endpoint 0 transmit RAM start address TX0FSA : FS_GNPTXFSIZ_Device_TX0FSA_Field := 16#200#; -- Endpoint 0 TxFIFO depth TX0FD : FS_GNPTXFSIZ_Device_TX0FD_Field := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for FS_GNPTXFSIZ_Device_Register use record TX0FSA at 0 range 0 .. 15; TX0FD at 0 range 16 .. 31; end record; -------------------------------- -- FS_GNPTXFSIZ_Host_Register -- -------------------------------- subtype FS_GNPTXFSIZ_Host_NPTXFSA_Field is STM32.Short; subtype FS_GNPTXFSIZ_Host_NPTXFD_Field is STM32.Short; -- OTG_FS non-periodic transmit FIFO size register (Host mode) type FS_GNPTXFSIZ_Host_Register is record -- Non-periodic transmit RAM start address NPTXFSA : FS_GNPTXFSIZ_Host_NPTXFSA_Field := 16#200#; -- Non-periodic TxFIFO depth NPTXFD : FS_GNPTXFSIZ_Host_NPTXFD_Field := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for FS_GNPTXFSIZ_Host_Register use record NPTXFSA at 0 range 0 .. 15; NPTXFD at 0 range 16 .. 31; end record; -------------------------- -- FS_GNPTXSTS_Register -- -------------------------- subtype FS_GNPTXSTS_NPTXFSAV_Field is STM32.Short; subtype FS_GNPTXSTS_NPTQXSAV_Field is STM32.Byte; subtype FS_GNPTXSTS_NPTXQTOP_Field is STM32.UInt7; -- OTG_FS non-periodic transmit FIFO/queue status register -- (OTG_FS_GNPTXSTS) type FS_GNPTXSTS_Register is record -- Read-only. Non-periodic TxFIFO space available NPTXFSAV : FS_GNPTXSTS_NPTXFSAV_Field; -- Read-only. Non-periodic transmit request queue space available NPTQXSAV : FS_GNPTXSTS_NPTQXSAV_Field; -- Read-only. Top of the non-periodic transmit request queue NPTXQTOP : FS_GNPTXSTS_NPTXQTOP_Field; -- unspecified Reserved_31_31 : STM32.Bit; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for FS_GNPTXSTS_Register use record NPTXFSAV at 0 range 0 .. 15; NPTQXSAV at 0 range 16 .. 23; NPTXQTOP at 0 range 24 .. 30; Reserved_31_31 at 0 range 31 .. 31; end record; ----------------------- -- FS_GCCFG_Register -- ----------------------- subtype FS_GCCFG_PWRDWN_Field is STM32.Bit; subtype FS_GCCFG_VBUSASEN_Field is STM32.Bit; subtype FS_GCCFG_VBUSBSEN_Field is STM32.Bit; subtype FS_GCCFG_SOFOUTEN_Field is STM32.Bit; -- OTG_FS general core configuration register (OTG_FS_GCCFG) type FS_GCCFG_Register is record -- unspecified Reserved_0_15 : STM32.Short := 16#0#; -- Power down PWRDWN : FS_GCCFG_PWRDWN_Field := 16#0#; -- unspecified Reserved_17_17 : STM32.Bit := 16#0#; -- Enable the VBUS sensing device VBUSASEN : FS_GCCFG_VBUSASEN_Field := 16#0#; -- Enable the VBUS sensing device VBUSBSEN : FS_GCCFG_VBUSBSEN_Field := 16#0#; -- SOF output enable SOFOUTEN : FS_GCCFG_SOFOUTEN_Field := 16#0#; -- unspecified Reserved_21_31 : STM32.UInt11 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for FS_GCCFG_Register use record Reserved_0_15 at 0 range 0 .. 15; PWRDWN at 0 range 16 .. 16; Reserved_17_17 at 0 range 17 .. 17; VBUSASEN at 0 range 18 .. 18; VBUSBSEN at 0 range 19 .. 19; SOFOUTEN at 0 range 20 .. 20; Reserved_21_31 at 0 range 21 .. 31; end record; -------------------------- -- FS_HPTXFSIZ_Register -- -------------------------- subtype FS_HPTXFSIZ_PTXSA_Field is STM32.Short; subtype FS_HPTXFSIZ_PTXFSIZ_Field is STM32.Short; -- OTG_FS Host periodic transmit FIFO size register (OTG_FS_HPTXFSIZ) type FS_HPTXFSIZ_Register is record -- Host periodic TxFIFO start address PTXSA : FS_HPTXFSIZ_PTXSA_Field := 16#600#; -- Host periodic TxFIFO depth PTXFSIZ : FS_HPTXFSIZ_PTXFSIZ_Field := 16#200#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for FS_HPTXFSIZ_Register use record PTXSA at 0 range 0 .. 15; PTXFSIZ at 0 range 16 .. 31; end record; ------------------------- -- FS_DIEPTXF_Register -- ------------------------- subtype FS_DIEPTXF1_INEPTXSA_Field is STM32.Short; subtype FS_DIEPTXF1_INEPTXFD_Field is STM32.Short; -- OTG_FS device IN endpoint transmit FIFO size register (OTG_FS_DIEPTXF2) type FS_DIEPTXF_Register is record -- IN endpoint FIFO2 transmit RAM start address INEPTXSA : FS_DIEPTXF1_INEPTXSA_Field := 16#400#; -- IN endpoint TxFIFO depth INEPTXFD : FS_DIEPTXF1_INEPTXFD_Field := 16#200#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for FS_DIEPTXF_Register use record INEPTXSA at 0 range 0 .. 15; INEPTXFD at 0 range 16 .. 31; end record; ---------------------- -- FS_HCFG_Register -- ---------------------- subtype FS_HCFG_FSLSPCS_Field is STM32.UInt2; subtype FS_HCFG_FSLSS_Field is STM32.Bit; -- OTG_FS host configuration register (OTG_FS_HCFG) type FS_HCFG_Register is record -- FS/LS PHY clock select FSLSPCS : FS_HCFG_FSLSPCS_Field := 16#0#; -- Read-only. FS- and LS-only support FSLSS : FS_HCFG_FSLSS_Field := 16#0#; -- unspecified Reserved_3_31 : STM32.UInt29 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for FS_HCFG_Register use record FSLSPCS at 0 range 0 .. 1; FSLSS at 0 range 2 .. 2; Reserved_3_31 at 0 range 3 .. 31; end record; ------------------- -- HFIR_Register -- ------------------- subtype HFIR_FRIVL_Field is STM32.Short; -- OTG_FS Host frame interval register type HFIR_Register is record -- Frame interval FRIVL : HFIR_FRIVL_Field := 16#EA60#; -- unspecified Reserved_16_31 : STM32.Short := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for HFIR_Register use record FRIVL at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; ----------------------- -- FS_HFNUM_Register -- ----------------------- subtype FS_HFNUM_FRNUM_Field is STM32.Short; subtype FS_HFNUM_FTREM_Field is STM32.Short; -- OTG_FS host frame number/frame time remaining register (OTG_FS_HFNUM) type FS_HFNUM_Register is record -- Read-only. Frame number FRNUM : FS_HFNUM_FRNUM_Field; -- Read-only. Frame time remaining FTREM : FS_HFNUM_FTREM_Field; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for FS_HFNUM_Register use record FRNUM at 0 range 0 .. 15; FTREM at 0 range 16 .. 31; end record; ------------------------- -- FS_HPTXSTS_Register -- ------------------------- subtype FS_HPTXSTS_PTXFSAVL_Field is STM32.Short; subtype FS_HPTXSTS_PTXQSAV_Field is STM32.Byte; subtype FS_HPTXSTS_PTXQTOP_Field is STM32.Byte; -- OTG_FS_Host periodic transmit FIFO/queue status register -- (OTG_FS_HPTXSTS) type FS_HPTXSTS_Register is record -- Periodic transmit data FIFO space available PTXFSAVL : FS_HPTXSTS_PTXFSAVL_Field := 16#100#; -- Read-only. Periodic transmit request queue space available PTXQSAV : FS_HPTXSTS_PTXQSAV_Field := 16#8#; -- Read-only. Top of the periodic transmit request queue PTXQTOP : FS_HPTXSTS_PTXQTOP_Field := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for FS_HPTXSTS_Register use record PTXFSAVL at 0 range 0 .. 15; PTXQSAV at 0 range 16 .. 23; PTXQTOP at 0 range 24 .. 31; end record; -------------------- -- HAINT_Register -- -------------------- subtype HAINT_HAINT_Field is STM32.Short; -- OTG_FS Host all channels interrupt register type HAINT_Register is record -- Read-only. Channel interrupts HAINT : HAINT_HAINT_Field; -- unspecified Reserved_16_31 : STM32.Short; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for HAINT_Register use record HAINT at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; ----------------------- -- HAINTMSK_Register -- ----------------------- subtype HAINTMSK_HAINTM_Field is STM32.Short; -- OTG_FS host all channels interrupt mask register type HAINTMSK_Register is record -- Channel interrupt mask HAINTM : HAINTMSK_HAINTM_Field := 16#0#; -- unspecified Reserved_16_31 : STM32.Short := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for HAINTMSK_Register use record HAINTM at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; ---------------------- -- FS_HPRT_Register -- ---------------------- subtype FS_HPRT_PCSTS_Field is STM32.Bit; subtype FS_HPRT_PCDET_Field is STM32.Bit; subtype FS_HPRT_PENA_Field is STM32.Bit; subtype FS_HPRT_PENCHNG_Field is STM32.Bit; subtype FS_HPRT_POCA_Field is STM32.Bit; subtype FS_HPRT_POCCHNG_Field is STM32.Bit; subtype FS_HPRT_PRES_Field is STM32.Bit; subtype FS_HPRT_PSUSP_Field is STM32.Bit; subtype FS_HPRT_PRST_Field is STM32.Bit; subtype FS_HPRT_PLSTS_Field is STM32.UInt2; subtype FS_HPRT_PPWR_Field is STM32.Bit; subtype FS_HPRT_PTCTL_Field is STM32.UInt4; subtype FS_HPRT_PSPD_Field is STM32.UInt2; -- OTG_FS host port control and status register (OTG_FS_HPRT) type FS_HPRT_Register is record -- Read-only. Port connect status PCSTS : FS_HPRT_PCSTS_Field := 16#0#; -- Port connect detected PCDET : FS_HPRT_PCDET_Field := 16#0#; -- Port enable PENA : FS_HPRT_PENA_Field := 16#0#; -- Port enable/disable change PENCHNG : FS_HPRT_PENCHNG_Field := 16#0#; -- Read-only. Port overcurrent active POCA : FS_HPRT_POCA_Field := 16#0#; -- Port overcurrent change POCCHNG : FS_HPRT_POCCHNG_Field := 16#0#; -- Port resume PRES : FS_HPRT_PRES_Field := 16#0#; -- Port suspend PSUSP : FS_HPRT_PSUSP_Field := 16#0#; -- Port reset PRST : FS_HPRT_PRST_Field := 16#0#; -- unspecified Reserved_9_9 : STM32.Bit := 16#0#; -- Read-only. Port line status PLSTS : FS_HPRT_PLSTS_Field := 16#0#; -- Port power PPWR : FS_HPRT_PPWR_Field := 16#0#; -- Port test control PTCTL : FS_HPRT_PTCTL_Field := 16#0#; -- Read-only. Port speed PSPD : FS_HPRT_PSPD_Field := 16#0#; -- unspecified Reserved_19_31 : STM32.UInt13 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for FS_HPRT_Register use record PCSTS at 0 range 0 .. 0; PCDET at 0 range 1 .. 1; PENA at 0 range 2 .. 2; PENCHNG at 0 range 3 .. 3; POCA at 0 range 4 .. 4; POCCHNG at 0 range 5 .. 5; PRES at 0 range 6 .. 6; PSUSP at 0 range 7 .. 7; PRST at 0 range 8 .. 8; Reserved_9_9 at 0 range 9 .. 9; PLSTS at 0 range 10 .. 11; PPWR at 0 range 12 .. 12; PTCTL at 0 range 13 .. 16; PSPD at 0 range 17 .. 18; Reserved_19_31 at 0 range 19 .. 31; end record; ------------------------ -- FS_HCCHAR_Register -- ------------------------ subtype FS_HCCHAR0_MPSIZ_Field is STM32.UInt11; subtype FS_HCCHAR0_EPNUM_Field is STM32.UInt4; subtype FS_HCCHAR0_EPDIR_Field is STM32.Bit; subtype FS_HCCHAR0_LSDEV_Field is STM32.Bit; subtype FS_HCCHAR0_EPTYP_Field is STM32.UInt2; subtype FS_HCCHAR0_MCNT_Field is STM32.UInt2; subtype FS_HCCHAR0_DAD_Field is STM32.UInt7; subtype FS_HCCHAR0_ODDFRM_Field is STM32.Bit; subtype FS_HCCHAR0_CHDIS_Field is STM32.Bit; subtype FS_HCCHAR0_CHENA_Field is STM32.Bit; -- OTG_FS host channel-0 characteristics register (OTG_FS_HCCHAR0) type FS_HCCHAR_Register is record -- Maximum packet size MPSIZ : FS_HCCHAR0_MPSIZ_Field := 16#0#; -- Endpoint number EPNUM : FS_HCCHAR0_EPNUM_Field := 16#0#; -- Endpoint direction EPDIR : FS_HCCHAR0_EPDIR_Field := 16#0#; -- unspecified Reserved_16_16 : STM32.Bit := 16#0#; -- Low-speed device LSDEV : FS_HCCHAR0_LSDEV_Field := 16#0#; -- Endpoint type EPTYP : FS_HCCHAR0_EPTYP_Field := 16#0#; -- Multicount MCNT : FS_HCCHAR0_MCNT_Field := 16#0#; -- Device address DAD : FS_HCCHAR0_DAD_Field := 16#0#; -- Odd frame ODDFRM : FS_HCCHAR0_ODDFRM_Field := 16#0#; -- Channel disable CHDIS : FS_HCCHAR0_CHDIS_Field := 16#0#; -- Channel enable CHENA : FS_HCCHAR0_CHENA_Field := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for FS_HCCHAR_Register use record MPSIZ at 0 range 0 .. 10; EPNUM at 0 range 11 .. 14; EPDIR at 0 range 15 .. 15; Reserved_16_16 at 0 range 16 .. 16; LSDEV at 0 range 17 .. 17; EPTYP at 0 range 18 .. 19; MCNT at 0 range 20 .. 21; DAD at 0 range 22 .. 28; ODDFRM at 0 range 29 .. 29; CHDIS at 0 range 30 .. 30; CHENA at 0 range 31 .. 31; end record; ----------------------- -- FS_HCINT_Register -- ----------------------- subtype FS_HCINT0_XFRC_Field is STM32.Bit; subtype FS_HCINT0_CHH_Field is STM32.Bit; subtype FS_HCINT0_STALL_Field is STM32.Bit; subtype FS_HCINT0_NAK_Field is STM32.Bit; subtype FS_HCINT0_ACK_Field is STM32.Bit; subtype FS_HCINT0_TXERR_Field is STM32.Bit; subtype FS_HCINT0_BBERR_Field is STM32.Bit; subtype FS_HCINT0_FRMOR_Field is STM32.Bit; subtype FS_HCINT0_DTERR_Field is STM32.Bit; -- OTG_FS host channel-0 interrupt register (OTG_FS_HCINT0) type FS_HCINT_Register is record -- Transfer completed XFRC : FS_HCINT0_XFRC_Field := 16#0#; -- Channel halted CHH : FS_HCINT0_CHH_Field := 16#0#; -- unspecified Reserved_2_2 : STM32.Bit := 16#0#; -- STALL response received interrupt STALL : FS_HCINT0_STALL_Field := 16#0#; -- NAK response received interrupt NAK : FS_HCINT0_NAK_Field := 16#0#; -- ACK response received/transmitted interrupt ACK : FS_HCINT0_ACK_Field := 16#0#; -- unspecified Reserved_6_6 : STM32.Bit := 16#0#; -- Transaction error TXERR : FS_HCINT0_TXERR_Field := 16#0#; -- Babble error BBERR : FS_HCINT0_BBERR_Field := 16#0#; -- Frame overrun FRMOR : FS_HCINT0_FRMOR_Field := 16#0#; -- Data toggle error DTERR : FS_HCINT0_DTERR_Field := 16#0#; -- unspecified Reserved_11_31 : STM32.UInt21 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for FS_HCINT_Register use record XFRC at 0 range 0 .. 0; CHH at 0 range 1 .. 1; Reserved_2_2 at 0 range 2 .. 2; STALL at 0 range 3 .. 3; NAK at 0 range 4 .. 4; ACK at 0 range 5 .. 5; Reserved_6_6 at 0 range 6 .. 6; TXERR at 0 range 7 .. 7; BBERR at 0 range 8 .. 8; FRMOR at 0 range 9 .. 9; DTERR at 0 range 10 .. 10; Reserved_11_31 at 0 range 11 .. 31; end record; -------------------------- -- FS_HCINTMSK_Register -- -------------------------- subtype FS_HCINTMSK0_XFRCM_Field is STM32.Bit; subtype FS_HCINTMSK0_CHHM_Field is STM32.Bit; subtype FS_HCINTMSK0_STALLM_Field is STM32.Bit; subtype FS_HCINTMSK0_NAKM_Field is STM32.Bit; subtype FS_HCINTMSK0_ACKM_Field is STM32.Bit; subtype FS_HCINTMSK0_NYET_Field is STM32.Bit; subtype FS_HCINTMSK0_TXERRM_Field is STM32.Bit; subtype FS_HCINTMSK0_BBERRM_Field is STM32.Bit; subtype FS_HCINTMSK0_FRMORM_Field is STM32.Bit; subtype FS_HCINTMSK0_DTERRM_Field is STM32.Bit; -- OTG_FS host channel-0 mask register (OTG_FS_HCINTMSK0) type FS_HCINTMSK_Register is record -- Transfer completed mask XFRCM : FS_HCINTMSK0_XFRCM_Field := 16#0#; -- Channel halted mask CHHM : FS_HCINTMSK0_CHHM_Field := 16#0#; -- unspecified Reserved_2_2 : STM32.Bit := 16#0#; -- STALL response received interrupt mask STALLM : FS_HCINTMSK0_STALLM_Field := 16#0#; -- NAK response received interrupt mask NAKM : FS_HCINTMSK0_NAKM_Field := 16#0#; -- ACK response received/transmitted interrupt mask ACKM : FS_HCINTMSK0_ACKM_Field := 16#0#; -- response received interrupt mask NYET : FS_HCINTMSK0_NYET_Field := 16#0#; -- Transaction error mask TXERRM : FS_HCINTMSK0_TXERRM_Field := 16#0#; -- Babble error mask BBERRM : FS_HCINTMSK0_BBERRM_Field := 16#0#; -- Frame overrun mask FRMORM : FS_HCINTMSK0_FRMORM_Field := 16#0#; -- Data toggle error mask DTERRM : FS_HCINTMSK0_DTERRM_Field := 16#0#; -- unspecified Reserved_11_31 : STM32.UInt21 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for FS_HCINTMSK_Register use record XFRCM at 0 range 0 .. 0; CHHM at 0 range 1 .. 1; Reserved_2_2 at 0 range 2 .. 2; STALLM at 0 range 3 .. 3; NAKM at 0 range 4 .. 4; ACKM at 0 range 5 .. 5; NYET at 0 range 6 .. 6; TXERRM at 0 range 7 .. 7; BBERRM at 0 range 8 .. 8; FRMORM at 0 range 9 .. 9; DTERRM at 0 range 10 .. 10; Reserved_11_31 at 0 range 11 .. 31; end record; ------------------------ -- FS_HCTSIZ_Register -- ------------------------ subtype FS_HCTSIZ0_XFRSIZ_Field is STM32.UInt19; subtype FS_HCTSIZ0_PKTCNT_Field is STM32.UInt10; subtype FS_HCTSIZ0_DPID_Field is STM32.UInt2; -- OTG_FS host channel-0 transfer size register type FS_HCTSIZ_Register is record -- Transfer size XFRSIZ : FS_HCTSIZ0_XFRSIZ_Field := 16#0#; -- Packet count PKTCNT : FS_HCTSIZ0_PKTCNT_Field := 16#0#; -- Data PID DPID : FS_HCTSIZ0_DPID_Field := 16#0#; -- unspecified Reserved_31_31 : STM32.Bit := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for FS_HCTSIZ_Register use record XFRSIZ at 0 range 0 .. 18; PKTCNT at 0 range 19 .. 28; DPID at 0 range 29 .. 30; Reserved_31_31 at 0 range 31 .. 31; end record; ---------------------- -- FS_DCFG_Register -- ---------------------- subtype FS_DCFG_DSPD_Field is STM32.UInt2; subtype FS_DCFG_NZLSOHSK_Field is STM32.Bit; subtype FS_DCFG_DAD_Field is STM32.UInt7; subtype FS_DCFG_PFIVL_Field is STM32.UInt2; -- OTG_FS device configuration register (OTG_FS_DCFG) type FS_DCFG_Register is record -- Device speed DSPD : FS_DCFG_DSPD_Field := 16#0#; -- Non-zero-length status OUT handshake NZLSOHSK : FS_DCFG_NZLSOHSK_Field := 16#0#; -- unspecified Reserved_3_3 : STM32.Bit := 16#0#; -- Device address DAD : FS_DCFG_DAD_Field := 16#0#; -- Periodic frame interval PFIVL : FS_DCFG_PFIVL_Field := 16#0#; -- unspecified Reserved_13_31 : STM32.UInt19 := 16#1100#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for FS_DCFG_Register use record DSPD at 0 range 0 .. 1; NZLSOHSK at 0 range 2 .. 2; Reserved_3_3 at 0 range 3 .. 3; DAD at 0 range 4 .. 10; PFIVL at 0 range 11 .. 12; Reserved_13_31 at 0 range 13 .. 31; end record; ---------------------- -- FS_DCTL_Register -- ---------------------- subtype FS_DCTL_RWUSIG_Field is STM32.Bit; subtype FS_DCTL_SDIS_Field is STM32.Bit; subtype FS_DCTL_GINSTS_Field is STM32.Bit; subtype FS_DCTL_GONSTS_Field is STM32.Bit; subtype FS_DCTL_TCTL_Field is STM32.UInt3; subtype FS_DCTL_SGINAK_Field is STM32.Bit; subtype FS_DCTL_CGINAK_Field is STM32.Bit; subtype FS_DCTL_SGONAK_Field is STM32.Bit; subtype FS_DCTL_CGONAK_Field is STM32.Bit; subtype FS_DCTL_POPRGDNE_Field is STM32.Bit; -- OTG_FS device control register (OTG_FS_DCTL) type FS_DCTL_Register is record -- Remote wakeup signaling RWUSIG : FS_DCTL_RWUSIG_Field := 16#0#; -- Soft disconnect SDIS : FS_DCTL_SDIS_Field := 16#0#; -- Read-only. Global IN NAK status GINSTS : FS_DCTL_GINSTS_Field := 16#0#; -- Read-only. Global OUT NAK status GONSTS : FS_DCTL_GONSTS_Field := 16#0#; -- Test control TCTL : FS_DCTL_TCTL_Field := 16#0#; -- Set global IN NAK SGINAK : FS_DCTL_SGINAK_Field := 16#0#; -- Clear global IN NAK CGINAK : FS_DCTL_CGINAK_Field := 16#0#; -- Set global OUT NAK SGONAK : FS_DCTL_SGONAK_Field := 16#0#; -- Clear global OUT NAK CGONAK : FS_DCTL_CGONAK_Field := 16#0#; -- Power-on programming done POPRGDNE : FS_DCTL_POPRGDNE_Field := 16#0#; -- unspecified Reserved_12_31 : STM32.UInt20 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for FS_DCTL_Register use record RWUSIG at 0 range 0 .. 0; SDIS at 0 range 1 .. 1; GINSTS at 0 range 2 .. 2; GONSTS at 0 range 3 .. 3; TCTL at 0 range 4 .. 6; SGINAK at 0 range 7 .. 7; CGINAK at 0 range 8 .. 8; SGONAK at 0 range 9 .. 9; CGONAK at 0 range 10 .. 10; POPRGDNE at 0 range 11 .. 11; Reserved_12_31 at 0 range 12 .. 31; end record; ---------------------- -- FS_DSTS_Register -- ---------------------- subtype FS_DSTS_SUSPSTS_Field is STM32.Bit; subtype FS_DSTS_ENUMSPD_Field is STM32.UInt2; subtype FS_DSTS_EERR_Field is STM32.Bit; subtype FS_DSTS_FNSOF_Field is STM32.UInt14; -- OTG_FS device status register (OTG_FS_DSTS) type FS_DSTS_Register is record -- Read-only. Suspend status SUSPSTS : FS_DSTS_SUSPSTS_Field; -- Read-only. Enumerated speed ENUMSPD : FS_DSTS_ENUMSPD_Field; -- Read-only. Erratic error EERR : FS_DSTS_EERR_Field; -- unspecified Reserved_4_7 : STM32.UInt4; -- Read-only. Frame number of the received SOF FNSOF : FS_DSTS_FNSOF_Field; -- unspecified Reserved_22_31 : STM32.UInt10; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for FS_DSTS_Register use record SUSPSTS at 0 range 0 .. 0; ENUMSPD at 0 range 1 .. 2; EERR at 0 range 3 .. 3; Reserved_4_7 at 0 range 4 .. 7; FNSOF at 0 range 8 .. 21; Reserved_22_31 at 0 range 22 .. 31; end record; ------------------------- -- FS_DIEPMSK_Register -- ------------------------- subtype FS_DIEPMSK_XFRCM_Field is STM32.Bit; subtype FS_DIEPMSK_EPDM_Field is STM32.Bit; subtype FS_DIEPMSK_TOM_Field is STM32.Bit; subtype FS_DIEPMSK_ITTXFEMSK_Field is STM32.Bit; subtype FS_DIEPMSK_INEPNMM_Field is STM32.Bit; subtype FS_DIEPMSK_INEPNEM_Field is STM32.Bit; -- OTG_FS device IN endpoint common interrupt mask register -- (OTG_FS_DIEPMSK) type FS_DIEPMSK_Register is record -- Transfer completed interrupt mask XFRCM : FS_DIEPMSK_XFRCM_Field := 16#0#; -- Endpoint disabled interrupt mask EPDM : FS_DIEPMSK_EPDM_Field := 16#0#; -- unspecified Reserved_2_2 : STM32.Bit := 16#0#; -- Timeout condition mask (Non-isochronous endpoints) TOM : FS_DIEPMSK_TOM_Field := 16#0#; -- IN token received when TxFIFO empty mask ITTXFEMSK : FS_DIEPMSK_ITTXFEMSK_Field := 16#0#; -- IN token received with EP mismatch mask INEPNMM : FS_DIEPMSK_INEPNMM_Field := 16#0#; -- IN endpoint NAK effective mask INEPNEM : FS_DIEPMSK_INEPNEM_Field := 16#0#; -- unspecified Reserved_7_31 : STM32.UInt25 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for FS_DIEPMSK_Register use record XFRCM at 0 range 0 .. 0; EPDM at 0 range 1 .. 1; Reserved_2_2 at 0 range 2 .. 2; TOM at 0 range 3 .. 3; ITTXFEMSK at 0 range 4 .. 4; INEPNMM at 0 range 5 .. 5; INEPNEM at 0 range 6 .. 6; Reserved_7_31 at 0 range 7 .. 31; end record; ------------------------- -- FS_DOEPMSK_Register -- ------------------------- subtype FS_DOEPMSK_XFRCM_Field is STM32.Bit; subtype FS_DOEPMSK_EPDM_Field is STM32.Bit; subtype FS_DOEPMSK_STUPM_Field is STM32.Bit; subtype FS_DOEPMSK_OTEPDM_Field is STM32.Bit; -- OTG_FS device OUT endpoint common interrupt mask register -- (OTG_FS_DOEPMSK) type FS_DOEPMSK_Register is record -- Transfer completed interrupt mask XFRCM : FS_DOEPMSK_XFRCM_Field := 16#0#; -- Endpoint disabled interrupt mask EPDM : FS_DOEPMSK_EPDM_Field := 16#0#; -- unspecified Reserved_2_2 : STM32.Bit := 16#0#; -- SETUP phase done mask STUPM : FS_DOEPMSK_STUPM_Field := 16#0#; -- OUT token received when endpoint disabled mask OTEPDM : FS_DOEPMSK_OTEPDM_Field := 16#0#; -- unspecified Reserved_5_31 : STM32.UInt27 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for FS_DOEPMSK_Register use record XFRCM at 0 range 0 .. 0; EPDM at 0 range 1 .. 1; Reserved_2_2 at 0 range 2 .. 2; STUPM at 0 range 3 .. 3; OTEPDM at 0 range 4 .. 4; Reserved_5_31 at 0 range 5 .. 31; end record; ----------------------- -- FS_DAINT_Register -- ----------------------- subtype FS_DAINT_IEPINT_Field is STM32.Short; subtype FS_DAINT_OEPINT_Field is STM32.Short; -- OTG_FS device all endpoints interrupt register (OTG_FS_DAINT) type FS_DAINT_Register is record -- Read-only. IN endpoint interrupt bits IEPINT : FS_DAINT_IEPINT_Field; -- Read-only. OUT endpoint interrupt bits OEPINT : FS_DAINT_OEPINT_Field; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for FS_DAINT_Register use record IEPINT at 0 range 0 .. 15; OEPINT at 0 range 16 .. 31; end record; -------------------------- -- FS_DAINTMSK_Register -- -------------------------- subtype FS_DAINTMSK_IEPM_Field is STM32.Short; subtype FS_DAINTMSK_OEPINT_Field is STM32.Short; -- OTG_FS all endpoints interrupt mask register (OTG_FS_DAINTMSK) type FS_DAINTMSK_Register is record -- IN EP interrupt mask bits IEPM : FS_DAINTMSK_IEPM_Field := 16#0#; -- OUT endpoint interrupt bits OEPINT : FS_DAINTMSK_OEPINT_Field := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for FS_DAINTMSK_Register use record IEPM at 0 range 0 .. 15; OEPINT at 0 range 16 .. 31; end record; ----------------------- -- DVBUSDIS_Register -- ----------------------- subtype DVBUSDIS_VBUSDT_Field is STM32.Short; -- OTG_FS device VBUS discharge time register type DVBUSDIS_Register is record -- Device VBUS discharge time VBUSDT : DVBUSDIS_VBUSDT_Field := 16#17D7#; -- unspecified Reserved_16_31 : STM32.Short := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for DVBUSDIS_Register use record VBUSDT at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; ------------------------- -- DVBUSPULSE_Register -- ------------------------- subtype DVBUSPULSE_DVBUSP_Field is STM32.UInt12; -- OTG_FS device VBUS pulsing time register type DVBUSPULSE_Register is record -- Device VBUS pulsing time DVBUSP : DVBUSPULSE_DVBUSP_Field := 16#5B8#; -- unspecified Reserved_12_31 : STM32.UInt20 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for DVBUSPULSE_Register use record DVBUSP at 0 range 0 .. 11; Reserved_12_31 at 0 range 12 .. 31; end record; ------------------------- -- DIEPEMPMSK_Register -- ------------------------- subtype DIEPEMPMSK_INEPTXFEM_Field is STM32.Short; -- OTG_FS device IN endpoint FIFO empty interrupt mask register type DIEPEMPMSK_Register is record -- IN EP Tx FIFO empty interrupt mask bits INEPTXFEM : DIEPEMPMSK_INEPTXFEM_Field := 16#0#; -- unspecified Reserved_16_31 : STM32.Short := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for DIEPEMPMSK_Register use record INEPTXFEM at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; -------------------------- -- FS_DIEPCTL0_Register -- -------------------------- subtype FS_DIEPCTL0_MPSIZ_Field is STM32.UInt2; subtype FS_DIEPCTL0_USBAEP_Field is STM32.Bit; subtype FS_DIEPCTL0_NAKSTS_Field is STM32.Bit; subtype FS_DIEPCTL0_EPTYP_Field is STM32.UInt2; subtype FS_DIEPCTL0_STALL_Field is STM32.Bit; subtype FS_DIEPCTL0_TXFNUM_Field is STM32.UInt4; subtype FS_DIEPCTL0_CNAK_Field is STM32.Bit; subtype FS_DIEPCTL0_SNAK_Field is STM32.Bit; subtype FS_DIEPCTL0_EPDIS_Field is STM32.Bit; subtype FS_DIEPCTL0_EPENA_Field is STM32.Bit; -- OTG_FS device control IN endpoint 0 control register (OTG_FS_DIEPCTL0) type FS_DIEPCTL0_Register is record -- Maximum packet size MPSIZ : FS_DIEPCTL0_MPSIZ_Field := 16#0#; -- unspecified Reserved_2_14 : STM32.UInt13 := 16#0#; -- Read-only. USB active endpoint USBAEP : FS_DIEPCTL0_USBAEP_Field := 16#0#; -- unspecified Reserved_16_16 : STM32.Bit := 16#0#; -- Read-only. NAK status NAKSTS : FS_DIEPCTL0_NAKSTS_Field := 16#0#; -- Read-only. Endpoint type EPTYP : FS_DIEPCTL0_EPTYP_Field := 16#0#; -- unspecified Reserved_20_20 : STM32.Bit := 16#0#; -- STALL handshake STALL : FS_DIEPCTL0_STALL_Field := 16#0#; -- TxFIFO number TXFNUM : FS_DIEPCTL0_TXFNUM_Field := 16#0#; -- Write-only. Clear NAK CNAK : FS_DIEPCTL0_CNAK_Field := 16#0#; -- Write-only. Set NAK SNAK : FS_DIEPCTL0_SNAK_Field := 16#0#; -- unspecified Reserved_28_29 : STM32.UInt2 := 16#0#; -- Read-only. Endpoint disable EPDIS : FS_DIEPCTL0_EPDIS_Field := 16#0#; -- Read-only. Endpoint enable EPENA : FS_DIEPCTL0_EPENA_Field := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for FS_DIEPCTL0_Register use record MPSIZ at 0 range 0 .. 1; Reserved_2_14 at 0 range 2 .. 14; USBAEP at 0 range 15 .. 15; Reserved_16_16 at 0 range 16 .. 16; NAKSTS at 0 range 17 .. 17; EPTYP at 0 range 18 .. 19; Reserved_20_20 at 0 range 20 .. 20; STALL at 0 range 21 .. 21; TXFNUM at 0 range 22 .. 25; CNAK at 0 range 26 .. 26; SNAK at 0 range 27 .. 27; Reserved_28_29 at 0 range 28 .. 29; EPDIS at 0 range 30 .. 30; EPENA at 0 range 31 .. 31; end record; ---------------------- -- DIEPINT_Register -- ---------------------- subtype DIEPINT0_XFRC_Field is STM32.Bit; subtype DIEPINT0_EPDISD_Field is STM32.Bit; subtype DIEPINT0_TOC_Field is STM32.Bit; subtype DIEPINT0_ITTXFE_Field is STM32.Bit; subtype DIEPINT0_INEPNE_Field is STM32.Bit; subtype DIEPINT0_TXFE_Field is STM32.Bit; -- device endpoint-x interrupt register type DIEPINT_Register is record -- XFRC XFRC : DIEPINT0_XFRC_Field := 16#0#; -- EPDISD EPDISD : DIEPINT0_EPDISD_Field := 16#0#; -- unspecified Reserved_2_2 : STM32.Bit := 16#0#; -- TOC TOC : DIEPINT0_TOC_Field := 16#0#; -- ITTXFE ITTXFE : DIEPINT0_ITTXFE_Field := 16#0#; -- unspecified Reserved_5_5 : STM32.Bit := 16#0#; -- INEPNE INEPNE : DIEPINT0_INEPNE_Field := 16#0#; -- Read-only. TXFE TXFE : DIEPINT0_TXFE_Field := 16#1#; -- unspecified Reserved_8_31 : STM32.UInt24 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for DIEPINT_Register use record XFRC at 0 range 0 .. 0; EPDISD at 0 range 1 .. 1; Reserved_2_2 at 0 range 2 .. 2; TOC at 0 range 3 .. 3; ITTXFE at 0 range 4 .. 4; Reserved_5_5 at 0 range 5 .. 5; INEPNE at 0 range 6 .. 6; TXFE at 0 range 7 .. 7; Reserved_8_31 at 0 range 8 .. 31; end record; ------------------------ -- DIEPTSIZ0_Register -- ------------------------ subtype DIEPTSIZ0_XFRSIZ_Field is STM32.UInt7; subtype DIEPTSIZ0_PKTCNT_Field is STM32.UInt2; -- device endpoint-0 transfer size register type DIEPTSIZ0_Register is record -- Transfer size XFRSIZ : DIEPTSIZ0_XFRSIZ_Field := 16#0#; -- unspecified Reserved_7_18 : STM32.UInt12 := 16#0#; -- Packet count PKTCNT : DIEPTSIZ0_PKTCNT_Field := 16#0#; -- unspecified Reserved_21_31 : STM32.UInt11 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for DIEPTSIZ0_Register use record XFRSIZ at 0 range 0 .. 6; Reserved_7_18 at 0 range 7 .. 18; PKTCNT at 0 range 19 .. 20; Reserved_21_31 at 0 range 21 .. 31; end record; ---------------------- -- DTXFSTS_Register -- ---------------------- subtype DTXFSTS0_INEPTFSAV_Field is STM32.Short; -- OTG_FS device IN endpoint transmit FIFO status register type DTXFSTS_Register is record -- Read-only. IN endpoint TxFIFO space available INEPTFSAV : DTXFSTS0_INEPTFSAV_Field; -- unspecified Reserved_16_31 : STM32.Short; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for DTXFSTS_Register use record INEPTFSAV at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; ----------------------- -- DIEPCTL1_Register -- ----------------------- subtype DIEPCTL1_MPSIZ_Field is STM32.UInt11; subtype DIEPCTL1_USBAEP_Field is STM32.Bit; subtype DIEPCTL1_EONUM_DPID_Field is STM32.Bit; subtype DIEPCTL1_NAKSTS_Field is STM32.Bit; subtype DIEPCTL1_EPTYP_Field is STM32.UInt2; subtype DIEPCTL1_Stall_Field is STM32.Bit; subtype DIEPCTL1_TXFNUM_Field is STM32.UInt4; subtype DIEPCTL1_CNAK_Field is STM32.Bit; subtype DIEPCTL1_SNAK_Field is STM32.Bit; subtype DIEPCTL1_SD0PID_SEVNFRM_Field is STM32.Bit; subtype DIEPCTL1_SODDFRM_SD1PID_Field is STM32.Bit; subtype DIEPCTL1_EPDIS_Field is STM32.Bit; subtype DIEPCTL1_EPENA_Field is STM32.Bit; -- OTG device endpoint-1 control register type DIEPCTL1_Register is record -- MPSIZ MPSIZ : DIEPCTL1_MPSIZ_Field := 16#0#; -- unspecified Reserved_11_14 : STM32.UInt4 := 16#0#; -- USBAEP USBAEP : DIEPCTL1_USBAEP_Field := 16#0#; -- Read-only. EONUM/DPID EONUM_DPID : DIEPCTL1_EONUM_DPID_Field := 16#0#; -- Read-only. NAKSTS NAKSTS : DIEPCTL1_NAKSTS_Field := 16#0#; -- EPTYP EPTYP : DIEPCTL1_EPTYP_Field := 16#0#; -- unspecified Reserved_20_20 : STM32.Bit := 16#0#; -- Stall Stall : DIEPCTL1_Stall_Field := 16#0#; -- TXFNUM TXFNUM : DIEPCTL1_TXFNUM_Field := 16#0#; -- Write-only. CNAK CNAK : DIEPCTL1_CNAK_Field := 16#0#; -- Write-only. SNAK SNAK : DIEPCTL1_SNAK_Field := 16#0#; -- Write-only. SD0PID/SEVNFRM SD0PID_SEVNFRM : DIEPCTL1_SD0PID_SEVNFRM_Field := 16#0#; -- Write-only. SODDFRM/SD1PID SODDFRM_SD1PID : DIEPCTL1_SODDFRM_SD1PID_Field := 16#0#; -- EPDIS EPDIS : DIEPCTL1_EPDIS_Field := 16#0#; -- EPENA EPENA : DIEPCTL1_EPENA_Field := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for DIEPCTL1_Register use record MPSIZ at 0 range 0 .. 10; Reserved_11_14 at 0 range 11 .. 14; USBAEP at 0 range 15 .. 15; EONUM_DPID at 0 range 16 .. 16; NAKSTS at 0 range 17 .. 17; EPTYP at 0 range 18 .. 19; Reserved_20_20 at 0 range 20 .. 20; Stall at 0 range 21 .. 21; TXFNUM at 0 range 22 .. 25; CNAK at 0 range 26 .. 26; SNAK at 0 range 27 .. 27; SD0PID_SEVNFRM at 0 range 28 .. 28; SODDFRM_SD1PID at 0 range 29 .. 29; EPDIS at 0 range 30 .. 30; EPENA at 0 range 31 .. 31; end record; ----------------------- -- DIEPTSIZ_Register -- ----------------------- subtype DIEPTSIZ1_XFRSIZ_Field is STM32.UInt19; subtype DIEPTSIZ1_PKTCNT_Field is STM32.UInt10; subtype DIEPTSIZ1_MCNT_Field is STM32.UInt2; -- device endpoint-1 transfer size register type DIEPTSIZ_Register is record -- Transfer size XFRSIZ : DIEPTSIZ1_XFRSIZ_Field := 16#0#; -- Packet count PKTCNT : DIEPTSIZ1_PKTCNT_Field := 16#0#; -- Multi count MCNT : DIEPTSIZ1_MCNT_Field := 16#0#; -- unspecified Reserved_31_31 : STM32.Bit := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for DIEPTSIZ_Register use record XFRSIZ at 0 range 0 .. 18; PKTCNT at 0 range 19 .. 28; MCNT at 0 range 29 .. 30; Reserved_31_31 at 0 range 31 .. 31; end record; ---------------------- -- DIEPCTL_Register -- ---------------------- subtype DIEPCTL2_MPSIZ_Field is STM32.UInt11; subtype DIEPCTL2_USBAEP_Field is STM32.Bit; subtype DIEPCTL2_EONUM_DPID_Field is STM32.Bit; subtype DIEPCTL2_NAKSTS_Field is STM32.Bit; subtype DIEPCTL2_EPTYP_Field is STM32.UInt2; subtype DIEPCTL2_Stall_Field is STM32.Bit; subtype DIEPCTL2_TXFNUM_Field is STM32.UInt4; subtype DIEPCTL2_CNAK_Field is STM32.Bit; subtype DIEPCTL2_SNAK_Field is STM32.Bit; subtype DIEPCTL2_SD0PID_SEVNFRM_Field is STM32.Bit; subtype DIEPCTL2_SODDFRM_Field is STM32.Bit; subtype DIEPCTL2_EPDIS_Field is STM32.Bit; subtype DIEPCTL2_EPENA_Field is STM32.Bit; -- OTG device endpoint-2 control register type DIEPCTL_Register is record -- MPSIZ MPSIZ : DIEPCTL2_MPSIZ_Field := 16#0#; -- unspecified Reserved_11_14 : STM32.UInt4 := 16#0#; -- USBAEP USBAEP : DIEPCTL2_USBAEP_Field := 16#0#; -- Read-only. EONUM/DPID EONUM_DPID : DIEPCTL2_EONUM_DPID_Field := 16#0#; -- Read-only. NAKSTS NAKSTS : DIEPCTL2_NAKSTS_Field := 16#0#; -- EPTYP EPTYP : DIEPCTL2_EPTYP_Field := 16#0#; -- unspecified Reserved_20_20 : STM32.Bit := 16#0#; -- Stall Stall : DIEPCTL2_Stall_Field := 16#0#; -- TXFNUM TXFNUM : DIEPCTL2_TXFNUM_Field := 16#0#; -- Write-only. CNAK CNAK : DIEPCTL2_CNAK_Field := 16#0#; -- Write-only. SNAK SNAK : DIEPCTL2_SNAK_Field := 16#0#; -- Write-only. SD0PID/SEVNFRM SD0PID_SEVNFRM : DIEPCTL2_SD0PID_SEVNFRM_Field := 16#0#; -- Write-only. SODDFRM SODDFRM : DIEPCTL2_SODDFRM_Field := 16#0#; -- EPDIS EPDIS : DIEPCTL2_EPDIS_Field := 16#0#; -- EPENA EPENA : DIEPCTL2_EPENA_Field := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for DIEPCTL_Register use record MPSIZ at 0 range 0 .. 10; Reserved_11_14 at 0 range 11 .. 14; USBAEP at 0 range 15 .. 15; EONUM_DPID at 0 range 16 .. 16; NAKSTS at 0 range 17 .. 17; EPTYP at 0 range 18 .. 19; Reserved_20_20 at 0 range 20 .. 20; Stall at 0 range 21 .. 21; TXFNUM at 0 range 22 .. 25; CNAK at 0 range 26 .. 26; SNAK at 0 range 27 .. 27; SD0PID_SEVNFRM at 0 range 28 .. 28; SODDFRM at 0 range 29 .. 29; EPDIS at 0 range 30 .. 30; EPENA at 0 range 31 .. 31; end record; ----------------------- -- DOEPCTL0_Register -- ----------------------- subtype DOEPCTL0_MPSIZ_Field is STM32.UInt2; subtype DOEPCTL0_USBAEP_Field is STM32.Bit; subtype DOEPCTL0_NAKSTS_Field is STM32.Bit; subtype DOEPCTL0_EPTYP_Field is STM32.UInt2; subtype DOEPCTL0_SNPM_Field is STM32.Bit; subtype DOEPCTL0_Stall_Field is STM32.Bit; subtype DOEPCTL0_CNAK_Field is STM32.Bit; subtype DOEPCTL0_SNAK_Field is STM32.Bit; subtype DOEPCTL0_EPDIS_Field is STM32.Bit; subtype DOEPCTL0_EPENA_Field is STM32.Bit; -- device endpoint-0 control register type DOEPCTL0_Register is record -- Read-only. MPSIZ MPSIZ : DOEPCTL0_MPSIZ_Field := 16#0#; -- unspecified Reserved_2_14 : STM32.UInt13 := 16#0#; -- Read-only. USBAEP USBAEP : DOEPCTL0_USBAEP_Field := 16#1#; -- unspecified Reserved_16_16 : STM32.Bit := 16#0#; -- Read-only. NAKSTS NAKSTS : DOEPCTL0_NAKSTS_Field := 16#0#; -- Read-only. EPTYP EPTYP : DOEPCTL0_EPTYP_Field := 16#0#; -- SNPM SNPM : DOEPCTL0_SNPM_Field := 16#0#; -- Stall Stall : DOEPCTL0_Stall_Field := 16#0#; -- unspecified Reserved_22_25 : STM32.UInt4 := 16#0#; -- Write-only. CNAK CNAK : DOEPCTL0_CNAK_Field := 16#0#; -- Write-only. SNAK SNAK : DOEPCTL0_SNAK_Field := 16#0#; -- unspecified Reserved_28_29 : STM32.UInt2 := 16#0#; -- Read-only. EPDIS EPDIS : DOEPCTL0_EPDIS_Field := 16#0#; -- Write-only. EPENA EPENA : DOEPCTL0_EPENA_Field := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for DOEPCTL0_Register use record MPSIZ at 0 range 0 .. 1; Reserved_2_14 at 0 range 2 .. 14; USBAEP at 0 range 15 .. 15; Reserved_16_16 at 0 range 16 .. 16; NAKSTS at 0 range 17 .. 17; EPTYP at 0 range 18 .. 19; SNPM at 0 range 20 .. 20; Stall at 0 range 21 .. 21; Reserved_22_25 at 0 range 22 .. 25; CNAK at 0 range 26 .. 26; SNAK at 0 range 27 .. 27; Reserved_28_29 at 0 range 28 .. 29; EPDIS at 0 range 30 .. 30; EPENA at 0 range 31 .. 31; end record; ---------------------- -- DOEPINT_Register -- ---------------------- subtype DOEPINT0_XFRC_Field is STM32.Bit; subtype DOEPINT0_EPDISD_Field is STM32.Bit; subtype DOEPINT0_STUP_Field is STM32.Bit; subtype DOEPINT0_OTEPDIS_Field is STM32.Bit; subtype DOEPINT0_B2BSTUP_Field is STM32.Bit; -- device endpoint-0 interrupt register type DOEPINT_Register is record -- XFRC XFRC : DOEPINT0_XFRC_Field := 16#0#; -- EPDISD EPDISD : DOEPINT0_EPDISD_Field := 16#0#; -- unspecified Reserved_2_2 : STM32.Bit := 16#0#; -- STUP STUP : DOEPINT0_STUP_Field := 16#0#; -- OTEPDIS OTEPDIS : DOEPINT0_OTEPDIS_Field := 16#0#; -- unspecified Reserved_5_5 : STM32.Bit := 16#0#; -- B2BSTUP B2BSTUP : DOEPINT0_B2BSTUP_Field := 16#0#; -- unspecified Reserved_7_31 : STM32.UInt25 := 16#1#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for DOEPINT_Register use record XFRC at 0 range 0 .. 0; EPDISD at 0 range 1 .. 1; Reserved_2_2 at 0 range 2 .. 2; STUP at 0 range 3 .. 3; OTEPDIS at 0 range 4 .. 4; Reserved_5_5 at 0 range 5 .. 5; B2BSTUP at 0 range 6 .. 6; Reserved_7_31 at 0 range 7 .. 31; end record; ------------------------ -- DOEPTSIZ0_Register -- ------------------------ subtype DOEPTSIZ0_XFRSIZ_Field is STM32.UInt7; subtype DOEPTSIZ0_PKTCNT_Field is STM32.Bit; subtype DOEPTSIZ0_STUPCNT_Field is STM32.UInt2; -- device OUT endpoint-0 transfer size register type DOEPTSIZ0_Register is record -- Transfer size XFRSIZ : DOEPTSIZ0_XFRSIZ_Field := 16#0#; -- unspecified Reserved_7_18 : STM32.UInt12 := 16#0#; -- Packet count PKTCNT : DOEPTSIZ0_PKTCNT_Field := 16#0#; -- unspecified Reserved_20_28 : STM32.UInt9 := 16#0#; -- SETUP packet count STUPCNT : DOEPTSIZ0_STUPCNT_Field := 16#0#; -- unspecified Reserved_31_31 : STM32.Bit := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for DOEPTSIZ0_Register use record XFRSIZ at 0 range 0 .. 6; Reserved_7_18 at 0 range 7 .. 18; PKTCNT at 0 range 19 .. 19; Reserved_20_28 at 0 range 20 .. 28; STUPCNT at 0 range 29 .. 30; Reserved_31_31 at 0 range 31 .. 31; end record; ---------------------- -- DOEPCTL_Register -- ---------------------- subtype DOEPCTL1_MPSIZ_Field is STM32.UInt11; subtype DOEPCTL1_USBAEP_Field is STM32.Bit; subtype DOEPCTL1_EONUM_DPID_Field is STM32.Bit; subtype DOEPCTL1_NAKSTS_Field is STM32.Bit; subtype DOEPCTL1_EPTYP_Field is STM32.UInt2; subtype DOEPCTL1_SNPM_Field is STM32.Bit; subtype DOEPCTL1_Stall_Field is STM32.Bit; subtype DOEPCTL1_CNAK_Field is STM32.Bit; subtype DOEPCTL1_SNAK_Field is STM32.Bit; subtype DOEPCTL1_SD0PID_SEVNFRM_Field is STM32.Bit; subtype DOEPCTL1_SODDFRM_Field is STM32.Bit; subtype DOEPCTL1_EPDIS_Field is STM32.Bit; subtype DOEPCTL1_EPENA_Field is STM32.Bit; -- device endpoint-1 control register type DOEPCTL_Register is record -- MPSIZ MPSIZ : DOEPCTL1_MPSIZ_Field := 16#0#; -- unspecified Reserved_11_14 : STM32.UInt4 := 16#0#; -- USBAEP USBAEP : DOEPCTL1_USBAEP_Field := 16#0#; -- Read-only. EONUM/DPID EONUM_DPID : DOEPCTL1_EONUM_DPID_Field := 16#0#; -- Read-only. NAKSTS NAKSTS : DOEPCTL1_NAKSTS_Field := 16#0#; -- EPTYP EPTYP : DOEPCTL1_EPTYP_Field := 16#0#; -- SNPM SNPM : DOEPCTL1_SNPM_Field := 16#0#; -- Stall Stall : DOEPCTL1_Stall_Field := 16#0#; -- unspecified Reserved_22_25 : STM32.UInt4 := 16#0#; -- Write-only. CNAK CNAK : DOEPCTL1_CNAK_Field := 16#0#; -- Write-only. SNAK SNAK : DOEPCTL1_SNAK_Field := 16#0#; -- Write-only. SD0PID/SEVNFRM SD0PID_SEVNFRM : DOEPCTL1_SD0PID_SEVNFRM_Field := 16#0#; -- Write-only. SODDFRM SODDFRM : DOEPCTL1_SODDFRM_Field := 16#0#; -- EPDIS EPDIS : DOEPCTL1_EPDIS_Field := 16#0#; -- EPENA EPENA : DOEPCTL1_EPENA_Field := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for DOEPCTL_Register use record MPSIZ at 0 range 0 .. 10; Reserved_11_14 at 0 range 11 .. 14; USBAEP at 0 range 15 .. 15; EONUM_DPID at 0 range 16 .. 16; NAKSTS at 0 range 17 .. 17; EPTYP at 0 range 18 .. 19; SNPM at 0 range 20 .. 20; Stall at 0 range 21 .. 21; Reserved_22_25 at 0 range 22 .. 25; CNAK at 0 range 26 .. 26; SNAK at 0 range 27 .. 27; SD0PID_SEVNFRM at 0 range 28 .. 28; SODDFRM at 0 range 29 .. 29; EPDIS at 0 range 30 .. 30; EPENA at 0 range 31 .. 31; end record; ----------------------- -- DOEPTSIZ_Register -- ----------------------- subtype DOEPTSIZ1_XFRSIZ_Field is STM32.UInt19; subtype DOEPTSIZ1_PKTCNT_Field is STM32.UInt10; subtype DOEPTSIZ1_RXDPID_STUPCNT_Field is STM32.UInt2; -- device OUT endpoint-1 transfer size register type DOEPTSIZ_Register is record -- Transfer size XFRSIZ : DOEPTSIZ1_XFRSIZ_Field := 16#0#; -- Packet count PKTCNT : DOEPTSIZ1_PKTCNT_Field := 16#0#; -- Received data PID/SETUP packet count RXDPID_STUPCNT : DOEPTSIZ1_RXDPID_STUPCNT_Field := 16#0#; -- unspecified Reserved_31_31 : STM32.Bit := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for DOEPTSIZ_Register use record XFRSIZ at 0 range 0 .. 18; PKTCNT at 0 range 19 .. 28; RXDPID_STUPCNT at 0 range 29 .. 30; Reserved_31_31 at 0 range 31 .. 31; end record; ------------------------- -- FS_PCGCCTL_Register -- ------------------------- subtype FS_PCGCCTL_STPPCLK_Field is STM32.Bit; subtype FS_PCGCCTL_GATEHCLK_Field is STM32.Bit; subtype FS_PCGCCTL_PHYSUSP_Field is STM32.Bit; -- OTG_FS power and clock gating control register (OTG_FS_PCGCCTL) type FS_PCGCCTL_Register is record -- Stop PHY clock STPPCLK : FS_PCGCCTL_STPPCLK_Field := 16#0#; -- Gate HCLK GATEHCLK : FS_PCGCCTL_GATEHCLK_Field := 16#0#; -- unspecified Reserved_2_3 : STM32.UInt2 := 16#0#; -- PHY Suspended PHYSUSP : FS_PCGCCTL_PHYSUSP_Field := 16#0#; -- unspecified Reserved_5_31 : STM32.UInt27 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for FS_PCGCCTL_Register use record STPPCLK at 0 range 0 .. 0; GATEHCLK at 0 range 1 .. 1; Reserved_2_3 at 0 range 2 .. 3; PHYSUSP at 0 range 4 .. 4; Reserved_5_31 at 0 range 5 .. 31; end record; ----------------- -- Peripherals -- ----------------- type USB_OTG_GLOBAL_Disc is ( Device, Host); -- USB on the go full speed type USB_OTG_GLOBAL_Peripheral (Discriminent : USB_OTG_GLOBAL_Disc := Device) is record -- OTG_FS control and status register (OTG_FS_GOTGCTL) FS_GOTGCTL : FS_GOTGCTL_Register; -- OTG_FS interrupt register (OTG_FS_GOTGINT) FS_GOTGINT : FS_GOTGINT_Register; -- OTG_FS AHB configuration register (OTG_FS_GAHBCFG) FS_GAHBCFG : FS_GAHBCFG_Register; -- OTG_FS USB configuration register (OTG_FS_GUSBCFG) FS_GUSBCFG : FS_GUSBCFG_Register; -- OTG_FS reset register (OTG_FS_GRSTCTL) FS_GRSTCTL : FS_GRSTCTL_Register; -- OTG_FS core interrupt register (OTG_FS_GINTSTS) FS_GINTSTS : FS_GINTSTS_Register; -- OTG_FS interrupt mask register (OTG_FS_GINTMSK) FS_GINTMSK : FS_GINTMSK_Register; -- OTG_FS Receive FIFO size register (OTG_FS_GRXFSIZ) FS_GRXFSIZ : FS_GRXFSIZ_Register; -- OTG_FS non-periodic transmit FIFO/queue status register -- (OTG_FS_GNPTXSTS) FS_GNPTXSTS : FS_GNPTXSTS_Register; -- OTG_FS general core configuration register (OTG_FS_GCCFG) FS_GCCFG : FS_GCCFG_Register; -- core ID register FS_CID : STM32.Word; -- OTG_FS Host periodic transmit FIFO size register (OTG_FS_HPTXFSIZ) FS_HPTXFSIZ : FS_HPTXFSIZ_Register; -- OTG_FS device IN endpoint transmit FIFO size register -- (OTG_FS_DIEPTXF2) FS_DIEPTXF1 : FS_DIEPTXF_Register; -- OTG_FS device IN endpoint transmit FIFO size register -- (OTG_FS_DIEPTXF3) FS_DIEPTXF2 : FS_DIEPTXF_Register; -- OTG_FS device IN endpoint transmit FIFO size register -- (OTG_FS_DIEPTXF4) FS_DIEPTXF3 : FS_DIEPTXF_Register; case Discriminent is when Device => -- OTG_FS Receive status debug read(Device mode) FS_GRXSTSR_Device : FS_GRXSTSR_Device_Register; -- OTG_FS non-periodic transmit FIFO size register (Device mode) FS_GNPTXFSIZ_Device : FS_GNPTXFSIZ_Device_Register; when Host => -- OTG_FS Receive status debug read(Host mode) FS_GRXSTSR_Host : FS_GRXSTSR_Host_Register; -- OTG_FS non-periodic transmit FIFO size register (Host mode) FS_GNPTXFSIZ_Host : FS_GNPTXFSIZ_Host_Register; end case; end record with Unchecked_Union, Volatile; for USB_OTG_GLOBAL_Peripheral use record FS_GOTGCTL at 0 range 0 .. 31; FS_GOTGINT at 4 range 0 .. 31; FS_GAHBCFG at 8 range 0 .. 31; FS_GUSBCFG at 12 range 0 .. 31; FS_GRSTCTL at 16 range 0 .. 31; FS_GINTSTS at 20 range 0 .. 31; FS_GINTMSK at 24 range 0 .. 31; FS_GRXFSIZ at 36 range 0 .. 31; FS_GNPTXSTS at 44 range 0 .. 31; FS_GCCFG at 56 range 0 .. 31; FS_CID at 60 range 0 .. 31; FS_HPTXFSIZ at 256 range 0 .. 31; FS_DIEPTXF1 at 260 range 0 .. 31; FS_DIEPTXF2 at 264 range 0 .. 31; FS_DIEPTXF3 at 268 range 0 .. 31; FS_GRXSTSR_Device at 28 range 0 .. 31; FS_GNPTXFSIZ_Device at 40 range 0 .. 31; FS_GRXSTSR_Host at 28 range 0 .. 31; FS_GNPTXFSIZ_Host at 40 range 0 .. 31; end record; -- USB on the go full speed USB_OTG_GLOBAL_Periph : aliased USB_OTG_GLOBAL_Peripheral with Import, Address => USB_OTG_GLOBAL_Base; -- USB on the go full speed type USB_OTG_HOST_Peripheral is record -- OTG_FS host configuration register (OTG_FS_HCFG) FS_HCFG : FS_HCFG_Register; -- OTG_FS Host frame interval register HFIR : HFIR_Register; -- OTG_FS host frame number/frame time remaining register (OTG_FS_HFNUM) FS_HFNUM : FS_HFNUM_Register; -- OTG_FS_Host periodic transmit FIFO/queue status register -- (OTG_FS_HPTXSTS) FS_HPTXSTS : FS_HPTXSTS_Register; -- OTG_FS Host all channels interrupt register HAINT : HAINT_Register; -- OTG_FS host all channels interrupt mask register HAINTMSK : HAINTMSK_Register; -- OTG_FS host port control and status register (OTG_FS_HPRT) FS_HPRT : FS_HPRT_Register; -- OTG_FS host channel-0 characteristics register (OTG_FS_HCCHAR0) FS_HCCHAR0 : FS_HCCHAR_Register; -- OTG_FS host channel-0 interrupt register (OTG_FS_HCINT0) FS_HCINT0 : FS_HCINT_Register; -- OTG_FS host channel-0 mask register (OTG_FS_HCINTMSK0) FS_HCINTMSK0 : FS_HCINTMSK_Register; -- OTG_FS host channel-0 transfer size register FS_HCTSIZ0 : FS_HCTSIZ_Register; -- OTG_FS host channel-1 characteristics register (OTG_FS_HCCHAR1) FS_HCCHAR1 : FS_HCCHAR_Register; -- OTG_FS host channel-1 interrupt register (OTG_FS_HCINT1) FS_HCINT1 : FS_HCINT_Register; -- OTG_FS host channel-1 mask register (OTG_FS_HCINTMSK1) FS_HCINTMSK1 : FS_HCINTMSK_Register; -- OTG_FS host channel-1 transfer size register FS_HCTSIZ1 : FS_HCTSIZ_Register; -- OTG_FS host channel-2 characteristics register (OTG_FS_HCCHAR2) FS_HCCHAR2 : FS_HCCHAR_Register; -- OTG_FS host channel-2 interrupt register (OTG_FS_HCINT2) FS_HCINT2 : FS_HCINT_Register; -- OTG_FS host channel-2 mask register (OTG_FS_HCINTMSK2) FS_HCINTMSK2 : FS_HCINTMSK_Register; -- OTG_FS host channel-2 transfer size register FS_HCTSIZ2 : FS_HCTSIZ_Register; -- OTG_FS host channel-3 characteristics register (OTG_FS_HCCHAR3) FS_HCCHAR3 : FS_HCCHAR_Register; -- OTG_FS host channel-3 interrupt register (OTG_FS_HCINT3) FS_HCINT3 : FS_HCINT_Register; -- OTG_FS host channel-3 mask register (OTG_FS_HCINTMSK3) FS_HCINTMSK3 : FS_HCINTMSK_Register; -- OTG_FS host channel-3 transfer size register FS_HCTSIZ3 : FS_HCTSIZ_Register; -- OTG_FS host channel-4 characteristics register (OTG_FS_HCCHAR4) FS_HCCHAR4 : FS_HCCHAR_Register; -- OTG_FS host channel-4 interrupt register (OTG_FS_HCINT4) FS_HCINT4 : FS_HCINT_Register; -- OTG_FS host channel-4 mask register (OTG_FS_HCINTMSK4) FS_HCINTMSK4 : FS_HCINTMSK_Register; -- OTG_FS host channel-x transfer size register FS_HCTSIZ4 : FS_HCTSIZ_Register; -- OTG_FS host channel-5 characteristics register (OTG_FS_HCCHAR5) FS_HCCHAR5 : FS_HCCHAR_Register; -- OTG_FS host channel-5 interrupt register (OTG_FS_HCINT5) FS_HCINT5 : FS_HCINT_Register; -- OTG_FS host channel-5 mask register (OTG_FS_HCINTMSK5) FS_HCINTMSK5 : FS_HCINTMSK_Register; -- OTG_FS host channel-5 transfer size register FS_HCTSIZ5 : FS_HCTSIZ_Register; -- OTG_FS host channel-6 characteristics register (OTG_FS_HCCHAR6) FS_HCCHAR6 : FS_HCCHAR_Register; -- OTG_FS host channel-6 interrupt register (OTG_FS_HCINT6) FS_HCINT6 : FS_HCINT_Register; -- OTG_FS host channel-6 mask register (OTG_FS_HCINTMSK6) FS_HCINTMSK6 : FS_HCINTMSK_Register; -- OTG_FS host channel-6 transfer size register FS_HCTSIZ6 : FS_HCTSIZ_Register; -- OTG_FS host channel-7 characteristics register (OTG_FS_HCCHAR7) FS_HCCHAR7 : FS_HCCHAR_Register; -- OTG_FS host channel-7 interrupt register (OTG_FS_HCINT7) FS_HCINT7 : FS_HCINT_Register; -- OTG_FS host channel-7 mask register (OTG_FS_HCINTMSK7) FS_HCINTMSK7 : FS_HCINTMSK_Register; -- OTG_FS host channel-7 transfer size register FS_HCTSIZ7 : FS_HCTSIZ_Register; end record with Volatile; for USB_OTG_HOST_Peripheral use record FS_HCFG at 0 range 0 .. 31; HFIR at 4 range 0 .. 31; FS_HFNUM at 8 range 0 .. 31; FS_HPTXSTS at 16 range 0 .. 31; HAINT at 20 range 0 .. 31; HAINTMSK at 24 range 0 .. 31; FS_HPRT at 64 range 0 .. 31; FS_HCCHAR0 at 256 range 0 .. 31; FS_HCINT0 at 264 range 0 .. 31; FS_HCINTMSK0 at 268 range 0 .. 31; FS_HCTSIZ0 at 272 range 0 .. 31; FS_HCCHAR1 at 288 range 0 .. 31; FS_HCINT1 at 296 range 0 .. 31; FS_HCINTMSK1 at 300 range 0 .. 31; FS_HCTSIZ1 at 304 range 0 .. 31; FS_HCCHAR2 at 320 range 0 .. 31; FS_HCINT2 at 328 range 0 .. 31; FS_HCINTMSK2 at 332 range 0 .. 31; FS_HCTSIZ2 at 336 range 0 .. 31; FS_HCCHAR3 at 352 range 0 .. 31; FS_HCINT3 at 360 range 0 .. 31; FS_HCINTMSK3 at 364 range 0 .. 31; FS_HCTSIZ3 at 368 range 0 .. 31; FS_HCCHAR4 at 384 range 0 .. 31; FS_HCINT4 at 392 range 0 .. 31; FS_HCINTMSK4 at 396 range 0 .. 31; FS_HCTSIZ4 at 400 range 0 .. 31; FS_HCCHAR5 at 416 range 0 .. 31; FS_HCINT5 at 424 range 0 .. 31; FS_HCINTMSK5 at 428 range 0 .. 31; FS_HCTSIZ5 at 432 range 0 .. 31; FS_HCCHAR6 at 448 range 0 .. 31; FS_HCINT6 at 456 range 0 .. 31; FS_HCINTMSK6 at 460 range 0 .. 31; FS_HCTSIZ6 at 464 range 0 .. 31; FS_HCCHAR7 at 480 range 0 .. 31; FS_HCINT7 at 488 range 0 .. 31; FS_HCINTMSK7 at 492 range 0 .. 31; FS_HCTSIZ7 at 496 range 0 .. 31; end record; -- USB on the go full speed USB_OTG_HOST_Periph : aliased USB_OTG_HOST_Peripheral with Import, Address => USB_OTG_HOST_Base; -- USB on the go full speed type USB_OTG_DEVICE_Peripheral is record -- OTG_FS device configuration register (OTG_FS_DCFG) FS_DCFG : FS_DCFG_Register; -- OTG_FS device control register (OTG_FS_DCTL) FS_DCTL : FS_DCTL_Register; -- OTG_FS device status register (OTG_FS_DSTS) FS_DSTS : FS_DSTS_Register; -- OTG_FS device IN endpoint common interrupt mask register -- (OTG_FS_DIEPMSK) FS_DIEPMSK : FS_DIEPMSK_Register; -- OTG_FS device OUT endpoint common interrupt mask register -- (OTG_FS_DOEPMSK) FS_DOEPMSK : FS_DOEPMSK_Register; -- OTG_FS device all endpoints interrupt register (OTG_FS_DAINT) FS_DAINT : FS_DAINT_Register; -- OTG_FS all endpoints interrupt mask register (OTG_FS_DAINTMSK) FS_DAINTMSK : FS_DAINTMSK_Register; -- OTG_FS device VBUS discharge time register DVBUSDIS : DVBUSDIS_Register; -- OTG_FS device VBUS pulsing time register DVBUSPULSE : DVBUSPULSE_Register; -- OTG_FS device IN endpoint FIFO empty interrupt mask register DIEPEMPMSK : DIEPEMPMSK_Register; -- OTG_FS device control IN endpoint 0 control register -- (OTG_FS_DIEPCTL0) FS_DIEPCTL0 : FS_DIEPCTL0_Register; -- device endpoint-x interrupt register DIEPINT0 : DIEPINT_Register; -- device endpoint-0 transfer size register DIEPTSIZ0 : DIEPTSIZ0_Register; -- OTG_FS device IN endpoint transmit FIFO status register DTXFSTS0 : DTXFSTS_Register; -- OTG device endpoint-1 control register DIEPCTL1 : DIEPCTL1_Register; -- device endpoint-1 interrupt register DIEPINT1 : DIEPINT_Register; -- device endpoint-1 transfer size register DIEPTSIZ1 : DIEPTSIZ_Register; -- OTG_FS device IN endpoint transmit FIFO status register DTXFSTS1 : DTXFSTS_Register; -- OTG device endpoint-2 control register DIEPCTL2 : DIEPCTL_Register; -- device endpoint-2 interrupt register DIEPINT2 : DIEPINT_Register; -- device endpoint-2 transfer size register DIEPTSIZ2 : DIEPTSIZ_Register; -- OTG_FS device IN endpoint transmit FIFO status register DTXFSTS2 : DTXFSTS_Register; -- OTG device endpoint-3 control register DIEPCTL3 : DIEPCTL_Register; -- device endpoint-3 interrupt register DIEPINT3 : DIEPINT_Register; -- device endpoint-3 transfer size register DIEPTSIZ3 : DIEPTSIZ_Register; -- OTG_FS device IN endpoint transmit FIFO status register DTXFSTS3 : DTXFSTS_Register; -- device endpoint-0 control register DOEPCTL0 : DOEPCTL0_Register; -- device endpoint-0 interrupt register DOEPINT0 : DOEPINT_Register; -- device OUT endpoint-0 transfer size register DOEPTSIZ0 : DOEPTSIZ0_Register; -- device endpoint-1 control register DOEPCTL1 : DOEPCTL_Register; -- device endpoint-1 interrupt register DOEPINT1 : DOEPINT_Register; -- device OUT endpoint-1 transfer size register DOEPTSIZ1 : DOEPTSIZ_Register; -- device endpoint-2 control register DOEPCTL2 : DOEPCTL_Register; -- device endpoint-2 interrupt register DOEPINT2 : DOEPINT_Register; -- device OUT endpoint-2 transfer size register DOEPTSIZ2 : DOEPTSIZ_Register; -- device endpoint-3 control register DOEPCTL3 : DOEPCTL_Register; -- device endpoint-3 interrupt register DOEPINT3 : DOEPINT_Register; -- device OUT endpoint-3 transfer size register DOEPTSIZ3 : DOEPTSIZ_Register; end record with Volatile; for USB_OTG_DEVICE_Peripheral use record FS_DCFG at 0 range 0 .. 31; FS_DCTL at 4 range 0 .. 31; FS_DSTS at 8 range 0 .. 31; FS_DIEPMSK at 16 range 0 .. 31; FS_DOEPMSK at 20 range 0 .. 31; FS_DAINT at 24 range 0 .. 31; FS_DAINTMSK at 28 range 0 .. 31; DVBUSDIS at 40 range 0 .. 31; DVBUSPULSE at 44 range 0 .. 31; DIEPEMPMSK at 52 range 0 .. 31; FS_DIEPCTL0 at 256 range 0 .. 31; DIEPINT0 at 264 range 0 .. 31; DIEPTSIZ0 at 272 range 0 .. 31; DTXFSTS0 at 280 range 0 .. 31; DIEPCTL1 at 288 range 0 .. 31; DIEPINT1 at 296 range 0 .. 31; DIEPTSIZ1 at 304 range 0 .. 31; DTXFSTS1 at 312 range 0 .. 31; DIEPCTL2 at 320 range 0 .. 31; DIEPINT2 at 328 range 0 .. 31; DIEPTSIZ2 at 336 range 0 .. 31; DTXFSTS2 at 344 range 0 .. 31; DIEPCTL3 at 352 range 0 .. 31; DIEPINT3 at 360 range 0 .. 31; DIEPTSIZ3 at 368 range 0 .. 31; DTXFSTS3 at 376 range 0 .. 31; DOEPCTL0 at 768 range 0 .. 31; DOEPINT0 at 776 range 0 .. 31; DOEPTSIZ0 at 784 range 0 .. 31; DOEPCTL1 at 800 range 0 .. 31; DOEPINT1 at 808 range 0 .. 31; DOEPTSIZ1 at 816 range 0 .. 31; DOEPCTL2 at 832 range 0 .. 31; DOEPINT2 at 840 range 0 .. 31; DOEPTSIZ2 at 848 range 0 .. 31; DOEPCTL3 at 864 range 0 .. 31; DOEPINT3 at 872 range 0 .. 31; DOEPTSIZ3 at 880 range 0 .. 31; end record; -- USB on the go full speed USB_OTG_DEVICE_Periph : aliased USB_OTG_DEVICE_Peripheral with Import, Address => USB_OTG_DEVICE_Base; -- USB on the go full speed type USB_OTG_PWRCLK_Peripheral is record -- OTG_FS power and clock gating control register (OTG_FS_PCGCCTL) FS_PCGCCTL : FS_PCGCCTL_Register; end record with Volatile; for USB_OTG_PWRCLK_Peripheral use record FS_PCGCCTL at 0 range 0 .. 31; end record; -- USB on the go full speed USB_OTG_PWRCLK_Periph : aliased USB_OTG_PWRCLK_Peripheral with Import, Address => USB_OTG_PWRCLK_Base; end STM32.USB_OTG;
37.708401
79
0.602361
4dd67a2212cd7cce38fafdf6cb80759ea7a67fe6
2,628
adb
Ada
2-low/neural/source/private/neural-set.adb
charlie5/lace
e9b7dc751d500ff3f559617a6fc3089ace9dc134
[ "0BSD" ]
20
2015-11-04T09:23:59.000Z
2022-01-14T10:21:42.000Z
2-low/neural/source/private/neural-set.adb
charlie5/lace
e9b7dc751d500ff3f559617a6fc3089ace9dc134
[ "0BSD" ]
2
2015-11-04T17:05:56.000Z
2015-12-08T03:16:13.000Z
2-low/neural/source/private/neural-set.adb
charlie5/lace
e9b7dc751d500ff3f559617a6fc3089ace9dc134
[ "0BSD" ]
1
2015-12-07T12:53:52.000Z
2015-12-07T12:53:52.000Z
with neural.Privvy; with fann_c.Binding; with Interfaces.C; with Fann_C.Pointers; package body Neural.Set is use neural.Privvy, fann_c.Binding, Interfaces; function to_Set (the_Patterns : in Patterns_view) return Set is the_Set : Set; procedure fill_Fann (pattern_Id : in Interfaces.C.unsigned; inputs_Count : in Interfaces.C.unsigned; outputs_Count : in Interfaces.C.unsigned; Inputs : in fann_c.Pointers.fann_type_Pointer; Outputs : in fann_c.Pointers.fann_type_Pointer); pragma Convention (C, fill_Fann); procedure fill_Fann (pattern_Id : in Interfaces.C.unsigned; inputs_Count : in Interfaces.C.unsigned; outputs_Count : in Interfaces.C.unsigned; Inputs : in fann_c.Pointers.fann_type_Pointer; Outputs : in fann_c.Pointers.fann_type_Pointer) is use fann_c, fann_type_Pointers; the_Pattern : Pattern renames the_Patterns (Integer (pattern_Id) + 1); the_Inputs : fann_c.fann_Type_array (1 .. c.size_t (inputs_Count)); the_Outputs : fann_c.fann_Type_array (1 .. c.size_t (outputs_Count)); begin -- set inputs -- for Each in the_Inputs'range loop the_Inputs (Each) := fann_Type (the_Pattern.Inputs (Integer (Each))); -- put_Line (math.Image (math.Real (the_Inputs (Each)))); end loop; copy_Array (the_Inputs (1)'Unchecked_Access, Inputs.all'access, c.ptrdiff_t (inputs_Count)); -- set outputs -- for Each in the_Outputs'range loop the_Outputs (Each) := fann_Type (the_Pattern.Outputs (Integer (Each))); end loop; copy_Array (the_Outputs (1)'Unchecked_Access, Outputs.all'access, c.ptrdiff_t (outputs_Count)); end fill_Fann; begin the_Set.Patterns := the_Patterns; the_Set.Fann := create_train_from_callback (num_data => the_Patterns'Length, num_input => the_Patterns (1).Inputs 'Length, num_output => the_Patterns (1).Outputs'Length, the_user_function => fill_Fann'unrestricted_access); return the_Set; end to_Set; end Neural.Set;
34.12987
107
0.546804
18a90e3a3efeadc3e7995d6fd315fb25c7cd59ea
73
ada
Ada
Task/User-input-Text/Ada/user-input-text-2.ada
mullikine/RosettaCodeData
4f0027c6ce83daa36118ee8b67915a13cd23ab67
[ "Info-ZIP" ]
1
2018-11-09T22:08:38.000Z
2018-11-09T22:08:38.000Z
Task/User-input-Text/Ada/user-input-text-2.ada
mullikine/RosettaCodeData
4f0027c6ce83daa36118ee8b67915a13cd23ab67
[ "Info-ZIP" ]
null
null
null
Task/User-input-Text/Ada/user-input-text-2.ada
mullikine/RosettaCodeData
4f0027c6ce83daa36118ee8b67915a13cd23ab67
[ "Info-ZIP" ]
1
2018-11-09T22:08:40.000Z
2018-11-09T22:08:40.000Z
My_String : String := Get_String; My_Integer : Integer := Get_Integer;
24.333333
36
0.726027
0b4ff6cea7a912b8fd6c5dacb47209dfa150ef4c
1,743
adb
Ada
software/hal/hpl/STM32/drivers/debug_stm32f4/stm32-dwt.adb
TUM-EI-RCS/StratoX
5fdd04e01a25efef6052376f43ce85b5bc973392
[ "BSD-3-Clause" ]
12
2017-06-08T14:19:57.000Z
2022-03-09T02:48:59.000Z
software/hal/hpl/STM32/drivers/debug_stm32f4/stm32-dwt.adb
TUM-EI-RCS/StratoX
5fdd04e01a25efef6052376f43ce85b5bc973392
[ "BSD-3-Clause" ]
6
2017-06-08T13:13:50.000Z
2020-05-15T09:32:43.000Z
software/hal/hpl/STM32/drivers/debug_stm32f4/stm32-dwt.adb
TUM-EI-RCS/StratoX
5fdd04e01a25efef6052376f43ce85b5bc973392
[ "BSD-3-Clause" ]
3
2017-06-30T14:05:06.000Z
2022-02-17T12:20:45.000Z
-- Data Watchpoint and Trace (DWT) Unit -- Gives access to cycle counter. with STM32.Debug; use STM32.Debug; package body STM32.DWT is ------------ -- Enable -- ------------ procedure Enable is begin Core_Debug.DEMCR.TRCENA := True; end Enable; ------------ -- Disable -- ------------ procedure Disable is begin Core_Debug.DEMCR.TRCENA := False; end Disable; -------------------------- -- Enable_Cycle_Counter -- -------------------------- procedure Enable_Cycle_Counter is begin Enable; Core_DWT.DWT_CYCCNT := 0; Core_DWT.DWT_CTRL.CYCCNTENA := True; end Enable_Cycle_Counter; --------------------------- -- Disable_Cycle_Counter -- --------------------------- procedure Disable_Cycle_Counter is begin Core_DWT.DWT_CTRL.CYCCNTENA := False; end Disable_Cycle_Counter; -------------------------- -- Enable_Sleep_Counter -- -------------------------- procedure Enable_Sleep_Counter is begin Enable; Core_DWT.DWT_SLEEPCNT := 0; Core_DWT.DWT_CTRL.SLEEPEVTENA := True; end Enable_Sleep_Counter; --------------------------- -- Disable_Sleep_Counter -- --------------------------- procedure Disable_Sleep_Counter is begin Core_DWT.DWT_CTRL.SLEEPEVTENA := False; end Disable_Sleep_Counter; ------------------------ -- Read_Cycle_Counter -- ------------------------ function Read_Cycle_Counter return Unsigned_32 is (Unsigned_32 (Core_DWT.DWT_CYCCNT)); ------------------------ -- Read_Sleep_Counter -- ------------------------ function Read_Sleep_Counter return Unsigned_8 is (Unsigned_8 (Core_DWT.DWT_SLEEPCNT)); end STM32.DWT;
21.7875
52
0.528399
125dc80a3de7dbe9689da7ad0e3093f6631e8401
16,778
ads
Ada
arch/ARM/STM32/svd/stm32l4x6/stm32_svd-gpio.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/stm32l4x6/stm32_svd-gpio.ads
morbos/Ada_Drivers_Library
a4ab26799be60997c38735f4056160c4af597ef7
[ "BSD-3-Clause" ]
null
null
null
arch/ARM/STM32/svd/stm32l4x6/stm32_svd-gpio.ads
morbos/Ada_Drivers_Library
a4ab26799be60997c38735f4056160c4af597ef7
[ "BSD-3-Clause" ]
null
null
null
-- This spec has been automatically generated from STM32L4x6.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package STM32_SVD.GPIO is pragma Preelaborate; --------------- -- Registers -- --------------- -- MODER array element subtype MODER_Element is HAL.UInt2; -- MODER array type MODER_Field_Array is array (0 .. 15) of MODER_Element with Component_Size => 2, Size => 32; -- GPIO port mode register type MODER_Register (As_Array : Boolean := False) is record case As_Array is when False => -- MODER as a value Val : HAL.UInt32; when True => -- MODER as an array Arr : MODER_Field_Array; end case; end record with Unchecked_Union, Size => 32, Volatile_Full_Access, Bit_Order => System.Low_Order_First; for MODER_Register use record Val at 0 range 0 .. 31; Arr at 0 range 0 .. 31; end record; -- OTYPER_OT array type OTYPER_OT_Field_Array is array (0 .. 15) of Boolean with Component_Size => 1, Size => 16; -- Type definition for OTYPER_OT type OTYPER_OT_Field (As_Array : Boolean := False) is record case As_Array is when False => -- OT as a value Val : HAL.UInt16; when True => -- OT as an array Arr : OTYPER_OT_Field_Array; end case; end record with Unchecked_Union, Size => 16; for OTYPER_OT_Field use record Val at 0 range 0 .. 15; Arr at 0 range 0 .. 15; end record; -- GPIO port output type register type OTYPER_Register is record -- Port x configuration bits (y = 0..15) OT : OTYPER_OT_Field := (As_Array => False, Val => 16#0#); -- unspecified Reserved_16_31 : HAL.UInt16 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for OTYPER_Register use record OT at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; -- OSPEEDR array element subtype OSPEEDR_Element is HAL.UInt2; -- OSPEEDR array type OSPEEDR_Field_Array is array (0 .. 15) of OSPEEDR_Element with Component_Size => 2, Size => 32; -- GPIO port output speed register type OSPEEDR_Register (As_Array : Boolean := False) is record case As_Array is when False => -- OSPEEDR as a value Val : HAL.UInt32; when True => -- OSPEEDR as an array Arr : OSPEEDR_Field_Array; end case; end record with Unchecked_Union, Size => 32, Volatile_Full_Access, Bit_Order => System.Low_Order_First; for OSPEEDR_Register use record Val at 0 range 0 .. 31; Arr at 0 range 0 .. 31; end record; -- PUPDR array element subtype PUPDR_Element is HAL.UInt2; -- PUPDR array type PUPDR_Field_Array is array (0 .. 15) of PUPDR_Element with Component_Size => 2, Size => 32; -- GPIO port pull-up/pull-down register type PUPDR_Register (As_Array : Boolean := False) is record case As_Array is when False => -- PUPDR as a value Val : HAL.UInt32; when True => -- PUPDR as an array Arr : PUPDR_Field_Array; end case; end record with Unchecked_Union, Size => 32, Volatile_Full_Access, Bit_Order => System.Low_Order_First; for PUPDR_Register use record Val at 0 range 0 .. 31; Arr at 0 range 0 .. 31; end record; -- IDR array type IDR_Field_Array is array (0 .. 15) of Boolean with Component_Size => 1, Size => 16; -- Type definition for IDR type IDR_Field (As_Array : Boolean := False) is record case As_Array is when False => -- IDR as a value Val : HAL.UInt16; when True => -- IDR as an array Arr : IDR_Field_Array; end case; end record with Unchecked_Union, Size => 16; for IDR_Field use record Val at 0 range 0 .. 15; Arr at 0 range 0 .. 15; end record; -- GPIO port input data register type IDR_Register is record -- Read-only. Port input data (y = 0..15) IDR : IDR_Field; -- unspecified Reserved_16_31 : HAL.UInt16; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for IDR_Register use record IDR at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; -- ODR array type ODR_Field_Array is array (0 .. 15) of Boolean with Component_Size => 1, Size => 16; -- Type definition for ODR type ODR_Field (As_Array : Boolean := False) is record case As_Array is when False => -- ODR as a value Val : HAL.UInt16; when True => -- ODR as an array Arr : ODR_Field_Array; end case; end record with Unchecked_Union, Size => 16; for ODR_Field use record Val at 0 range 0 .. 15; Arr at 0 range 0 .. 15; end record; -- GPIO port output data register type ODR_Register is record -- Port output data (y = 0..15) ODR : ODR_Field := (As_Array => False, Val => 16#0#); -- unspecified Reserved_16_31 : HAL.UInt16 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for ODR_Register use record ODR at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; -- BSRR_BS array type BSRR_BS_Field_Array is array (0 .. 15) of Boolean with Component_Size => 1, Size => 16; -- Type definition for BSRR_BS type BSRR_BS_Field (As_Array : Boolean := False) is record case As_Array is when False => -- BS as a value Val : HAL.UInt16; when True => -- BS as an array Arr : BSRR_BS_Field_Array; end case; end record with Unchecked_Union, Size => 16; for BSRR_BS_Field use record Val at 0 range 0 .. 15; Arr at 0 range 0 .. 15; end record; -- BSRR_BR array type BSRR_BR_Field_Array is array (0 .. 15) of Boolean with Component_Size => 1, Size => 16; -- Type definition for BSRR_BR type BSRR_BR_Field (As_Array : Boolean := False) is record case As_Array is when False => -- BR as a value Val : HAL.UInt16; when True => -- BR as an array Arr : BSRR_BR_Field_Array; end case; end record with Unchecked_Union, Size => 16; for BSRR_BR_Field use record Val at 0 range 0 .. 15; Arr at 0 range 0 .. 15; end record; -- GPIO port bit set/reset register type BSRR_Register is record -- Write-only. Port x set bit y (y= 0..15) BS : BSRR_BS_Field := (As_Array => False, Val => 16#0#); -- Write-only. Port x set bit y (y= 0..15) BR : BSRR_BR_Field := (As_Array => False, Val => 16#0#); end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for BSRR_Register use record BS at 0 range 0 .. 15; BR at 0 range 16 .. 31; end record; -- LCKR_LCK array type LCKR_LCK_Field_Array is array (0 .. 15) of Boolean with Component_Size => 1, Size => 16; -- Type definition for LCKR_LCK type LCKR_LCK_Field (As_Array : Boolean := False) is record case As_Array is when False => -- LCK as a value Val : HAL.UInt16; when True => -- LCK as an array Arr : LCKR_LCK_Field_Array; end case; end record with Unchecked_Union, Size => 16; for LCKR_LCK_Field use record Val at 0 range 0 .. 15; Arr at 0 range 0 .. 15; end record; -- GPIO port configuration lock register type LCKR_Register is record -- Port x lock bit y (y= 0..15) LCK : LCKR_LCK_Field := (As_Array => False, Val => 16#0#); -- Port x lock bit y (y= 0..15) LCKK : Boolean := False; -- unspecified Reserved_17_31 : HAL.UInt15 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for LCKR_Register use record LCK at 0 range 0 .. 15; LCKK at 0 range 16 .. 16; Reserved_17_31 at 0 range 17 .. 31; end record; -- AFRL array element subtype AFRL_Element is HAL.UInt4; -- AFRL array type AFRL_Field_Array is array (0 .. 7) of AFRL_Element with Component_Size => 4, Size => 32; -- GPIO alternate function low register type AFRL_Register (As_Array : Boolean := False) is record case As_Array is when False => -- AFRL as a value Val : HAL.UInt32; when True => -- AFRL as an array Arr : AFRL_Field_Array; end case; end record with Unchecked_Union, Size => 32, Volatile_Full_Access, Bit_Order => System.Low_Order_First; for AFRL_Register use record Val at 0 range 0 .. 31; Arr at 0 range 0 .. 31; end record; -- AFRH array element subtype AFRH_Element is HAL.UInt4; -- AFRH array type AFRH_Field_Array is array (8 .. 15) of AFRH_Element with Component_Size => 4, Size => 32; -- GPIO alternate function high register type AFRH_Register (As_Array : Boolean := False) is record case As_Array is when False => -- AFRH as a value Val : HAL.UInt32; when True => -- AFRH as an array Arr : AFRH_Field_Array; end case; end record with Unchecked_Union, Size => 32, Volatile_Full_Access, Bit_Order => System.Low_Order_First; for AFRH_Register use record Val at 0 range 0 .. 31; Arr at 0 range 0 .. 31; end record; -- BRR_BR array type BRR_BR_Field_Array is array (0 .. 15) of Boolean with Component_Size => 1, Size => 16; -- Type definition for BRR_BR type BRR_BR_Field (As_Array : Boolean := False) is record case As_Array is when False => -- BR as a value Val : HAL.UInt16; when True => -- BR as an array Arr : BRR_BR_Field_Array; end case; end record with Unchecked_Union, Size => 16; for BRR_BR_Field use record Val at 0 range 0 .. 15; Arr at 0 range 0 .. 15; end record; -- GPIO port bit reset register type BRR_Register is record -- Write-only. Port Reset bit BR : BRR_BR_Field := (As_Array => False, Val => 16#0#); -- unspecified Reserved_16_31 : HAL.UInt16 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for BRR_Register use record BR at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; -- ASCR_ASC array type ASCR_ASC_Field_Array is array (0 .. 15) of Boolean with Component_Size => 1, Size => 16; -- Type definition for ASCR_ASC type ASCR_ASC_Field (As_Array : Boolean := False) is record case As_Array is when False => -- ASC as a value Val : HAL.UInt16; when True => -- ASC as an array Arr : ASCR_ASC_Field_Array; end case; end record with Unchecked_Union, Size => 16; for ASCR_ASC_Field use record Val at 0 range 0 .. 15; Arr at 0 range 0 .. 15; end record; -- GPIO port analog switch control register type ASCR_Register is record -- Port analog switch control ASC : ASCR_ASC_Field := (As_Array => False, Val => 16#0#); -- unspecified Reserved_16_31 : HAL.UInt16 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for ASCR_Register use record ASC at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; ----------------- -- Peripherals -- ----------------- -- General-purpose I/Os type GPIOA_Peripheral is record -- GPIO port mode register MODER : aliased MODER_Register; -- GPIO port output type register OTYPER : aliased OTYPER_Register; -- GPIO port output speed register OSPEEDR : aliased OSPEEDR_Register; -- GPIO port pull-up/pull-down register PUPDR : aliased PUPDR_Register; -- GPIO port input data register IDR : aliased IDR_Register; -- GPIO port output data register ODR : aliased ODR_Register; -- GPIO port bit set/reset register BSRR : aliased BSRR_Register; -- GPIO port configuration lock register LCKR : aliased LCKR_Register; -- GPIO alternate function low register AFRL : aliased AFRL_Register; -- GPIO alternate function high register AFRH : aliased AFRH_Register; -- GPIO port bit reset register BRR : aliased BRR_Register; -- GPIO port analog switch control register ASCR : aliased ASCR_Register; end record with Volatile; for GPIOA_Peripheral use record MODER at 16#0# range 0 .. 31; OTYPER at 16#4# range 0 .. 31; OSPEEDR at 16#8# range 0 .. 31; PUPDR at 16#C# range 0 .. 31; IDR at 16#10# range 0 .. 31; ODR at 16#14# range 0 .. 31; BSRR at 16#18# range 0 .. 31; LCKR at 16#1C# range 0 .. 31; AFRL at 16#20# range 0 .. 31; AFRH at 16#24# range 0 .. 31; BRR at 16#28# range 0 .. 31; ASCR at 16#2C# range 0 .. 31; end record; -- General-purpose I/Os GPIOA_Periph : aliased GPIOA_Peripheral with Import, Address => System'To_Address (16#48000000#); -- General-purpose I/Os GPIOB_Periph : aliased GPIOA_Peripheral with Import, Address => System'To_Address (16#48000400#); -- General-purpose I/Os GPIOC_Periph : aliased GPIOA_Peripheral with Import, Address => System'To_Address (16#48000800#); -- General-purpose I/Os GPIOD_Periph : aliased GPIOA_Peripheral with Import, Address => System'To_Address (16#48000C00#); -- General-purpose I/Os GPIOE_Periph : aliased GPIOA_Peripheral with Import, Address => System'To_Address (16#48001000#); -- General-purpose I/Os GPIOF_Periph : aliased GPIOA_Peripheral with Import, Address => System'To_Address (16#48001400#); -- General-purpose I/Os GPIOG_Periph : aliased GPIOA_Peripheral with Import, Address => System'To_Address (16#48001800#); -- General-purpose I/Os GPIOH_Periph : aliased GPIOA_Peripheral with Import, Address => System'To_Address (16#48001C00#); -- General-purpose I/Os type GPIOI_Peripheral is record -- GPIO port mode register MODER : aliased MODER_Register; -- GPIO port output type register OTYPER : aliased OTYPER_Register; -- GPIO port output speed register OSPEEDR : aliased OSPEEDR_Register; -- GPIO port pull-up/pull-down register PUPDR : aliased PUPDR_Register; -- GPIO port input data register IDR : aliased IDR_Register; -- GPIO port output data register ODR : aliased ODR_Register; -- GPIO port bit set/reset register BSRR : aliased BSRR_Register; -- GPIO port configuration lock register LCKR : aliased LCKR_Register; -- GPIO alternate function low register AFRL : aliased AFRL_Register; -- GPIO alternate function high register AFRH : aliased AFRH_Register; -- GPIO port bit reset register BRR : aliased BRR_Register; end record with Volatile; for GPIOI_Peripheral use record MODER at 16#0# range 0 .. 31; OTYPER at 16#4# range 0 .. 31; OSPEEDR at 16#8# range 0 .. 31; PUPDR at 16#C# range 0 .. 31; IDR at 16#10# range 0 .. 31; ODR at 16#14# range 0 .. 31; BSRR at 16#18# range 0 .. 31; LCKR at 16#1C# range 0 .. 31; AFRL at 16#20# range 0 .. 31; AFRH at 16#24# range 0 .. 31; BRR at 16#28# range 0 .. 31; end record; -- General-purpose I/Os GPIOI_Periph : aliased GPIOI_Peripheral with Import, Address => System'To_Address (16#48002000#); end STM32_SVD.GPIO;
28.778731
76
0.587794
dcc4856bea831e54d454d2ec77a5a17c3b0d9b7c
4,041
ads
Ada
support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/a-tiflio.ads
orb-zhuchen/Orb
6da2404b949ac28bde786e08bf4debe4a27cd3a0
[ "CNRI-Python-GPL-Compatible", "MIT" ]
null
null
null
support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/a-tiflio.ads
orb-zhuchen/Orb
6da2404b949ac28bde786e08bf4debe4a27cd3a0
[ "CNRI-Python-GPL-Compatible", "MIT" ]
null
null
null
support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/a-tiflio.ads
orb-zhuchen/Orb
6da2404b949ac28bde786e08bf4debe4a27cd3a0
[ "CNRI-Python-GPL-Compatible", "MIT" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- A D A . T E X T _ I O . F L O A T _ I O -- -- -- -- S p e c -- -- -- -- Copyright (C) 1992-2019, Free Software Foundation, Inc. -- -- -- -- This specification is derived from the Ada Reference Manual for use with -- -- GNAT. The copyright notice above, and the license provisions that follow -- -- apply solely to the contents of the part following the private keyword. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ -- In Ada 95, the package Ada.Text_IO.Float_IO is a subpackage of Text_IO. -- This is for compatibility with Ada 83. In GNAT we make it a child package -- to avoid loading the necessary code if Float_IO is not instantiated. See -- routine Rtsfind.Check_Text_IO_Special_Unit for a description of how we -- patch up the difference in semantics so that it is invisible to the Ada -- programmer. private generic type Num is digits <>; package Ada.Text_IO.Float_IO is Default_Fore : Field := 2; Default_Aft : Field := Num'Digits - 1; Default_Exp : Field := 3; procedure Get (File : File_Type; Item : out Num; Width : Field := 0); procedure Get (Item : out Num; Width : Field := 0); procedure Put (File : File_Type; Item : Num; Fore : Field := Default_Fore; Aft : Field := Default_Aft; Exp : Field := Default_Exp); procedure Put (Item : Num; Fore : Field := Default_Fore; Aft : Field := Default_Aft; Exp : Field := Default_Exp); procedure Get (From : String; Item : out Num; Last : out Positive); procedure Put (To : out String; Item : Num; Aft : Field := Default_Aft; Exp : Field := Default_Exp); private pragma Inline (Get); pragma Inline (Put); end Ada.Text_IO.Float_IO;
44.9
78
0.468201
4de6f0cfd0010691171c9b78ca9b76851f12914b
459
adb
Ada
src/main.adb
zdimension/tdinfo302
0bfa11f56215a7afc0e9ff58d3fb296c184f23b4
[ "MIT" ]
null
null
null
src/main.adb
zdimension/tdinfo302
0bfa11f56215a7afc0e9ff58d3fb296c184f23b4
[ "MIT" ]
null
null
null
src/main.adb
zdimension/tdinfo302
0bfa11f56215a7afc0e9ff58d3fb296c184f23b4
[ "MIT" ]
null
null
null
with Ada.Text_IO; use Ada.Text_IO; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; procedure Main is function Est_Bissextile (Annee : Integer) return Boolean is begin return (Annee Mod 4 = 0 And Annee Mod 100 /= 0) Or Annee Mod 400 = 0; end Est_Bissextile; Annee : Integer; begin Get(Annee); if Est_Bissextile(Annee) then Put_Line("Bissextile"); else Put_Line("Non Bissextile"); end if; end Main;
22.95
77
0.666667
4d8b4dff3880abc50c8aef36076bd3095f9587cb
40,078
adb
Ada
apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_shifts/conv2d/conv2d/hls_target/.autopilot/db/hls_target.adb
dillonhuff/Halide-HLS
e9f4c3ac7915e5a52f211ce65004ae17890515a0
[ "MIT" ]
1
2020-06-18T16:51:39.000Z
2020-06-18T16:51:39.000Z
apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_shifts/conv2d/conv2d/hls_target/.autopilot/db/hls_target.adb
dillonhuff/Halide-HLS
e9f4c3ac7915e5a52f211ce65004ae17890515a0
[ "MIT" ]
null
null
null
apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_shifts/conv2d/conv2d/hls_target/.autopilot/db/hls_target.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/> <cdfg class_id="1" tracking_level="1" version="0" object_id="_0"> <name>hls_target</name> <ret_bitwidth>0</ret_bitwidth> <ports class_id="2" tracking_level="0" version="0"> <count>4</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>hw_input_V_value_V</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>hw_input.V.value.V</originalName> <rtlName/> <coreName/> </Obj> <bitwidth>32</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>hw_input_V_last_V</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>hw_input.V.last.V</originalName> <rtlName/> <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="_3"> <Value> <Obj> <type>1</type> <id>3</id> <name>hw_output_V_value_V</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>hw_output.V.value.V</originalName> <rtlName/> <coreName/> </Obj> <bitwidth>32</bitwidth> </Value> <direction>1</direction> <if_type>0</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_4"> <Value> <Obj> <type>1</type> <id>4</id> <name>hw_output_V_last_V</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>hw_output.V.last.V</originalName> <rtlName/> <coreName/> </Obj> <bitwidth>1</bitwidth> </Value> <direction>1</direction> <if_type>0</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> </ports> <nodes class_id="8" tracking_level="0" version="0"> <count>4</count> <item_version>0</item_version> <item class_id="9" tracking_level="1" version="0" object_id="_5"> <Value> <Obj> <type>0</type> <id>11</id> <name>p_hw_input_stencil_st</name> <fileName>hls_target.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>57</lineNumber> <contextFuncName>hls_target</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item class_id="10" tracking_level="0" version="0"> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_shifts/conv2d</first> <second class_id="11" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="12" tracking_level="0" version="0"> <first class_id="13" tracking_level="0" version="0"> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>57</second> </item> </second> </item> </inlineStackInfo> <originalName>_hw_input_stencil_stream.V.value.V</originalName> <rtlName>p_hw_input_stencil_st_U</rtlName> <coreName>FIFO_SRL</coreName> </Obj> <bitwidth>288</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>22</item> </oprand_edges> <opcode>alloca</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_6"> <Value> <Obj> <type>0</type> <id>17</id> <name/> <fileName>hls_target.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>61</lineNumber> <contextFuncName>hls_target</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_shifts/conv2d</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>61</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>linebuffer_1_U0</rtlName> <coreName/> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>24</item> <item>25</item> <item>26</item> <item>27</item> </oprand_edges> <opcode>call</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_7"> <Value> <Obj> <type>0</type> <id>18</id> <name/> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName>Loop_1_proc_U0</rtlName> <coreName/> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>6</count> <item_version>0</item_version> <item>29</item> <item>30</item> <item>31</item> <item>32</item> <item>136</item> <item>137</item> </oprand_edges> <opcode>call</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_8"> <Value> <Obj> <type>0</type> <id>19</id> <name/> <fileName>hls_target.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>159</lineNumber> <contextFuncName>hls_target</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_shifts/conv2d</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>159</second> </item> </second> </item> </inlineStackInfo> <originalName/> <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>3</count> <item_version>0</item_version> <item class_id="16" tracking_level="1" version="0" object_id="_9"> <Value> <Obj> <type>2</type> <id>21</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>64</bitwidth> </Value> <const_type>0</const_type> <content>1</content> </item> <item class_id_reference="16" object_id="_10"> <Value> <Obj> <type>2</type> <id>23</id> <name>linebuffer_1</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> <const_type>6</const_type> <content>&lt;constant:linebuffer.1&gt;</content> </item> <item class_id_reference="16" object_id="_11"> <Value> <Obj> <type>2</type> <id>28</id> <name>Loop_1_proc</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> <const_type>6</const_type> <content>&lt;constant:Loop_1_proc&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="_12"> <Obj> <type>3</type> <id>20</id> <name>hls_target</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <node_objs> <count>4</count> <item_version>0</item_version> <item>11</item> <item>17</item> <item>18</item> <item>19</item> </node_objs> </item> </blocks> <edges class_id="19" tracking_level="0" version="0"> <count>11</count> <item_version>0</item_version> <item class_id="20" tracking_level="1" version="0" object_id="_13"> <id>22</id> <edge_type>1</edge_type> <source_obj>21</source_obj> <sink_obj>11</sink_obj> </item> <item class_id_reference="20" object_id="_14"> <id>24</id> <edge_type>1</edge_type> <source_obj>23</source_obj> <sink_obj>17</sink_obj> </item> <item class_id_reference="20" object_id="_15"> <id>25</id> <edge_type>1</edge_type> <source_obj>1</source_obj> <sink_obj>17</sink_obj> </item> <item class_id_reference="20" object_id="_16"> <id>26</id> <edge_type>1</edge_type> <source_obj>2</source_obj> <sink_obj>17</sink_obj> </item> <item class_id_reference="20" object_id="_17"> <id>27</id> <edge_type>1</edge_type> <source_obj>11</source_obj> <sink_obj>17</sink_obj> </item> <item class_id_reference="20" object_id="_18"> <id>29</id> <edge_type>1</edge_type> <source_obj>28</source_obj> <sink_obj>18</sink_obj> </item> <item class_id_reference="20" object_id="_19"> <id>30</id> <edge_type>1</edge_type> <source_obj>11</source_obj> <sink_obj>18</sink_obj> </item> <item class_id_reference="20" object_id="_20"> <id>31</id> <edge_type>1</edge_type> <source_obj>3</source_obj> <sink_obj>18</sink_obj> </item> <item class_id_reference="20" object_id="_21"> <id>32</id> <edge_type>1</edge_type> <source_obj>4</source_obj> <sink_obj>18</sink_obj> </item> <item class_id_reference="20" object_id="_22"> <id>136</id> <edge_type>4</edge_type> <source_obj>17</source_obj> <sink_obj>18</sink_obj> </item> <item class_id_reference="20" object_id="_23"> <id>137</id> <edge_type>4</edge_type> <source_obj>17</source_obj> <sink_obj>18</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="_24"> <mId>1</mId> <mTag>hls_target</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>20</item> </basic_blocks> <mII>-1</mII> <mDepth>-1</mDepth> <mMinTripCount>-1</mMinTripCount> <mMaxTripCount>-1</mMaxTripCount> <mMinLatency>2077921</mMinLatency> <mMaxLatency>-1</mMaxLatency> <mIsDfPipe>1</mIsDfPipe> <mDfPipe class_id="23" tracking_level="1" version="0" object_id="_25"> <port_list class_id="24" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </port_list> <process_list class_id="25" tracking_level="0" version="0"> <count>2</count> <item_version>0</item_version> <item class_id="26" tracking_level="1" version="0" object_id="_26"> <type>0</type> <name>linebuffer_1_U0</name> <ssdmobj_id>17</ssdmobj_id> <pins class_id="27" tracking_level="0" version="0"> <count>3</count> <item_version>0</item_version> <item class_id="28" tracking_level="1" version="0" object_id="_27"> <port class_id="29" tracking_level="1" version="0" object_id="_28"> <name>in_axi_stream_V_value_V</name> <dir>3</dir> <type>0</type> </port> <inst class_id="30" tracking_level="1" version="0" object_id="_29"> <type>0</type> <name>linebuffer_1_U0</name> <ssdmobj_id>17</ssdmobj_id> </inst> </item> <item class_id_reference="28" object_id="_30"> <port class_id_reference="29" object_id="_31"> <name>in_axi_stream_V_last_V</name> <dir>3</dir> <type>0</type> </port> <inst class_id_reference="30" object_id_reference="_29"/> </item> <item class_id_reference="28" object_id="_32"> <port class_id_reference="29" object_id="_33"> <name>out_stream_V_value_V</name> <dir>0</dir> <type>1</type> </port> <inst class_id_reference="30" object_id_reference="_29"/> </item> </pins> </item> <item class_id_reference="26" object_id="_34"> <type>0</type> <name>Loop_1_proc_U0</name> <ssdmobj_id>18</ssdmobj_id> <pins> <count>3</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_35"> <port class_id_reference="29" object_id="_36"> <name>p_hw_input_stencil_stream_V_value_V</name> <dir>0</dir> <type>0</type> </port> <inst class_id_reference="30" object_id="_37"> <type>0</type> <name>Loop_1_proc_U0</name> <ssdmobj_id>18</ssdmobj_id> </inst> </item> <item class_id_reference="28" object_id="_38"> <port class_id_reference="29" object_id="_39"> <name>hw_output_V_value_V</name> <dir>3</dir> <type>1</type> </port> <inst class_id_reference="30" object_id_reference="_37"/> </item> <item class_id_reference="28" object_id="_40"> <port class_id_reference="29" object_id="_41"> <name>hw_output_V_last_V</name> <dir>3</dir> <type>1</type> </port> <inst class_id_reference="30" object_id_reference="_37"/> </item> </pins> </item> </process_list> <channel_list class_id="31" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="32" tracking_level="1" version="0" object_id="_42"> <type>1</type> <name>p_hw_input_stencil_st</name> <ssdmobj_id>11</ssdmobj_id> <ctype>0</ctype> <depth>1</depth> <bitwidth>288</bitwidth> <source class_id_reference="28" object_id="_43"> <port class_id_reference="29" object_id="_44"> <name>in</name> <dir>3</dir> <type>0</type> </port> <inst class_id_reference="30" object_id_reference="_29"/> </source> <sink class_id_reference="28" object_id="_45"> <port class_id_reference="29" object_id="_46"> <name>out</name> <dir>3</dir> <type>1</type> </port> <inst class_id_reference="30" object_id_reference="_37"/> </sink> </item> </channel_list> <net_list class_id="33" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </net_list> </mDfPipe> </item> </cdfg_regions> <fsm class_id="34" tracking_level="1" version="0" object_id="_47"> <states class_id="35" tracking_level="0" version="0"> <count>4</count> <item_version>0</item_version> <item class_id="36" tracking_level="1" version="0" object_id="_48"> <id>1</id> <operations class_id="37" tracking_level="0" version="0"> <count>2</count> <item_version>0</item_version> <item class_id="38" tracking_level="1" version="0" object_id="_49"> <id>11</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="38" object_id="_50"> <id>17</id> <stage>2</stage> <latency>2</latency> </item> </operations> </item> <item class_id_reference="36" object_id="_51"> <id>2</id> <operations> <count>1</count> <item_version>0</item_version> <item class_id_reference="38" object_id="_52"> <id>17</id> <stage>1</stage> <latency>2</latency> </item> </operations> </item> <item class_id_reference="36" object_id="_53"> <id>3</id> <operations> <count>1</count> <item_version>0</item_version> <item class_id_reference="38" object_id="_54"> <id>18</id> <stage>2</stage> <latency>2</latency> </item> </operations> </item> <item class_id_reference="36" object_id="_55"> <id>4</id> <operations> <count>13</count> <item_version>0</item_version> <item class_id_reference="38" object_id="_56"> <id>5</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="38" object_id="_57"> <id>6</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="38" object_id="_58"> <id>7</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="38" object_id="_59"> <id>8</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="38" object_id="_60"> <id>9</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="38" object_id="_61"> <id>10</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="38" object_id="_62"> <id>12</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="38" object_id="_63"> <id>13</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="38" object_id="_64"> <id>14</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="38" object_id="_65"> <id>15</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="38" object_id="_66"> <id>16</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="38" object_id="_67"> <id>18</id> <stage>1</stage> <latency>2</latency> </item> <item class_id_reference="38" object_id="_68"> <id>19</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> </states> <transitions class_id="39" tracking_level="0" version="0"> <count>3</count> <item_version>0</item_version> <item class_id="40" tracking_level="1" version="0" object_id="_69"> <inState>1</inState> <outState>2</outState> <condition class_id="41" tracking_level="0" version="0"> <id>0</id> <sop class_id="42" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="43" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> <item class_id_reference="40" object_id="_70"> <inState>2</inState> <outState>3</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="40" object_id="_71"> <inState>3</inState> <outState>4</outState> <condition> <id>2</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> </transitions> </fsm> <res class_id="44" tracking_level="1" version="0" object_id="_72"> <dp_component_resource class_id="45" tracking_level="0" version="0"> <count>3</count> <item_version>0</item_version> <item class_id="46" tracking_level="0" version="0"> <first>Loop_1_proc_U0 (Loop_1_proc)</first> <second class_id="47" tracking_level="0" version="0"> <count>2</count> <item_version>0</item_version> <item class_id="48" tracking_level="0" version="0"> <first>FF</first> <second>1104</second> </item> <item> <first>LUT</first> <second>585</second> </item> </second> </item> <item> <first>linebuffer_1_U0 (linebuffer_1)</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>BRAM</first> <second>8</second> </item> <item> <first>FF</first> <second>1231</second> </item> <item> <first>LUT</first> <second>803</second> </item> </second> </item> <item> <first>start_for_Loop_1_fYi_U (start_for_Loop_1_fYi)</first> <second> <count>0</count> <item_version>0</item_version> </second> </item> </dp_component_resource> <dp_expression_resource> <count>2</count> <item_version>0</item_version> <item> <first>ap_idle ( and ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>1</second> </item> <item> <first>(1P1)</first> <second>1</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>2</second> </item> </second> </item> <item> <first>linebuffer_1_U0_start_full_n ( or ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>1</second> </item> <item> <first>(1P1)</first> <second>1</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>2</second> </item> </second> </item> </dp_expression_resource> <dp_fifo_resource> <count>1</count> <item_version>0</item_version> <item> <first>p_hw_input_stencil_st_U</first> <second> <count>5</count> <item_version>0</item_version> <item> <first>(0Depth)</first> <second>1</second> </item> <item> <first>(1Bits)</first> <second>288</second> </item> <item> <first>(2Size:D*B)</first> <second>288</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>1</second> </item> </second> </item> </dp_fifo_resource> <dp_memory_resource> <count>0</count> <item_version>0</item_version> </dp_memory_resource> <dp_multiplexer_resource> <count>0</count> <item_version>0</item_version> </dp_multiplexer_resource> <dp_register_resource> <count>0</count> <item_version>0</item_version> </dp_register_resource> <dp_component_map class_id="49" tracking_level="0" version="0"> <count>2</count> <item_version>0</item_version> <item class_id="50" tracking_level="0" version="0"> <first>Loop_1_proc_U0 (Loop_1_proc)</first> <second> <count>1</count> <item_version>0</item_version> <item>18</item> </second> </item> <item> <first>linebuffer_1_U0 (linebuffer_1)</first> <second> <count>1</count> <item_version>0</item_version> <item>17</item> </second> </item> </dp_component_map> <dp_expression_map> <count>0</count> <item_version>0</item_version> </dp_expression_map> <dp_fifo_map> <count>1</count> <item_version>0</item_version> <item> <first>p_hw_input_stencil_st_U</first> <second> <count>1</count> <item_version>0</item_version> <item>55</item> </second> </item> </dp_fifo_map> <dp_memory_map> <count>0</count> <item_version>0</item_version> </dp_memory_map> </res> <node_label_latency class_id="51" tracking_level="0" version="0"> <count>4</count> <item_version>0</item_version> <item class_id="52" tracking_level="0" version="0"> <first>11</first> <second class_id="53" tracking_level="0" version="0"> <first>0</first> <second>0</second> </second> </item> <item> <first>17</first> <second> <first>0</first> <second>1</second> </second> </item> <item> <first>18</first> <second> <first>2</first> <second>1</second> </second> </item> <item> <first>19</first> <second> <first>3</first> <second>0</second> </second> </item> </node_label_latency> <bblk_ent_exit class_id="54" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="55" tracking_level="0" version="0"> <first>20</first> <second class_id="56" tracking_level="0" version="0"> <first>0</first> <second>3</second> </second> </item> </bblk_ent_exit> <regions class_id="57" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="58" tracking_level="1" version="0" object_id="_73"> <region_name>hls_target</region_name> <basic_blocks> <count>1</count> <item_version>0</item_version> <item>20</item> </basic_blocks> <nodes> <count>15</count> <item_version>0</item_version> <item>5</item> <item>6</item> <item>7</item> <item>8</item> <item>9</item> <item>10</item> <item>11</item> <item>12</item> <item>13</item> <item>14</item> <item>15</item> <item>16</item> <item>17</item> <item>18</item> <item>19</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="59" tracking_level="0" version="0"> <count>3</count> <item_version>0</item_version> <item class_id="60" tracking_level="0" version="0"> <first>48</first> <second> <count>1</count> <item_version>0</item_version> <item>11</item> </second> </item> <item> <first>52</first> <second> <count>2</count> <item_version>0</item_version> <item>17</item> <item>17</item> </second> </item> <item> <first>61</first> <second> <count>2</count> <item_version>0</item_version> <item>18</item> <item>18</item> </second> </item> </dp_fu_nodes> <dp_fu_nodes_expression class_id="62" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="63" tracking_level="0" version="0"> <first>p_hw_input_stencil_st_fu_48</first> <second> <count>1</count> <item_version>0</item_version> <item>11</item> </second> </item> </dp_fu_nodes_expression> <dp_fu_nodes_module> <count>2</count> <item_version>0</item_version> <item> <first>grp_Loop_1_proc_fu_61</first> <second> <count>2</count> <item_version>0</item_version> <item>18</item> <item>18</item> </second> </item> <item> <first>grp_linebuffer_1_fu_52</first> <second> <count>2</count> <item_version>0</item_version> <item>17</item> <item>17</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="64" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </dp_mem_port_nodes> <dp_reg_nodes> <count>1</count> <item_version>0</item_version> <item> <first>70</first> <second> <count>1</count> <item_version>0</item_version> <item>11</item> </second> </item> </dp_reg_nodes> <dp_regname_nodes> <count>1</count> <item_version>0</item_version> <item> <first>p_hw_input_stencil_st_reg_70</first> <second> <count>1</count> <item_version>0</item_version> <item>11</item> </second> </item> </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="65" tracking_level="0" version="0"> <count>4</count> <item_version>0</item_version> <item class_id="66" tracking_level="0" version="0"> <first>hw_input_V_last_V</first> <second> <count>1</count> <item_version>0</item_version> <item> <first>call</first> <second> <count>1</count> <item_version>0</item_version> <item>17</item> </second> </item> </second> </item> <item> <first>hw_input_V_value_V</first> <second> <count>1</count> <item_version>0</item_version> <item> <first>call</first> <second> <count>1</count> <item_version>0</item_version> <item>17</item> </second> </item> </second> </item> <item> <first>hw_output_V_last_V</first> <second> <count>1</count> <item_version>0</item_version> <item> <first>call</first> <second> <count>1</count> <item_version>0</item_version> <item>18</item> </second> </item> </second> </item> <item> <first>hw_output_V_value_V</first> <second> <count>1</count> <item_version>0</item_version> <item> <first>call</first> <second> <count>1</count> <item_version>0</item_version> <item>18</item> </second> </item> </second> </item> </dp_port_io_nodes> <port2core class_id="67" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </port2core> <node2core> <count>1</count> <item_version>0</item_version> <item class_id="68" tracking_level="0" version="0"> <first>11</first> <second>FIFO_SRL</second> </item> </node2core> </syndb> </boost_serialization>
32.904762
132
0.475099
4d2975cefceb7cb4645be64568f9feaf0daf709e
2,576
ads
Ada
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/a-shcain.ads
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/a-shcain.ads
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/a-shcain.ads
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- A D A . S T R I N G S . H A S H _ C A S E _ I N S E N S I T I V E -- -- -- -- S p e c -- -- -- -- Copyright (C) 2004-2020, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- This unit was originally developed by Matthew J Heaney. -- ------------------------------------------------------------------------------ with Ada.Containers; function Ada.Strings.Hash_Case_Insensitive (Key : String) return Containers.Hash_Type; pragma Pure (Ada.Strings.Hash_Case_Insensitive); -- Computes a hash value for Key without regard for character case. This is -- useful as the generic actual Hash function when instantiating a hashed -- container package with type String as the key.
67.789474
78
0.427019
0bf50a5e9f62703777f64087872a3a12e3ee2eef
12,547
adb
Ada
project/adl/boards/OpenMV2/src/openmv-sensor.adb
corentingay/adaboy
68f08afa246c8255a42897376d375edcb4e2efc2
[ "MIT" ]
null
null
null
project/adl/boards/OpenMV2/src/openmv-sensor.adb
corentingay/adaboy
68f08afa246c8255a42897376d375edcb4e2efc2
[ "MIT" ]
null
null
null
project/adl/boards/OpenMV2/src/openmv-sensor.adb
corentingay/adaboy
68f08afa246c8255a42897376d375edcb4e2efc2
[ "MIT" ]
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 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 STM32.DCMI; with STM32.DMA; use STM32.DMA; with Ada.Real_Time; use Ada.Real_Time; with OV2640; use OV2640; with OV7725; use OV7725; with HAL.I2C; use HAL.I2C; with HAL.Bitmap; use HAL.Bitmap; with HAL; use HAL; with STM32.PWM; use STM32.PWM; with STM32.Setup; package body OpenMV.Sensor is package DCMI renames STM32.DCMI; function Probe (Cam_Addr : out UInt10) return Boolean; REG_PID : constant := 16#0A#; -- REG_VER : constant := 16#0B#; CLK_PWM_Mod : PWM_Modulator; Camera_PID : HAL.UInt8 := 0; Camera_2640 : OV2640_Camera (Sensor_I2C'Access); Camera_7725 : OV7725_Camera (Sensor_I2C'Access); Is_Initialized : Boolean := False; ----------------- -- Initialized -- ----------------- function Initialized return Boolean is (Is_Initialized); ----------- -- Probe -- ----------- function Probe (Cam_Addr : out UInt10) return Boolean is Status : I2C_Status; begin for Addr in UInt10 range 0 .. 126 loop Sensor_I2C.Master_Transmit (Addr => Addr, Data => (0 => 0), Status => Status, Timeout => 10_000); if Status = Ok then Cam_Addr := Addr; return True; end if; delay until Clock + Milliseconds (1); end loop; return False; end Probe; ---------------- -- Initialize -- ---------------- procedure Initialize is procedure Initialize_Clock; procedure Initialize_Camera; procedure Initialize_IO; procedure Initialize_DCMI; procedure Initialize_DMA; ---------------------- -- Initialize_Clock -- ---------------------- procedure Initialize_Clock is begin Configure_PWM_Timer (SENSOR_CLK_TIM'Access, SENSOR_CLK_FREQ); CLK_PWM_Mod.Attach_PWM_Channel (Generator => SENSOR_CLK_TIM'Access, Channel => SENSOR_CLK_CHAN, Point => SENSOR_CLK_IO, PWM_AF => SENSOR_CLK_AF); CLK_PWM_Mod.Set_Duty_Cycle (Value => 50); CLK_PWM_Mod.Enable_Output; end Initialize_Clock; ----------------------- -- Initialize_Camera -- ----------------------- procedure Initialize_Camera is Cam_Addr : UInt10; Data : I2C_Data (1 .. 1); Status : I2C_Status; begin -- Power cycle Set (DCMI_PWDN); delay until Clock + Milliseconds (10); Clear (DCMI_PWDN); delay until Clock + Milliseconds (10); Initialize_Clock; Set (DCMI_RST); delay until Clock + Milliseconds (10); Clear (DCMI_RST); delay until Clock + Milliseconds (10); if not Probe (Cam_Addr) then -- Retry with reversed reset polarity Set (DCMI_RST); delay until Clock + Milliseconds (10); if not Probe (Cam_Addr) then raise Program_Error; end if; end if; delay until Clock + Milliseconds (10); -- Select sensor bank Sensor_I2C.Mem_Write (Addr => Cam_Addr, Mem_Addr => 16#FF#, Mem_Addr_Size => Memory_Size_8b, Data => (0 => 1), Status => Status); if Status /= Ok then raise Program_Error; end if; delay until Clock + Milliseconds (10); Sensor_I2C.Master_Transmit (Addr => Cam_Addr, Data => (1 => REG_PID), Status => Status); if Status /= Ok then raise Program_Error; end if; Sensor_I2C.Master_Receive (Addr => Cam_Addr, Data => Data, Status => Status); if Status /= Ok then raise Program_Error; end if; if Status /= Ok then raise Program_Error; end if; Camera_PID := Data (Data'First); case Camera_PID is when OV2640_PID => Initialize (Camera_2640, Cam_Addr); Set_Pixel_Format (Camera_2640, Pix_RGB565); Set_Frame_Size (Camera_2640, QQVGA2); when OV7725_PID => Initialize (Camera_7725, Cam_Addr); Set_Pixel_Format (Camera_7725, Pix_RGB565); Set_Frame_Size (Camera_7725, QQVGA2); when others => raise Program_Error with "Unknown camera module"; end case; end Initialize_Camera; ------------------- -- Initialize_IO -- ------------------- procedure Initialize_IO is GPIO_Conf : GPIO_Port_Configuration; DCMI_AF_Points : constant GPIO_Points := GPIO_Points'(DCMI_D0, DCMI_D1, DCMI_D2, DCMI_D3, DCMI_D4, DCMI_D5, DCMI_D6, DCMI_D7, DCMI_VSYNC, DCMI_HSYNC, DCMI_PCLK); DCMI_Out_Points : GPIO_Points := GPIO_Points'(DCMI_PWDN, DCMI_RST, FS_IN); begin STM32.Setup.Setup_I2C_Master (Port => Sensor_I2C, SDA => Sensor_I2C_SDA, SCL => Sensor_I2C_SCL, SDA_AF => Sensor_I2C_AF, SCL_AF => Sensor_I2C_AF, Clock_Speed => 100_000); Enable_Clock (DCMI_Out_Points); -- Sensor PowerDown, Reset and FSIN GPIO_Conf := (Mode => Mode_Out, Output_Type => Push_Pull, Speed => Speed_100MHz, -- not specified in previous version of this module Resistors => Pull_Down); Configure_IO (DCMI_Out_Points, GPIO_Conf); Clear (DCMI_Out_Points); GPIO_Conf := (Mode => Mode_AF, AF => GPIO_AF_DCMI_13, AF_Speed => Speed_100MHz, -- not specified in previous version of this module AF_Output_Type => Push_Pull, Resistors => Pull_Down); Configure_IO (DCMI_AF_Points, GPIO_Conf); end Initialize_IO; --------------------- -- Initialize_DCMI -- --------------------- procedure Initialize_DCMI is Vertical : DCMI.DCMI_Polarity; Horizontal : DCMI.DCMI_Polarity; Pixel_Clock : DCMI.DCMI_Polarity; begin case Camera_PID is when OV2640_PID => Vertical := DCMI.Active_Low; Horizontal := DCMI.Active_Low; Pixel_Clock := DCMI.Active_High; when OV7725_PID => Vertical := DCMI.Active_High; Horizontal := DCMI.Active_Low; Pixel_Clock := DCMI.Active_High; when others => raise Program_Error with "Unknown camera module"; end case; Enable_DCMI_Clock; DCMI.Configure (Data_Mode => DCMI.DCMI_8bit, Capture_Rate => DCMI.Capture_All, Vertical_Polarity => Vertical, Horizontal_Polarity => Horizontal, Pixel_Clock_Polarity => Pixel_Clock, Hardware_Sync => True, JPEG => False); DCMI.Disable_Crop; DCMI.Enable_DCMI; end Initialize_DCMI; -------------------- -- Initialize_DMA -- -------------------- procedure Initialize_DMA is Config : DMA_Stream_Configuration; begin Enable_Clock (Sensor_DMA); Config.Channel := Sensor_DMA_Chan; Config.Direction := Peripheral_To_Memory; Config.Increment_Peripheral_Address := False; Config.Increment_Memory_Address := True; Config.Peripheral_Data_Format := Words; Config.Memory_Data_Format := Words; Config.Operation_Mode := Normal_Mode; Config.Priority := Priority_High; Config.FIFO_Enabled := True; Config.FIFO_Threshold := FIFO_Threshold_Full_Configuration; Config.Memory_Burst_Size := Memory_Burst_Inc4; Config.Peripheral_Burst_Size := Peripheral_Burst_Single; Configure (Sensor_DMA, Sensor_DMA_Stream, Config); end Initialize_DMA; begin Initialize_IO; Initialize_Camera; Initialize_DCMI; Initialize_DMA; Is_Initialized := True; end Initialize; -------------- -- Snapshot -- -------------- procedure Snapshot (BM : not null HAL.Bitmap.Any_Bitmap_Buffer) is Status : DMA_Error_Code; Cnt : constant UInt16 := UInt16 ((BM.Width * BM.Height) / 2); begin if BM.Width /= Image_Width or else BM.Height /= Image_Height or else not BM.Mapped_In_RAM then raise Program_Error; end if; if not Compatible_Alignments (Sensor_DMA, Sensor_DMA_Stream, DCMI.Data_Register_Address, BM.Memory_Address) then raise Program_Error; end if; Sensor_DMA_Int.Start_Transfer (Source => DCMI.Data_Register_Address, Destination => BM.Memory_Address, Data_Count => Cnt); DCMI.Start_Capture (DCMI.Snapshot); Sensor_DMA_Int.Wait_For_Completion (Status); if Status /= DMA_No_Error then if Status = DMA_Timeout_Error then raise Program_Error with "DMA timeout! Transferred: " & Items_Transferred (Sensor_DMA, Sensor_DMA_Stream)'Img; else raise Program_Error; end if; end if; end Snapshot; end OpenMV.Sensor;
36.263006
107
0.512951
391b5ac105d9e3094deeb1ff115f25cc57b538dd
35,495
adb
Ada
apps/hls_examples/camera_ready_synthesis/app_files/big_apps_8_shifts/conv2d_b2b/conv2d_b2b/hls_target/.autopilot/db/call_1.adb
dillonhuff/Halide-HLS
e9f4c3ac7915e5a52f211ce65004ae17890515a0
[ "MIT" ]
1
2020-06-18T16:51:39.000Z
2020-06-18T16:51:39.000Z
apps/hls_examples/camera_ready_synthesis/app_files/big_apps_8_shifts/conv2d_b2b/conv2d_b2b/hls_target/.autopilot/db/call_1.adb
dillonhuff/Halide-HLS
e9f4c3ac7915e5a52f211ce65004ae17890515a0
[ "MIT" ]
null
null
null
apps/hls_examples/camera_ready_synthesis/app_files/big_apps_8_shifts/conv2d_b2b/conv2d_b2b/hls_target/.autopilot/db/call_1.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/> <cdfg class_id="1" tracking_level="1" version="0" object_id="_0"> <name>call_1</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/> <fileDirectory/> <lineNumber>0</lineNumber> <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/> <coreName>FIFO_SRL</coreName> </Obj> <bitwidth>32</bitwidth> </Value> <direction>0</direction> <if_type>3</if_type> <array_size>0</array_size> <bit_vecs class_id="7" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_2"> <Value> <Obj> <type>1</type> <id>2</id> <name>out_stream_V_value_V</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>out_stream.V.value.V</originalName> <rtlName/> <coreName>FIFO_SRL</coreName> </Obj> <bitwidth>128</bitwidth> </Value> <direction>1</direction> <if_type>3</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> </ports> <nodes class_id="8" tracking_level="0" version="0"> <count>4</count> <item_version>0</item_version> <item class_id="9" tracking_level="1" version="0" object_id="_3"> <Value> <Obj> <type>0</type> <id>8</id> <name>slice_stream_V_value</name> <fileName>../../../lib_files/Linebuffer.h</fileName> <fileDirectory>..</fileDirectory> <lineNumber>172</lineNumber> <contextFuncName>call</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item class_id="10" tracking_level="0" version="0"> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_8_shifts/conv2d_b2b</first> <second class_id="11" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="12" tracking_level="0" version="0"> <first class_id="13" tracking_level="0" version="0"> <first>../../../lib_files/Linebuffer.h</first> <second>call</second> </first> <second>172</second> </item> </second> </item> </inlineStackInfo> <originalName>slice_stream.V.value.V</originalName> <rtlName>slice_stream_V_value_U</rtlName> <coreName>FIFO_SRL</coreName> </Obj> <bitwidth>64</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>17</item> </oprand_edges> <opcode>alloca</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_4"> <Value> <Obj> <type>0</type> <id>12</id> <name/> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName>call_Loop_LB2D_buf_p_1_U0</rtlName> <coreName/> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>19</item> <item>20</item> <item>21</item> </oprand_edges> <opcode>call</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_5"> <Value> <Obj> <type>0</type> <id>13</id> <name/> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName>call_Loop_LB2D_shift_1_U0</rtlName> <coreName/> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>5</count> <item_version>0</item_version> <item>23</item> <item>24</item> <item>25</item> <item>135</item> <item>136</item> </oprand_edges> <opcode>call</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_6"> <Value> <Obj> <type>0</type> <id>14</id> <name/> <fileName>../../../lib_files/Linebuffer.h</fileName> <fileDirectory>..</fileDirectory> <lineNumber>219</lineNumber> <contextFuncName>call</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_8_shifts/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>../../../lib_files/Linebuffer.h</first> <second>call</second> </first> <second>219</second> </item> </second> </item> </inlineStackInfo> <originalName/> <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>3</count> <item_version>0</item_version> <item class_id="16" tracking_level="1" version="0" object_id="_7"> <Value> <Obj> <type>2</type> <id>16</id> <name>empty</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>64</bitwidth> </Value> <const_type>0</const_type> <content>1</content> </item> <item class_id_reference="16" object_id="_8"> <Value> <Obj> <type>2</type> <id>18</id> <name>call_Loop_LB2D_buf_p_1</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> <const_type>6</const_type> <content>&lt;constant:call_Loop_LB2D_buf_p.1&gt;</content> </item> <item class_id_reference="16" object_id="_9"> <Value> <Obj> <type>2</type> <id>22</id> <name>call_Loop_LB2D_shift_1</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> <const_type>6</const_type> <content>&lt;constant:call_Loop_LB2D_shift.1&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="_10"> <Obj> <type>3</type> <id>15</id> <name>call.1</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <node_objs> <count>4</count> <item_version>0</item_version> <item>8</item> <item>12</item> <item>13</item> <item>14</item> </node_objs> </item> </blocks> <edges class_id="19" tracking_level="0" version="0"> <count>9</count> <item_version>0</item_version> <item class_id="20" tracking_level="1" version="0" object_id="_11"> <id>17</id> <edge_type>1</edge_type> <source_obj>16</source_obj> <sink_obj>8</sink_obj> </item> <item class_id_reference="20" object_id="_12"> <id>19</id> <edge_type>1</edge_type> <source_obj>18</source_obj> <sink_obj>12</sink_obj> </item> <item class_id_reference="20" object_id="_13"> <id>20</id> <edge_type>1</edge_type> <source_obj>1</source_obj> <sink_obj>12</sink_obj> </item> <item class_id_reference="20" object_id="_14"> <id>21</id> <edge_type>1</edge_type> <source_obj>8</source_obj> <sink_obj>12</sink_obj> </item> <item class_id_reference="20" object_id="_15"> <id>23</id> <edge_type>1</edge_type> <source_obj>22</source_obj> <sink_obj>13</sink_obj> </item> <item class_id_reference="20" object_id="_16"> <id>24</id> <edge_type>1</edge_type> <source_obj>8</source_obj> <sink_obj>13</sink_obj> </item> <item class_id_reference="20" object_id="_17"> <id>25</id> <edge_type>1</edge_type> <source_obj>2</source_obj> <sink_obj>13</sink_obj> </item> <item class_id_reference="20" object_id="_18"> <id>135</id> <edge_type>4</edge_type> <source_obj>12</source_obj> <sink_obj>13</sink_obj> </item> <item class_id_reference="20" object_id="_19"> <id>136</id> <edge_type>4</edge_type> <source_obj>12</source_obj> <sink_obj>13</sink_obj> </item> </edges> </cdfg> <cdfg_regions class_id="21" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="22" tracking_level="1" version="0" object_id="_20"> <mId>1</mId> <mTag>call.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>15</item> </basic_blocks> <mII>-1</mII> <mDepth>-1</mDepth> <mMinTripCount>-1</mMinTripCount> <mMaxTripCount>-1</mMaxTripCount> <mMinLatency>2071917</mMinLatency> <mMaxLatency>-1</mMaxLatency> <mIsDfPipe>1</mIsDfPipe> <mDfPipe class_id="23" tracking_level="1" version="0" object_id="_21"> <port_list class_id="24" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </port_list> <process_list class_id="25" tracking_level="0" version="0"> <count>2</count> <item_version>0</item_version> <item class_id="26" tracking_level="1" version="0" object_id="_22"> <type>0</type> <name>call_Loop_LB2D_buf_p_1_U0</name> <ssdmobj_id>12</ssdmobj_id> <pins class_id="27" tracking_level="0" version="0"> <count>2</count> <item_version>0</item_version> <item class_id="28" tracking_level="1" version="0" object_id="_23"> <port class_id="29" tracking_level="1" version="0" object_id="_24"> <name>in_stream_V_value_V</name> <dir>0</dir> <type>0</type> </port> <inst class_id="30" tracking_level="1" version="0" object_id="_25"> <type>0</type> <name>call_Loop_LB2D_buf_p_1_U0</name> <ssdmobj_id>12</ssdmobj_id> </inst> </item> <item class_id_reference="28" object_id="_26"> <port class_id_reference="29" object_id="_27"> <name>slice_stream_V_value_V</name> <dir>0</dir> <type>1</type> </port> <inst class_id_reference="30" object_id_reference="_25"/> </item> </pins> </item> <item class_id_reference="26" object_id="_28"> <type>0</type> <name>call_Loop_LB2D_shift_1_U0</name> <ssdmobj_id>13</ssdmobj_id> <pins> <count>2</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_29"> <port class_id_reference="29" object_id="_30"> <name>slice_stream_V_value_V</name> <dir>0</dir> <type>0</type> </port> <inst class_id_reference="30" object_id="_31"> <type>0</type> <name>call_Loop_LB2D_shift_1_U0</name> <ssdmobj_id>13</ssdmobj_id> </inst> </item> <item class_id_reference="28" object_id="_32"> <port class_id_reference="29" object_id="_33"> <name>out_stream_V_value_V</name> <dir>0</dir> <type>1</type> </port> <inst class_id_reference="30" object_id_reference="_31"/> </item> </pins> </item> </process_list> <channel_list class_id="31" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="32" tracking_level="1" version="0" object_id="_34"> <type>1</type> <name>slice_stream_V_value</name> <ssdmobj_id>8</ssdmobj_id> <ctype>0</ctype> <depth>1</depth> <bitwidth>64</bitwidth> <source class_id_reference="28" object_id="_35"> <port class_id_reference="29" object_id="_36"> <name>in</name> <dir>3</dir> <type>0</type> </port> <inst class_id_reference="30" object_id_reference="_25"/> </source> <sink class_id_reference="28" object_id="_37"> <port class_id_reference="29" object_id="_38"> <name>out</name> <dir>3</dir> <type>1</type> </port> <inst class_id_reference="30" object_id_reference="_31"/> </sink> </item> </channel_list> <net_list class_id="33" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </net_list> </mDfPipe> </item> </cdfg_regions> <fsm class_id="34" tracking_level="1" version="0" object_id="_39"> <states class_id="35" tracking_level="0" version="0"> <count>4</count> <item_version>0</item_version> <item class_id="36" tracking_level="1" version="0" object_id="_40"> <id>1</id> <operations class_id="37" tracking_level="0" version="0"> <count>2</count> <item_version>0</item_version> <item class_id="38" tracking_level="1" version="0" object_id="_41"> <id>8</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="38" object_id="_42"> <id>12</id> <stage>2</stage> <latency>2</latency> </item> </operations> </item> <item class_id_reference="36" object_id="_43"> <id>2</id> <operations> <count>1</count> <item_version>0</item_version> <item class_id_reference="38" object_id="_44"> <id>12</id> <stage>1</stage> <latency>2</latency> </item> </operations> </item> <item class_id_reference="36" object_id="_45"> <id>3</id> <operations> <count>1</count> <item_version>0</item_version> <item class_id_reference="38" object_id="_46"> <id>13</id> <stage>2</stage> <latency>2</latency> </item> </operations> </item> <item class_id_reference="36" object_id="_47"> <id>4</id> <operations> <count>10</count> <item_version>0</item_version> <item class_id_reference="38" object_id="_48"> <id>3</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="38" object_id="_49"> <id>4</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="38" object_id="_50"> <id>5</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="38" object_id="_51"> <id>6</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="38" object_id="_52"> <id>7</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="38" object_id="_53"> <id>9</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="38" object_id="_54"> <id>10</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="38" object_id="_55"> <id>11</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="38" object_id="_56"> <id>13</id> <stage>1</stage> <latency>2</latency> </item> <item class_id_reference="38" object_id="_57"> <id>14</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> </states> <transitions class_id="39" tracking_level="0" version="0"> <count>3</count> <item_version>0</item_version> <item class_id="40" tracking_level="1" version="0" object_id="_58"> <inState>1</inState> <outState>2</outState> <condition class_id="41" tracking_level="0" version="0"> <id>0</id> <sop class_id="42" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="43" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> <item class_id_reference="40" object_id="_59"> <inState>2</inState> <outState>3</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="40" object_id="_60"> <inState>3</inState> <outState>4</outState> <condition> <id>2</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> </transitions> </fsm> <res class_id="44" tracking_level="1" version="0" object_id="_61"> <dp_component_resource class_id="45" tracking_level="0" version="0"> <count>3</count> <item_version>0</item_version> <item class_id="46" tracking_level="0" version="0"> <first>call_Loop_LB2D_buf_p_1_U0 (call_Loop_LB2D_buf_p_1)</first> <second class_id="47" tracking_level="0" version="0"> <count>3</count> <item_version>0</item_version> <item class_id="48" tracking_level="0" version="0"> <first>BRAM</first> <second>4</second> </item> <item> <first>FF</first> <second>209</second> </item> <item> <first>LUT</first> <second>169</second> </item> </second> </item> <item> <first>call_Loop_LB2D_shift_1_U0 (call_Loop_LB2D_shift_1)</first> <second> <count>2</count> <item_version>0</item_version> <item> <first>FF</first> <second>182</second> </item> <item> <first>LUT</first> <second>147</second> </item> </second> </item> <item> <first>start_for_call_Log8j_U (start_for_call_Log8j)</first> <second> <count>0</count> <item_version>0</item_version> </second> </item> </dp_component_resource> <dp_expression_resource> <count>2</count> <item_version>0</item_version> <item> <first>ap_idle ( and ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>1</second> </item> <item> <first>(1P1)</first> <second>1</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>2</second> </item> </second> </item> <item> <first>call_Loop_LB2D_buf_p_1_U0_start_full_n ( or ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>1</second> </item> <item> <first>(1P1)</first> <second>1</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>2</second> </item> </second> </item> </dp_expression_resource> <dp_fifo_resource> <count>1</count> <item_version>0</item_version> <item> <first>slice_stream_V_value_U</first> <second> <count>5</count> <item_version>0</item_version> <item> <first>(0Depth)</first> <second>1</second> </item> <item> <first>(1Bits)</first> <second>64</second> </item> <item> <first>(2Size:D*B)</first> <second>64</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>1</second> </item> </second> </item> </dp_fifo_resource> <dp_memory_resource> <count>0</count> <item_version>0</item_version> </dp_memory_resource> <dp_multiplexer_resource> <count>0</count> <item_version>0</item_version> </dp_multiplexer_resource> <dp_register_resource> <count>0</count> <item_version>0</item_version> </dp_register_resource> <dp_component_map class_id="49" tracking_level="0" version="0"> <count>2</count> <item_version>0</item_version> <item class_id="50" tracking_level="0" version="0"> <first>call_Loop_LB2D_buf_p_1_U0 (call_Loop_LB2D_buf_p_1)</first> <second> <count>1</count> <item_version>0</item_version> <item>12</item> </second> </item> <item> <first>call_Loop_LB2D_shift_1_U0 (call_Loop_LB2D_shift_1)</first> <second> <count>1</count> <item_version>0</item_version> <item>13</item> </second> </item> </dp_component_map> <dp_expression_map> <count>0</count> <item_version>0</item_version> </dp_expression_map> <dp_fifo_map> <count>1</count> <item_version>0</item_version> <item> <first>slice_stream_V_value_U</first> <second> <count>1</count> <item_version>0</item_version> <item>43</item> </second> </item> </dp_fifo_map> <dp_memory_map> <count>0</count> <item_version>0</item_version> </dp_memory_map> </res> <node_label_latency class_id="51" tracking_level="0" version="0"> <count>4</count> <item_version>0</item_version> <item class_id="52" tracking_level="0" version="0"> <first>8</first> <second class_id="53" tracking_level="0" version="0"> <first>0</first> <second>0</second> </second> </item> <item> <first>12</first> <second> <first>0</first> <second>1</second> </second> </item> <item> <first>13</first> <second> <first>2</first> <second>1</second> </second> </item> <item> <first>14</first> <second> <first>3</first> <second>0</second> </second> </item> </node_label_latency> <bblk_ent_exit class_id="54" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="55" tracking_level="0" version="0"> <first>15</first> <second class_id="56" tracking_level="0" version="0"> <first>0</first> <second>3</second> </second> </item> </bblk_ent_exit> <regions class_id="57" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="58" tracking_level="1" version="0" object_id="_62"> <region_name>call.1</region_name> <basic_blocks> <count>1</count> <item_version>0</item_version> <item>15</item> </basic_blocks> <nodes> <count>12</count> <item_version>0</item_version> <item>3</item> <item>4</item> <item>5</item> <item>6</item> <item>7</item> <item>8</item> <item>9</item> <item>10</item> <item>11</item> <item>12</item> <item>13</item> <item>14</item> </nodes> <anchor_node>-1</anchor_node> <region_type>16</region_type> <interval>0</interval> <pipe_depth>0</pipe_depth> </item> </regions> <dp_fu_nodes class_id="59" tracking_level="0" version="0"> <count>3</count> <item_version>0</item_version> <item class_id="60" tracking_level="0" version="0"> <first>36</first> <second> <count>1</count> <item_version>0</item_version> <item>8</item> </second> </item> <item> <first>40</first> <second> <count>2</count> <item_version>0</item_version> <item>12</item> <item>12</item> </second> </item> <item> <first>47</first> <second> <count>2</count> <item_version>0</item_version> <item>13</item> <item>13</item> </second> </item> </dp_fu_nodes> <dp_fu_nodes_expression class_id="62" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="63" tracking_level="0" version="0"> <first>slice_stream_V_value_fu_36</first> <second> <count>1</count> <item_version>0</item_version> <item>8</item> </second> </item> </dp_fu_nodes_expression> <dp_fu_nodes_module> <count>2</count> <item_version>0</item_version> <item> <first>grp_call_Loop_LB2D_buf_p_1_fu_40</first> <second> <count>2</count> <item_version>0</item_version> <item>12</item> <item>12</item> </second> </item> <item> <first>grp_call_Loop_LB2D_shift_1_fu_47</first> <second> <count>2</count> <item_version>0</item_version> <item>13</item> <item>13</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="64" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </dp_mem_port_nodes> <dp_reg_nodes> <count>1</count> <item_version>0</item_version> <item> <first>54</first> <second> <count>1</count> <item_version>0</item_version> <item>8</item> </second> </item> </dp_reg_nodes> <dp_regname_nodes> <count>1</count> <item_version>0</item_version> <item> <first>slice_stream_V_value_reg_54</first> <second> <count>1</count> <item_version>0</item_version> <item>8</item> </second> </item> </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="65" tracking_level="0" version="0"> <count>2</count> <item_version>0</item_version> <item class_id="66" tracking_level="0" version="0"> <first>in_stream_V_value_V</first> <second> <count>1</count> <item_version>0</item_version> <item> <first>call</first> <second> <count>1</count> <item_version>0</item_version> <item>12</item> </second> </item> </second> </item> <item> <first>out_stream_V_value_V</first> <second> <count>1</count> <item_version>0</item_version> <item> <first>call</first> <second> <count>1</count> <item_version>0</item_version> <item>13</item> </second> </item> </second> </item> </dp_port_io_nodes> <port2core class_id="67" tracking_level="0" version="0"> <count>2</count> <item_version>0</item_version> <item class_id="68" tracking_level="0" version="0"> <first>1</first> <second>FIFO_SRL</second> </item> <item> <first>2</first> <second>FIFO_SRL</second> </item> </port2core> <node2core> <count>1</count> <item_version>0</item_version> <item> <first>8</first> <second>FIFO_SRL</second> </item> </node2core> </syndb> </boost_serialization>
32.926716
135
0.481504
504b62c5a7acd6b24a51db8213737ed49601ef5c
1,141
ads
Ada
ada/src/microsoft/parse/parser.ads
Lucretia/interview-questions
5731735847b6a42b848017bde90d107b89617429
[ "BSD-3-Clause" ]
null
null
null
ada/src/microsoft/parse/parser.ads
Lucretia/interview-questions
5731735847b6a42b848017bde90d107b89617429
[ "BSD-3-Clause" ]
null
null
null
ada/src/microsoft/parse/parser.ads
Lucretia/interview-questions
5731735847b6a42b848017bde90d107b89617429
[ "BSD-3-Clause" ]
null
null
null
-- Suppose an arithmetic expression is given as a binary tree. Each leaf is an integer and each internal node is -- one of '+', '−', '∗', or '/'. -- -- Given the root to such a tree, write a function to evaluate it. -- -- For example, given the following tree: -- -- * -- / \ -- + + -- / \ / \ -- 3 2 4 5 -- -- You should return 45, as it is (3 + 2) * (4 + 5). package Parser is type Node_Types is (Empty, Literal, Plus, Minus, Multiply, Divide); type Node (Node_Type : Node_Types) is private; type Node_Ptr is access Node; Null_Node : constant Node; -- Root is the root of the current sub-tree. function Evaluate (Root : in Node_Ptr) return Integer; private type Node (Node_Type : Node_Types) is record case Node_Type is when Empty => null; when Literal => -- Leaf of the tree. Value : Integer; when others => Left : Node_Ptr; Right : Node_Ptr; end case; end record; Null_Node : constant Node := (Node_Type => Empty, others => null); end Parser;
26.534884
113
0.560911
0b9278a8799c1a3257bce82000ded312e4150efc
1,500
ads
Ada
tier-1/xcb/source/thin/xcb-xcb_glx_get_tex_level_parameteriv_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_glx_get_tex_level_parameteriv_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_glx_get_tex_level_parameteriv_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_glx_get_tex_level_parameteriv_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_glx_get_tex_level_parameteriv_cookie_t .Item; -- Pointer -- package C_Pointers is new Interfaces.C.Pointers (Index => Interfaces.C.size_t, Element => xcb.xcb_glx_get_tex_level_parameteriv_cookie_t.Item, Element_Array => xcb.xcb_glx_get_tex_level_parameteriv_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_glx_get_tex_level_parameteriv_cookie_t .Pointer; -- Pointer_Pointer -- package C_Pointer_Pointers is new Interfaces.C.Pointers (Index => Interfaces.C.size_t, Element => xcb.xcb_glx_get_tex_level_parameteriv_cookie_t.Pointer, Element_Array => xcb.xcb_glx_get_tex_level_parameteriv_cookie_t.Pointer_Array, Default_Terminator => null); subtype Pointer_Pointer is C_Pointer_Pointers.Pointer; end xcb.xcb_glx_get_tex_level_parameteriv_cookie_t;
26.315789
78
0.69
1291342fb43cf055c4527f3f85f659cc78a7e1c5
31,675
ads
Ada
bindings/glu.ads
ForYouEyesOnly/Space-Convoy
be4904f6a02695f7c4c5c3c965f4871cd3250003
[ "MIT" ]
1
2019-09-21T09:40:34.000Z
2019-09-21T09:40:34.000Z
bindings/glu.ads
ForYouEyesOnly/Space-Convoy
be4904f6a02695f7c4c5c3c965f4871cd3250003
[ "MIT" ]
null
null
null
bindings/glu.ads
ForYouEyesOnly/Space-Convoy
be4904f6a02695f7c4c5c3c965f4871cd3250003
[ "MIT" ]
1
2019-09-25T12:29:27.000Z
2019-09-25T12:29:27.000Z
-- Change log: -- GdM : 2005, 2006 : Get, Project also in Ada style -- GdM : 29 - Jan - 2004 : added GLU.Get, (glGetdoublev) for GLU's matrices -- GdM : 11 - Apr - 2002 : * adapated to the "GL .. ." and " .. .4x" - less GL -- * "glu .. ." and other useless C prefixes removed -- * removing of " .. .4f" - style siffixes in progress -- Changed by MB for Windows 95, 980529 -- C replaced by Stdcall -- -- OpenGL 1.1 Ada binding, package GLU -- -- W. M. Richards, NiEstu, Phoenix AZ, December 1997 -- -- Converted from Brian Paul's Mesa package glu.h header file, version 2, 5. -- As noted below in Brian's original comments, this code is distributed -- under the terms of the GNU Library General Public License. -- -- Version 0.1, 21 December 1997 -- -- -- Here are the original glu.h comments: -- -- Mesa 3 - D graphics library -- Version : 2.4 -- Copyright (C) 1995 - 1997 Brian Paul -- -- This library is free software; you can redistribute it and/or -- modify it under the terms of the GNU Library General Public -- License as published by the Free Software Foundation; either -- version 2 of the License, or (at your option) any later version. -- -- This library is distributed in the hope that it will be useful, -- but WITHOUT ANY WARRANTY; without even the implied warranty of -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 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 this library; if not, write to the Free -- Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -- with GL; package GLU is VERSION_1_1 : constant := 1; -- The GLU boolean constants GL_FALSE : constant := GL.GL_False; GL_TRUE : constant := GL.GL_True; ------------------------------------------------------------------------------ type Viewport_Rec is record X, Y : aliased GL.Int; Width, Height : aliased GL.Int; end record; type Matrix_Float is array (0 .. 3, 0 .. 3) of aliased GL.C_Float; type Matrix_Double is array (0 .. 3, 0 .. 3) of aliased GL.Double; type Viewport_Ptr is access all Viewport_Rec; type Matrix_Float_Ptr is access all Matrix_Float; type Matrix_Double_Ptr is access all Matrix_Double; type GLUquadricObj is private; type GLUtriangulatorObj is private; type GLUnurbsObj is private; type GLUquadricObjPtr is access all GLUquadricObj; type GLUtriangulatorObjPtr is access all GLUtriangulatorObj; type GLUnurbsObjPtr is access all GLUnurbsObj; ------------------------------------------------------------------------------ -- Error string type ErrorEnm is ( GL_NO_ERROR, GL_INVALID_ENUM, GL_INVALID_VALUE, GL_INVALID_OPERATION, GL_STACK_OVERFLOW, GL_STACK_UNDERFLOW, GL_OUT_OF_MEMORY, GLU_INVALID_ENUM, GLU_INVALID_VALUE, GLU_OUT_OF_MEMORY, GLU_INCOMPATIBLE_GL_VERSION ); for ErrorEnm use ( GL_NO_ERROR => 16#0000#, GL_INVALID_ENUM => 16#0500#, GL_INVALID_VALUE => 16#0501#, GL_INVALID_OPERATION => 16#0502#, GL_STACK_OVERFLOW => 16#0503#, GL_STACK_UNDERFLOW => 16#0504#, GL_OUT_OF_MEMORY => 16#0505#, GLU_INVALID_ENUM => 16#18A24#, GLU_INVALID_VALUE => 16#18A25#, GLU_OUT_OF_MEMORY => 16#18A26#, GLU_INCOMPATIBLE_GL_VERSION => 16#18A27# -- Mesa - specific? ); for ErrorEnm'Size use GL.enum'Size; function ErrorString (errorCode : ErrorEnm) return GL.ubytePtr; function Error_String (errorCode : GL.ErrorEnm) return GL.ubytePtr; -- Scale image function ScaleImage (format : GL.PixelFormatEnm; widthin : GL.Int; heightin : GL.Int; typein : GL.PixelDataTypeEnm; datain : GL.pointer; widthout : GL.Int; heightout : GL.Int; typeout : GL.PixelDataTypeEnm; dataout : GL.pointer) return GL.Int; -- Build mipmaps function Build1DMipmaps (target : GL.TargetTex1DOnlyEnm; components : GL.Int; width : GL.Int; format : GL.TexPixelFormatEnm; c_type : GL.PixelDataTypeEnm; data : GL.pointer) return GL.Int; function Build2DMipmaps (target : GL.TargetTex2DOnlyEnm; components : GL.Int; width : GL.Int; height : GL.Int; format : GL.TexPixelFormatEnm; c_type : GL.PixelDataTypeEnm; data : GL.pointer) return GL.Int; -- Quadric objects type DrawStyleEnm is ( GLU_POINT, GLU_LINE, GLU_FILL, GLU_SILHOUETTE ); for DrawStyleEnm use ( GLU_POINT => 16#186AA#, GLU_LINE => 16#186AB#, GLU_FILL => 16#186AC#, GLU_SILHOUETTE => 16#186AD# ); for DrawStyleEnm'Size use GL.enum'Size; type OrientationEnm is ( GLU_OUTSIDE, GLU_INSIDE ); for OrientationEnm use ( GLU_OUTSIDE => 16#186B4#, GLU_INSIDE => 16#186B5# ); for OrientationEnm'Size use GL.enum'Size; type NormalsEnm is ( GLU_SMOOTH, GLU_FLAT, GLU_NONE ); for NormalsEnm use ( GLU_SMOOTH => 16#186A0#, GLU_FLAT => 16#186A1#, GLU_NONE => 16#186A2# ); for NormalsEnm'Size use GL.enum'Size; type CallbackEnm is ( GLU_ERROR ); for CallbackEnm use ( GLU_ERROR => 16#18707# ); for CallbackEnm'Size use GL.enum'Size; type QuadricCallbackFunction is access procedure (Error : ErrorEnm); function NewQuadric return GLUquadricObjPtr; procedure DeleteQuadric (state : GLUquadricObjPtr); procedure QuadricDrawStyle (quadObject : GLUquadricObjPtr; drawStyle : DrawStyleEnm); procedure QuadricOrientation (quadObject : GLUquadricObjPtr; orientation : OrientationEnm); procedure QuadricNormals (quadObject : GLUquadricObjPtr; normals : NormalsEnm); procedure QuadricTexture (quadObject : GLUquadricObjPtr; textureCoords : GL.GL_Boolean); procedure QuadricCallback (qobj : GLUquadricObjPtr; which : CallbackEnm; fn : QuadricCallbackFunction); procedure Cylinder (qobj : GLUquadricObjPtr; baseRadius : GL.Double; topRadius : GL.Double; height : GL.Double; slices : GL.Int; stacks : GL.Int); procedure Sphere (qobj : GLUquadricObjPtr; radius : GL.Double; slices : GL.Int; stacks : GL.Int); procedure Disk (qobj : GLUquadricObjPtr; innerRadius : GL.Double; outerRadius : GL.Double; slices : GL.Int; loops : GL.Int); procedure PartialDisk (qobj : GLUquadricObjPtr; innerRadius : GL.Double; outerRadius : GL.Double; slices : GL.Int; loops : GL.Int; startAngle : GL.Double; sweepAngle : GL.Double); -- Non - uniform rational B - splines (NURBS) type NurbsPropertyEnm is ( GLU_AUTO_LOAD_MATRIX, GLU_CULLING, GLU_PARAMETRIC_TOLERANCE, GLU_SAMPLING_TOLERANCE, GLU_DISPLAY_MODE, GLU_SAMPLING_METHOD, GLU_U_STEP, GLU_V_STEP ); for NurbsPropertyEnm use ( GLU_AUTO_LOAD_MATRIX => 16#18768#, GLU_CULLING => 16#18769#, GLU_PARAMETRIC_TOLERANCE => 16#1876A#, GLU_SAMPLING_TOLERANCE => 16#1876B#, GLU_DISPLAY_MODE => 16#1876C#, GLU_SAMPLING_METHOD => 16#1876D#, GLU_U_STEP => 16#1876E#, GLU_V_STEP => 16#1876F# ); for NurbsPropertyEnm'Size use GL.enum'Size; type NurbsDisplayModeEnm is ( GLU_FILL, GLU_OUTLINE_POLYGON, GLU_OUTLINE_PATCH ); for NurbsDisplayModeEnm use ( GLU_FILL => 16#186AC#, GLU_OUTLINE_POLYGON => 16#18790#, GLU_OUTLINE_PATCH => 16#18791# ); for NurbsDisplayModeEnm'Size use GL.enum'Size; -- NURBS property values GLU_PATH_LENGTH : constant := 16#18777#; GLU_PARAMETRIC_ERROR : constant := 16#18778#; GLU_DOMAIN_DISTANCE : constant := 16#18779#; type NurbsErrorEnm is ( GLU_NURBS_ERROR1, -- spline order un - supported , GLU_NURBS_ERROR2, -- too few knots , GLU_NURBS_ERROR3, -- valid knot range is empty , GLU_NURBS_ERROR4, -- decreasing knot sequence , GLU_NURBS_ERROR5, -- knot multiplicity > spline order , GLU_NURBS_ERROR6, -- endcurve () must follow bgncurve () , GLU_NURBS_ERROR7, -- bgncurve () must precede endcurve () , GLU_NURBS_ERROR8, -- ctrlarray or knot vector is NULL , GLU_NURBS_ERROR9, -- can't draw pwlcurves , GLU_NURBS_ERROR10, -- missing gluNurbsCurve () , GLU_NURBS_ERROR11, -- missing gluNurbsSurface () , GLU_NURBS_ERROR12, -- endtrim () must precede endsurface () , GLU_NURBS_ERROR13, -- bgnsurface () must precede endsurface () , GLU_NURBS_ERROR14, -- curve of improper type passed as trim curve , GLU_NURBS_ERROR15, -- bgnsurface () must precede bgntrim () , GLU_NURBS_ERROR16, -- endtrim () must follow bgntrim () , GLU_NURBS_ERROR17, -- bgntrim () must precede endtrim (), GLU_NURBS_ERROR18, -- invalid or missing trim curve, GLU_NURBS_ERROR19, -- bgntrim () must precede pwlcurve () , GLU_NURBS_ERROR20, -- pwlcurve referenced twice, GLU_NURBS_ERROR21, -- pwlcurve and nurbscurve mixed , GLU_NURBS_ERROR22, -- improper usage of trim data type , GLU_NURBS_ERROR23, -- nurbscurve referenced twice , GLU_NURBS_ERROR24, -- nurbscurve and pwlcurve mixed , GLU_NURBS_ERROR25, -- nurbssurface referenced twice , GLU_NURBS_ERROR26, -- invalid property , GLU_NURBS_ERROR27, -- endsurface () must follow bgnsurface () , GLU_NURBS_ERROR28, -- intersecting or misoriented trim curves , GLU_NURBS_ERROR29, -- intersecting trim curves , GLU_NURBS_ERROR30, -- UNUSED , GLU_NURBS_ERROR31, -- unconnected trim curves , GLU_NURBS_ERROR32, -- unknown knot error , GLU_NURBS_ERROR33, -- negative vertex count encountered , GLU_NURBS_ERROR34, -- negative byte - stride , GLU_NURBS_ERROR35, -- unknown type descriptor , GLU_NURBS_ERROR36, -- null control point reference , GLU_NURBS_ERROR37 -- duplicate point on pwlcurve ); for NurbsErrorEnm use ( GLU_NURBS_ERROR1 => 16#1879B#, GLU_NURBS_ERROR2 => 16#1879C#, GLU_NURBS_ERROR3 => 16#1879D#, GLU_NURBS_ERROR4 => 16#1879E#, GLU_NURBS_ERROR5 => 16#1879F#, GLU_NURBS_ERROR6 => 16#187A0#, GLU_NURBS_ERROR7 => 16#187A1#, GLU_NURBS_ERROR8 => 16#187A2#, GLU_NURBS_ERROR9 => 16#187A3#, GLU_NURBS_ERROR10 => 16#187A4#, GLU_NURBS_ERROR11 => 16#187A5#, GLU_NURBS_ERROR12 => 16#187A6#, GLU_NURBS_ERROR13 => 16#187A7#, GLU_NURBS_ERROR14 => 16#187A8#, GLU_NURBS_ERROR15 => 16#187A9#, GLU_NURBS_ERROR16 => 16#187AA#, GLU_NURBS_ERROR17 => 16#187AB#, GLU_NURBS_ERROR18 => 16#187AC#, GLU_NURBS_ERROR19 => 16#187AD#, GLU_NURBS_ERROR20 => 16#187AE#, GLU_NURBS_ERROR21 => 16#187AF#, GLU_NURBS_ERROR22 => 16#187B0#, GLU_NURBS_ERROR23 => 16#187B1#, GLU_NURBS_ERROR24 => 16#187B2#, GLU_NURBS_ERROR25 => 16#187B3#, GLU_NURBS_ERROR26 => 16#187B4#, GLU_NURBS_ERROR27 => 16#187B5#, GLU_NURBS_ERROR28 => 16#187B6#, GLU_NURBS_ERROR29 => 16#187B7#, GLU_NURBS_ERROR30 => 16#187B8#, GLU_NURBS_ERROR31 => 16#187B9#, GLU_NURBS_ERROR32 => 16#187BA#, GLU_NURBS_ERROR33 => 16#187BB#, GLU_NURBS_ERROR34 => 16#187BC#, GLU_NURBS_ERROR35 => 16#187BD#, GLU_NURBS_ERROR36 => 16#187BE#, GLU_NURBS_ERROR37 => 16#187BF# ); for NurbsErrorEnm'Size use GL.enum'Size; type PwlCurveTypeEnm is ( GLU_MAP1_TRIM_2, GLU_MAP1_TRIM_3 ); for PwlCurveTypeEnm use ( GLU_MAP1_TRIM_2 => 16#18772#, GLU_MAP1_TRIM_3 => 16#18773# ); for PwlCurveTypeEnm'Size use GL.enum'Size; type NurbsCallbackFunction is access procedure (Error : NurbsErrorEnm); function NewNurbsRenderer return GLUnurbsObjPtr; procedure DeleteNurbsRenderer (nobj : GLUnurbsObjPtr); procedure LoadSamplingMatrices (nobj : GLUnurbsObjPtr; modelMatrix : Matrix_Float_Ptr; projMatrix : Matrix_Float_Ptr; viewport : Viewport_Ptr); procedure NurbsProperty (nobj : GLUnurbsObjPtr; property : NurbsPropertyEnm; value : GL.C_Float); procedure GetNurbsProperty (nobj : GLUnurbsObjPtr; property : NurbsPropertyEnm; value : GL.floatPtr); procedure BeginCurve (nobj : GLUnurbsObjPtr); procedure EndCurve (nobj : GLUnurbsObjPtr); procedure NurbsCurve (nobj : GLUnurbsObjPtr; nknots : GL.Int; knot : GL.floatPtr; stride : GL.Int; ctlarray : GL.floatPtr; order : GL.Int; c_type : GL.Map1TargetEnm); procedure BeginSurface (nobj : GLUnurbsObjPtr); procedure EndSurface (nobj : GLUnurbsObjPtr); procedure NurbsSurface (nobj : GLUnurbsObjPtr; sknot_count : GL.Int; sknot : GL.floatPtr; tknot_count : GL.Int; tknot : GL.floatPtr; s_stride : GL.Int; t_stride : GL.Int; ctlarray : GL.floatPtr; sorder : GL.Int; torder : GL.Int; c_type : GL.Map2TargetEnm); procedure BeginTrim (nobj : GLUnurbsObjPtr); procedure EndTrim (nobj : GLUnurbsObjPtr); procedure PwlCurve (nobj : GLUnurbsObjPtr; count : GL.Int; c_array : GL.floatPtr; stride : GL.Int; c_type : PwlCurveTypeEnm); procedure NurbsCallback (nobj : GLUnurbsObjPtr; which : CallbackEnm; fn : NurbsCallbackFunction); -- Polygon tesselation type TessCallbackEnm is ( GLU_BEGIN, GLU_VERTEX, GLU_END, GLU_ERROR, GLU_EDGE_FLAG ); for TessCallbackEnm use ( GLU_BEGIN => 16#18704#, -- Note : some implementations use "GLU_TESS_ .. ." GLU_VERTEX => 16#18705#, GLU_END => 16#18706#, GLU_ERROR => 16#18707#, GLU_EDGE_FLAG => 16#18708# ); for TessCallbackEnm'Size use GL.enum'Size; type TessBeginEnm is ( GL_LINE_LOOP, GL_TRIANGLES, GL_TRIANGLE_STRIP, GL_TRIANGLE_FAN ); for TessBeginEnm use ( GL_LINE_LOOP => 16#0002#, GL_TRIANGLES => 16#0004#, GL_TRIANGLE_STRIP => 16#0005#, GL_TRIANGLE_FAN => 16#0006# ); for TessBeginEnm'Size use GL.enum'Size; type TessBeginCallbackFunction is access procedure (ObjType : TessBeginEnm); type TessVertexCallbackFunction is access procedure (VertexData : GL.pointer); type TessEndCallbackFunction is access procedure; type TessErrorEnm is ( GLU_TESS_ERROR1, -- missing gluEndPolygon , GLU_TESS_ERROR2, -- missing gluBeginPolygon , GLU_TESS_ERROR3, -- misoriented contour , GLU_TESS_ERROR4, -- vertex/edge intersection , GLU_TESS_ERROR5, -- misoriented or self - intersecting loops , GLU_TESS_ERROR6, -- coincident vertices , GLU_TESS_ERROR7, -- all vertices collinear , GLU_TESS_ERROR8, -- intersecting edges , GLU_TESS_ERROR9 -- not coplanar contours ); for TessErrorEnm use ( GLU_TESS_ERROR1 => 16#18737#, GLU_TESS_ERROR2 => 16#18738#, GLU_TESS_ERROR3 => 16#18739#, GLU_TESS_ERROR4 => 16#1873A#, GLU_TESS_ERROR5 => 16#1873B#, GLU_TESS_ERROR6 => 16#1873C#, GLU_TESS_ERROR7 => 16#1873D#, GLU_TESS_ERROR8 => 16#1873E#, GLU_TESS_ERROR9 => 16#1873F# ); for TessErrorEnm'Size use GL.enum'Size; type TessErrorCallbackFunction is access procedure (Error : TessErrorEnm); type TessEdgeFlagCallbackFunction is access procedure (Flag : GL.GL_Boolean); type ContourTypeEnm is ( GLU_CW, GLU_CCW, GLU_INTERIOR, GLU_EXTERIOR, GLU_UNKNOWN ); for ContourTypeEnm use ( GLU_CW => 16#18718#, GLU_CCW => 16#18719#, GLU_INTERIOR => 16#1871A#, GLU_EXTERIOR => 16#1871B#, GLU_UNKNOWN => 16#1871C# ); for ContourTypeEnm'Size use GL.enum'Size; function NewTess return GLUtriangulatorObjPtr; procedure TessCallback (tobj : GLUtriangulatorObjPtr; which : TessCallbackEnm; fn : TessBeginCallbackFunction); procedure TessCallback (tobj : GLUtriangulatorObjPtr; which : TessCallbackEnm; fn : TessVertexCallbackFunction); procedure TessCallback (tobj : GLUtriangulatorObjPtr; which : TessCallbackEnm; fn : TessEndCallbackFunction); procedure TessCallback (tobj : GLUtriangulatorObjPtr; which : TessCallbackEnm; fn : TessErrorCallbackFunction); procedure TessCallback (tobj : GLUtriangulatorObjPtr; which : TessCallbackEnm; fn : TessEdgeFlagCallbackFunction); procedure DeleteTess (tobj : GLUtriangulatorObjPtr); procedure BeginPolygon (tobj : GLUtriangulatorObjPtr); procedure EndPolygon (tobj : GLUtriangulatorObjPtr); procedure NextContour (tobj : GLUtriangulatorObjPtr; c_type : ContourTypeEnm); procedure TessVertex (tobj : GLUtriangulatorObjPtr; v : GL.doublePtr; data : GL.pointer); -- GLU strings type StringEnm is ( GLU_VERSION, GLU_EXTENSIONS ); for StringEnm use ( GLU_VERSION => 16#189C0#, GLU_EXTENSIONS => 16#189C1# ); for StringEnm'Size use GL.enum'Size; function GetString (name : StringEnm) return GL.ubytePtr; -- Projections procedure LookAt (eyex : GL.Double; eyey : GL.Double; eyez : GL.Double; centerx : GL.Double; centery : GL.Double; centerz : GL.Double; upx : GL.Double; upy : GL.Double; upz : GL.Double); procedure Ortho2D (left : GL.Double; right : GL.Double; bottom : GL.Double; top : GL.Double); procedure Perspective (fovy : GL.Double; aspect : GL.Double; zNear : GL.Double; zFar : GL.Double); procedure PickMatrix (x : GL.Double; y : GL.Double; width : GL.Double; height : GL.Double; viewport : Viewport_Ptr); function Project (objx : GL.Double; objy : GL.Double; objz : GL.Double; modelMatrix : Matrix_Double_Ptr; projMatrix : Matrix_Double_Ptr; viewport : Viewport_Ptr; winx : GL.doublePtr; winy : GL.doublePtr; winz : GL.doublePtr) return GL.Int; pragma Import (Stdcall, Project, "gluProject"); -- Project, Ada style procedure Project (objx : GL.Double; objy : GL.Double; objz : GL.Double; modelMatrix : Matrix_Double; projMatrix : Matrix_Double; viewport : Viewport_Rec; winx : out GL.Double; winy : out GL.Double; winz : out GL.Double; result : out Boolean); function UnProject (winx : GL.Double; winy : GL.Double; winz : GL.Double; modelMatrix : Matrix_Double_Ptr; projMatrix : Matrix_Double_Ptr; viewport : Viewport_Ptr; objx : GL.doublePtr; objy : GL.doublePtr; objz : GL.doublePtr) return GL.Int; -- GLU.Get's procedure Get (pname : GL.ParameterNameEnm; params : Matrix_Double_Ptr); procedure Get (pname : GL.ParameterNameEnm; params : out Matrix_Double); procedure Get (pname : GL.ParameterNameEnm; params : Viewport_Ptr); procedure Get (params : out Viewport_Rec); ------------------------------------------------------------------------------ private type GLUquadricObj is record null; end record; type GLUtriangulatorObj is record null; end record; type GLUnurbsObj is record null; end record; pragma Import (Stdcall, LookAt, "gluLookAt"); pragma Import (Stdcall, Ortho2D, "gluOrtho2D"); pragma Import (Stdcall, Perspective, "gluPerspective"); pragma Import (Stdcall, PickMatrix, "gluPickMatrix"); -- pragma Import (Stdcall, Project, "gluProject"); pragma Import (Stdcall, UnProject, "gluUnProject"); function ErrorString_1 (errorCode : ErrorEnm) return GL.ubytePtr; function ErrorString (errorCode : ErrorEnm) return GL.ubytePtr renames ErrorString_1; pragma Import (Stdcall, ErrorString_1, "gluErrorString"); function ErrorString_2 (errorCode : GL.ErrorEnm) return GL.ubytePtr; function Error_String (errorCode : GL.ErrorEnm) return GL.ubytePtr renames ErrorString_2; pragma Import (Stdcall, ErrorString_2, "gluErrorString"); pragma Import (Stdcall, ScaleImage, "gluScaleImage"); pragma Import (Stdcall, Build1DMipmaps, "gluBuild1DMipmaps"); pragma Import (Stdcall, Build2DMipmaps, "gluBuild2DMipmaps"); pragma Import (Stdcall, NewQuadric, "gluNewQuadric"); pragma Import (Stdcall, DeleteQuadric, "gluDeleteQuadric"); pragma Import (Stdcall, QuadricDrawStyle, "gluQuadricDrawStyle"); pragma Import (Stdcall, QuadricOrientation, "gluQuadricOrientation"); pragma Import (Stdcall, QuadricNormals, "gluQuadricNormals"); pragma Import (Stdcall, QuadricTexture, "gluQuadricTexture"); pragma Import (Stdcall, QuadricCallback, "gluQuadricCallback"); pragma Import (Stdcall, Cylinder, "gluCylinder"); pragma Import (Stdcall, Sphere, "gluSphere"); pragma Import (Stdcall, Disk, "gluDisk"); pragma Import (Stdcall, PartialDisk, "gluPartialDisk"); pragma Import (Stdcall, NewNurbsRenderer, "gluNewNurbsRenderer"); pragma Import (Stdcall, DeleteNurbsRenderer, "gluDeleteNurbsRenderer"); pragma Import (Stdcall, LoadSamplingMatrices, "gluLoadSamplingMatrices"); pragma Import (Stdcall, NurbsProperty, "gluNurbsProperty"); pragma Import (Stdcall, GetNurbsProperty, "gluGetNurbsProperty"); pragma Import (Stdcall, BeginCurve, "gluBeginCurve"); pragma Import (Stdcall, EndCurve, "gluEndCurve"); pragma Import (Stdcall, NurbsCurve, "gluNurbsCurve"); pragma Import (Stdcall, BeginSurface, "gluBeginSurface"); pragma Import (Stdcall, EndSurface, "gluEndSurface"); pragma Import (Stdcall, NurbsSurface, "gluNurbsSurface"); pragma Import (Stdcall, BeginTrim, "gluBeginTrim"); pragma Import (Stdcall, EndTrim, "gluEndTrim"); pragma Import (Stdcall, PwlCurve, "gluPwlCurve"); pragma Import (Stdcall, NurbsCallback, "gluNurbsCallback"); pragma Import (Stdcall, NewTess, "gluNewTess"); pragma Import (Stdcall, TessCallback, "gluTessCallback"); pragma Import (Stdcall, DeleteTess, "gluDeleteTess"); pragma Import (Stdcall, BeginPolygon, "gluBeginPolygon"); pragma Import (Stdcall, EndPolygon, "gluEndPolygon"); pragma Import (Stdcall, NextContour, "gluNextContour"); pragma Import (Stdcall, TessVertex, "gluTessVertex"); pragma Import (Stdcall, GetString, "gluGetString"); -- GL procedures for GLU types: -- Wrappers for Get (doubleMatrix) procedure GetDoublev (pname : GL.ParameterNameEnm; params : Matrix_Double_Ptr); procedure Get (pname : GL.ParameterNameEnm; params : Matrix_Double_Ptr) renames GetDoublev; pragma Import (Stdcall, GetDoublev, "glGetDoublev"); -- Wrappers for Get (viewPortRec) procedure GetIntegerv (pname : GL.ParameterNameEnm; params : Viewport_Ptr); procedure Get (pname : GL.ParameterNameEnm; params : Viewport_Ptr) renames GetIntegerv; pragma Import (Stdcall, GetIntegerv, "glGetIntegerv"); end GLU;
42.861976
116
0.484294
1c09e96e8c471d21a9fc5ce184662b04f607d05d
4,189
ads
Ada
boards/stm32l5_nucleo_ns/src/stm32-board.ads
morbos/Ada_Drivers_Library
a4ab26799be60997c38735f4056160c4af597ef7
[ "BSD-3-Clause" ]
2
2018-05-16T03:56:39.000Z
2019-07-31T13:53:56.000Z
boards/stm32l5_nucleo_ns/src/stm32-board.ads
morbos/Ada_Drivers_Library
a4ab26799be60997c38735f4056160c4af597ef7
[ "BSD-3-Clause" ]
null
null
null
boards/stm32l5_nucleo_ns/src/stm32-board.ads
morbos/Ada_Drivers_Library
a4ab26799be60997c38735f4056160c4af597ef7
[ "BSD-3-Clause" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015-2016, AdaCore -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions are -- -- met: -- -- 1. Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- 2. Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in -- -- the documentation and/or other materials provided with the -- -- distribution. -- -- 3. Neither the name of 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 stm32f4_discovery.h -- -- @author MCD Application Team -- -- @version V1.1.0 -- -- @date 19-June-2014 -- -- @brief This file contains definitions for STM32F4-Discovery Kit -- -- LEDs, push-buttons hardware resources. -- -- -- -- COPYRIGHT(c) 2014 STMicroelectronics -- ------------------------------------------------------------------------------ -- This file provides declarations for devices on the STM32F4 Discovery kits -- manufactured by ST Microelectronics. with STM32.Device; use STM32.Device; with STM32.GPIO; use STM32.GPIO; package STM32.Board is pragma Elaborate_Body; subtype User_LED is GPIO_Point; Red_LED : User_LED renames PA9; Green_LED : User_LED renames PC7; Blue_LED : User_LED renames PB7; LEDs : GPIO_Points := Red_LED & Blue_LED & Green_LED; User_Button : GPIO_Point renames PC13; LCH_LED : User_LED renames PA9; procedure Initialize_Board; procedure Initialize_LEDs; procedure Turn_On (This : in out User_LED) renames STM32.GPIO.Set; procedure Turn_Off (This : in out User_LED) renames STM32.GPIO.Clear; procedure Toggle (This : in out User_LED) renames STM32.GPIO.Toggle; procedure Toggle_LEDs (These : in out GPIO_Points) renames STM32.GPIO.Toggle; procedure All_LEDs_Off; end STM32.Board;
55.118421
78
0.500597
1c94bd67bbd2def4ec1cd1a32234e74fe2e706f8
20,914
adb
Ada
arch/ARM/STM32/driversF1/stm32-dma.adb
morbos/Ada_Drivers_Library
a4ab26799be60997c38735f4056160c4af597ef7
[ "BSD-3-Clause" ]
2
2018-05-16T03:56:39.000Z
2019-07-31T13:53:56.000Z
arch/ARM/STM32/driversF1/stm32-dma.adb
morbos/Ada_Drivers_Library
a4ab26799be60997c38735f4056160c4af597ef7
[ "BSD-3-Clause" ]
null
null
null
arch/ARM/STM32/driversF1/stm32-dma.adb
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_dma.c -- -- @author MCD Application Team -- -- @version V1.1.0 -- -- @date 19-June-2014 -- -- @brief DMA HAL module driver. -- -- -- -- COPYRIGHT(c) 2014 STMicroelectronics -- -- -- -- Modified for the STM32F10x series. That series has only channel, no -- -- streams -- -- -- ------------------------------------------------------------------------------ with Ada.Unchecked_Conversion; with System.Storage_Elements; with STM32_SVD.DMA; use STM32_SVD.DMA; package body STM32.DMA is function To_Bit is new Ada.Unchecked_Conversion (Boolean, Bit); type CCR_Ptr is access all CCR_Register; function Get_Channel (Port : DMA_Controller; Num : DMA_Channel_Selector) return CCR_Ptr; -- procedure Set_Interrupt_Enabler -- (This_Channel : DMA_Channel; -- Source : DMA_Interrupt; -- Value : Boolean); -- An internal routine, used to enable and disable the specified interrupt ---------------- -- Get_Channel -- ---------------- function Get_Channel (Port : DMA_Controller; Num : DMA_Channel_Selector) return CCR_Ptr is Addr : System.Address; function To_CCR is new Ada.Unchecked_Conversion (System.Address, CCR_Ptr); begin case Num is when Channel_1 => Addr := Port.CCR1'Address; when Channel_2 => Addr := Port.CCR2'Address; when Channel_3 => Addr := Port.CCR3'Address; when Channel_4 => Addr := Port.CCR4'Address; when Channel_5 => Addr := Port.CCR5'Address; when Channel_6 => Addr := Port.CCR6'Address; when Channel_7 => Addr := Port.CCR7'Address; end case; return To_CCR (Addr); end Get_Channel; ------------ -- Enable -- ------------ procedure Enable (This : in out DMA_Controller; Channel : DMA_Channel_Selector) is begin Get_Channel (This, Channel).EN := True; end Enable; ------------- -- Enabled -- ------------- function Enabled (This : DMA_Controller; Channel : DMA_Channel_Selector) return Boolean is begin return Get_Channel (This, Channel).EN; end Enabled; ------------- -- Disable -- ------------- procedure Disable (This : in out DMA_Controller; Channel : DMA_Channel_Selector) is begin Get_Channel (This, Channel).EN := False; loop exit when not Enabled (This, Channel); end loop; end Disable; ---------------------- -- Enable_Interrupt -- ---------------------- procedure Enable_Interrupt (This : DMA_Controller; Channel : DMA_Channel_Selector; Source : DMA_Interrupt) is Ch : CCR_Ptr := Get_Channel (This, Channel); begin case Source is when Transfer_Error_Interrupt => Ch.TEIE := True; when Half_Transfer_Complete_Interrupt => Ch.HTIE := True; when Transfer_Complete_Interrupt => Ch.TCIE := True; end case; end Enable_Interrupt; ----------------------- -- Disable_Interrupt -- ----------------------- procedure Disable_Interrupt (This : DMA_Controller; Channel : DMA_Channel_Selector; Source : DMA_Interrupt) is Ch : CCR_Ptr := Get_Channel (This, Channel); begin case Source is when Transfer_Error_Interrupt => Ch.TEIE := False; when Half_Transfer_Complete_Interrupt => Ch.HTIE := False; when Transfer_Complete_Interrupt => Ch.TCIE := False; end case; end Disable_Interrupt; ----------------------- -- Interrupt_Enabled -- ----------------------- function Interrupt_Enabled (This : DMA_Controller; Channel : DMA_Channel_Selector; Source : DMA_Interrupt) return Boolean is Ch : CCR_Ptr := Get_Channel (This, Channel); Result : Boolean := False; begin case Source is when Transfer_Error_Interrupt => Result := Ch.TEIE; when Half_Transfer_Complete_Interrupt => Result := Ch.HTIE; when Transfer_Complete_Interrupt => Result := Ch.TCIE; end case; return Result; end Interrupt_Enabled; -------------------- -- Start_Transfer -- -------------------- procedure Start_Transfer (This : in out DMA_Controller; Channel : DMA_Channel_Selector; Source : Address; Destination : Address; Data_Count : UInt16) is begin Disable (This, Channel); Configure_Data_Flow (This, Channel, Source => Source, Destination => Destination, Data_Count => Data_Count); Enable (This, Channel); end Start_Transfer; ------------------------------------ -- Start_Transfer_with_Interrupts -- ------------------------------------ procedure Start_Transfer_with_Interrupts (This : in out DMA_Controller; Channel : DMA_Channel_Selector; Source : Address; Destination : Address; Data_Count : UInt16; Enabled_Interrupts : Interrupt_Selections := (others => True)) is begin Disable (This, Channel); Configure_Data_Flow (This, Channel, Source => Source, Destination => Destination, Data_Count => Data_Count); for Selected_Interrupt in Enabled_Interrupts'Range loop if Enabled_Interrupts (Selected_Interrupt) then Enable_Interrupt (This, Channel, Selected_Interrupt); end if; end loop; Enable (This, Channel); end Start_Transfer_with_Interrupts; ------------------------- -- Configure_Data_Flow -- ------------------------- procedure Configure_Data_Flow (This : in out DMA_Controller; Channel : DMA_Channel_Selector; Source : Address; Destination : Address; Data_Count : UInt16) is function W is new Ada.Unchecked_Conversion (Address, UInt32); Addr1 : Address; Addr2 : Address; begin if Get_Channel (This, Channel).DIR then Addr1 := Source; Addr2 := Destination; else Addr1 := Destination; Addr2 := Source; end if; case Channel is when Channel_1 => This.CNDTR1.NDT := Data_Count; This.CMAR1 := W (Addr1); This.CPAR1 := W (Addr2); when Channel_2 => This.CNDTR2.NDT := Data_Count; This.CMAR2 := W (Addr1); This.CPAR2 := W (Addr2); when Channel_3 => This.CNDTR3.NDT := Data_Count; This.CMAR3 := W (Addr1); This.CPAR3 := W (Addr2); when Channel_4 => This.CNDTR4.NDT := Data_Count; This.CMAR4 := W (Addr1); This.CPAR4 := W (Addr2); when Channel_5 => This.CNDTR5.NDT := Data_Count; This.CMAR5 := W (Addr1); This.CPAR5 := W (Addr2); when Channel_6 => This.CNDTR6.NDT := Data_Count; This.CMAR6 := W (Addr1); This.CPAR6 := W (Addr2); when Channel_7 => This.CNDTR7.NDT := Data_Count; This.CMAR7 := W (Addr1); This.CPAR7 := W (Addr2); end case; end Configure_Data_Flow; -------------------- -- Abort_Transfer -- -------------------- procedure Abort_Transfer (This : DMA_Controller; Channel : DMA_Channel_Selector; Result : out DMA_Error_Code) is begin Result := DMA_No_Error; end Abort_Transfer; ------------------------- -- Poll_For_Completion -- ------------------------- procedure Poll_For_Completion (This : in out DMA_Controller; Channel : DMA_Channel_Selector; Expected_Level : DMA_Transfer_Level; Timeout : Time_Span; Result : out DMA_Error_Code) is begin Result := DMA_No_Error; -- initially anyway end Poll_For_Completion; ------------------ -- Clear_Status -- ------------------ procedure Clear_Status (This : in out DMA_Controller; Channel : DMA_Channel_Selector; Flag : DMA_Status_Flag) is begin case Flag is when Transfer_Complete_Indicated => case Channel is when Channel_1 => This.IFCR.CTCIF1 := True; when Channel_2 => This.IFCR.CTCIF2 := True; when Channel_3 => This.IFCR.CTCIF3 := True; when Channel_4 => This.IFCR.CTCIF4 := True; when Channel_5 => This.IFCR.CTCIF5 := True; when Channel_6 => This.IFCR.CTCIF6 := True; when Channel_7 => This.IFCR.CTCIF7 := True; end case; when Transfer_Error_Indicated => case Channel is when Channel_1 => This.IFCR.CTEIF1 := True; when Channel_2 => This.IFCR.CTEIF2 := True; when Channel_3 => This.IFCR.CTEIF3 := True; when Channel_4 => This.IFCR.CTEIF4 := True; when Channel_5 => This.IFCR.CTEIF5 := True; when Channel_6 => This.IFCR.CTEIF6 := True; when Channel_7 => This.IFCR.CTEIF7 := True; end case; when Half_Transfer_Complete_Indicated => case Channel is when Channel_1 => This.IFCR.CHTIF1 := True; when Channel_2 => This.IFCR.CHTIF2 := True; when Channel_3 => This.IFCR.CHTIF3 := True; when Channel_4 => This.IFCR.CHTIF4 := True; when Channel_5 => This.IFCR.CHTIF5 := True; when Channel_6 => This.IFCR.CHTIF6 := True; when Channel_7 => This.IFCR.CHTIF7 := True; end case; end case; end Clear_Status; ---------------------- -- Clear_All_Status -- ---------------------- procedure Clear_All_Status (This : in out DMA_Controller; Channel : DMA_Channel_Selector) is begin for Flag in DMA_Status_Flag'Range loop Clear_Status (This, Channel, Flag); end loop; end Clear_All_Status; ------------ -- Status -- ------------ function Status (This : DMA_Controller; Channel : DMA_Channel_Selector; Flag : DMA_Status_Flag) return Boolean is Result : Boolean := False; begin case Flag is when Transfer_Complete_Indicated => case Channel is when Channel_1 => Result := This.ISR.TCIF1; when Channel_2 => Result := This.ISR.TCIF2; when Channel_3 => Result := This.ISR.TCIF3; when Channel_4 => Result := This.ISR.TCIF4; when Channel_5 => Result := This.ISR.TCIF5; when Channel_6 => Result := This.ISR.TCIF6; when Channel_7 => Result := This.ISR.TCIF7; end case; when Transfer_Error_Indicated => case Channel is when Channel_1 => Result := This.ISR.TEIF1; when Channel_2 => Result := This.ISR.TEIF2; when Channel_3 => Result := This.ISR.TEIF3; when Channel_4 => Result := This.ISR.TEIF4; when Channel_5 => Result := This.ISR.TEIF5; when Channel_6 => Result := This.ISR.TEIF6; when Channel_7 => Result := This.ISR.TEIF7; end case; when Half_Transfer_Complete_Indicated => case Channel is when Channel_1 => Result := This.ISR.HTIF1; when Channel_2 => Result := This.ISR.HTIF2; when Channel_3 => Result := This.ISR.HTIF3; when Channel_4 => Result := This.ISR.HTIF4; when Channel_5 => Result := This.ISR.HTIF5; when Channel_6 => Result := This.ISR.HTIF6; when Channel_7 => Result := This.ISR.HTIF7; end case; end case; return Result; end Status; ----------------- -- Set_Counter -- ----------------- procedure Set_NDT (This : DMA_Controller; Channel : DMA_Channel_Selector; Data_Count : UInt16) is begin null; end Set_NDT; function Items_Transferred (This : DMA_Controller; Channel : DMA_Channel_Selector) return UInt16 is begin return 0; end Items_Transferred; function Current_NDT (This : DMA_Controller; Channel : DMA_Channel_Selector) return UInt16 is begin return 0; end Current_NDT; ------------------- -- Circular_Mode -- ------------------- function Circular_Mode (This : DMA_Controller; Channel : DMA_Channel_Selector) return Boolean is begin return False; end Circular_Mode; --------------- -- Configure -- --------------- procedure Configure (This : in out DMA_Controller; Channel : DMA_Channel_Selector; Config : DMA_Channel_Configuration) is Ch : CCR_Ptr := Get_Channel (This, Channel); begin Disable (This, Channel); case Config.Direction is when Peripheral_To_Memory => Ch.DIR := False; Ch.MEM2MEM := False; when Memory_To_Peripheral => Ch.DIR := True; Ch.MEM2MEM := False; when Memory_To_Memory => Ch.MEM2MEM := True; end case; Ch.PINC := Config.Increment_Peripheral_Address; Ch.MINC := Config.Increment_Memory_Address; Ch.PSIZE := DMA_Data_Transfer_Widths'Enum_Rep (Config.Peripheral_Data_Format); Ch.MSIZE := DMA_Data_Transfer_Widths'Enum_Rep (Config.Memory_Data_Format); Ch.PL := DMA_Priority_Level'Enum_Rep (Config.Priority); if Config.Operation_Mode = Circular_Mode then Ch.CIRC := True; -- Enable circular mode end if; end Configure; ----------- -- Reset -- ----------- procedure Reset (This : in out DMA_Controller; Channel : DMA_Channel_Selector) is begin Disable (This, Channel); -- This_Stream.CR := (others => <>); -- This_Stream.NDTR.NDT := 0; -- This_Stream.PAR := 0; -- This_Stream.M0AR := 0; -- This_Stream.M1AR := 0; -- This_Stream.FCR := (others => <>); Clear_All_Status (This, Channel); end Reset; --------------------------- -- Peripheral_Data_Width -- --------------------------- function Peripheral_Data_Width (This : DMA_Controller; Channel : DMA_Channel_Selector) return DMA_Data_Transfer_Widths is Size : UInt2; begin case Channel is when Channel_1 => Size := This.CCR1.PSIZE; when Channel_2 => Size := This.CCR2.PSIZE; when Channel_3 => Size := This.CCR3.PSIZE; when Channel_4 => Size := This.CCR4.PSIZE; when Channel_5 => Size := This.CCR5.PSIZE; when Channel_6 => Size := This.CCR6.PSIZE; when Channel_7 => Size := This.CCR7.PSIZE; end case; return DMA_Data_Transfer_Widths'Val (Size); end Peripheral_Data_Width; ----------------------- -- Memory_Data_Width -- ----------------------- function Memory_Data_Width (This : DMA_Controller; Channel : DMA_Channel_Selector) return DMA_Data_Transfer_Widths is begin return DMA_Data_Transfer_Widths'Val (Get_Channel (This, Channel).MSIZE); end Memory_Data_Width; ------------------------ -- Transfer_Direction -- ------------------------ function Transfer_Direction (This : DMA_Controller; Channel : DMA_Channel_Selector) return DMA_Data_Transfer_Direction is Dir : Boolean := Get_Channel (This, Channel).DIR; begin return DMA_Data_Transfer_Direction'Val (To_Bit (Dir)); end Transfer_Direction; -------------------- -- Operating_Mode -- -------------------- function Operating_Mode (This : DMA_Controller; Channel : DMA_Channel_Selector) return DMA_Mode is begin if Get_Channel (This, Channel).CIRC then return Circular_Mode; end if; return Normal_Mode; end Operating_Mode; -------------- -- Priority -- -------------- function Priority (This : DMA_Controller; Channel : DMA_Channel_Selector) return DMA_Priority_Level is begin return DMA_Priority_Level'Val (Get_Channel (This, Channel).PL); end Priority; ------------- -- Aligned -- ------------- function Aligned (This : Address; Width : DMA_Data_Transfer_Widths) return Boolean is use System.Storage_Elements; begin return True; end Aligned; end STM32.DMA;
30.092086
78
0.498087
207c85e46a4d7715a4035600f2b13d9814f5cae2
1,050
ads
Ada
gnu/src/gdb/gdb/testsuite/gdb.ada/array_return/pck.ads
ghsecuritylab/ellcc-mirror
b03a4afac74d50cf0987554b8c0cd8209bcb92a2
[ "BSD-2-Clause" ]
null
null
null
gnu/src/gdb/gdb/testsuite/gdb.ada/array_return/pck.ads
ghsecuritylab/ellcc-mirror
b03a4afac74d50cf0987554b8c0cd8209bcb92a2
[ "BSD-2-Clause" ]
null
null
null
gnu/src/gdb/gdb/testsuite/gdb.ada/array_return/pck.ads
ghsecuritylab/ellcc-mirror
b03a4afac74d50cf0987554b8c0cd8209bcb92a2
[ "BSD-2-Clause" ]
null
null
null
-- Copyright 2006-2015 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 Data_Small is array (1 .. 2) of Integer; type Data_Large is array (1 .. 4) of Integer; type Small_Float_Vector is array (1 .. 2) of Float; function Create_Small return Data_Small; function Create_Large return Data_Large; function Create_Small_Float_Vector return Small_Float_Vector; end Pck;
36.206897
73
0.74
fba65c267f41b256aeb09fcb3ef942a3f22a8ad5
206
adb
Ada
examples/epoch_support.adb
rocher/TTS-Runtime-Ravenscar
0eb0267b6aced9c61f21a841c2e030e25c606864
[ "MIT" ]
2
2018-04-19T10:56:56.000Z
2019-05-22T14:44:57.000Z
examples/epoch_support.adb
rocher/TTS-Runtime-Ravenscar
0eb0267b6aced9c61f21a841c2e030e25c606864
[ "MIT" ]
8
2018-03-13T11:53:00.000Z
2019-11-11T11:54:40.000Z
examples/epoch_support.adb
rocher/TTS-Runtime-Ravenscar
0eb0267b6aced9c61f21a841c2e030e25c606864
[ "MIT" ]
2
2019-06-06T12:59:08.000Z
2019-06-24T18:34:40.000Z
package body Epoch_Support is Init_Time : constant Time := Clock + Milliseconds (1000); ----------- -- Epoch -- ----------- function Epoch return Time is (Init_Time); end Epoch_Support;
15.846154
60
0.597087
12cf27ae3f1e8abad153e6de371d582dd9311380
9,518
adb
Ada
Validation/pyFrame3DD-master/gcc-master/gcc/ada/scans.adb
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
Validation/pyFrame3DD-master/gcc-master/gcc/ada/scans.adb
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
Validation/pyFrame3DD-master/gcc-master/gcc/ada/scans.adb
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- S C A N S -- -- -- -- 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 Snames; use Snames; package body Scans is ----------------------------- -- Initialize_Ada_Keywords -- ----------------------------- procedure Initialize_Ada_Keywords is procedure Set_Reserved (N : Name_Id; T : Token_Type); pragma Inline (Set_Reserved); -- Set given name as a reserved word (T is the corresponding token) ------------------ -- Set_Reserved -- ------------------ procedure Set_Reserved (N : Name_Id; T : Token_Type) is begin -- Set up Token_Type values in Names table entries for reserved -- words. We use the Pos value of the Token_Type value. Note that -- Is_Keyword_Name relies on the fact that Token_Type'Val (0) is not -- a reserved word. Set_Name_Table_Byte (N, Token_Type'Pos (T)); end Set_Reserved; -- Start of processing for Initialize_Ada_Keywords begin -- Establish reserved words Set_Reserved (Name_Abort, Tok_Abort); Set_Reserved (Name_Abs, Tok_Abs); Set_Reserved (Name_Abstract, Tok_Abstract); Set_Reserved (Name_Accept, Tok_Accept); Set_Reserved (Name_Access, Tok_Access); Set_Reserved (Name_And, Tok_And); Set_Reserved (Name_Aliased, Tok_Aliased); Set_Reserved (Name_All, Tok_All); Set_Reserved (Name_Array, Tok_Array); Set_Reserved (Name_At, Tok_At); Set_Reserved (Name_Begin, Tok_Begin); Set_Reserved (Name_Body, Tok_Body); Set_Reserved (Name_Case, Tok_Case); Set_Reserved (Name_Constant, Tok_Constant); Set_Reserved (Name_Declare, Tok_Declare); Set_Reserved (Name_Delay, Tok_Delay); Set_Reserved (Name_Delta, Tok_Delta); Set_Reserved (Name_Digits, Tok_Digits); Set_Reserved (Name_Do, Tok_Do); Set_Reserved (Name_Else, Tok_Else); Set_Reserved (Name_Elsif, Tok_Elsif); Set_Reserved (Name_End, Tok_End); Set_Reserved (Name_Entry, Tok_Entry); Set_Reserved (Name_Exception, Tok_Exception); Set_Reserved (Name_Exit, Tok_Exit); Set_Reserved (Name_For, Tok_For); Set_Reserved (Name_Function, Tok_Function); Set_Reserved (Name_Generic, Tok_Generic); Set_Reserved (Name_Goto, Tok_Goto); Set_Reserved (Name_If, Tok_If); Set_Reserved (Name_In, Tok_In); Set_Reserved (Name_Is, Tok_Is); Set_Reserved (Name_Limited, Tok_Limited); Set_Reserved (Name_Loop, Tok_Loop); Set_Reserved (Name_Mod, Tok_Mod); Set_Reserved (Name_New, Tok_New); Set_Reserved (Name_Not, Tok_Not); Set_Reserved (Name_Null, Tok_Null); Set_Reserved (Name_Of, Tok_Of); Set_Reserved (Name_Or, Tok_Or); Set_Reserved (Name_Others, Tok_Others); Set_Reserved (Name_Out, Tok_Out); Set_Reserved (Name_Package, Tok_Package); Set_Reserved (Name_Pragma, Tok_Pragma); Set_Reserved (Name_Private, Tok_Private); Set_Reserved (Name_Procedure, Tok_Procedure); Set_Reserved (Name_Protected, Tok_Protected); Set_Reserved (Name_Raise, Tok_Raise); Set_Reserved (Name_Range, Tok_Range); Set_Reserved (Name_Record, Tok_Record); Set_Reserved (Name_Rem, Tok_Rem); Set_Reserved (Name_Renames, Tok_Renames); Set_Reserved (Name_Requeue, Tok_Requeue); Set_Reserved (Name_Return, Tok_Return); Set_Reserved (Name_Reverse, Tok_Reverse); Set_Reserved (Name_Select, Tok_Select); Set_Reserved (Name_Separate, Tok_Separate); Set_Reserved (Name_Subtype, Tok_Subtype); Set_Reserved (Name_Tagged, Tok_Tagged); Set_Reserved (Name_Task, Tok_Task); Set_Reserved (Name_Terminate, Tok_Terminate); Set_Reserved (Name_Then, Tok_Then); Set_Reserved (Name_Type, Tok_Type); Set_Reserved (Name_Until, Tok_Until); Set_Reserved (Name_Use, Tok_Use); Set_Reserved (Name_When, Tok_When); Set_Reserved (Name_While, Tok_While); Set_Reserved (Name_With, Tok_With); Set_Reserved (Name_Xor, Tok_Xor); -- Ada 2005 reserved words Set_Reserved (Name_Interface, Tok_Interface); Set_Reserved (Name_Overriding, Tok_Overriding); Set_Reserved (Name_Synchronized, Tok_Synchronized); -- Ada 2012 reserved words Set_Reserved (Name_Some, Tok_Some); end Initialize_Ada_Keywords; ------------------ -- Keyword_Name -- ------------------ function Keyword_Name (Token : Token_Type) return Name_Id is Tok : String := Token'Img; pragma Assert (Tok (1 .. 4) = "TOK_"); Name : String renames Tok (5 .. Tok'Last); begin -- Convert to lower case. We don't want to add a dependence on a -- general-purpose To_Lower routine, so we convert "by hand" here. -- All keywords use 7-bit ASCII letters only, so this works. for J in Name'Range loop pragma Assert (Name (J) in 'A' .. 'Z'); Name (J) := Character'Val (Character'Pos (Name (J)) + (Character'Pos ('a') - Character'Pos ('A'))); end loop; return Name_Find (Name); end Keyword_Name; ------------------------ -- Restore_Scan_State -- ------------------------ procedure Restore_Scan_State (Saved_State : Saved_Scan_State) is begin Scan_Ptr := Saved_State.Save_Scan_Ptr; Token := Saved_State.Save_Token; Token_Ptr := Saved_State.Save_Token_Ptr; Current_Line_Start := Saved_State.Save_Current_Line_Start; Start_Column := Saved_State.Save_Start_Column; Checksum := Saved_State.Save_Checksum; First_Non_Blank_Location := Saved_State.Save_First_Non_Blank_Location; Token_Node := Saved_State.Save_Token_Node; Token_Name := Saved_State.Save_Token_Name; Prev_Token := Saved_State.Save_Prev_Token; Prev_Token_Ptr := Saved_State.Save_Prev_Token_Ptr; end Restore_Scan_State; --------------------- -- Save_Scan_State -- --------------------- procedure Save_Scan_State (Saved_State : out Saved_Scan_State) is begin Saved_State.Save_Scan_Ptr := Scan_Ptr; Saved_State.Save_Token := Token; Saved_State.Save_Token_Ptr := Token_Ptr; Saved_State.Save_Current_Line_Start := Current_Line_Start; Saved_State.Save_Start_Column := Start_Column; Saved_State.Save_Checksum := Checksum; Saved_State.Save_First_Non_Blank_Location := First_Non_Blank_Location; Saved_State.Save_Token_Node := Token_Node; Saved_State.Save_Token_Name := Token_Name; Saved_State.Save_Prev_Token := Prev_Token; Saved_State.Save_Prev_Token_Ptr := Prev_Token_Ptr; end Save_Scan_State; end Scans;
45.759615
78
0.551692
1c81ce36b3f42e88ba80375471c0640f52de98cf
1,297
adb
Ada
out/summax_souslist.adb
Melyodas/metalang
399a9f1a71402c979d7f8024d4f98f081c80e771
[ "BSD-2-Clause" ]
22
2017-04-24T10:00:45.000Z
2021-04-01T10:11:05.000Z
out/summax_souslist.adb
Melyodas/metalang
399a9f1a71402c979d7f8024d4f98f081c80e771
[ "BSD-2-Clause" ]
12
2017-03-26T18:34:21.000Z
2019-03-21T19:13:03.000Z
out/summax_souslist.adb
Melyodas/metalang
399a9f1a71402c979d7f8024d4f98f081c80e771
[ "BSD-2-Clause" ]
7
2017-10-14T13:33:33.000Z
2021-03-18T15:18:50.000Z
with ada.text_io, ada.Integer_text_IO, Ada.Text_IO.Text_Streams, Ada.Strings.Fixed, Interfaces.C; use ada.text_io, ada.Integer_text_IO, Ada.Strings, Ada.Strings.Fixed, Interfaces.C; procedure summax_souslist is type stringptr is access all char_array; procedure PInt(i : in Integer) is begin String'Write (Text_Streams.Stream (Current_Output), Trim(Integer'Image(i), Left)); end; procedure SkipSpaces is C : Character; Eol : Boolean; begin loop Look_Ahead(C, Eol); exit when Eol or C /= ' '; Get(C); end loop; end; type a is Array (Integer range <>) of Integer; type a_PTR is access a; function summax(lst : in a_PTR; len : in Integer) return Integer is max0 : Integer; current : Integer; begin current := 0; max0 := 0; for i in integer range 0..len - 1 loop current := current + lst(i); if current < 0 then current := 0; end if; if max0 < current then max0 := current; end if; end loop; return max0; end; tmp : Integer; tab : a_PTR; result : Integer; len : Integer; begin len := 0; Get(len); SkipSpaces; tab := new a (0..len - 1); for i in integer range 0..len - 1 loop tmp := 0; Get(tmp); SkipSpaces; tab(i) := tmp; end loop; result := summax(tab, len); PInt(result); end;
20.265625
97
0.644564
1264eebeb85ecb3b9d7a0d761276863a333971d4
350,184
adb
Ada
Validation/pyFrame3DD-master/gcc-master/gcc/ada/exp_ch7.adb
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
Validation/pyFrame3DD-master/gcc-master/gcc/ada/exp_ch7.adb
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
Validation/pyFrame3DD-master/gcc-master/gcc/ada/exp_ch7.adb
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- E X P _ C H 7 -- -- -- -- 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. -- -- -- ------------------------------------------------------------------------------ -- This package contains virtually all expansion mechanisms related to -- - controlled types -- - transient scopes with Atree; use Atree; with Debug; use Debug; with Einfo; use Einfo; with Elists; use Elists; with Errout; use Errout; with Exp_Ch6; use Exp_Ch6; with Exp_Ch9; use Exp_Ch9; with Exp_Ch11; use Exp_Ch11; with Exp_Dbug; use Exp_Dbug; with Exp_Dist; use Exp_Dist; with Exp_Disp; use Exp_Disp; with Exp_Prag; use Exp_Prag; with Exp_Tss; use Exp_Tss; with Exp_Util; use Exp_Util; with Freeze; use Freeze; with Lib; use Lib; with Nlists; use Nlists; with Nmake; use Nmake; with Opt; use Opt; with Output; use Output; with Restrict; use Restrict; with Rident; use Rident; with Rtsfind; use Rtsfind; with Sinfo; use Sinfo; with Sem; use Sem; with Sem_Aux; use Sem_Aux; with Sem_Ch3; use Sem_Ch3; with Sem_Ch7; use Sem_Ch7; with Sem_Ch8; use Sem_Ch8; with Sem_Res; use Sem_Res; with Sem_Util; use Sem_Util; with Snames; use Snames; with Stand; use Stand; with Tbuild; use Tbuild; with Ttypes; use Ttypes; with Uintp; use Uintp; package body Exp_Ch7 is -------------------------------- -- Transient Scope Management -- -------------------------------- -- A transient scope is created when temporary objects are created by the -- compiler. These temporary objects are allocated on the secondary stack -- and the transient scope is responsible for finalizing the object when -- appropriate and reclaiming the memory at the right time. The temporary -- objects are generally the objects allocated to store the result of a -- function returning an unconstrained or a tagged value. Expressions -- needing to be wrapped in a transient scope (functions calls returning -- unconstrained or tagged values) may appear in 3 different contexts which -- lead to 3 different kinds of transient scope expansion: -- 1. In a simple statement (procedure call, assignment, ...). In this -- case the instruction is wrapped into a transient block. See -- Wrap_Transient_Statement for details. -- 2. In an expression of a control structure (test in a IF statement, -- expression in a CASE statement, ...). See Wrap_Transient_Expression -- for details. -- 3. In a expression of an object_declaration. No wrapping is possible -- here, so the finalization actions, if any, are done right after the -- declaration and the secondary stack deallocation is done in the -- proper enclosing scope. See Wrap_Transient_Declaration for details. -- Note about functions returning tagged types: it has been decided to -- always allocate their result in the secondary stack, even though is not -- absolutely mandatory when the tagged type is constrained because the -- caller knows the size of the returned object and thus could allocate the -- result in the primary stack. An exception to this is when the function -- builds its result in place, as is done for functions with inherently -- limited result types for Ada 2005. In that case, certain callers may -- pass the address of a constrained object as the target object for the -- function result. -- By allocating tagged results in the secondary stack a number of -- implementation difficulties are avoided: -- - If it is a dispatching function call, the computation of the size of -- the result is possible but complex from the outside. -- - If the returned type is controlled, the assignment of the returned -- value to the anonymous object involves an Adjust, and we have no -- easy way to access the anonymous object created by the back end. -- - If the returned type is class-wide, this is an unconstrained type -- anyway. -- Furthermore, the small loss in efficiency which is the result of this -- decision is not such a big deal because functions returning tagged types -- are not as common in practice compared to functions returning access to -- a tagged type. -------------------------------------------------- -- Transient Blocks and Finalization Management -- -------------------------------------------------- function Find_Transient_Context (N : Node_Id) return Node_Id; -- Locate a suitable context for arbitrary node N which may need to be -- serviced by a transient scope. Return Empty if no suitable context is -- available. procedure Insert_Actions_In_Scope_Around (N : Node_Id; Clean : Boolean; Manage_SS : Boolean); -- Insert the before-actions kept in the scope stack before N, and the -- after-actions after N, which must be a member of a list. If flag Clean -- is set, insert any cleanup actions. If flag Manage_SS is set, insert -- calls to mark and release the secondary stack. function Make_Transient_Block (Loc : Source_Ptr; Action : Node_Id; Par : Node_Id) return Node_Id; -- Action is a single statement or object declaration. Par is the proper -- parent of the generated block. Create a transient block whose name is -- the current scope and the only handled statement is Action. If Action -- involves controlled objects or secondary stack usage, the corresponding -- cleanup actions are performed at the end of the block. procedure Set_Node_To_Be_Wrapped (N : Node_Id); -- Set the field Node_To_Be_Wrapped of the current scope -- ??? The entire comment needs to be rewritten -- ??? which entire comment? procedure Store_Actions_In_Scope (AK : Scope_Action_Kind; L : List_Id); -- Shared processing for Store_xxx_Actions_In_Scope ----------------------------- -- Finalization Management -- ----------------------------- -- This part describe how Initialization/Adjustment/Finalization procedures -- are generated and called. Two cases must be considered, types that are -- Controlled (Is_Controlled flag set) and composite types that contain -- controlled components (Has_Controlled_Component flag set). In the first -- case the procedures to call are the user-defined primitive operations -- Initialize/Adjust/Finalize. In the second case, GNAT generates -- Deep_Initialize, Deep_Adjust and Deep_Finalize that are in charge -- of calling the former procedures on the controlled components. -- For records with Has_Controlled_Component set, a hidden "controller" -- component is inserted. This controller component contains its own -- finalization list on which all controlled components are attached -- creating an indirection on the upper-level Finalization list. This -- technique facilitates the management of objects whose number of -- controlled components changes during execution. This controller -- component is itself controlled and is attached to the upper-level -- finalization chain. Its adjust primitive is in charge of calling adjust -- on the components and adjusting the finalization pointer to match their -- new location (see a-finali.adb). -- It is not possible to use a similar technique for arrays that have -- Has_Controlled_Component set. In this case, deep procedures are -- generated that call initialize/adjust/finalize + attachment or -- detachment on the finalization list for all component. -- Initialize calls: they are generated for declarations or dynamic -- allocations of Controlled objects with no initial value. They are always -- followed by an attachment to the current Finalization Chain. For the -- dynamic allocation case this the chain attached to the scope of the -- access type definition otherwise, this is the chain of the current -- scope. -- Adjust Calls: They are generated on 2 occasions: (1) for declarations -- or dynamic allocations of Controlled objects with an initial value. -- (2) after an assignment. In the first case they are followed by an -- attachment to the final chain, in the second case they are not. -- Finalization Calls: They are generated on (1) scope exit, (2) -- assignments, (3) unchecked deallocations. In case (3) they have to -- be detached from the final chain, in case (2) they must not and in -- case (1) this is not important since we are exiting the scope anyway. -- Other details: -- Type extensions will have a new record controller at each derivation -- level containing controlled components. The record controller for -- the parent/ancestor is attached to the finalization list of the -- extension's record controller (i.e. the parent is like a component -- of the extension). -- For types that are both Is_Controlled and Has_Controlled_Components, -- the record controller and the object itself are handled separately. -- It could seem simpler to attach the object at the end of its record -- controller but this would not tackle view conversions properly. -- A classwide type can always potentially have controlled components -- but the record controller of the corresponding actual type may not -- be known at compile time so the dispatch table contains a special -- field that allows computation of the offset of the record controller -- dynamically. See s-finimp.Deep_Tag_Attach and a-tags.RC_Offset. -- Here is a simple example of the expansion of a controlled block : -- declare -- X : Controlled; -- Y : Controlled := Init; -- -- type R is record -- C : Controlled; -- end record; -- W : R; -- Z : R := (C => X); -- begin -- X := Y; -- W := Z; -- end; -- -- is expanded into -- -- declare -- _L : System.FI.Finalizable_Ptr; -- procedure _Clean is -- begin -- Abort_Defer; -- System.FI.Finalize_List (_L); -- Abort_Undefer; -- end _Clean; -- X : Controlled; -- begin -- Abort_Defer; -- Initialize (X); -- Attach_To_Final_List (_L, Finalizable (X), 1); -- at end: Abort_Undefer; -- Y : Controlled := Init; -- Adjust (Y); -- Attach_To_Final_List (_L, Finalizable (Y), 1); -- -- type R is record -- C : Controlled; -- end record; -- W : R; -- begin -- Abort_Defer; -- Deep_Initialize (W, _L, 1); -- at end: Abort_Under; -- Z : R := (C => X); -- Deep_Adjust (Z, _L, 1); -- begin -- _Assign (X, Y); -- Deep_Finalize (W, False); -- <save W's final pointers> -- W := Z; -- <restore W's final pointers> -- Deep_Adjust (W, _L, 0); -- at end -- _Clean; -- end; type Final_Primitives is (Initialize_Case, Adjust_Case, Finalize_Case, Address_Case); -- This enumeration type is defined in order to ease sharing code for -- building finalization procedures for composite types. Name_Of : constant array (Final_Primitives) of Name_Id := (Initialize_Case => Name_Initialize, Adjust_Case => Name_Adjust, Finalize_Case => Name_Finalize, Address_Case => Name_Finalize_Address); Deep_Name_Of : constant array (Final_Primitives) of TSS_Name_Type := (Initialize_Case => TSS_Deep_Initialize, Adjust_Case => TSS_Deep_Adjust, Finalize_Case => TSS_Deep_Finalize, Address_Case => TSS_Finalize_Address); function Allows_Finalization_Master (Typ : Entity_Id) return Boolean; -- Determine whether access type Typ may have a finalization master procedure Build_Array_Deep_Procs (Typ : Entity_Id); -- Build the deep Initialize/Adjust/Finalize for a record Typ with -- Has_Controlled_Component set and store them using the TSS mechanism. function Build_Cleanup_Statements (N : Node_Id; Additional_Cleanup : List_Id) return List_Id; -- Create the cleanup calls for an asynchronous call block, task master, -- protected subprogram body, task allocation block or task body, or -- additional cleanup actions parked on a transient block. If the context -- does not contain the above constructs, the routine returns an empty -- list. procedure Build_Finalizer (N : Node_Id; Clean_Stmts : List_Id; Mark_Id : Entity_Id; Top_Decls : List_Id; Defer_Abort : Boolean; Fin_Id : out Entity_Id); -- N may denote an accept statement, block, entry body, package body, -- package spec, protected body, subprogram body, or a task body. Create -- a procedure which contains finalization calls for all controlled objects -- declared in the declarative or statement region of N. The calls are -- built in reverse order relative to the original declarations. In the -- case of a task body, the routine delays the creation of the finalizer -- until all statements have been moved to the task body procedure. -- Clean_Stmts may contain additional context-dependent code used to abort -- asynchronous calls or complete tasks (see Build_Cleanup_Statements). -- Mark_Id is the secondary stack used in the current context or Empty if -- missing. Top_Decls is the list on which the declaration of the finalizer -- is attached in the non-package case. Defer_Abort indicates that the -- statements passed in perform actions that require abort to be deferred, -- such as for task termination. Fin_Id is the finalizer declaration -- entity. procedure Build_Finalizer_Call (N : Node_Id; Fin_Id : Entity_Id); -- N is a construct which contains a handled sequence of statements, Fin_Id -- is the entity of a finalizer. Create an At_End handler which covers the -- statements of N and calls Fin_Id. If the handled statement sequence has -- an exception handler, the statements will be wrapped in a block to avoid -- unwanted interaction with the new At_End handler. procedure Build_Record_Deep_Procs (Typ : Entity_Id); -- Build the deep Initialize/Adjust/Finalize for a record Typ with -- Has_Component_Component set and store them using the TSS mechanism. ------------------------------------------- -- Unnesting procedures for CCG and LLVM -- ------------------------------------------- -- Expansion generates subprograms for controlled types management that -- may appear in declarative lists in package declarations and bodies. -- These subprograms appear within generated blocks that contain local -- declarations and a call to finalization procedures. To ensure that -- such subprograms get activation records when needed, we transform the -- block into a procedure body, followed by a call to it in the same -- declarative list. procedure Check_Unnesting_Elaboration_Code (N : Node_Id); -- The statement part of a package body that is a compilation unit may -- contain blocks that declare local subprograms. In Subprogram_Unnesting_ -- Mode such subprograms must be handled as nested inside the (implicit) -- elaboration procedure that executes that statement part. To handle -- properly uplevel references we construct that subprogram explicitly, -- to contain blocks and inner subprograms, the statement part becomes -- a call to this subprogram. This is only done if blocks are present -- in the statement list of the body. (It would be nice to unify this -- procedure with Check_Unnesting_In_Decls_Or_Stmts, if possible, since -- they're doing very similar work, but are structured differently. ???) procedure Check_Unnesting_In_Decls_Or_Stmts (Decls_Or_Stmts : List_Id); -- Similarly, the declarations or statements in library-level packages may -- have created blocks with nested subprograms. Such a block must be -- transformed into a procedure followed by a call to it, so that unnesting -- can handle uplevel references within these nested subprograms (typically -- subprograms that handle finalization actions). This also applies to -- nested packages, including instantiations, in which case it must -- recursively process inner bodies. procedure Check_Unnesting_In_Handlers (N : Node_Id); -- Similarly, check for blocks with nested subprograms occurring within -- a set of exception handlers associated with a package body N. procedure Unnest_Block (Decl : Node_Id); -- Blocks that contain nested subprograms with up-level references need to -- create activation records for them. We do this by rewriting the block as -- a procedure, followed by a call to it in the same declarative list, to -- replicate the semantics of the original block. -- -- A common source for such block is a transient block created for a -- construct (declaration, assignment, etc.) that involves controlled -- actions or secondary-stack management, in which case the nested -- subprogram is a finalizer. procedure Unnest_If_Statement (If_Stmt : Node_Id); -- The separate statement lists associated with an if-statement (then part, -- elsif parts, else part) may require unnesting if they directly contain -- a subprogram body that references up-level objects. Each statement list -- is traversed to locate such subprogram bodies, and if a part's statement -- list contains a body, then the list is replaced with a new procedure -- containing the part's statements followed by a call to the procedure. -- Furthermore, any nested blocks, loops, or if statements will also be -- traversed to determine the need for further unnesting transformations. procedure Unnest_Statement_List (Stmts : in out List_Id); -- A list of statements that directly contains a subprogram at its outer -- level, that may reference objects declared in that same statement list, -- is rewritten as a procedure containing the statement list Stmts (which -- includes any such objects as well as the nested subprogram), followed by -- a call to the new procedure, and Stmts becomes the list containing the -- procedure and the call. This ensures that Unnest_Subprogram will later -- properly handle up-level references from the nested subprogram to -- objects declared earlier in statement list, by creating an activation -- record and passing it to the nested subprogram. This procedure also -- resets the Scope of objects declared in the statement list, as well as -- the Scope of the nested subprogram, to refer to the new procedure. -- Also, the new procedure is marked Has_Nested_Subprogram, so this should -- only be called when known that the statement list contains a subprogram. procedure Unnest_Loop (Loop_Stmt : Node_Id); -- Top-level Loops that contain nested subprograms with up-level references -- need to have activation records. We do this by rewriting the loop as a -- procedure containing the loop, followed by a call to the procedure in -- the same library-level declarative list, to replicate the semantics of -- the original loop. Such loops can occur due to aggregate expansions and -- other constructs. procedure Check_Visibly_Controlled (Prim : Final_Primitives; Typ : Entity_Id; E : in out Entity_Id; Cref : in out Node_Id); -- The controlled operation declared for a derived type may not be -- overriding, if the controlled operations of the parent type are hidden, -- for example when the parent is a private type whose full view is -- controlled. For other primitive operations we modify the name of the -- operation to indicate that it is not overriding, but this is not -- possible for Initialize, etc. because they have to be retrievable by -- name. Before generating the proper call to one of these operations we -- check whether Typ is known to be controlled at the point of definition. -- If it is not then we must retrieve the hidden operation of the parent -- and use it instead. This is one case that might be solved more cleanly -- once Overriding pragmas or declarations are in place. function Contains_Subprogram (Blk : Entity_Id) return Boolean; -- Check recursively whether a loop or block contains a subprogram that -- may need an activation record. function Convert_View (Proc : Entity_Id; Arg : Node_Id; Ind : Pos := 1) return Node_Id; -- Proc is one of the Initialize/Adjust/Finalize operations, and Arg is the -- argument being passed to it. Ind indicates which formal of procedure -- Proc we are trying to match. This function will, if necessary, generate -- a conversion between the partial and full view of Arg to match the type -- of the formal of Proc, or force a conversion to the class-wide type in -- the case where the operation is abstract. function Enclosing_Function (E : Entity_Id) return Entity_Id; -- Given an arbitrary entity, traverse the scope chain looking for the -- first enclosing function. Return Empty if no function was found. function Make_Call (Loc : Source_Ptr; Proc_Id : Entity_Id; Param : Node_Id; Skip_Self : Boolean := False) return Node_Id; -- Subsidiary to Make_Adjust_Call and Make_Final_Call. Given the entity of -- routine [Deep_]Adjust or [Deep_]Finalize and an object parameter, create -- an adjust or finalization call. Wnen flag Skip_Self is set, the related -- action has an effect on the components only (if any). function Make_Deep_Proc (Prim : Final_Primitives; Typ : Entity_Id; Stmts : List_Id) return Node_Id; -- This function generates the tree for Deep_Initialize, Deep_Adjust or -- Deep_Finalize procedures according to the first parameter, these -- procedures operate on the type Typ. The Stmts parameter gives the body -- of the procedure. function Make_Deep_Array_Body (Prim : Final_Primitives; Typ : Entity_Id) return List_Id; -- This function generates the list of statements for implementing -- Deep_Initialize, Deep_Adjust or Deep_Finalize procedures according to -- the first parameter, these procedures operate on the array type Typ. function Make_Deep_Record_Body (Prim : Final_Primitives; Typ : Entity_Id; Is_Local : Boolean := False) return List_Id; -- This function generates the list of statements for implementing -- Deep_Initialize, Deep_Adjust or Deep_Finalize procedures according to -- the first parameter, these procedures operate on the record type Typ. -- Flag Is_Local is used in conjunction with Deep_Finalize to designate -- whether the inner logic should be dictated by state counters. function Make_Finalize_Address_Stmts (Typ : Entity_Id) return List_Id; -- Subsidiary to Make_Finalize_Address_Body, Make_Deep_Array_Body and -- Make_Deep_Record_Body. Generate the following statements: -- -- declare -- type Acc_Typ is access all Typ; -- for Acc_Typ'Storage_Size use 0; -- begin -- [Deep_]Finalize (Acc_Typ (V).all); -- end; -------------------------------- -- Allows_Finalization_Master -- -------------------------------- function Allows_Finalization_Master (Typ : Entity_Id) return Boolean is function In_Deallocation_Instance (E : Entity_Id) return Boolean; -- Determine whether entity E is inside a wrapper package created for -- an instance of Ada.Unchecked_Deallocation. ------------------------------ -- In_Deallocation_Instance -- ------------------------------ function In_Deallocation_Instance (E : Entity_Id) return Boolean is Pkg : constant Entity_Id := Scope (E); Par : Node_Id := Empty; begin if Ekind (Pkg) = E_Package and then Present (Related_Instance (Pkg)) and then Ekind (Related_Instance (Pkg)) = E_Procedure then Par := Generic_Parent (Parent (Related_Instance (Pkg))); return Present (Par) and then Chars (Par) = Name_Unchecked_Deallocation and then Chars (Scope (Par)) = Name_Ada and then Scope (Scope (Par)) = Standard_Standard; end if; return False; end In_Deallocation_Instance; -- Local variables Desig_Typ : constant Entity_Id := Designated_Type (Typ); Ptr_Typ : constant Entity_Id := Root_Type_Of_Full_View (Base_Type (Typ)); -- Start of processing for Allows_Finalization_Master begin -- Certain run-time configurations and targets do not provide support -- for controlled types and therefore do not need masters. if Restriction_Active (No_Finalization) then return False; -- Do not consider C and C++ types since it is assumed that the non-Ada -- side will handle their cleanup. elsif Convention (Desig_Typ) = Convention_C or else Convention (Desig_Typ) = Convention_CPP then return False; -- Do not consider an access type that returns on the secondary stack elsif Present (Associated_Storage_Pool (Ptr_Typ)) and then Is_RTE (Associated_Storage_Pool (Ptr_Typ), RE_SS_Pool) then return False; -- Do not consider an access type that can never allocate an object elsif No_Pool_Assigned (Ptr_Typ) then return False; -- Do not consider an access type coming from an Unchecked_Deallocation -- instance. Even though the designated type may be controlled, the -- access type will never participate in any allocations. elsif In_Deallocation_Instance (Ptr_Typ) then return False; -- Do not consider a non-library access type when No_Nested_Finalization -- is in effect since finalization masters are controlled objects and if -- created will violate the restriction. elsif Restriction_Active (No_Nested_Finalization) and then not Is_Library_Level_Entity (Ptr_Typ) then return False; -- Do not consider an access type subject to pragma No_Heap_Finalization -- because objects allocated through such a type are not to be finalized -- when the access type goes out of scope. elsif No_Heap_Finalization (Ptr_Typ) then return False; -- Do not create finalization masters in GNATprove mode because this -- causes unwanted extra expansion. A compilation in this mode must -- keep the tree as close as possible to the original sources. elsif GNATprove_Mode then return False; -- Otherwise the access type may use a finalization master else return True; end if; end Allows_Finalization_Master; ---------------------------- -- Build_Anonymous_Master -- ---------------------------- procedure Build_Anonymous_Master (Ptr_Typ : Entity_Id) is function Create_Anonymous_Master (Desig_Typ : Entity_Id; Unit_Id : Entity_Id; Unit_Decl : Node_Id) return Entity_Id; -- Create a new anonymous master for access type Ptr_Typ with designated -- type Desig_Typ. The declaration of the master and its initialization -- are inserted in the declarative part of unit Unit_Decl. Unit_Id is -- the entity of Unit_Decl. function Current_Anonymous_Master (Desig_Typ : Entity_Id; Unit_Id : Entity_Id) return Entity_Id; -- Find an anonymous master declared within unit Unit_Id which services -- designated type Desig_Typ. If there is no such master, return Empty. ----------------------------- -- Create_Anonymous_Master -- ----------------------------- function Create_Anonymous_Master (Desig_Typ : Entity_Id; Unit_Id : Entity_Id; Unit_Decl : Node_Id) return Entity_Id is Loc : constant Source_Ptr := Sloc (Unit_Id); All_FMs : Elist_Id; Decls : List_Id; FM_Decl : Node_Id; FM_Id : Entity_Id; FM_Init : Node_Id; Unit_Spec : Node_Id; begin -- Generate: -- <FM_Id> : Finalization_Master; FM_Id := Make_Temporary (Loc, 'A'); FM_Decl := Make_Object_Declaration (Loc, Defining_Identifier => FM_Id, Object_Definition => New_Occurrence_Of (RTE (RE_Finalization_Master), Loc)); -- Generate: -- Set_Base_Pool -- (<FM_Id>, Global_Pool_Object'Unrestricted_Access); FM_Init := Make_Procedure_Call_Statement (Loc, Name => New_Occurrence_Of (RTE (RE_Set_Base_Pool), Loc), Parameter_Associations => New_List ( New_Occurrence_Of (FM_Id, Loc), Make_Attribute_Reference (Loc, Prefix => New_Occurrence_Of (RTE (RE_Global_Pool_Object), Loc), Attribute_Name => Name_Unrestricted_Access))); -- Find the declarative list of the unit if Nkind (Unit_Decl) = N_Package_Declaration then Unit_Spec := Specification (Unit_Decl); Decls := Visible_Declarations (Unit_Spec); if No (Decls) then Decls := New_List; Set_Visible_Declarations (Unit_Spec, Decls); end if; -- Package body or subprogram case -- ??? A subprogram spec or body that acts as a compilation unit may -- contain a formal parameter of an anonymous access-to-controlled -- type initialized by an allocator. -- procedure Comp_Unit_Proc (Param : access Ctrl := new Ctrl); -- There is no suitable place to create the master as the subprogram -- is not in a declarative list. else Decls := Declarations (Unit_Decl); if No (Decls) then Decls := New_List; Set_Declarations (Unit_Decl, Decls); end if; end if; Prepend_To (Decls, FM_Init); Prepend_To (Decls, FM_Decl); -- Use the scope of the unit when analyzing the declaration of the -- master and its initialization actions. Push_Scope (Unit_Id); Analyze (FM_Decl); Analyze (FM_Init); Pop_Scope; -- Mark the master as servicing this specific designated type Set_Anonymous_Designated_Type (FM_Id, Desig_Typ); -- Include the anonymous master in the list of existing masters which -- appear in this unit. This effectively creates a mapping between a -- master and a designated type which in turn allows for the reuse of -- masters on a per-unit basis. All_FMs := Anonymous_Masters (Unit_Id); if No (All_FMs) then All_FMs := New_Elmt_List; Set_Anonymous_Masters (Unit_Id, All_FMs); end if; Prepend_Elmt (FM_Id, All_FMs); return FM_Id; end Create_Anonymous_Master; ------------------------------ -- Current_Anonymous_Master -- ------------------------------ function Current_Anonymous_Master (Desig_Typ : Entity_Id; Unit_Id : Entity_Id) return Entity_Id is All_FMs : constant Elist_Id := Anonymous_Masters (Unit_Id); FM_Elmt : Elmt_Id; FM_Id : Entity_Id; begin -- Inspect the list of anonymous masters declared within the unit -- looking for an existing master which services the same designated -- type. if Present (All_FMs) then FM_Elmt := First_Elmt (All_FMs); while Present (FM_Elmt) loop FM_Id := Node (FM_Elmt); -- The currect master services the same designated type. As a -- result the master can be reused and associated with another -- anonymous access-to-controlled type. if Anonymous_Designated_Type (FM_Id) = Desig_Typ then return FM_Id; end if; Next_Elmt (FM_Elmt); end loop; end if; return Empty; end Current_Anonymous_Master; -- Local variables Desig_Typ : Entity_Id; FM_Id : Entity_Id; Priv_View : Entity_Id; Unit_Decl : Node_Id; Unit_Id : Entity_Id; -- Start of processing for Build_Anonymous_Master begin -- Nothing to do if the circumstances do not allow for a finalization -- master. if not Allows_Finalization_Master (Ptr_Typ) then return; end if; Unit_Decl := Unit (Cunit (Current_Sem_Unit)); Unit_Id := Unique_Defining_Entity (Unit_Decl); -- The compilation unit is a package instantiation. In this case the -- anonymous master is associated with the package spec as both the -- spec and body appear at the same level. if Nkind (Unit_Decl) = N_Package_Body and then Nkind (Original_Node (Unit_Decl)) = N_Package_Instantiation then Unit_Id := Corresponding_Spec (Unit_Decl); Unit_Decl := Unit_Declaration_Node (Unit_Id); end if; -- Use the initial declaration of the designated type when it denotes -- the full view of an incomplete or private type. This ensures that -- types with one and two views are treated the same. Desig_Typ := Directly_Designated_Type (Ptr_Typ); Priv_View := Incomplete_Or_Partial_View (Desig_Typ); if Present (Priv_View) then Desig_Typ := Priv_View; end if; -- Determine whether the current semantic unit already has an anonymous -- master which services the designated type. FM_Id := Current_Anonymous_Master (Desig_Typ, Unit_Id); -- If this is not the case, create a new master if No (FM_Id) then FM_Id := Create_Anonymous_Master (Desig_Typ, Unit_Id, Unit_Decl); end if; Set_Finalization_Master (Ptr_Typ, FM_Id); end Build_Anonymous_Master; ---------------------------- -- Build_Array_Deep_Procs -- ---------------------------- procedure Build_Array_Deep_Procs (Typ : Entity_Id) is begin Set_TSS (Typ, Make_Deep_Proc (Prim => Initialize_Case, Typ => Typ, Stmts => Make_Deep_Array_Body (Initialize_Case, Typ))); if not Is_Limited_View (Typ) then Set_TSS (Typ, Make_Deep_Proc (Prim => Adjust_Case, Typ => Typ, Stmts => Make_Deep_Array_Body (Adjust_Case, Typ))); end if; -- Do not generate Deep_Finalize and Finalize_Address if finalization is -- suppressed since these routine will not be used. if not Restriction_Active (No_Finalization) then Set_TSS (Typ, Make_Deep_Proc (Prim => Finalize_Case, Typ => Typ, Stmts => Make_Deep_Array_Body (Finalize_Case, Typ))); -- Create TSS primitive Finalize_Address (unless CodePeer_Mode) if not CodePeer_Mode then Set_TSS (Typ, Make_Deep_Proc (Prim => Address_Case, Typ => Typ, Stmts => Make_Deep_Array_Body (Address_Case, Typ))); end if; end if; end Build_Array_Deep_Procs; ------------------------------ -- Build_Cleanup_Statements -- ------------------------------ function Build_Cleanup_Statements (N : Node_Id; Additional_Cleanup : List_Id) return List_Id is Is_Asynchronous_Call : constant Boolean := Nkind (N) = N_Block_Statement and then Is_Asynchronous_Call_Block (N); Is_Master : constant Boolean := Nkind (N) /= N_Entry_Body and then Is_Task_Master (N); Is_Protected_Body : constant Boolean := Nkind (N) = N_Subprogram_Body and then Is_Protected_Subprogram_Body (N); Is_Task_Allocation : constant Boolean := Nkind (N) = N_Block_Statement and then Is_Task_Allocation_Block (N); Is_Task_Body : constant Boolean := Nkind (Original_Node (N)) = N_Task_Body; Loc : constant Source_Ptr := Sloc (N); Stmts : constant List_Id := New_List; begin if Is_Task_Body then if Restricted_Profile then Append_To (Stmts, Build_Runtime_Call (Loc, RE_Complete_Restricted_Task)); else Append_To (Stmts, Build_Runtime_Call (Loc, RE_Complete_Task)); end if; elsif Is_Master then if Restriction_Active (No_Task_Hierarchy) = False then Append_To (Stmts, Build_Runtime_Call (Loc, RE_Complete_Master)); end if; -- Add statements to unlock the protected object parameter and to -- undefer abort. If the context is a protected procedure and the object -- has entries, call the entry service routine. -- NOTE: The generated code references _object, a parameter to the -- procedure. elsif Is_Protected_Body then declare Spec : constant Node_Id := Parent (Corresponding_Spec (N)); Conc_Typ : Entity_Id := Empty; Param : Node_Id; Param_Typ : Entity_Id; begin -- Find the _object parameter representing the protected object Param := First (Parameter_Specifications (Spec)); loop Param_Typ := Etype (Parameter_Type (Param)); if Ekind (Param_Typ) = E_Record_Type then Conc_Typ := Corresponding_Concurrent_Type (Param_Typ); end if; exit when No (Param) or else Present (Conc_Typ); Next (Param); end loop; pragma Assert (Present (Param)); pragma Assert (Present (Conc_Typ)); -- Historical note: In earlier versions of GNAT, there was code -- at this point to generate stuff to service entry queues. It is -- now abstracted in Build_Protected_Subprogram_Call_Cleanup. Build_Protected_Subprogram_Call_Cleanup (Specification (N), Conc_Typ, Loc, Stmts); end; -- Add a call to Expunge_Unactivated_Tasks for dynamically allocated -- tasks. Other unactivated tasks are completed by Complete_Task or -- Complete_Master. -- NOTE: The generated code references _chain, a local object elsif Is_Task_Allocation then -- Generate: -- Expunge_Unactivated_Tasks (_chain); -- where _chain is the list of tasks created by the allocator but not -- yet activated. This list will be empty unless the block completes -- abnormally. Append_To (Stmts, Make_Procedure_Call_Statement (Loc, Name => New_Occurrence_Of (RTE (RE_Expunge_Unactivated_Tasks), Loc), Parameter_Associations => New_List ( New_Occurrence_Of (Activation_Chain_Entity (N), Loc)))); -- Attempt to cancel an asynchronous entry call whenever the block which -- contains the abortable part is exited. -- NOTE: The generated code references Cnn, a local object elsif Is_Asynchronous_Call then declare Cancel_Param : constant Entity_Id := Entry_Cancel_Parameter (Entity (Identifier (N))); begin -- If it is of type Communication_Block, this must be a protected -- entry call. Generate: -- if Enqueued (Cancel_Param) then -- Cancel_Protected_Entry_Call (Cancel_Param); -- end if; if Is_RTE (Etype (Cancel_Param), RE_Communication_Block) then Append_To (Stmts, Make_If_Statement (Loc, Condition => Make_Function_Call (Loc, Name => New_Occurrence_Of (RTE (RE_Enqueued), Loc), Parameter_Associations => New_List ( New_Occurrence_Of (Cancel_Param, Loc))), Then_Statements => New_List ( Make_Procedure_Call_Statement (Loc, Name => New_Occurrence_Of (RTE (RE_Cancel_Protected_Entry_Call), Loc), Parameter_Associations => New_List ( New_Occurrence_Of (Cancel_Param, Loc)))))); -- Asynchronous delay, generate: -- Cancel_Async_Delay (Cancel_Param); elsif Is_RTE (Etype (Cancel_Param), RE_Delay_Block) then Append_To (Stmts, Make_Procedure_Call_Statement (Loc, Name => New_Occurrence_Of (RTE (RE_Cancel_Async_Delay), Loc), Parameter_Associations => New_List ( Make_Attribute_Reference (Loc, Prefix => New_Occurrence_Of (Cancel_Param, Loc), Attribute_Name => Name_Unchecked_Access)))); -- Task entry call, generate: -- Cancel_Task_Entry_Call (Cancel_Param); else Append_To (Stmts, Make_Procedure_Call_Statement (Loc, Name => New_Occurrence_Of (RTE (RE_Cancel_Task_Entry_Call), Loc), Parameter_Associations => New_List ( New_Occurrence_Of (Cancel_Param, Loc)))); end if; end; end if; Append_List_To (Stmts, Additional_Cleanup); return Stmts; end Build_Cleanup_Statements; ----------------------------- -- Build_Controlling_Procs -- ----------------------------- procedure Build_Controlling_Procs (Typ : Entity_Id) is begin if Is_Array_Type (Typ) then Build_Array_Deep_Procs (Typ); else pragma Assert (Is_Record_Type (Typ)); Build_Record_Deep_Procs (Typ); end if; end Build_Controlling_Procs; ----------------------------- -- Build_Exception_Handler -- ----------------------------- function Build_Exception_Handler (Data : Finalization_Exception_Data; For_Library : Boolean := False) return Node_Id is Actuals : List_Id; Proc_To_Call : Entity_Id; Except : Node_Id; Stmts : List_Id; begin pragma Assert (Present (Data.Raised_Id)); if Exception_Extra_Info or else (For_Library and not Restricted_Profile) then if Exception_Extra_Info then -- Generate: -- Get_Current_Excep.all Except := Make_Function_Call (Data.Loc, Name => Make_Explicit_Dereference (Data.Loc, Prefix => New_Occurrence_Of (RTE (RE_Get_Current_Excep), Data.Loc))); else -- Generate: -- null Except := Make_Null (Data.Loc); end if; if For_Library and then not Restricted_Profile then Proc_To_Call := RTE (RE_Save_Library_Occurrence); Actuals := New_List (Except); else Proc_To_Call := RTE (RE_Save_Occurrence); -- The dereference occurs only when Exception_Extra_Info is true, -- and therefore Except is not null. Actuals := New_List ( New_Occurrence_Of (Data.E_Id, Data.Loc), Make_Explicit_Dereference (Data.Loc, Except)); end if; -- Generate: -- when others => -- if not Raised_Id then -- Raised_Id := True; -- Save_Occurrence (E_Id, Get_Current_Excep.all.all); -- or -- Save_Library_Occurrence (Get_Current_Excep.all); -- end if; Stmts := New_List ( Make_If_Statement (Data.Loc, Condition => Make_Op_Not (Data.Loc, Right_Opnd => New_Occurrence_Of (Data.Raised_Id, Data.Loc)), Then_Statements => New_List ( Make_Assignment_Statement (Data.Loc, Name => New_Occurrence_Of (Data.Raised_Id, Data.Loc), Expression => New_Occurrence_Of (Standard_True, Data.Loc)), Make_Procedure_Call_Statement (Data.Loc, Name => New_Occurrence_Of (Proc_To_Call, Data.Loc), Parameter_Associations => Actuals)))); else -- Generate: -- Raised_Id := True; Stmts := New_List ( Make_Assignment_Statement (Data.Loc, Name => New_Occurrence_Of (Data.Raised_Id, Data.Loc), Expression => New_Occurrence_Of (Standard_True, Data.Loc))); end if; -- Generate: -- when others => return Make_Exception_Handler (Data.Loc, Exception_Choices => New_List (Make_Others_Choice (Data.Loc)), Statements => Stmts); end Build_Exception_Handler; ------------------------------- -- Build_Finalization_Master -- ------------------------------- procedure Build_Finalization_Master (Typ : Entity_Id; For_Lib_Level : Boolean := False; For_Private : Boolean := False; Context_Scope : Entity_Id := Empty; Insertion_Node : Node_Id := Empty) is procedure Add_Pending_Access_Type (Typ : Entity_Id; Ptr_Typ : Entity_Id); -- Add access type Ptr_Typ to the pending access type list for type Typ ----------------------------- -- Add_Pending_Access_Type -- ----------------------------- procedure Add_Pending_Access_Type (Typ : Entity_Id; Ptr_Typ : Entity_Id) is List : Elist_Id; begin if Present (Pending_Access_Types (Typ)) then List := Pending_Access_Types (Typ); else List := New_Elmt_List; Set_Pending_Access_Types (Typ, List); end if; Prepend_Elmt (Ptr_Typ, List); end Add_Pending_Access_Type; -- Local variables Desig_Typ : constant Entity_Id := Designated_Type (Typ); Ptr_Typ : constant Entity_Id := Root_Type_Of_Full_View (Base_Type (Typ)); -- A finalization master created for a named access type is associated -- with the full view (if applicable) as a consequence of freezing. The -- full view criteria does not apply to anonymous access types because -- those cannot have a private and a full view. -- Start of processing for Build_Finalization_Master begin -- Nothing to do if the circumstances do not allow for a finalization -- master. if not Allows_Finalization_Master (Typ) then return; -- Various machinery such as freezing may have already created a -- finalization master. elsif Present (Finalization_Master (Ptr_Typ)) then return; end if; declare Actions : constant List_Id := New_List; Loc : constant Source_Ptr := Sloc (Ptr_Typ); Fin_Mas_Id : Entity_Id; Pool_Id : Entity_Id; begin -- Source access types use fixed master names since the master is -- inserted in the same source unit only once. The only exception to -- this are instances using the same access type as generic actual. if Comes_From_Source (Ptr_Typ) and then not Inside_A_Generic then Fin_Mas_Id := Make_Defining_Identifier (Loc, Chars => New_External_Name (Chars (Ptr_Typ), "FM")); -- Internally generated access types use temporaries as their names -- due to possible collision with identical names coming from other -- packages. else Fin_Mas_Id := Make_Temporary (Loc, 'F'); end if; Set_Finalization_Master (Ptr_Typ, Fin_Mas_Id); -- Generate: -- <Ptr_Typ>FM : aliased Finalization_Master; Append_To (Actions, Make_Object_Declaration (Loc, Defining_Identifier => Fin_Mas_Id, Aliased_Present => True, Object_Definition => New_Occurrence_Of (RTE (RE_Finalization_Master), Loc))); -- Set the associated pool and primitive Finalize_Address of the new -- finalization master. -- The access type has a user-defined storage pool, use it if Present (Associated_Storage_Pool (Ptr_Typ)) then Pool_Id := Associated_Storage_Pool (Ptr_Typ); -- Otherwise the default choice is the global storage pool else Pool_Id := RTE (RE_Global_Pool_Object); Set_Associated_Storage_Pool (Ptr_Typ, Pool_Id); end if; -- Generate: -- Set_Base_Pool (<Ptr_Typ>FM, Pool_Id'Unchecked_Access); Append_To (Actions, Make_Procedure_Call_Statement (Loc, Name => New_Occurrence_Of (RTE (RE_Set_Base_Pool), Loc), Parameter_Associations => New_List ( New_Occurrence_Of (Fin_Mas_Id, Loc), Make_Attribute_Reference (Loc, Prefix => New_Occurrence_Of (Pool_Id, Loc), Attribute_Name => Name_Unrestricted_Access)))); -- Finalize_Address is not generated in CodePeer mode because the -- body contains address arithmetic. Skip this step. if CodePeer_Mode then null; -- Associate the Finalize_Address primitive of the designated type -- with the finalization master of the access type. The designated -- type must be forzen as Finalize_Address is generated when the -- freeze node is expanded. elsif Is_Frozen (Desig_Typ) and then Present (Finalize_Address (Desig_Typ)) -- The finalization master of an anonymous access type may need -- to be inserted in a specific place in the tree. For instance: -- type Comp_Typ; -- <finalization master of "access Comp_Typ"> -- type Rec_Typ is record -- Comp : access Comp_Typ; -- end record; -- <freeze node for Comp_Typ> -- <freeze node for Rec_Typ> -- Due to this oddity, the anonymous access type is stored for -- later processing (see below). and then Ekind (Ptr_Typ) /= E_Anonymous_Access_Type then -- Generate: -- Set_Finalize_Address -- (<Ptr_Typ>FM, <Desig_Typ>FD'Unrestricted_Access); Append_To (Actions, Make_Set_Finalize_Address_Call (Loc => Loc, Ptr_Typ => Ptr_Typ)); -- Otherwise the designated type is either anonymous access or a -- Taft-amendment type and has not been frozen. Store the access -- type for later processing (see Freeze_Type). else Add_Pending_Access_Type (Desig_Typ, Ptr_Typ); end if; -- A finalization master created for an access designating a type -- with private components is inserted before a context-dependent -- node. if For_Private then -- At this point both the scope of the context and the insertion -- mode must be known. pragma Assert (Present (Context_Scope)); pragma Assert (Present (Insertion_Node)); Push_Scope (Context_Scope); -- Treat use clauses as declarations and insert directly in front -- of them. if Nkind (Insertion_Node) in N_Use_Package_Clause | N_Use_Type_Clause then Insert_List_Before_And_Analyze (Insertion_Node, Actions); else Insert_Actions (Insertion_Node, Actions); end if; Pop_Scope; -- The finalization master belongs to an access result type related -- to a build-in-place function call used to initialize a library -- level object. The master must be inserted in front of the access -- result type declaration denoted by Insertion_Node. elsif For_Lib_Level then pragma Assert (Present (Insertion_Node)); Insert_Actions (Insertion_Node, Actions); -- Otherwise the finalization master and its initialization become a -- part of the freeze node. else Append_Freeze_Actions (Ptr_Typ, Actions); end if; end; end Build_Finalization_Master; --------------------- -- Build_Finalizer -- --------------------- procedure Build_Finalizer (N : Node_Id; Clean_Stmts : List_Id; Mark_Id : Entity_Id; Top_Decls : List_Id; Defer_Abort : Boolean; Fin_Id : out Entity_Id) is Acts_As_Clean : constant Boolean := Present (Mark_Id) or else (Present (Clean_Stmts) and then Is_Non_Empty_List (Clean_Stmts)); For_Package_Body : constant Boolean := Nkind (N) = N_Package_Body; For_Package_Spec : constant Boolean := Nkind (N) = N_Package_Declaration; For_Package : constant Boolean := For_Package_Body or else For_Package_Spec; Loc : constant Source_Ptr := Sloc (N); -- NOTE: Local variable declarations are conservative and do not create -- structures right from the start. Entities and lists are created once -- it has been established that N has at least one controlled object. Components_Built : Boolean := False; -- A flag used to avoid double initialization of entities and lists. If -- the flag is set then the following variables have been initialized: -- Counter_Id -- Finalizer_Decls -- Finalizer_Stmts -- Jump_Alts Counter_Id : Entity_Id := Empty; Counter_Val : Nat := 0; -- Name and value of the state counter Decls : List_Id := No_List; -- Declarative region of N (if available). If N is a package declaration -- Decls denotes the visible declarations. Finalizer_Data : Finalization_Exception_Data; -- Data for the exception Finalizer_Decls : List_Id := No_List; -- Local variable declarations. This list holds the label declarations -- of all jump block alternatives as well as the declaration of the -- local exception occurrence and the raised flag: -- E : Exception_Occurrence; -- Raised : Boolean := False; -- L<counter value> : label; Finalizer_Insert_Nod : Node_Id := Empty; -- Insertion point for the finalizer body. Depending on the context -- (Nkind of N) and the individual grouping of controlled objects, this -- node may denote a package declaration or body, package instantiation, -- block statement or a counter update statement. Finalizer_Stmts : List_Id := No_List; -- The statement list of the finalizer body. It contains the following: -- -- Abort_Defer; -- Added if abort is allowed -- <call to Prev_At_End> -- Added if exists -- <cleanup statements> -- Added if Acts_As_Clean -- <jump block> -- Added if Has_Ctrl_Objs -- <finalization statements> -- Added if Has_Ctrl_Objs -- <stack release> -- Added if Mark_Id exists -- Abort_Undefer; -- Added if abort is allowed Has_Ctrl_Objs : Boolean := False; -- A general flag which denotes whether N has at least one controlled -- object. Has_Tagged_Types : Boolean := False; -- A general flag which indicates whether N has at least one library- -- level tagged type declaration. HSS : Node_Id := Empty; -- The sequence of statements of N (if available) Jump_Alts : List_Id := No_List; -- Jump block alternatives. Depending on the value of the state counter, -- the control flow jumps to a sequence of finalization statements. This -- list contains the following: -- -- when <counter value> => -- goto L<counter value>; Jump_Block_Insert_Nod : Node_Id := Empty; -- Specific point in the finalizer statements where the jump block is -- inserted. Last_Top_Level_Ctrl_Construct : Node_Id := Empty; -- The last controlled construct encountered when processing the top -- level lists of N. This can be a nested package, an instantiation or -- an object declaration. Prev_At_End : Entity_Id := Empty; -- The previous at end procedure of the handled statements block of N Priv_Decls : List_Id := No_List; -- The private declarations of N if N is a package declaration Spec_Id : Entity_Id := Empty; Spec_Decls : List_Id := Top_Decls; Stmts : List_Id := No_List; Tagged_Type_Stmts : List_Id := No_List; -- Contains calls to Ada.Tags.Unregister_Tag for all library-level -- tagged types found in N. ----------------------- -- Local subprograms -- ----------------------- procedure Build_Components; -- Create all entites and initialize all lists used in the creation of -- the finalizer. procedure Create_Finalizer; -- Create the spec and body of the finalizer and insert them in the -- proper place in the tree depending on the context. procedure Process_Declarations (Decls : List_Id; Preprocess : Boolean := False; Top_Level : Boolean := False); -- Inspect a list of declarations or statements which may contain -- objects that need finalization. When flag Preprocess is set, the -- routine will simply count the total number of controlled objects in -- Decls. Flag Top_Level denotes whether the processing is done for -- objects in nested package declarations or instances. procedure Process_Object_Declaration (Decl : Node_Id; Has_No_Init : Boolean := False; Is_Protected : Boolean := False); -- Generate all the machinery associated with the finalization of a -- single object. Flag Has_No_Init is used to denote certain contexts -- where Decl does not have initialization call(s). Flag Is_Protected -- is set when Decl denotes a simple protected object. procedure Process_Tagged_Type_Declaration (Decl : Node_Id); -- Generate all the code necessary to unregister the external tag of a -- tagged type. ---------------------- -- Build_Components -- ---------------------- procedure Build_Components is Counter_Decl : Node_Id; Counter_Typ : Entity_Id; Counter_Typ_Decl : Node_Id; begin pragma Assert (Present (Decls)); -- This routine might be invoked several times when dealing with -- constructs that have two lists (either two declarative regions -- or declarations and statements). Avoid double initialization. if Components_Built then return; end if; Components_Built := True; if Has_Ctrl_Objs then -- Create entities for the counter, its type, the local exception -- and the raised flag. Counter_Id := Make_Temporary (Loc, 'C'); Counter_Typ := Make_Temporary (Loc, 'T'); Finalizer_Decls := New_List; Build_Object_Declarations (Finalizer_Data, Finalizer_Decls, Loc, For_Package); -- Since the total number of controlled objects is always known, -- build a subtype of Natural with precise bounds. This allows -- the backend to optimize the case statement. Generate: -- -- subtype Tnn is Natural range 0 .. Counter_Val; Counter_Typ_Decl := Make_Subtype_Declaration (Loc, Defining_Identifier => Counter_Typ, Subtype_Indication => Make_Subtype_Indication (Loc, Subtype_Mark => New_Occurrence_Of (Standard_Natural, Loc), Constraint => Make_Range_Constraint (Loc, Range_Expression => Make_Range (Loc, Low_Bound => Make_Integer_Literal (Loc, Uint_0), High_Bound => Make_Integer_Literal (Loc, Counter_Val))))); -- Generate the declaration of the counter itself: -- -- Counter : Integer := 0; Counter_Decl := Make_Object_Declaration (Loc, Defining_Identifier => Counter_Id, Object_Definition => New_Occurrence_Of (Counter_Typ, Loc), Expression => Make_Integer_Literal (Loc, 0)); -- Set the type of the counter explicitly to prevent errors when -- examining object declarations later on. Set_Etype (Counter_Id, Counter_Typ); -- The counter and its type are inserted before the source -- declarations of N. Prepend_To (Decls, Counter_Decl); Prepend_To (Decls, Counter_Typ_Decl); -- The counter and its associated type must be manually analyzed -- since N has already been analyzed. Use the scope of the spec -- when inserting in a package. if For_Package then Push_Scope (Spec_Id); Analyze (Counter_Typ_Decl); Analyze (Counter_Decl); Pop_Scope; else Analyze (Counter_Typ_Decl); Analyze (Counter_Decl); end if; Jump_Alts := New_List; end if; -- If the context requires additional cleanup, the finalization -- machinery is added after the cleanup code. if Acts_As_Clean then Finalizer_Stmts := Clean_Stmts; Jump_Block_Insert_Nod := Last (Finalizer_Stmts); else Finalizer_Stmts := New_List; end if; if Has_Tagged_Types then Tagged_Type_Stmts := New_List; end if; end Build_Components; ---------------------- -- Create_Finalizer -- ---------------------- procedure Create_Finalizer is function New_Finalizer_Name return Name_Id; -- Create a fully qualified name of a package spec or body finalizer. -- The generated name is of the form: xx__yy__finalize_[spec|body]. ------------------------ -- New_Finalizer_Name -- ------------------------ function New_Finalizer_Name return Name_Id is procedure New_Finalizer_Name (Id : Entity_Id); -- Place "__<name-of-Id>" in the name buffer. If the identifier -- has a non-standard scope, process the scope first. ------------------------ -- New_Finalizer_Name -- ------------------------ procedure New_Finalizer_Name (Id : Entity_Id) is begin if Scope (Id) = Standard_Standard then Get_Name_String (Chars (Id)); else New_Finalizer_Name (Scope (Id)); Add_Str_To_Name_Buffer ("__"); Add_Str_To_Name_Buffer (Get_Name_String (Chars (Id))); end if; end New_Finalizer_Name; -- Start of processing for New_Finalizer_Name begin -- Create the fully qualified name of the enclosing scope New_Finalizer_Name (Spec_Id); -- Generate: -- __finalize_[spec|body] Add_Str_To_Name_Buffer ("__finalize_"); if For_Package_Spec then Add_Str_To_Name_Buffer ("spec"); else Add_Str_To_Name_Buffer ("body"); end if; return Name_Find; end New_Finalizer_Name; -- Local variables Body_Id : Entity_Id; Fin_Body : Node_Id; Fin_Spec : Node_Id; Jump_Block : Node_Id; Label : Node_Id; Label_Id : Entity_Id; -- Start of processing for Create_Finalizer begin -- Step 1: Creation of the finalizer name -- Packages must use a distinct name for their finalizers since the -- binder will have to generate calls to them by name. The name is -- of the following form: -- xx__yy__finalize_[spec|body] if For_Package then Fin_Id := Make_Defining_Identifier (Loc, New_Finalizer_Name); Set_Has_Qualified_Name (Fin_Id); Set_Has_Fully_Qualified_Name (Fin_Id); -- The default name is _finalizer else Fin_Id := Make_Defining_Identifier (Loc, Chars => New_External_Name (Name_uFinalizer)); -- The visibility semantics of AT_END handlers force a strange -- separation of spec and body for stack-related finalizers: -- declare : Enclosing_Scope -- procedure _finalizer; -- begin -- <controlled objects> -- procedure _finalizer is -- ... -- at end -- _finalizer; -- end; -- Both spec and body are within the same construct and scope, but -- the body is part of the handled sequence of statements. This -- placement confuses the elaboration mechanism on targets where -- AT_END handlers are expanded into "when all others" handlers: -- exception -- when all others => -- _finalizer; -- appears to require elab checks -- at end -- _finalizer; -- end; -- Since the compiler guarantees that the body of a _finalizer is -- always inserted in the same construct where the AT_END handler -- resides, there is no need for elaboration checks. Set_Kill_Elaboration_Checks (Fin_Id); -- Inlining the finalizer produces a substantial speedup at -O2. -- It is inlined by default at -O3. Either way, it is called -- exactly twice (once on the normal path, and once for -- exceptions/abort), so this won't bloat the code too much. Set_Is_Inlined (Fin_Id); end if; -- Step 2: Creation of the finalizer specification -- Generate: -- procedure Fin_Id; Fin_Spec := Make_Subprogram_Declaration (Loc, Specification => Make_Procedure_Specification (Loc, Defining_Unit_Name => Fin_Id)); -- Step 3: Creation of the finalizer body if Has_Ctrl_Objs then -- Add L0, the default destination to the jump block Label_Id := Make_Identifier (Loc, New_External_Name ('L', 0)); Set_Entity (Label_Id, Make_Defining_Identifier (Loc, Chars (Label_Id))); Label := Make_Label (Loc, Label_Id); -- Generate: -- L0 : label; Prepend_To (Finalizer_Decls, Make_Implicit_Label_Declaration (Loc, Defining_Identifier => Entity (Label_Id), Label_Construct => Label)); -- Generate: -- when others => -- goto L0; Append_To (Jump_Alts, Make_Case_Statement_Alternative (Loc, Discrete_Choices => New_List (Make_Others_Choice (Loc)), Statements => New_List ( Make_Goto_Statement (Loc, Name => New_Occurrence_Of (Entity (Label_Id), Loc))))); -- Generate: -- <<L0>> Append_To (Finalizer_Stmts, Label); -- Create the jump block which controls the finalization flow -- depending on the value of the state counter. Jump_Block := Make_Case_Statement (Loc, Expression => Make_Identifier (Loc, Chars (Counter_Id)), Alternatives => Jump_Alts); if Acts_As_Clean and then Present (Jump_Block_Insert_Nod) then Insert_After (Jump_Block_Insert_Nod, Jump_Block); else Prepend_To (Finalizer_Stmts, Jump_Block); end if; end if; -- Add the library-level tagged type unregistration machinery before -- the jump block circuitry. This ensures that external tags will be -- removed even if a finalization exception occurs at some point. if Has_Tagged_Types then Prepend_List_To (Finalizer_Stmts, Tagged_Type_Stmts); end if; -- Add a call to the previous At_End handler if it exists. The call -- must always precede the jump block. if Present (Prev_At_End) then Prepend_To (Finalizer_Stmts, Make_Procedure_Call_Statement (Loc, Prev_At_End)); -- Clear the At_End handler since we have already generated the -- proper replacement call for it. Set_At_End_Proc (HSS, Empty); end if; -- Release the secondary stack if Present (Mark_Id) then declare Release : Node_Id := Build_SS_Release_Call (Loc, Mark_Id); begin -- If the context is a build-in-place function, the secondary -- stack must be released, unless the build-in-place function -- itself is returning on the secondary stack. Generate: -- -- if BIP_Alloc_Form /= Secondary_Stack then -- SS_Release (Mark_Id); -- end if; -- -- Note that if the function returns on the secondary stack, -- then the responsibility of reclaiming the space is always -- left to the caller (recursively if needed). if Nkind (N) = N_Subprogram_Body then declare Spec_Id : constant Entity_Id := Unique_Defining_Entity (N); BIP_SS : constant Boolean := Is_Build_In_Place_Function (Spec_Id) and then Needs_BIP_Alloc_Form (Spec_Id); begin if BIP_SS then Release := Make_If_Statement (Loc, Condition => Make_Op_Ne (Loc, Left_Opnd => New_Occurrence_Of (Build_In_Place_Formal (Spec_Id, BIP_Alloc_Form), Loc), Right_Opnd => Make_Integer_Literal (Loc, UI_From_Int (BIP_Allocation_Form'Pos (Secondary_Stack)))), Then_Statements => New_List (Release)); end if; end; end if; Append_To (Finalizer_Stmts, Release); end; end if; -- Protect the statements with abort defer/undefer. This is only when -- aborts are allowed and the cleanup statements require deferral or -- there are controlled objects to be finalized. Note that the abort -- defer/undefer pair does not require an extra block because each -- finalization exception is caught in its corresponding finalization -- block. As a result, the call to Abort_Defer always takes place. if Abort_Allowed and then (Defer_Abort or Has_Ctrl_Objs) then Prepend_To (Finalizer_Stmts, Build_Runtime_Call (Loc, RE_Abort_Defer)); Append_To (Finalizer_Stmts, Build_Runtime_Call (Loc, RE_Abort_Undefer)); end if; -- The local exception does not need to be reraised for library-level -- finalizers. Note that this action must be carried out after object -- cleanup, secondary stack release, and abort undeferral. Generate: -- if Raised and then not Abort then -- Raise_From_Controlled_Operation (E); -- end if; if Has_Ctrl_Objs and Exceptions_OK and not For_Package then Append_To (Finalizer_Stmts, Build_Raise_Statement (Finalizer_Data)); end if; -- Generate: -- procedure Fin_Id is -- Abort : constant Boolean := Triggered_By_Abort; -- <or> -- Abort : constant Boolean := False; -- no abort -- E : Exception_Occurrence; -- All added if flag -- Raised : Boolean := False; -- Has_Ctrl_Objs is set -- L0 : label; -- ... -- Lnn : label; -- begin -- Abort_Defer; -- Added if abort is allowed -- <call to Prev_At_End> -- Added if exists -- <cleanup statements> -- Added if Acts_As_Clean -- <jump block> -- Added if Has_Ctrl_Objs -- <finalization statements> -- Added if Has_Ctrl_Objs -- <stack release> -- Added if Mark_Id exists -- Abort_Undefer; -- Added if abort is allowed -- <exception propagation> -- Added if Has_Ctrl_Objs -- end Fin_Id; -- Create the body of the finalizer Body_Id := Make_Defining_Identifier (Loc, Chars (Fin_Id)); if For_Package then Set_Has_Qualified_Name (Body_Id); Set_Has_Fully_Qualified_Name (Body_Id); end if; Fin_Body := Make_Subprogram_Body (Loc, Specification => Make_Procedure_Specification (Loc, Defining_Unit_Name => Body_Id), Declarations => Finalizer_Decls, Handled_Statement_Sequence => Make_Handled_Sequence_Of_Statements (Loc, Statements => Finalizer_Stmts)); -- Step 4: Spec and body insertion, analysis if For_Package then -- If the package spec has private declarations, the finalizer -- body must be added to the end of the list in order to have -- visibility of all private controlled objects. if For_Package_Spec then if Present (Priv_Decls) then Append_To (Priv_Decls, Fin_Spec); Append_To (Priv_Decls, Fin_Body); else Append_To (Decls, Fin_Spec); Append_To (Decls, Fin_Body); end if; -- For package bodies, both the finalizer spec and body are -- inserted at the end of the package declarations. else Append_To (Decls, Fin_Spec); Append_To (Decls, Fin_Body); end if; -- Push the name of the package Push_Scope (Spec_Id); Analyze (Fin_Spec); Analyze (Fin_Body); Pop_Scope; -- Non-package case else -- Create the spec for the finalizer. The At_End handler must be -- able to call the body which resides in a nested structure. -- Generate: -- declare -- procedure Fin_Id; -- Spec -- begin -- <objects and possibly statements> -- procedure Fin_Id is ... -- Body -- <statements> -- at end -- Fin_Id; -- At_End handler -- end; pragma Assert (Present (Spec_Decls)); Append_To (Spec_Decls, Fin_Spec); Analyze (Fin_Spec); -- When the finalizer acts solely as a cleanup routine, the body -- is inserted right after the spec. if Acts_As_Clean and not Has_Ctrl_Objs then Insert_After (Fin_Spec, Fin_Body); -- In all other cases the body is inserted after either: -- -- 1) The counter update statement of the last controlled object -- 2) The last top level nested controlled package -- 3) The last top level controlled instantiation else -- Manually freeze the spec. This is somewhat of a hack because -- a subprogram is frozen when its body is seen and the freeze -- node appears right before the body. However, in this case, -- the spec must be frozen earlier since the At_End handler -- must be able to call it. -- -- declare -- procedure Fin_Id; -- Spec -- [Fin_Id] -- Freeze node -- begin -- ... -- at end -- Fin_Id; -- At_End handler -- end; Ensure_Freeze_Node (Fin_Id); Insert_After (Fin_Spec, Freeze_Node (Fin_Id)); Set_Is_Frozen (Fin_Id); -- In the case where the last construct to contain a controlled -- object is either a nested package, an instantiation or a -- freeze node, the body must be inserted directly after the -- construct. if Nkind (Last_Top_Level_Ctrl_Construct) in N_Freeze_Entity | N_Package_Declaration | N_Package_Body then Finalizer_Insert_Nod := Last_Top_Level_Ctrl_Construct; end if; Insert_After (Finalizer_Insert_Nod, Fin_Body); end if; Analyze (Fin_Body, Suppress => All_Checks); end if; -- Never consider that the finalizer procedure is enabled Ghost, even -- when the corresponding unit is Ghost, as this would lead to an -- an external name with a ___ghost_ prefix that the binder cannot -- generate, as it has no knowledge of the Ghost status of units. Set_Is_Checked_Ghost_Entity (Fin_Id, False); end Create_Finalizer; -------------------------- -- Process_Declarations -- -------------------------- procedure Process_Declarations (Decls : List_Id; Preprocess : Boolean := False; Top_Level : Boolean := False) is Decl : Node_Id; Expr : Node_Id; Obj_Id : Entity_Id; Obj_Typ : Entity_Id; Pack_Id : Entity_Id; Spec : Node_Id; Typ : Entity_Id; Old_Counter_Val : Nat; -- This variable is used to determine whether a nested package or -- instance contains at least one controlled object. procedure Processing_Actions (Has_No_Init : Boolean := False; Is_Protected : Boolean := False); -- Depending on the mode of operation of Process_Declarations, either -- increment the controlled object counter, set the controlled object -- flag and store the last top level construct or process the current -- declaration. Flag Has_No_Init is used to propagate scenarios where -- the current declaration may not have initialization proc(s). Flag -- Is_Protected should be set when the current declaration denotes a -- simple protected object. ------------------------ -- Processing_Actions -- ------------------------ procedure Processing_Actions (Has_No_Init : Boolean := False; Is_Protected : Boolean := False) is begin -- Library-level tagged type if Nkind (Decl) = N_Full_Type_Declaration then if Preprocess then Has_Tagged_Types := True; if Top_Level and then No (Last_Top_Level_Ctrl_Construct) then Last_Top_Level_Ctrl_Construct := Decl; end if; else Process_Tagged_Type_Declaration (Decl); end if; -- Controlled object declaration else if Preprocess then Counter_Val := Counter_Val + 1; Has_Ctrl_Objs := True; if Top_Level and then No (Last_Top_Level_Ctrl_Construct) then Last_Top_Level_Ctrl_Construct := Decl; end if; else Process_Object_Declaration (Decl, Has_No_Init, Is_Protected); end if; end if; end Processing_Actions; -- Start of processing for Process_Declarations begin if No (Decls) or else Is_Empty_List (Decls) then return; end if; -- Process all declarations in reverse order Decl := Last_Non_Pragma (Decls); while Present (Decl) loop -- Library-level tagged types if Nkind (Decl) = N_Full_Type_Declaration then Typ := Defining_Identifier (Decl); -- Ignored Ghost types do not need any cleanup actions because -- they will not appear in the final tree. if Is_Ignored_Ghost_Entity (Typ) then null; elsif Is_Tagged_Type (Typ) and then Is_Library_Level_Entity (Typ) and then Convention (Typ) = Convention_Ada and then Present (Access_Disp_Table (Typ)) and then RTE_Available (RE_Register_Tag) and then not Is_Abstract_Type (Typ) and then not No_Run_Time_Mode then Processing_Actions; end if; -- Regular object declarations elsif Nkind (Decl) = N_Object_Declaration then Obj_Id := Defining_Identifier (Decl); Obj_Typ := Base_Type (Etype (Obj_Id)); Expr := Expression (Decl); -- Bypass any form of processing for objects which have their -- finalization disabled. This applies only to objects at the -- library level. if For_Package and then Finalize_Storage_Only (Obj_Typ) then null; -- Finalization of transient objects are treated separately in -- order to handle sensitive cases. These include: -- * Aggregate expansion -- * If, case, and expression with actions expansion -- * Transient scopes -- If one of those contexts has marked the transient object as -- ignored, do not generate finalization actions for it. elsif Is_Finalized_Transient (Obj_Id) or else Is_Ignored_Transient (Obj_Id) then null; -- Ignored Ghost objects do not need any cleanup actions -- because they will not appear in the final tree. elsif Is_Ignored_Ghost_Entity (Obj_Id) then null; -- The object is of the form: -- Obj : [constant] Typ [:= Expr]; -- Do not process tag-to-class-wide conversions because they do -- not yield an object. Do not process the incomplete view of a -- deferred constant. Note that an object initialized by means -- of a build-in-place function call may appear as a deferred -- constant after expansion activities. These kinds of objects -- must be finalized. elsif not Is_Imported (Obj_Id) and then Needs_Finalization (Obj_Typ) and then not Is_Tag_To_Class_Wide_Conversion (Obj_Id) and then not (Ekind (Obj_Id) = E_Constant and then not Has_Completion (Obj_Id) and then No (BIP_Initialization_Call (Obj_Id))) then Processing_Actions; -- The object is of the form: -- Obj : Access_Typ := Non_BIP_Function_Call'reference; -- Obj : Access_Typ := -- BIP_Function_Call (BIPalloc => 2, ...)'reference; elsif Is_Access_Type (Obj_Typ) and then Needs_Finalization (Available_View (Designated_Type (Obj_Typ))) and then Present (Expr) and then (Is_Secondary_Stack_BIP_Func_Call (Expr) or else (Is_Non_BIP_Func_Call (Expr) and then not Is_Related_To_Func_Return (Obj_Id))) then Processing_Actions (Has_No_Init => True); -- Processing for "hook" objects generated for transient -- objects declared inside an Expression_With_Actions. elsif Is_Access_Type (Obj_Typ) and then Present (Status_Flag_Or_Transient_Decl (Obj_Id)) and then Nkind (Status_Flag_Or_Transient_Decl (Obj_Id)) = N_Object_Declaration then Processing_Actions (Has_No_Init => True); -- Process intermediate results of an if expression with one -- of the alternatives using a controlled function call. elsif Is_Access_Type (Obj_Typ) and then Present (Status_Flag_Or_Transient_Decl (Obj_Id)) and then Nkind (Status_Flag_Or_Transient_Decl (Obj_Id)) = N_Defining_Identifier and then Present (Expr) and then Nkind (Expr) = N_Null then Processing_Actions (Has_No_Init => True); -- Simple protected objects which use type System.Tasking. -- Protected_Objects.Protection to manage their locks should -- be treated as controlled since they require manual cleanup. -- The only exception is illustrated in the following example: -- package Pkg is -- type Ctrl is new Controlled ... -- procedure Finalize (Obj : in out Ctrl); -- Lib_Obj : Ctrl; -- end Pkg; -- package body Pkg is -- protected Prot is -- procedure Do_Something (Obj : in out Ctrl); -- end Prot; -- protected body Prot is -- procedure Do_Something (Obj : in out Ctrl) is ... -- end Prot; -- procedure Finalize (Obj : in out Ctrl) is -- begin -- Prot.Do_Something (Obj); -- end Finalize; -- end Pkg; -- Since for the most part entities in package bodies depend on -- those in package specs, Prot's lock should be cleaned up -- first. The subsequent cleanup of the spec finalizes Lib_Obj. -- This act however attempts to invoke Do_Something and fails -- because the lock has disappeared. elsif Ekind (Obj_Id) = E_Variable and then not In_Library_Level_Package_Body (Obj_Id) and then (Is_Simple_Protected_Type (Obj_Typ) or else Has_Simple_Protected_Object (Obj_Typ)) then Processing_Actions (Is_Protected => True); end if; -- Specific cases of object renamings elsif Nkind (Decl) = N_Object_Renaming_Declaration then Obj_Id := Defining_Identifier (Decl); Obj_Typ := Base_Type (Etype (Obj_Id)); -- Bypass any form of processing for objects which have their -- finalization disabled. This applies only to objects at the -- library level. if For_Package and then Finalize_Storage_Only (Obj_Typ) then null; -- Ignored Ghost object renamings do not need any cleanup -- actions because they will not appear in the final tree. elsif Is_Ignored_Ghost_Entity (Obj_Id) then null; -- Return object of a build-in-place function. This case is -- recognized and marked by the expansion of an extended return -- statement (see Expand_N_Extended_Return_Statement). elsif Needs_Finalization (Obj_Typ) and then Is_Return_Object (Obj_Id) and then Present (Status_Flag_Or_Transient_Decl (Obj_Id)) then Processing_Actions (Has_No_Init => True); -- Detect a case where a source object has been initialized by -- a controlled function call or another object which was later -- rewritten as a class-wide conversion of Ada.Tags.Displace. -- Obj1 : CW_Type := Src_Obj; -- Obj2 : CW_Type := Function_Call (...); -- Obj1 : CW_Type renames (... Ada.Tags.Displace (Src_Obj)); -- Tmp : ... := Function_Call (...)'reference; -- Obj2 : CW_Type renames (... Ada.Tags.Displace (Tmp)); elsif Is_Displacement_Of_Object_Or_Function_Result (Obj_Id) then Processing_Actions (Has_No_Init => True); end if; -- Inspect the freeze node of an access-to-controlled type and -- look for a delayed finalization master. This case arises when -- the freeze actions are inserted at a later time than the -- expansion of the context. Since Build_Finalizer is never called -- on a single construct twice, the master will be ultimately -- left out and never finalized. This is also needed for freeze -- actions of designated types themselves, since in some cases the -- finalization master is associated with a designated type's -- freeze node rather than that of the access type (see handling -- for freeze actions in Build_Finalization_Master). elsif Nkind (Decl) = N_Freeze_Entity and then Present (Actions (Decl)) then Typ := Entity (Decl); -- Freeze nodes for ignored Ghost types do not need cleanup -- actions because they will never appear in the final tree. if Is_Ignored_Ghost_Entity (Typ) then null; elsif (Is_Access_Type (Typ) and then not Is_Access_Subprogram_Type (Typ) and then Needs_Finalization (Available_View (Designated_Type (Typ)))) or else (Is_Type (Typ) and then Needs_Finalization (Typ)) then Old_Counter_Val := Counter_Val; -- Freeze nodes are considered to be identical to packages -- and blocks in terms of nesting. The difference is that -- a finalization master created inside the freeze node is -- at the same nesting level as the node itself. Process_Declarations (Actions (Decl), Preprocess); -- The freeze node contains a finalization master if Preprocess and then Top_Level and then No (Last_Top_Level_Ctrl_Construct) and then Counter_Val > Old_Counter_Val then Last_Top_Level_Ctrl_Construct := Decl; end if; end if; -- Nested package declarations, avoid generics elsif Nkind (Decl) = N_Package_Declaration then Pack_Id := Defining_Entity (Decl); Spec := Specification (Decl); -- Do not inspect an ignored Ghost package because all code -- found within will not appear in the final tree. if Is_Ignored_Ghost_Entity (Pack_Id) then null; elsif Ekind (Pack_Id) /= E_Generic_Package then Old_Counter_Val := Counter_Val; Process_Declarations (Private_Declarations (Spec), Preprocess); Process_Declarations (Visible_Declarations (Spec), Preprocess); -- Either the visible or the private declarations contain a -- controlled object. The nested package declaration is the -- last such construct. if Preprocess and then Top_Level and then No (Last_Top_Level_Ctrl_Construct) and then Counter_Val > Old_Counter_Val then Last_Top_Level_Ctrl_Construct := Decl; end if; end if; -- Nested package bodies, avoid generics elsif Nkind (Decl) = N_Package_Body then -- Do not inspect an ignored Ghost package body because all -- code found within will not appear in the final tree. if Is_Ignored_Ghost_Entity (Defining_Entity (Decl)) then null; elsif Ekind (Corresponding_Spec (Decl)) /= E_Generic_Package then Old_Counter_Val := Counter_Val; Process_Declarations (Declarations (Decl), Preprocess); -- The nested package body is the last construct to contain -- a controlled object. if Preprocess and then Top_Level and then No (Last_Top_Level_Ctrl_Construct) and then Counter_Val > Old_Counter_Val then Last_Top_Level_Ctrl_Construct := Decl; end if; end if; -- Handle a rare case caused by a controlled transient object -- created as part of a record init proc. The variable is wrapped -- in a block, but the block is not associated with a transient -- scope. elsif Nkind (Decl) = N_Block_Statement and then Inside_Init_Proc then Old_Counter_Val := Counter_Val; if Present (Handled_Statement_Sequence (Decl)) then Process_Declarations (Statements (Handled_Statement_Sequence (Decl)), Preprocess); end if; Process_Declarations (Declarations (Decl), Preprocess); -- Either the declaration or statement list of the block has a -- controlled object. if Preprocess and then Top_Level and then No (Last_Top_Level_Ctrl_Construct) and then Counter_Val > Old_Counter_Val then Last_Top_Level_Ctrl_Construct := Decl; end if; -- Handle the case where the original context has been wrapped in -- a block to avoid interference between exception handlers and -- At_End handlers. Treat the block as transparent and process its -- contents. elsif Nkind (Decl) = N_Block_Statement and then Is_Finalization_Wrapper (Decl) then if Present (Handled_Statement_Sequence (Decl)) then Process_Declarations (Statements (Handled_Statement_Sequence (Decl)), Preprocess); end if; Process_Declarations (Declarations (Decl), Preprocess); end if; Prev_Non_Pragma (Decl); end loop; end Process_Declarations; -------------------------------- -- Process_Object_Declaration -- -------------------------------- procedure Process_Object_Declaration (Decl : Node_Id; Has_No_Init : Boolean := False; Is_Protected : Boolean := False) is Loc : constant Source_Ptr := Sloc (Decl); Obj_Id : constant Entity_Id := Defining_Identifier (Decl); Init_Typ : Entity_Id; -- The initialization type of the related object declaration. Note -- that this is not necessarily the same type as Obj_Typ because of -- possible type derivations. Obj_Typ : Entity_Id; -- The type of the related object declaration function Build_BIP_Cleanup_Stmts (Func_Id : Entity_Id) return Node_Id; -- Func_Id denotes a build-in-place function. Generate the following -- cleanup code: -- -- if BIPallocfrom > Secondary_Stack'Pos -- and then BIPfinalizationmaster /= null -- then -- declare -- type Ptr_Typ is access Obj_Typ; -- for Ptr_Typ'Storage_Pool -- use Base_Pool (BIPfinalizationmaster); -- begin -- Free (Ptr_Typ (Temp)); -- end; -- end if; -- -- Obj_Typ is the type of the current object, Temp is the original -- allocation which Obj_Id renames. procedure Find_Last_Init (Last_Init : out Node_Id; Body_Insert : out Node_Id); -- Find the last initialization call related to object declaration -- Decl. Last_Init denotes the last initialization call which follows -- Decl. Body_Insert denotes a node where the finalizer body could be -- potentially inserted after (if blocks are involved). ----------------------------- -- Build_BIP_Cleanup_Stmts -- ----------------------------- function Build_BIP_Cleanup_Stmts (Func_Id : Entity_Id) return Node_Id is Decls : constant List_Id := New_List; Fin_Mas_Id : constant Entity_Id := Build_In_Place_Formal (Func_Id, BIP_Finalization_Master); Func_Typ : constant Entity_Id := Etype (Func_Id); Temp_Id : constant Entity_Id := Entity (Prefix (Name (Parent (Obj_Id)))); Cond : Node_Id; Free_Blk : Node_Id; Free_Stmt : Node_Id; Pool_Id : Entity_Id; Ptr_Typ : Entity_Id; begin -- Generate: -- Pool_Id renames Base_Pool (BIPfinalizationmaster.all).all; Pool_Id := Make_Temporary (Loc, 'P'); Append_To (Decls, Make_Object_Renaming_Declaration (Loc, Defining_Identifier => Pool_Id, Subtype_Mark => New_Occurrence_Of (RTE (RE_Root_Storage_Pool), Loc), Name => Make_Explicit_Dereference (Loc, Prefix => Make_Function_Call (Loc, Name => New_Occurrence_Of (RTE (RE_Base_Pool), Loc), Parameter_Associations => New_List ( Make_Explicit_Dereference (Loc, Prefix => New_Occurrence_Of (Fin_Mas_Id, Loc))))))); -- Create an access type which uses the storage pool of the -- caller's finalization master. -- Generate: -- type Ptr_Typ is access Func_Typ; Ptr_Typ := Make_Temporary (Loc, 'P'); Append_To (Decls, Make_Full_Type_Declaration (Loc, Defining_Identifier => Ptr_Typ, Type_Definition => Make_Access_To_Object_Definition (Loc, Subtype_Indication => New_Occurrence_Of (Func_Typ, Loc)))); -- Perform minor decoration in order to set the master and the -- storage pool attributes. Set_Ekind (Ptr_Typ, E_Access_Type); Set_Finalization_Master (Ptr_Typ, Fin_Mas_Id); Set_Associated_Storage_Pool (Ptr_Typ, Pool_Id); -- Create an explicit free statement. Note that the free uses the -- caller's pool expressed as a renaming. Free_Stmt := Make_Free_Statement (Loc, Expression => Unchecked_Convert_To (Ptr_Typ, New_Occurrence_Of (Temp_Id, Loc))); Set_Storage_Pool (Free_Stmt, Pool_Id); -- Create a block to house the dummy type and the instantiation as -- well as to perform the cleanup the temporary. -- Generate: -- declare -- <Decls> -- begin -- Free (Ptr_Typ (Temp_Id)); -- end; Free_Blk := Make_Block_Statement (Loc, Declarations => Decls, Handled_Statement_Sequence => Make_Handled_Sequence_Of_Statements (Loc, Statements => New_List (Free_Stmt))); -- Generate: -- if BIPfinalizationmaster /= null then Cond := Make_Op_Ne (Loc, Left_Opnd => New_Occurrence_Of (Fin_Mas_Id, Loc), Right_Opnd => Make_Null (Loc)); -- For constrained or tagged results escalate the condition to -- include the allocation format. Generate: -- if BIPallocform > Secondary_Stack'Pos -- and then BIPfinalizationmaster /= null -- then if not Is_Constrained (Func_Typ) or else Is_Tagged_Type (Func_Typ) then declare Alloc : constant Entity_Id := Build_In_Place_Formal (Func_Id, BIP_Alloc_Form); begin Cond := Make_And_Then (Loc, Left_Opnd => Make_Op_Gt (Loc, Left_Opnd => New_Occurrence_Of (Alloc, Loc), Right_Opnd => Make_Integer_Literal (Loc, UI_From_Int (BIP_Allocation_Form'Pos (Secondary_Stack)))), Right_Opnd => Cond); end; end if; -- Generate: -- if <Cond> then -- <Free_Blk> -- end if; return Make_If_Statement (Loc, Condition => Cond, Then_Statements => New_List (Free_Blk)); end Build_BIP_Cleanup_Stmts; -------------------- -- Find_Last_Init -- -------------------- procedure Find_Last_Init (Last_Init : out Node_Id; Body_Insert : out Node_Id) is function Find_Last_Init_In_Block (Blk : Node_Id) return Node_Id; -- Find the last initialization call within the statements of -- block Blk. function Is_Init_Call (N : Node_Id) return Boolean; -- Determine whether node N denotes one of the initialization -- procedures of types Init_Typ or Obj_Typ. function Next_Suitable_Statement (Stmt : Node_Id) return Node_Id; -- Obtain the next statement which follows list member Stmt while -- ignoring artifacts related to access-before-elaboration checks. ----------------------------- -- Find_Last_Init_In_Block -- ----------------------------- function Find_Last_Init_In_Block (Blk : Node_Id) return Node_Id is HSS : constant Node_Id := Handled_Statement_Sequence (Blk); Stmt : Node_Id; begin -- Examine the individual statements of the block in reverse to -- locate the last initialization call. if Present (HSS) and then Present (Statements (HSS)) then Stmt := Last (Statements (HSS)); while Present (Stmt) loop -- Peek inside nested blocks in case aborts are allowed if Nkind (Stmt) = N_Block_Statement then return Find_Last_Init_In_Block (Stmt); elsif Is_Init_Call (Stmt) then return Stmt; end if; Prev (Stmt); end loop; end if; return Empty; end Find_Last_Init_In_Block; ------------------ -- Is_Init_Call -- ------------------ function Is_Init_Call (N : Node_Id) return Boolean is function Is_Init_Proc_Of (Subp_Id : Entity_Id; Typ : Entity_Id) return Boolean; -- Determine whether subprogram Subp_Id is a valid init proc of -- type Typ. --------------------- -- Is_Init_Proc_Of -- --------------------- function Is_Init_Proc_Of (Subp_Id : Entity_Id; Typ : Entity_Id) return Boolean is Deep_Init : Entity_Id := Empty; Prim_Init : Entity_Id := Empty; Type_Init : Entity_Id := Empty; begin -- Obtain all possible initialization routines of the -- related type and try to match the subprogram entity -- against one of them. -- Deep_Initialize Deep_Init := TSS (Typ, TSS_Deep_Initialize); -- Primitive Initialize if Is_Controlled (Typ) then Prim_Init := Find_Optional_Prim_Op (Typ, Name_Initialize); if Present (Prim_Init) then Prim_Init := Ultimate_Alias (Prim_Init); end if; end if; -- Type initialization routine if Has_Non_Null_Base_Init_Proc (Typ) then Type_Init := Base_Init_Proc (Typ); end if; return (Present (Deep_Init) and then Subp_Id = Deep_Init) or else (Present (Prim_Init) and then Subp_Id = Prim_Init) or else (Present (Type_Init) and then Subp_Id = Type_Init); end Is_Init_Proc_Of; -- Local variables Call_Id : Entity_Id; -- Start of processing for Is_Init_Call begin if Nkind (N) = N_Procedure_Call_Statement and then Nkind (Name (N)) = N_Identifier then Call_Id := Entity (Name (N)); -- Consider both the type of the object declaration and its -- related initialization type. return Is_Init_Proc_Of (Call_Id, Init_Typ) or else Is_Init_Proc_Of (Call_Id, Obj_Typ); end if; return False; end Is_Init_Call; ----------------------------- -- Next_Suitable_Statement -- ----------------------------- function Next_Suitable_Statement (Stmt : Node_Id) return Node_Id is Result : Node_Id; begin -- Skip call markers and Program_Error raises installed by the -- ABE mechanism. Result := Next (Stmt); while Present (Result) loop exit when Nkind (Result) not in N_Call_Marker | N_Raise_Program_Error; Next (Result); end loop; return Result; end Next_Suitable_Statement; -- Local variables Call : Node_Id; Stmt : Node_Id; Stmt_2 : Node_Id; Deep_Init_Found : Boolean := False; -- A flag set when a call to [Deep_]Initialize has been found -- Start of processing for Find_Last_Init begin Last_Init := Decl; Body_Insert := Empty; -- Object renamings and objects associated with controlled -- function results do not require initialization. if Has_No_Init then return; end if; Stmt := Next_Suitable_Statement (Decl); -- For an object with suppressed initialization, we check whether -- there is in fact no initialization expression. If there is not, -- then this is an object declaration that has been turned into a -- different object declaration that calls the build-in-place -- function in a 'Reference attribute, as in "F(...)'Reference". -- We search for that later object declaration, so that the -- Inc_Decl will be inserted after the call. Otherwise, if the -- call raises an exception, we will finalize the (uninitialized) -- object, which is wrong. if No_Initialization (Decl) then if No (Expression (Last_Init)) then loop Next (Last_Init); exit when No (Last_Init); exit when Nkind (Last_Init) = N_Object_Declaration and then Nkind (Expression (Last_Init)) = N_Reference and then Nkind (Prefix (Expression (Last_Init))) = N_Function_Call and then Is_Expanded_Build_In_Place_Call (Prefix (Expression (Last_Init))); end loop; end if; return; -- In all other cases the initialization calls follow the related -- object. The general structure of object initialization built by -- routine Default_Initialize_Object is as follows: -- [begin -- aborts allowed -- Abort_Defer;] -- Type_Init_Proc (Obj); -- [begin] -- exceptions allowed -- Deep_Initialize (Obj); -- [exception -- exceptions allowed -- when others => -- Deep_Finalize (Obj, Self => False); -- raise; -- end;] -- [at end -- aborts allowed -- Abort_Undefer; -- end;] -- When aborts are allowed, the initialization calls are housed -- within a block. elsif Nkind (Stmt) = N_Block_Statement then Last_Init := Find_Last_Init_In_Block (Stmt); Body_Insert := Stmt; -- Otherwise the initialization calls follow the related object else Stmt_2 := Next_Suitable_Statement (Stmt); -- Check for an optional call to Deep_Initialize which may -- appear within a block depending on whether the object has -- controlled components. if Present (Stmt_2) then if Nkind (Stmt_2) = N_Block_Statement then Call := Find_Last_Init_In_Block (Stmt_2); if Present (Call) then Deep_Init_Found := True; Last_Init := Call; Body_Insert := Stmt_2; end if; elsif Is_Init_Call (Stmt_2) then Deep_Init_Found := True; Last_Init := Stmt_2; Body_Insert := Last_Init; end if; end if; -- If the object lacks a call to Deep_Initialize, then it must -- have a call to its related type init proc. if not Deep_Init_Found and then Is_Init_Call (Stmt) then Last_Init := Stmt; Body_Insert := Last_Init; end if; end if; end Find_Last_Init; -- Local variables Body_Ins : Node_Id; Count_Ins : Node_Id; Fin_Call : Node_Id; Fin_Stmts : List_Id := No_List; Inc_Decl : Node_Id; Label : Node_Id; Label_Id : Entity_Id; Obj_Ref : Node_Id; -- Start of processing for Process_Object_Declaration begin -- Handle the object type and the reference to the object Obj_Ref := New_Occurrence_Of (Obj_Id, Loc); Obj_Typ := Base_Type (Etype (Obj_Id)); loop if Is_Access_Type (Obj_Typ) then Obj_Typ := Directly_Designated_Type (Obj_Typ); Obj_Ref := Make_Explicit_Dereference (Loc, Obj_Ref); elsif Is_Concurrent_Type (Obj_Typ) and then Present (Corresponding_Record_Type (Obj_Typ)) then Obj_Typ := Corresponding_Record_Type (Obj_Typ); Obj_Ref := Unchecked_Convert_To (Obj_Typ, Obj_Ref); elsif Is_Private_Type (Obj_Typ) and then Present (Full_View (Obj_Typ)) then Obj_Typ := Full_View (Obj_Typ); Obj_Ref := Unchecked_Convert_To (Obj_Typ, Obj_Ref); elsif Obj_Typ /= Base_Type (Obj_Typ) then Obj_Typ := Base_Type (Obj_Typ); Obj_Ref := Unchecked_Convert_To (Obj_Typ, Obj_Ref); else exit; end if; end loop; Set_Etype (Obj_Ref, Obj_Typ); -- Handle the initialization type of the object declaration Init_Typ := Obj_Typ; loop if Is_Private_Type (Init_Typ) and then Present (Full_View (Init_Typ)) then Init_Typ := Full_View (Init_Typ); elsif Is_Untagged_Derivation (Init_Typ) then Init_Typ := Root_Type (Init_Typ); else exit; end if; end loop; -- Set a new value for the state counter and insert the statement -- after the object declaration. Generate: -- Counter := <value>; Inc_Decl := Make_Assignment_Statement (Loc, Name => New_Occurrence_Of (Counter_Id, Loc), Expression => Make_Integer_Literal (Loc, Counter_Val)); -- Insert the counter after all initialization has been done. The -- place of insertion depends on the context. if Ekind (Obj_Id) in E_Constant | E_Variable then -- The object is initialized by a build-in-place function call. -- The counter insertion point is after the function call. if Present (BIP_Initialization_Call (Obj_Id)) then Count_Ins := BIP_Initialization_Call (Obj_Id); Body_Ins := Empty; -- The object is initialized by an aggregate. Insert the counter -- after the last aggregate assignment. elsif Present (Last_Aggregate_Assignment (Obj_Id)) then Count_Ins := Last_Aggregate_Assignment (Obj_Id); Body_Ins := Empty; -- In all other cases the counter is inserted after the last call -- to either [Deep_]Initialize or the type-specific init proc. else Find_Last_Init (Count_Ins, Body_Ins); end if; -- In all other cases the counter is inserted after the last call to -- either [Deep_]Initialize or the type-specific init proc. else Find_Last_Init (Count_Ins, Body_Ins); end if; -- If the Initialize function is null or trivial, the call will have -- been replaced with a null statement, in which case place counter -- declaration after object declaration itself. if No (Count_Ins) then Count_Ins := Decl; end if; Insert_After (Count_Ins, Inc_Decl); Analyze (Inc_Decl); -- If the current declaration is the last in the list, the finalizer -- body needs to be inserted after the set counter statement for the -- current object declaration. This is complicated by the fact that -- the set counter statement may appear in abort deferred block. In -- that case, the proper insertion place is after the block. if No (Finalizer_Insert_Nod) then -- Insertion after an abort deferred block if Present (Body_Ins) then Finalizer_Insert_Nod := Body_Ins; else Finalizer_Insert_Nod := Inc_Decl; end if; end if; -- Create the associated label with this object, generate: -- L<counter> : label; Label_Id := Make_Identifier (Loc, New_External_Name ('L', Counter_Val)); Set_Entity (Label_Id, Make_Defining_Identifier (Loc, Chars (Label_Id))); Label := Make_Label (Loc, Label_Id); Prepend_To (Finalizer_Decls, Make_Implicit_Label_Declaration (Loc, Defining_Identifier => Entity (Label_Id), Label_Construct => Label)); -- Create the associated jump with this object, generate: -- when <counter> => -- goto L<counter>; Prepend_To (Jump_Alts, Make_Case_Statement_Alternative (Loc, Discrete_Choices => New_List ( Make_Integer_Literal (Loc, Counter_Val)), Statements => New_List ( Make_Goto_Statement (Loc, Name => New_Occurrence_Of (Entity (Label_Id), Loc))))); -- Insert the jump destination, generate: -- <<L<counter>>> Append_To (Finalizer_Stmts, Label); -- Processing for simple protected objects. Such objects require -- manual finalization of their lock managers. if Is_Protected then if Is_Simple_Protected_Type (Obj_Typ) then Fin_Call := Cleanup_Protected_Object (Decl, Obj_Ref); if Present (Fin_Call) then Fin_Stmts := New_List (Fin_Call); end if; elsif Has_Simple_Protected_Object (Obj_Typ) then if Is_Record_Type (Obj_Typ) then Fin_Stmts := Cleanup_Record (Decl, Obj_Ref, Obj_Typ); elsif Is_Array_Type (Obj_Typ) then Fin_Stmts := Cleanup_Array (Decl, Obj_Ref, Obj_Typ); end if; end if; -- Generate: -- begin -- System.Tasking.Protected_Objects.Finalize_Protection -- (Obj._object); -- exception -- when others => -- null; -- end; if Present (Fin_Stmts) and then Exceptions_OK then Fin_Stmts := New_List ( Make_Block_Statement (Loc, Handled_Statement_Sequence => Make_Handled_Sequence_Of_Statements (Loc, Statements => Fin_Stmts, Exception_Handlers => New_List ( Make_Exception_Handler (Loc, Exception_Choices => New_List ( Make_Others_Choice (Loc)), Statements => New_List ( Make_Null_Statement (Loc))))))); end if; -- Processing for regular controlled objects else -- Generate: -- begin -- [Deep_]Finalize (Obj); -- exception -- when Id : others => -- if not Raised then -- Raised := True; -- Save_Occurrence (E, Id); -- end if; -- end; Fin_Call := Make_Final_Call ( Obj_Ref => Obj_Ref, Typ => Obj_Typ); -- Guard against a missing [Deep_]Finalize when the object type -- was not properly frozen. if No (Fin_Call) then Fin_Call := Make_Null_Statement (Loc); end if; -- For CodePeer, the exception handlers normally generated here -- generate complex flowgraphs which result in capacity problems. -- Omitting these handlers for CodePeer is justified as follows: -- If a handler is dead, then omitting it is surely ok -- If a handler is live, then CodePeer should flag the -- potentially-exception-raising construct that causes it -- to be live. That is what we are interested in, not what -- happens after the exception is raised. if Exceptions_OK and not CodePeer_Mode then Fin_Stmts := New_List ( Make_Block_Statement (Loc, Handled_Statement_Sequence => Make_Handled_Sequence_Of_Statements (Loc, Statements => New_List (Fin_Call), Exception_Handlers => New_List ( Build_Exception_Handler (Finalizer_Data, For_Package))))); -- When exception handlers are prohibited, the finalization call -- appears unprotected. Any exception raised during finalization -- will bypass the circuitry which ensures the cleanup of all -- remaining objects. else Fin_Stmts := New_List (Fin_Call); end if; -- If we are dealing with a return object of a build-in-place -- function, generate the following cleanup statements: -- if BIPallocfrom > Secondary_Stack'Pos -- and then BIPfinalizationmaster /= null -- then -- declare -- type Ptr_Typ is access Obj_Typ; -- for Ptr_Typ'Storage_Pool use -- Base_Pool (BIPfinalizationmaster.all).all; -- begin -- Free (Ptr_Typ (Temp)); -- end; -- end if; -- The generated code effectively detaches the temporary from the -- caller finalization master and deallocates the object. if Is_Return_Object (Obj_Id) then declare Func_Id : constant Entity_Id := Enclosing_Function (Obj_Id); begin if Is_Build_In_Place_Function (Func_Id) and then Needs_BIP_Finalization_Master (Func_Id) then Append_To (Fin_Stmts, Build_BIP_Cleanup_Stmts (Func_Id)); end if; end; end if; if Ekind (Obj_Id) in E_Constant | E_Variable and then Present (Status_Flag_Or_Transient_Decl (Obj_Id)) then -- Temporaries created for the purpose of "exporting" a -- transient object out of an Expression_With_Actions (EWA) -- need guards. The following illustrates the usage of such -- temporaries. -- Access_Typ : access [all] Obj_Typ; -- Temp : Access_Typ := null; -- <Counter> := ...; -- do -- Ctrl_Trans : [access [all]] Obj_Typ := ...; -- Temp := Access_Typ (Ctrl_Trans); -- when a pointer -- <or> -- Temp := Ctrl_Trans'Unchecked_Access; -- in ... end; -- The finalization machinery does not process EWA nodes as -- this may lead to premature finalization of expressions. Note -- that Temp is marked as being properly initialized regardless -- of whether the initialization of Ctrl_Trans succeeded. Since -- a failed initialization may leave Temp with a value of null, -- add a guard to handle this case: -- if Obj /= null then -- <object finalization statements> -- end if; if Nkind (Status_Flag_Or_Transient_Decl (Obj_Id)) = N_Object_Declaration then Fin_Stmts := New_List ( Make_If_Statement (Loc, Condition => Make_Op_Ne (Loc, Left_Opnd => New_Occurrence_Of (Obj_Id, Loc), Right_Opnd => Make_Null (Loc)), Then_Statements => Fin_Stmts)); -- Return objects use a flag to aid in processing their -- potential finalization when the enclosing function fails -- to return properly. Generate: -- if not Flag then -- <object finalization statements> -- end if; else Fin_Stmts := New_List ( Make_If_Statement (Loc, Condition => Make_Op_Not (Loc, Right_Opnd => New_Occurrence_Of (Status_Flag_Or_Transient_Decl (Obj_Id), Loc)), Then_Statements => Fin_Stmts)); end if; end if; end if; Append_List_To (Finalizer_Stmts, Fin_Stmts); -- Since the declarations are examined in reverse, the state counter -- must be decremented in order to keep with the true position of -- objects. Counter_Val := Counter_Val - 1; end Process_Object_Declaration; ------------------------------------- -- Process_Tagged_Type_Declaration -- ------------------------------------- procedure Process_Tagged_Type_Declaration (Decl : Node_Id) is Typ : constant Entity_Id := Defining_Identifier (Decl); DT_Ptr : constant Entity_Id := Node (First_Elmt (Access_Disp_Table (Typ))); begin -- Generate: -- Ada.Tags.Unregister_Tag (<Typ>P); Append_To (Tagged_Type_Stmts, Make_Procedure_Call_Statement (Loc, Name => New_Occurrence_Of (RTE (RE_Unregister_Tag), Loc), Parameter_Associations => New_List ( New_Occurrence_Of (DT_Ptr, Loc)))); end Process_Tagged_Type_Declaration; -- Start of processing for Build_Finalizer begin Fin_Id := Empty; -- Do not perform this expansion in SPARK mode because it is not -- necessary. if GNATprove_Mode then return; end if; -- Step 1: Extract all lists which may contain controlled objects or -- library-level tagged types. if For_Package_Spec then Decls := Visible_Declarations (Specification (N)); Priv_Decls := Private_Declarations (Specification (N)); -- Retrieve the package spec id Spec_Id := Defining_Unit_Name (Specification (N)); if Nkind (Spec_Id) = N_Defining_Program_Unit_Name then Spec_Id := Defining_Identifier (Spec_Id); end if; -- Accept statement, block, entry body, package body, protected body, -- subprogram body or task body. else Decls := Declarations (N); HSS := Handled_Statement_Sequence (N); if Present (HSS) then if Present (Statements (HSS)) then Stmts := Statements (HSS); end if; if Present (At_End_Proc (HSS)) then Prev_At_End := At_End_Proc (HSS); end if; end if; -- Retrieve the package spec id for package bodies if For_Package_Body then Spec_Id := Corresponding_Spec (N); end if; end if; -- Do not process nested packages since those are handled by the -- enclosing scope's finalizer. Do not process non-expanded package -- instantiations since those will be re-analyzed and re-expanded. if For_Package and then (not Is_Library_Level_Entity (Spec_Id) -- Nested packages are considered to be library level entities, -- but do not need to be processed separately. True library level -- packages have a scope value of 1. or else Scope_Depth_Value (Spec_Id) /= Uint_1 or else (Is_Generic_Instance (Spec_Id) and then Package_Instantiation (Spec_Id) /= N)) then return; end if; -- Step 2: Object [pre]processing if For_Package then -- Preprocess the visible declarations now in order to obtain the -- correct number of controlled object by the time the private -- declarations are processed. Process_Declarations (Decls, Preprocess => True, Top_Level => True); -- From all the possible contexts, only package specifications may -- have private declarations. if For_Package_Spec then Process_Declarations (Priv_Decls, Preprocess => True, Top_Level => True); end if; -- The current context may lack controlled objects, but require some -- other form of completion (task termination for instance). In such -- cases, the finalizer must be created and carry the additional -- statements. if Acts_As_Clean or Has_Ctrl_Objs or Has_Tagged_Types then Build_Components; end if; -- The preprocessing has determined that the context has controlled -- objects or library-level tagged types. if Has_Ctrl_Objs or Has_Tagged_Types then -- Private declarations are processed first in order to preserve -- possible dependencies between public and private objects. if For_Package_Spec then Process_Declarations (Priv_Decls); end if; Process_Declarations (Decls); end if; -- Non-package case else -- Preprocess both declarations and statements Process_Declarations (Decls, Preprocess => True, Top_Level => True); Process_Declarations (Stmts, Preprocess => True, Top_Level => True); -- At this point it is known that N has controlled objects. Ensure -- that N has a declarative list since the finalizer spec will be -- attached to it. if Has_Ctrl_Objs and then No (Decls) then Set_Declarations (N, New_List); Decls := Declarations (N); Spec_Decls := Decls; end if; -- The current context may lack controlled objects, but require some -- other form of completion (task termination for instance). In such -- cases, the finalizer must be created and carry the additional -- statements. if Acts_As_Clean or Has_Ctrl_Objs or Has_Tagged_Types then Build_Components; end if; if Has_Ctrl_Objs or Has_Tagged_Types then Process_Declarations (Stmts); Process_Declarations (Decls); end if; end if; -- Step 3: Finalizer creation if Acts_As_Clean or else Has_Ctrl_Objs or else Has_Tagged_Types then Create_Finalizer; end if; end Build_Finalizer; -------------------------- -- Build_Finalizer_Call -- -------------------------- procedure Build_Finalizer_Call (N : Node_Id; Fin_Id : Entity_Id) is Is_Prot_Body : constant Boolean := Nkind (N) = N_Subprogram_Body and then Is_Protected_Subprogram_Body (N); -- Determine whether N denotes the protected version of a subprogram -- which belongs to a protected type. Loc : constant Source_Ptr := Sloc (N); HSS : Node_Id; begin -- Do not perform this expansion in SPARK mode because we do not create -- finalizers in the first place. if GNATprove_Mode then return; end if; -- The At_End handler should have been assimilated by the finalizer HSS := Handled_Statement_Sequence (N); pragma Assert (No (At_End_Proc (HSS))); -- If the construct to be cleaned up is a protected subprogram body, the -- finalizer call needs to be associated with the block which wraps the -- unprotected version of the subprogram. The following illustrates this -- scenario: -- procedure Prot_SubpP is -- procedure finalizer is -- begin -- Service_Entries (Prot_Obj); -- Abort_Undefer; -- end finalizer; -- begin -- . . . -- begin -- Prot_SubpN (Prot_Obj); -- at end -- finalizer; -- end; -- end Prot_SubpP; if Is_Prot_Body then HSS := Handled_Statement_Sequence (Last (Statements (HSS))); -- An At_End handler and regular exception handlers cannot coexist in -- the same statement sequence. Wrap the original statements in a block. elsif Present (Exception_Handlers (HSS)) then declare End_Lab : constant Node_Id := End_Label (HSS); Block : Node_Id; begin Block := Make_Block_Statement (Loc, Handled_Statement_Sequence => HSS); Set_Handled_Statement_Sequence (N, Make_Handled_Sequence_Of_Statements (Loc, New_List (Block))); HSS := Handled_Statement_Sequence (N); Set_End_Label (HSS, End_Lab); end; end if; Set_At_End_Proc (HSS, New_Occurrence_Of (Fin_Id, Loc)); -- Attach reference to finalizer to tree, for LLVM use Set_Parent (At_End_Proc (HSS), HSS); Analyze (At_End_Proc (HSS)); Expand_At_End_Handler (HSS, Empty); end Build_Finalizer_Call; --------------------- -- Build_Late_Proc -- --------------------- procedure Build_Late_Proc (Typ : Entity_Id; Nam : Name_Id) is begin for Final_Prim in Name_Of'Range loop if Name_Of (Final_Prim) = Nam then Set_TSS (Typ, Make_Deep_Proc (Prim => Final_Prim, Typ => Typ, Stmts => Make_Deep_Record_Body (Final_Prim, Typ))); end if; end loop; end Build_Late_Proc; ------------------------------- -- Build_Object_Declarations -- ------------------------------- procedure Build_Object_Declarations (Data : out Finalization_Exception_Data; Decls : List_Id; Loc : Source_Ptr; For_Package : Boolean := False) is Decl : Node_Id; Dummy : Entity_Id; -- This variable captures an unused dummy internal entity, see the -- comment associated with its use. begin pragma Assert (Decls /= No_List); -- Always set the proper location as it may be needed even when -- exception propagation is forbidden. Data.Loc := Loc; if Restriction_Active (No_Exception_Propagation) then Data.Abort_Id := Empty; Data.E_Id := Empty; Data.Raised_Id := Empty; return; end if; Data.Raised_Id := Make_Temporary (Loc, 'R'); -- In certain scenarios, finalization can be triggered by an abort. If -- the finalization itself fails and raises an exception, the resulting -- Program_Error must be supressed and replaced by an abort signal. In -- order to detect this scenario, save the state of entry into the -- finalization code. -- This is not needed for library-level finalizers as they are called by -- the environment task and cannot be aborted. if not For_Package then if Abort_Allowed then Data.Abort_Id := Make_Temporary (Loc, 'A'); -- Generate: -- Abort_Id : constant Boolean := <A_Expr>; Append_To (Decls, Make_Object_Declaration (Loc, Defining_Identifier => Data.Abort_Id, Constant_Present => True, Object_Definition => New_Occurrence_Of (Standard_Boolean, Loc), Expression => New_Occurrence_Of (RTE (RE_Triggered_By_Abort), Loc))); -- Abort is not required else -- Generate a dummy entity to ensure that the internal symbols are -- in sync when a unit is compiled with and without aborts. Dummy := Make_Temporary (Loc, 'A'); Data.Abort_Id := Empty; end if; -- Library-level finalizers else Data.Abort_Id := Empty; end if; if Exception_Extra_Info then Data.E_Id := Make_Temporary (Loc, 'E'); -- Generate: -- E_Id : Exception_Occurrence; Decl := Make_Object_Declaration (Loc, Defining_Identifier => Data.E_Id, Object_Definition => New_Occurrence_Of (RTE (RE_Exception_Occurrence), Loc)); Set_No_Initialization (Decl); Append_To (Decls, Decl); else Data.E_Id := Empty; end if; -- Generate: -- Raised_Id : Boolean := False; Append_To (Decls, Make_Object_Declaration (Loc, Defining_Identifier => Data.Raised_Id, Object_Definition => New_Occurrence_Of (Standard_Boolean, Loc), Expression => New_Occurrence_Of (Standard_False, Loc))); end Build_Object_Declarations; --------------------------- -- Build_Raise_Statement -- --------------------------- function Build_Raise_Statement (Data : Finalization_Exception_Data) return Node_Id is Stmt : Node_Id; Expr : Node_Id; begin -- Standard run-time use the specialized routine -- Raise_From_Controlled_Operation. if Exception_Extra_Info and then RTE_Available (RE_Raise_From_Controlled_Operation) then Stmt := Make_Procedure_Call_Statement (Data.Loc, Name => New_Occurrence_Of (RTE (RE_Raise_From_Controlled_Operation), Data.Loc), Parameter_Associations => New_List (New_Occurrence_Of (Data.E_Id, Data.Loc))); -- Restricted run-time: exception messages are not supported and hence -- Raise_From_Controlled_Operation is not supported. Raise Program_Error -- instead. else Stmt := Make_Raise_Program_Error (Data.Loc, Reason => PE_Finalize_Raised_Exception); end if; -- Generate: -- Raised_Id and then not Abort_Id -- <or> -- Raised_Id Expr := New_Occurrence_Of (Data.Raised_Id, Data.Loc); if Present (Data.Abort_Id) then Expr := Make_And_Then (Data.Loc, Left_Opnd => Expr, Right_Opnd => Make_Op_Not (Data.Loc, Right_Opnd => New_Occurrence_Of (Data.Abort_Id, Data.Loc))); end if; -- Generate: -- if Raised_Id and then not Abort_Id then -- Raise_From_Controlled_Operation (E_Id); -- <or> -- raise Program_Error; -- restricted runtime -- end if; return Make_If_Statement (Data.Loc, Condition => Expr, Then_Statements => New_List (Stmt)); end Build_Raise_Statement; ----------------------------- -- Build_Record_Deep_Procs -- ----------------------------- procedure Build_Record_Deep_Procs (Typ : Entity_Id) is begin Set_TSS (Typ, Make_Deep_Proc (Prim => Initialize_Case, Typ => Typ, Stmts => Make_Deep_Record_Body (Initialize_Case, Typ))); if not Is_Limited_View (Typ) then Set_TSS (Typ, Make_Deep_Proc (Prim => Adjust_Case, Typ => Typ, Stmts => Make_Deep_Record_Body (Adjust_Case, Typ))); end if; -- Do not generate Deep_Finalize and Finalize_Address if finalization is -- suppressed since these routine will not be used. if not Restriction_Active (No_Finalization) then Set_TSS (Typ, Make_Deep_Proc (Prim => Finalize_Case, Typ => Typ, Stmts => Make_Deep_Record_Body (Finalize_Case, Typ))); -- Create TSS primitive Finalize_Address (unless CodePeer_Mode) if not CodePeer_Mode then Set_TSS (Typ, Make_Deep_Proc (Prim => Address_Case, Typ => Typ, Stmts => Make_Deep_Record_Body (Address_Case, Typ))); end if; end if; end Build_Record_Deep_Procs; ------------------- -- Cleanup_Array -- ------------------- function Cleanup_Array (N : Node_Id; Obj : Node_Id; Typ : Entity_Id) return List_Id is Loc : constant Source_Ptr := Sloc (N); Index_List : constant List_Id := New_List; function Free_Component return List_Id; -- Generate the code to finalize the task or protected subcomponents -- of a single component of the array. function Free_One_Dimension (Dim : Int) return List_Id; -- Generate a loop over one dimension of the array -------------------- -- Free_Component -- -------------------- function Free_Component return List_Id is Stmts : List_Id := New_List; Tsk : Node_Id; C_Typ : constant Entity_Id := Component_Type (Typ); begin -- Component type is known to contain tasks or protected objects Tsk := Make_Indexed_Component (Loc, Prefix => Duplicate_Subexpr_No_Checks (Obj), Expressions => Index_List); Set_Etype (Tsk, C_Typ); if Is_Task_Type (C_Typ) then Append_To (Stmts, Cleanup_Task (N, Tsk)); elsif Is_Simple_Protected_Type (C_Typ) then Append_To (Stmts, Cleanup_Protected_Object (N, Tsk)); elsif Is_Record_Type (C_Typ) then Stmts := Cleanup_Record (N, Tsk, C_Typ); elsif Is_Array_Type (C_Typ) then Stmts := Cleanup_Array (N, Tsk, C_Typ); end if; return Stmts; end Free_Component; ------------------------ -- Free_One_Dimension -- ------------------------ function Free_One_Dimension (Dim : Int) return List_Id is Index : Entity_Id; begin if Dim > Number_Dimensions (Typ) then return Free_Component; -- Here we generate the required loop else Index := Make_Temporary (Loc, 'J'); Append (New_Occurrence_Of (Index, Loc), Index_List); return New_List ( Make_Implicit_Loop_Statement (N, Identifier => Empty, Iteration_Scheme => Make_Iteration_Scheme (Loc, Loop_Parameter_Specification => Make_Loop_Parameter_Specification (Loc, Defining_Identifier => Index, Discrete_Subtype_Definition => Make_Attribute_Reference (Loc, Prefix => Duplicate_Subexpr (Obj), Attribute_Name => Name_Range, Expressions => New_List ( Make_Integer_Literal (Loc, Dim))))), Statements => Free_One_Dimension (Dim + 1))); end if; end Free_One_Dimension; -- Start of processing for Cleanup_Array begin return Free_One_Dimension (1); end Cleanup_Array; -------------------- -- Cleanup_Record -- -------------------- function Cleanup_Record (N : Node_Id; Obj : Node_Id; Typ : Entity_Id) return List_Id is Loc : constant Source_Ptr := Sloc (N); Stmts : constant List_Id := New_List; U_Typ : constant Entity_Id := Underlying_Type (Typ); Comp : Entity_Id; Tsk : Node_Id; begin if Has_Discriminants (U_Typ) and then Nkind (Parent (U_Typ)) = N_Full_Type_Declaration and then Nkind (Type_Definition (Parent (U_Typ))) = N_Record_Definition and then Present (Variant_Part (Component_List (Type_Definition (Parent (U_Typ))))) then -- For now, do not attempt to free a component that may appear in a -- variant, and instead issue a warning. Doing this "properly" would -- require building a case statement and would be quite a mess. Note -- that the RM only requires that free "work" for the case of a task -- access value, so already we go way beyond this in that we deal -- with the array case and non-discriminated record cases. Error_Msg_N ("task/protected object in variant record will not be freed??", N); return New_List (Make_Null_Statement (Loc)); end if; Comp := First_Component (U_Typ); while Present (Comp) loop if Has_Task (Etype (Comp)) or else Has_Simple_Protected_Object (Etype (Comp)) then Tsk := Make_Selected_Component (Loc, Prefix => Duplicate_Subexpr_No_Checks (Obj), Selector_Name => New_Occurrence_Of (Comp, Loc)); Set_Etype (Tsk, Etype (Comp)); if Is_Task_Type (Etype (Comp)) then Append_To (Stmts, Cleanup_Task (N, Tsk)); elsif Is_Simple_Protected_Type (Etype (Comp)) then Append_To (Stmts, Cleanup_Protected_Object (N, Tsk)); elsif Is_Record_Type (Etype (Comp)) then -- Recurse, by generating the prefix of the argument to the -- eventual cleanup call. Append_List_To (Stmts, Cleanup_Record (N, Tsk, Etype (Comp))); elsif Is_Array_Type (Etype (Comp)) then Append_List_To (Stmts, Cleanup_Array (N, Tsk, Etype (Comp))); end if; end if; Next_Component (Comp); end loop; return Stmts; end Cleanup_Record; ------------------------------ -- Cleanup_Protected_Object -- ------------------------------ function Cleanup_Protected_Object (N : Node_Id; Ref : Node_Id) return Node_Id is Loc : constant Source_Ptr := Sloc (N); begin -- For restricted run-time libraries (Ravenscar), tasks are -- non-terminating, and protected objects can only appear at library -- level, so we do not want finalization of protected objects. if Restricted_Profile then return Empty; else return Make_Procedure_Call_Statement (Loc, Name => New_Occurrence_Of (RTE (RE_Finalize_Protection), Loc), Parameter_Associations => New_List (Concurrent_Ref (Ref))); end if; end Cleanup_Protected_Object; ------------------ -- Cleanup_Task -- ------------------ function Cleanup_Task (N : Node_Id; Ref : Node_Id) return Node_Id is Loc : constant Source_Ptr := Sloc (N); begin -- For restricted run-time libraries (Ravenscar), tasks are -- non-terminating and they can only appear at library level, -- so we do not want finalization of task objects. if Restricted_Profile then return Empty; else return Make_Procedure_Call_Statement (Loc, Name => New_Occurrence_Of (RTE (RE_Free_Task), Loc), Parameter_Associations => New_List (Concurrent_Ref (Ref))); end if; end Cleanup_Task; -------------------------------------- -- Check_Unnesting_Elaboration_Code -- -------------------------------------- procedure Check_Unnesting_Elaboration_Code (N : Node_Id) is Loc : constant Source_Ptr := Sloc (N); Block_Elab_Proc : Entity_Id := Empty; procedure Set_Block_Elab_Proc; -- Create a defining identifier for a procedure that will replace -- a block with nested subprograms (unless it has already been created, -- in which case this is a no-op). procedure Set_Block_Elab_Proc is begin if No (Block_Elab_Proc) then Block_Elab_Proc := Make_Defining_Identifier (Loc, Chars => New_Internal_Name ('I')); end if; end Set_Block_Elab_Proc; procedure Reset_Scopes_To_Block_Elab_Proc (L : List_Id); -- Find entities in the elaboration code of a library package body that -- contain or represent a subprogram body. A body can appear within a -- block or a loop or can appear by itself if generated for an object -- declaration that involves controlled actions. The first such entity -- forces creation of a new procedure entity (via Set_Block_Elab_Proc) -- that will be used to reset the scopes of all entities that become -- local to the new elaboration procedure. This is needed for subsequent -- unnesting actions, which depend on proper setting of the Scope links -- to determine the nesting level of each subprogram. ----------------------- -- Find_Local_Scope -- ----------------------- procedure Reset_Scopes_To_Block_Elab_Proc (L : List_Id) is Id : Entity_Id; Stat : Node_Id; begin Stat := First (L); while Present (Stat) loop case Nkind (Stat) is when N_Block_Statement => Id := Entity (Identifier (Stat)); -- The Scope of this block needs to be reset to the new -- procedure if the block contains nested subprograms. if Present (Id) and then Contains_Subprogram (Id) then Set_Block_Elab_Proc; Set_Scope (Id, Block_Elab_Proc); end if; when N_Loop_Statement => Id := Entity (Identifier (Stat)); if Present (Id) and then Contains_Subprogram (Id) then if Scope (Id) = Current_Scope then Set_Block_Elab_Proc; Set_Scope (Id, Block_Elab_Proc); end if; end if; -- We traverse the loop's statements as well, which may -- include other block (etc.) statements that need to have -- their Scope set to Block_Elab_Proc. (Is this really the -- case, or do such nested blocks refer to the loop scope -- rather than the loop's enclosing scope???.) Reset_Scopes_To_Block_Elab_Proc (Statements (Stat)); when N_If_Statement => Reset_Scopes_To_Block_Elab_Proc (Then_Statements (Stat)); Reset_Scopes_To_Block_Elab_Proc (Else_Statements (Stat)); declare Elif : Node_Id; begin Elif := First (Elsif_Parts (Stat)); while Present (Elif) loop Reset_Scopes_To_Block_Elab_Proc (Then_Statements (Elif)); Next (Elif); end loop; end; when N_Case_Statement => declare Alt : Node_Id; begin Alt := First (Alternatives (Stat)); while Present (Alt) loop Reset_Scopes_To_Block_Elab_Proc (Statements (Alt)); Next (Alt); end loop; end; -- Reset the Scope of a subprogram occurring at the top level when N_Subprogram_Body => Id := Defining_Entity (Stat); Set_Block_Elab_Proc; Set_Scope (Id, Block_Elab_Proc); when others => null; end case; Next (Stat); end loop; end Reset_Scopes_To_Block_Elab_Proc; -- Local variables H_Seq : constant Node_Id := Handled_Statement_Sequence (N); Elab_Body : Node_Id; Elab_Call : Node_Id; -- Start of processing for Check_Unnesting_Elaboration_Code begin if Present (H_Seq) then Reset_Scopes_To_Block_Elab_Proc (Statements (H_Seq)); -- There may be subprograms declared in the exception handlers -- of the current body. if Present (Exception_Handlers (H_Seq)) then declare Handler : Node_Id := First (Exception_Handlers (H_Seq)); begin while Present (Handler) loop Reset_Scopes_To_Block_Elab_Proc (Statements (Handler)); Next (Handler); end loop; end; end if; if Present (Block_Elab_Proc) then Elab_Body := Make_Subprogram_Body (Loc, Specification => Make_Procedure_Specification (Loc, Defining_Unit_Name => Block_Elab_Proc), Declarations => New_List, Handled_Statement_Sequence => Relocate_Node (Handled_Statement_Sequence (N))); Elab_Call := Make_Procedure_Call_Statement (Loc, Name => New_Occurrence_Of (Block_Elab_Proc, Loc)); Append_To (Declarations (N), Elab_Body); Analyze (Elab_Body); Set_Has_Nested_Subprogram (Block_Elab_Proc); Set_Handled_Statement_Sequence (N, Make_Handled_Sequence_Of_Statements (Loc, Statements => New_List (Elab_Call))); Analyze (Elab_Call); -- Could we reset the scopes of entities associated with the new -- procedure here via a loop over entities rather than doing it in -- the recursive Reset_Scopes_To_Elab_Proc procedure??? end if; end if; end Check_Unnesting_Elaboration_Code; --------------------------------------- -- Check_Unnesting_In_Decls_Or_Stmts -- --------------------------------------- procedure Check_Unnesting_In_Decls_Or_Stmts (Decls_Or_Stmts : List_Id) is Decl_Or_Stmt : Node_Id; begin if Unnest_Subprogram_Mode and then Present (Decls_Or_Stmts) then Decl_Or_Stmt := First (Decls_Or_Stmts); while Present (Decl_Or_Stmt) loop if Nkind (Decl_Or_Stmt) = N_Block_Statement and then Contains_Subprogram (Entity (Identifier (Decl_Or_Stmt))) then Unnest_Block (Decl_Or_Stmt); -- If-statements may contain subprogram bodies at the outer level -- of their statement lists, and the subprograms may make up-level -- references (such as to objects declared in the same statement -- list). Unlike block and loop cases, however, we don't have an -- entity on which to test the Contains_Subprogram flag, so -- Unnest_If_Statement must traverse the statement lists to -- determine whether there are nested subprograms present. elsif Nkind (Decl_Or_Stmt) = N_If_Statement then Unnest_If_Statement (Decl_Or_Stmt); elsif Nkind (Decl_Or_Stmt) = N_Loop_Statement then declare Id : constant Entity_Id := Entity (Identifier (Decl_Or_Stmt)); begin -- When a top-level loop within declarations of a library -- package spec or body contains nested subprograms, we wrap -- it in a procedure to handle possible up-level references -- to entities associated with the loop (such as loop -- parameters). if Present (Id) and then Contains_Subprogram (Id) then Unnest_Loop (Decl_Or_Stmt); end if; end; elsif Nkind (Decl_Or_Stmt) = N_Package_Declaration and then not Modify_Tree_For_C then Check_Unnesting_In_Decls_Or_Stmts (Visible_Declarations (Specification (Decl_Or_Stmt))); Check_Unnesting_In_Decls_Or_Stmts (Private_Declarations (Specification (Decl_Or_Stmt))); elsif Nkind (Decl_Or_Stmt) = N_Package_Body and then not Modify_Tree_For_C then Check_Unnesting_In_Decls_Or_Stmts (Declarations (Decl_Or_Stmt)); if Present (Statements (Handled_Statement_Sequence (Decl_Or_Stmt))) then Check_Unnesting_In_Decls_Or_Stmts (Statements (Handled_Statement_Sequence (Decl_Or_Stmt))); Check_Unnesting_In_Handlers (Decl_Or_Stmt); end if; end if; Next (Decl_Or_Stmt); end loop; end if; end Check_Unnesting_In_Decls_Or_Stmts; --------------------------------- -- Check_Unnesting_In_Handlers -- --------------------------------- procedure Check_Unnesting_In_Handlers (N : Node_Id) is Stmt_Seq : constant Node_Id := Handled_Statement_Sequence (N); begin if Present (Stmt_Seq) and then Present (Exception_Handlers (Stmt_Seq)) then declare Handler : Node_Id := First (Exception_Handlers (Stmt_Seq)); begin while Present (Handler) loop if Present (Statements (Handler)) then Check_Unnesting_In_Decls_Or_Stmts (Statements (Handler)); end if; Next (Handler); end loop; end; end if; end Check_Unnesting_In_Handlers; ------------------------------ -- Check_Visibly_Controlled -- ------------------------------ procedure Check_Visibly_Controlled (Prim : Final_Primitives; Typ : Entity_Id; E : in out Entity_Id; Cref : in out Node_Id) is Parent_Type : Entity_Id; Op : Entity_Id; begin if Is_Derived_Type (Typ) and then Comes_From_Source (E) and then not Present (Overridden_Operation (E)) then -- We know that the explicit operation on the type does not override -- the inherited operation of the parent, and that the derivation -- is from a private type that is not visibly controlled. Parent_Type := Etype (Typ); Op := Find_Optional_Prim_Op (Parent_Type, Name_Of (Prim)); if Present (Op) then E := Op; -- Wrap the object to be initialized into the proper -- unchecked conversion, to be compatible with the operation -- to be called. if Nkind (Cref) = N_Unchecked_Type_Conversion then Cref := Unchecked_Convert_To (Parent_Type, Expression (Cref)); else Cref := Unchecked_Convert_To (Parent_Type, Cref); end if; end if; end if; end Check_Visibly_Controlled; -------------------------- -- Contains_Subprogram -- -------------------------- function Contains_Subprogram (Blk : Entity_Id) return Boolean is E : Entity_Id; begin E := First_Entity (Blk); while Present (E) loop if Is_Subprogram (E) then return True; elsif Ekind (E) in E_Block | E_Loop and then Contains_Subprogram (E) then return True; end if; Next_Entity (E); end loop; return False; end Contains_Subprogram; ------------------ -- Convert_View -- ------------------ function Convert_View (Proc : Entity_Id; Arg : Node_Id; Ind : Pos := 1) return Node_Id is Fent : Entity_Id := First_Entity (Proc); Ftyp : Entity_Id; Atyp : Entity_Id; begin for J in 2 .. Ind loop Next_Entity (Fent); end loop; Ftyp := Etype (Fent); if Nkind (Arg) in N_Type_Conversion | N_Unchecked_Type_Conversion then Atyp := Entity (Subtype_Mark (Arg)); else Atyp := Etype (Arg); end if; if Is_Abstract_Subprogram (Proc) and then Is_Tagged_Type (Ftyp) then return Unchecked_Convert_To (Class_Wide_Type (Ftyp), Arg); elsif Ftyp /= Atyp and then Present (Atyp) and then (Is_Private_Type (Ftyp) or else Is_Private_Type (Atyp)) and then Base_Type (Underlying_Type (Atyp)) = Base_Type (Underlying_Type (Ftyp)) then return Unchecked_Convert_To (Ftyp, Arg); -- If the argument is already a conversion, as generated by -- Make_Init_Call, set the target type to the type of the formal -- directly, to avoid spurious typing problems. elsif Nkind (Arg) in N_Unchecked_Type_Conversion | N_Type_Conversion and then not Is_Class_Wide_Type (Atyp) then Set_Subtype_Mark (Arg, New_Occurrence_Of (Ftyp, Sloc (Arg))); Set_Etype (Arg, Ftyp); return Arg; -- Otherwise, introduce a conversion when the designated object -- has a type derived from the formal of the controlled routine. elsif Is_Private_Type (Ftyp) and then Present (Atyp) and then Is_Derived_Type (Underlying_Type (Base_Type (Atyp))) then return Unchecked_Convert_To (Ftyp, Arg); else return Arg; end if; end Convert_View; ------------------------------- -- CW_Or_Has_Controlled_Part -- ------------------------------- function CW_Or_Has_Controlled_Part (T : Entity_Id) return Boolean is begin return Is_Class_Wide_Type (T) or else Needs_Finalization (T); end CW_Or_Has_Controlled_Part; ------------------------ -- Enclosing_Function -- ------------------------ function Enclosing_Function (E : Entity_Id) return Entity_Id is Func_Id : Entity_Id; begin Func_Id := E; while Present (Func_Id) and then Func_Id /= Standard_Standard loop if Ekind (Func_Id) = E_Function then return Func_Id; end if; Func_Id := Scope (Func_Id); end loop; return Empty; end Enclosing_Function; ------------------------------- -- Establish_Transient_Scope -- ------------------------------- -- This procedure is called each time a transient block has to be inserted -- that is to say for each call to a function with unconstrained or tagged -- result. It creates a new scope on the scope stack in order to enclose -- all transient variables generated. procedure Establish_Transient_Scope (N : Node_Id; Manage_Sec_Stack : Boolean) is procedure Create_Transient_Scope (Constr : Node_Id); -- Place a new scope on the scope stack in order to service construct -- Constr. The new scope may also manage the secondary stack. procedure Delegate_Sec_Stack_Management; -- Move the management of the secondary stack to the nearest enclosing -- suitable scope. function Find_Enclosing_Transient_Scope return Entity_Id; -- Examine the scope stack looking for the nearest enclosing transient -- scope. Return Empty if no such scope exists. function Is_Package_Or_Subprogram (Id : Entity_Id) return Boolean; -- Determine whether arbitrary Id denotes a package or subprogram [body] ---------------------------- -- Create_Transient_Scope -- ---------------------------- procedure Create_Transient_Scope (Constr : Node_Id) is Loc : constant Source_Ptr := Sloc (N); Iter_Loop : Entity_Id; Trans_Scop : Entity_Id; begin Trans_Scop := New_Internal_Entity (E_Block, Current_Scope, Loc, 'B'); Set_Etype (Trans_Scop, Standard_Void_Type); Push_Scope (Trans_Scop); Set_Node_To_Be_Wrapped (Constr); Set_Scope_Is_Transient; -- The transient scope must also manage the secondary stack if Manage_Sec_Stack then Set_Uses_Sec_Stack (Trans_Scop); Check_Restriction (No_Secondary_Stack, N); -- The expansion of iterator loops generates references to objects -- in order to extract elements from a container: -- Ref : Reference_Type_Ptr := Reference (Container, Cursor); -- Obj : <object type> renames Ref.all.Element.all; -- These references are controlled and returned on the secondary -- stack. A new reference is created at each iteration of the loop -- and as a result it must be finalized and the space occupied by -- it on the secondary stack reclaimed at the end of the current -- iteration. -- When the context that requires a transient scope is a call to -- routine Reference, the node to be wrapped is the source object: -- for Obj of Container loop -- Routine Wrap_Transient_Declaration however does not generate -- a physical block as wrapping a declaration will kill it too -- early. To handle this peculiar case, mark the related iterator -- loop as requiring the secondary stack. This signals the -- finalization machinery to manage the secondary stack (see -- routine Process_Statements_For_Controlled_Objects). Iter_Loop := Find_Enclosing_Iterator_Loop (Trans_Scop); if Present (Iter_Loop) then Set_Uses_Sec_Stack (Iter_Loop); end if; end if; if Debug_Flag_W then Write_Str (" <Transient>"); Write_Eol; end if; end Create_Transient_Scope; ----------------------------------- -- Delegate_Sec_Stack_Management -- ----------------------------------- procedure Delegate_Sec_Stack_Management is Scop_Id : Entity_Id; Scop_Rec : Scope_Stack_Entry; begin for Index in reverse Scope_Stack.First .. Scope_Stack.Last loop Scop_Rec := Scope_Stack.Table (Index); Scop_Id := Scop_Rec.Entity; -- Prevent the search from going too far or within the scope space -- of another unit. if Scop_Id = Standard_Standard then return; -- No transient scope should be encountered during the traversal -- because Establish_Transient_Scope should have already handled -- this case. elsif Scop_Rec.Is_Transient then pragma Assert (False); return; -- The construct which requires secondary stack management is -- always enclosed by a package or subprogram scope. elsif Is_Package_Or_Subprogram (Scop_Id) then Set_Uses_Sec_Stack (Scop_Id); Check_Restriction (No_Secondary_Stack, N); return; end if; end loop; -- At this point no suitable scope was found. This should never occur -- because a construct is always enclosed by a compilation unit which -- has a scope. pragma Assert (False); end Delegate_Sec_Stack_Management; ------------------------------------ -- Find_Enclosing_Transient_Scope -- ------------------------------------ function Find_Enclosing_Transient_Scope return Entity_Id is Scop_Id : Entity_Id; Scop_Rec : Scope_Stack_Entry; begin for Index in reverse Scope_Stack.First .. Scope_Stack.Last loop Scop_Rec := Scope_Stack.Table (Index); Scop_Id := Scop_Rec.Entity; -- Prevent the search from going too far or within the scope space -- of another unit. if Scop_Id = Standard_Standard or else Is_Package_Or_Subprogram (Scop_Id) then exit; elsif Scop_Rec.Is_Transient then return Scop_Id; end if; end loop; return Empty; end Find_Enclosing_Transient_Scope; ------------------------------ -- Is_Package_Or_Subprogram -- ------------------------------ function Is_Package_Or_Subprogram (Id : Entity_Id) return Boolean is begin return Ekind (Id) in E_Entry | E_Entry_Family | E_Function | E_Package | E_Procedure | E_Subprogram_Body; end Is_Package_Or_Subprogram; -- Local variables Trans_Id : constant Entity_Id := Find_Enclosing_Transient_Scope; Context : Node_Id; -- Start of processing for Establish_Transient_Scope begin -- Do not create a new transient scope if there is an existing transient -- scope on the stack. if Present (Trans_Id) then -- If the transient scope was requested for purposes of managing the -- secondary stack, then the existing scope must perform this task. if Manage_Sec_Stack then Set_Uses_Sec_Stack (Trans_Id); end if; return; end if; -- At this point it is known that the scope stack is free of transient -- scopes. Locate the proper construct which must be serviced by a new -- transient scope. Context := Find_Transient_Context (N); if Present (Context) then if Nkind (Context) = N_Assignment_Statement then -- An assignment statement with suppressed controlled semantics -- does not need a transient scope because finalization is not -- desirable at this point. Note that No_Ctrl_Actions is also -- set for non-controlled assignments to suppress dispatching -- _assign. if No_Ctrl_Actions (Context) and then Needs_Finalization (Etype (Name (Context))) then -- When a controlled component is initialized by a function -- call, the result on the secondary stack is always assigned -- to the component. Signal the nearest suitable scope that it -- is safe to manage the secondary stack. if Manage_Sec_Stack and then Within_Init_Proc then Delegate_Sec_Stack_Management; end if; -- Otherwise the assignment is a normal transient context and thus -- requires a transient scope. else Create_Transient_Scope (Context); end if; -- General case else Create_Transient_Scope (Context); end if; end if; end Establish_Transient_Scope; ---------------------------- -- Expand_Cleanup_Actions -- ---------------------------- procedure Expand_Cleanup_Actions (N : Node_Id) is pragma Assert (Nkind (N) in N_Block_Statement | N_Entry_Body | N_Extended_Return_Statement | N_Subprogram_Body | N_Task_Body); Scop : constant Entity_Id := Current_Scope; Is_Asynchronous_Call : constant Boolean := Nkind (N) = N_Block_Statement and then Is_Asynchronous_Call_Block (N); Is_Master : constant Boolean := Nkind (N) /= N_Extended_Return_Statement and then Nkind (N) /= N_Entry_Body and then Is_Task_Master (N); Is_Protected_Subp_Body : constant Boolean := Nkind (N) = N_Subprogram_Body and then Is_Protected_Subprogram_Body (N); Is_Task_Allocation : constant Boolean := Nkind (N) = N_Block_Statement and then Is_Task_Allocation_Block (N); Is_Task_Body : constant Boolean := Nkind (Original_Node (N)) = N_Task_Body; -- We mark the secondary stack if it is used in this construct, and -- we're not returning a function result on the secondary stack, except -- that a build-in-place function that might or might not return on the -- secondary stack always needs a mark. A run-time test is required in -- the case where the build-in-place function has a BIP_Alloc extra -- parameter (see Create_Finalizer). Needs_Sec_Stack_Mark : constant Boolean := (Uses_Sec_Stack (Scop) and then not Sec_Stack_Needed_For_Return (Scop)) or else (Is_Build_In_Place_Function (Scop) and then Needs_BIP_Alloc_Form (Scop)); Needs_Custom_Cleanup : constant Boolean := Nkind (N) = N_Block_Statement and then Present (Cleanup_Actions (N)); Actions_Required : constant Boolean := Requires_Cleanup_Actions (N, True) or else Is_Asynchronous_Call or else Is_Master or else Is_Protected_Subp_Body or else Is_Task_Allocation or else Is_Task_Body or else Needs_Sec_Stack_Mark or else Needs_Custom_Cleanup; HSS : Node_Id := Handled_Statement_Sequence (N); Loc : Source_Ptr; Cln : List_Id; procedure Wrap_HSS_In_Block; -- Move HSS inside a new block along with the original exception -- handlers. Make the newly generated block the sole statement of HSS. ----------------------- -- Wrap_HSS_In_Block -- ----------------------- procedure Wrap_HSS_In_Block is Block : Node_Id; Block_Id : Entity_Id; End_Lab : Node_Id; begin -- Preserve end label to provide proper cross-reference information End_Lab := End_Label (HSS); Block := Make_Block_Statement (Loc, Handled_Statement_Sequence => HSS); Block_Id := New_Internal_Entity (E_Block, Current_Scope, Loc, 'B'); Set_Identifier (Block, New_Occurrence_Of (Block_Id, Loc)); Set_Etype (Block_Id, Standard_Void_Type); Set_Block_Node (Block_Id, Identifier (Block)); -- Signal the finalization machinery that this particular block -- contains the original context. Set_Is_Finalization_Wrapper (Block); Set_Handled_Statement_Sequence (N, Make_Handled_Sequence_Of_Statements (Loc, New_List (Block))); HSS := Handled_Statement_Sequence (N); Set_First_Real_Statement (HSS, Block); Set_End_Label (HSS, End_Lab); -- Comment needed here, see RH for 1.306 ??? if Nkind (N) = N_Subprogram_Body then Set_Has_Nested_Block_With_Handler (Scop); end if; end Wrap_HSS_In_Block; -- Start of processing for Expand_Cleanup_Actions begin -- The current construct does not need any form of servicing if not Actions_Required then return; -- If the current node is a rewritten task body and the descriptors have -- not been delayed (due to some nested instantiations), do not generate -- redundant cleanup actions. elsif Is_Task_Body and then Nkind (N) = N_Subprogram_Body and then not Delay_Subprogram_Descriptors (Corresponding_Spec (N)) then return; end if; -- If an extended return statement contains something like -- -- X := F (...); -- -- where F is a build-in-place function call returning a controlled -- type, then a temporary object will be implicitly declared as part -- of the statement list, and this will need cleanup. In such cases, -- we transform: -- -- return Result : T := ... do -- <statements> -- possibly with handlers -- end return; -- -- into: -- -- return Result : T := ... do -- declare -- no declarations -- begin -- <statements> -- possibly with handlers -- end; -- no handlers -- end return; -- -- So Expand_Cleanup_Actions will end up being called recursively on the -- block statement. if Nkind (N) = N_Extended_Return_Statement then declare Block : constant Node_Id := Make_Block_Statement (Sloc (N), Declarations => Empty_List, Handled_Statement_Sequence => Handled_Statement_Sequence (N)); begin Set_Handled_Statement_Sequence (N, Make_Handled_Sequence_Of_Statements (Sloc (N), Statements => New_List (Block))); Analyze (Block); end; -- Analysis of the block did all the work return; end if; if Needs_Custom_Cleanup then Cln := Cleanup_Actions (N); else Cln := No_List; end if; declare Decls : List_Id := Declarations (N); Fin_Id : Entity_Id; Mark : Entity_Id := Empty; New_Decls : List_Id; begin -- If we are generating expanded code for debugging purposes, use the -- Sloc of the point of insertion for the cleanup code. The Sloc will -- be updated subsequently to reference the proper line in .dg files. -- If we are not debugging generated code, use No_Location instead, -- so that no debug information is generated for the cleanup code. -- This makes the behavior of the NEXT command in GDB monotonic, and -- makes the placement of breakpoints more accurate. if Debug_Generated_Code then Loc := Sloc (Scop); else Loc := No_Location; end if; -- A task activation call has already been built for a task -- allocation block. if not Is_Task_Allocation then Build_Task_Activation_Call (N); end if; if Is_Master then Establish_Task_Master (N); end if; New_Decls := New_List; -- If secondary stack is in use, generate: -- -- Mnn : constant Mark_Id := SS_Mark; if Needs_Sec_Stack_Mark then Mark := Make_Temporary (Loc, 'M'); Append_To (New_Decls, Build_SS_Mark_Call (Loc, Mark)); Set_Uses_Sec_Stack (Scop, False); end if; -- If exception handlers are present, wrap the sequence of statements -- in a block since it is not possible to have exception handlers and -- an At_End handler in the same construct. if Present (Exception_Handlers (HSS)) then Wrap_HSS_In_Block; -- Ensure that the First_Real_Statement field is set elsif No (First_Real_Statement (HSS)) then Set_First_Real_Statement (HSS, First (Statements (HSS))); end if; -- Do not move the Activation_Chain declaration in the context of -- task allocation blocks. Task allocation blocks use _chain in their -- cleanup handlers and gigi complains if it is declared in the -- sequence of statements of the scope that declares the handler. if Is_Task_Allocation then declare Chain : constant Entity_Id := Activation_Chain_Entity (N); Decl : Node_Id; begin Decl := First (Decls); while Nkind (Decl) /= N_Object_Declaration or else Defining_Identifier (Decl) /= Chain loop Next (Decl); -- A task allocation block should always include a _chain -- declaration. pragma Assert (Present (Decl)); end loop; Remove (Decl); Prepend_To (New_Decls, Decl); end; end if; -- Ensure the presence of a declaration list in order to successfully -- append all original statements to it. if No (Decls) then Set_Declarations (N, New_List); Decls := Declarations (N); end if; -- Move the declarations into the sequence of statements in order to -- have them protected by the At_End handler. It may seem weird to -- put declarations in the sequence of statement but in fact nothing -- forbids that at the tree level. Append_List_To (Decls, Statements (HSS)); Set_Statements (HSS, Decls); -- Reset the Sloc of the handled statement sequence to properly -- reflect the new initial "statement" in the sequence. Set_Sloc (HSS, Sloc (First (Decls))); -- The declarations of finalizer spec and auxiliary variables replace -- the old declarations that have been moved inward. Set_Declarations (N, New_Decls); Analyze_Declarations (New_Decls); -- Generate finalization calls for all controlled objects appearing -- in the statements of N. Add context specific cleanup for various -- constructs. Build_Finalizer (N => N, Clean_Stmts => Build_Cleanup_Statements (N, Cln), Mark_Id => Mark, Top_Decls => New_Decls, Defer_Abort => Nkind (Original_Node (N)) = N_Task_Body or else Is_Master, Fin_Id => Fin_Id); if Present (Fin_Id) then Build_Finalizer_Call (N, Fin_Id); end if; end; end Expand_Cleanup_Actions; --------------------------- -- Expand_N_Package_Body -- --------------------------- -- Add call to Activate_Tasks if body is an activator (actual processing -- is in chapter 9). -- Generate subprogram descriptor for elaboration routine -- Encode entity names in package body procedure Expand_N_Package_Body (N : Node_Id) is Spec_Id : constant Entity_Id := Corresponding_Spec (N); Fin_Id : Entity_Id; begin -- This is done only for non-generic packages if Ekind (Spec_Id) = E_Package then Push_Scope (Spec_Id); -- Build dispatch tables of library level tagged types if Tagged_Type_Expansion and then Is_Library_Level_Entity (Spec_Id) then Build_Static_Dispatch_Tables (N); end if; Build_Task_Activation_Call (N); -- Verify the run-time semantics of pragma Initial_Condition at the -- end of the body statements. Expand_Pragma_Initial_Condition (Spec_Id, N); -- If this is a library-level package and unnesting is enabled, -- check for the presence of blocks with nested subprograms occurring -- in elaboration code, and generate procedures to encapsulate the -- blocks in case the nested subprograms make up-level references. if Unnest_Subprogram_Mode and then Is_Library_Level_Entity (Current_Scope) then Check_Unnesting_Elaboration_Code (N); Check_Unnesting_In_Decls_Or_Stmts (Declarations (N)); Check_Unnesting_In_Handlers (N); end if; Pop_Scope; end if; Set_Elaboration_Flag (N, Spec_Id); Set_In_Package_Body (Spec_Id, False); -- Set to encode entity names in package body before gigi is called Qualify_Entity_Names (N); if Ekind (Spec_Id) /= E_Generic_Package then Build_Finalizer (N => N, Clean_Stmts => No_List, Mark_Id => Empty, Top_Decls => No_List, Defer_Abort => False, Fin_Id => Fin_Id); if Present (Fin_Id) then declare Body_Ent : Node_Id := Defining_Unit_Name (N); begin if Nkind (Body_Ent) = N_Defining_Program_Unit_Name then Body_Ent := Defining_Identifier (Body_Ent); end if; Set_Finalizer (Body_Ent, Fin_Id); end; end if; end if; end Expand_N_Package_Body; ---------------------------------- -- Expand_N_Package_Declaration -- ---------------------------------- -- Add call to Activate_Tasks if there are tasks declared and the package -- has no body. Note that in Ada 83 this may result in premature activation -- of some tasks, given that we cannot tell whether a body will eventually -- appear. procedure Expand_N_Package_Declaration (N : Node_Id) is Id : constant Entity_Id := Defining_Entity (N); Spec : constant Node_Id := Specification (N); Decls : List_Id; Fin_Id : Entity_Id; No_Body : Boolean := False; -- True in the case of a package declaration that is a compilation -- unit and for which no associated body will be compiled in this -- compilation. begin -- Case of a package declaration other than a compilation unit if Nkind (Parent (N)) /= N_Compilation_Unit then null; -- Case of a compilation unit that does not require a body elsif not Body_Required (Parent (N)) and then not Unit_Requires_Body (Id) then No_Body := True; -- Special case of generating calling stubs for a remote call interface -- package: even though the package declaration requires one, the body -- won't be processed in this compilation (so any stubs for RACWs -- declared in the package must be generated here, along with the spec). elsif Parent (N) = Cunit (Main_Unit) and then Is_Remote_Call_Interface (Id) and then Distribution_Stub_Mode = Generate_Caller_Stub_Body then No_Body := True; end if; -- For a nested instance, delay processing until freeze point if Has_Delayed_Freeze (Id) and then Nkind (Parent (N)) /= N_Compilation_Unit then return; end if; -- For a package declaration that implies no associated body, generate -- task activation call and RACW supporting bodies now (since we won't -- have a specific separate compilation unit for that). if No_Body then Push_Scope (Id); -- Generate RACW subprogram bodies if Has_RACW (Id) then Decls := Private_Declarations (Spec); if No (Decls) then Decls := Visible_Declarations (Spec); end if; if No (Decls) then Decls := New_List; Set_Visible_Declarations (Spec, Decls); end if; Append_RACW_Bodies (Decls, Id); Analyze_List (Decls); end if; -- Generate task activation call as last step of elaboration if Present (Activation_Chain_Entity (N)) then Build_Task_Activation_Call (N); end if; -- Verify the run-time semantics of pragma Initial_Condition at the -- end of the private declarations when the package lacks a body. Expand_Pragma_Initial_Condition (Id, N); Pop_Scope; end if; -- Build dispatch tables of library level tagged types if Tagged_Type_Expansion and then (Is_Compilation_Unit (Id) or else (Is_Generic_Instance (Id) and then Is_Library_Level_Entity (Id))) then Build_Static_Dispatch_Tables (N); end if; -- Note: it is not necessary to worry about generating a subprogram -- descriptor, since the only way to get exception handlers into a -- package spec is to include instantiations, and that would cause -- generation of subprogram descriptors to be delayed in any case. -- Set to encode entity names in package spec before gigi is called Qualify_Entity_Names (N); if Ekind (Id) /= E_Generic_Package then Build_Finalizer (N => N, Clean_Stmts => No_List, Mark_Id => Empty, Top_Decls => No_List, Defer_Abort => False, Fin_Id => Fin_Id); Set_Finalizer (Id, Fin_Id); end if; -- If this is a library-level package and unnesting is enabled, -- check for the presence of blocks with nested subprograms occurring -- in elaboration code, and generate procedures to encapsulate the -- blocks in case the nested subprograms make up-level references. if Unnest_Subprogram_Mode and then Is_Library_Level_Entity (Current_Scope) then Check_Unnesting_In_Decls_Or_Stmts (Visible_Declarations (Spec)); Check_Unnesting_In_Decls_Or_Stmts (Private_Declarations (Spec)); end if; end Expand_N_Package_Declaration; ---------------------------- -- Find_Transient_Context -- ---------------------------- function Find_Transient_Context (N : Node_Id) return Node_Id is Curr : Node_Id; Prev : Node_Id; begin Curr := N; Prev := Empty; while Present (Curr) loop case Nkind (Curr) is -- Declarations -- Declarations act as a boundary for a transient scope even if -- they are not wrapped, see Wrap_Transient_Declaration. when N_Object_Declaration | N_Object_Renaming_Declaration | N_Subtype_Declaration => return Curr; -- Statements -- Statements and statement-like constructs act as a boundary for -- a transient scope. when N_Accept_Alternative | N_Attribute_Definition_Clause | N_Case_Statement | N_Case_Statement_Alternative | N_Code_Statement | N_Delay_Alternative | N_Delay_Until_Statement | N_Delay_Relative_Statement | N_Discriminant_Association | N_Elsif_Part | N_Entry_Body_Formal_Part | N_Exit_Statement | N_If_Statement | N_Iteration_Scheme | N_Terminate_Alternative => pragma Assert (Present (Prev)); return Prev; when N_Assignment_Statement => return Curr; when N_Entry_Call_Statement | N_Procedure_Call_Statement => -- When an entry or procedure call acts as the alternative of a -- conditional or timed entry call, the proper context is that -- of the alternative. if Nkind (Parent (Curr)) = N_Entry_Call_Alternative and then Nkind (Parent (Parent (Curr))) in N_Conditional_Entry_Call | N_Timed_Entry_Call then return Parent (Parent (Curr)); -- General case for entry or procedure calls else return Curr; end if; when N_Pragma => -- Pragma Check is not a valid transient context in GNATprove -- mode because the pragma must remain unchanged. if GNATprove_Mode and then Get_Pragma_Id (Curr) = Pragma_Check then return Empty; -- General case for pragmas else return Curr; end if; when N_Raise_Statement => return Curr; when N_Simple_Return_Statement => -- A return statement is not a valid transient context when the -- function itself requires transient scope management because -- the result will be reclaimed too early. if Requires_Transient_Scope (Etype (Return_Applies_To (Return_Statement_Entity (Curr)))) then return Empty; -- General case for return statements else return Curr; end if; -- Special when N_Attribute_Reference => if Is_Procedure_Attribute_Name (Attribute_Name (Curr)) then return Curr; end if; -- An Ada 2012 iterator specification is not a valid context -- because Analyze_Iterator_Specification already employs special -- processing for it. when N_Iterator_Specification => return Empty; when N_Loop_Parameter_Specification => -- An iteration scheme is not a valid context because routine -- Analyze_Iteration_Scheme already employs special processing. if Nkind (Parent (Curr)) = N_Iteration_Scheme then return Empty; else return Parent (Curr); end if; -- Termination -- The following nodes represent "dummy contexts" which do not -- need to be wrapped. when N_Component_Declaration | N_Discriminant_Specification | N_Parameter_Specification => return Empty; -- If the traversal leaves a scope without having been able to -- find a construct to wrap, something is going wrong, but this -- can happen in error situations that are not detected yet (such -- as a dynamic string in a pragma Export). when N_Block_Statement | N_Entry_Body | N_Package_Body | N_Package_Declaration | N_Protected_Body | N_Subprogram_Body | N_Task_Body => return Empty; -- Default when others => null; end case; Prev := Curr; Curr := Parent (Curr); end loop; return Empty; end Find_Transient_Context; ---------------------------------- -- Has_New_Controlled_Component -- ---------------------------------- function Has_New_Controlled_Component (E : Entity_Id) return Boolean is Comp : Entity_Id; begin if not Is_Tagged_Type (E) then return Has_Controlled_Component (E); elsif not Is_Derived_Type (E) then return Has_Controlled_Component (E); end if; Comp := First_Component (E); while Present (Comp) loop if Chars (Comp) = Name_uParent then null; elsif Scope (Original_Record_Component (Comp)) = E and then Needs_Finalization (Etype (Comp)) then return True; end if; Next_Component (Comp); end loop; return False; end Has_New_Controlled_Component; --------------------------------- -- Has_Simple_Protected_Object -- --------------------------------- function Has_Simple_Protected_Object (T : Entity_Id) return Boolean is begin if Has_Task (T) then return False; elsif Is_Simple_Protected_Type (T) then return True; elsif Is_Array_Type (T) then return Has_Simple_Protected_Object (Component_Type (T)); elsif Is_Record_Type (T) then declare Comp : Entity_Id; begin Comp := First_Component (T); while Present (Comp) loop if Has_Simple_Protected_Object (Etype (Comp)) then return True; end if; Next_Component (Comp); end loop; return False; end; else return False; end if; end Has_Simple_Protected_Object; ------------------------------------ -- Insert_Actions_In_Scope_Around -- ------------------------------------ procedure Insert_Actions_In_Scope_Around (N : Node_Id; Clean : Boolean; Manage_SS : Boolean) is Act_Before : constant List_Id := Scope_Stack.Table (Scope_Stack.Last).Actions_To_Be_Wrapped (Before); Act_After : constant List_Id := Scope_Stack.Table (Scope_Stack.Last).Actions_To_Be_Wrapped (After); Act_Cleanup : constant List_Id := Scope_Stack.Table (Scope_Stack.Last).Actions_To_Be_Wrapped (Cleanup); -- Note: We used to use renamings of Scope_Stack.Table (Scope_Stack. -- Last), but this was incorrect as Process_Transients_In_Scope may -- introduce new scopes and cause a reallocation of Scope_Stack.Table. procedure Process_Transients_In_Scope (First_Object : Node_Id; Last_Object : Node_Id; Related_Node : Node_Id); -- Find all transient objects in the list First_Object .. Last_Object -- and generate finalization actions for them. Related_Node denotes the -- node which created all transient objects. --------------------------------- -- Process_Transients_In_Scope -- --------------------------------- procedure Process_Transients_In_Scope (First_Object : Node_Id; Last_Object : Node_Id; Related_Node : Node_Id) is Must_Hook : Boolean := False; -- Flag denoting whether the context requires transient object -- export to the outer finalizer. function Is_Subprogram_Call (N : Node_Id) return Traverse_Result; -- Determine whether an arbitrary node denotes a subprogram call procedure Detect_Subprogram_Call is new Traverse_Proc (Is_Subprogram_Call); procedure Process_Transient_In_Scope (Obj_Decl : Node_Id; Blk_Data : Finalization_Exception_Data; Blk_Stmts : List_Id); -- Generate finalization actions for a single transient object -- denoted by object declaration Obj_Decl. Blk_Data is the -- exception data of the enclosing block. Blk_Stmts denotes the -- statements of the enclosing block. ------------------------ -- Is_Subprogram_Call -- ------------------------ function Is_Subprogram_Call (N : Node_Id) return Traverse_Result is begin -- A regular procedure or function call if Nkind (N) in N_Subprogram_Call then Must_Hook := True; return Abandon; -- Special cases -- Heavy expansion may relocate function calls outside the related -- node. Inspect the original node to detect the initial placement -- of the call. elsif Is_Rewrite_Substitution (N) then Detect_Subprogram_Call (Original_Node (N)); if Must_Hook then return Abandon; else return OK; end if; -- Generalized indexing always involves a function call elsif Nkind (N) = N_Indexed_Component and then Present (Generalized_Indexing (N)) then Must_Hook := True; return Abandon; -- Keep searching else return OK; end if; end Is_Subprogram_Call; -------------------------------- -- Process_Transient_In_Scope -- -------------------------------- procedure Process_Transient_In_Scope (Obj_Decl : Node_Id; Blk_Data : Finalization_Exception_Data; Blk_Stmts : List_Id) is Loc : constant Source_Ptr := Sloc (Obj_Decl); Obj_Id : constant Entity_Id := Defining_Entity (Obj_Decl); Fin_Call : Node_Id; Fin_Stmts : List_Id; Hook_Assign : Node_Id; Hook_Clear : Node_Id; Hook_Decl : Node_Id; Hook_Insert : Node_Id; Ptr_Decl : Node_Id; begin -- Mark the transient object as successfully processed to avoid -- double finalization. Set_Is_Finalized_Transient (Obj_Id); -- Construct all the pieces necessary to hook and finalize the -- transient object. Build_Transient_Object_Statements (Obj_Decl => Obj_Decl, Fin_Call => Fin_Call, Hook_Assign => Hook_Assign, Hook_Clear => Hook_Clear, Hook_Decl => Hook_Decl, Ptr_Decl => Ptr_Decl); -- The context contains at least one subprogram call which may -- raise an exception. This scenario employs "hooking" to pass -- transient objects to the enclosing finalizer in case of an -- exception. if Must_Hook then -- Add the access type which provides a reference to the -- transient object. Generate: -- type Ptr_Typ is access all Desig_Typ; Insert_Action (Obj_Decl, Ptr_Decl); -- Add the temporary which acts as a hook to the transient -- object. Generate: -- Hook : Ptr_Typ := null; Insert_Action (Obj_Decl, Hook_Decl); -- When the transient object is initialized by an aggregate, -- the hook must capture the object after the last aggregate -- assignment takes place. Only then is the object considered -- fully initialized. Generate: -- Hook := Ptr_Typ (Obj_Id); -- <or> -- Hook := Obj_Id'Unrestricted_Access; -- Similarly if we have a build in place call: we must -- initialize Hook only after the call has happened, otherwise -- Obj_Id will not be initialized yet. if Ekind (Obj_Id) in E_Constant | E_Variable then if Present (Last_Aggregate_Assignment (Obj_Id)) then Hook_Insert := Last_Aggregate_Assignment (Obj_Id); elsif Present (BIP_Initialization_Call (Obj_Id)) then Hook_Insert := BIP_Initialization_Call (Obj_Id); else Hook_Insert := Obj_Decl; end if; -- Otherwise the hook seizes the related object immediately else Hook_Insert := Obj_Decl; end if; Insert_After_And_Analyze (Hook_Insert, Hook_Assign); end if; -- When exception propagation is enabled wrap the hook clear -- statement and the finalization call into a block to catch -- potential exceptions raised during finalization. Generate: -- begin -- [Hook := null;] -- [Deep_]Finalize (Obj_Ref); -- exception -- when others => -- if not Raised then -- Raised := True; -- Save_Occurrence -- (Enn, Get_Current_Excep.all.all); -- end if; -- end; if Exceptions_OK then Fin_Stmts := New_List; if Must_Hook then Append_To (Fin_Stmts, Hook_Clear); end if; Append_To (Fin_Stmts, Fin_Call); Prepend_To (Blk_Stmts, Make_Block_Statement (Loc, Handled_Statement_Sequence => Make_Handled_Sequence_Of_Statements (Loc, Statements => Fin_Stmts, Exception_Handlers => New_List ( Build_Exception_Handler (Blk_Data))))); -- Otherwise generate: -- [Hook := null;] -- [Deep_]Finalize (Obj_Ref); -- Note that the statements are inserted in reverse order to -- achieve the desired final order outlined above. else Prepend_To (Blk_Stmts, Fin_Call); if Must_Hook then Prepend_To (Blk_Stmts, Hook_Clear); end if; end if; end Process_Transient_In_Scope; -- Local variables Built : Boolean := False; Blk_Data : Finalization_Exception_Data; Blk_Decl : Node_Id := Empty; Blk_Decls : List_Id := No_List; Blk_Ins : Node_Id; Blk_Stmts : List_Id := No_List; Loc : Source_Ptr := No_Location; Obj_Decl : Node_Id; -- Start of processing for Process_Transients_In_Scope begin -- The expansion performed by this routine is as follows: -- type Ptr_Typ_1 is access all Ctrl_Trans_Obj_1_Typ; -- Hook_1 : Ptr_Typ_1 := null; -- Ctrl_Trans_Obj_1 : ...; -- Hook_1 := Ctrl_Trans_Obj_1'Unrestricted_Access; -- . . . -- type Ptr_Typ_N is access all Ctrl_Trans_Obj_N_Typ; -- Hook_N : Ptr_Typ_N := null; -- Ctrl_Trans_Obj_N : ...; -- Hook_N := Ctrl_Trans_Obj_N'Unrestricted_Access; -- declare -- Abrt : constant Boolean := ...; -- Ex : Exception_Occurrence; -- Raised : Boolean := False; -- begin -- Abort_Defer; -- begin -- Hook_N := null; -- [Deep_]Finalize (Ctrl_Trans_Obj_N); -- exception -- when others => -- if not Raised then -- Raised := True; -- Save_Occurrence (Ex, Get_Current_Excep.all.all); -- end; -- . . . -- begin -- Hook_1 := null; -- [Deep_]Finalize (Ctrl_Trans_Obj_1); -- exception -- when others => -- if not Raised then -- Raised := True; -- Save_Occurrence (Ex, Get_Current_Excep.all.all); -- end; -- Abort_Undefer; -- if Raised and not Abrt then -- Raise_From_Controlled_Operation (Ex); -- end if; -- end; -- Recognize a scenario where the transient context is an object -- declaration initialized by a build-in-place function call: -- Obj : ... := BIP_Function_Call (Ctrl_Func_Call); -- The rough expansion of the above is: -- Temp : ... := Ctrl_Func_Call; -- Obj : ...; -- Res : ... := BIP_Func_Call (..., Obj, ...); -- The finalization of any transient object must happen after the -- build-in-place function call is executed. if Nkind (N) = N_Object_Declaration and then Present (BIP_Initialization_Call (Defining_Identifier (N))) then Must_Hook := True; Blk_Ins := BIP_Initialization_Call (Defining_Identifier (N)); -- Search the context for at least one subprogram call. If found, the -- machinery exports all transient objects to the enclosing finalizer -- due to the possibility of abnormal call termination. else Detect_Subprogram_Call (N); Blk_Ins := Last_Object; end if; if Clean then Insert_List_After_And_Analyze (Blk_Ins, Act_Cleanup); end if; -- Examine all objects in the list First_Object .. Last_Object Obj_Decl := First_Object; while Present (Obj_Decl) loop if Nkind (Obj_Decl) = N_Object_Declaration and then Analyzed (Obj_Decl) and then Is_Finalizable_Transient (Obj_Decl, N) -- Do not process the node to be wrapped since it will be -- handled by the enclosing finalizer. and then Obj_Decl /= Related_Node then Loc := Sloc (Obj_Decl); -- Before generating the cleanup code for the first transient -- object, create a wrapper block which houses all hook clear -- statements and finalization calls. This wrapper is needed by -- the back end. if not Built then Built := True; Blk_Stmts := New_List; -- Generate: -- Abrt : constant Boolean := ...; -- Ex : Exception_Occurrence; -- Raised : Boolean := False; if Exceptions_OK then Blk_Decls := New_List; Build_Object_Declarations (Blk_Data, Blk_Decls, Loc); end if; Blk_Decl := Make_Block_Statement (Loc, Declarations => Blk_Decls, Handled_Statement_Sequence => Make_Handled_Sequence_Of_Statements (Loc, Statements => Blk_Stmts)); end if; -- Construct all necessary circuitry to hook and finalize a -- single transient object. pragma Assert (Present (Blk_Stmts)); Process_Transient_In_Scope (Obj_Decl => Obj_Decl, Blk_Data => Blk_Data, Blk_Stmts => Blk_Stmts); end if; -- Terminate the scan after the last object has been processed to -- avoid touching unrelated code. if Obj_Decl = Last_Object then exit; end if; Next (Obj_Decl); end loop; -- Complete the decoration of the enclosing finalization block and -- insert it into the tree. if Present (Blk_Decl) then pragma Assert (Present (Blk_Stmts)); pragma Assert (Loc /= No_Location); -- Note that this Abort_Undefer does not require a extra block or -- an AT_END handler because each finalization exception is caught -- in its own corresponding finalization block. As a result, the -- call to Abort_Defer always takes place. if Abort_Allowed then Prepend_To (Blk_Stmts, Build_Runtime_Call (Loc, RE_Abort_Defer)); Append_To (Blk_Stmts, Build_Runtime_Call (Loc, RE_Abort_Undefer)); end if; -- Generate: -- if Raised and then not Abrt then -- Raise_From_Controlled_Operation (Ex); -- end if; if Exceptions_OK then Append_To (Blk_Stmts, Build_Raise_Statement (Blk_Data)); end if; Insert_After_And_Analyze (Blk_Ins, Blk_Decl); end if; end Process_Transients_In_Scope; -- Local variables Loc : constant Source_Ptr := Sloc (N); Node_To_Wrap : constant Node_Id := Node_To_Be_Wrapped; First_Obj : Node_Id; Last_Obj : Node_Id; Mark_Id : Entity_Id; Target : Node_Id; -- Start of processing for Insert_Actions_In_Scope_Around begin -- Nothing to do if the scope does not manage the secondary stack or -- does not contain meaninful actions for insertion. if not Manage_SS and then No (Act_Before) and then No (Act_After) and then No (Act_Cleanup) then return; end if; -- If the node to be wrapped is the trigger of an asynchronous select, -- it is not part of a statement list. The actions must be inserted -- before the select itself, which is part of some list of statements. -- Note that the triggering alternative includes the triggering -- statement and an optional statement list. If the node to be -- wrapped is part of that list, the normal insertion applies. if Nkind (Parent (Node_To_Wrap)) = N_Triggering_Alternative and then not Is_List_Member (Node_To_Wrap) then Target := Parent (Parent (Node_To_Wrap)); else Target := N; end if; First_Obj := Target; Last_Obj := Target; -- Add all actions associated with a transient scope into the main tree. -- There are several scenarios here: -- +--- Before ----+ +----- After ---+ -- 1) First_Obj ....... Target ........ Last_Obj -- 2) First_Obj ....... Target -- 3) Target ........ Last_Obj -- Flag declarations are inserted before the first object if Present (Act_Before) then First_Obj := First (Act_Before); Insert_List_Before (Target, Act_Before); end if; -- Finalization calls are inserted after the last object if Present (Act_After) then Last_Obj := Last (Act_After); Insert_List_After (Target, Act_After); end if; -- Mark and release the secondary stack when the context warrants it if Manage_SS then Mark_Id := Make_Temporary (Loc, 'M'); -- Generate: -- Mnn : constant Mark_Id := SS_Mark; Insert_Before_And_Analyze (First_Obj, Build_SS_Mark_Call (Loc, Mark_Id)); -- Generate: -- SS_Release (Mnn); Insert_After_And_Analyze (Last_Obj, Build_SS_Release_Call (Loc, Mark_Id)); end if; -- Check for transient objects associated with Target and generate the -- appropriate finalization actions for them. Process_Transients_In_Scope (First_Object => First_Obj, Last_Object => Last_Obj, Related_Node => Target); -- Reset the action lists Scope_Stack.Table (Scope_Stack.Last).Actions_To_Be_Wrapped (Before) := No_List; Scope_Stack.Table (Scope_Stack.Last).Actions_To_Be_Wrapped (After) := No_List; if Clean then Scope_Stack.Table (Scope_Stack.Last).Actions_To_Be_Wrapped (Cleanup) := No_List; end if; end Insert_Actions_In_Scope_Around; ------------------------------ -- Is_Simple_Protected_Type -- ------------------------------ function Is_Simple_Protected_Type (T : Entity_Id) return Boolean is begin return Is_Protected_Type (T) and then not Uses_Lock_Free (T) and then not Has_Entries (T) and then Is_RTE (Find_Protection_Type (T), RE_Protection); end Is_Simple_Protected_Type; ----------------------- -- Make_Adjust_Call -- ----------------------- function Make_Adjust_Call (Obj_Ref : Node_Id; Typ : Entity_Id; Skip_Self : Boolean := False) return Node_Id is Loc : constant Source_Ptr := Sloc (Obj_Ref); Adj_Id : Entity_Id := Empty; Ref : Node_Id; Utyp : Entity_Id; begin Ref := Obj_Ref; -- Recover the proper type which contains Deep_Adjust if Is_Class_Wide_Type (Typ) then Utyp := Root_Type (Typ); else Utyp := Typ; end if; Utyp := Underlying_Type (Base_Type (Utyp)); Set_Assignment_OK (Ref); -- Deal with untagged derivation of private views if Present (Utyp) and then Is_Untagged_Derivation (Typ) then Utyp := Underlying_Type (Root_Type (Base_Type (Typ))); Ref := Unchecked_Convert_To (Utyp, Ref); Set_Assignment_OK (Ref); end if; -- When dealing with the completion of a private type, use the base -- type instead. if Present (Utyp) and then Utyp /= Base_Type (Utyp) then pragma Assert (Is_Private_Type (Typ)); Utyp := Base_Type (Utyp); Ref := Unchecked_Convert_To (Utyp, Ref); end if; -- The underlying type may not be present due to a missing full view. In -- this case freezing did not take place and there is no [Deep_]Adjust -- primitive to call. if No (Utyp) then return Empty; elsif Skip_Self then if Has_Controlled_Component (Utyp) then if Is_Tagged_Type (Utyp) then Adj_Id := Find_Optional_Prim_Op (Utyp, TSS_Deep_Adjust); else Adj_Id := TSS (Utyp, TSS_Deep_Adjust); end if; end if; -- Class-wide types, interfaces and types with controlled components elsif Is_Class_Wide_Type (Typ) or else Is_Interface (Typ) or else Has_Controlled_Component (Utyp) then if Is_Tagged_Type (Utyp) then Adj_Id := Find_Optional_Prim_Op (Utyp, TSS_Deep_Adjust); else Adj_Id := TSS (Utyp, TSS_Deep_Adjust); end if; -- Derivations from [Limited_]Controlled elsif Is_Controlled (Utyp) then if Has_Controlled_Component (Utyp) then Adj_Id := Find_Optional_Prim_Op (Utyp, TSS_Deep_Adjust); else Adj_Id := Find_Optional_Prim_Op (Utyp, Name_Of (Adjust_Case)); end if; -- Tagged types elsif Is_Tagged_Type (Utyp) then Adj_Id := Find_Optional_Prim_Op (Utyp, TSS_Deep_Adjust); else raise Program_Error; end if; if Present (Adj_Id) then -- If the object is unanalyzed, set its expected type for use in -- Convert_View in case an additional conversion is needed. if No (Etype (Ref)) and then Nkind (Ref) /= N_Unchecked_Type_Conversion then Set_Etype (Ref, Typ); end if; -- The object reference may need another conversion depending on the -- type of the formal and that of the actual. if not Is_Class_Wide_Type (Typ) then Ref := Convert_View (Adj_Id, Ref); end if; return Make_Call (Loc, Proc_Id => Adj_Id, Param => Ref, Skip_Self => Skip_Self); else return Empty; end if; end Make_Adjust_Call; ---------------------- -- Make_Detach_Call -- ---------------------- function Make_Detach_Call (Obj_Ref : Node_Id) return Node_Id is Loc : constant Source_Ptr := Sloc (Obj_Ref); begin return Make_Procedure_Call_Statement (Loc, Name => New_Occurrence_Of (RTE (RE_Detach), Loc), Parameter_Associations => New_List ( Unchecked_Convert_To (RTE (RE_Root_Controlled_Ptr), Obj_Ref))); end Make_Detach_Call; --------------- -- Make_Call -- --------------- function Make_Call (Loc : Source_Ptr; Proc_Id : Entity_Id; Param : Node_Id; Skip_Self : Boolean := False) return Node_Id is Params : constant List_Id := New_List (Param); begin -- Do not apply the controlled action to the object itself by signaling -- the related routine to avoid self. if Skip_Self then Append_To (Params, New_Occurrence_Of (Standard_False, Loc)); end if; return Make_Procedure_Call_Statement (Loc, Name => New_Occurrence_Of (Proc_Id, Loc), Parameter_Associations => Params); end Make_Call; -------------------------- -- Make_Deep_Array_Body -- -------------------------- function Make_Deep_Array_Body (Prim : Final_Primitives; Typ : Entity_Id) return List_Id is function Build_Adjust_Or_Finalize_Statements (Typ : Entity_Id) return List_Id; -- Create the statements necessary to adjust or finalize an array of -- controlled elements. Generate: -- -- declare -- Abort : constant Boolean := Triggered_By_Abort; -- <or> -- Abort : constant Boolean := False; -- no abort -- -- E : Exception_Occurrence; -- Raised : Boolean := False; -- -- begin -- for J1 in [reverse] Typ'First (1) .. Typ'Last (1) loop -- ^-- in the finalization case -- ... -- for Jn in [reverse] Typ'First (n) .. Typ'Last (n) loop -- begin -- [Deep_]Adjust / Finalize (V (J1, ..., Jn)); -- -- exception -- when others => -- if not Raised then -- Raised := True; -- Save_Occurrence (E, Get_Current_Excep.all.all); -- end if; -- end; -- end loop; -- ... -- end loop; -- -- if Raised and then not Abort then -- Raise_From_Controlled_Operation (E); -- end if; -- end; function Build_Initialize_Statements (Typ : Entity_Id) return List_Id; -- Create the statements necessary to initialize an array of controlled -- elements. Include a mechanism to carry out partial finalization if an -- exception occurs. Generate: -- -- declare -- Counter : Integer := 0; -- -- begin -- for J1 in V'Range (1) loop -- ... -- for JN in V'Range (N) loop -- begin -- [Deep_]Initialize (V (J1, ..., JN)); -- -- Counter := Counter + 1; -- -- exception -- when others => -- declare -- Abort : constant Boolean := Triggered_By_Abort; -- <or> -- Abort : constant Boolean := False; -- no abort -- E : Exception_Occurrence; -- Raised : Boolean := False; -- begin -- Counter := -- V'Length (1) * -- V'Length (2) * -- ... -- V'Length (N) - Counter; -- for F1 in reverse V'Range (1) loop -- ... -- for FN in reverse V'Range (N) loop -- if Counter > 0 then -- Counter := Counter - 1; -- else -- begin -- [Deep_]Finalize (V (F1, ..., FN)); -- exception -- when others => -- if not Raised then -- Raised := True; -- Save_Occurrence (E, -- Get_Current_Excep.all.all); -- end if; -- end; -- end if; -- end loop; -- ... -- end loop; -- end; -- -- if Raised and then not Abort then -- Raise_From_Controlled_Operation (E); -- end if; -- -- raise; -- end; -- end loop; -- end loop; -- end; function New_References_To (L : List_Id; Loc : Source_Ptr) return List_Id; -- Given a list of defining identifiers, return a list of references to -- the original identifiers, in the same order as they appear. ----------------------------------------- -- Build_Adjust_Or_Finalize_Statements -- ----------------------------------------- function Build_Adjust_Or_Finalize_Statements (Typ : Entity_Id) return List_Id is Comp_Typ : constant Entity_Id := Component_Type (Typ); Index_List : constant List_Id := New_List; Loc : constant Source_Ptr := Sloc (Typ); Num_Dims : constant Int := Number_Dimensions (Typ); procedure Build_Indexes; -- Generate the indexes used in the dimension loops ------------------- -- Build_Indexes -- ------------------- procedure Build_Indexes is begin -- Generate the following identifiers: -- Jnn - for initialization for Dim in 1 .. Num_Dims loop Append_To (Index_List, Make_Defining_Identifier (Loc, New_External_Name ('J', Dim))); end loop; end Build_Indexes; -- Local variables Final_Decls : List_Id := No_List; Final_Data : Finalization_Exception_Data; Block : Node_Id; Call : Node_Id; Comp_Ref : Node_Id; Core_Loop : Node_Id; Dim : Int; J : Entity_Id; Loop_Id : Entity_Id; Stmts : List_Id; -- Start of processing for Build_Adjust_Or_Finalize_Statements begin Final_Decls := New_List; Build_Indexes; Build_Object_Declarations (Final_Data, Final_Decls, Loc); Comp_Ref := Make_Indexed_Component (Loc, Prefix => Make_Identifier (Loc, Name_V), Expressions => New_References_To (Index_List, Loc)); Set_Etype (Comp_Ref, Comp_Typ); -- Generate: -- [Deep_]Adjust (V (J1, ..., JN)) if Prim = Adjust_Case then Call := Make_Adjust_Call (Obj_Ref => Comp_Ref, Typ => Comp_Typ); -- Generate: -- [Deep_]Finalize (V (J1, ..., JN)) else pragma Assert (Prim = Finalize_Case); Call := Make_Final_Call (Obj_Ref => Comp_Ref, Typ => Comp_Typ); end if; if Present (Call) then -- Generate the block which houses the adjust or finalize call: -- begin -- <adjust or finalize call> -- exception -- when others => -- if not Raised then -- Raised := True; -- Save_Occurrence (E, Get_Current_Excep.all.all); -- end if; -- end; if Exceptions_OK then Core_Loop := Make_Block_Statement (Loc, Handled_Statement_Sequence => Make_Handled_Sequence_Of_Statements (Loc, Statements => New_List (Call), Exception_Handlers => New_List ( Build_Exception_Handler (Final_Data)))); else Core_Loop := Call; end if; -- Generate the dimension loops starting from the innermost one -- for Jnn in [reverse] V'Range (Dim) loop -- <core loop> -- end loop; J := Last (Index_List); Dim := Num_Dims; while Present (J) and then Dim > 0 loop Loop_Id := J; Prev (J); Remove (Loop_Id); Core_Loop := Make_Loop_Statement (Loc, Iteration_Scheme => Make_Iteration_Scheme (Loc, Loop_Parameter_Specification => Make_Loop_Parameter_Specification (Loc, Defining_Identifier => Loop_Id, Discrete_Subtype_Definition => Make_Attribute_Reference (Loc, Prefix => Make_Identifier (Loc, Name_V), Attribute_Name => Name_Range, Expressions => New_List ( Make_Integer_Literal (Loc, Dim))), Reverse_Present => Prim = Finalize_Case)), Statements => New_List (Core_Loop), End_Label => Empty); Dim := Dim - 1; end loop; -- Generate the block which contains the core loop, declarations -- of the abort flag, the exception occurrence, the raised flag -- and the conditional raise: -- declare -- Abort : constant Boolean := Triggered_By_Abort; -- <or> -- Abort : constant Boolean := False; -- no abort -- E : Exception_Occurrence; -- Raised : Boolean := False; -- begin -- <core loop> -- if Raised and then not Abort then -- Raise_From_Controlled_Operation (E); -- end if; -- end; Stmts := New_List (Core_Loop); if Exceptions_OK then Append_To (Stmts, Build_Raise_Statement (Final_Data)); end if; Block := Make_Block_Statement (Loc, Declarations => Final_Decls, Handled_Statement_Sequence => Make_Handled_Sequence_Of_Statements (Loc, Statements => Stmts)); -- Otherwise previous errors or a missing full view may prevent the -- proper freezing of the component type. If this is the case, there -- is no [Deep_]Adjust or [Deep_]Finalize primitive to call. else Block := Make_Null_Statement (Loc); end if; return New_List (Block); end Build_Adjust_Or_Finalize_Statements; --------------------------------- -- Build_Initialize_Statements -- --------------------------------- function Build_Initialize_Statements (Typ : Entity_Id) return List_Id is Comp_Typ : constant Entity_Id := Component_Type (Typ); Final_List : constant List_Id := New_List; Index_List : constant List_Id := New_List; Loc : constant Source_Ptr := Sloc (Typ); Num_Dims : constant Int := Number_Dimensions (Typ); function Build_Assignment (Counter_Id : Entity_Id) return Node_Id; -- Generate the following assignment: -- Counter := V'Length (1) * -- ... -- V'Length (N) - Counter; -- -- Counter_Id denotes the entity of the counter. function Build_Finalization_Call return Node_Id; -- Generate a deep finalization call for an array element procedure Build_Indexes; -- Generate the initialization and finalization indexes used in the -- dimension loops. function Build_Initialization_Call return Node_Id; -- Generate a deep initialization call for an array element ---------------------- -- Build_Assignment -- ---------------------- function Build_Assignment (Counter_Id : Entity_Id) return Node_Id is Dim : Int; Expr : Node_Id; begin -- Start from the first dimension and generate: -- V'Length (1) Dim := 1; Expr := Make_Attribute_Reference (Loc, Prefix => Make_Identifier (Loc, Name_V), Attribute_Name => Name_Length, Expressions => New_List (Make_Integer_Literal (Loc, Dim))); -- Process the rest of the dimensions, generate: -- Expr * V'Length (N) Dim := Dim + 1; while Dim <= Num_Dims loop Expr := Make_Op_Multiply (Loc, Left_Opnd => Expr, Right_Opnd => Make_Attribute_Reference (Loc, Prefix => Make_Identifier (Loc, Name_V), Attribute_Name => Name_Length, Expressions => New_List ( Make_Integer_Literal (Loc, Dim)))); Dim := Dim + 1; end loop; -- Generate: -- Counter := Expr - Counter; return Make_Assignment_Statement (Loc, Name => New_Occurrence_Of (Counter_Id, Loc), Expression => Make_Op_Subtract (Loc, Left_Opnd => Expr, Right_Opnd => New_Occurrence_Of (Counter_Id, Loc))); end Build_Assignment; ----------------------------- -- Build_Finalization_Call -- ----------------------------- function Build_Finalization_Call return Node_Id is Comp_Ref : constant Node_Id := Make_Indexed_Component (Loc, Prefix => Make_Identifier (Loc, Name_V), Expressions => New_References_To (Final_List, Loc)); begin Set_Etype (Comp_Ref, Comp_Typ); -- Generate: -- [Deep_]Finalize (V); return Make_Final_Call (Obj_Ref => Comp_Ref, Typ => Comp_Typ); end Build_Finalization_Call; ------------------- -- Build_Indexes -- ------------------- procedure Build_Indexes is begin -- Generate the following identifiers: -- Jnn - for initialization -- Fnn - for finalization for Dim in 1 .. Num_Dims loop Append_To (Index_List, Make_Defining_Identifier (Loc, New_External_Name ('J', Dim))); Append_To (Final_List, Make_Defining_Identifier (Loc, New_External_Name ('F', Dim))); end loop; end Build_Indexes; ------------------------------- -- Build_Initialization_Call -- ------------------------------- function Build_Initialization_Call return Node_Id is Comp_Ref : constant Node_Id := Make_Indexed_Component (Loc, Prefix => Make_Identifier (Loc, Name_V), Expressions => New_References_To (Index_List, Loc)); begin Set_Etype (Comp_Ref, Comp_Typ); -- Generate: -- [Deep_]Initialize (V (J1, ..., JN)); return Make_Init_Call (Obj_Ref => Comp_Ref, Typ => Comp_Typ); end Build_Initialization_Call; -- Local variables Counter_Id : Entity_Id; Dim : Int; F : Node_Id; Fin_Stmt : Node_Id; Final_Block : Node_Id; Final_Data : Finalization_Exception_Data; Final_Decls : List_Id := No_List; Final_Loop : Node_Id; Init_Block : Node_Id; Init_Call : Node_Id; Init_Loop : Node_Id; J : Node_Id; Loop_Id : Node_Id; Stmts : List_Id; -- Start of processing for Build_Initialize_Statements begin Counter_Id := Make_Temporary (Loc, 'C'); Final_Decls := New_List; Build_Indexes; Build_Object_Declarations (Final_Data, Final_Decls, Loc); -- Generate the block which houses the finalization call, the index -- guard and the handler which triggers Program_Error later on. -- if Counter > 0 then -- Counter := Counter - 1; -- else -- begin -- [Deep_]Finalize (V (F1, ..., FN)); -- exception -- when others => -- if not Raised then -- Raised := True; -- Save_Occurrence (E, Get_Current_Excep.all.all); -- end if; -- end; -- end if; Fin_Stmt := Build_Finalization_Call; if Present (Fin_Stmt) then if Exceptions_OK then Fin_Stmt := Make_Block_Statement (Loc, Handled_Statement_Sequence => Make_Handled_Sequence_Of_Statements (Loc, Statements => New_List (Fin_Stmt), Exception_Handlers => New_List ( Build_Exception_Handler (Final_Data)))); end if; -- This is the core of the loop, the dimension iterators are added -- one by one in reverse. Final_Loop := Make_If_Statement (Loc, Condition => Make_Op_Gt (Loc, Left_Opnd => New_Occurrence_Of (Counter_Id, Loc), Right_Opnd => Make_Integer_Literal (Loc, 0)), Then_Statements => New_List ( Make_Assignment_Statement (Loc, Name => New_Occurrence_Of (Counter_Id, Loc), Expression => Make_Op_Subtract (Loc, Left_Opnd => New_Occurrence_Of (Counter_Id, Loc), Right_Opnd => Make_Integer_Literal (Loc, 1)))), Else_Statements => New_List (Fin_Stmt)); -- Generate all finalization loops starting from the innermost -- dimension. -- for Fnn in reverse V'Range (Dim) loop -- <final loop> -- end loop; F := Last (Final_List); Dim := Num_Dims; while Present (F) and then Dim > 0 loop Loop_Id := F; Prev (F); Remove (Loop_Id); Final_Loop := Make_Loop_Statement (Loc, Iteration_Scheme => Make_Iteration_Scheme (Loc, Loop_Parameter_Specification => Make_Loop_Parameter_Specification (Loc, Defining_Identifier => Loop_Id, Discrete_Subtype_Definition => Make_Attribute_Reference (Loc, Prefix => Make_Identifier (Loc, Name_V), Attribute_Name => Name_Range, Expressions => New_List ( Make_Integer_Literal (Loc, Dim))), Reverse_Present => True)), Statements => New_List (Final_Loop), End_Label => Empty); Dim := Dim - 1; end loop; -- Generate the block which contains the finalization loops, the -- declarations of the abort flag, the exception occurrence, the -- raised flag and the conditional raise. -- declare -- Abort : constant Boolean := Triggered_By_Abort; -- <or> -- Abort : constant Boolean := False; -- no abort -- E : Exception_Occurrence; -- Raised : Boolean := False; -- begin -- Counter := -- V'Length (1) * -- ... -- V'Length (N) - Counter; -- <final loop> -- if Raised and then not Abort then -- Raise_From_Controlled_Operation (E); -- end if; -- raise; -- end; Stmts := New_List (Build_Assignment (Counter_Id), Final_Loop); if Exceptions_OK then Append_To (Stmts, Build_Raise_Statement (Final_Data)); Append_To (Stmts, Make_Raise_Statement (Loc)); end if; Final_Block := Make_Block_Statement (Loc, Declarations => Final_Decls, Handled_Statement_Sequence => Make_Handled_Sequence_Of_Statements (Loc, Statements => Stmts)); -- Otherwise previous errors or a missing full view may prevent the -- proper freezing of the component type. If this is the case, there -- is no [Deep_]Finalize primitive to call. else Final_Block := Make_Null_Statement (Loc); end if; -- Generate the block which contains the initialization call and -- the partial finalization code. -- begin -- [Deep_]Initialize (V (J1, ..., JN)); -- Counter := Counter + 1; -- exception -- when others => -- <finalization code> -- end; Init_Call := Build_Initialization_Call; -- Only create finalization block if there is a non-trivial -- call to initialization. if Present (Init_Call) and then Nkind (Init_Call) /= N_Null_Statement then Init_Loop := Make_Block_Statement (Loc, Handled_Statement_Sequence => Make_Handled_Sequence_Of_Statements (Loc, Statements => New_List (Init_Call), Exception_Handlers => New_List ( Make_Exception_Handler (Loc, Exception_Choices => New_List ( Make_Others_Choice (Loc)), Statements => New_List (Final_Block))))); Append_To (Statements (Handled_Statement_Sequence (Init_Loop)), Make_Assignment_Statement (Loc, Name => New_Occurrence_Of (Counter_Id, Loc), Expression => Make_Op_Add (Loc, Left_Opnd => New_Occurrence_Of (Counter_Id, Loc), Right_Opnd => Make_Integer_Literal (Loc, 1)))); -- Generate all initialization loops starting from the innermost -- dimension. -- for Jnn in V'Range (Dim) loop -- <init loop> -- end loop; J := Last (Index_List); Dim := Num_Dims; while Present (J) and then Dim > 0 loop Loop_Id := J; Prev (J); Remove (Loop_Id); Init_Loop := Make_Loop_Statement (Loc, Iteration_Scheme => Make_Iteration_Scheme (Loc, Loop_Parameter_Specification => Make_Loop_Parameter_Specification (Loc, Defining_Identifier => Loop_Id, Discrete_Subtype_Definition => Make_Attribute_Reference (Loc, Prefix => Make_Identifier (Loc, Name_V), Attribute_Name => Name_Range, Expressions => New_List ( Make_Integer_Literal (Loc, Dim))))), Statements => New_List (Init_Loop), End_Label => Empty); Dim := Dim - 1; end loop; -- Generate the block which contains the counter variable and the -- initialization loops. -- declare -- Counter : Integer := 0; -- begin -- <init loop> -- end; Init_Block := Make_Block_Statement (Loc, Declarations => New_List ( Make_Object_Declaration (Loc, Defining_Identifier => Counter_Id, Object_Definition => New_Occurrence_Of (Standard_Integer, Loc), Expression => Make_Integer_Literal (Loc, 0))), Handled_Statement_Sequence => Make_Handled_Sequence_Of_Statements (Loc, Statements => New_List (Init_Loop))); -- Otherwise previous errors or a missing full view may prevent the -- proper freezing of the component type. If this is the case, there -- is no [Deep_]Initialize primitive to call. else Init_Block := Make_Null_Statement (Loc); end if; return New_List (Init_Block); end Build_Initialize_Statements; ----------------------- -- New_References_To -- ----------------------- function New_References_To (L : List_Id; Loc : Source_Ptr) return List_Id is Refs : constant List_Id := New_List; Id : Node_Id; begin Id := First (L); while Present (Id) loop Append_To (Refs, New_Occurrence_Of (Id, Loc)); Next (Id); end loop; return Refs; end New_References_To; -- Start of processing for Make_Deep_Array_Body begin case Prim is when Address_Case => return Make_Finalize_Address_Stmts (Typ); when Adjust_Case | Finalize_Case => return Build_Adjust_Or_Finalize_Statements (Typ); when Initialize_Case => return Build_Initialize_Statements (Typ); end case; end Make_Deep_Array_Body; -------------------- -- Make_Deep_Proc -- -------------------- function Make_Deep_Proc (Prim : Final_Primitives; Typ : Entity_Id; Stmts : List_Id) return Entity_Id is Loc : constant Source_Ptr := Sloc (Typ); Formals : List_Id; Proc_Id : Entity_Id; begin -- Create the object formal, generate: -- V : System.Address if Prim = Address_Case then Formals := New_List ( Make_Parameter_Specification (Loc, Defining_Identifier => Make_Defining_Identifier (Loc, Name_V), Parameter_Type => New_Occurrence_Of (RTE (RE_Address), Loc))); -- Default case else -- V : in out Typ Formals := New_List ( Make_Parameter_Specification (Loc, Defining_Identifier => Make_Defining_Identifier (Loc, Name_V), In_Present => True, Out_Present => True, Parameter_Type => New_Occurrence_Of (Typ, Loc))); -- F : Boolean := True if Prim = Adjust_Case or else Prim = Finalize_Case then Append_To (Formals, Make_Parameter_Specification (Loc, Defining_Identifier => Make_Defining_Identifier (Loc, Name_F), Parameter_Type => New_Occurrence_Of (Standard_Boolean, Loc), Expression => New_Occurrence_Of (Standard_True, Loc))); end if; end if; Proc_Id := Make_Defining_Identifier (Loc, Chars => Make_TSS_Name (Typ, Deep_Name_Of (Prim))); -- Generate: -- procedure Deep_Initialize / Adjust / Finalize (V : in out <typ>) is -- begin -- <stmts> -- exception -- Finalize and Adjust cases only -- raise Program_Error; -- end Deep_Initialize / Adjust / Finalize; -- or -- procedure Finalize_Address (V : System.Address) is -- begin -- <stmts> -- end Finalize_Address; Discard_Node ( Make_Subprogram_Body (Loc, Specification => Make_Procedure_Specification (Loc, Defining_Unit_Name => Proc_Id, Parameter_Specifications => Formals), Declarations => Empty_List, Handled_Statement_Sequence => Make_Handled_Sequence_Of_Statements (Loc, Statements => Stmts))); -- If there are no calls to component initialization, indicate that -- the procedure is trivial, so prevent calls to it. if Is_Empty_List (Stmts) or else Nkind (First (Stmts)) = N_Null_Statement then Set_Is_Trivial_Subprogram (Proc_Id); end if; return Proc_Id; end Make_Deep_Proc; --------------------------- -- Make_Deep_Record_Body -- --------------------------- function Make_Deep_Record_Body (Prim : Final_Primitives; Typ : Entity_Id; Is_Local : Boolean := False) return List_Id is function Build_Adjust_Statements (Typ : Entity_Id) return List_Id; -- Build the statements necessary to adjust a record type. The type may -- have discriminants and contain variant parts. Generate: -- -- begin -- begin -- [Deep_]Adjust (V.Comp_1); -- exception -- when Id : others => -- if not Raised then -- Raised := True; -- Save_Occurrence (E, Get_Current_Excep.all.all); -- end if; -- end; -- . . . -- begin -- [Deep_]Adjust (V.Comp_N); -- exception -- when Id : others => -- if not Raised then -- Raised := True; -- Save_Occurrence (E, Get_Current_Excep.all.all); -- end if; -- end; -- -- begin -- Deep_Adjust (V._parent, False); -- If applicable -- exception -- when Id : others => -- if not Raised then -- Raised := True; -- Save_Occurrence (E, Get_Current_Excep.all.all); -- end if; -- end; -- -- if F then -- begin -- Adjust (V); -- If applicable -- exception -- when others => -- if not Raised then -- Raised := True; -- Save_Occurrence (E, Get_Current_Excep.all.all); -- end if; -- end; -- end if; -- -- if Raised and then not Abort then -- Raise_From_Controlled_Operation (E); -- end if; -- end; function Build_Finalize_Statements (Typ : Entity_Id) return List_Id; -- Build the statements necessary to finalize a record type. The type -- may have discriminants and contain variant parts. Generate: -- -- declare -- Abort : constant Boolean := Triggered_By_Abort; -- <or> -- Abort : constant Boolean := False; -- no abort -- E : Exception_Occurrence; -- Raised : Boolean := False; -- -- begin -- if F then -- begin -- Finalize (V); -- If applicable -- exception -- when others => -- if not Raised then -- Raised := True; -- Save_Occurrence (E, Get_Current_Excep.all.all); -- end if; -- end; -- end if; -- -- case Variant_1 is -- when Value_1 => -- case State_Counter_N => -- If Is_Local is enabled -- when N => . -- goto LN; . -- ... . -- when 1 => . -- goto L1; . -- when others => . -- goto L0; . -- end case; . -- -- <<LN>> -- If Is_Local is enabled -- begin -- [Deep_]Finalize (V.Comp_N); -- exception -- when others => -- if not Raised then -- Raised := True; -- Save_Occurrence (E, Get_Current_Excep.all.all); -- end if; -- end; -- . . . -- <<L1>> -- begin -- [Deep_]Finalize (V.Comp_1); -- exception -- when others => -- if not Raised then -- Raised := True; -- Save_Occurrence (E, Get_Current_Excep.all.all); -- end if; -- end; -- <<L0>> -- end case; -- -- case State_Counter_1 => -- If Is_Local is enabled -- when M => . -- goto LM; . -- ... -- -- begin -- Deep_Finalize (V._parent, False); -- If applicable -- exception -- when Id : others => -- if not Raised then -- Raised := True; -- Save_Occurrence (E, Get_Current_Excep.all.all); -- end if; -- end; -- -- if Raised and then not Abort then -- Raise_From_Controlled_Operation (E); -- end if; -- end; function Parent_Field_Type (Typ : Entity_Id) return Entity_Id; -- Given a derived tagged type Typ, traverse all components, find field -- _parent and return its type. procedure Preprocess_Components (Comps : Node_Id; Num_Comps : out Nat; Has_POC : out Boolean); -- Examine all components in component list Comps, count all controlled -- components and determine whether at least one of them is per-object -- constrained. Component _parent is always skipped. ----------------------------- -- Build_Adjust_Statements -- ----------------------------- function Build_Adjust_Statements (Typ : Entity_Id) return List_Id is Loc : constant Source_Ptr := Sloc (Typ); Typ_Def : constant Node_Id := Type_Definition (Parent (Typ)); Finalizer_Data : Finalization_Exception_Data; function Process_Component_List_For_Adjust (Comps : Node_Id) return List_Id; -- Build all necessary adjust statements for a single component list --------------------------------------- -- Process_Component_List_For_Adjust -- --------------------------------------- function Process_Component_List_For_Adjust (Comps : Node_Id) return List_Id is Stmts : constant List_Id := New_List; procedure Process_Component_For_Adjust (Decl : Node_Id); -- Process the declaration of a single controlled component ---------------------------------- -- Process_Component_For_Adjust -- ---------------------------------- procedure Process_Component_For_Adjust (Decl : Node_Id) is Id : constant Entity_Id := Defining_Identifier (Decl); Typ : constant Entity_Id := Etype (Id); Adj_Call : Node_Id; begin -- begin -- [Deep_]Adjust (V.Id); -- exception -- when others => -- if not Raised then -- Raised := True; -- Save_Occurrence (E, Get_Current_Excep.all.all); -- end if; -- end; Adj_Call := Make_Adjust_Call ( Obj_Ref => Make_Selected_Component (Loc, Prefix => Make_Identifier (Loc, Name_V), Selector_Name => Make_Identifier (Loc, Chars (Id))), Typ => Typ); -- Guard against a missing [Deep_]Adjust when the component -- type was not properly frozen. if Present (Adj_Call) then if Exceptions_OK then Adj_Call := Make_Block_Statement (Loc, Handled_Statement_Sequence => Make_Handled_Sequence_Of_Statements (Loc, Statements => New_List (Adj_Call), Exception_Handlers => New_List ( Build_Exception_Handler (Finalizer_Data)))); end if; Append_To (Stmts, Adj_Call); end if; end Process_Component_For_Adjust; -- Local variables Decl : Node_Id; Decl_Id : Entity_Id; Decl_Typ : Entity_Id; Has_POC : Boolean; Num_Comps : Nat; Var_Case : Node_Id; -- Start of processing for Process_Component_List_For_Adjust begin -- Perform an initial check, determine the number of controlled -- components in the current list and whether at least one of them -- is per-object constrained. Preprocess_Components (Comps, Num_Comps, Has_POC); -- The processing in this routine is done in the following order: -- 1) Regular components -- 2) Per-object constrained components -- 3) Variant parts if Num_Comps > 0 then -- Process all regular components in order of declarations Decl := First_Non_Pragma (Component_Items (Comps)); while Present (Decl) loop Decl_Id := Defining_Identifier (Decl); Decl_Typ := Etype (Decl_Id); -- Skip _parent as well as per-object constrained components if Chars (Decl_Id) /= Name_uParent and then Needs_Finalization (Decl_Typ) then if Has_Access_Constraint (Decl_Id) and then No (Expression (Decl)) then null; else Process_Component_For_Adjust (Decl); end if; end if; Next_Non_Pragma (Decl); end loop; -- Process all per-object constrained components in order of -- declarations. if Has_POC then Decl := First_Non_Pragma (Component_Items (Comps)); while Present (Decl) loop Decl_Id := Defining_Identifier (Decl); Decl_Typ := Etype (Decl_Id); -- Skip _parent if Chars (Decl_Id) /= Name_uParent and then Needs_Finalization (Decl_Typ) and then Has_Access_Constraint (Decl_Id) and then No (Expression (Decl)) then Process_Component_For_Adjust (Decl); end if; Next_Non_Pragma (Decl); end loop; end if; end if; -- Process all variants, if any Var_Case := Empty; if Present (Variant_Part (Comps)) then declare Var_Alts : constant List_Id := New_List; Var : Node_Id; begin Var := First_Non_Pragma (Variants (Variant_Part (Comps))); while Present (Var) loop -- Generate: -- when <discrete choices> => -- <adjust statements> Append_To (Var_Alts, Make_Case_Statement_Alternative (Loc, Discrete_Choices => New_Copy_List (Discrete_Choices (Var)), Statements => Process_Component_List_For_Adjust ( Component_List (Var)))); Next_Non_Pragma (Var); end loop; -- Generate: -- case V.<discriminant> is -- when <discrete choices 1> => -- <adjust statements 1> -- ... -- when <discrete choices N> => -- <adjust statements N> -- end case; Var_Case := Make_Case_Statement (Loc, Expression => Make_Selected_Component (Loc, Prefix => Make_Identifier (Loc, Name_V), Selector_Name => Make_Identifier (Loc, Chars => Chars (Name (Variant_Part (Comps))))), Alternatives => Var_Alts); end; end if; -- Add the variant case statement to the list of statements if Present (Var_Case) then Append_To (Stmts, Var_Case); end if; -- If the component list did not have any controlled components -- nor variants, return null. if Is_Empty_List (Stmts) then Append_To (Stmts, Make_Null_Statement (Loc)); end if; return Stmts; end Process_Component_List_For_Adjust; -- Local variables Bod_Stmts : List_Id := No_List; Finalizer_Decls : List_Id := No_List; Rec_Def : Node_Id; -- Start of processing for Build_Adjust_Statements begin Finalizer_Decls := New_List; Build_Object_Declarations (Finalizer_Data, Finalizer_Decls, Loc); if Nkind (Typ_Def) = N_Derived_Type_Definition then Rec_Def := Record_Extension_Part (Typ_Def); else Rec_Def := Typ_Def; end if; -- Create an adjust sequence for all record components if Present (Component_List (Rec_Def)) then Bod_Stmts := Process_Component_List_For_Adjust (Component_List (Rec_Def)); end if; -- A derived record type must adjust all inherited components. This -- action poses the following problem: -- procedure Deep_Adjust (Obj : in out Parent_Typ) is -- begin -- Adjust (Obj); -- ... -- procedure Deep_Adjust (Obj : in out Derived_Typ) is -- begin -- Deep_Adjust (Obj._parent); -- ... -- Adjust (Obj); -- ... -- Adjusting the derived type will invoke Adjust of the parent and -- then that of the derived type. This is undesirable because both -- routines may modify shared components. Only the Adjust of the -- derived type should be invoked. -- To prevent this double adjustment of shared components, -- Deep_Adjust uses a flag to control the invocation of Adjust: -- procedure Deep_Adjust -- (Obj : in out Some_Type; -- Flag : Boolean := True) -- is -- begin -- if Flag then -- Adjust (Obj); -- end if; -- ... -- When Deep_Adjust is invokes for field _parent, a value of False is -- provided for the flag: -- Deep_Adjust (Obj._parent, False); if Is_Tagged_Type (Typ) and then Is_Derived_Type (Typ) then declare Par_Typ : constant Entity_Id := Parent_Field_Type (Typ); Adj_Stmt : Node_Id; Call : Node_Id; begin if Needs_Finalization (Par_Typ) then Call := Make_Adjust_Call (Obj_Ref => Make_Selected_Component (Loc, Prefix => Make_Identifier (Loc, Name_V), Selector_Name => Make_Identifier (Loc, Name_uParent)), Typ => Par_Typ, Skip_Self => True); -- Generate: -- begin -- Deep_Adjust (V._parent, False); -- exception -- when Id : others => -- if not Raised then -- Raised := True; -- Save_Occurrence (E, -- Get_Current_Excep.all.all); -- end if; -- end; if Present (Call) then Adj_Stmt := Call; if Exceptions_OK then Adj_Stmt := Make_Block_Statement (Loc, Handled_Statement_Sequence => Make_Handled_Sequence_Of_Statements (Loc, Statements => New_List (Adj_Stmt), Exception_Handlers => New_List ( Build_Exception_Handler (Finalizer_Data)))); end if; Prepend_To (Bod_Stmts, Adj_Stmt); end if; end if; end; end if; -- Adjust the object. This action must be performed last after all -- components have been adjusted. if Is_Controlled (Typ) then declare Adj_Stmt : Node_Id; Proc : Entity_Id; begin Proc := Find_Optional_Prim_Op (Typ, Name_Adjust); -- Generate: -- if F then -- begin -- Adjust (V); -- exception -- when others => -- if not Raised then -- Raised := True; -- Save_Occurrence (E, -- Get_Current_Excep.all.all); -- end if; -- end; -- end if; if Present (Proc) then Adj_Stmt := Make_Procedure_Call_Statement (Loc, Name => New_Occurrence_Of (Proc, Loc), Parameter_Associations => New_List ( Make_Identifier (Loc, Name_V))); if Exceptions_OK then Adj_Stmt := Make_Block_Statement (Loc, Handled_Statement_Sequence => Make_Handled_Sequence_Of_Statements (Loc, Statements => New_List (Adj_Stmt), Exception_Handlers => New_List ( Build_Exception_Handler (Finalizer_Data)))); end if; Append_To (Bod_Stmts, Make_If_Statement (Loc, Condition => Make_Identifier (Loc, Name_F), Then_Statements => New_List (Adj_Stmt))); end if; end; end if; -- At this point either all adjustment statements have been generated -- or the type is not controlled. if Is_Empty_List (Bod_Stmts) then Append_To (Bod_Stmts, Make_Null_Statement (Loc)); return Bod_Stmts; -- Generate: -- declare -- Abort : constant Boolean := Triggered_By_Abort; -- <or> -- Abort : constant Boolean := False; -- no abort -- E : Exception_Occurrence; -- Raised : Boolean := False; -- begin -- <adjust statements> -- if Raised and then not Abort then -- Raise_From_Controlled_Operation (E); -- end if; -- end; else if Exceptions_OK then Append_To (Bod_Stmts, Build_Raise_Statement (Finalizer_Data)); end if; return New_List ( Make_Block_Statement (Loc, Declarations => Finalizer_Decls, Handled_Statement_Sequence => Make_Handled_Sequence_Of_Statements (Loc, Bod_Stmts))); end if; end Build_Adjust_Statements; ------------------------------- -- Build_Finalize_Statements -- ------------------------------- function Build_Finalize_Statements (Typ : Entity_Id) return List_Id is Loc : constant Source_Ptr := Sloc (Typ); Typ_Def : constant Node_Id := Type_Definition (Parent (Typ)); Counter : Int := 0; Finalizer_Data : Finalization_Exception_Data; function Process_Component_List_For_Finalize (Comps : Node_Id) return List_Id; -- Build all necessary finalization statements for a single component -- list. The statements may include a jump circuitry if flag Is_Local -- is enabled. ----------------------------------------- -- Process_Component_List_For_Finalize -- ----------------------------------------- function Process_Component_List_For_Finalize (Comps : Node_Id) return List_Id is procedure Process_Component_For_Finalize (Decl : Node_Id; Alts : List_Id; Decls : List_Id; Stmts : List_Id; Num_Comps : in out Nat); -- Process the declaration of a single controlled component. If -- flag Is_Local is enabled, create the corresponding label and -- jump circuitry. Alts is the list of case alternatives, Decls -- is the top level declaration list where labels are declared -- and Stmts is the list of finalization actions. Num_Comps -- denotes the current number of components needing finalization. ------------------------------------ -- Process_Component_For_Finalize -- ------------------------------------ procedure Process_Component_For_Finalize (Decl : Node_Id; Alts : List_Id; Decls : List_Id; Stmts : List_Id; Num_Comps : in out Nat) is Id : constant Entity_Id := Defining_Identifier (Decl); Typ : constant Entity_Id := Etype (Id); Fin_Call : Node_Id; begin if Is_Local then declare Label : Node_Id; Label_Id : Entity_Id; begin -- Generate: -- LN : label; Label_Id := Make_Identifier (Loc, Chars => New_External_Name ('L', Num_Comps)); Set_Entity (Label_Id, Make_Defining_Identifier (Loc, Chars (Label_Id))); Label := Make_Label (Loc, Label_Id); Append_To (Decls, Make_Implicit_Label_Declaration (Loc, Defining_Identifier => Entity (Label_Id), Label_Construct => Label)); -- Generate: -- when N => -- goto LN; Append_To (Alts, Make_Case_Statement_Alternative (Loc, Discrete_Choices => New_List ( Make_Integer_Literal (Loc, Num_Comps)), Statements => New_List ( Make_Goto_Statement (Loc, Name => New_Occurrence_Of (Entity (Label_Id), Loc))))); -- Generate: -- <<LN>> Append_To (Stmts, Label); -- Decrease the number of components to be processed. -- This action yields a new Label_Id in future calls. Num_Comps := Num_Comps - 1; end; end if; -- Generate: -- [Deep_]Finalize (V.Id); -- No_Exception_Propagation -- begin -- Exception handlers allowed -- [Deep_]Finalize (V.Id); -- exception -- when others => -- if not Raised then -- Raised := True; -- Save_Occurrence (E, -- Get_Current_Excep.all.all); -- end if; -- end; Fin_Call := Make_Final_Call (Obj_Ref => Make_Selected_Component (Loc, Prefix => Make_Identifier (Loc, Name_V), Selector_Name => Make_Identifier (Loc, Chars (Id))), Typ => Typ); -- Guard against a missing [Deep_]Finalize when the component -- type was not properly frozen. if Present (Fin_Call) then if Exceptions_OK then Fin_Call := Make_Block_Statement (Loc, Handled_Statement_Sequence => Make_Handled_Sequence_Of_Statements (Loc, Statements => New_List (Fin_Call), Exception_Handlers => New_List ( Build_Exception_Handler (Finalizer_Data)))); end if; Append_To (Stmts, Fin_Call); end if; end Process_Component_For_Finalize; -- Local variables Alts : List_Id; Counter_Id : Entity_Id := Empty; Decl : Node_Id; Decl_Id : Entity_Id; Decl_Typ : Entity_Id; Decls : List_Id; Has_POC : Boolean; Jump_Block : Node_Id; Label : Node_Id; Label_Id : Entity_Id; Num_Comps : Nat; Stmts : List_Id; Var_Case : Node_Id; -- Start of processing for Process_Component_List_For_Finalize begin -- Perform an initial check, look for controlled and per-object -- constrained components. Preprocess_Components (Comps, Num_Comps, Has_POC); -- Create a state counter to service the current component list. -- This step is performed before the variants are inspected in -- order to generate the same state counter names as those from -- Build_Initialize_Statements. if Num_Comps > 0 and then Is_Local then Counter := Counter + 1; Counter_Id := Make_Defining_Identifier (Loc, Chars => New_External_Name ('C', Counter)); end if; -- Process the component in the following order: -- 1) Variants -- 2) Per-object constrained components -- 3) Regular components -- Start with the variant parts Var_Case := Empty; if Present (Variant_Part (Comps)) then declare Var_Alts : constant List_Id := New_List; Var : Node_Id; begin Var := First_Non_Pragma (Variants (Variant_Part (Comps))); while Present (Var) loop -- Generate: -- when <discrete choices> => -- <finalize statements> Append_To (Var_Alts, Make_Case_Statement_Alternative (Loc, Discrete_Choices => New_Copy_List (Discrete_Choices (Var)), Statements => Process_Component_List_For_Finalize ( Component_List (Var)))); Next_Non_Pragma (Var); end loop; -- Generate: -- case V.<discriminant> is -- when <discrete choices 1> => -- <finalize statements 1> -- ... -- when <discrete choices N> => -- <finalize statements N> -- end case; Var_Case := Make_Case_Statement (Loc, Expression => Make_Selected_Component (Loc, Prefix => Make_Identifier (Loc, Name_V), Selector_Name => Make_Identifier (Loc, Chars => Chars (Name (Variant_Part (Comps))))), Alternatives => Var_Alts); end; end if; -- The current component list does not have a single controlled -- component, however it may contain variants. Return the case -- statement for the variants or nothing. if Num_Comps = 0 then if Present (Var_Case) then return New_List (Var_Case); else return New_List (Make_Null_Statement (Loc)); end if; end if; -- Prepare all lists Alts := New_List; Decls := New_List; Stmts := New_List; -- Process all per-object constrained components in reverse order if Has_POC then Decl := Last_Non_Pragma (Component_Items (Comps)); while Present (Decl) loop Decl_Id := Defining_Identifier (Decl); Decl_Typ := Etype (Decl_Id); -- Skip _parent if Chars (Decl_Id) /= Name_uParent and then Needs_Finalization (Decl_Typ) and then Has_Access_Constraint (Decl_Id) and then No (Expression (Decl)) then Process_Component_For_Finalize (Decl, Alts, Decls, Stmts, Num_Comps); end if; Prev_Non_Pragma (Decl); end loop; end if; -- Process the rest of the components in reverse order Decl := Last_Non_Pragma (Component_Items (Comps)); while Present (Decl) loop Decl_Id := Defining_Identifier (Decl); Decl_Typ := Etype (Decl_Id); -- Skip _parent if Chars (Decl_Id) /= Name_uParent and then Needs_Finalization (Decl_Typ) then -- Skip per-object constrained components since they were -- handled in the above step. if Has_Access_Constraint (Decl_Id) and then No (Expression (Decl)) then null; else Process_Component_For_Finalize (Decl, Alts, Decls, Stmts, Num_Comps); end if; end if; Prev_Non_Pragma (Decl); end loop; -- Generate: -- declare -- LN : label; -- If Is_Local is enabled -- ... . -- L0 : label; . -- begin . -- case CounterX is . -- when N => . -- goto LN; . -- ... . -- when 1 => . -- goto L1; . -- when others => . -- goto L0; . -- end case; . -- <<LN>> -- If Is_Local is enabled -- begin -- [Deep_]Finalize (V.CompY); -- exception -- when Id : others => -- if not Raised then -- Raised := True; -- Save_Occurrence (E, -- Get_Current_Excep.all.all); -- end if; -- end; -- ... -- <<L0>> -- If Is_Local is enabled -- end; if Is_Local then -- Add the declaration of default jump location L0, its -- corresponding alternative and its place in the statements. Label_Id := Make_Identifier (Loc, New_External_Name ('L', 0)); Set_Entity (Label_Id, Make_Defining_Identifier (Loc, Chars (Label_Id))); Label := Make_Label (Loc, Label_Id); Append_To (Decls, -- declaration Make_Implicit_Label_Declaration (Loc, Defining_Identifier => Entity (Label_Id), Label_Construct => Label)); Append_To (Alts, -- alternative Make_Case_Statement_Alternative (Loc, Discrete_Choices => New_List ( Make_Others_Choice (Loc)), Statements => New_List ( Make_Goto_Statement (Loc, Name => New_Occurrence_Of (Entity (Label_Id), Loc))))); Append_To (Stmts, Label); -- statement -- Create the jump block Prepend_To (Stmts, Make_Case_Statement (Loc, Expression => Make_Identifier (Loc, Chars (Counter_Id)), Alternatives => Alts)); end if; Jump_Block := Make_Block_Statement (Loc, Declarations => Decls, Handled_Statement_Sequence => Make_Handled_Sequence_Of_Statements (Loc, Stmts)); if Present (Var_Case) then return New_List (Var_Case, Jump_Block); else return New_List (Jump_Block); end if; end Process_Component_List_For_Finalize; -- Local variables Bod_Stmts : List_Id := No_List; Finalizer_Decls : List_Id := No_List; Rec_Def : Node_Id; -- Start of processing for Build_Finalize_Statements begin Finalizer_Decls := New_List; Build_Object_Declarations (Finalizer_Data, Finalizer_Decls, Loc); if Nkind (Typ_Def) = N_Derived_Type_Definition then Rec_Def := Record_Extension_Part (Typ_Def); else Rec_Def := Typ_Def; end if; -- Create a finalization sequence for all record components if Present (Component_List (Rec_Def)) then Bod_Stmts := Process_Component_List_For_Finalize (Component_List (Rec_Def)); end if; -- A derived record type must finalize all inherited components. This -- action poses the following problem: -- procedure Deep_Finalize (Obj : in out Parent_Typ) is -- begin -- Finalize (Obj); -- ... -- procedure Deep_Finalize (Obj : in out Derived_Typ) is -- begin -- Deep_Finalize (Obj._parent); -- ... -- Finalize (Obj); -- ... -- Finalizing the derived type will invoke Finalize of the parent and -- then that of the derived type. This is undesirable because both -- routines may modify shared components. Only the Finalize of the -- derived type should be invoked. -- To prevent this double adjustment of shared components, -- Deep_Finalize uses a flag to control the invocation of Finalize: -- procedure Deep_Finalize -- (Obj : in out Some_Type; -- Flag : Boolean := True) -- is -- begin -- if Flag then -- Finalize (Obj); -- end if; -- ... -- When Deep_Finalize is invoked for field _parent, a value of False -- is provided for the flag: -- Deep_Finalize (Obj._parent, False); if Is_Tagged_Type (Typ) and then Is_Derived_Type (Typ) then declare Par_Typ : constant Entity_Id := Parent_Field_Type (Typ); Call : Node_Id; Fin_Stmt : Node_Id; begin if Needs_Finalization (Par_Typ) then Call := Make_Final_Call (Obj_Ref => Make_Selected_Component (Loc, Prefix => Make_Identifier (Loc, Name_V), Selector_Name => Make_Identifier (Loc, Name_uParent)), Typ => Par_Typ, Skip_Self => True); -- Generate: -- begin -- Deep_Finalize (V._parent, False); -- exception -- when Id : others => -- if not Raised then -- Raised := True; -- Save_Occurrence (E, -- Get_Current_Excep.all.all); -- end if; -- end; if Present (Call) then Fin_Stmt := Call; if Exceptions_OK then Fin_Stmt := Make_Block_Statement (Loc, Handled_Statement_Sequence => Make_Handled_Sequence_Of_Statements (Loc, Statements => New_List (Fin_Stmt), Exception_Handlers => New_List ( Build_Exception_Handler (Finalizer_Data)))); end if; Append_To (Bod_Stmts, Fin_Stmt); end if; end if; end; end if; -- Finalize the object. This action must be performed first before -- all components have been finalized. if Is_Controlled (Typ) and then not Is_Local then declare Fin_Stmt : Node_Id; Proc : Entity_Id; begin Proc := Find_Optional_Prim_Op (Typ, Name_Finalize); -- Generate: -- if F then -- begin -- Finalize (V); -- exception -- when others => -- if not Raised then -- Raised := True; -- Save_Occurrence (E, -- Get_Current_Excep.all.all); -- end if; -- end; -- end if; if Present (Proc) then Fin_Stmt := Make_Procedure_Call_Statement (Loc, Name => New_Occurrence_Of (Proc, Loc), Parameter_Associations => New_List ( Make_Identifier (Loc, Name_V))); if Exceptions_OK then Fin_Stmt := Make_Block_Statement (Loc, Handled_Statement_Sequence => Make_Handled_Sequence_Of_Statements (Loc, Statements => New_List (Fin_Stmt), Exception_Handlers => New_List ( Build_Exception_Handler (Finalizer_Data)))); end if; Prepend_To (Bod_Stmts, Make_If_Statement (Loc, Condition => Make_Identifier (Loc, Name_F), Then_Statements => New_List (Fin_Stmt))); end if; end; end if; -- At this point either all finalization statements have been -- generated or the type is not controlled. if No (Bod_Stmts) then return New_List (Make_Null_Statement (Loc)); -- Generate: -- declare -- Abort : constant Boolean := Triggered_By_Abort; -- <or> -- Abort : constant Boolean := False; -- no abort -- E : Exception_Occurrence; -- Raised : Boolean := False; -- begin -- <finalize statements> -- if Raised and then not Abort then -- Raise_From_Controlled_Operation (E); -- end if; -- end; else if Exceptions_OK then Append_To (Bod_Stmts, Build_Raise_Statement (Finalizer_Data)); end if; return New_List ( Make_Block_Statement (Loc, Declarations => Finalizer_Decls, Handled_Statement_Sequence => Make_Handled_Sequence_Of_Statements (Loc, Bod_Stmts))); end if; end Build_Finalize_Statements; ----------------------- -- Parent_Field_Type -- ----------------------- function Parent_Field_Type (Typ : Entity_Id) return Entity_Id is Field : Entity_Id; begin Field := First_Entity (Typ); while Present (Field) loop if Chars (Field) = Name_uParent then return Etype (Field); end if; Next_Entity (Field); end loop; -- A derived tagged type should always have a parent field raise Program_Error; end Parent_Field_Type; --------------------------- -- Preprocess_Components -- --------------------------- procedure Preprocess_Components (Comps : Node_Id; Num_Comps : out Nat; Has_POC : out Boolean) is Decl : Node_Id; Id : Entity_Id; Typ : Entity_Id; begin Num_Comps := 0; Has_POC := False; Decl := First_Non_Pragma (Component_Items (Comps)); while Present (Decl) loop Id := Defining_Identifier (Decl); Typ := Etype (Id); -- Skip field _parent if Chars (Id) /= Name_uParent and then Needs_Finalization (Typ) then Num_Comps := Num_Comps + 1; if Has_Access_Constraint (Id) and then No (Expression (Decl)) then Has_POC := True; end if; end if; Next_Non_Pragma (Decl); end loop; end Preprocess_Components; -- Start of processing for Make_Deep_Record_Body begin case Prim is when Address_Case => return Make_Finalize_Address_Stmts (Typ); when Adjust_Case => return Build_Adjust_Statements (Typ); when Finalize_Case => return Build_Finalize_Statements (Typ); when Initialize_Case => declare Loc : constant Source_Ptr := Sloc (Typ); begin if Is_Controlled (Typ) then return New_List ( Make_Procedure_Call_Statement (Loc, Name => New_Occurrence_Of (Find_Prim_Op (Typ, Name_Of (Prim)), Loc), Parameter_Associations => New_List ( Make_Identifier (Loc, Name_V)))); else return Empty_List; end if; end; end case; end Make_Deep_Record_Body; ---------------------- -- Make_Final_Call -- ---------------------- function Make_Final_Call (Obj_Ref : Node_Id; Typ : Entity_Id; Skip_Self : Boolean := False) return Node_Id is Loc : constant Source_Ptr := Sloc (Obj_Ref); Atyp : Entity_Id; Fin_Id : Entity_Id := Empty; Ref : Node_Id; Utyp : Entity_Id; begin Ref := Obj_Ref; -- Recover the proper type which contains [Deep_]Finalize if Is_Class_Wide_Type (Typ) then Utyp := Root_Type (Typ); Atyp := Utyp; elsif Is_Concurrent_Type (Typ) then Utyp := Corresponding_Record_Type (Typ); Atyp := Empty; Ref := Convert_Concurrent (Ref, Typ); elsif Is_Private_Type (Typ) and then Present (Underlying_Type (Typ)) and then Is_Concurrent_Type (Underlying_Type (Typ)) then Utyp := Corresponding_Record_Type (Underlying_Type (Typ)); Atyp := Typ; Ref := Convert_Concurrent (Ref, Underlying_Type (Typ)); else Utyp := Typ; Atyp := Typ; end if; Utyp := Underlying_Type (Base_Type (Utyp)); Set_Assignment_OK (Ref); -- Deal with untagged derivation of private views. If the parent type -- is a protected type, Deep_Finalize is found on the corresponding -- record of the ancestor. if Is_Untagged_Derivation (Typ) then if Is_Protected_Type (Typ) then Utyp := Corresponding_Record_Type (Root_Type (Base_Type (Typ))); else Utyp := Underlying_Type (Root_Type (Base_Type (Typ))); if Is_Protected_Type (Utyp) then Utyp := Corresponding_Record_Type (Utyp); end if; end if; Ref := Unchecked_Convert_To (Utyp, Ref); Set_Assignment_OK (Ref); end if; -- Deal with derived private types which do not inherit primitives from -- their parents. In this case, [Deep_]Finalize can be found in the full -- view of the parent type. if Present (Utyp) and then Is_Tagged_Type (Utyp) and then Is_Derived_Type (Utyp) and then Is_Empty_Elmt_List (Primitive_Operations (Utyp)) and then Is_Private_Type (Etype (Utyp)) and then Present (Full_View (Etype (Utyp))) then Utyp := Full_View (Etype (Utyp)); Ref := Unchecked_Convert_To (Utyp, Ref); Set_Assignment_OK (Ref); end if; -- When dealing with the completion of a private type, use the base type -- instead. if Present (Utyp) and then Utyp /= Base_Type (Utyp) then pragma Assert (Present (Atyp) and then Is_Private_Type (Atyp)); Utyp := Base_Type (Utyp); Ref := Unchecked_Convert_To (Utyp, Ref); Set_Assignment_OK (Ref); end if; -- The underlying type may not be present due to a missing full view. In -- this case freezing did not take place and there is no [Deep_]Finalize -- primitive to call. if No (Utyp) then return Empty; elsif Skip_Self then if Has_Controlled_Component (Utyp) then if Is_Tagged_Type (Utyp) then Fin_Id := Find_Optional_Prim_Op (Utyp, TSS_Deep_Finalize); else Fin_Id := TSS (Utyp, TSS_Deep_Finalize); end if; end if; -- Class-wide types, interfaces and types with controlled components elsif Is_Class_Wide_Type (Typ) or else Is_Interface (Typ) or else Has_Controlled_Component (Utyp) then if Is_Tagged_Type (Utyp) then Fin_Id := Find_Optional_Prim_Op (Utyp, TSS_Deep_Finalize); else Fin_Id := TSS (Utyp, TSS_Deep_Finalize); end if; -- Derivations from [Limited_]Controlled elsif Is_Controlled (Utyp) then if Has_Controlled_Component (Utyp) then Fin_Id := Find_Optional_Prim_Op (Utyp, TSS_Deep_Finalize); else Fin_Id := Find_Optional_Prim_Op (Utyp, Name_Of (Finalize_Case)); end if; -- Tagged types elsif Is_Tagged_Type (Utyp) then Fin_Id := Find_Optional_Prim_Op (Utyp, TSS_Deep_Finalize); else raise Program_Error; end if; if Present (Fin_Id) then -- When finalizing a class-wide object, do not convert to the root -- type in order to produce a dispatching call. if Is_Class_Wide_Type (Typ) then null; -- Ensure that a finalization routine is at least decorated in order -- to inspect the object parameter. elsif Analyzed (Fin_Id) or else Ekind (Fin_Id) = E_Procedure then -- In certain cases, such as the creation of Stream_Read, the -- visible entity of the type is its full view. Since Stream_Read -- will have to create an object of type Typ, the local object -- will be finalzed by the scope finalizer generated later on. The -- object parameter of Deep_Finalize will always use the private -- view of the type. To avoid such a clash between a private and a -- full view, perform an unchecked conversion of the object -- reference to the private view. declare Formal_Typ : constant Entity_Id := Etype (First_Formal (Fin_Id)); begin if Is_Private_Type (Formal_Typ) and then Present (Full_View (Formal_Typ)) and then Full_View (Formal_Typ) = Utyp then Ref := Unchecked_Convert_To (Formal_Typ, Ref); end if; end; -- If the object is unanalyzed, set its expected type for use in -- Convert_View in case an additional conversion is needed. if No (Etype (Ref)) and then Nkind (Ref) /= N_Unchecked_Type_Conversion then Set_Etype (Ref, Typ); end if; Ref := Convert_View (Fin_Id, Ref); end if; return Make_Call (Loc, Proc_Id => Fin_Id, Param => Ref, Skip_Self => Skip_Self); else return Empty; end if; end Make_Final_Call; -------------------------------- -- Make_Finalize_Address_Body -- -------------------------------- procedure Make_Finalize_Address_Body (Typ : Entity_Id) is Is_Task : constant Boolean := Ekind (Typ) = E_Record_Type and then Is_Concurrent_Record_Type (Typ) and then Ekind (Corresponding_Concurrent_Type (Typ)) = E_Task_Type; Loc : constant Source_Ptr := Sloc (Typ); Proc_Id : Entity_Id; Stmts : List_Id; begin -- The corresponding records of task types are not controlled by design. -- For the sake of completeness, create an empty Finalize_Address to be -- used in task class-wide allocations. if Is_Task then null; -- Nothing to do if the type is not controlled or it already has a -- TSS entry for Finalize_Address. Skip class-wide subtypes which do not -- come from source. These are usually generated for completeness and -- do not need the Finalize_Address primitive. elsif not Needs_Finalization (Typ) or else Present (TSS (Typ, TSS_Finalize_Address)) or else (Is_Class_Wide_Type (Typ) and then Ekind (Root_Type (Typ)) = E_Record_Subtype and then not Comes_From_Source (Root_Type (Typ))) then return; end if; -- Do not generate Finalize_Address routine for CodePeer if CodePeer_Mode then return; end if; Proc_Id := Make_Defining_Identifier (Loc, Make_TSS_Name (Typ, TSS_Finalize_Address)); -- Generate: -- procedure <Typ>FD (V : System.Address) is -- begin -- null; -- for tasks -- declare -- for all other types -- type Pnn is access all Typ; -- for Pnn'Storage_Size use 0; -- begin -- [Deep_]Finalize (Pnn (V).all); -- end; -- end TypFD; if Is_Task then Stmts := New_List (Make_Null_Statement (Loc)); else Stmts := Make_Finalize_Address_Stmts (Typ); end if; Discard_Node ( Make_Subprogram_Body (Loc, Specification => Make_Procedure_Specification (Loc, Defining_Unit_Name => Proc_Id, Parameter_Specifications => New_List ( Make_Parameter_Specification (Loc, Defining_Identifier => Make_Defining_Identifier (Loc, Name_V), Parameter_Type => New_Occurrence_Of (RTE (RE_Address), Loc)))), Declarations => No_List, Handled_Statement_Sequence => Make_Handled_Sequence_Of_Statements (Loc, Statements => Stmts))); Set_TSS (Typ, Proc_Id); end Make_Finalize_Address_Body; --------------------------------- -- Make_Finalize_Address_Stmts -- --------------------------------- function Make_Finalize_Address_Stmts (Typ : Entity_Id) return List_Id is Loc : constant Source_Ptr := Sloc (Typ); Decls : List_Id; Desig_Typ : Entity_Id; Fin_Block : Node_Id; Fin_Call : Node_Id; Obj_Expr : Node_Id; Ptr_Typ : Entity_Id; begin if Is_Array_Type (Typ) then if Is_Constrained (First_Subtype (Typ)) then Desig_Typ := First_Subtype (Typ); else Desig_Typ := Base_Type (Typ); end if; -- Class-wide types of constrained root types elsif Is_Class_Wide_Type (Typ) and then Has_Discriminants (Root_Type (Typ)) and then not Is_Empty_Elmt_List (Discriminant_Constraint (Root_Type (Typ))) then declare Parent_Typ : Entity_Id; begin -- Climb the parent type chain looking for a non-constrained type Parent_Typ := Root_Type (Typ); while Parent_Typ /= Etype (Parent_Typ) and then Has_Discriminants (Parent_Typ) and then not Is_Empty_Elmt_List (Discriminant_Constraint (Parent_Typ)) loop Parent_Typ := Etype (Parent_Typ); end loop; -- Handle views created for tagged types with unknown -- discriminants. if Is_Underlying_Record_View (Parent_Typ) then Parent_Typ := Underlying_Record_View (Parent_Typ); end if; Desig_Typ := Class_Wide_Type (Underlying_Type (Parent_Typ)); end; -- General case else Desig_Typ := Typ; end if; -- Generate: -- type Ptr_Typ is access all Typ; -- for Ptr_Typ'Storage_Size use 0; Ptr_Typ := Make_Temporary (Loc, 'P'); Decls := New_List ( Make_Full_Type_Declaration (Loc, Defining_Identifier => Ptr_Typ, Type_Definition => Make_Access_To_Object_Definition (Loc, All_Present => True, Subtype_Indication => New_Occurrence_Of (Desig_Typ, Loc))), Make_Attribute_Definition_Clause (Loc, Name => New_Occurrence_Of (Ptr_Typ, Loc), Chars => Name_Storage_Size, Expression => Make_Integer_Literal (Loc, 0))); Obj_Expr := Make_Identifier (Loc, Name_V); -- Unconstrained arrays require special processing in order to retrieve -- the elements. To achieve this, we have to skip the dope vector which -- lays in front of the elements and then use a thin pointer to perform -- the address-to-access conversion. if Is_Array_Type (Typ) and then not Is_Constrained (First_Subtype (Typ)) then declare Dope_Id : Entity_Id; begin -- Ensure that Ptr_Typ a thin pointer, generate: -- for Ptr_Typ'Size use System.Address'Size; Append_To (Decls, Make_Attribute_Definition_Clause (Loc, Name => New_Occurrence_Of (Ptr_Typ, Loc), Chars => Name_Size, Expression => Make_Integer_Literal (Loc, System_Address_Size))); -- Generate: -- Dnn : constant Storage_Offset := -- Desig_Typ'Descriptor_Size / Storage_Unit; Dope_Id := Make_Temporary (Loc, 'D'); Append_To (Decls, Make_Object_Declaration (Loc, Defining_Identifier => Dope_Id, Constant_Present => True, Object_Definition => New_Occurrence_Of (RTE (RE_Storage_Offset), Loc), Expression => Make_Op_Divide (Loc, Left_Opnd => Make_Attribute_Reference (Loc, Prefix => New_Occurrence_Of (Desig_Typ, Loc), Attribute_Name => Name_Descriptor_Size), Right_Opnd => Make_Integer_Literal (Loc, System_Storage_Unit)))); -- Shift the address from the start of the dope vector to the -- start of the elements: -- -- V + Dnn -- -- Note that this is done through a wrapper routine since RTSfind -- cannot retrieve operations with string names of the form "+". Obj_Expr := Make_Function_Call (Loc, Name => New_Occurrence_Of (RTE (RE_Add_Offset_To_Address), Loc), Parameter_Associations => New_List ( Obj_Expr, New_Occurrence_Of (Dope_Id, Loc))); end; end if; Fin_Call := Make_Final_Call ( Obj_Ref => Make_Explicit_Dereference (Loc, Prefix => Unchecked_Convert_To (Ptr_Typ, Obj_Expr)), Typ => Desig_Typ); if Present (Fin_Call) then Fin_Block := Make_Block_Statement (Loc, Declarations => Decls, Handled_Statement_Sequence => Make_Handled_Sequence_Of_Statements (Loc, Statements => New_List (Fin_Call))); -- Otherwise previous errors or a missing full view may prevent the -- proper freezing of the designated type. If this is the case, there -- is no [Deep_]Finalize primitive to call. else Fin_Block := Make_Null_Statement (Loc); end if; return New_List (Fin_Block); end Make_Finalize_Address_Stmts; ------------------------------------- -- Make_Handler_For_Ctrl_Operation -- ------------------------------------- -- Generate: -- when E : others => -- Raise_From_Controlled_Operation (E); -- or: -- when others => -- raise Program_Error [finalize raised exception]; -- depending on whether Raise_From_Controlled_Operation is available function Make_Handler_For_Ctrl_Operation (Loc : Source_Ptr) return Node_Id is E_Occ : Entity_Id; -- Choice parameter (for the first case above) Raise_Node : Node_Id; -- Procedure call or raise statement begin -- Standard run-time: add choice parameter E and pass it to -- Raise_From_Controlled_Operation so that the original exception -- name and message can be recorded in the exception message for -- Program_Error. if RTE_Available (RE_Raise_From_Controlled_Operation) then E_Occ := Make_Defining_Identifier (Loc, Name_E); Raise_Node := Make_Procedure_Call_Statement (Loc, Name => New_Occurrence_Of (RTE (RE_Raise_From_Controlled_Operation), Loc), Parameter_Associations => New_List ( New_Occurrence_Of (E_Occ, Loc))); -- Restricted run-time: exception messages are not supported else E_Occ := Empty; Raise_Node := Make_Raise_Program_Error (Loc, Reason => PE_Finalize_Raised_Exception); end if; return Make_Implicit_Exception_Handler (Loc, Exception_Choices => New_List (Make_Others_Choice (Loc)), Choice_Parameter => E_Occ, Statements => New_List (Raise_Node)); end Make_Handler_For_Ctrl_Operation; -------------------- -- Make_Init_Call -- -------------------- function Make_Init_Call (Obj_Ref : Node_Id; Typ : Entity_Id) return Node_Id is Loc : constant Source_Ptr := Sloc (Obj_Ref); Is_Conc : Boolean; Proc : Entity_Id; Ref : Node_Id; Utyp : Entity_Id; begin Ref := Obj_Ref; -- Deal with the type and object reference. Depending on the context, an -- object reference may need several conversions. if Is_Concurrent_Type (Typ) then Is_Conc := True; Utyp := Corresponding_Record_Type (Typ); Ref := Convert_Concurrent (Ref, Typ); elsif Is_Private_Type (Typ) and then Present (Full_View (Typ)) and then Is_Concurrent_Type (Underlying_Type (Typ)) then Is_Conc := True; Utyp := Corresponding_Record_Type (Underlying_Type (Typ)); Ref := Convert_Concurrent (Ref, Underlying_Type (Typ)); else Is_Conc := False; Utyp := Typ; end if; Utyp := Underlying_Type (Base_Type (Utyp)); Set_Assignment_OK (Ref); -- Deal with untagged derivation of private views if Is_Untagged_Derivation (Typ) and then not Is_Conc then Utyp := Underlying_Type (Root_Type (Base_Type (Typ))); Ref := Unchecked_Convert_To (Utyp, Ref); -- The following is to prevent problems with UC see 1.156 RH ??? Set_Assignment_OK (Ref); end if; -- If the underlying_type is a subtype, then we are dealing with the -- completion of a private type. We need to access the base type and -- generate a conversion to it. if Present (Utyp) and then Utyp /= Base_Type (Utyp) then pragma Assert (Is_Private_Type (Typ)); Utyp := Base_Type (Utyp); Ref := Unchecked_Convert_To (Utyp, Ref); end if; -- The underlying type may not be present due to a missing full view. -- In this case freezing did not take place and there is no suitable -- [Deep_]Initialize primitive to call. if No (Utyp) then return Empty; end if; -- Select the appropriate version of initialize if Has_Controlled_Component (Utyp) then Proc := TSS (Utyp, Deep_Name_Of (Initialize_Case)); else Proc := Find_Prim_Op (Utyp, Name_Of (Initialize_Case)); Check_Visibly_Controlled (Initialize_Case, Typ, Proc, Ref); end if; -- If initialization procedure for an array of controlled objects is -- trivial, do not generate a useless call to it. if (Is_Array_Type (Utyp) and then Is_Trivial_Subprogram (Proc)) or else (not Comes_From_Source (Proc) and then Present (Alias (Proc)) and then Is_Trivial_Subprogram (Alias (Proc))) then return Make_Null_Statement (Loc); end if; -- The object reference may need another conversion depending on the -- type of the formal and that of the actual. Ref := Convert_View (Proc, Ref); -- Generate: -- [Deep_]Initialize (Ref); return Make_Procedure_Call_Statement (Loc, Name => New_Occurrence_Of (Proc, Loc), Parameter_Associations => New_List (Ref)); end Make_Init_Call; ------------------------------ -- Make_Local_Deep_Finalize -- ------------------------------ function Make_Local_Deep_Finalize (Typ : Entity_Id; Nam : Entity_Id) return Node_Id is Loc : constant Source_Ptr := Sloc (Typ); Formals : List_Id; begin Formals := New_List ( -- V : in out Typ Make_Parameter_Specification (Loc, Defining_Identifier => Make_Defining_Identifier (Loc, Name_V), In_Present => True, Out_Present => True, Parameter_Type => New_Occurrence_Of (Typ, Loc)), -- F : Boolean := True Make_Parameter_Specification (Loc, Defining_Identifier => Make_Defining_Identifier (Loc, Name_F), Parameter_Type => New_Occurrence_Of (Standard_Boolean, Loc), Expression => New_Occurrence_Of (Standard_True, Loc))); -- Add the necessary number of counters to represent the initialization -- state of an object. return Make_Subprogram_Body (Loc, Specification => Make_Procedure_Specification (Loc, Defining_Unit_Name => Nam, Parameter_Specifications => Formals), Declarations => No_List, Handled_Statement_Sequence => Make_Handled_Sequence_Of_Statements (Loc, Statements => Make_Deep_Record_Body (Finalize_Case, Typ, True))); end Make_Local_Deep_Finalize; ------------------------------------ -- Make_Set_Finalize_Address_Call -- ------------------------------------ function Make_Set_Finalize_Address_Call (Loc : Source_Ptr; Ptr_Typ : Entity_Id) return Node_Id is -- It is possible for Ptr_Typ to be a partial view, if the access type -- is a full view declared in the private part of a nested package, and -- the finalization actions take place when completing analysis of the -- enclosing unit. For this reason use Underlying_Type twice below. Desig_Typ : constant Entity_Id := Available_View (Designated_Type (Underlying_Type (Ptr_Typ))); Fin_Addr : constant Entity_Id := Finalize_Address (Desig_Typ); Fin_Mas : constant Entity_Id := Finalization_Master (Underlying_Type (Ptr_Typ)); begin -- Both the finalization master and primitive Finalize_Address must be -- available. pragma Assert (Present (Fin_Addr) and Present (Fin_Mas)); -- Generate: -- Set_Finalize_Address -- (<Ptr_Typ>FM, <Desig_Typ>FD'Unrestricted_Access); return Make_Procedure_Call_Statement (Loc, Name => New_Occurrence_Of (RTE (RE_Set_Finalize_Address), Loc), Parameter_Associations => New_List ( New_Occurrence_Of (Fin_Mas, Loc), Make_Attribute_Reference (Loc, Prefix => New_Occurrence_Of (Fin_Addr, Loc), Attribute_Name => Name_Unrestricted_Access))); end Make_Set_Finalize_Address_Call; -------------------------- -- Make_Transient_Block -- -------------------------- function Make_Transient_Block (Loc : Source_Ptr; Action : Node_Id; Par : Node_Id) return Node_Id is function Manages_Sec_Stack (Id : Entity_Id) return Boolean; -- Determine whether scoping entity Id manages the secondary stack function Within_Loop_Statement (N : Node_Id) return Boolean; -- Return True when N appears within a loop and no block is containing N ----------------------- -- Manages_Sec_Stack -- ----------------------- function Manages_Sec_Stack (Id : Entity_Id) return Boolean is begin case Ekind (Id) is -- An exception handler with a choice parameter utilizes a dummy -- block to provide a declarative region. Such a block should not -- be considered because it never manifests in the tree and can -- never release the secondary stack. when E_Block => return Uses_Sec_Stack (Id) and then not Is_Exception_Handler (Id); when E_Entry | E_Entry_Family | E_Function | E_Procedure => return Uses_Sec_Stack (Id); when others => return False; end case; end Manages_Sec_Stack; --------------------------- -- Within_Loop_Statement -- --------------------------- function Within_Loop_Statement (N : Node_Id) return Boolean is Par : Node_Id := Parent (N); begin while Nkind (Par) not in N_Handled_Sequence_Of_Statements | N_Loop_Statement | N_Package_Specification | N_Proper_Body loop pragma Assert (Present (Par)); Par := Parent (Par); end loop; return Nkind (Par) = N_Loop_Statement; end Within_Loop_Statement; -- Local variables Decls : constant List_Id := New_List; Instrs : constant List_Id := New_List (Action); Trans_Id : constant Entity_Id := Current_Scope; Block : Node_Id; Insert : Node_Id; Scop : Entity_Id; -- Start of processing for Make_Transient_Block begin -- Even though the transient block is tasked with managing the secondary -- stack, the block may forgo this functionality depending on how the -- secondary stack is managed by enclosing scopes. if Manages_Sec_Stack (Trans_Id) then -- Determine whether an enclosing scope already manages the secondary -- stack. Scop := Scope (Trans_Id); while Present (Scop) loop -- It should not be possible to reach Standard without hitting one -- of the other cases first unless Standard was manually pushed. if Scop = Standard_Standard then exit; -- The transient block is within a function which returns on the -- secondary stack. Take a conservative approach and assume that -- the value on the secondary stack is part of the result. Note -- that it is not possible to detect this dependency without flow -- analysis which the compiler does not have. Letting the object -- live longer than the transient block will not leak any memory -- because the caller will reclaim the total storage used by the -- function. elsif Ekind (Scop) = E_Function and then Sec_Stack_Needed_For_Return (Scop) then Set_Uses_Sec_Stack (Trans_Id, False); exit; -- The transient block must manage the secondary stack when the -- block appears within a loop in order to reclaim the memory at -- each iteration. elsif Ekind (Scop) = E_Loop then exit; -- Ditto when the block appears without a block that does not -- manage the secondary stack and is located within a loop. elsif Ekind (Scop) = E_Block and then not Manages_Sec_Stack (Scop) and then Present (Block_Node (Scop)) and then Within_Loop_Statement (Block_Node (Scop)) then exit; -- The transient block does not need to manage the secondary stack -- when there is an enclosing construct which already does that. -- This optimization saves on SS_Mark and SS_Release calls but may -- allow objects to live a little longer than required. -- The transient block must manage the secondary stack when switch -- -gnatd.s (strict management) is in effect. elsif Manages_Sec_Stack (Scop) and then not Debug_Flag_Dot_S then Set_Uses_Sec_Stack (Trans_Id, False); exit; -- Prevent the search from going too far because transient blocks -- are bounded by packages and subprogram scopes. elsif Ekind (Scop) in E_Entry | E_Entry_Family | E_Function | E_Package | E_Procedure | E_Subprogram_Body then exit; end if; Scop := Scope (Scop); end loop; end if; -- Create the transient block. Set the parent now since the block itself -- is not part of the tree. The current scope is the E_Block entity that -- has been pushed by Establish_Transient_Scope. pragma Assert (Ekind (Trans_Id) = E_Block); Block := Make_Block_Statement (Loc, Identifier => New_Occurrence_Of (Trans_Id, Loc), Declarations => Decls, Handled_Statement_Sequence => Make_Handled_Sequence_Of_Statements (Loc, Statements => Instrs), Has_Created_Identifier => True); Set_Parent (Block, Par); -- Insert actions stuck in the transient scopes as well as all freezing -- nodes needed by those actions. Do not insert cleanup actions here, -- they will be transferred to the newly created block. Insert_Actions_In_Scope_Around (Action, Clean => False, Manage_SS => False); Insert := Prev (Action); if Present (Insert) then Freeze_All (First_Entity (Trans_Id), Insert); end if; -- Transfer cleanup actions to the newly created block declare Cleanup_Actions : List_Id renames Scope_Stack.Table (Scope_Stack.Last). Actions_To_Be_Wrapped (Cleanup); begin Set_Cleanup_Actions (Block, Cleanup_Actions); Cleanup_Actions := No_List; end; -- When the transient scope was established, we pushed the entry for the -- transient scope onto the scope stack, so that the scope was active -- for the installation of finalizable entities etc. Now we must remove -- this entry, since we have constructed a proper block. Pop_Scope; return Block; end Make_Transient_Block; ------------------------ -- Node_To_Be_Wrapped -- ------------------------ function Node_To_Be_Wrapped return Node_Id is begin return Scope_Stack.Table (Scope_Stack.Last).Node_To_Be_Wrapped; end Node_To_Be_Wrapped; ---------------------------- -- Set_Node_To_Be_Wrapped -- ---------------------------- procedure Set_Node_To_Be_Wrapped (N : Node_Id) is begin Scope_Stack.Table (Scope_Stack.Last).Node_To_Be_Wrapped := N; end Set_Node_To_Be_Wrapped; ---------------------------- -- Store_Actions_In_Scope -- ---------------------------- procedure Store_Actions_In_Scope (AK : Scope_Action_Kind; L : List_Id) is SE : Scope_Stack_Entry renames Scope_Stack.Table (Scope_Stack.Last); Actions : List_Id renames SE.Actions_To_Be_Wrapped (AK); begin if No (Actions) then Actions := L; if Is_List_Member (SE.Node_To_Be_Wrapped) then Set_Parent (L, Parent (SE.Node_To_Be_Wrapped)); else Set_Parent (L, SE.Node_To_Be_Wrapped); end if; Analyze_List (L); elsif AK = Before then Insert_List_After_And_Analyze (Last (Actions), L); else Insert_List_Before_And_Analyze (First (Actions), L); end if; end Store_Actions_In_Scope; ---------------------------------- -- Store_After_Actions_In_Scope -- ---------------------------------- procedure Store_After_Actions_In_Scope (L : List_Id) is begin Store_Actions_In_Scope (After, L); end Store_After_Actions_In_Scope; ----------------------------------- -- Store_Before_Actions_In_Scope -- ----------------------------------- procedure Store_Before_Actions_In_Scope (L : List_Id) is begin Store_Actions_In_Scope (Before, L); end Store_Before_Actions_In_Scope; ----------------------------------- -- Store_Cleanup_Actions_In_Scope -- ----------------------------------- procedure Store_Cleanup_Actions_In_Scope (L : List_Id) is begin Store_Actions_In_Scope (Cleanup, L); end Store_Cleanup_Actions_In_Scope; ------------------ -- Unnest_Block -- ------------------ procedure Unnest_Block (Decl : Node_Id) is Loc : constant Source_Ptr := Sloc (Decl); Ent : Entity_Id; Local_Body : Node_Id; Local_Call : Node_Id; Local_Proc : Entity_Id; Local_Scop : Entity_Id; begin Local_Scop := Entity (Identifier (Decl)); Ent := First_Entity (Local_Scop); Local_Proc := Make_Defining_Identifier (Loc, Chars => New_Internal_Name ('P')); Local_Body := Make_Subprogram_Body (Loc, Specification => Make_Procedure_Specification (Loc, Defining_Unit_Name => Local_Proc), Declarations => Declarations (Decl), Handled_Statement_Sequence => Handled_Statement_Sequence (Decl)); -- Handlers in the block may contain nested subprograms that require -- unnesting. Check_Unnesting_In_Handlers (Local_Body); Rewrite (Decl, Local_Body); Analyze (Decl); Set_Has_Nested_Subprogram (Local_Proc); Local_Call := Make_Procedure_Call_Statement (Loc, Name => New_Occurrence_Of (Local_Proc, Loc)); Insert_After (Decl, Local_Call); Analyze (Local_Call); -- The new subprogram has the same scope as the original block Set_Scope (Local_Proc, Scope (Local_Scop)); -- And the entity list of the new procedure is that of the block Set_First_Entity (Local_Proc, Ent); -- Reset the scopes of all the entities to the new procedure while Present (Ent) loop Set_Scope (Ent, Local_Proc); Next_Entity (Ent); end loop; end Unnest_Block; ------------------------- -- Unnest_If_Statement -- ------------------------- procedure Unnest_If_Statement (If_Stmt : Node_Id) is procedure Check_Stmts_For_Subp_Unnesting (Stmts : in out List_Id); -- A list of statements (that may be a list associated with a then, -- elsif, or else part of an if-statement) is traversed at the top -- level to determine whether it contains a subprogram body, and if so, -- the statements will be replaced with a new procedure body containing -- the statements followed by a call to the procedure. The individual -- statements may also be blocks, loops, or other if statements that -- themselves may require contain nested subprograms needing unnesting. procedure Check_Stmts_For_Subp_Unnesting (Stmts : in out List_Id) is Subp_Found : Boolean := False; begin if Is_Empty_List (Stmts) then return; end if; declare Stmt : Node_Id := First (Stmts); begin while Present (Stmt) loop if Nkind (Stmt) = N_Subprogram_Body then Subp_Found := True; exit; end if; Next (Stmt); end loop; end; -- The statements themselves may be blocks, loops, etc. that in turn -- contain nested subprograms requiring an unnesting transformation. -- We perform this traversal after looking for subprogram bodies, to -- avoid considering procedures created for one of those statements -- (such as a block rewritten as a procedure) as a nested subprogram -- of the statement list (which could result in an unneeded wrapper -- procedure). Check_Unnesting_In_Decls_Or_Stmts (Stmts); -- If there was a top-level subprogram body in the statement list, -- then perform an unnesting transformation on the list by replacing -- the statements with a wrapper procedure body containing the -- original statements followed by a call to that procedure. if Subp_Found then Unnest_Statement_List (Stmts); end if; end Check_Stmts_For_Subp_Unnesting; -- Local variables Then_Stmts : List_Id := Then_Statements (If_Stmt); Else_Stmts : List_Id := Else_Statements (If_Stmt); -- Start of processing for Unnest_If_Statement begin Check_Stmts_For_Subp_Unnesting (Then_Stmts); Set_Then_Statements (If_Stmt, Then_Stmts); if not Is_Empty_List (Elsif_Parts (If_Stmt)) then declare Elsif_Part : Node_Id := First (Elsif_Parts (If_Stmt)); Elsif_Stmts : List_Id; begin while Present (Elsif_Part) loop Elsif_Stmts := Then_Statements (Elsif_Part); Check_Stmts_For_Subp_Unnesting (Elsif_Stmts); Set_Then_Statements (Elsif_Part, Elsif_Stmts); Next (Elsif_Part); end loop; end; end if; Check_Stmts_For_Subp_Unnesting (Else_Stmts); Set_Else_Statements (If_Stmt, Else_Stmts); end Unnest_If_Statement; ----------------- -- Unnest_Loop -- ----------------- procedure Unnest_Loop (Loop_Stmt : Node_Id) is Loc : constant Source_Ptr := Sloc (Loop_Stmt); Ent : Entity_Id; Local_Body : Node_Id; Local_Call : Node_Id; Local_Proc : Entity_Id; Local_Scop : Entity_Id; Loop_Copy : constant Node_Id := Relocate_Node (Loop_Stmt); begin Local_Scop := Entity (Identifier (Loop_Stmt)); Ent := First_Entity (Local_Scop); Local_Proc := Make_Defining_Identifier (Loc, Chars => New_Internal_Name ('P')); Local_Body := Make_Subprogram_Body (Loc, Specification => Make_Procedure_Specification (Loc, Defining_Unit_Name => Local_Proc), Declarations => Empty_List, Handled_Statement_Sequence => Make_Handled_Sequence_Of_Statements (Loc, Statements => New_List (Loop_Copy))); Set_First_Real_Statement (Handled_Statement_Sequence (Local_Body), Loop_Copy); Rewrite (Loop_Stmt, Local_Body); Analyze (Loop_Stmt); Set_Has_Nested_Subprogram (Local_Proc); Local_Call := Make_Procedure_Call_Statement (Loc, Name => New_Occurrence_Of (Local_Proc, Loc)); Insert_After (Loop_Stmt, Local_Call); Analyze (Local_Call); -- New procedure has the same scope as the original loop, and the scope -- of the loop is the new procedure. Set_Scope (Local_Proc, Scope (Local_Scop)); Set_Scope (Local_Scop, Local_Proc); -- The entity list of the new procedure is that of the loop Set_First_Entity (Local_Proc, Ent); -- Note that the entities associated with the loop don't need to have -- their Scope fields reset, since they're still associated with the -- same loop entity that now belongs to the copied loop statement. end Unnest_Loop; --------------------------- -- Unnest_Statement_List -- --------------------------- procedure Unnest_Statement_List (Stmts : in out List_Id) is Loc : constant Source_Ptr := Sloc (First (Stmts)); Local_Body : Node_Id; Local_Call : Node_Id; Local_Proc : Entity_Id; New_Stmts : constant List_Id := Empty_List; begin Local_Proc := Make_Defining_Identifier (Loc, Chars => New_Internal_Name ('P')); Local_Body := Make_Subprogram_Body (Loc, Specification => Make_Procedure_Specification (Loc, Defining_Unit_Name => Local_Proc), Declarations => Empty_List, Handled_Statement_Sequence => Make_Handled_Sequence_Of_Statements (Loc, Statements => Stmts)); Append_To (New_Stmts, Local_Body); Analyze (Local_Body); Set_Has_Nested_Subprogram (Local_Proc); Local_Call := Make_Procedure_Call_Statement (Loc, Name => New_Occurrence_Of (Local_Proc, Loc)); Append_To (New_Stmts, Local_Call); Analyze (Local_Call); -- Traverse the statements, and for any that are declarations or -- subprogram bodies that have entities, set the Scope of those -- entities to the new procedure's Entity_Id. declare Stmt : Node_Id := First (Stmts); begin while Present (Stmt) loop case Nkind (Stmt) is when N_Declaration | N_Renaming_Declaration => Set_Scope (Defining_Identifier (Stmt), Local_Proc); when N_Subprogram_Body => Set_Scope (Defining_Unit_Name (Specification (Stmt)), Local_Proc); when others => null; end case; Next (Stmt); end loop; end; Stmts := New_Stmts; end Unnest_Statement_List; -------------------------------- -- Wrap_Transient_Declaration -- -------------------------------- -- If a transient scope has been established during the processing of the -- Expression of an Object_Declaration, it is not possible to wrap the -- declaration into a transient block as usual case, otherwise the object -- would be itself declared in the wrong scope. Therefore, all entities (if -- any) defined in the transient block are moved to the proper enclosing -- scope. Furthermore, if they are controlled variables they are finalized -- right after the declaration. The finalization list of the transient -- scope is defined as a renaming of the enclosing one so during their -- initialization they will be attached to the proper finalization list. -- For instance, the following declaration : -- X : Typ := F (G (A), G (B)); -- (where G(A) and G(B) return controlled values, expanded as _v1 and _v2) -- is expanded into : -- X : Typ := [ complex Expression-Action ]; -- [Deep_]Finalize (_v1); -- [Deep_]Finalize (_v2); procedure Wrap_Transient_Declaration (N : Node_Id) is Curr_S : Entity_Id; Encl_S : Entity_Id; begin Curr_S := Current_Scope; Encl_S := Scope (Curr_S); -- Insert all actions including cleanup generated while analyzing or -- expanding the transient context back into the tree. Manage the -- secondary stack when the object declaration appears in a library -- level package [body]. Insert_Actions_In_Scope_Around (N => N, Clean => True, Manage_SS => Uses_Sec_Stack (Curr_S) and then Nkind (N) = N_Object_Declaration and then Ekind (Encl_S) in E_Package | E_Package_Body and then Is_Library_Level_Entity (Encl_S)); Pop_Scope; -- Relocate local entities declared within the transient scope to the -- enclosing scope. This action sets their Is_Public flag accordingly. Transfer_Entities (Curr_S, Encl_S); -- Mark the enclosing dynamic scope to ensure that the secondary stack -- is properly released upon exiting the said scope. if Uses_Sec_Stack (Curr_S) then Curr_S := Enclosing_Dynamic_Scope (Curr_S); -- Do not mark a function that returns on the secondary stack as the -- reclamation is done by the caller. if Ekind (Curr_S) = E_Function and then Requires_Transient_Scope (Etype (Curr_S)) then null; -- Otherwise mark the enclosing dynamic scope else Set_Uses_Sec_Stack (Curr_S); Check_Restriction (No_Secondary_Stack, N); end if; end if; end Wrap_Transient_Declaration; ------------------------------- -- Wrap_Transient_Expression -- ------------------------------- procedure Wrap_Transient_Expression (N : Node_Id) is Loc : constant Source_Ptr := Sloc (N); Expr : Node_Id := Relocate_Node (N); Temp : constant Entity_Id := Make_Temporary (Loc, 'E', N); Typ : constant Entity_Id := Etype (N); begin -- Generate: -- Temp : Typ; -- declare -- M : constant Mark_Id := SS_Mark; -- procedure Finalizer is ... (See Build_Finalizer) -- begin -- Temp := <Expr>; -- general case -- Temp := (if <Expr> then True else False); -- boolean case -- at end -- Finalizer; -- end; -- A special case is made for Boolean expressions so that the back end -- knows to generate a conditional branch instruction, if running with -- -fpreserve-control-flow. This ensures that a control-flow change -- signaling the decision outcome occurs before the cleanup actions. if Opt.Suppress_Control_Flow_Optimizations and then Is_Boolean_Type (Typ) then Expr := Make_If_Expression (Loc, Expressions => New_List ( Expr, New_Occurrence_Of (Standard_True, Loc), New_Occurrence_Of (Standard_False, Loc))); end if; Insert_Actions (N, New_List ( Make_Object_Declaration (Loc, Defining_Identifier => Temp, Object_Definition => New_Occurrence_Of (Typ, Loc)), Make_Transient_Block (Loc, Action => Make_Assignment_Statement (Loc, Name => New_Occurrence_Of (Temp, Loc), Expression => Expr), Par => Parent (N)))); Rewrite (N, New_Occurrence_Of (Temp, Loc)); Analyze_And_Resolve (N, Typ); end Wrap_Transient_Expression; ------------------------------ -- Wrap_Transient_Statement -- ------------------------------ procedure Wrap_Transient_Statement (N : Node_Id) is Loc : constant Source_Ptr := Sloc (N); New_Stmt : constant Node_Id := Relocate_Node (N); begin -- Generate: -- declare -- M : constant Mark_Id := SS_Mark; -- procedure Finalizer is ... (See Build_Finalizer) -- -- begin -- <New_Stmt>; -- -- at end -- Finalizer; -- end; Rewrite (N, Make_Transient_Block (Loc, Action => New_Stmt, Par => Parent (N))); -- With the scope stack back to normal, we can call analyze on the -- resulting block. At this point, the transient scope is being -- treated like a perfectly normal scope, so there is nothing -- special about it. -- Note: Wrap_Transient_Statement is called with the node already -- analyzed (i.e. Analyzed (N) is True). This is important, since -- otherwise we would get a recursive processing of the node when -- we do this Analyze call. Analyze (N); end Wrap_Transient_Statement; end Exp_Ch7;
36.02716
79
0.540139
1c0011494814a1374fd885223c877d0bbf0fe695
7,295
adb
Ada
project/adl/arch/ARM/STM32/driver_demos/demo_timer_pwm/src/demo_timer_pwm.adb
corentingay/adaboy
68f08afa246c8255a42897376d375edcb4e2efc2
[ "MIT" ]
null
null
null
project/adl/arch/ARM/STM32/driver_demos/demo_timer_pwm/src/demo_timer_pwm.adb
corentingay/adaboy
68f08afa246c8255a42897376d375edcb4e2efc2
[ "MIT" ]
null
null
null
project/adl/arch/ARM/STM32/driver_demos/demo_timer_pwm/src/demo_timer_pwm.adb
corentingay/adaboy
68f08afa246c8255a42897376d375edcb4e2efc2
[ "MIT" ]
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 the copyright holder nor the names of its -- -- contributors may be used to endorse or promote products derived -- -- from this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -- -- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -- -- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -- -- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -- -- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -- -- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- This demonstration illustrates the use of a timer to control -- the brightness of an LED. The point is to make the LED increase -- and decrease in brightness, iteratively, for as long as the -- application runs. In effect the LED light waxes and wanes. -- See http://visualgdb.com/tutorials/arm/stm32/fpu/ for the inspiration. -- -- The demo uses the STM32.Timer package directly to achieve the effect of -- pulse-width-modulation, but note that there is a STM32.PWM package that -- is dedicated to that purpose, hiding the details that are explicit here. with Last_Chance_Handler; pragma Unreferenced (Last_Chance_Handler); with STM32.Board; use STM32.Board; with STM32.Device; use STM32.Device; with HAL; use HAL; with STM32.GPIO; use STM32.GPIO; with STM32.Timers; use STM32.Timers; procedure Demo_Timer_PWM is -- low-level demo of the PWM capabilities Period : constant := 1000; Output_Channel : constant Timer_Channel := Channel_2; -- The LED driven by this example is determined by the channel selected. -- That is so because each channel of Timer_4 is connected to a specific -- LED in the alternate function configuration on this board. We will -- initialize all of the LEDs to be in the AF mode for Timer_4. The -- particular channel selected is completely arbitrary, as long as the -- selected GPIO port/pin for the LED matches the selected channel. -- -- Channel_1 is connected to the green LED. -- Channel_2 is connected to the orange LED. -- Channel_3 is connected to the red LED. -- Channel_4 is connected to the blue LED. -------------------- -- Configure_LEDs -- -------------------- procedure Configure_LEDs; procedure Configure_LEDs is begin Enable_Clock (GPIO_D); Configure_IO (All_LEDs, (Mode_AF, AF => GPIO_AF_TIM4_2, AF_Speed => Speed_50MHz, AF_Output_Type => Push_Pull, Resistors => Floating)); end Configure_LEDs; -- The SFP run-time library for these boards is intended for certified -- environments and so does not contain the full set of facilities defined -- by the Ada language. The elementary functions are not included, for -- example. In contrast, the Ravenscar "full" run-times do have these -- functions. function Sine (Input : Long_Float) return Long_Float; -- Therefore there are four choices: 1) use the "ravescar-full-stm32f4" -- runtime library, 2) pull the sources for the language-defined elementary -- function package into the board's run-time library and rebuild the -- run-time, 3) pull the sources for those packages into the source -- directory of your application and rebuild your application, or 4) roll -- your own approximation to the functions required by your application. -- In this demonstration we roll our own approximation to the sine function -- so that it doesn't matter which runtime library is used. function Sine (Input : Long_Float) return Long_Float is Pi : constant Long_Float := 3.14159_26535_89793_23846; X : constant Long_Float := Long_Float'Remainder (Input, Pi * 2.0); B : constant Long_Float := 4.0 / Pi; C : constant Long_Float := (-4.0) / (Pi * Pi); Y : constant Long_Float := B * X + C * X * abs (X); P : constant Long_Float := 0.225; begin return P * (Y * abs (Y) - Y) + Y; end Sine; -- We use the sine function to drive the power applied to the LED, thereby -- making the LED increase and decrease in brightness. We attach the timer -- to the LED and then control how much power is supplied by changing the -- value of the timer's output compare register. The sine function drives -- that value, thus the waxing/waning effect. begin Configure_LEDs; Enable_Clock (Timer_4); Reset (Timer_4); Configure (Timer_4, Prescaler => 1, Period => Period, Clock_Divisor => Div1, Counter_Mode => Up); Configure_Channel_Output (Timer_4, Channel => Output_Channel, Mode => PWM1, State => Enable, Pulse => 0, Polarity => High); Set_Autoreload_Preload (Timer_4, True); Enable_Channel (Timer_4, Output_Channel); Enable (Timer_4); declare use STM32; Arg : Long_Float := 0.0; Pulse : UInt16; Increment : constant Long_Float := 0.00003; -- The Increment value controls the rate at which the brightness -- increases and decreases. The value is more or less arbitrary, but -- note that the effect of optimization is observable. begin loop Pulse := UInt16 (Long_Float (Period / 2) * (1.0 + Sine (Arg))); Set_Compare_Value (Timer_4, Output_Channel, Pulse); Arg := Arg + Increment; end loop; end; end Demo_Timer_PWM;
43.945783
79
0.61316
0be904b3dd91e52c304c19387dd3acae3c201ad4
5,599
adb
Ada
src/gdnative-objects.adb
persan/gdnative_ada
8d05c142c820138ca351aefa91f9f02946f70bfc
[ "MIT" ]
10
2020-07-17T20:58:29.000Z
2022-03-08T16:17:29.000Z
src/gdnative-objects.adb
persan/gdnative_ada
8d05c142c820138ca351aefa91f9f02946f70bfc
[ "MIT" ]
2
2020-10-01T14:10:11.000Z
2021-01-22T19:03:59.000Z
src/gdnative-objects.adb
persan/gdnative_ada
8d05c142c820138ca351aefa91f9f02946f70bfc
[ "MIT" ]
1
2020-11-02T06:29:29.000Z
2020-11-02T06:29:29.000Z
with System.Address_To_Access_Conversions; with Interfaces.C.Strings; with Ada.Tags; with Ada.Exceptions; with GDNative.Thin; with GDNative.Context; with GDNative.Console; with GDNative.Exceptions; package body GDNative.Objects is package S renames System; package IC renames Interfaces.C; package ICS renames Interfaces.C.Strings; package AE renames Ada.Exceptions; ------------------------- -- Object Registration -- ------------------------- package body Object_Registration is package Cast is new System.Address_To_Access_Conversions (New_Object); package Wrappers is function Create ( p_instance : System.Address; p_method_data : System.Address) return System.Address with Convention => C; procedure Destroy ( p_instance : System.Address; p_method_data : System.Address; p_user_data : System.Address) with Convention => C; end; package body Wrappers is function Create ( p_instance : S.Address; p_method_data : S.Address) return S.Address is Addr : S.Address := Context.Core_Api.godot_alloc (IC.int (New_Object'size)); Access_Instance : Cast.Object_Pointer := Cast.To_Pointer (Addr); begin Access_Instance.all := Initialize; return Addr; exception when Occurrence : others => Exceptions.Put_Error (Occurrence); return S.Null_Address; end; procedure Destroy ( p_instance : S.Address; p_method_data : S.Address; p_user_data : S.Address) is begin Context.Core_Api.godot_free (p_user_data); exception when Occurrence : others => Exceptions.Put_Error (Occurrence); end; end; -------------------- -- Register_Class -- -------------------- procedure Register_Class is Create_Func : Thin.godot_instance_create_func := (Wrappers.Create'access, S.Null_Address, null); Destroy_Func : Thin.godot_instance_destroy_func := (Wrappers.Destroy'access, S.Null_Address, null); Name_Ptr : ICS.chars_ptr := ICS.New_String (Ada.Tags.External_Tag (New_Object'Tag)); Reference_Ptr : ICS.chars_ptr := ICS.New_String ("Reference"); begin pragma Assert (Context.Core_Initialized, "Please run Context.GDNative_Initialize"); pragma Assert (Context.Nativescript_Initialized, "Please run Context.Nativescript_Initialize"); Console.Put ("Registering Class: " & To_Wide (Ada.Tags.External_Tag (New_Object'Tag))); Context.Nativescript_Api.godot_nativescript_register_class ( Context.Nativescript_Ptr, Name_Ptr, Reference_Ptr, Create_Func, Destroy_Func); ICS.Free (Name_Ptr); ICS.Free (Reference_Ptr); exception when Occurrence : others => Exceptions.Put_Error (Occurrence); end; end; ----------------------- -- Node Registration -- ----------------------- package body Node_Registration is package Cast is new System.Address_To_Access_Conversions (New_Node); package Wrappers is function Process ( p_instance : System.Address; p_method_data : System.Address; p_user_data : System.Address; p_num_args : Interfaces.C.int; p_args : Thin.Godot_Instance_Method_Args_Ptrs.Pointer) -- godot_variant ** return Thin.godot_variant with Convention => C; end; package body Wrappers is function Process ( p_instance : S.Address; p_method_data : S.Address; p_user_data : S.Address; p_num_args : IC.int; p_args : Thin.Godot_Instance_Method_Args_Ptrs.Pointer) -- godot_variant ** return Thin.godot_variant is Access_Instance : Cast.Object_Pointer := Cast.To_Pointer (p_user_data); Time_Elapsed : IC.double := Context.Core_Api.godot_variant_as_real (p_args.all); begin Process (Access_Instance.all, Long_Float (Time_Elapsed)); return Context.Nil_Godot_Variant; exception when Occurrence : others => Exceptions.Put_Error (Occurrence); return Context.Nil_Godot_Variant; end; end; package Obj_Reg is new Object_Registration (New_Node); procedure Register_Class renames Obj_Reg.Register_Class; ---------------------- -- Register Process -- ---------------------- procedure Register_Process is Process_Func : Thin.godot_instance_method := (Wrappers.Process'access, S.Null_Address, null); Process_Attr : Thin.godot_method_attributes := (rpc_type => Thin.GODOT_METHOD_RPC_MODE_DISABLED); Name_Ptr : ICS.chars_ptr := ICS.New_String (Ada.Tags.External_Tag (New_Node'tag)); Process_Ptr : ICS.chars_ptr := ICS.New_String ("_process"); begin pragma Assert (Context.Core_Initialized, "Please run Context.GDNative_Initialize"); pragma Assert (Context.Nativescript_Initialized, "Please run Context.Nativescript_Initialize"); Console.Put ("Registering Method: " & To_Wide (Ada.Tags.External_Tag (New_Node'Tag)) & "._process"); Context.Nativescript_Api.godot_nativescript_register_method ( Context.Nativescript_Ptr, Name_Ptr, Process_Ptr, Process_Attr, Process_Func); ICS.Free (Name_Ptr); ICS.Free (Process_Ptr); exception when Occurrence : others => Exceptions.Put_Error (Occurrence); end; end; end;
32.552326
106
0.638864
1c7ab1f0345bad63da0d9605b4381c141b4dfdc9
12,331
ads
Ada
src/sys/serialize/xml/util-serialize-io-xml.ads
jquorning/ada-util
84314f66853ae5a3afe41b62a02eaeb65931cad7
[ "Apache-2.0" ]
60
2015-01-18T23:05:34.000Z
2022-03-20T18:56:30.000Z
src/sys/serialize/xml/util-serialize-io-xml.ads
jquorning/ada-util
84314f66853ae5a3afe41b62a02eaeb65931cad7
[ "Apache-2.0" ]
20
2016-09-15T16:41:30.000Z
2022-03-29T22:02:32.000Z
src/sys/serialize/xml/util-serialize-io-xml.ads
jquorning/ada-util
84314f66853ae5a3afe41b62a02eaeb65931cad7
[ "Apache-2.0" ]
10
2015-02-13T04:00:45.000Z
2022-03-20T18:57:54.000Z
----------------------------------------------------------------------- -- util-serialize-io-xml -- XML Serialization Driver -- Copyright (C) 2011, 2012, 2016, 2017, 2020, 2021 Stephane Carrez -- Written by Stephane Carrez ([email protected]) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in writing, software -- distributed under the License is distributed on an "AS IS" BASIS, -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. ----------------------------------------------------------------------- with Sax.Exceptions; with Sax.Locators; with Sax.Readers; with Sax.Attributes; with Unicode.CES; with Input_Sources; with Ada.Streams; with Ada.Strings.Unbounded; with Util.Streams.Buffered; with Util.Streams.Texts; package Util.Serialize.IO.XML is Parse_Error : exception; type Parser is new Serialize.IO.Parser with private; -- Parse the stream using the JSON parser. procedure Parse (Handler : in out Parser; Stream : in out Util.Streams.Buffered.Input_Buffer_Stream'Class; Sink : in out Reader'Class); -- Set the XHTML reader to ignore or not the white spaces. -- When set to True, the ignorable white spaces will not be kept. procedure Set_Ignore_White_Spaces (Reader : in out Parser; Value : in Boolean); -- Set the XHTML reader to ignore empty lines. procedure Set_Ignore_Empty_Lines (Reader : in out Parser; Value : in Boolean); -- Get the current location (file and line) to report an error message. function Get_Location (Handler : in Parser) return String; type Xhtml_Reader is new Sax.Readers.Reader with private; -- ------------------------------ -- XML Output Stream -- ------------------------------ -- The <b>Output_Stream</b> provides methods for creating an XML output stream. -- The stream object takes care of the XML escape rules. type Output_Stream is limited new Util.Serialize.IO.Output_Stream with private; -- Set the target output stream. procedure Initialize (Stream : in out Output_Stream; Output : in Util.Streams.Texts.Print_Stream_Access); -- Flush the buffer (if any) to the sink. overriding procedure Flush (Stream : in out Output_Stream); -- Close the sink. overriding procedure Close (Stream : in out Output_Stream); -- Write the buffer array to the output stream. overriding procedure Write (Stream : in out Output_Stream; Buffer : in Ada.Streams.Stream_Element_Array); -- Write a character on the response stream and escape that character as necessary. procedure Write_Escape (Stream : in out Output_Stream'Class; Char : in Wide_Wide_Character); -- Write the value as a XML string. Special characters are escaped using the XML -- escape rules. procedure Write_String (Stream : in out Output_Stream; Value : in String); -- Write the value as a XML string. Special characters are escaped using the XML -- escape rules. procedure Write_Wide_String (Stream : in out Output_Stream; Value : in Wide_Wide_String); -- Write the value as a XML string. Special characters are escaped using the XML -- escape rules. procedure Write_String (Stream : in out Output_Stream; Value : in Util.Beans.Objects.Object); -- Start a new XML object. procedure Start_Entity (Stream : in out Output_Stream; Name : in String); -- Terminates the current XML object. procedure End_Entity (Stream : in out Output_Stream; Name : in String); -- Write the attribute name/value pair. overriding procedure Write_Attribute (Stream : in out Output_Stream; Name : in String; Value : in String); overriding procedure Write_Wide_Attribute (Stream : in out Output_Stream; Name : in String; Value : in Wide_Wide_String); overriding procedure Write_Attribute (Stream : in out Output_Stream; Name : in String; Value : in Integer); overriding procedure Write_Attribute (Stream : in out Output_Stream; Name : in String; Value : in Boolean); -- Write a XML name/value attribute. procedure Write_Attribute (Stream : in out Output_Stream; Name : in String; Value : in Util.Beans.Objects.Object); -- Write the attribute with a null value. overriding procedure Write_Null_Attribute (Stream : in out Output_Stream; Name : in String); -- Write the entity value. overriding procedure Write_Entity (Stream : in out Output_Stream; Name : in String; Value : in String); overriding procedure Write_Wide_Entity (Stream : in out Output_Stream; Name : in String; Value : in Wide_Wide_String); overriding procedure Write_Entity (Stream : in out Output_Stream; Name : in String; Value : in Boolean); overriding procedure Write_Entity (Stream : in out Output_Stream; Name : in String; Value : in Integer); overriding procedure Write_Entity (Stream : in out Output_Stream; Name : in String; Value : in Ada.Calendar.Time); overriding procedure Write_Long_Entity (Stream : in out Output_Stream; Name : in String; Value : in Long_Long_Integer); overriding procedure Write_Enum_Entity (Stream : in out Output_Stream; Name : in String; Value : in String); -- Write a XML name/value entity (see Write_Attribute). overriding procedure Write_Entity (Stream : in out Output_Stream; Name : in String; Value : in Util.Beans.Objects.Object); -- Write an entity with a null value. overriding procedure Write_Null_Entity (Stream : in out Output_Stream; Name : in String); -- Starts a XML array. overriding procedure Start_Array (Stream : in out Output_Stream; Name : in String); -- Terminates a XML array. overriding procedure End_Array (Stream : in out Output_Stream; Name : in String); -- Set the indentation level when writing XML entities. procedure Set_Indentation (Stream : in out Output_Stream; Count : in Natural); -- Return the location where the exception was raised. function Get_Location (Except : Sax.Exceptions.Sax_Parse_Exception'Class) return String; private overriding procedure Warning (Handler : in out Xhtml_Reader; Except : in Sax.Exceptions.Sax_Parse_Exception'Class); overriding procedure Error (Handler : in out Xhtml_Reader; Except : in Sax.Exceptions.Sax_Parse_Exception'Class); overriding procedure Fatal_Error (Handler : in out Xhtml_Reader; Except : in Sax.Exceptions.Sax_Parse_Exception'Class); overriding procedure Set_Document_Locator (Handler : in out Xhtml_Reader; Loc : in out Sax.Locators.Locator); overriding procedure Start_Document (Handler : in out Xhtml_Reader); overriding procedure End_Document (Handler : in out Xhtml_Reader); overriding procedure Start_Prefix_Mapping (Handler : in out Xhtml_Reader; Prefix : in Unicode.CES.Byte_Sequence; URI : in Unicode.CES.Byte_Sequence); overriding procedure End_Prefix_Mapping (Handler : in out Xhtml_Reader; Prefix : in Unicode.CES.Byte_Sequence); overriding procedure Start_Element (Handler : in out Xhtml_Reader; Namespace_URI : in Unicode.CES.Byte_Sequence := ""; Local_Name : in Unicode.CES.Byte_Sequence := ""; Qname : in Unicode.CES.Byte_Sequence := ""; Atts : in Sax.Attributes.Attributes'Class); overriding procedure End_Element (Handler : in out Xhtml_Reader; Namespace_URI : in Unicode.CES.Byte_Sequence := ""; Local_Name : in Unicode.CES.Byte_Sequence := ""; Qname : in Unicode.CES.Byte_Sequence := ""); overriding procedure Characters (Handler : in out Xhtml_Reader; Ch : in Unicode.CES.Byte_Sequence); overriding procedure Ignorable_Whitespace (Handler : in out Xhtml_Reader; Ch : in Unicode.CES.Byte_Sequence); overriding procedure Processing_Instruction (Handler : in out Xhtml_Reader; Target : in Unicode.CES.Byte_Sequence; Data : in Unicode.CES.Byte_Sequence); overriding procedure Skipped_Entity (Handler : in out Xhtml_Reader; Name : in Unicode.CES.Byte_Sequence); overriding procedure Start_Cdata (Handler : in out Xhtml_Reader); overriding procedure End_Cdata (Handler : in out Xhtml_Reader); overriding function Resolve_Entity (Handler : Xhtml_Reader; Public_Id : Unicode.CES.Byte_Sequence; System_Id : Unicode.CES.Byte_Sequence) return Input_Sources.Input_Source_Access; overriding procedure Start_DTD (Handler : in out Xhtml_Reader; Name : Unicode.CES.Byte_Sequence; Public_Id : Unicode.CES.Byte_Sequence := ""; System_Id : Unicode.CES.Byte_Sequence := ""); procedure Collect_Text (Handler : in out Xhtml_Reader; Content : Unicode.CES.Byte_Sequence); type Xhtml_Reader is new Sax.Readers.Reader with record Stack_Pos : Natural := 0; Handler : access Parser'Class; Text : Ada.Strings.Unbounded.Unbounded_String; -- Whether white spaces can be ignored. Ignore_White_Spaces : Boolean := True; -- Whether empty lines should be ignored (when white spaces are kept). Ignore_Empty_Lines : Boolean := True; Sink : access Reader'Class; end record; type Parser is new Util.Serialize.IO.Parser with record -- The SAX locator to find the current file and line number. Locator : Sax.Locators.Locator; Has_Pending_Char : Boolean := False; Pending_Char : Character; -- Whether white spaces can be ignored. Ignore_White_Spaces : Boolean := True; -- Whether empty lines should be ignored (when white spaces are kept). Ignore_Empty_Lines : Boolean := True; end record; type Output_Stream is limited new Util.Serialize.IO.Output_Stream with record Close_Start : Boolean := False; Is_Closed : Boolean := False; Level : Natural := 0; Indent : Natural := 0; Stream : Util.Streams.Texts.Print_Stream_Access; end record; end Util.Serialize.IO.XML;
38.058642
87
0.586489
d07703e45406e505ab63adae7088df357717b75f
42,155
ads
Ada
src/gen/zmq-low_level.ads
persan/zeromq-Ada
651ca44cce831c2d717338eab65a60fbfca7ec44
[ "MIT" ]
33
2015-01-16T13:42:55.000Z
2021-11-30T21:28:50.000Z
src/gen/zmq-low_level.ads
persan/zeromq-Ada
651ca44cce831c2d717338eab65a60fbfca7ec44
[ "MIT" ]
6
2016-03-23T01:26:36.000Z
2021-05-13T04:24:53.000Z
src/gen/zmq-low_level.ads
persan/zeromq-Ada
651ca44cce831c2d717338eab65a60fbfca7ec44
[ "MIT" ]
5
2016-03-09T20:20:09.000Z
2020-06-17T06:59:39.000Z
------------------------------------------------------------------------------- -- -- -- 0MQ Ada-binding -- -- -- -- Z M Q . L O W _ L E V E L -- -- -- -- S p e c -- -- -- -- Copyright (C) 2020-2030, [email protected] -- -- -- -- Permission is hereby granted, free of charge, to any person obtaining a -- -- copy of this software and associated documentation files -- -- (the "Software"), to deal in the Software without restriction, including -- -- without limitation the rights to use, copy, modify, merge, publish, -- -- distribute, sublicense, and / or sell copies of the Software, and to -- -- permit persons to whom the Software is furnished to do so, subject to -- -- the following conditions : -- -- -- -- The above copyright notice and this permission notice shall be included -- -- in all copies or substantial portions of the Software. -- -- -- -- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -- -- OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -- -- MERCHANTABILITY, -- -- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL -- -- THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR -- -- OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, -- -- ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -- -- OTHER DEALINGS IN THE SOFTWARE. -- ------------------------------------------------------------------------------- -- -- The contents of this file is derived from zmq.h using the -- -fdump-ada-spec switch for gcc. pragma Ada_2012; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; with Interfaces.C.Strings; with System; package ZMQ.Low_Level is pragma Preelaborate; pragma Warnings (Off); package Defs is -- This package is here to give a namespace to constants, since identifiers in Ada are caseinsensetive. ZMQ_VERSION_MAJOR : constant := 4; -- zmq.h:42 ZMQ_VERSION_MINOR : constant := 3; -- zmq.h:43 ZMQ_VERSION_PATCH : constant := 2; -- zmq.h:44 -- arg-macro: function ZMQ_MAKE_VERSION (major, minor, patch) -- return (major) *10000 + (minor) *100 + (patch); -- unsupported macro: ZMQ_VERSION ZMQ_MAKE_VERSION (ZMQ_VERSION_MAJOR, ZMQ_VERSION_MINOR, ZMQ_VERSION_PATCH) ZMQ_DEFINED_STDINT : constant := 1; -- zmq.h:97 ZMQ_HAUSNUMERO : constant := 156_384_712; -- zmq.h:134 EFSM : constant := ZMQ_HAUSNUMERO + 51; ENOCOMPATPROTO : constant := ZMQ_HAUSNUMERO + 52; ETERM : constant := ZMQ_HAUSNUMERO + 53; EMTHREAD : constant := ZMQ_HAUSNUMERO + 54; ZMQ_IO_THREADS : constant := 1; -- zmq.h:215 ZMQ_MAX_SOCKETS : constant := 2; -- zmq.h:216 ZMQ_SOCKET_LIMIT : constant := 3; -- zmq.h:217 ZMQ_THREAD_PRIORITY : constant := 3; -- zmq.h:218 ZMQ_THREAD_SCHED_POLICY : constant := 4; -- zmq.h:219 ZMQ_MAX_MSGSZ : constant := 5; -- zmq.h:220 ZMQ_MSG_T_SIZE : constant := 6; -- zmq.h:221 ZMQ_THREAD_AFFINITY_CPU_ADD : constant := 7; -- zmq.h:222 ZMQ_THREAD_AFFINITY_CPU_REMOVE : constant := 8; -- zmq.h:223 ZMQ_THREAD_NAME_PREFIX : constant := 9; -- zmq.h:224 ZMQ_IO_THREADS_DFLT : constant := 1; -- zmq.h:227 ZMQ_MAX_SOCKETS_DFLT : constant := 1_023; -- zmq.h:228 ZMQ_THREAD_PRIORITY_DFLT : constant := -1; -- zmq.h:229 ZMQ_THREAD_SCHED_POLICY_DFLT : constant := -1; -- zmq.h:230 ZMQ_PAIR : constant := 0; -- zmq.h:291 ZMQ_PUB : constant := 1; -- zmq.h:292 ZMQ_SUB : constant := 2; -- zmq.h:293 ZMQ_REQ : constant := 3; -- zmq.h:294 ZMQ_REP : constant := 4; -- zmq.h:295 ZMQ_DEALER : constant := 5; -- zmq.h:296 ZMQ_ROUTER : constant := 6; -- zmq.h:297 ZMQ_PULL : constant := 7; -- zmq.h:298 ZMQ_PUSH : constant := 8; -- zmq.h:299 ZMQ_XPUB : constant := 9; -- zmq.h:300 ZMQ_XSUB : constant := 10; -- zmq.h:301 ZMQ_STREAM : constant := 11; -- zmq.h:302 ZMQ_XREQ : constant := ZMQ_DEALER; ZMQ_XREP : constant := ZMQ_ROUTER; ZMQ_AFFINITY : constant := 4; -- zmq.h:309 ZMQ_ROUTING_ID : constant := 5; -- zmq.h:310 ZMQ_SUBSCRIBE : constant := 6; -- zmq.h:311 ZMQ_UNSUBSCRIBE : constant := 7; -- zmq.h:312 ZMQ_RATE : constant := 8; -- zmq.h:313 ZMQ_RECOVERY_IVL : constant := 9; -- zmq.h:314 ZMQ_SNDBUF : constant := 11; -- zmq.h:315 ZMQ_RCVBUF : constant := 12; -- zmq.h:316 ZMQ_RCVMORE : constant := 13; -- zmq.h:317 ZMQ_FD : constant := 14; -- zmq.h:318 ZMQ_EVENTS : constant := 15; -- zmq.h:319 ZMQ_TYPE : constant := 16; -- zmq.h:320 ZMQ_LINGER : constant := 17; -- zmq.h:321 ZMQ_RECONNECT_IVL : constant := 18; -- zmq.h:322 ZMQ_BACKLOG : constant := 19; -- zmq.h:323 ZMQ_RECONNECT_IVL_MAX : constant := 21; -- zmq.h:324 ZMQ_MAXMSGSIZE : constant := 22; -- zmq.h:325 ZMQ_SNDHWM : constant := 23; -- zmq.h:326 ZMQ_RCVHWM : constant := 24; -- zmq.h:327 ZMQ_MULTICAST_HOPS : constant := 25; -- zmq.h:328 ZMQ_RCVTIMEO : constant := 27; -- zmq.h:329 ZMQ_SNDTIMEO : constant := 28; -- zmq.h:330 ZMQ_LAST_ENDPOINT : constant := 32; -- zmq.h:331 ZMQ_ROUTER_MANDATORY : constant := 33; -- zmq.h:332 ZMQ_TCP_KEEPALIVE : constant := 34; -- zmq.h:333 ZMQ_TCP_KEEPALIVE_CNT : constant := 35; -- zmq.h:334 ZMQ_TCP_KEEPALIVE_IDLE : constant := 36; -- zmq.h:335 ZMQ_TCP_KEEPALIVE_INTVL : constant := 37; -- zmq.h:336 ZMQ_IMMEDIATE : constant := 39; -- zmq.h:337 ZMQ_XPUB_VERBOSE : constant := 40; -- zmq.h:338 ZMQ_ROUTER_RAW : constant := 41; -- zmq.h:339 ZMQ_IPV6 : constant := 42; -- zmq.h:340 ZMQ_MECHANISM : constant := 43; -- zmq.h:341 ZMQ_PLAIN_SERVER : constant := 44; -- zmq.h:342 ZMQ_PLAIN_USERNAME : constant := 45; -- zmq.h:343 ZMQ_PLAIN_PASSWORD : constant := 46; -- zmq.h:344 ZMQ_CURVE_SERVER : constant := 47; -- zmq.h:345 ZMQ_CURVE_PUBLICKEY : constant := 48; -- zmq.h:346 ZMQ_CURVE_SECRETKEY : constant := 49; -- zmq.h:347 ZMQ_CURVE_SERVERKEY : constant := 50; -- zmq.h:348 ZMQ_PROBE_ROUTER : constant := 51; -- zmq.h:349 ZMQ_REQ_CORRELATE : constant := 52; -- zmq.h:350 ZMQ_REQ_RELAXED : constant := 53; -- zmq.h:351 ZMQ_CONFLATE : constant := 54; -- zmq.h:352 ZMQ_ZAP_DOMAIN : constant := 55; -- zmq.h:353 ZMQ_ROUTER_HANDOVER : constant := 56; -- zmq.h:354 ZMQ_TOS : constant := 57; -- zmq.h:355 ZMQ_CONNECT_ROUTING_ID : constant := 61; -- zmq.h:356 ZMQ_GSSAPI_SERVER : constant := 62; -- zmq.h:357 ZMQ_GSSAPI_PRINCIPAL : constant := 63; -- zmq.h:358 ZMQ_GSSAPI_SERVICE_PRINCIPAL : constant := 64; -- zmq.h:359 ZMQ_GSSAPI_PLAINTEXT : constant := 65; -- zmq.h:360 ZMQ_HANDSHAKE_IVL : constant := 66; -- zmq.h:361 ZMQ_SOCKS_PROXY : constant := 68; -- zmq.h:362 ZMQ_XPUB_NODROP : constant := 69; -- zmq.h:363 ZMQ_BLOCKY : constant := 70; -- zmq.h:364 ZMQ_XPUB_MANUAL : constant := 71; -- zmq.h:365 ZMQ_XPUB_WELCOME_MSG : constant := 72; -- zmq.h:366 ZMQ_STREAM_NOTIFY : constant := 73; -- zmq.h:367 ZMQ_INVERT_MATCHING : constant := 74; -- zmq.h:368 ZMQ_HEARTBEAT_IVL : constant := 75; -- zmq.h:369 ZMQ_HEARTBEAT_TTL : constant := 76; -- zmq.h:370 ZMQ_HEARTBEAT_TIMEOUT : constant := 77; -- zmq.h:371 ZMQ_XPUB_VERBOSER : constant := 78; -- zmq.h:372 ZMQ_CONNECT_TIMEOUT : constant := 79; -- zmq.h:373 ZMQ_TCP_MAXRT : constant := 80; -- zmq.h:374 ZMQ_THREAD_SAFE : constant := 81; -- zmq.h:375 ZMQ_MULTICAST_MAXTPDU : constant := 84; -- zmq.h:376 ZMQ_VMCI_BUFFER_SIZE : constant := 85; -- zmq.h:377 ZMQ_VMCI_BUFFER_MIN_SIZE : constant := 86; -- zmq.h:378 ZMQ_VMCI_BUFFER_MAX_SIZE : constant := 87; -- zmq.h:379 ZMQ_VMCI_CONNECT_TIMEOUT : constant := 88; -- zmq.h:380 ZMQ_USE_FD : constant := 89; -- zmq.h:381 ZMQ_GSSAPI_PRINCIPAL_NAMETYPE : constant := 90; -- zmq.h:382 ZMQ_GSSAPI_SERVICE_PRINCIPAL_NAMETYPE : constant := 91; -- zmq.h:383 ZMQ_BINDTODEVICE : constant := 92; -- zmq.h:384 ZMQ_MORE : constant := 1; -- zmq.h:387 ZMQ_SHARED : constant := 3; -- zmq.h:388 ZMQ_DONTWAIT : constant := 1; -- zmq.h:391 ZMQ_SNDMORE : constant := 2; -- zmq.h:392 ZMQ_NULL : constant := 0; -- zmq.h:395 ZMQ_PLAIN : constant := 1; -- zmq.h:396 ZMQ_CURVE : constant := 2; -- zmq.h:397 ZMQ_GSSAPI : constant := 3; -- zmq.h:398 ZMQ_GROUP_MAX_LENGTH : constant := 15; -- zmq.h:401 ZMQ_IDENTITY : constant := ZMQ_ROUTING_ID; ZMQ_CONNECT_RID : constant := ZMQ_CONNECT_ROUTING_ID; ZMQ_TCP_ACCEPT_FILTER : constant := 38; -- zmq.h:406 ZMQ_IPC_FILTER_PID : constant := 58; -- zmq.h:407 ZMQ_IPC_FILTER_UID : constant := 59; -- zmq.h:408 ZMQ_IPC_FILTER_GID : constant := 60; -- zmq.h:409 ZMQ_IPV4ONLY : constant := 31; -- zmq.h:410 ZMQ_DELAY_ATTACH_ON_CONNECT : constant := ZMQ_IMMEDIATE; ZMQ_NOBLOCK : constant := ZMQ_DONTWAIT; ZMQ_FAIL_UNROUTABLE : constant := ZMQ_ROUTER_MANDATORY; ZMQ_ROUTER_BEHAVIOR : constant := ZMQ_ROUTER_MANDATORY; ZMQ_SRCFD : constant := 2; -- zmq.h:417 ZMQ_GSSAPI_NT_HOSTBASED : constant := 0; -- zmq.h:424 ZMQ_GSSAPI_NT_USER_NAME : constant := 1; -- zmq.h:425 ZMQ_GSSAPI_NT_KRB5_PRINCIPAL : constant := 2; -- zmq.h:426 ZMQ_EVENT_CONNECTED : constant := 16#0001#; -- zmq.h:434 ZMQ_EVENT_CONNECT_DELAYED : constant := 16#0002#; -- zmq.h:435 ZMQ_EVENT_CONNECT_RETRIED : constant := 16#0004#; -- zmq.h:436 ZMQ_EVENT_LISTENING : constant := 16#0008#; -- zmq.h:437 ZMQ_EVENT_BIND_FAILED : constant := 16#0010#; -- zmq.h:438 ZMQ_EVENT_ACCEPTED : constant := 16#0020#; -- zmq.h:439 ZMQ_EVENT_ACCEPT_FAILED : constant := 16#0040#; -- zmq.h:440 ZMQ_EVENT_CLOSED : constant := 16#0080#; -- zmq.h:441 ZMQ_EVENT_CLOSE_FAILED : constant := 16#0100#; -- zmq.h:442 ZMQ_EVENT_DISCONNECTED : constant := 16#0200#; -- zmq.h:443 ZMQ_EVENT_MONITOR_STOPPED : constant := 16#0400#; -- zmq.h:444 ZMQ_EVENT_ALL : constant := 16#FFFF#; -- zmq.h:445 ZMQ_EVENT_HANDSHAKE_FAILED_NO_DETAIL : constant := 16#0800#; -- zmq.h:447 ZMQ_EVENT_HANDSHAKE_SUCCEEDED : constant := 16#1000#; -- zmq.h:450 ZMQ_EVENT_HANDSHAKE_FAILED_PROTOCOL : constant := 16#2000#; -- zmq.h:453 ZMQ_EVENT_HANDSHAKE_FAILED_AUTH : constant := 16#4000#; -- zmq.h:456 ZMQ_PROTOCOL_ERROR_ZMTP_UNSPECIFIED : constant := 16#1000_0000#; -- zmq.h:457 ZMQ_PROTOCOL_ERROR_ZMTP_UNEXPECTED_COMMAND : constant := 16#1000_0001#; -- zmq.h:458 ZMQ_PROTOCOL_ERROR_ZMTP_INVALID_SEQUENCE : constant := 16#1000_0002#; -- zmq.h:459 ZMQ_PROTOCOL_ERROR_ZMTP_KEY_EXCHANGE : constant := 16#1000_0003#; -- zmq.h:460 ZMQ_PROTOCOL_ERROR_ZMTP_MALFORMED_COMMAND_UNSPECIFIED : constant := 16#1000_0011#; -- zmq.h:461 ZMQ_PROTOCOL_ERROR_ZMTP_MALFORMED_COMMAND_MESSAGE : constant := 16#1000_0012#; -- zmq.h:462 ZMQ_PROTOCOL_ERROR_ZMTP_MALFORMED_COMMAND_HELLO : constant := 16#1000_0013#; -- zmq.h:463 ZMQ_PROTOCOL_ERROR_ZMTP_MALFORMED_COMMAND_INITIATE : constant := 16#1000_0014#; -- zmq.h:464 ZMQ_PROTOCOL_ERROR_ZMTP_MALFORMED_COMMAND_ERROR : constant := 16#1000_0015#; -- zmq.h:465 ZMQ_PROTOCOL_ERROR_ZMTP_MALFORMED_COMMAND_READY : constant := 16#1000_0016#; -- zmq.h:466 ZMQ_PROTOCOL_ERROR_ZMTP_MALFORMED_COMMAND_WELCOME : constant := 16#1000_0017#; -- zmq.h:467 ZMQ_PROTOCOL_ERROR_ZMTP_INVALID_METADATA : constant := 16#1000_0018#; -- zmq.h:468 ZMQ_PROTOCOL_ERROR_ZMTP_CRYPTOGRAPHIC : constant := 16#1100_0001#; -- zmq.h:470 ZMQ_PROTOCOL_ERROR_ZMTP_MECHANISM_MISMATCH : constant := 16#1100_0002#; -- zmq.h:471 ZMQ_PROTOCOL_ERROR_ZAP_UNSPECIFIED : constant := 16#2000_0000#; -- zmq.h:472 ZMQ_PROTOCOL_ERROR_ZAP_MALFORMED_REPLY : constant := 16#2000_0001#; -- zmq.h:473 ZMQ_PROTOCOL_ERROR_ZAP_BAD_REQUEST_ID : constant := 16#2000_0002#; -- zmq.h:474 ZMQ_PROTOCOL_ERROR_ZAP_BAD_VERSION : constant := 16#2000_0003#; -- zmq.h:475 ZMQ_PROTOCOL_ERROR_ZAP_INVALID_STATUS_CODE : constant := 16#2000_0004#; -- zmq.h:476 ZMQ_PROTOCOL_ERROR_ZAP_INVALID_METADATA : constant := 16#2000_0005#; -- zmq.h:477 ZMQ_POLLIN : constant := 1; -- zmq.h:500 ZMQ_POLLOUT : constant := 2; -- zmq.h:501 ZMQ_POLLERR : constant := 4; -- zmq.h:502 ZMQ_POLLPRI : constant := 8; -- zmq.h:503 ZMQ_POLLITEMS_DFLT : constant := 16; -- zmq.h:517 ZMQ_HAS_CAPABILITIES : constant := 1; -- zmq.h:535 ZMQ_STREAMER : constant := 1; -- zmq.h:539 ZMQ_FORWARDER : constant := 2; -- zmq.h:540 ZMQ_QUEUE : constant := 3; -- zmq.h:541 -- Copyright (c) 2007-2016 Contributors as noted in the AUTHORS file -- This file is part of libzmq, the ZeroMQ core engine in C++. -- libzmq is free software; you can redistribute it and/or modify it under -- the terms of the GNU Lesser General Public License (LGPL) as published -- by the Free Software Foundation; either version 3 of the License, or -- (at your option) any later version. -- As a special exception, the Contributors give you permission to link -- this library with independent modules to produce an executable, -- regardless of the license terms of these independent modules, and to -- copy and distribute the resulting executable under terms of your choice, -- provided that you also meet, for each linked independent module, the -- terms and conditions of the license of that module. An independent -- module is a module which is not derived from or based on this library. -- If you modify this library, you must extend this exception to your -- version of the library. -- libzmq is distributed in the hope that it will be useful, but WITHOUT -- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -- FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public -- License for more details. -- You should have received a copy of the GNU Lesser General Public License -- along with this program. If not, see <http://www.gnu.org/licenses/>. -- ************************************************************************* -- NOTE to contributors. This file comprises the principal public contract -- for ZeroMQ API users. Any change to this file supplied in a stable -- release SHOULD not break existing applications. -- In practice this means that the value of constants must not change, and -- that old values may not be reused for new constants. -- ************************************************************************* -- -- Version macros for compile-time API version detection Set target version to Windows Server 2008, Windows Vista or -- higher. Windows XP (0x0501) is supported but without client & server socket types. Require Windows XP or higher -- with MinGW for getaddrinfo(). Handle DSO symbol visibility Define integer types needed for event interface -- 32-bit AIX's pollfd struct members are called reqevents and rtnevents so it defines compatibility macros for -- them. Need to include that header first to stop build failures since zmq_pollset_t defines them as events -- and revents. **************************************************************************** 0MQ errors. -- **************************************************************************** A number random enough not to collide -- with different errno ranges on different OSes. The assumption is that error_t is at least 32-bit type. On Windows -- platform some of the standard POSIX errnos are not defined. Native 0MQ error codes. This function retrieves the -- errno as it is known to 0MQ library. The goal of this function is to make the code 100% portable, including where -- 0MQ compiled with certain CRT library (on Windows) is linked to an application that uses different CRT library. end Defs; function zmq_errno return int -- zmq.h:202 with Import => True, Convention => C, External_Name => "zmq_errno"; -- Resolves system errors and 0MQ errors to human-readable string. function zmq_strerror (errnum_u : int) return Interfaces.C.Strings .chars_ptr -- zmq.h:205 with Import => True, Convention => C, External_Name => "zmq_strerror"; -- Run-time API version detection procedure zmq_version (major_u : access int; minor_u : access int; patch_u : access int) -- zmq.h:208 with Import => True, Convention => C, External_Name => "zmq_version"; -- **************************************************************************** 0MQ infrastructure (a.k.a. context) -- initialisation & termination. **************************************************************************** Context -- options Default for new contexts function zmq_ctx_new return System .Address -- zmq.h:232 with Import => True, Convention => C, External_Name => "zmq_ctx_new"; function zmq_ctx_term (context_u : System.Address) return int -- zmq.h:233 with Import => True, Convention => C, External_Name => "zmq_ctx_term"; function zmq_ctx_shutdown (context_u : System.Address) return int -- zmq.h:234 with Import => True, Convention => C, External_Name => "zmq_ctx_shutdown"; function zmq_ctx_set (context_u : System.Address; option_u : int; optval_u : int) return int -- zmq.h:235 with Import => True, Convention => C, External_Name => "zmq_ctx_set"; function zmq_ctx_get (context_u : System.Address; option_u : int) return int -- zmq.h:236 with Import => True, Convention => C, External_Name => "zmq_ctx_get"; -- Old (legacy) API function zmq_init (io_threads_u : int) return System .Address -- zmq.h:239 with Import => True, Convention => C, External_Name => "zmq_init"; function zmq_term (context_u : System.Address) return int -- zmq.h:240 with Import => True, Convention => C, External_Name => "zmq_term"; function zmq_ctx_destroy (context_u : System.Address) return int -- zmq.h:241 with Import => True, Convention => C, External_Name => "zmq_ctx_destroy"; -- **************************************************************************** 0MQ message definition. -- **************************************************************************** -- Some architectures, like sparc64 and some variants of aarch64, enforce pointer * alignment and raise sigbus on -- violations. Make sure applications allocate * zmq_msg_t on addresses aligned on a pointer-size boundary to avoid -- this issue. -- type zmq_msg_t_array1158 is array (0 .. 63) of aliased unsigned_char; type zmq_msg_t is record u_u : aliased zmq_msg_t_array1158; -- zmq.h:261 end record with Convention => C_Pass_By_Copy; -- zmq.h:252 -- skipped function type zmq_free_fn function zmq_msg_init (msg_u : access zmq_msg_t) return int -- zmq.h:269 with Import => True, Convention => C, External_Name => "zmq_msg_init"; function zmq_msg_init_size (msg_u : access zmq_msg_t; size_u : size_t) return int -- zmq.h:270 with Import => True, Convention => C, External_Name => "zmq_msg_init_size"; function zmq_msg_init_data (msg_u : access zmq_msg_t; data_u : System.Address; size_u : size_t; ffn_u : access procedure (arg1 : System.Address; arg2 : System.Address); hint_u : System.Address) return int -- zmq.h:271 with Import => True, Convention => C, External_Name => "zmq_msg_init_data"; function zmq_msg_send (msg_u : access zmq_msg_t; s_u : System.Address; flags_u : int) return int -- zmq.h:273 with Import => True, Convention => C, External_Name => "zmq_msg_send"; function zmq_msg_recv (msg_u : access zmq_msg_t; s_u : System.Address; flags_u : int) return int -- zmq.h:274 with Import => True, Convention => C, External_Name => "zmq_msg_recv"; function zmq_msg_close (msg_u : access zmq_msg_t) return int -- zmq.h:275 with Import => True, Convention => C, External_Name => "zmq_msg_close"; function zmq_msg_move (dest_u : access zmq_msg_t; src_u : access zmq_msg_t) return int -- zmq.h:276 with Import => True, Convention => C, External_Name => "zmq_msg_move"; function zmq_msg_copy (dest_u : access zmq_msg_t; src_u : access zmq_msg_t) return int -- zmq.h:277 with Import => True, Convention => C, External_Name => "zmq_msg_copy"; function zmq_msg_data (msg_u : access zmq_msg_t) return System .Address -- zmq.h:278 with Import => True, Convention => C, External_Name => "zmq_msg_data"; function zmq_msg_size (msg_u : access constant zmq_msg_t) return size_t -- zmq.h:279 with Import => True, Convention => C, External_Name => "zmq_msg_size"; function zmq_msg_more (msg_u : access constant zmq_msg_t) return int -- zmq.h:280 with Import => True, Convention => C, External_Name => "zmq_msg_more"; function zmq_msg_get (msg_u : access constant zmq_msg_t; property_u : int) return int -- zmq.h:281 with Import => True, Convention => C, External_Name => "zmq_msg_get"; function zmq_msg_set (msg_u : access zmq_msg_t; property_u : int; optval_u : int) return int -- zmq.h:282 with Import => True, Convention => C, External_Name => "zmq_msg_set"; function zmq_msg_gets (msg_u : access constant zmq_msg_t; property_u : Interfaces.C.Strings.chars_ptr) return Interfaces.C.Strings .chars_ptr -- zmq.h:283 with Import => True, Convention => C, External_Name => "zmq_msg_gets"; -- **************************************************************************** 0MQ socket definition. -- **************************************************************************** Socket types. Deprecated aliases Socket -- options. Message options Send/recv options. Security mechanisms RADIO-DISH protocol Deprecated options and aliases -- Deprecated Message options **************************************************************************** GSSAPI -- definitions **************************************************************************** GSSAPI principal name -- types **************************************************************************** 0MQ socket events and monitoring -- **************************************************************************** Socket transport events (TCP, IPC and -- TIPC only) Unspecified system errors during handshake. Event value is an errno. Handshake complete successfully with -- successful authentication (if * -- * enabled). Event value is unused. -- Protocol errors between ZMTP peers or between server and ZAP handler. * -- * Event value is one of ZMQ_PROTOCOL_ERROR_* -- Failed authentication requests. Event value is the numeric ZAP status * -- * code, i.e. 300, 400 or 500. -- the following two may be due to erroneous configuration of a peer function zmq_socket (arg1 : System.Address; type_u : int) return System .Address -- zmq.h:479 with Import => True, Convention => C, External_Name => "zmq_socket"; function zmq_close (s_u : System.Address) return int -- zmq.h:480 with Import => True, Convention => C, External_Name => "zmq_close"; function zmq_setsockopt (s_u : System.Address; option_u : int; optval_u : System.Address; optvallen_u : size_t) return int -- zmq.h:482 with Import => True, Convention => C, External_Name => "zmq_setsockopt"; function zmq_getsockopt (s_u : System.Address; option_u : int; optval_u : System.Address; optvallen_u : access size_t) return int -- zmq.h:484 with Import => True, Convention => C, External_Name => "zmq_getsockopt"; function zmq_bind (s_u : System.Address; addr_u : Interfaces.C.Strings.chars_ptr) return int -- zmq.h:485 with Import => True, Convention => C, External_Name => "zmq_bind"; function zmq_connect (s_u : System.Address; addr_u : Interfaces.C.Strings.chars_ptr) return int -- zmq.h:486 with Import => True, Convention => C, External_Name => "zmq_connect"; function zmq_unbind (s_u : System.Address; addr_u : Interfaces.C.Strings.chars_ptr) return int -- zmq.h:487 with Import => True, Convention => C, External_Name => "zmq_unbind"; function zmq_disconnect (s_u : System.Address; addr_u : Interfaces.C.Strings.chars_ptr) return int -- zmq.h:488 with Import => True, Convention => C, External_Name => "zmq_disconnect"; function zmq_send (s_u : System.Address; buf_u : System.Address; len_u : size_t; flags_u : int) return int -- zmq.h:489 with Import => True, Convention => C, External_Name => "zmq_send"; function zmq_send_const (s_u : System.Address; buf_u : System.Address; len_u : size_t; flags_u : int) return int -- zmq.h:491 with Import => True, Convention => C, External_Name => "zmq_send_const"; function zmq_recv (s_u : System.Address; buf_u : System.Address; len_u : size_t; flags_u : int) return int -- zmq.h:492 with Import => True, Convention => C, External_Name => "zmq_recv"; function zmq_socket_monitor (s_u : System.Address; addr_u : Interfaces.C.Strings.chars_ptr; events_u : int) return int -- zmq.h:493 with Import => True, Convention => C, External_Name => "zmq_socket_monitor"; -- **************************************************************************** Deprecated I/O multiplexing. Prefer using -- zmq_poller API **************************************************************************** type zmq_pollitem_t is record socket : System.Address; -- zmq.h:507 fd : aliased int; -- zmq.h:511 events : aliased short; -- zmq.h:513 revents : aliased short; -- zmq.h:514 end record with Convention => C_Pass_By_Copy; -- zmq.h:505 function zmq_poll (items_u : access zmq_pollitem_t; nitems_u : int; timeout_u : long) return int -- zmq.h:519 with Import => True, Convention => C, External_Name => "zmq_poll"; -- **************************************************************************** Message proxying -- **************************************************************************** function zmq_proxy (frontend_u : System.Address; backend_u : System.Address; capture_u : System.Address) return int -- zmq.h:525 with Import => True, Convention => C, External_Name => "zmq_proxy"; function zmq_proxy_steerable (frontend_u : System.Address; backend_u : System.Address; capture_u : System.Address; control_u : System.Address) return int -- zmq.h:526 with Import => True, Convention => C, External_Name => "zmq_proxy_steerable"; -- **************************************************************************** Probe library capabilities -- **************************************************************************** function zmq_has (capability_u : Interfaces.C.Strings.chars_ptr) return int -- zmq.h:536 with Import => True, Convention => C, External_Name => "zmq_has"; -- Deprecated aliases -- Deprecated methods function zmq_device (type_u : int; frontend_u : System.Address; backend_u : System.Address) return int -- zmq.h:544 with Import => True, Convention => C, External_Name => "zmq_device"; function zmq_sendmsg (s_u : System.Address; msg_u : access zmq_msg_t; flags_u : int) return int -- zmq.h:545 with Import => True, Convention => C, External_Name => "zmq_sendmsg"; function zmq_recvmsg (s_u : System.Address; msg_u : access zmq_msg_t; flags_u : int) return int -- zmq.h:546 with Import => True, Convention => C, External_Name => "zmq_recvmsg"; type iovec is null record; -- incomplete struct function zmq_sendiov (s_u : System.Address; iov_u : access iovec; count_u : size_t; flags_u : int) return int -- zmq.h:549 with Import => True, Convention => C, External_Name => "zmq_sendiov"; function zmq_recviov (s_u : System.Address; iov_u : access iovec; count_u : access size_t; flags_u : int) return int -- zmq.h:551 with Import => True, Convention => C, External_Name => "zmq_recviov"; -- **************************************************************************** Encryption functions -- **************************************************************************** Encode data with Z85 encoding. -- Returns encoded data function zmq_z85_encode (dest_u : Interfaces.C.Strings.chars_ptr; data_u : access Interfaces.Unsigned_8; size_u : size_t) return Interfaces.C.Strings .chars_ptr -- zmq.h:559 with Import => True, Convention => C, External_Name => "zmq_z85_encode"; -- Decode data with Z85 encoding. Returns decoded data function zmq_z85_decode (dest_u : access Interfaces.Unsigned_8; string_u : Interfaces.C.Strings .chars_ptr) return access Interfaces .Unsigned_8 -- zmq.h:562 with Import => True, Convention => C, External_Name => "zmq_z85_decode"; -- Generate z85-encoded public and private keypair with tweetnacl/libsodium. Returns 0 on success. function zmq_curve_keypair (z85_public_key_u : Interfaces.C.Strings.chars_ptr; z85_secret_key_u : Interfaces.C.Strings.chars_ptr) return int -- zmq.h:566 with Import => True, Convention => C, External_Name => "zmq_curve_keypair"; -- Derive the z85-encoded public key from the z85-encoded secret key. Returns 0 on success. function zmq_curve_public (z85_public_key_u : Interfaces.C.Strings.chars_ptr; z85_secret_key_u : Interfaces.C.Strings.chars_ptr) return int -- zmq.h:570 with Import => True, Convention => C, External_Name => "zmq_curve_public"; -- **************************************************************************** Atomic utility methods -- **************************************************************************** function zmq_atomic_counter_new return System .Address -- zmq.h:577 with Import => True, Convention => C, External_Name => "zmq_atomic_counter_new"; procedure zmq_atomic_counter_set (counter_u : System.Address; value_u : int) -- zmq.h:578 with Import => True, Convention => C, External_Name => "zmq_atomic_counter_set"; function zmq_atomic_counter_inc (counter_u : System.Address) return int -- zmq.h:579 with Import => True, Convention => C, External_Name => "zmq_atomic_counter_inc"; function zmq_atomic_counter_dec (counter_u : System.Address) return int -- zmq.h:580 with Import => True, Convention => C, External_Name => "zmq_atomic_counter_dec"; function zmq_atomic_counter_value (counter_u : System.Address) return int -- zmq.h:581 with Import => True, Convention => C, External_Name => "zmq_atomic_counter_value"; procedure zmq_atomic_counter_destroy (counter_p_u : System .Address) -- zmq.h:582 with Import => True, Convention => C, External_Name => "zmq_atomic_counter_destroy"; -- **************************************************************************** Scheduling timers -- **************************************************************************** -- skipped function type zmq_timer_fn function zmq_timers_new return System .Address -- zmq.h:592 with Import => True, Convention => C, External_Name => "zmq_timers_new"; function zmq_timers_destroy (timers_p : System.Address) return int -- zmq.h:593 with Import => True, Convention => C, External_Name => "zmq_timers_destroy"; function zmq_timers_add (timers : System.Address; interval : size_t; handler : access procedure (arg1 : int; arg2 : System.Address); arg : System.Address) return int -- zmq.h:595 with Import => True, Convention => C, External_Name => "zmq_timers_add"; function zmq_timers_cancel (timers : System.Address; timer_id : int) return int -- zmq.h:596 with Import => True, Convention => C, External_Name => "zmq_timers_cancel"; function zmq_timers_set_interval (timers : System.Address; timer_id : int; interval : size_t) return int -- zmq.h:598 with Import => True, Convention => C, External_Name => "zmq_timers_set_interval"; function zmq_timers_reset (timers : System.Address; timer_id : int) return int -- zmq.h:599 with Import => True, Convention => C, External_Name => "zmq_timers_reset"; function zmq_timers_timeout (timers : System.Address) return long -- zmq.h:600 with Import => True, Convention => C, External_Name => "zmq_timers_timeout"; function zmq_timers_execute (timers : System.Address) return int -- zmq.h:601 with Import => True, Convention => C, External_Name => "zmq_timers_execute"; -- **************************************************************************** These functions are not documented by -- man pages -- use at your own risk. If you need these to be part of the formal ZMQ API, then (a) write a man page, and -- (b) write a test case in tests. **************************************************************************** Helper -- functions are used by perf tests so that they don't have to care about minutiae of time-related functions on different -- OS platforms. Starts the stopwatch. Returns the handle to the watch. function zmq_stopwatch_start return System .Address -- zmq.h:614 with Import => True, Convention => C, External_Name => "zmq_stopwatch_start"; -- Returns the number of microseconds elapsed since the stopwatch was started, but does not stop or deallocate the -- stopwatch. function zmq_stopwatch_intermediate (watch_u : System.Address) return unsigned_long -- zmq.h:618 with Import => True, Convention => C, External_Name => "zmq_stopwatch_intermediate"; -- Stops the stopwatch. Returns the number of microseconds elapsed since the stopwatch was started, and deallocates that -- watch. function zmq_stopwatch_stop (watch_u : System.Address) return unsigned_long -- zmq.h:622 with Import => True, Convention => C, External_Name => "zmq_stopwatch_stop"; -- Sleeps for specified number of seconds. procedure zmq_sleep (seconds_u : int) -- zmq.h:625 with Import => True, Convention => C, External_Name => "zmq_sleep"; -- skipped function type zmq_thread_fn -- Start a thread. Returns a handle to the thread. function zmq_threadstart (func_u : access procedure (arg1 : System.Address); arg_u : System.Address) return System .Address -- zmq.h:630 with Import => True, Convention => C, External_Name => "zmq_threadstart"; -- Wait for thread to complete then free up resources. procedure zmq_threadclose (thread_u : System .Address) -- zmq.h:633 with Import => True, Convention => C, External_Name => "zmq_threadclose"; -- **************************************************************************** These functions are -- DRAFT and disabled in stable releases, and subject to change at ANY time until declared stable. -- **************************************************************************** DRAFT Socket types. DRAFT Socket options. -- DRAFT Context options DRAFT Socket methods. DRAFT Msg methods. DRAFT Msg property names. Router notify options -- **************************************************************************** Poller polling on sockets,fd and -- thread-safe sockets **************************************************************************** DRAFT Socket -- monitoring events end ZMQ.Low_Level;
41.820437
128
0.532203
fb5a52d887bd5d726065e7a23f7eaa29364d5d28
11,916
adb
Ada
src/ada/src/uxas-comms-lmcp_object_message_sender_pipes.adb
pat-rogers/OpenUxAS
2a58d63435d78203ea659198718a5c6c983a1a83
[ "NASA-1.3" ]
null
null
null
src/ada/src/uxas-comms-lmcp_object_message_sender_pipes.adb
pat-rogers/OpenUxAS
2a58d63435d78203ea659198718a5c6c983a1a83
[ "NASA-1.3" ]
null
null
null
src/ada/src/uxas-comms-lmcp_object_message_sender_pipes.adb
pat-rogers/OpenUxAS
2a58d63435d78203ea659198718a5c6c983a1a83
[ "NASA-1.3" ]
null
null
null
-- see OpenUxAS\src\Communications\LmcpObjectMessageSenderPipe.cpp with UxAS.Comms.Transport.ZeroMQ_Socket_Configurations; with UxAS.Common.String_Constant.Lmcp_Network_Socket_Address; use UxAS.Common.String_Constant.Lmcp_Network_Socket_Address; with UxAS.Common.String_Constant.Content_Type; with UxAS.Comms.Transport.Network_Name; with AVTAS.LMCP.Factory; with AVTAS.LMCP.ByteBuffers; use AVTAS.LMCP.ByteBuffers; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; package body UxAS.Comms.LMCP_Object_Message_Sender_Pipes is ------------------------ -- Initialize_Publish -- ------------------------ procedure Initialize_Publish (This : in out LMCP_Object_Message_Sender_Pipe; Source_Group : String; Entity_Id : UInt32; Service_Id : UInt32) is begin -- initializeZmqSocket(sourceGroup, entityId, serviceId, ZMQ_PUB, -- uxas::common::LmcpNetworkSocketAddress::strGetInProc_FromMessageHub(), true); This.Initialize_Zmq_Socket (Source_Group => Source_Group, Entity_Id => Entity_Id, Service_Id => Service_Id, Zmq_SocketType => ZMQ.Sockets.PUB, Socket_Address => To_String (InProc_From_MessageHub), Is_Server => True); end Initialize_Publish; ------------------------------ -- Initialize_External_Push -- ------------------------------ procedure Initialize_External_Push (This : in out LMCP_Object_Message_Sender_Pipe; Source_Group : String; Entity_Id : UInt32; Service_Id : UInt32; External_Socket_Address : String; Is_Server : Boolean) is begin -- initializeZmqSocket(sourceGroup, entityId, serviceId, ZMQ_PUSH, externalSocketAddress, isServer); This.Initialize_Zmq_Socket (Source_Group => Source_Group, Entity_Id => Entity_Id, Service_Id => Service_Id, Zmq_SocketType => ZMQ.Sockets.PUSH, Socket_Address => External_Socket_Address, Is_Server => Is_Server); end Initialize_External_Push; ----------------------------- -- Initialize_External_Pub -- ----------------------------- procedure Initialize_External_Pub (This : in out LMCP_Object_Message_Sender_Pipe; Source_Group : String; Entity_Id : UInt32; Service_Id : UInt32; External_Socket_Address : String; Is_Server : Boolean) is begin -- initializeZmqSocket(sourceGroup, entityId, serviceId, ZMQ_PUB, externalSocketAddress, isServer); This.Initialize_Zmq_Socket (Source_Group => Source_Group, Entity_Id => Entity_Id, Service_Id => Service_Id, Zmq_SocketType => ZMQ.Sockets.PUB, Socket_Address => External_Socket_Address, Is_Server => Is_Server); end Initialize_External_Pub; --------------------- -- Initialize_Push -- --------------------- procedure Initialize_Push (This : in out LMCP_Object_Message_Sender_Pipe; Source_Group : String; Entity_Id : UInt32; Service_Id : UInt32) is begin -- initializeZmqSocket(sourceGroup, entityId, serviceId, ZMQ_PUSH, -- uxas::common::LmcpNetworkSocketAddress::strGetInProc_ToMessageHub(), false); This.Initialize_Zmq_Socket (Source_Group => Source_Group, Entity_Id => Entity_Id, Service_Id => Service_Id, Zmq_SocketType => ZMQ.Sockets.PUSH, Socket_Address => To_String (InProc_To_MessageHub), Is_Server => False); end Initialize_Push; ----------------------- -- Initialize_Stream -- ----------------------- procedure Initialize_Stream (This : in out LMCP_Object_Message_Sender_Pipe; Source_Group : String; Entity_Id : UInt32; Service_Id : UInt32; Socket_Address : String; Is_Server : Boolean) is begin -- initializeZmqSocket(sourceGroup, entityId, serviceId, ZMQ_STREAM, socketAddress, isServer); This.Initialize_Zmq_Socket (Source_Group => Source_Group, Entity_Id => Entity_Id, Service_Id => Service_Id, Zmq_SocketType => ZMQ.Sockets.STREAM, Socket_Address => Socket_Address, Is_Server => Is_Server); end Initialize_Stream; ---------------------------- -- Send_Broadcast_Message -- ---------------------------- procedure Send_Broadcast_Message (This : in out LMCP_Object_Message_Sender_Pipe; Message : AVTAS.LMCP.Object.Object_Any) is begin -- std::string fullLmcpObjectTypeName = lmcpObject->getFullLmcpTypeName(); -- sendLimitedCastMessage(fullLmcpObjectTypeName, std::move(lmcpObject)); This.Send_LimitedCast_Message (Message.getFullLmcpTypeName, Message); end Send_Broadcast_Message; ------------------------------ -- Send_LimitedCast_Message -- ------------------------------ -- void -- sendLimitedCastMessage(const std::string& castAddress, std::unique_ptr<avtas::lmcp::Object> lmcpObject); procedure Send_LimitedCast_Message (This : in out LMCP_Object_Message_Sender_Pipe; Cast_Address : String; Message : AVTAS.LMCP.Object.Object_Any) is -- avtas::lmcp::ByteBuffer* lmcpByteBuffer = avtas::lmcp::Factory::packMessage(lmcpObject.get(), true); Buffer : constant ByteBuffer := AVTAS.LMCP.Factory.PackMessage (Message, EnableChecksum => True); -- std::string serializedPayload = std::string(reinterpret_cast<char*>(lmcpByteBuffer->array()), lmcpByteBuffer->capacity()); Payload : constant String := Buffer.Raw_Bytes; begin -- m_transportSender->sendMessage -- (castAddress, -- uxas::common::ContentType::lmcp(), -- lmcpObject->getFullLmcpTypeName(), -- std::move(serializedPayload)); This.Sender.Send_Message (Address => Cast_Address, Content_Type => UxAS.Common.String_Constant.Content_Type.Lmcp, Descriptor => Message.getFullLmcpTypeName, Payload => Payload); end Send_LimitedCast_Message; ----------------------------- -- Send_Serialized_Message -- ----------------------------- procedure Send_Serialized_Message (This : in out LMCP_Object_Message_Sender_Pipe; Message : Addressed_Attributed_Message_Ref) is begin -- m_transportSender->sendAddressedAttributedMessage(std::move(serializedLmcpObject)); This.Sender.Send_Addressed_Attributed_Message (Message); end Send_Serialized_Message; ----------------------------------- -- Send_Shared_Broadcast_Message -- ----------------------------------- procedure Send_Shared_Broadcast_Message (This : in out LMCP_Object_Message_Sender_Pipe; Message : AVTAS.LMCP.Object.Object_Any) is begin -- sendSharedLimitedCastMessage(lmcpObject->getFullLmcpTypeName(), lmcpObject); This.Send_Shared_LimitedCast_Message (Message.getFullLmcpTypeName, Message); end Send_Shared_Broadcast_Message; ------------------------------------- -- Send_Shared_LimitedCast_Message -- ------------------------------------- procedure Send_Shared_LimitedCast_Message (This : in out LMCP_Object_Message_Sender_Pipe; Cast_Address : String; Message : AVTAS.LMCP.Object.Object_Any) is -- avtas::lmcp::ByteBuffer* lmcpByteBuffer = avtas::lmcp::Factory::packMessage(lmcpObject.get(), true); Buffer : constant ByteBuffer := AVTAS.LMCP.Factory.PackMessage (Message, EnableChecksum => True); -- std::string serializedPayload = std::string(reinterpret_cast<char*>(lmcpByteBuffer->array()), lmcpByteBuffer->capacity()); Payload : constant String := Buffer.Raw_Bytes; begin -- Note: this body is identical to the body of Send_LimitedCast_Message, per the C++ implementation -- TODO: see why -- m_transportSender->sendMessage -- (castAddress, -- uxas::common::ContentType::lmcp(), -- lmcpObject->getFullLmcpTypeName(), -- std::move(serializedPayload)); This.Sender.Send_Message (Address => Cast_Address, Content_Type => UxAS.Common.String_Constant.Content_Type.Lmcp, Descriptor => Message.getFullLmcpTypeName, Payload => Payload); end Send_Shared_LimitedCast_Message; --------------- -- Entity_Id -- --------------- function Entity_Id (This : LMCP_Object_Message_Sender_Pipe) return UInt32 is (This.Entity_Id); ---------------- -- Service_Id -- ---------------- function Service_Id (This : LMCP_Object_Message_Sender_Pipe) return UInt32 is (This.Service_Id); ------------------- -- Set_Entity_Id -- ------------------- procedure Set_Entity_Id (This : in out LMCP_Object_Message_Sender_Pipe; Value : UInt32) is begin This.Entity_Id := Value; end Set_Entity_Id; -------------------- -- Set_Service_Id -- -------------------- procedure Set_Service_Id (This : in out LMCP_Object_Message_Sender_Pipe; Value : UInt32) is begin This.Service_Id := Value; end Set_Service_Id; --------------------------- -- Initialize_Zmq_Socket -- --------------------------- procedure Initialize_Zmq_Socket (This : in out LMCP_Object_Message_Sender_Pipe; Source_Group : String; Entity_Id : UInt32; Service_Id : UInt32; Zmq_SocketType : ZMQ.Sockets.Socket_Type; Socket_Address : String; Is_Server : Boolean) is use UxAS.Comms.Transport.ZeroMQ_Socket_Configurations; -- int32_t zmqhighWaterMark{100000}; Zmq_High_Water_Mark : constant := 100_000; zmqLmcpNetworkSendSocket : ZeroMq_Socket_Configuration; begin -- m_entityId = entityId; -- m_serviceId = serviceId; This.Entity_Id := Entity_Id; This.Service_Id := Service_Id; -- uxas::communications::transport::ZeroMqSocketConfiguration -- zmqLmcpNetworkSendSocket(uxas::communications::transport::NETWORK_NAME::zmqLmcpNetwork(), -- socketAddress, -- zmqSocketType, -- isServer, -- false, -- zmqhighWaterMark, -- zmqhighWaterMark); ZmqLmcpNetworkSendSocket := Make (Network_Name => UxAS.Comms.Transport.Network_Name.ZmqLmcpNetwork, Socket_Address => Socket_Address, Is_Receive => False, Zmq_Socket_Type => Zmq_SocketType, Number_of_IO_Threads => 1, Is_Server_Bind => Is_Server, Receive_High_Water_Mark => Zmq_High_Water_Mark, Send_High_Water_Mark => Zmq_High_Water_Mark); -- m_transportSender = uxas::stduxas::make_unique<uxas::communications::transport::ZeroMqAddressedAttributedMessageSender>( -- (zmqSocketType == ZMQ_STREAM ? true : false)); This.Sender := new ZeroMq_Addressed_Attributed_Message_Sender (Zmq_SocketType); -- we just pass the actual socket type and let the sender do the test -- m_transportSender->initialize(sourceGroup, m_entityId, m_serviceId, zmqLmcpNetworkSendSocket); This.Sender.Initialize (Source_Group => Source_Group, Entity_Id => Entity_Id, Service_Id => Service_Id, SocketConfig => zmqLmcpNetworkSendSocket); end Initialize_Zmq_Socket; end UxAS.Comms.LMCP_Object_Message_Sender_Pipes;
36.552147
132
0.608593
124724379e7629ad9476bdbbb3d5be156c5af97a
2,798
ada
Ada
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c9/c9a004a.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/c9a004a.ada
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
null
null
null
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c9/c9a004a.ada
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
2
2020-07-27T00:22:36.000Z
2021-04-01T09:41:02.000Z
-- C9A004A.ADA -- Grant of Unlimited Rights -- -- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687, -- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained -- unlimited rights in the software and documentation contained herein. -- Unlimited rights are defined in DFAR 252.227-7013(a)(19). By making -- this public release, the Government intends to confer upon all -- recipients unlimited rights equal to those held by the Government. -- These rights include rights to use, duplicate, release or disclose the -- released technical data and computer software in whole or in part, in -- any manner and for any purpose whatsoever, and to have or permit others -- to do so. -- -- DISCLAIMER -- -- ALL MATERIALS OR INFORMATION HEREIN RELEASED, MADE AVAILABLE OR -- DISCLOSED ARE AS IS. THE GOVERNMENT MAKES NO EXPRESS OR IMPLIED -- WARRANTY AS TO ANY MATTER WHATSOEVER, INCLUDING THE CONDITIONS OF THE -- SOFTWARE, DOCUMENTATION OR OTHER INFORMATION RELEASED, MADE AVAILABLE -- OR DISCLOSED, OR THE OWNERSHIP, MERCHANTABILITY, OR FITNESS FOR A -- PARTICULAR PURPOSE OF SAID MATERIAL. --* -- CHECK THAT IF A TASK IS ABORTED BEFORE BEING ACTIVATED, THE TASK IS -- TERMINATED. -- RM 5/21/82 -- SPS 11/21/82 -- JBG 6/3/85 -- PWN 09/11/94 REMOVED PRAGMA PRIORITY FOR ADA 9X WITH REPORT; USE REPORT; WITH SYSTEM; USE SYSTEM; PROCEDURE C9A004A IS BEGIN ------------------------------------------------------------------- TEST ("C9A004A", "CHECK THAT IF A TASK IS ABORTED" & " BEFORE BEING ACTIVATED," & " THE TASK IS TERMINATED" ); DECLARE TASK TYPE T_TYPE IS ENTRY E ; END T_TYPE ; T_OBJECT1 : T_TYPE ; TASK BODY T_TYPE IS BUSY : BOOLEAN := FALSE ; BEGIN NULL; END T_TYPE ; PACKAGE P IS X : INTEGER := 0 ; END P ; PACKAGE BODY P IS BEGIN IF T_OBJECT1'TERMINATED OR NOT T_OBJECT1'CALLABLE THEN FAILED( "WRONG VALUES FOR ATTRIBUTES" ); END IF; ABORT T_OBJECT1 ; -- ELABORATED BUT NOT YET ACTIVATED. END P ; BEGIN IF NOT T_OBJECT1'TERMINATED THEN FAILED( "ABORTED (BEFORE ACTIVATION) TASK" & " NOT TERMINATED" ); END IF; EXCEPTION WHEN TASKING_ERROR => FAILED ("TASKING_ERROR RAISED"); END; RESULT; END C9A004A;
25.669725
79
0.550751
4d73f971d0011e56495eae533b7fd1ec4a224c7e
4,406
adb
Ada
test/surface.adb
mosteo/sdlada
429c594de613c5ba2f0d7c59f8708956697e14f1
[ "Zlib" ]
89
2015-01-03T01:41:23.000Z
2022-02-23T18:21:11.000Z
test/surface.adb
mosteo/sdlada
429c594de613c5ba2f0d7c59f8708956697e14f1
[ "Zlib" ]
66
2015-05-01T00:54:03.000Z
2022-01-20T04:09:59.000Z
test/surface.adb
Jellix/sdlada
997d2ae2da5c75e2ea99cee98372cf5b752519cf
[ "Zlib" ]
33
2015-04-30T23:39:31.000Z
2022-01-03T13:00:41.000Z
with Ada.Unchecked_Conversion; with SDL; with SDL.Events.Events; with SDL.Events.Keyboards; with SDL.Log; with SDL.Video.Pixel_Formats; with SDL.Video.Rectangles; with SDL.Video.Surfaces; with SDL.Video.Windows.Makers; procedure Surface is W : SDL.Video.Windows.Window; begin SDL.Log.Set (Category => SDL.Log.Application, Priority => SDL.Log.Debug); if SDL.Initialise (Flags => SDL.Enable_Screen) = True then SDL.Video.Windows.Makers.Create (Win => W, Title => "Surface (Esc to exit)", Position => SDL.Natural_Coordinates'(X => 100, Y => 100), Size => SDL.Positive_Sizes'(800, 640), Flags => SDL.Video.Windows.Resizable); -- Main loop. declare Event : SDL.Events.Events.Events; Window_Surface : SDL.Video.Surfaces.Surface; Area : constant SDL.Video.Rectangles.Rectangle := (X => 10, Y => 10, Width => 50, Height => 50); Areas : constant SDL.Video.Rectangles.Rectangle_Arrays := ((X => 100, Y => 10, Width => 50, Height => 50), (X => 120, Y => 20, Width => 50, Height => 50), (X => 160, Y => 40, Width => 50, Height => 50)); Green_Area : constant SDL.Video.Rectangles.Rectangle := (X => 15, Y => 15, Width => 10, Height => 10); Blue_Areas : constant SDL.Video.Rectangles.Rectangle_Arrays := ((X => 150, Y => 15, Width => 10, Height => 10), (X => 125, Y => 25, Width => 10, Height => 10), (X => 165, Y => 45, Width => 10, Height => 10)); Blit_Copy_Area : constant SDL.Video.Rectangles.Rectangle := (X => 10, Y => 10, Width => 150, Height => 70); Blit_Dest_Area : SDL.Video.Rectangles.Rectangle := (X => 10, Y => 130, Width => 100, Height => 100); Finished : Boolean := False; use type SDL.Events.Keyboards.Key_Codes; begin Window_Surface := W.Get_Surface; Window_Surface.Fill (Area, SDL.Video.Pixel_Formats.To_Pixel (Format => Window_Surface.Pixel_Format, Red => 200, Green => 100, Blue => 150)); Window_Surface.Fill (Areas, SDL.Video.Pixel_Formats.To_Pixel (Format => Window_Surface.Pixel_Format, Red => 100, Green => 100, Blue => 150)); W.Update_Surface; -- Shows the above two calls. Window_Surface.Fill (Green_Area, SDL.Video.Pixel_Formats.To_Pixel (Format => Window_Surface.Pixel_Format, Red => 100, Green => 200, Blue => 100)); W.Update_Surface_Rectangle (Rectangle => Green_Area); Window_Surface.Fill (Blue_Areas, SDL.Video.Pixel_Formats.To_Pixel (Format => Window_Surface.Pixel_Format, Red => 150, Green => 150, Blue => 250)); W.Update_Surface_Rectangles (Rectangles => Blue_Areas); Window_Surface.Blit_Scaled (Self_Area => Blit_Dest_Area, Source => Window_Surface, Source_Area => Blit_Copy_Area); W.Update_Surface_Rectangle (Blit_Dest_Area); loop while SDL.Events.Events.Poll (Event) loop case Event.Common.Event_Type is when SDL.Events.Quit => Finished := True; when SDL.Events.Keyboards.Key_Down => if Event.Keyboard.Key_Sym.Key_Code = SDL.Events.Keyboards.Code_Escape then Finished := True; end if; when others => null; end case; end loop; exit when Finished; end loop; end; SDL.Log.Put_Debug (""); W.Finalize; SDL.Finalise; end if; end Surface;
39.693694
96
0.480027
cbc5d8bc2cae44ff85b81acfd0b55ce901810dba
15,746
ads
Ada
tlsf/src/proof/model/block/tlsf-proof-model-block.ads
vasil-sd/ada-tlsf
c30cfaf5f0b87ebb6e4dd479e50b3f9b11381ddd
[ "MIT" ]
3
2020-02-21T15:42:14.000Z
2020-04-08T09:42:32.000Z
tlsf/src/proof/model/block/tlsf-proof-model-block.ads
vasil-sd/ada-tlsf
c30cfaf5f0b87ebb6e4dd479e50b3f9b11381ddd
[ "MIT" ]
null
null
null
tlsf/src/proof/model/block/tlsf-proof-model-block.ads
vasil-sd/ada-tlsf
c30cfaf5f0b87ebb6e4dd479e50b3f9b11381ddd
[ "MIT" ]
1
2020-02-21T15:29:26.000Z
2020-02-21T15:29:26.000Z
with Ada.Containers; with Ada.Containers.Functional_Vectors; with TLSF.Block.Types; with TLSF.Config; use TLSF.Config; package TLSF.Proof.Model.Block with SPARK_Mode, Ghost is package BT renames TLSF.Block.Types; type Block is record Address : BT.Aligned_Address; Prev_Block_Address : BT.Aligned_Address := BT.Address_Null; Size : BT.Aligned_Size; end record with Predicate => Size >= BT.Quantum and Address >= BT.Quantum and (Prev_Block_Address = BT.Address_Null or (Prev_Block_Address >= BT.Quantum and Prev_Block_Address < Address)); use type BT.Aligned_Address; use type BT.Aligned_Size; use Ada.Containers; subtype Index_Type is Positive; package FV_Pkg is new Ada.Containers.Functional_Vectors (Index_Type => Index_Type, Element_Type => Block); use FV_Pkg; use type BT.Address_Space; subtype Address_Space is BT.Address_Space; -- Address space of model is First_Address .. Last_Address - 1, -- ie Last_Address is the first one that is out of address space type Formal_Model is record Blocks : FV_Pkg.Sequence; Mem_Region : Address_Space; end record; function Valid_Block (AS: Address_Space; B: Block) return Boolean is (B.Address in AS.First..AS.Last and then Integer(B.Address) + Integer(B.Size) in 0..Integer(BT.Address'Last) and then B.Address + B.Size in AS.First .. AS.Last and then (B.Prev_Block_Address = BT.Address_Null or else B.Prev_Block_Address in AS.First .. AS.Last)) with Post => (if Valid_Block'Result = True then B.Address in AS.First..AS.Last and B.Address + B.Size in AS.First .. AS.Last and (B.Prev_Block_Address = BT.Address_Null or B.Prev_Block_Address in AS.First .. AS.Last)); pragma Annotate (GNATprove, Inline_For_Proof, Valid_Block); function Next_Block_Address (B: Block) return BT.Aligned_Address is (B.Address + B.Size) with Pre => Integer(B.Address) + Integer(B.Size) in 0..Integer(BT.Address'Last); pragma Annotate (GNATprove, Inline_For_Proof, Next_Block_Address); function Neighbor_Blocks (B_Left, B_Right: Block) return Boolean is (Next_Block_Address (B_Left) = B_Right.Address and B_Right.Prev_Block_Address = B_Left.Address) with Pre => Integer (B_Left.Address) + Integer (B_Left.Size) in 0 .. Integer (BT.Address'Last); pragma Annotate (GNATprove, Inline_For_Proof, Neighbor_Blocks); -- excessive, but for clarity function Blocks_Addresses_Are_In_Ascending_Order(Bs : FV_Pkg.Sequence; From : Index_Type; To : Extended_Index) return Boolean is (if To >= 1 then (for all Idx in From..To-1 => Get(Bs,Idx).Address < Get(Bs, Idx+1).Address)) with Pre => To <= Last(Bs); pragma Annotate (GNATprove, Inline_For_Proof, Blocks_Addresses_Are_In_Ascending_Order); function All_Blocks_Are_Valid (AS : Address_Space; BS : FV_Pkg.Sequence; From : Index_Type; To : Extended_Index) return Boolean is (for all Idx in From..To => Valid_Block (AS, Get(BS, Idx))) with Pre => To <= Last(BS); pragma Annotate (GNATprove, Inline_For_Proof, All_Blocks_Are_Valid); function Boundary_Blocks_Coverage_Is_Correct(AS: Address_Space; BS : FV_Pkg.Sequence) return Boolean is (if Last(BS) >=1 then (Get (BS, 1).Address = AS.First and Get (BS, 1).Prev_Block_Address = BT.Address_Null and Next_Block_Address(Get(BS, Last(BS))) = AS.Last)) with Pre => All_Blocks_Are_Valid(AS, BS, 1, Last(BS)); function Coverage_Is_Continuous (AS : Address_Space; BS : FV_Pkg.Sequence; From : Index_Type; To : Extended_Index) return Boolean is (if To >= 1 then (for all Idx in From .. To-1 => Neighbor_Blocks(Get(BS, Idx), Get(BS, Idx+1)))) with Pre => To <= Last(BS) and then All_Blocks_Are_Valid(AS, BS, From, To); pragma Annotate (GNATprove, Inline_For_Proof, Coverage_Is_Continuous); function Blocks_Overlap (AS: Address_Space; B1, B2: Block) return Boolean is (B1.Address in B2.Address..(B2.Address + B2.Size - 1) or B1.Address + B1.Size -1 in B2.Address..(B2.Address + B2.Size - 1) or B2.Address in B1.Address..(B1.Address + B1.Size - 1) or B2.Address + B2.Size -1 in B1.Address..(B1.Address + B1.Size - 1)) with Pre => Valid_Block(AS, B1) and Valid_Block(AS, B2); pragma Annotate (GNATprove, Inline_For_Proof, Blocks_Overlap); function Blocks_Do_Not_Overlap (AS : Address_Space; BS : FV_Pkg.Sequence; From : Index_Type; To : Extended_Index) return Boolean is (for all Idx1 in From..To => (for all Idx2 in From..To => (if Idx1 /= Idx2 then not Blocks_Overlap(AS, Get(BS, Idx1), Get(BS, Idx2))))) with Pre => To <= Last(BS) and then All_Blocks_Are_Valid(AS, BS, From, To); pragma Annotate (GNATprove, Inline_For_Proof, Blocks_Do_Not_Overlap); function All_Block_Are_Uniq (AS : Address_Space; BS : FV_Pkg.Sequence; From : Index_Type; To : Extended_Index) return Boolean is (for all Idx1 in From..To => (for all Idx2 in From..To => (if Get (BS, Idx1) = Get (BS, Idx2) then Idx1 = Idx2))) with Pre => To <= Last(BS) and then All_Blocks_Are_Valid(AS, BS, From, To); pragma Annotate (GNATprove, Inline_For_Proof, All_Block_Are_Uniq); function All_Block_Addresses_Are_Uniq (AS : Address_Space; BS : FV_Pkg.Sequence; From : Index_Type; To : Extended_Index) return Boolean is (for all Idx1 in From..To => (for all Idx2 in From..To => (if Get (BS, Idx1).Address = Get (BS, Idx2).Address then Idx1 = Idx2))) with Pre => To <= Last(BS) and then All_Blocks_Are_Valid(AS, BS, From, To); pragma Annotate (GNATprove, Inline_For_Proof, All_Block_Addresses_Are_Uniq); function Partial_Valid(AS: Address_Space; BS: FV_Pkg.Sequence; From : Index_Type; To : Extended_Index) return Boolean is (All_Blocks_Are_Valid(AS, BS, From, To) and then Blocks_Addresses_Are_In_Ascending_Order(BS, From, To) and then Coverage_Is_Continuous(AS, BS, From, To) and then Blocks_Do_Not_Overlap(AS, BS, From, To) and then All_Block_Are_Uniq (AS, BS, From, To) and then All_Block_Addresses_Are_Uniq (AS, BS, From, To)) with Global => null, Depends => (Partial_Valid'Result => (AS, BS, From, To)), Pre => To <= Last(BS), Pure_Function; function Valid(M : Formal_Model) return Boolean is (Partial_Valid(M.Mem_Region, M.Blocks, 1, Last(M.Blocks)) and then Boundary_Blocks_Coverage_Is_Correct(M.Mem_Region, M.Blocks)) with Global => null, Depends => (Valid'Result => M), Pure_Function; procedure Equality_Preserves_Validity (Old_M, New_M : Formal_Model) with Global => null, Pre => Valid (Old_M) and Old_M = New_M, Post => Valid (New_M); function Address_In_Model (M : Formal_Model; Addr : BT.Aligned_Address) return Boolean is (for some Idx in 1 .. Last (M.Blocks) => Get (M.Blocks, Idx).Address = Addr) with Global => null, Pure_Function, Pre => Valid (M); function In_Model (M : Formal_Model; B : Block) return Boolean is (Contains (M.Blocks, 1, Last (M.Blocks), B)) with Global => null, Pure_Function, Pre => Valid (M), Post => (if In_Model'Result then Address_In_Model (M, B.Address)); procedure Addresses_Equality_Implies_Blocks_Equality (M : Formal_Model) with Global => null, Pre => Valid (M), Post => (for all I in 1 .. Last (M.Blocks) => In_Model (M, Get (M.Blocks, I))) and then (for all I in 1 .. Last (M.Blocks) => (for all J in 1 .. Last (M.Blocks) => (if Get (M.Blocks, I).Address = Get (M.Blocks, J).Address then I = J and then Get (M.Blocks, I) = Get (M.Blocks, J)))); procedure Addresses_Equality_Implies_Blocks_Equality (M : Formal_Model; Left, Right : Block) with Global => null, Pre => Valid (M) and then In_Model (M, Left) and then In_Model (M, Right), Post => (if Left.Address = Right.Address then Left = Right); function Is_First_Block(M: Formal_Model; B: Block) return Boolean with Global => null, Pure_Function, Pre => Valid (M) and then In_Model (M, B), Post => (if B.Address = M.Mem_Region.First then B = Get (M.Blocks, 1) and Is_First_Block'Result = True else Is_First_Block'Result = False); function Is_Last_Block(M: Formal_Model; B: Block) return Boolean with Global => null, Pure_Function, Pre => Valid (M) and then In_Model (M, B), Post => (if Next_Block_Address (B) = M.Mem_Region.Last then B = Get (M.Blocks, Last (M.Blocks)) and Is_Last_Block'Result = True else Is_Last_Block'Result = False); function Get_Prev(M: Formal_Model; B: Block) return Block with Global => null, Pure_Function, Pre => Valid (M) and then In_Model (M, B) and then not Is_First_Block (M, B), Post => Valid_Block (M.Mem_Region, Get_Prev'Result) and In_Model (M, Get_Prev'Result) and Neighbor_Blocks (Get_Prev'Result, B); function Get_Next(M: Formal_Model; B: Block) return Block with Global => null, Pure_Function, Pre => Valid (M) and then In_Model (M, B) and then not Is_Last_Block (M, B), Post => Valid_Block(M.Mem_Region, Get_Next'Result) and In_Model (M, Get_Next'Result) and Neighbor_Blocks(B, Get_Next'Result); procedure Equality_Preserves_Block_Relations (Left_M, Right_M : Formal_Model; B : Block) with Global => null, Pre => Valid (Left_M) and then Left_M = Right_M and then In_Model (Left_M, B), Post => Valid (Right_M) and then In_Model (Right_M, B) and then Is_Last_Block (Left_M, B) = Is_Last_Block (Right_M, B) and then Is_First_Block (Left_M, B) = Is_First_Block (Right_M, B) and then (if not Is_Last_Block (Left_M, B) then Get_Next (Left_M, B) = Get_Next (Right_M, B)) and then (if not Is_First_Block (Left_M, B) then Get_Prev (Left_M, B) = Get_Prev (Right_M, B)); function Initial_Block (Space : Address_Space) return Block with Post => Valid_Block (Space, Initial_Block'Result) and then Initial_Block'Result.Address = Space.First and then Next_Block_Address (Initial_Block'Result) = Space.Last and then Initial_Block'Result.Prev_Block_Address = BT.Address_Null; function Init_Model(Space : Address_Space) return Formal_Model with Post => Length(Init_Model'Result.Blocks) = 1 and then Init_Model'Result.Mem_Region = Space and then Get (Init_Model'Result.Blocks, 1).Address = Init_Model'Result.Mem_Region.First and then Next_Block_Address (Get (Init_Model'Result.Blocks, 1)) = Init_Model'Result.Mem_Region.Last and then Get (Init_Model'Result.Blocks, 1) = Initial_Block (Space) and then Valid (Init_Model'Result) and then In_Model (Init_Model'Result, Initial_Block (Space)) and then Is_Last_Block (Init_Model'Result, Initial_Block (Space)) and then Is_First_Block (Init_Model'Result, Initial_Block (Space)); procedure Split_Block (M : Formal_Model; B : Block; L_Size, R_Size : BT.Aligned_Size; B_Left, B_Right : out Block; New_M : out Formal_Model) with Global => null, Depends => (New_M => (M, B, L_Size, R_Size), B_Left => (B, L_Size), B_Right => (B, L_Size, R_Size)), Pre => (Valid (M) and then In_Model (M, B)) and L_Size >= Small_Block_Size and R_Size >= Small_Block_Size and B.SIze = L_Size + R_Size, Post => (Valid (New_M) and not In_Model (New_M, B) and In_Model (New_M, B_Left) and In_Model (New_M, B_Right) and B_Left.Address = B.Address and B_Left.Size = L_Size and B_Left.Prev_Block_Address = B.Prev_Block_Address and B_Right.Address = B.Address + L_Size and B_Right.Size = R_Size and Neighbor_Blocks (B_Left, B_Right) and Is_First_Block (M, B) = Is_First_Block (New_M, B_Left) and Is_Last_Block (M, B) = Is_Last_Block (New_M, B_Right)) and then (if not Is_First_Block (M, B) then Get_Prev (M, B) = Get_Prev (New_M, B_Left)) and then (if not Is_Last_Block (M, B) then Get_Next (M, B).Address = Get_Next (New_M, B_Right).Address and then Get_Next (M, B).Size = Get_Next (New_M, B_Right).Size and then Get_Next (New_M, B_Right).Prev_Block_Address = B_Right.Address and then In_Model (New_M, Get_Next (New_M, B_Right))); procedure Join (M : Formal_Model; Left, Right : Block; B : out Block; New_M : out Formal_Model) with Global => null, Depends => (New_M => (M, Left, Right), B => (Left, Right)), Pre => Valid (M) and then In_Model (M, Left) and then In_Model (M, Right) and then Neighbor_Blocks (Left, Right), Post => Valid (New_M) and then In_Model (New_M, B) and then not In_Model (New_M, Left) and then not In_Model (New_M, Right) and then B.Size = Left.Size + Right.Size and then B.Address = Left.Address and then Is_First_Block (M, Left) = Is_First_Block (New_M, B) and then Is_Last_Block (M, Right) = Is_Last_Block (New_M, B) and then B.Prev_Block_Address = Left.Prev_Block_Address and then (if not Is_First_Block (M, Left) then Get_Prev (M, Left) = Get_Prev (New_M, B)) and then (if not Is_Last_Block (M, Right) then Get_Next (M, Right).Address = Get_Next (New_M, B).Address and then Get_Next (M, Right).Size = Get_Next (New_M, B).Size and then Get_Next (New_M, B).Prev_Block_Address = B.Address); end TLSF.Proof.Model.Block;
42.442049
105
0.57983
a108c0eb03a776cce5f2df7cd153fdc37947d89b
2,523
ads
Ada
src/rejuvenation-factory.ads
TNO/Rejuvenation-Ada
8113ec28da3923ccde40d76cbab70e0e614f4b75
[ "BSD-3-Clause" ]
1
2022-03-08T13:00:47.000Z
2022-03-08T13:00:47.000Z
src/libraries/Rejuvenation_Lib/src/rejuvenation-factory.ads
selroc/Renaissance-Ada
39230b34aced4a9d83831be346ca103136c53715
[ "BSD-3-Clause" ]
null
null
null
src/libraries/Rejuvenation_Lib/src/rejuvenation-factory.ads
selroc/Renaissance-Ada
39230b34aced4a9d83831be346ca103136c53715
[ "BSD-3-Clause" ]
null
null
null
with Ada.Containers.Vectors; with GNATCOLL.Projects; package Rejuvenation.Factory is -- This Factory is for backwards compatibility / advanced usage only -- Please use Rejuvenation.Simple_Factory -- Methods to create AST instances from fragments of Ada source code. -- -- The return type of these methods is Analysis_Unit; the AST node can -- be obtained using .Root . -- -- The return type is Analysis_Unit, because AST nodes are only valid as -- long as the corresponding Analysis_Unit is in scope. -- Project methods -------- type Project_Context is private; -- A Project_Context that can be used to open files within a GPR project. function Create_Context return Project_Context; -- Create an empty Project_Context, not associated with any GPR project file. function Open_Project (Project_Path : String) return Project_Context; -- Return a Project_Context for reference resolving within a GPR project. -- Core methods -------- Parse_Exception : exception; -- Exception that indicates that a string could not be parsed. function Open_File (Filename : String; Context : Project_Context := Create_Context) return Analysis_Unit; -- Return AST for the given Ada file. -- Optionally a project-specific Analysis_Context can be specified. package Analysis_Unit_Vectors is new Ada.Containers.Vectors (Positive, Analysis_Unit); -- Data type for list of analysis units. function Open_Files_From_Project (Context : Project_Context; Recursive : Boolean := True) return Analysis_Unit_Vectors.Vector; -- Return ASTs for all Ada files in a GPR project and -- recursively include projects not built separately. function Is_Ada_File_Built_By_Project (Filename : String; Context : Project_Context; Recursive : Boolean := True) return Boolean; -- Check whether a file is an Ada file built by a project. function Is_Project_Main_Program (Node : Ada_Node'Class; Context : Project_Context) return Boolean; -- Check whether a node is a main program of a project. private type Project_Context is record Environment : GNATCOLL.Projects.Project_Environment_Access := null; Project_Tree : GNATCOLL.Projects.Project_Tree_Access := new GNATCOLL.Projects.Project_Tree; Provider : Unit_Provider_Reference := No_Unit_Provider_Reference; Context : Analysis_Context := No_Analysis_Context; end record; end Rejuvenation.Factory;
37.102941
78
0.726516
23eb468c3c1657328b1d45736787f49bb6f565cb
7,819
ads
Ada
bb-runtimes/runtimes/ravenscar-full-stm32f3x4/gnat/a-wichha.ads
JCGobbi/Nucleo-STM32F334R8
2a0b1b4b2664c92773703ac5e95dcb71979d051c
[ "BSD-3-Clause" ]
null
null
null
bb-runtimes/runtimes/ravenscar-full-stm32f3x4/gnat/a-wichha.ads
JCGobbi/Nucleo-STM32F334R8
2a0b1b4b2664c92773703ac5e95dcb71979d051c
[ "BSD-3-Clause" ]
null
null
null
bb-runtimes/runtimes/ravenscar-full-stm32f3x4/gnat/a-wichha.ads
JCGobbi/Nucleo-STM32F334R8
2a0b1b4b2664c92773703ac5e95dcb71979d051c
[ "BSD-3-Clause" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- A D A . W I D E _ C H A R A C T E R S . H A N D L I N G -- -- -- -- S p e c -- -- -- -- This specification is derived from the Ada Reference Manual for use with -- -- GNAT. In accordance with the copyright of that document, you can freely -- -- copy and modify this specification, provided that if you redistribute a -- -- modified version, any changes that you have made are clearly indicated. -- -- -- ------------------------------------------------------------------------------ package Ada.Wide_Characters.Handling is pragma Pure; function Character_Set_Version return String; pragma Inline (Character_Set_Version); -- Returns an implementation-defined identifier that identifies the version -- of the character set standard that is used for categorizing characters -- by the implementation. For GNAT this is "Unicode v.v". function Is_Control (Item : Wide_Character) return Boolean; pragma Inline (Is_Control); -- Returns True if the Wide_Character designated by Item is categorized as -- other_control, otherwise returns False. function Is_Letter (Item : Wide_Character) return Boolean; pragma Inline (Is_Letter); -- Returns True if the Wide_Character designated by Item is categorized as -- letter_uppercase, letter_lowercase, letter_titlecase, letter_modifier, -- letter_other, or number_letter. Otherwise returns False. function Is_Lower (Item : Wide_Character) return Boolean; pragma Inline (Is_Lower); -- Returns True if the Wide_Character designated by Item is categorized as -- letter_lowercase, otherwise returns False. function Is_Upper (Item : Wide_Character) return Boolean; pragma Inline (Is_Upper); -- Returns True if the Wide_Character designated by Item is categorized as -- letter_uppercase, otherwise returns False. function Is_Basic (Item : Wide_Character) return Boolean; pragma Inline (Is_Basic); -- Returns True if the Wide_Character designated by Item has no -- Decomposition Mapping in the code charts of ISO/IEC 10646:2017, -- otherwise returns False. function Is_Digit (Item : Wide_Character) return Boolean; pragma Inline (Is_Digit); -- Returns True if the Wide_Character designated by Item is categorized as -- number_decimal, otherwise returns False. function Is_Decimal_Digit (Item : Wide_Character) return Boolean renames Is_Digit; function Is_Hexadecimal_Digit (Item : Wide_Character) return Boolean; -- Returns True if the Wide_Character designated by Item is categorized as -- number_decimal, or is in the range 'A' .. 'F' or 'a' .. 'f', otherwise -- returns False. function Is_Alphanumeric (Item : Wide_Character) return Boolean; pragma Inline (Is_Alphanumeric); -- Returns True if the Wide_Character designated by Item is categorized as -- letter_uppercase, letter_lowercase, letter_titlecase, letter_modifier, -- letter_other, number_letter, or number_decimal; otherwise returns False. function Is_Special (Item : Wide_Character) return Boolean; pragma Inline (Is_Special); -- Returns True if the Wide_Character designated by Item is categorized -- as graphic_character, but not categorized as letter_uppercase, -- letter_lowercase, letter_titlecase, letter_modifier, letter_other, -- number_letter, or number_decimal. Otherwise returns False. function Is_Line_Terminator (Item : Wide_Character) return Boolean; pragma Inline (Is_Line_Terminator); -- Returns True if the Wide_Character designated by Item is categorized as -- separator_line or separator_paragraph, or if Item is a conventional line -- terminator character (CR, LF, VT, or FF). Otherwise returns False. function Is_Mark (Item : Wide_Character) return Boolean; pragma Inline (Is_Mark); -- Returns True if the Wide_Character designated by Item is categorized as -- mark_non_spacing or mark_spacing_combining, otherwise returns False. function Is_Other_Format (Item : Wide_Character) return Boolean; pragma Inline (Is_Other_Format); -- Returns True if the Wide_Character designated by Item is categorized as -- other_format, otherwise returns False. function Is_Punctuation_Connector (Item : Wide_Character) return Boolean; pragma Inline (Is_Punctuation_Connector); -- Returns True if the Wide_Character designated by Item is categorized as -- punctuation_connector, otherwise returns False. function Is_Space (Item : Wide_Character) return Boolean; pragma Inline (Is_Space); -- Returns True if the Wide_Character designated by Item is categorized as -- separator_space, otherwise returns False. function Is_NFKC (Item : Wide_Character) return Boolean; pragma Inline (Is_NFKC); -- Returns True if the Wide_Character designated by Item could be present -- in a string normalized to Normalization Form KC (as defined by Clause -- 21 of ISO/IEC 10646:2017), otherwise returns False. function Is_Graphic (Item : Wide_Character) return Boolean; pragma Inline (Is_Graphic); -- Returns True if the Wide_Character designated by Item is categorized as -- graphic_character, otherwise returns False. function To_Lower (Item : Wide_Character) return Wide_Character; pragma Inline (To_Lower); -- Returns the Simple Lowercase Mapping of the Wide_Character designated by -- Item. If the Simple Lowercase Mapping does not exist for the -- Wide_Character designated by Item, then the value of Item is returned. function To_Lower (Item : Wide_String) return Wide_String; -- Returns the result of applying the To_Lower Wide_Character to -- Wide_Character conversion to each element of the Wide_String designated -- by Item. The result is the null Wide_String if the value of the formal -- parameter is the null Wide_String. function To_Upper (Item : Wide_Character) return Wide_Character; pragma Inline (To_Upper); -- Returns the Simple Uppercase Mapping of the Wide_Character designated by -- Item. If the Simple Uppercase Mapping does not exist for the -- Wide_Character designated by Item, then the value of Item is returned. function To_Upper (Item : Wide_String) return Wide_String; -- Returns the result of applying the To_Upper Wide_Character to -- Wide_Character conversion to each element of the Wide_String designated -- by Item. The result is the null Wide_String if the value of the formal -- parameter is the null Wide_String. function To_Basic (Item : Wide_Character) return Wide_Character; pragma Inline (To_Basic); -- Returns the Wide_Character whose code point is given by the first value -- of its Decomposition Mapping in the code charts of ISO/IEC 10646:2017 if -- any, returns Item otherwise. function To_Basic (Item : Wide_String) return Wide_String; -- Returns the result of applying the To_Basic conversion to each -- Wide_Character element of the Wide_String designated by Item. The result -- is the null Wide_String if the value of the formal parameter is the null -- Wide_String. The lower bound of the result Wide_String is 1. end Ada.Wide_Characters.Handling;
51.440789
79
0.684359
5098d6b2a762e674be34a63db33cf5ac3e7b9dbf
8,137
ads
Ada
support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/s-ficobl.ads
orb-zhuchen/Orb
6da2404b949ac28bde786e08bf4debe4a27cd3a0
[ "CNRI-Python-GPL-Compatible", "MIT" ]
null
null
null
support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/s-ficobl.ads
orb-zhuchen/Orb
6da2404b949ac28bde786e08bf4debe4a27cd3a0
[ "CNRI-Python-GPL-Compatible", "MIT" ]
null
null
null
support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/s-ficobl.ads
orb-zhuchen/Orb
6da2404b949ac28bde786e08bf4debe4a27cd3a0
[ "CNRI-Python-GPL-Compatible", "MIT" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- S Y S T E M . F I L E _ C O N T R O L _ B L O C K -- -- -- -- 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 contains the declaration of the basic file control block -- shared between Text_IO, Sequential_IO, Direct_IO and Streams.Stream_IO. -- The actual control blocks are derived from this block by extension. The -- control block is itself derived from Ada.Streams.Root_Stream_Type which -- facilitates implementation of Stream_IO.Stream and Text_Streams.Stream. with Ada.Streams; with Interfaces.C_Streams; with System.CRTL; package System.File_Control_Block is pragma Preelaborate; ---------------------------- -- Ada File Control Block -- ---------------------------- -- The Ada file control block is an abstract extension of the root -- stream type. This allows a file to be treated directly as a stream -- for the purposes of Stream_IO, or stream operations on a text file. -- The individual I/O packages extend this type with package specific -- fields to create the concrete types to which the routines in this -- package can be applied. -- The type File_Type in the individual packages is an access to the -- extended file control block. The value is null if the file is not -- open, and a pointer to the control block if the file is open. type Pstring is access all String; -- Used to hold name and form strings type File_Mode is (In_File, Inout_File, Out_File, Append_File); subtype Read_File_Mode is File_Mode range In_File .. Inout_File; -- File mode (union of file modes permitted by individual packages, -- the types File_Mode in the individual packages are declared to -- allow easy conversion to and from this general type. type Shared_Status_Type is (Yes, No, None); -- This type is used to define the sharing status of a file. The default -- setting of None is used if no "shared=xxx" appears in the form string -- when a file is created or opened. For a file with Shared_Status set to -- None, Use_Error will be raised if any other file is opened or created -- with the same full name. Yes/No are set in response to the presence -- of "shared=yes" or "shared=no" in the form string. In either case it -- is permissible to have multiple files opened with the same full name. -- All files opened simultaneously with "shared=yes" will share the same -- stream with the semantics specified in the RM for file sharing. All -- files opened with "shared=no" will have their own stream. type AFCB is tagged; type AFCB_Ptr is access all AFCB'Class; type AFCB is abstract new Ada.Streams.Root_Stream_Type with record Stream : Interfaces.C_Streams.FILEs; -- The file descriptor Name : Pstring; -- A pointer to the file name. The file name is null for temporary -- files, and also for standard files (stdin, stdout, stderr). The -- name is always NUL-terminated if it is non-null. Encoding : System.CRTL.Filename_Encoding; -- Encoding used to specified the filename Form : Pstring; -- A pointer to the form string. This is the string used in the -- fopen call, and must be supplied by the caller (there are no -- defaults at this level). The string is always null-terminated. Mode : File_Mode; -- The file mode. No checks are made that the mode is consistent -- with the form used to fopen the file. Is_Regular_File : Boolean; -- A flag indicating if the file is a regular file Is_Temporary_File : Boolean; -- A flag set only for temporary files (i.e. files created using the -- Create function with a null name parameter). Is_System_File : Boolean; -- A flag set only for system files (stdin, stdout, stderr) Text_Encoding : Interfaces.C_Streams.Content_Encoding; -- A flag set to describe file content encoding Shared_Status : Shared_Status_Type; -- Indicates sharing status of file, see description of type above Access_Method : Character; -- Set to 'Q', 'S', 'T', 'D' for Sequential_IO, Stream_IO, Text_IO, -- Direct_IO file (used to validate file sharing request). Next : AFCB_Ptr; Prev : AFCB_Ptr; -- All open files are kept on a doubly linked chain, with these -- pointers used to maintain the next and previous pointers. end record; ---------------------------------- -- Primitive Operations of AFCB -- ---------------------------------- -- Note that we inherit the abstract operations Read and Write from -- the base type. These must be overridden by the individual file -- access methods to provide Stream Read/Write access. function AFCB_Allocate (Control_Block : AFCB) return AFCB_Ptr is abstract; -- Given a control block, allocate space for a control block of the same -- type on the heap, and return the pointer to this allocated block. Note -- that the argument Control_Block is not used other than as the argument -- that controls which version of AFCB_Allocate is called. procedure AFCB_Close (File : not null access AFCB) is abstract; -- Performs any specialized close actions on a file before the file is -- actually closed at the system level. This is called by Close, and -- the reason we need the primitive operation is for the automatic -- close operations done as part of finalization. procedure AFCB_Free (File : not null access AFCB) is abstract; -- Frees the AFCB referenced by the given parameter. It is not necessary -- to free the strings referenced by the Form and Name fields, but if the -- extension has any other heap objects, they must be freed as well. This -- procedure must be overridden by each individual file package. end System.File_Control_Block;
50.85625
78
0.599361
4d98a187b678f6f2a6654f7ef8e728408769c9df
4,697
adb
Ada
ladspa/examples/amp-stereo.adb
Lucretia/aplug
1942a220e47184935b3c9777c40f731e67a38341
[ "BSD-3-Clause" ]
2
2019-12-07T22:17:46.000Z
2019-12-09T17:06:48.000Z
ladspa/examples/amp-stereo.adb
Lucretia/aplug
1942a220e47184935b3c9777c40f731e67a38341
[ "BSD-3-Clause" ]
null
null
null
ladspa/examples/amp-stereo.adb
Lucretia/aplug
1942a220e47184935b3c9777c40f731e67a38341
[ "BSD-3-Clause" ]
null
null
null
-- with Ada.Text_IO; use Ada.Text_IO; with Ada.Unchecked_Conversion; with Ada.Unchecked_Deallocation; with Interfaces.C.Pointers; with System; package body Amp.Stereo is use type LADSPA.Data_Ptr; use type LADSPA.Handles; type Amplifiers is record Gain_Value : LADSPA.Data_Ptr; Input_Buffer_1 : LADSPA.Data_Ptr; Output_Buffer_1 : LADSPA.Data_Ptr; Input_Buffer_2 : LADSPA.Data_Ptr; Output_Buffer_2 : LADSPA.Data_Ptr; end record; type Amplifier_Ptr is access all Amplifiers with Convention => C; function Convert is new Ada.Unchecked_Conversion (Source => LADSPA.Handles, Target => Amplifier_Ptr); function Convert is new Ada.Unchecked_Conversion (Source => Amplifier_Ptr, Target => LADSPA.Handles); procedure Free is new Ada.Unchecked_Deallocation (Object => Amplifiers, Name => Amplifier_Ptr); -- Create and destroy handles (access to Amplifiers). function Instantiate (Descriptor : access constant LADSPA.Descriptors; Sample_Rate : C.unsigned_long) return LADSPA.Handles is use type LADSPA.Descriptors; begin return Convert (new Amplifiers); end Instantiate; procedure Clean_Up (Instance : in LADSPA.Handles) is Amp : Amplifier_Ptr := null; begin if Instance /= null then Amp := Convert (Instance); if Amp /= null then Free (Amp); -- else -- Put_Line ("Clean_Up - Amp is null"); end if; -- else -- Put_Line ("Clean_Up - Instance is null"); end if; end Clean_Up; procedure Connect_Port (Instance : in LADSPA.Handles; Port : in C.unsigned_long; Data_Location : in LADSPA.Data_Ptr) is Amp : Amplifier_Ptr := Convert (Instance); Actual_Port : constant Port_Numbers := Port_Numbers'Val (Port); use type LADSPA.Handles; begin if Instance /= null then if Amp /= null then case Actual_Port is when Gain => Amp.Gain_Value := Data_Location; when Input_1 => Amp.Input_Buffer_1 := Data_Location; when Output_1 => Amp.Output_Buffer_1 := Data_Location; when Input_2 => Amp.Input_Buffer_2 := Data_Location; when Output_2 => Amp.Output_Buffer_2 := Data_Location; end case; end if; end if; end Connect_Port; -- procedure Activate (Instance : in out LADSPA.Handles) is -- begin -- Put_Line (">>> " & C.unsigned_long'Image (Stereo_Descriptor.Port_Count)); -- null; -- end Activate; -- procedure Deactivate (Instance : in out Handles) is -- begin -- null; -- end; -- WARNING: Cannot do IO or memory allocations here. procedure Run (Instance : in LADSPA.Handles; Sample_Count : in C.unsigned_long) is Amp : Amplifier_Ptr := Convert (Instance); Gain : constant LADSPA.Data := Amp.Gain_Value.all; package Amp_Ptrs is new Interfaces.C.Pointers (Index => C.unsigned_long, Element => LADSPA.Data, Element_Array => LADSPA.Data_Array, Default_Terminator => 0.0); Input_Left : Amp_Ptrs.Pointer := Amp_Ptrs.Pointer (Amp.Input_Buffer_1); Output_Left : Amp_Ptrs.Pointer := Amp_Ptrs.Pointer (Amp.Output_Buffer_1); Input_Right : Amp_Ptrs.Pointer := Amp_Ptrs.Pointer (Amp.Input_Buffer_2); Output_Right : Amp_Ptrs.Pointer := Amp_Ptrs.Pointer (Amp.Output_Buffer_2); use type LADSPA.Data; begin for Index in 0 .. Sample_Count loop Output_Left.all := Input_Left.all * Gain; Output_Right.all := Input_Right.all * Gain; Amp_Ptrs.Increment (Input_Left); Amp_Ptrs.Increment (Output_Left); Amp_Ptrs.Increment (Input_Right); Amp_Ptrs.Increment (Output_Right); end loop; exception when others => null; -- Silently catch for now. end Run; -- procedure Run_Adding (Instance : in out Handles; Sample_Count : in unsigned_long) is -- begin -- null; -- end; -- procedure Run_Adding_Gain (Instance : in out Handles; Gain : in Data) is -- begin -- null; -- end; overriding procedure Finalize (Self : in out Stereo_Descriptors) is C_Str : C.Strings.chars_ptr; begin for C_Str_Index in Port_Numbers loop C_Str := Stereo_Port_Names (C_Str_Index); C.Strings.Free (C_Str); end loop; end Finalize; end Amp.Stereo;
30.901316
105
0.611454
18c961ba0c43f77e9e97d9ac1a21eb0b24bd6eed
2,539
adb
Ada
drivers/linear_solver_test.adb
sciencylab/lagrangian-solver
0f77265c1105658a27a9fa316bf5f046ac233774
[ "MIT" ]
null
null
null
drivers/linear_solver_test.adb
sciencylab/lagrangian-solver
0f77265c1105658a27a9fa316bf5f046ac233774
[ "MIT" ]
null
null
null
drivers/linear_solver_test.adb
sciencylab/lagrangian-solver
0f77265c1105658a27a9fa316bf5f046ac233774
[ "MIT" ]
null
null
null
with Numerics, Numerics.Sparse_Matrices, Numerics.Sparse_Matrices.CSparse; use Numerics, Numerics.Sparse_Matrices, Numerics.Sparse_Matrices.CSparse; with Ada.Text_IO; use Ada.Text_IO; with Ada.Containers; use Ada.Containers; procedure Linear_Solver_Test is use Real_IO, Int_IO, Real_Functions; Mat : Sparse_Matrix; LU : LU_Type; SX : Sparse_Vector; SB : Sparse_Vector; SY : Sparse_Vector; Y : Sparse_Vector; Dir : String := "matrices/sparse-triplet/zero-based/"; Res : Real; begin Put ("Read Matrix . . ."); ------ Rectangular Matrices ----------------- -- Mat := Read_Sparse_Triplet (Dir & "ash219_st.txt"); -- 3.6K -- Mat := Transpose (Mat) * Mat; ------ Square Matrices ---------------------- -- Mat := Read_Sparse_Triplet (Dir & "a5by5_st.txt"); -- 611 -- Mat := Read_Sparse_Triplet (Dir & "bcsstk01_st.txt"); -- 4.9K Mat := Read_Sparse_Triplet (Dir & "bcsstk16_st.txt"); -- 3.7M -- Mat := Read_Sparse_Triplet (Dir & "fs_183_1_st.txt"); -- 24K -- Mat := Read_Sparse_Triplet (Dir & "kershaw_st.txt"); -- 564 -- Mat := Read_Sparse_Triplet (Dir & "t1_st.txt"); -- 80 -- Mat := Read_Sparse_Triplet (Dir & "west0067_st.txt"); -- 3.9K Put_Line ("finished"); ----- Print matrix' info -------------- Put ("Size of matrix: "); Put (N_Row (Mat), 0); Put (" x "); Put (N_Col (Mat), 0); New_Line; Put ("Number of entries: "); Put (Number_Of_Elements (Mat), 0); New_Line; ----- Set size of vectors X and B ---- Set_Length (SB, N_Col (Mat)); Set_Length (SX, N_Col (Mat)); ----- Begin LU Decomposition --------- Put ("LU Decomposition . . ."); LU := LU_Decomposition (Mat); Put_Line ("finished"); ------ Begin tests ------------------------ Put_Line ("Begin testing . . ."); for K in 1 .. 10 loop Put ("Trial "); Put (K, Width => 2); Put (": "); for I in 1 .. N_Col (Mat) loop Set (SB, I, (10.0 * Rand) ** 10 * Sin (10.0 * Rand)); end loop; SX := Solve (LU, SB); SY := SB - Mat * SX; Y := SB - Mat * Solve (Mat, SB); -- Res := Norm (SY - Y); -- Res := Norm (Y) / Real'Max (1.0, Norm (SB)); -- Put (" Norm (Res) = "); Put (Res, Fore => 1, Aft => 1, Exp => 3); -- Put_Line (if Res > 1.0e-10 then " ***" else ""); end loop; Put_Line ("tests completed"); end loop; ---- Free memory allocated by LU : LU_Type ------- Free (LU); end Linear_Solver_Test;
33.407895
76
0.539976
4ac3fd83aca7d66bb4c7c80be20bf0621a834a4b
4,120
ads
Ada
Validation/pyFrame3DD-master/gcc-master/gcc/ada/indepsw.ads
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
Validation/pyFrame3DD-master/gcc-master/gcc/ada/indepsw.ads
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
Validation/pyFrame3DD-master/gcc-master/gcc/ada/indepsw.ads
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- I N D E P S W -- -- -- -- S p e c -- -- -- -- Copyright (C) 2004-2020, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ -- GNATLINK platform-independent switches -- Used to convert GNAT switches to their platform-dependent switch -- equivalent for the underlying linker. with System.OS_Lib; use System.OS_Lib; package Indepsw is type Switch_Kind is -- Independent switches currently supported (Map_File); -- Produce a map file. The path name of the map file to produce -- is given as an argument. procedure Convert (Switch : Switch_Kind; Argument : String; To : out String_List_Access); -- Convert Switch to the platform-dependent linker switch (with or without -- additional arguments) To. Issue a warning if Switch is not supported -- for the platform; in this case, To is set to null. function Is_Supported (Switch : Switch_Kind) return Boolean; -- Return True for each independent switch supported by the platform private -- Default warning messages when the switches are not supported by the -- implementation. These are in the spec so that the platform specific -- bodies do not need to redefine them. Map_File_Not_Supported : aliased String := "the underlying linker does not allow the output of a map file"; No_Support_For : constant array (Switch_Kind) of String_Access := (Map_File => Map_File_Not_Supported'Access); -- All implementations of procedure Convert should include a case -- statements with a "when others =>" choice that output the default -- warning message: -- case Switch is -- when ... => -- ... -- when others => -- Write_Str ("warning: "); -- Write_Line (No_Support_For (Switch).all); -- To := null; -- end case; end Indepsw;
49.638554
78
0.491505
1c1fe3eacd7678dbd62d562ab801a4a09de4c3eb
20,263
adb
Ada
awa/plugins/awa-storages/src/awa-storages-services.adb
fuzzysloth/ada-awa
f9b921eeea29841667a028f2fc4528e4385d247a
[ "Apache-2.0" ]
null
null
null
awa/plugins/awa-storages/src/awa-storages-services.adb
fuzzysloth/ada-awa
f9b921eeea29841667a028f2fc4528e4385d247a
[ "Apache-2.0" ]
null
null
null
awa/plugins/awa-storages/src/awa-storages-services.adb
fuzzysloth/ada-awa
f9b921eeea29841667a028f2fc4528e4385d247a
[ "Apache-2.0" ]
null
null
null
----------------------------------------------------------------------- -- awa-storages-services -- Storage service -- Copyright (C) 2012, 2013, 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 Util.Log.Loggers; with Util.Strings; with ADO.Objects; with ADO.Queries; with ADO.SQL; with ADO.Statements; with ADO.Sessions.Entities; with AWA.Services.Contexts; with AWA.Workspaces.Models; with AWA.Workspaces.Modules; with AWA.Permissions; with AWA.Storages.Stores.Files; package body AWA.Storages.Services is use AWA.Services; Log : constant Util.Log.Loggers.Logger := Util.Log.Loggers.Create ("AWA.Storages.Services"); -- ------------------------------ -- Get the persistent store that manages the data store identified by <tt>Kind</tt>. -- ------------------------------ function Get_Store (Service : in Storage_Service; Kind : in AWA.Storages.Models.Storage_Type) return AWA.Storages.Stores.Store_Access is begin return Service.Stores (Kind); end Get_Store; -- ------------------------------ -- Initializes the storage service. -- ------------------------------ overriding procedure Initialize (Service : in out Storage_Service; Module : in AWA.Modules.Module'Class) is Root : constant String := Module.Get_Config (Stores.Files.Root_Directory_Parameter.P); Tmp : constant String := Module.Get_Config (Stores.Files.Tmp_Directory_Parameter.P); begin AWA.Modules.Module_Manager (Service).Initialize (Module); Service.Stores (Storages.Models.DATABASE) := Service.Database_Store'Unchecked_Access; Service.Stores (Storages.Models.FILE) := AWA.Storages.Stores.Files.Create_File_Store (Root); Service.Stores (Storages.Models.TMP) := AWA.Storages.Stores.Files.Create_File_Store (Tmp); Service.Database_Store.Tmp := Service.Stores (Storages.Models.TMP); end Initialize; -- ------------------------------ -- Create or save the folder. -- ------------------------------ procedure Save_Folder (Service : in Storage_Service; Folder : in out AWA.Storages.Models.Storage_Folder_Ref'Class) is pragma Unreferenced (Service); Ctx : constant Contexts.Service_Context_Access := AWA.Services.Contexts.Current; DB : ADO.Sessions.Master_Session := AWA.Services.Contexts.Get_Master_Session (Ctx); Workspace : AWA.Workspaces.Models.Workspace_Ref; begin if not Folder.Is_Null then Workspace := AWA.Workspaces.Models.Workspace_Ref (Folder.Get_Workspace); end if; if Workspace.Is_Null then AWA.Workspaces.Modules.Get_Workspace (DB, Ctx, Workspace); Folder.Set_Workspace (Workspace); end if; -- Check that the user has the create folder permission on the given workspace. AWA.Permissions.Check (Permission => ACL_Create_Folder.Permission, Entity => Workspace); Ctx.Start; if not Folder.Is_Inserted then Folder.Set_Create_Date (Ada.Calendar.Clock); Folder.Set_Owner (Ctx.Get_User); end if; Folder.Save (DB); Ctx.Commit; end Save_Folder; -- ------------------------------ -- Load the folder instance identified by the given identifier. -- ------------------------------ procedure Load_Folder (Service : in Storage_Service; Folder : in out AWA.Storages.Models.Storage_Folder_Ref'Class; Id : in ADO.Identifier) is pragma Unreferenced (Service); Ctx : constant Contexts.Service_Context_Access := AWA.Services.Contexts.Current; DB : ADO.Sessions.Master_Session := AWA.Services.Contexts.Get_Master_Session (Ctx); begin Folder.Load (Session => DB, Id => Id); end Load_Folder; -- ------------------------------ -- Load the storage instance identified by the given identifier. -- ------------------------------ procedure Load_Storage (Service : in Storage_Service; Storage : in out AWA.Storages.Models.Storage_Ref'Class; Id : in ADO.Identifier) is pragma Unreferenced (Service); Ctx : constant Contexts.Service_Context_Access := AWA.Services.Contexts.Current; DB : ADO.Sessions.Session := AWA.Services.Contexts.Get_Session (Ctx); begin Storage.Load (Session => DB, Id => Id); end Load_Storage; -- ------------------------------ -- Load the storage instance stored in a folder and identified by a name. -- ------------------------------ procedure Load_Storage (Service : in Storage_Service; Storage : in out AWA.Storages.Models.Storage_Ref'Class; Folder : in ADO.Identifier; Name : in String; Found : out Boolean) is pragma Unreferenced (Service); Ctx : constant Contexts.Service_Context_Access := AWA.Services.Contexts.Current; DB : ADO.Sessions.Session := AWA.Services.Contexts.Get_Session (Ctx); Query : ADO.SQL.Query; begin Query.Bind_Param ("folder_id", Folder); Query.Bind_Param ("name", Name); Query.Set_Filter ("folder_id = :folder_id AND name = :name AND original_id IS NULL"); Storage.Find (Session => DB, Query => Query, Found => Found); if not Found then Log.Warn ("Storage file {0} not found in folder {1}", Name, ADO.Identifier'Image (Folder)); end if; end Load_Storage; -- ------------------------------ -- Save the data object contained in the <b>Data</b> part element into the -- target storage represented by <b>Into</b>. -- ------------------------------ procedure Save (Service : in Storage_Service; Into : in out AWA.Storages.Models.Storage_Ref'Class; Data : in ASF.Parts.Part'Class; Storage : in AWA.Storages.Models.Storage_Type) is begin Storage_Service'Class (Service).Save (Into, Data.Get_Local_Filename, Storage); end Save; -- ------------------------------ -- Save the file described <b>File</b> in the storage -- object represented by <b>Into</b> and managed by the storage service. -- ------------------------------ procedure Save (Service : in Storage_Service; Into : in out AWA.Storages.Models.Storage_Ref'Class; File : in AWA.Storages.Storage_File; Storage : in AWA.Storages.Models.Storage_Type) is begin Storage_Service'Class (Service).Save (Into, AWA.Storages.Get_Path (File), Storage); end Save; -- ------------------------------ -- Save the file pointed to by the <b>Path</b> string in the storage -- object represented by <b>Into</b> and managed by the storage service. -- ------------------------------ procedure Save (Service : in Storage_Service; Into : in out AWA.Storages.Models.Storage_Ref'Class; Path : in String; Storage : in AWA.Storages.Models.Storage_Type) is use type AWA.Storages.Models.Storage_Type; use type Stores.Store_Access; Ctx : constant Contexts.Service_Context_Access := AWA.Services.Contexts.Current; DB : ADO.Sessions.Master_Session := AWA.Services.Contexts.Get_Master_Session (Ctx); Workspace : AWA.Workspaces.Models.Workspace_Ref; Store : Stores.Store_Access; Created : Boolean; begin Log.Info ("Save {0} in storage space", Path); Into.Set_Storage (Storage); Store := Storage_Service'Class (Service).Get_Store (Into.Get_Storage); if Store = null then Log.Error ("There is no store for storage {0}", Models.Storage_Type'Image (Storage)); end if; if not Into.Is_Null then Workspace := AWA.Workspaces.Models.Workspace_Ref (Into.Get_Workspace); end if; if Workspace.Is_Null then AWA.Workspaces.Modules.Get_Workspace (DB, Ctx, Workspace); Into.Set_Workspace (Workspace); end if; -- Check that the user has the create storage permission on the given workspace. AWA.Permissions.Check (Permission => ACL_Create_Storage.Permission, Entity => Workspace); Ctx.Start; Created := not Into.Is_Inserted; if Created then Into.Set_Create_Date (Ada.Calendar.Clock); Into.Set_Owner (Ctx.Get_User); end if; Into.Save (DB); Store.Save (DB, Into, Path); Into.Save (DB); -- Notify the listeners. if Created then Storage_Lifecycle.Notify_Create (Service, Into); else Storage_Lifecycle.Notify_Update (Service, Into); end if; Ctx.Commit; end Save; -- ------------------------------ -- Load the storage content identified by <b>From</b> into the blob descriptor <b>Into</b>. -- Raises the <b>NOT_FOUND</b> exception if there is no such storage. -- ------------------------------ procedure Load (Service : in Storage_Service; From : in ADO.Identifier; Name : out Ada.Strings.Unbounded.Unbounded_String; Mime : out Ada.Strings.Unbounded.Unbounded_String; Date : out Ada.Calendar.Time; Into : out ADO.Blob_Ref) is use type AWA.Storages.Models.Storage_Type; use type AWA.Storages.Stores.Store_Access; Ctx : constant Contexts.Service_Context_Access := AWA.Services.Contexts.Current; User : constant ADO.Identifier := Ctx.Get_User_Identifier; DB : ADO.Sessions.Session := AWA.Services.Contexts.Get_Session (Ctx); Query : ADO.Statements.Query_Statement := DB.Create_Statement (Models.Query_Storage_Get_Data); Kind : AWA.Storages.Models.Storage_Type; begin Query.Bind_Param ("store_id", From); Query.Bind_Param ("user_id", User); ADO.Sessions.Entities.Bind_Param (Query, "table", AWA.Workspaces.Models.WORKSPACE_TABLE, DB); Query.Execute; if not Query.Has_Elements then Log.Warn ("Storage entity {0} not found", ADO.Identifier'Image (From)); raise ADO.Objects.NOT_FOUND; end if; Mime := Query.Get_Unbounded_String (0); Date := Query.Get_Time (1); Name := Query.Get_Unbounded_String (2); Kind := AWA.Storages.Models.Storage_Type'Val (Query.Get_Integer (4)); if Kind = AWA.Storages.Models.DATABASE then Into := Query.Get_Blob (5); else declare Store : Stores.Store_Access; Storage : AWA.Storages.Models.Storage_Ref; File : AWA.Storages.Storage_File (TMP); Found : Boolean; begin Store := Storage_Service'Class (Service).Get_Store (Kind); if Store = null then Log.Error ("There is no store for storage {0}", Models.Storage_Type'Image (Kind)); end if; Storage.Load (DB, From, Found); if not Found then Log.Warn ("Storage entity {0} not found", ADO.Identifier'Image (From)); raise ADO.Objects.NOT_FOUND; end if; Store.Load (DB, Storage, File); Into := ADO.Create_Blob (AWA.Storages.Get_Path (File)); end; end if; end Load; -- Load the storage content into a file. If the data is not stored in a file, a temporary -- file is created with the data content fetched from the store (ex: the database). -- The `Mode` parameter indicates whether the file will be read or written. -- The `Expire` parameter allows to control the expiration of the temporary file. procedure Get_Local_File (Service : in Storage_Service; From : in ADO.Identifier; Mode : in Read_Mode := READ; Into : in out Storage_File) is use type Stores.Store_Access; use type Models.Storage_Type; Ctx : constant Contexts.Service_Context_Access := AWA.Services.Contexts.Current; User : constant ADO.Identifier := Ctx.Get_User_Identifier; DB : ADO.Sessions.Master_Session := AWA.Services.Contexts.Get_Master_Session (Ctx); Query : ADO.Queries.Context; Found : Boolean; Storage : AWA.Storages.Models.Storage_Ref; Local : AWA.Storages.Models.Store_Local_Ref; Store : Stores.Store_Access; begin if Into.Storage = AWA.Storages.DATABASE then Log.Error ("'DATABASE' is not a valid storage type for local file"); return; end if; if Mode = READ then Query.Set_Query (AWA.Storages.Models.Query_Storage_Get_Local); Query.Bind_Param ("store_id", From); Query.Bind_Param ("user_id", User); ADO.Sessions.Entities.Bind_Param (Query, "table", AWA.Workspaces.Models.WORKSPACE_TABLE, DB); Local.Find (DB, Query, Found); if Found then Into.Path := Local.Get_Path; Log.Info ("Load local file {0} path {1}", ADO.Identifier'Image (From), Ada.Strings.Unbounded.To_String (Into.Path)); return; end if; end if; Query.Set_Query (AWA.Storages.Models.Query_Storage_Get_Storage); Query.Bind_Param ("store_id", From); Query.Bind_Param ("user_id", User); ADO.Sessions.Entities.Bind_Param (Query, "table", AWA.Workspaces.Models.WORKSPACE_TABLE, DB); Storage.Find (DB, Query, Found); if not Found then Log.Info ("File Id {0} not found", ADO.Identifier'Image (From)); raise ADO.Objects.NOT_FOUND; end if; Ctx.Start; Store := Storage_Service'Class (Service).Get_Store (Storage.Get_Storage); Store.Load (Session => DB, From => Storage, Into => Into); Ctx.Commit; Log.Info ("Load local file {0} path {1}", ADO.Identifier'Image (From), Ada.Strings.Unbounded.To_String (Into.Path)); end Get_Local_File; procedure Create_Local_File (Service : in out Storage_Service; Into : in out AWA.Storages.Storage_File) is use Ada.Strings.Unbounded; Tmp : constant String := Service.Get_Config (Stores.Files.Tmp_Directory_Parameter.P); Value : Integer; begin Util.Concurrent.Counters.Increment (Service.Temp_Id, Value); Into.Path := To_Unbounded_String (Tmp & "/tmp-" & Util.Strings.Image (Value)); end Create_Local_File; -- ------------------------------ -- Create a temporary file path. -- ------------------------------ procedure Create (Service : in out Storage_Service; Into : out AWA.Storages.Storage_File; Storage : in AWA.Storages.Models.Storage_Type) is use type Stores.Store_Access; Store : Stores.Store_Access; begin Store := Storage_Service'Class (Service).Get_Store (Storage); if Store = null then Log.Error ("There is no store for storage {0}", Models.Storage_Type'Image (Storage)); end if; end Create; -- ------------------------------ -- Deletes the storage instance. -- ------------------------------ procedure Delete (Service : in Storage_Service; Storage : in out AWA.Storages.Models.Storage_Ref'Class) is Ctx : constant Contexts.Service_Context_Access := AWA.Services.Contexts.Current; DB : ADO.Sessions.Master_Session := AWA.Services.Contexts.Get_Master_Session (Ctx); Id : constant ADO.Identifier := ADO.Objects.Get_Value (Storage.Get_Key); begin Log.Info ("Delete storage {0}", ADO.Identifier'Image (Id)); -- Check that the user has the delete storage permission on the given workspace. AWA.Permissions.Check (Permission => ACL_Delete_Storage.Permission, Entity => Storage); Ctx.Start; Storage_Lifecycle.Notify_Delete (Service, Storage); Storage.Delete (DB); Ctx.Commit; end Delete; -- ------------------------------ -- Deletes the storage instance. -- ------------------------------ procedure Delete (Service : in Storage_Service; Storage : in ADO.Identifier) is use type Stores.Store_Access; Ctx : constant Contexts.Service_Context_Access := AWA.Services.Contexts.Current; DB : ADO.Sessions.Master_Session := AWA.Services.Contexts.Get_Master_Session (Ctx); S : AWA.Storages.Models.Storage_Ref; Query : ADO.Statements.Query_Statement := DB.Create_Statement (AWA.Storages.Models.Query_Storage_Delete_Local); Store : Stores.Store_Access; begin Log.Info ("Delete storage {0}", ADO.Identifier'Image (Storage)); -- Check that the user has the delete storage permission on the given workspace. AWA.Permissions.Check (Permission => ACL_Delete_Storage.Permission, Entity => Storage); Ctx.Start; S.Load (Id => Storage, Session => DB); Store := Storage_Service'Class (Service).Get_Store (S.Get_Storage); if Store = null then Log.Error ("There is no store associated with storage item {0}", ADO.Identifier'Image (Storage)); else Store.Delete (DB, S); end if; Storage_Lifecycle.Notify_Delete (Service, S); -- Delete the storage instance and all storage that refer to it. declare Stmt : ADO.Statements.Delete_Statement := DB.Create_Statement (AWA.Storages.Models.STORAGE_TABLE); begin Stmt.Set_Filter (Filter => "id = ? OR original_id = ?"); Stmt.Add_Param (Value => Storage); Stmt.Add_Param (Value => Storage); Stmt.Execute; end; -- Delete the local storage instances. Query.Bind_Param ("store_id", Storage); Query.Execute; S.Delete (DB); Ctx.Commit; end Delete; -- ------------------------------ -- Publish or not the storage instance. -- ------------------------------ procedure Publish (Service : in Storage_Service; Id : in ADO.Identifier; State : in Boolean; File : in out AWA.Storages.Models.Storage_Ref'Class) is pragma Unreferenced (Service); Ctx : constant Contexts.Service_Context_Access := AWA.Services.Contexts.Current; DB : ADO.Sessions.Master_Session := AWA.Services.Contexts.Get_Master_Session (Ctx); begin Ctx.Start; -- Check that the user has the permission to publish for the given comment. AWA.Permissions.Check (Permission => ACL_Delete_Storage.Permission, Entity => Id); File.Load (DB, Id); File.Set_Is_Public (State); File.Save (DB); declare Update : ADO.Statements.Update_Statement := DB.Create_Statement (AWA.Storages.Models.STORAGE_TABLE); begin Update.Set_Filter (Filter => "original_id = ?"); Update.Save_Field ("is_public", State); Update.Add_Param (Id); Update.Execute; end; Ctx.Commit; end Publish; end AWA.Storages.Services;
42.214583
98
0.592607
4d7bca9781e955e6d90ffa0d67823df2f0d30cdd
20,534
ads
Ada
llvm-gcc-4.2-2.9/gcc/ada/s-osinte-interix.ads
vidkidz/crossbridge
ba0bf94aee0ce6cf7eb5be882382e52bc57ba396
[ "MIT" ]
1
2016-04-09T02:58:13.000Z
2016-04-09T02:58:13.000Z
llvm-gcc-4.2-2.9/gcc/ada/s-osinte-interix.ads
vidkidz/crossbridge
ba0bf94aee0ce6cf7eb5be882382e52bc57ba396
[ "MIT" ]
null
null
null
llvm-gcc-4.2-2.9/gcc/ada/s-osinte-interix.ads
vidkidz/crossbridge
ba0bf94aee0ce6cf7eb5be882382e52bc57ba396
[ "MIT" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- S Y S T E M . O S _ I N T E R F A C E -- -- -- -- S p e c -- -- -- -- Copyright (C) 1991-1994, Florida State University -- -- Copyright (C) 1995-2005, 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 2, or (at your option) any later ver- -- -- sion. GNARL is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -- -- for more details. You should have received a copy of the GNU General -- -- Public License distributed with GNARL; 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. -- -- -- -- GNARL was developed by the GNARL team at Florida State University. -- -- Extensive contributions were provided by Ada Core Technologies, Inc. -- -- -- ------------------------------------------------------------------------------ -- This is a OpenNT/Interix (FSU THREADS) version of this package -- This package encapsulates all direct interfaces to OS services -- that are needed by children of System. -- PLEASE DO NOT add any with-clauses to this package or remove the pragma -- Preelaborate. This package is designed to be a bottom-level (leaf) package. with Interfaces.C; with Unchecked_Conversion; package System.OS_Interface is pragma Preelaborate; pragma Linker_Options ("-lgthreads"); pragma Linker_Options ("-lmalloc"); subtype int is Interfaces.C.int; subtype short is Interfaces.C.short; subtype long is Interfaces.C.long; subtype unsigned is Interfaces.C.unsigned; subtype unsigned_short is Interfaces.C.unsigned_short; subtype unsigned_long is Interfaces.C.unsigned_long; subtype unsigned_char is Interfaces.C.unsigned_char; subtype plain_char is Interfaces.C.plain_char; subtype size_t is Interfaces.C.size_t; ----------- -- Errno -- ----------- function errno return int; pragma Import (C, errno, "__get_errno"); EAGAIN : constant := 11; EINTR : constant := 4; EINVAL : constant := 22; ENOMEM : constant := 12; ETIMEDOUT : constant := 60; ------------- -- Signals -- ------------- Max_Interrupt : constant := 31; type Signal is new int range 0 .. Max_Interrupt; for Signal'Size use int'Size; SIGHUP : constant := 1; -- hangup SIGINT : constant := 2; -- interrupt (rubout) SIGQUIT : constant := 3; -- quit (ASCD FS) SIGILL : constant := 4; -- illegal instruction (not reset) SIGTRAP : constant := 5; -- trace trap (not reset) SIGIOT : constant := 6; -- IOT instruction SIGABRT : constant := 6; -- used by abort, replace SIGIOT in the future SIGEMT : constant := 0; -- EMT instruction SIGFPE : constant := 8; -- floating point exception SIGKILL : constant := 9; -- kill (cannot be caught or ignored) SIGBUS : constant := 10; -- bus error SIGSEGV : constant := 11; -- segmentation violation SIGSYS : constant := 12; -- bad argument to system call SIGPIPE : constant := 13; -- write on a pipe with no one to read it SIGALRM : constant := 14; -- alarm clock SIGTERM : constant := 15; -- software termination signal from kill SIGUSR1 : constant := 16; -- user defined signal 1 SIGUSR2 : constant := 17; -- user defined signal 2 SIGCLD : constant := 18; -- alias for SIGCHLD SIGCHLD : constant := 18; -- child status change SIGPWR : constant := 0; -- power-fail restart SIGWINCH : constant := 20; -- window size change SIGURG : constant := 21; -- urgent condition on IO channel SIGPOLL : constant := 22; -- pollable event occurred SIGIO : constant := 19; -- I/O possible (Solaris SIGPOLL alias) SIGSTOP : constant := 23; -- stop (cannot be caught or ignored) SIGTSTP : constant := 24; -- user stop requested from tty SIGCONT : constant := 25; -- stopped process has been continued SIGTTIN : constant := 26; -- background tty read attempted SIGTTOU : constant := 27; -- background tty write attempted SIGVTALRM : constant := 28; -- virtual timer expired SIGPROF : constant := 29; -- profiling timer expired SIGXCPU : constant := 30; -- CPU time limit exceeded SIGXFSZ : constant := 31; -- filesize limit exceeded SIGADAABORT : constant := SIGABRT; type Signal_Set is array (Natural range <>) of Signal; Unmasked : constant Signal_Set := (SIGTRAP, SIGALRM, SIGVTALRM, SIGTTIN, SIGTTOU, SIGTSTP, SIGPROF); Reserved : constant Signal_Set := (SIGKILL, SIGSTOP); type sigset_t is private; function sigaddset (set : access sigset_t; sig : Signal) return int; pragma Import (C, sigaddset, "sigaddset"); function sigdelset (set : access sigset_t; sig : Signal) return int; pragma Import (C, sigdelset, "sigdelset"); function sigfillset (set : access sigset_t) return int; pragma Import (C, sigfillset, "sigfillset"); function sigismember (set : access sigset_t; sig : Signal) return int; pragma Import (C, sigismember, "sigismember"); function sigemptyset (set : access sigset_t) return int; pragma Import (C, sigemptyset, "sigemptyset"); type struct_sigaction is record sa_handler : System.Address; sa_mask : sigset_t; sa_flags : int; sa_restorer : System.Address; end record; pragma Convention (C, struct_sigaction); type struct_sigaction_ptr is access all struct_sigaction; SIG_BLOCK : constant := 1; SIG_UNBLOCK : constant := 2; SIG_SETMASK : constant := 3; SIG_DFL : constant := 0; SIG_IGN : constant := 1; SA_SIGINFO : constant := 0; -- Dummy constant for a sa_flags bit. A proper definition is needed only -- for the GCC/ZCX EH scheme (see System.Interrupt_Management). function sigaction (sig : Signal; act : struct_sigaction_ptr; oact : struct_sigaction_ptr) return int; -- FSU pthreads redefines sigaction and then uses a special syscall -- API to call the system version. Doing syscalls on OpenNT is very -- difficult, so we rename the pthread version instead. pragma Import (C, sigaction, "pthread_wrapper_sigaction"); ---------- -- Time -- ---------- Time_Slice_Supported : constant Boolean := False; -- Indicates wether time slicing is supported (i.e FSU threads have been -- compiled with DEF_RR) type timespec is private; type clockid_t is private; CLOCK_REALTIME : constant clockid_t; function clock_gettime (clock_id : clockid_t; tp : access timespec) return int; pragma Import (C, clock_gettime, "clock_gettime"); function To_Duration (TS : timespec) return Duration; pragma Inline (To_Duration); function To_Timespec (D : Duration) return timespec; pragma Inline (To_Timespec); type struct_timeval is private; function To_Duration (TV : struct_timeval) return Duration; pragma Inline (To_Duration); function To_Timeval (D : Duration) return struct_timeval; pragma Inline (To_Timeval); ------------------------- -- Priority Scheduling -- ------------------------- SCHED_FIFO : constant := 0; SCHED_RR : constant := 1; SCHED_OTHER : constant := 2; ------------- -- Process -- ------------- type pid_t is private; function kill (pid : pid_t; sig : Signal) return int; pragma Import (C, kill, "kill"); function getpid return pid_t; pragma Import (C, getpid, "getpid"); --------- -- LWP -- --------- function lwp_self return System.Address; -- lwp_self does not exist on this thread library, revert to pthread_self -- which is the closest approximation (with getpid). This function is -- needed to share 7staprop.adb across POSIX-like targets. pragma Import (C, lwp_self, "pthread_self"); ------------- -- Threads -- ------------- type Thread_Body is access function (arg : System.Address) return System.Address; function Thread_Body_Access is new Unchecked_Conversion (System.Address, Thread_Body); type pthread_t is private; subtype Thread_Id is pthread_t; type pthread_mutex_t is limited private; type pthread_cond_t is limited private; type pthread_attr_t is limited private; type pthread_mutexattr_t is limited private; type pthread_condattr_t is limited private; type pthread_key_t is private; PTHREAD_CREATE_DETACHED : constant := 1; PTHREAD_CREATE_JOINABLE : constant := 0; ----------- -- Stack -- ----------- Stack_Base_Available : constant Boolean := False; -- Indicates wether the stack base is available on this target. -- This allows us to share s-osinte.adb between all the FSU run time. -- Note that this value can only be true if pthread_t has a complete -- definition that corresponds exactly to the C header files. function Get_Stack_Base (thread : pthread_t) return Address; pragma Inline (Get_Stack_Base); -- returns the stack base of the specified thread. -- Only call this function when Stack_Base_Available is True. function Get_Page_Size return size_t; function Get_Page_Size return Address; pragma Import (C, Get_Page_Size, "getpagesize"); -- returns the size of a page, or 0 if this is not relevant on this -- target PROT_NONE : constant := 0; PROT_READ : constant := 1; PROT_WRITE : constant := 2; PROT_EXEC : constant := 4; PROT_ALL : constant := PROT_READ + PROT_WRITE + PROT_EXEC; PROT_ON : constant := PROT_NONE; PROT_OFF : constant := PROT_ALL; function mprotect (addr : Address; len : size_t; prot : int) return int; pragma Import (C, mprotect); --------------------------------------- -- Nonstandard Thread Initialization -- --------------------------------------- procedure pthread_init; -- FSU_THREADS requires pthread_init, which is nonstandard -- and this should be invoked during the elaboration of s-taprop.adb pragma Import (C, pthread_init, "pthread_init"); ------------------------- -- POSIX.1c Section 3 -- ------------------------- function sigwait (set : access sigset_t; sig : access Signal) return int; -- FSU_THREADS has a nonstandard sigwait function pthread_kill (thread : pthread_t; sig : Signal) return int; pragma Import (C, pthread_kill, "pthread_kill"); type sigset_t_ptr is access all sigset_t; function pthread_sigmask (how : int; set : sigset_t_ptr; oset : sigset_t_ptr) return int; pragma Import (C, pthread_sigmask, "pthread_wrapper_sigprocmask"); -------------------------- -- POSIX.1c Section 11 -- -------------------------- function pthread_mutexattr_init (attr : access pthread_mutexattr_t) return int; pragma Import (C, pthread_mutexattr_init, "pthread_mutexattr_init"); function pthread_mutexattr_destroy (attr : access pthread_mutexattr_t) return int; pragma Import (C, pthread_mutexattr_destroy, "pthread_mutexattr_destroy"); function pthread_mutex_init (mutex : access pthread_mutex_t; attr : access pthread_mutexattr_t) return int; pragma Import (C, pthread_mutex_init, "pthread_mutex_init"); function pthread_mutex_destroy (mutex : access pthread_mutex_t) return int; pragma Import (C, pthread_mutex_destroy, "pthread_mutex_destroy"); function pthread_mutex_lock (mutex : access pthread_mutex_t) return int; -- FSU_THREADS has nonstandard pthread_mutex_lock function pthread_mutex_unlock (mutex : access pthread_mutex_t) return int; -- FSU_THREADS has nonstandard pthread_mutex_lock function pthread_condattr_init (attr : access pthread_condattr_t) return int; pragma Import (C, pthread_condattr_init, "pthread_condattr_init"); function pthread_condattr_destroy (attr : access pthread_condattr_t) return int; pragma Import (C, pthread_condattr_destroy, "pthread_condattr_destroy"); function pthread_cond_init (cond : access pthread_cond_t; attr : access pthread_condattr_t) return int; pragma Import (C, pthread_cond_init, "pthread_cond_init"); function pthread_cond_destroy (cond : access pthread_cond_t) return int; pragma Import (C, pthread_cond_destroy, "pthread_cond_destroy"); function pthread_cond_signal (cond : access pthread_cond_t) return int; pragma Import (C, pthread_cond_signal, "pthread_cond_signal"); function pthread_cond_wait (cond : access pthread_cond_t; mutex : access pthread_mutex_t) return int; -- FSU_THREADS has a nonstandard pthread_cond_wait function pthread_cond_timedwait (cond : access pthread_cond_t; mutex : access pthread_mutex_t; abstime : access timespec) return int; -- FSU_THREADS has a nonstandard pthread_cond_timedwait Relative_Timed_Wait : constant Boolean := False; -- pthread_cond_timedwait requires an absolute delay time -------------------------- -- POSIX.1c Section 13 -- -------------------------- PTHREAD_PRIO_NONE : constant := 0; PTHREAD_PRIO_PROTECT : constant := 2; PTHREAD_PRIO_INHERIT : constant := 1; function pthread_mutexattr_setprotocol (attr : access pthread_mutexattr_t; protocol : int) return int; pragma Import (C, pthread_mutexattr_setprotocol); function pthread_mutexattr_setprioceiling (attr : access pthread_mutexattr_t; prioceiling : int) return int; pragma Import (C, pthread_mutexattr_setprioceiling, "pthread_mutexattr_setprio_ceiling"); type struct_sched_param is record sched_priority : int; -- scheduling priority end record; function pthread_setschedparam (thread : pthread_t; policy : int; param : access struct_sched_param) return int; -- FSU_THREADS does not have pthread_setschedparam function pthread_attr_setscope (attr : access pthread_attr_t; contentionscope : int) return int; pragma Import (C, pthread_attr_setscope, "pthread_attr_setscope"); function pthread_attr_setinheritsched (attr : access pthread_attr_t; inheritsched : int) return int; pragma Import (C, pthread_attr_setinheritsched); function pthread_attr_setschedpolicy (attr : access pthread_attr_t; policy : int) return int; pragma Import (C, pthread_attr_setschedpolicy, "pthread_attr_setsched"); function sched_yield return int; -- FSU_THREADS does not have sched_yield; --------------------------- -- P1003.1c - Section 16 -- --------------------------- function pthread_attr_init (attributes : access pthread_attr_t) return int; pragma Import (C, pthread_attr_init, "pthread_attr_init"); function pthread_attr_destroy (attributes : access pthread_attr_t) return int; pragma Import (C, pthread_attr_destroy, "pthread_attr_destroy"); function pthread_attr_setdetachstate (attr : access pthread_attr_t; detachstate : int) return int; -- FSU_THREADS has a nonstandard pthread_attr_setdetachstate function pthread_attr_setstacksize (attr : access pthread_attr_t; stacksize : size_t) return int; pragma Import (C, pthread_attr_setstacksize); function pthread_create (thread : access pthread_t; attributes : access pthread_attr_t; start_routine : Thread_Body; arg : System.Address) return int; pragma Import (C, pthread_create, "pthread_create"); procedure pthread_exit (status : System.Address); pragma Import (C, pthread_exit, "pthread_exit"); function pthread_self return pthread_t; pragma Import (C, pthread_self, "pthread_self"); -------------------------- -- POSIX.1c Section 17 -- -------------------------- function pthread_setspecific (key : pthread_key_t; value : System.Address) return int; pragma Import (C, pthread_setspecific, "pthread_setspecific"); function pthread_getspecific (key : pthread_key_t) return System.Address; -- FSU_THREADS has a nonstandard pthread_getspecific type destructor_pointer is access procedure (arg : System.Address); function pthread_key_create (key : access pthread_key_t; destructor : destructor_pointer) return int; pragma Import (C, pthread_key_create, "pthread_key_create"); private type sigset_t is new unsigned_long; pragma Convention (C, sigset_t); type pid_t is new int; subtype time_t is long; type timespec is record tv_sec : time_t; tv_nsec : long; end record; pragma Convention (C, timespec); type clockid_t is new int; CLOCK_REALTIME : constant clockid_t := 0; type struct_timeval is record tv_sec : time_t; tv_usec : long; end record; pragma Convention (C, struct_timeval); type pthread_attr_t is record flags : int; stacksize : int; contentionscope : int; inheritsched : int; detachstate : int; sched : int; prio : int; starttime : timespec; deadline : timespec; period : timespec; end record; pragma Convention (C_Pass_By_Copy, pthread_attr_t); type pthread_condattr_t is record flags : int; end record; pragma Convention (C, pthread_condattr_t); type pthread_mutexattr_t is record flags : int; prio_ceiling : int; protocol : int; end record; pragma Convention (C, pthread_mutexattr_t); type sigjmp_buf is array (Integer range 0 .. 17) of int; type pthread_t_struct is record context : sigjmp_buf; pbody : sigjmp_buf; errno : int; ret : int; stack_base : System.Address; end record; pragma Convention (C, pthread_t_struct); type pthread_t is access all pthread_t_struct; type queue_t is record head : System.Address; tail : System.Address; end record; pragma Convention (C, queue_t); type pthread_mutex_t is record queue : queue_t; lock : plain_char; owner : System.Address; flags : int; prio_ceiling : int; protocol : int; prev_max_ceiling_prio : int; end record; pragma Convention (C, pthread_mutex_t); type pthread_cond_t is record queue : queue_t; flags : int; waiters : int; mutex : System.Address; end record; pragma Convention (C, pthread_cond_t); type pthread_key_t is new int; end System.OS_Interface;
35.711304
79
0.625645
d0bc136f96d4fb9791f47d179d69f046ffc06e3e
254
ads
Ada
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/array23_pkg1.ads
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
null
null
null
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/array23_pkg1.ads
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
null
null
null
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/array23_pkg1.ads
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
null
null
null
with Array23_Pkg2; package Array23_Pkg1 is C2 : Natural := Array23_Pkg2.C1; subtype Index is Natural range 0 .. C2; type Inner is array (Index) of Natural; type Arr is array (Array23_Pkg2.Index) of Inner; end Array23_Pkg1;
18.142857
52
0.677165
23aab1c99250d5c306f00e8afb99cb4691d59f38
2,758
adb
Ada
source/slim-messages-grfs.adb
reznikmm/slimp
acbbb895ba9c2a2dfb28e5065e630326ce958502
[ "MIT" ]
null
null
null
source/slim-messages-grfs.adb
reznikmm/slimp
acbbb895ba9c2a2dfb28e5065e630326ce958502
[ "MIT" ]
null
null
null
source/slim-messages-grfs.adb
reznikmm/slimp
acbbb895ba9c2a2dfb28e5065e630326ce958502
[ "MIT" ]
null
null
null
-- Copyright (c) 2019 Maxim Reznik <[email protected]> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Slim.Message_Visiters; package body Slim.Messages.grfs is List : constant Field_Description_Array := ((Uint_8_Field, 1), -- Screen (Uint_8_Field, 1), -- Direction (Uint_32_Field, 1), -- Pause (Uint_32_Field, 1), -- Refresh (Uint_16_Field, 1), -- Pixels (Uint_16_Field, 1), -- Repeat (Uint_16_Field, 1), -- Width (Uint_16_Field, 1), -- Offset (Custom_Field, 1)); -- Data ---------- -- Data -- ---------- not overriding function Data (Self : Grfs_Message) return Ada.Streams.Stream_Element_Array is begin return Self.Data.To_Stream_Element_Array; end Data; ---------- -- Read -- ---------- overriding function Read (Data : not null access League.Stream_Element_Vectors.Stream_Element_Vector) return Grfs_Message is begin return Result : Grfs_Message do Read_Fields (Result, List, Data.all); end return; end Read; ----------------------- -- Read_Custom_Field -- ----------------------- overriding procedure Read_Custom_Field (Self : in out Grfs_Message; Index : Positive; Input : in out Ada.Streams.Stream_Element_Offset; Data : League.Stream_Element_Vectors.Stream_Element_Vector) is use type Ada.Streams.Stream_Element_Offset; Content : constant Ada.Streams.Stream_Element_Array (1 .. Data.Length) := Data.To_Stream_Element_Array; begin pragma Assert (Index = 1); Self.Data.Clear; Self.Data.Append (Content (Input .. Content'Last)); Input := Content'Last + 1; end Read_Custom_Field; ----------- -- Visit -- ----------- overriding procedure Visit (Self : not null access Grfs_Message; Visiter : in out Slim.Message_Visiters.Visiter'Class) is begin Visiter.grfs (Self); end Visit; ----------- -- Write -- ----------- overriding procedure Write (Self : Grfs_Message; Tag : out Message_Tag; Data : out League.Stream_Element_Vectors.Stream_Element_Vector) is begin Tag := "grfs"; Write_Fields (Self, List, Data); end Write; ------------------------ -- Write_Custom_Field -- ------------------------ overriding procedure Write_Custom_Field (Self : Grfs_Message; Index : Positive; Data : in out League.Stream_Element_Vectors.Stream_Element_Vector) is begin pragma Assert (Index = 1); Data.Append (Self.Data); end Write_Custom_Field; end Slim.Messages.grfs;
25.775701
79
0.582306
dfff88b2debb0f371230557457d2e970f896b209
670,554
adb
Ada
test/halide_data/pldi_camera_ready/big_apps_32_real/conv2d_b2b/collateral/conv2d_b2b/hls_target/.autopilot/db/Loop_2_proc.adb
David-Durst/embeddedHaskellAetherling
34c5403e07433e572170699f3bd69c5b5c3eff2d
[ "BSD-3-Clause" ]
20
2019-03-12T20:12:31.000Z
2022-02-07T04:23:22.000Z
test/halide_data/pldi_camera_ready/big_apps_32_real/conv2d_b2b/collateral/conv2d_b2b/hls_target/.autopilot/db/Loop_2_proc.adb
David-Durst/embeddedHaskellAetherling
34c5403e07433e572170699f3bd69c5b5c3eff2d
[ "BSD-3-Clause" ]
30
2019-07-22T19:25:42.000Z
2020-06-18T17:58:43.000Z
test/halide_data/pldi_camera_ready/big_apps_32_real/conv2d_b2b/collateral/conv2d_b2b/hls_target/.autopilot/db/Loop_2_proc.adb
David-Durst/embeddedHaskellAetherling
34c5403e07433e572170699f3bd69c5b5c3eff2d
[ "BSD-3-Clause" ]
3
2019-10-14T18:07:26.000Z
2022-01-20T14:36:17.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/> <cdfg class_id="1" tracking_level="1" version="0" object_id="_0"> <name>Loop_2_proc</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>p_mul_stencil_stream_V_value_V</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>_mul_stencil_stream_to_p2_mul1.V.value.V</originalName> <rtlName/> <coreName>FIFO_SRL</coreName> </Obj> <bitwidth>128</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>p_p2_mul1_stencil_stream_V_value_V</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName>FIFO_SRL</coreName> </Obj> <bitwidth>32</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>126</count> <item_version>0</item_version> <item class_id="9" tracking_level="1" version="0" object_id="_3"> <Value> <Obj> <type>0</type> <id>7</id> <name/> <fileName>hls_target.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>160</lineNumber> <contextFuncName>hls_target</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item class_id="10" tracking_level="0" version="0"> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second class_id="11" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="12" tracking_level="0" version="0"> <first class_id="13" tracking_level="0" version="0"> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>160</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>141</item> </oprand_edges> <opcode>br</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_4"> <Value> <Obj> <type>0</type> <id>9</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>21</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>421</item> <item>422</item> <item>423</item> <item>424</item> </oprand_edges> <opcode>phi</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_5"> <Value> <Obj> <type>0</type> <id>10</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_170_p2</rtlName> <coreName/> </Obj> <bitwidth>1</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>425</item> <item>427</item> </oprand_edges> <opcode>icmp</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_6"> <Value> <Obj> <type>0</type> <id>11</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_176_p2</rtlName> <coreName/> </Obj> <bitwidth>21</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>428</item> <item>430</item> </oprand_edges> <opcode>add</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_7"> <Value> <Obj> <type>0</type> <id>12</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>431</item> <item>432</item> <item>433</item> </oprand_edges> <opcode>br</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_8"> <Value> <Obj> <type>0</type> <id>17</id> <name>tmp_value_V</name> <fileName>hls_target.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>168</lineNumber> <contextFuncName>hls_target</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>168</second> </item> </second> </item> </inlineStackInfo> <originalName>tmp.value.V</originalName> <rtlName/> <coreName/> </Obj> <bitwidth>128</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>143</item> <item>144</item> </oprand_edges> <opcode>read</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_9"> <Value> <Obj> <type>0</type> <id>18</id> <name>p_381</name> <fileName>../../../lib_files/Stencil.h</fileName> <fileDirectory>..</fileDirectory> <lineNumber>122</lineNumber> <contextFuncName>operator Stencil</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>../../../lib_files/Stencil.h</first> <second>operator Stencil</second> </first> <second>122</second> </item> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>168</second> </item> </second> </item> </inlineStackInfo> <originalName>_381</originalName> <rtlName>p_381_fu_182_p1</rtlName> <coreName/> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>145</item> </oprand_edges> <opcode>trunc</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_10"> <Value> <Obj> <type>0</type> <id>19</id> <name>p_382</name> <fileName>hls_target.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>176</lineNumber> <contextFuncName>hls_target</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>176</second> </item> </second> </item> </inlineStackInfo> <originalName>_382</originalName> <rtlName>hls_target_sitofphbi_U30</rtlName> <coreName/> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>146</item> </oprand_edges> <opcode>sitofp</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_11"> <Value> <Obj> <type>0</type> <id>20</id> <name>p_383</name> <fileName>hls_target.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>177</lineNumber> <contextFuncName>hls_target</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>177</second> </item> </second> </item> </inlineStackInfo> <originalName>_383</originalName> <rtlName>hls_target_fpext_ibs_U34</rtlName> <coreName/> </Obj> <bitwidth>64</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>147</item> </oprand_edges> <opcode>fpext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_12"> <Value> <Obj> <type>0</type> <id>21</id> <name>p_mul_stencil_value_0</name> <fileName>../../../lib_files/Stencil.h</fileName> <fileDirectory>..</fileDirectory> <lineNumber>122</lineNumber> <contextFuncName>operator Stencil</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>../../../lib_files/Stencil.h</first> <second>operator Stencil</second> </first> <second>122</second> </item> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>168</second> </item> </second> </item> </inlineStackInfo> <originalName>_mul_stencil.value[0][0][0][1]</originalName> <rtlName>p_mul_stencil_value_0_reg_822</rtlName> <coreName/> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>149</item> <item>150</item> <item>152</item> <item>154</item> </oprand_edges> <opcode>partselect</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_13"> <Value> <Obj> <type>0</type> <id>22</id> <name>p_391</name> <fileName>hls_target.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>186</lineNumber> <contextFuncName>hls_target</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>186</second> </item> </second> </item> </inlineStackInfo> <originalName>_391</originalName> <rtlName>hls_target_sitofphbi_U31</rtlName> <coreName/> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>155</item> </oprand_edges> <opcode>sitofp</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_14"> <Value> <Obj> <type>0</type> <id>23</id> <name>p_392</name> <fileName>hls_target.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>187</lineNumber> <contextFuncName>hls_target</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>187</second> </item> </second> </item> </inlineStackInfo> <originalName>_392</originalName> <rtlName>hls_target_fpext_ibs_U35</rtlName> <coreName/> </Obj> <bitwidth>64</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>156</item> </oprand_edges> <opcode>fpext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_15"> <Value> <Obj> <type>0</type> <id>24</id> <name>p_mul_stencil_value_0_1</name> <fileName>../../../lib_files/Stencil.h</fileName> <fileDirectory>..</fileDirectory> <lineNumber>122</lineNumber> <contextFuncName>operator Stencil</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>../../../lib_files/Stencil.h</first> <second>operator Stencil</second> </first> <second>122</second> </item> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>168</second> </item> </second> </item> </inlineStackInfo> <originalName>_mul_stencil.value[0][0][1][0]</originalName> <rtlName>p_mul_stencil_value_0_1_reg_827</rtlName> <coreName/> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>157</item> <item>158</item> <item>160</item> <item>162</item> </oprand_edges> <opcode>partselect</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_16"> <Value> <Obj> <type>0</type> <id>25</id> <name>p_400</name> <fileName>hls_target.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>196</lineNumber> <contextFuncName>hls_target</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>196</second> </item> </second> </item> </inlineStackInfo> <originalName>_400</originalName> <rtlName>hls_target_sitofphbi_U32</rtlName> <coreName/> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>163</item> </oprand_edges> <opcode>sitofp</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_17"> <Value> <Obj> <type>0</type> <id>26</id> <name>p_401</name> <fileName>hls_target.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>197</lineNumber> <contextFuncName>hls_target</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>197</second> </item> </second> </item> </inlineStackInfo> <originalName>_401</originalName> <rtlName>hls_target_fpext_ibs_U36</rtlName> <coreName/> </Obj> <bitwidth>64</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>164</item> </oprand_edges> <opcode>fpext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_18"> <Value> <Obj> <type>0</type> <id>27</id> <name>p_mul_stencil_value_0_2</name> <fileName>../../../lib_files/Stencil.h</fileName> <fileDirectory>..</fileDirectory> <lineNumber>122</lineNumber> <contextFuncName>operator Stencil</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>../../../lib_files/Stencil.h</first> <second>operator Stencil</second> </first> <second>122</second> </item> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>168</second> </item> </second> </item> </inlineStackInfo> <originalName>_mul_stencil.value[0][0][1][1]</originalName> <rtlName>p_mul_stencil_value_0_2_reg_832</rtlName> <coreName/> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>165</item> <item>166</item> <item>168</item> <item>170</item> </oprand_edges> <opcode>partselect</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_19"> <Value> <Obj> <type>0</type> <id>28</id> <name>p_409</name> <fileName>hls_target.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>206</lineNumber> <contextFuncName>hls_target</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>206</second> </item> </second> </item> </inlineStackInfo> <originalName>_409</originalName> <rtlName>hls_target_sitofphbi_U33</rtlName> <coreName/> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>171</item> </oprand_edges> <opcode>sitofp</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_20"> <Value> <Obj> <type>0</type> <id>29</id> <name>p_410</name> <fileName>hls_target.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>207</lineNumber> <contextFuncName>hls_target</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>207</second> </item> </second> </item> </inlineStackInfo> <originalName>_410</originalName> <rtlName>hls_target_fpext_ibs_U37</rtlName> <coreName/> </Obj> <bitwidth>64</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>172</item> </oprand_edges> <opcode>fpext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_21"> <Value> <Obj> <type>0</type> <id>30</id> <name>p_384</name> <fileName>hls_target.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>178</lineNumber> <contextFuncName>hls_target</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>178</second> </item> </second> </item> </inlineStackInfo> <originalName>_384</originalName> <rtlName>hls_target_dmul_6jbC_U38</rtlName> <coreName/> </Obj> <bitwidth>64</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>173</item> <item>175</item> </oprand_edges> <opcode>dmul</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_22"> <Value> <Obj> <type>0</type> <id>31</id> <name>p_Val2_5</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/utils/x_hls_utils.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>475</lineNumber> <contextFuncName>fp_struct</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>179</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>4</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>436</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/utils/x_hls_utils.h</first> <second>fp_struct</second> </first> <second>475</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName>val</originalName> <rtlName>p_Val2_5_fu_216_p1</rtlName> <coreName/> </Obj> <bitwidth>64</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>176</item> </oprand_edges> <opcode>bitcast</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_23"> <Value> <Obj> <type>0</type> <id>32</id> <name>p_Result_s</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/utils/x_hls_utils.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>476</lineNumber> <contextFuncName>fp_struct</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>179</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>4</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>436</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/utils/x_hls_utils.h</first> <second>fp_struct</second> </first> <second>476</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName>__Result__</originalName> <rtlName>p_Result_s_reg_897</rtlName> <coreName/> </Obj> <bitwidth>1</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>178</item> <item>179</item> <item>180</item> </oprand_edges> <opcode>bitselect</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_24"> <Value> <Obj> <type>0</type> <id>33</id> <name>loc_V</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/utils/x_hls_utils.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>477</lineNumber> <contextFuncName>fp_struct</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>179</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>4</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>436</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/utils/x_hls_utils.h</first> <second>fp_struct</second> </first> <second>477</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName>loc.V</originalName> <rtlName>loc_V_fu_227_p4</rtlName> <coreName/> </Obj> <bitwidth>11</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>182</item> <item>183</item> <item>185</item> <item>187</item> </oprand_edges> <opcode>partselect</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_25"> <Value> <Obj> <type>0</type> <id>34</id> <name>loc_V_2</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/utils/x_hls_utils.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>478</lineNumber> <contextFuncName>fp_struct</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>179</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>4</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>436</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/utils/x_hls_utils.h</first> <second>fp_struct</second> </first> <second>478</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName>loc.V</originalName> <rtlName>loc_V_2_fu_237_p1</rtlName> <coreName/> </Obj> <bitwidth>52</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>188</item> </oprand_edges> <opcode>trunc</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_26"> <Value> <Obj> <type>0</type> <id>35</id> <name>tmp_i_i</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>438</lineNumber> <contextFuncName>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>179</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>438</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_i_i_fu_444_p4</rtlName> <coreName/> </Obj> <bitwidth>54</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>190</item> <item>192</item> <item>193</item> <item>195</item> </oprand_edges> <opcode>bitconcatenate</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_27"> <Value> <Obj> <type>0</type> <id>36</id> <name>tmp_i_cast_i</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>438</lineNumber> <contextFuncName>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>179</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>438</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_i_cast_i_fu_453_p1</rtlName> <coreName/> </Obj> <bitwidth>137</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>196</item> </oprand_edges> <opcode>zext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_28"> <Value> <Obj> <type>0</type> <id>37</id> <name>tmp_i_i_cast_i</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/utils/x_hls_utils.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>502</lineNumber> <contextFuncName>expv</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>179</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>4</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>441</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/utils/x_hls_utils.h</first> <second>expv</second> </first> <second>502</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_i_i_cast_i_fu_241_p1</rtlName> <coreName/> </Obj> <bitwidth>12</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>197</item> </oprand_edges> <opcode>zext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_29"> <Value> <Obj> <type>0</type> <id>38</id> <name>sh_assign</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/utils/x_hls_utils.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>502</lineNumber> <contextFuncName>expv</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>179</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>4</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>441</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/utils/x_hls_utils.h</first> <second>expv</second> </first> <second>502</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName>sh</originalName> <rtlName>sh_assign_fu_245_p2</rtlName> <coreName/> </Obj> <bitwidth>12</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>199</item> <item>200</item> </oprand_edges> <opcode>add</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_30"> <Value> <Obj> <type>0</type> <id>39</id> <name>isNeg</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>441</lineNumber> <contextFuncName>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>179</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>441</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName>isNeg</originalName> <rtlName>isNeg_reg_907</rtlName> <coreName/> </Obj> <bitwidth>1</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>202</item> <item>203</item> <item>205</item> </oprand_edges> <opcode>bitselect</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_31"> <Value> <Obj> <type>0</type> <id>40</id> <name>tmp_8_i_i</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>441</lineNumber> <contextFuncName>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>179</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>441</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_8_i_i_fu_259_p2</rtlName> <coreName/> </Obj> <bitwidth>11</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>207</item> <item>208</item> </oprand_edges> <opcode>sub</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_32"> <Value> <Obj> <type>0</type> <id>41</id> <name>tmp_8_i_cast_i</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>441</lineNumber> <contextFuncName>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>179</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>441</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_8_i_cast_i_fu_265_p1</rtlName> <coreName/> </Obj> <bitwidth>12</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>209</item> </oprand_edges> <opcode>sext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_33"> <Value> <Obj> <type>0</type> <id>42</id> <name>sh_assign_2</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>441</lineNumber> <contextFuncName>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>179</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>441</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName>sh</originalName> <rtlName>sh_assign_2_fu_269_p3</rtlName> <coreName/> </Obj> <bitwidth>12</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>210</item> <item>211</item> <item>212</item> </oprand_edges> <opcode>select</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_34"> <Value> <Obj> <type>0</type> <id>43</id> <name>sh_assign_2_i_cast_i</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>441</lineNumber> <contextFuncName>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>179</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>441</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>sh_assign_2_i_cast_i_fu_457_p1</rtlName> <coreName/> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>213</item> </oprand_edges> <opcode>sext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_35"> <Value> <Obj> <type>0</type> <id>44</id> <name>tmp_9_i_i</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>441</lineNumber> <contextFuncName>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>179</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>441</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_9_i_i_fu_460_p1</rtlName> <coreName/> </Obj> <bitwidth>137</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>214</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>45</id> <name>tmp_9_i_cast_i</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>441</lineNumber> <contextFuncName>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>179</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>441</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_9_i_cast_i_fu_464_p1</rtlName> <coreName/> </Obj> <bitwidth>54</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="_37"> <Value> <Obj> <type>0</type> <id>46</id> <name>tmp_10_i_i</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>441</lineNumber> <contextFuncName>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>179</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>441</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_10_i_i_fu_468_p2</rtlName> <coreName/> </Obj> <bitwidth>54</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>216</item> <item>217</item> </oprand_edges> <opcode>lshr</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_38"> <Value> <Obj> <type>0</type> <id>47</id> <name>tmp_11_i_i</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>441</lineNumber> <contextFuncName>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>179</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>441</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_11_i_i_fu_474_p2</rtlName> <coreName/> </Obj> <bitwidth>137</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>218</item> <item>219</item> </oprand_edges> <opcode>shl</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_39"> <Value> <Obj> <type>0</type> <id>48</id> <name>tmp_17</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>444</lineNumber> <contextFuncName>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>179</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>444</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_17_fu_480_p3</rtlName> <coreName/> </Obj> <bitwidth>1</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>221</item> <item>222</item> <item>224</item> </oprand_edges> <opcode>bitselect</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_40"> <Value> <Obj> <type>0</type> <id>49</id> <name>tmp_7</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>444</lineNumber> <contextFuncName>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>179</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>444</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_7_fu_488_p1</rtlName> <coreName/> </Obj> <bitwidth>31</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>225</item> </oprand_edges> <opcode>zext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_41"> <Value> <Obj> <type>0</type> <id>50</id> <name>tmp_8</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>444</lineNumber> <contextFuncName>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>179</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>444</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_8_fu_492_p4</rtlName> <coreName/> </Obj> <bitwidth>31</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>227</item> <item>228</item> <item>229</item> <item>231</item> </oprand_edges> <opcode>partselect</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_42"> <Value> <Obj> <type>0</type> <id>51</id> <name>p_Val2_7</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>441</lineNumber> <contextFuncName>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>179</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>441</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName>__Val2__</originalName> <rtlName>p_Val2_7_fu_502_p3</rtlName> <coreName/> </Obj> <bitwidth>31</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>232</item> <item>233</item> <item>234</item> </oprand_edges> <opcode>select</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_43"> <Value> <Obj> <type>0</type> <id>52</id> <name>tmp_13_i_i</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>472</lineNumber> <contextFuncName>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>179</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>472</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_13_i_i_fu_712_p1</rtlName> <coreName/> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>235</item> </oprand_edges> <opcode>zext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_44"> <Value> <Obj> <type>0</type> <id>53</id> <name>tmp_16_i_i</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>473</lineNumber> <contextFuncName>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>179</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>473</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_16_i_i_fu_715_p2</rtlName> <coreName/> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>237</item> <item>238</item> </oprand_edges> <opcode>sub</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_45"> <Value> <Obj> <type>0</type> <id>54</id> <name>p_Val2_26</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>473</lineNumber> <contextFuncName>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>179</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>473</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName>__Val2__</originalName> <rtlName>p_Val2_26_fu_746_p3</rtlName> <coreName/> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>239</item> <item>240</item> <item>241</item> </oprand_edges> <opcode>select</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_46"> <Value> <Obj> <type>0</type> <id>55</id> <name>p_393</name> <fileName>hls_target.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>188</lineNumber> <contextFuncName>hls_target</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>188</second> </item> </second> </item> </inlineStackInfo> <originalName>_393</originalName> <rtlName>hls_target_dmul_6jbC_U39</rtlName> <coreName/> </Obj> <bitwidth>64</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>242</item> <item>243</item> </oprand_edges> <opcode>dmul</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_47"> <Value> <Obj> <type>0</type> <id>56</id> <name>p_Val2_s</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/utils/x_hls_utils.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>475</lineNumber> <contextFuncName>fp_struct</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>189</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>4</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>436</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/utils/x_hls_utils.h</first> <second>fp_struct</second> </first> <second>475</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName>val</originalName> <rtlName>p_Val2_s_fu_277_p1</rtlName> <coreName/> </Obj> <bitwidth>64</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>244</item> </oprand_edges> <opcode>bitcast</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_48"> <Value> <Obj> <type>0</type> <id>57</id> <name>p_Result_4</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/utils/x_hls_utils.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>476</lineNumber> <contextFuncName>fp_struct</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>189</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>4</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>436</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/utils/x_hls_utils.h</first> <second>fp_struct</second> </first> <second>476</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName>__Result__</originalName> <rtlName>p_Result_4_reg_917</rtlName> <coreName/> </Obj> <bitwidth>1</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>245</item> <item>246</item> <item>247</item> </oprand_edges> <opcode>bitselect</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_49"> <Value> <Obj> <type>0</type> <id>58</id> <name>loc_V_3</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/utils/x_hls_utils.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>477</lineNumber> <contextFuncName>fp_struct</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>189</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>4</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>436</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/utils/x_hls_utils.h</first> <second>fp_struct</second> </first> <second>477</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName>loc.V</originalName> <rtlName>loc_V_3_fu_288_p4</rtlName> <coreName/> </Obj> <bitwidth>11</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>248</item> <item>249</item> <item>250</item> <item>251</item> </oprand_edges> <opcode>partselect</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_50"> <Value> <Obj> <type>0</type> <id>59</id> <name>loc_V_4</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/utils/x_hls_utils.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>478</lineNumber> <contextFuncName>fp_struct</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>189</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>4</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>436</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/utils/x_hls_utils.h</first> <second>fp_struct</second> </first> <second>478</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName>loc.V</originalName> <rtlName>loc_V_4_fu_298_p1</rtlName> <coreName/> </Obj> <bitwidth>52</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>252</item> </oprand_edges> <opcode>trunc</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_51"> <Value> <Obj> <type>0</type> <id>60</id> <name>tmp_i_i7</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>438</lineNumber> <contextFuncName>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>189</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>438</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_i_i7_fu_509_p4</rtlName> <coreName/> </Obj> <bitwidth>54</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>253</item> <item>254</item> <item>255</item> <item>256</item> </oprand_edges> <opcode>bitconcatenate</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_52"> <Value> <Obj> <type>0</type> <id>61</id> <name>tmp_i_cast_i8</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>438</lineNumber> <contextFuncName>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>189</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>438</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_i_cast_i8_fu_518_p1</rtlName> <coreName/> </Obj> <bitwidth>137</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>257</item> </oprand_edges> <opcode>zext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_53"> <Value> <Obj> <type>0</type> <id>62</id> <name>tmp_i_i_cast_i9</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/utils/x_hls_utils.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>502</lineNumber> <contextFuncName>expv</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>189</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>4</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>441</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/utils/x_hls_utils.h</first> <second>expv</second> </first> <second>502</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_i_i_cast_i9_fu_302_p1</rtlName> <coreName/> </Obj> <bitwidth>12</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>258</item> </oprand_edges> <opcode>zext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_54"> <Value> <Obj> <type>0</type> <id>63</id> <name>sh_assign_3</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/utils/x_hls_utils.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>502</lineNumber> <contextFuncName>expv</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>189</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>4</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>441</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/utils/x_hls_utils.h</first> <second>expv</second> </first> <second>502</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName>sh</originalName> <rtlName>sh_assign_3_fu_306_p2</rtlName> <coreName/> </Obj> <bitwidth>12</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="_55"> <Value> <Obj> <type>0</type> <id>64</id> <name>isNeg_1</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>441</lineNumber> <contextFuncName>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>189</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>441</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName>isNeg</originalName> <rtlName>isNeg_1_reg_927</rtlName> <coreName/> </Obj> <bitwidth>1</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>261</item> <item>262</item> <item>263</item> </oprand_edges> <opcode>bitselect</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_56"> <Value> <Obj> <type>0</type> <id>65</id> <name>tmp_8_i_i1</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>441</lineNumber> <contextFuncName>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>189</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>441</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_8_i_i1_fu_320_p2</rtlName> <coreName/> </Obj> <bitwidth>11</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>264</item> <item>265</item> </oprand_edges> <opcode>sub</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_57"> <Value> <Obj> <type>0</type> <id>66</id> <name>tmp_8_i_cast_i1</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>441</lineNumber> <contextFuncName>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>189</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>441</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_8_i_cast_i1_fu_326_p1</rtlName> <coreName/> </Obj> <bitwidth>12</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>266</item> </oprand_edges> <opcode>sext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_58"> <Value> <Obj> <type>0</type> <id>67</id> <name>sh_assign_4</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>441</lineNumber> <contextFuncName>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>189</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>441</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName>sh</originalName> <rtlName>sh_assign_4_fu_330_p3</rtlName> <coreName/> </Obj> <bitwidth>12</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>267</item> <item>268</item> <item>269</item> </oprand_edges> <opcode>select</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_59"> <Value> <Obj> <type>0</type> <id>68</id> <name>sh_assign_2_i_cast_i_1</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>441</lineNumber> <contextFuncName>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>189</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>441</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>sh_assign_2_i_cast_i_1_fu_522_p1</rtlName> <coreName/> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>270</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>69</id> <name>tmp_9_i_i1</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>441</lineNumber> <contextFuncName>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>189</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>441</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_9_i_i1_fu_525_p1</rtlName> <coreName/> </Obj> <bitwidth>137</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>271</item> </oprand_edges> <opcode>zext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_61"> <Value> <Obj> <type>0</type> <id>70</id> <name>tmp_9_i_cast_i1</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>441</lineNumber> <contextFuncName>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>189</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>441</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_9_i_cast_i1_fu_529_p1</rtlName> <coreName/> </Obj> <bitwidth>54</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>272</item> </oprand_edges> <opcode>zext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_62"> <Value> <Obj> <type>0</type> <id>71</id> <name>tmp_10_i_i1</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>441</lineNumber> <contextFuncName>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>189</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>441</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_10_i_i1_fu_533_p2</rtlName> <coreName/> </Obj> <bitwidth>54</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>273</item> <item>274</item> </oprand_edges> <opcode>lshr</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_63"> <Value> <Obj> <type>0</type> <id>72</id> <name>tmp_11_i_i1</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>441</lineNumber> <contextFuncName>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>189</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>441</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_11_i_i1_fu_539_p2</rtlName> <coreName/> </Obj> <bitwidth>137</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>275</item> <item>276</item> </oprand_edges> <opcode>shl</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_64"> <Value> <Obj> <type>0</type> <id>73</id> <name>tmp_26</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>444</lineNumber> <contextFuncName>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>189</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>444</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_26_fu_545_p3</rtlName> <coreName/> </Obj> <bitwidth>1</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>277</item> <item>278</item> <item>279</item> </oprand_edges> <opcode>bitselect</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_65"> <Value> <Obj> <type>0</type> <id>74</id> <name>tmp_s</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>444</lineNumber> <contextFuncName>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>189</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>444</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_s_fu_553_p1</rtlName> <coreName/> </Obj> <bitwidth>31</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>280</item> </oprand_edges> <opcode>zext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_66"> <Value> <Obj> <type>0</type> <id>75</id> <name>tmp_2</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>444</lineNumber> <contextFuncName>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>189</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>444</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_2_fu_557_p4</rtlName> <coreName/> </Obj> <bitwidth>31</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>281</item> <item>282</item> <item>283</item> <item>284</item> </oprand_edges> <opcode>partselect</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_67"> <Value> <Obj> <type>0</type> <id>76</id> <name>p_Val2_15</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>441</lineNumber> <contextFuncName>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>189</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>441</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName>__Val2__</originalName> <rtlName>p_Val2_15_fu_567_p3</rtlName> <coreName/> </Obj> <bitwidth>31</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>285</item> <item>286</item> <item>287</item> </oprand_edges> <opcode>select</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_68"> <Value> <Obj> <type>0</type> <id>77</id> <name>tmp_27</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>441</lineNumber> <contextFuncName>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>189</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>441</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_27_fu_574_p1</rtlName> <coreName/> </Obj> <bitwidth>30</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>288</item> </oprand_edges> <opcode>trunc</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_69"> <Value> <Obj> <type>0</type> <id>78</id> <name>tmp_16_i_i1</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>441</lineNumber> <contextFuncName>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>189</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>441</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_16_i_i1_fu_721_p2</rtlName> <coreName/> </Obj> <bitwidth>30</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>290</item> <item>291</item> </oprand_edges> <opcode>sub</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_70"> <Value> <Obj> <type>0</type> <id>79</id> <name>tmp_28</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>441</lineNumber> <contextFuncName>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>189</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>441</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_28_fu_578_p1</rtlName> <coreName/> </Obj> <bitwidth>30</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>292</item> </oprand_edges> <opcode>trunc</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_71"> <Value> <Obj> <type>0</type> <id>80</id> <name>tmp_3</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>473</lineNumber> <contextFuncName>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>189</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>473</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_3_fu_726_p3</rtlName> <coreName/> </Obj> <bitwidth>30</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>293</item> <item>294</item> <item>295</item> </oprand_edges> <opcode>select</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_72"> <Value> <Obj> <type>0</type> <id>81</id> <name>p_396</name> <fileName>hls_target.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>191</lineNumber> <contextFuncName>hls_target</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>191</second> </item> </second> </item> </inlineStackInfo> <originalName>_396</originalName> <rtlName>p_396_fu_791_p3</rtlName> <coreName/> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>297</item> <item>298</item> <item>300</item> </oprand_edges> <opcode>bitconcatenate</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_73"> <Value> <Obj> <type>0</type> <id>82</id> <name>p_402</name> <fileName>hls_target.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>198</lineNumber> <contextFuncName>hls_target</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>198</second> </item> </second> </item> </inlineStackInfo> <originalName>_402</originalName> <rtlName>hls_target_dmul_6jbC_U40</rtlName> <coreName/> </Obj> <bitwidth>64</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>301</item> <item>302</item> </oprand_edges> <opcode>dmul</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_74"> <Value> <Obj> <type>0</type> <id>83</id> <name>p_Val2_17</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/utils/x_hls_utils.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>475</lineNumber> <contextFuncName>fp_struct</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>199</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>4</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>436</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/utils/x_hls_utils.h</first> <second>fp_struct</second> </first> <second>475</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName>val</originalName> <rtlName>p_Val2_17_fu_338_p1</rtlName> <coreName/> </Obj> <bitwidth>64</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>303</item> </oprand_edges> <opcode>bitcast</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_75"> <Value> <Obj> <type>0</type> <id>84</id> <name>p_Result_5</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/utils/x_hls_utils.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>476</lineNumber> <contextFuncName>fp_struct</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>199</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>4</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>436</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/utils/x_hls_utils.h</first> <second>fp_struct</second> </first> <second>476</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName>__Result__</originalName> <rtlName>p_Result_5_fu_751_p3</rtlName> <coreName/> </Obj> <bitwidth>1</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>304</item> <item>305</item> <item>306</item> </oprand_edges> <opcode>bitselect</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_76"> <Value> <Obj> <type>0</type> <id>85</id> <name>loc_V_5</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/utils/x_hls_utils.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>477</lineNumber> <contextFuncName>fp_struct</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>199</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>4</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>436</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/utils/x_hls_utils.h</first> <second>fp_struct</second> </first> <second>477</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName>loc.V</originalName> <rtlName>loc_V_5_fu_341_p4</rtlName> <coreName/> </Obj> <bitwidth>11</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>307</item> <item>308</item> <item>309</item> <item>310</item> </oprand_edges> <opcode>partselect</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_77"> <Value> <Obj> <type>0</type> <id>86</id> <name>loc_V_6</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/utils/x_hls_utils.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>478</lineNumber> <contextFuncName>fp_struct</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>199</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>4</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>436</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/utils/x_hls_utils.h</first> <second>fp_struct</second> </first> <second>478</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName>loc.V</originalName> <rtlName>loc_V_6_fu_351_p1</rtlName> <coreName/> </Obj> <bitwidth>52</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>311</item> </oprand_edges> <opcode>trunc</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_78"> <Value> <Obj> <type>0</type> <id>87</id> <name>tmp_i_i1</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>438</lineNumber> <contextFuncName>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>199</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>438</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_i_i1_fu_582_p4</rtlName> <coreName/> </Obj> <bitwidth>54</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>312</item> <item>313</item> <item>314</item> <item>315</item> </oprand_edges> <opcode>bitconcatenate</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_79"> <Value> <Obj> <type>0</type> <id>88</id> <name>tmp_i_cast_i1</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>438</lineNumber> <contextFuncName>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>199</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>438</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_i_cast_i1_fu_591_p1</rtlName> <coreName/> </Obj> <bitwidth>137</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>316</item> </oprand_edges> <opcode>zext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_80"> <Value> <Obj> <type>0</type> <id>89</id> <name>tmp_i_i_cast_i1</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/utils/x_hls_utils.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>502</lineNumber> <contextFuncName>expv</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>199</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>4</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>441</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/utils/x_hls_utils.h</first> <second>expv</second> </first> <second>502</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_i_i_cast_i1_fu_355_p1</rtlName> <coreName/> </Obj> <bitwidth>12</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>317</item> </oprand_edges> <opcode>zext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_81"> <Value> <Obj> <type>0</type> <id>90</id> <name>sh_assign_5</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/utils/x_hls_utils.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>502</lineNumber> <contextFuncName>expv</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>199</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>4</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>441</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/utils/x_hls_utils.h</first> <second>expv</second> </first> <second>502</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName>sh</originalName> <rtlName>sh_assign_5_fu_359_p2</rtlName> <coreName/> </Obj> <bitwidth>12</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>318</item> <item>319</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>91</id> <name>isNeg_2</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>441</lineNumber> <contextFuncName>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>199</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>441</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName>isNeg</originalName> <rtlName>isNeg_2_reg_947</rtlName> <coreName/> </Obj> <bitwidth>1</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>320</item> <item>321</item> <item>322</item> </oprand_edges> <opcode>bitselect</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_83"> <Value> <Obj> <type>0</type> <id>92</id> <name>tmp_8_i_i2</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>441</lineNumber> <contextFuncName>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>199</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>441</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_8_i_i2_fu_373_p2</rtlName> <coreName/> </Obj> <bitwidth>11</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>323</item> <item>324</item> </oprand_edges> <opcode>sub</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_84"> <Value> <Obj> <type>0</type> <id>93</id> <name>tmp_8_i_cast_i2</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>441</lineNumber> <contextFuncName>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>199</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>441</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_8_i_cast_i2_fu_379_p1</rtlName> <coreName/> </Obj> <bitwidth>12</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>325</item> </oprand_edges> <opcode>sext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_85"> <Value> <Obj> <type>0</type> <id>94</id> <name>sh_assign_6</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>441</lineNumber> <contextFuncName>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>199</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>441</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName>sh</originalName> <rtlName>sh_assign_6_fu_383_p3</rtlName> <coreName/> </Obj> <bitwidth>12</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>326</item> <item>327</item> <item>328</item> </oprand_edges> <opcode>select</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_86"> <Value> <Obj> <type>0</type> <id>95</id> <name>sh_assign_2_i_cast_i_2</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>441</lineNumber> <contextFuncName>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>199</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>441</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>sh_assign_2_i_cast_i_2_fu_595_p1</rtlName> <coreName/> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>329</item> </oprand_edges> <opcode>sext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_87"> <Value> <Obj> <type>0</type> <id>96</id> <name>tmp_9_i_i2</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>441</lineNumber> <contextFuncName>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>199</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>441</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_9_i_i2_fu_598_p1</rtlName> <coreName/> </Obj> <bitwidth>137</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>330</item> </oprand_edges> <opcode>zext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_88"> <Value> <Obj> <type>0</type> <id>97</id> <name>tmp_9_i_cast_i2</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>441</lineNumber> <contextFuncName>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>199</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>441</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_9_i_cast_i2_fu_602_p1</rtlName> <coreName/> </Obj> <bitwidth>54</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>331</item> </oprand_edges> <opcode>zext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_89"> <Value> <Obj> <type>0</type> <id>98</id> <name>tmp_10_i_i2</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>441</lineNumber> <contextFuncName>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>199</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>441</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_10_i_i2_fu_606_p2</rtlName> <coreName/> </Obj> <bitwidth>54</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>332</item> <item>333</item> </oprand_edges> <opcode>lshr</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_90"> <Value> <Obj> <type>0</type> <id>99</id> <name>tmp_11_i_i2</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>441</lineNumber> <contextFuncName>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>199</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>441</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_11_i_i2_fu_612_p2</rtlName> <coreName/> </Obj> <bitwidth>137</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>334</item> <item>335</item> </oprand_edges> <opcode>shl</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_91"> <Value> <Obj> <type>0</type> <id>100</id> <name>tmp_32</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>444</lineNumber> <contextFuncName>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>199</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>444</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_32_fu_618_p3</rtlName> <coreName/> </Obj> <bitwidth>1</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>336</item> <item>337</item> <item>338</item> </oprand_edges> <opcode>bitselect</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_92"> <Value> <Obj> <type>0</type> <id>101</id> <name>tmp_4</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>444</lineNumber> <contextFuncName>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>199</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>444</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_4_fu_626_p1</rtlName> <coreName/> </Obj> <bitwidth>31</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>339</item> </oprand_edges> <opcode>zext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_93"> <Value> <Obj> <type>0</type> <id>102</id> <name>tmp_5</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>444</lineNumber> <contextFuncName>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>199</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>444</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_5_fu_630_p4</rtlName> <coreName/> </Obj> <bitwidth>31</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>340</item> <item>341</item> <item>342</item> <item>343</item> </oprand_edges> <opcode>partselect</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_94"> <Value> <Obj> <type>0</type> <id>103</id> <name>p_Val2_19</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>441</lineNumber> <contextFuncName>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>199</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>441</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName>__Val2__</originalName> <rtlName>p_Val2_19_fu_640_p3</rtlName> <coreName/> </Obj> <bitwidth>31</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>344</item> <item>345</item> <item>346</item> </oprand_edges> <opcode>select</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_95"> <Value> <Obj> <type>0</type> <id>104</id> <name>tmp_16_i_i2</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>441</lineNumber> <contextFuncName>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>199</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>441</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_16_i_i2_fu_732_p2</rtlName> <coreName/> </Obj> <bitwidth>31</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>348</item> <item>349</item> </oprand_edges> <opcode>sub</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_96"> <Value> <Obj> <type>0</type> <id>105</id> <name>tmp_6</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>473</lineNumber> <contextFuncName>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>199</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>473</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_6_fu_758_p3</rtlName> <coreName/> </Obj> <bitwidth>31</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>350</item> <item>351</item> <item>352</item> </oprand_edges> <opcode>select</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_97"> <Value> <Obj> <type>0</type> <id>106</id> <name>p_405</name> <fileName>hls_target.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>201</lineNumber> <contextFuncName>hls_target</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>201</second> </item> </second> </item> </inlineStackInfo> <originalName>_405</originalName> <rtlName>p_405_fu_764_p3</rtlName> <coreName/> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>354</item> <item>355</item> <item>356</item> </oprand_edges> <opcode>bitconcatenate</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_98"> <Value> <Obj> <type>0</type> <id>107</id> <name>p_411</name> <fileName>hls_target.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>208</lineNumber> <contextFuncName>hls_target</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>208</second> </item> </second> </item> </inlineStackInfo> <originalName>_411</originalName> <rtlName>hls_target_dmul_6jbC_U41</rtlName> <coreName/> </Obj> <bitwidth>64</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>357</item> <item>358</item> </oprand_edges> <opcode>dmul</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_99"> <Value> <Obj> <type>0</type> <id>108</id> <name>p_Val2_21</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/utils/x_hls_utils.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>475</lineNumber> <contextFuncName>fp_struct</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>209</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>4</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>436</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/utils/x_hls_utils.h</first> <second>fp_struct</second> </first> <second>475</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName>val</originalName> <rtlName>p_Val2_21_fu_391_p1</rtlName> <coreName/> </Obj> <bitwidth>64</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>359</item> </oprand_edges> <opcode>bitcast</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_100"> <Value> <Obj> <type>0</type> <id>109</id> <name>p_Result_6</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/utils/x_hls_utils.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>476</lineNumber> <contextFuncName>fp_struct</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>209</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>4</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>436</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/utils/x_hls_utils.h</first> <second>fp_struct</second> </first> <second>476</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName>__Result__</originalName> <rtlName>p_Result_6_fu_772_p3</rtlName> <coreName/> </Obj> <bitwidth>1</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>360</item> <item>361</item> <item>362</item> </oprand_edges> <opcode>bitselect</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_101"> <Value> <Obj> <type>0</type> <id>110</id> <name>loc_V_7</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/utils/x_hls_utils.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>477</lineNumber> <contextFuncName>fp_struct</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>209</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>4</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>436</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/utils/x_hls_utils.h</first> <second>fp_struct</second> </first> <second>477</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName>loc.V</originalName> <rtlName>loc_V_7_fu_394_p4</rtlName> <coreName/> </Obj> <bitwidth>11</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>363</item> <item>364</item> <item>365</item> <item>366</item> </oprand_edges> <opcode>partselect</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_102"> <Value> <Obj> <type>0</type> <id>111</id> <name>loc_V_8</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/utils/x_hls_utils.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>478</lineNumber> <contextFuncName>fp_struct</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>209</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>4</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>436</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/utils/x_hls_utils.h</first> <second>fp_struct</second> </first> <second>478</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName>loc.V</originalName> <rtlName>loc_V_8_fu_404_p1</rtlName> <coreName/> </Obj> <bitwidth>52</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>367</item> </oprand_edges> <opcode>trunc</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_103"> <Value> <Obj> <type>0</type> <id>112</id> <name>tmp_i_i2</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>438</lineNumber> <contextFuncName>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>209</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>438</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_i_i2_fu_647_p4</rtlName> <coreName/> </Obj> <bitwidth>54</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>368</item> <item>369</item> <item>370</item> <item>371</item> </oprand_edges> <opcode>bitconcatenate</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_104"> <Value> <Obj> <type>0</type> <id>113</id> <name>tmp_i_cast_i2</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>438</lineNumber> <contextFuncName>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>209</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>438</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_i_cast_i2_fu_656_p1</rtlName> <coreName/> </Obj> <bitwidth>137</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>372</item> </oprand_edges> <opcode>zext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_105"> <Value> <Obj> <type>0</type> <id>114</id> <name>tmp_i_i_cast_i2</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/utils/x_hls_utils.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>502</lineNumber> <contextFuncName>expv</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>209</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>4</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>441</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/utils/x_hls_utils.h</first> <second>expv</second> </first> <second>502</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_i_i_cast_i2_fu_408_p1</rtlName> <coreName/> </Obj> <bitwidth>12</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>373</item> </oprand_edges> <opcode>zext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_106"> <Value> <Obj> <type>0</type> <id>115</id> <name>sh_assign_7</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/utils/x_hls_utils.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>502</lineNumber> <contextFuncName>expv</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>209</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>4</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>441</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/utils/x_hls_utils.h</first> <second>expv</second> </first> <second>502</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName>sh</originalName> <rtlName>sh_assign_7_fu_412_p2</rtlName> <coreName/> </Obj> <bitwidth>12</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>374</item> <item>375</item> </oprand_edges> <opcode>add</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_107"> <Value> <Obj> <type>0</type> <id>116</id> <name>isNeg_3</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>441</lineNumber> <contextFuncName>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>209</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>441</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName>isNeg</originalName> <rtlName>isNeg_3_reg_967</rtlName> <coreName/> </Obj> <bitwidth>1</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>376</item> <item>377</item> <item>378</item> </oprand_edges> <opcode>bitselect</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_108"> <Value> <Obj> <type>0</type> <id>117</id> <name>tmp_8_i_i3</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>441</lineNumber> <contextFuncName>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>209</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>441</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_8_i_i3_fu_426_p2</rtlName> <coreName/> </Obj> <bitwidth>11</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>379</item> <item>380</item> </oprand_edges> <opcode>sub</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_109"> <Value> <Obj> <type>0</type> <id>118</id> <name>tmp_8_i_cast_i3</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>441</lineNumber> <contextFuncName>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>209</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>441</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_8_i_cast_i3_fu_432_p1</rtlName> <coreName/> </Obj> <bitwidth>12</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>381</item> </oprand_edges> <opcode>sext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_110"> <Value> <Obj> <type>0</type> <id>119</id> <name>sh_assign_8</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>441</lineNumber> <contextFuncName>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>209</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>441</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName>sh</originalName> <rtlName>sh_assign_8_fu_436_p3</rtlName> <coreName/> </Obj> <bitwidth>12</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>382</item> <item>383</item> <item>384</item> </oprand_edges> <opcode>select</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_111"> <Value> <Obj> <type>0</type> <id>120</id> <name>sh_assign_2_i_cast_i_3</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>441</lineNumber> <contextFuncName>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>209</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>441</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>sh_assign_2_i_cast_i_3_fu_660_p1</rtlName> <coreName/> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>385</item> </oprand_edges> <opcode>sext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_112"> <Value> <Obj> <type>0</type> <id>121</id> <name>tmp_9_i_i3</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>441</lineNumber> <contextFuncName>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>209</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>441</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_9_i_i3_fu_663_p1</rtlName> <coreName/> </Obj> <bitwidth>137</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>386</item> </oprand_edges> <opcode>zext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_113"> <Value> <Obj> <type>0</type> <id>122</id> <name>tmp_9_i_cast_i3</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>441</lineNumber> <contextFuncName>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>209</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>441</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_9_i_cast_i3_fu_667_p1</rtlName> <coreName/> </Obj> <bitwidth>54</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>387</item> </oprand_edges> <opcode>zext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_114"> <Value> <Obj> <type>0</type> <id>123</id> <name>tmp_10_i_i3</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>441</lineNumber> <contextFuncName>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>209</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>441</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_10_i_i3_fu_671_p2</rtlName> <coreName/> </Obj> <bitwidth>54</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>388</item> <item>389</item> </oprand_edges> <opcode>lshr</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_115"> <Value> <Obj> <type>0</type> <id>124</id> <name>tmp_11_i_i3</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>441</lineNumber> <contextFuncName>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>209</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>441</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_11_i_i3_fu_677_p2</rtlName> <coreName/> </Obj> <bitwidth>137</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>390</item> <item>391</item> </oprand_edges> <opcode>shl</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_116"> <Value> <Obj> <type>0</type> <id>125</id> <name>tmp_36</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>444</lineNumber> <contextFuncName>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>209</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>444</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_36_fu_683_p3</rtlName> <coreName/> </Obj> <bitwidth>1</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>392</item> <item>393</item> <item>394</item> </oprand_edges> <opcode>bitselect</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_117"> <Value> <Obj> <type>0</type> <id>126</id> <name>tmp_9</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>444</lineNumber> <contextFuncName>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>209</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>444</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_9_fu_691_p1</rtlName> <coreName/> </Obj> <bitwidth>31</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>395</item> </oprand_edges> <opcode>zext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_118"> <Value> <Obj> <type>0</type> <id>127</id> <name>tmp_10</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>444</lineNumber> <contextFuncName>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>209</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>444</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_10_fu_695_p4</rtlName> <coreName/> </Obj> <bitwidth>31</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>396</item> <item>397</item> <item>398</item> <item>399</item> </oprand_edges> <opcode>partselect</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_119"> <Value> <Obj> <type>0</type> <id>128</id> <name>p_Val2_23</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>441</lineNumber> <contextFuncName>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>209</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>441</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName>__Val2__</originalName> <rtlName>p_Val2_23_fu_705_p3</rtlName> <coreName/> </Obj> <bitwidth>31</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>400</item> <item>401</item> <item>402</item> </oprand_edges> <opcode>select</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_120"> <Value> <Obj> <type>0</type> <id>129</id> <name>tmp_13_i_i3</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>472</lineNumber> <contextFuncName>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>209</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>472</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_13_i_i3_fu_737_p1</rtlName> <coreName/> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>403</item> </oprand_edges> <opcode>zext</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_121"> <Value> <Obj> <type>0</type> <id>130</id> <name>tmp_16_i_i3</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>473</lineNumber> <contextFuncName>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>209</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>473</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_16_i_i3_fu_740_p2</rtlName> <coreName/> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>404</item> <item>405</item> </oprand_edges> <opcode>sub</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_122"> <Value> <Obj> <type>0</type> <id>131</id> <name>p_Val2_27</name> <fileName>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</fileName> <fileDirectory>../../../../../../../../../../wrk/2017.2/nightly/2017_06_15_1909853/src/products</fileDirectory> <lineNumber>473</lineNumber> <contextFuncName>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</contextFuncName> <inlineStackInfo> <count>2</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>209</second> </item> </second> </item> <item> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, 6, double&amp;gt;</second> </first> <second>473</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/hls/hls_round.h</first> <second>cast_IEEE754&amp;lt;int, double&amp;gt;</second> </first> <second>523</second> </item> <item> <first> <first>/wrk/2017.2/nightly/2017_06_15_1909853/src/products/hls/hls_lib/src/lib_floatconversion.cpp</first> <second>__hls_fptosi_double_i32</second> </first> <second>47</second> </item> </second> </item> </inlineStackInfo> <originalName>__Val2__</originalName> <rtlName>p_Val2_27_fu_779_p3</rtlName> <coreName/> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>406</item> <item>407</item> <item>408</item> </oprand_edges> <opcode>select</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_123"> <Value> <Obj> <type>0</type> <id>132</id> <name>tmp</name> <fileName>hls_target.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>212</lineNumber> <contextFuncName>hls_target</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>212</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_fu_798_p2</rtlName> <coreName/> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>409</item> <item>410</item> </oprand_edges> <opcode>add</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_124"> <Value> <Obj> <type>0</type> <id>133</id> <name>tmp5</name> <fileName>hls_target.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>212</lineNumber> <contextFuncName>hls_target</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>212</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp5_fu_785_p2</rtlName> <coreName/> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>411</item> <item>412</item> </oprand_edges> <opcode>add</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_125"> <Value> <Obj> <type>0</type> <id>134</id> <name>p_415</name> <fileName>hls_target.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>212</lineNumber> <contextFuncName>hls_target</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>212</second> </item> </second> </item> </inlineStackInfo> <originalName>_415</originalName> <rtlName>p_415_fu_803_p2</rtlName> <coreName/> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>413</item> <item>414</item> </oprand_edges> <opcode>add</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_126"> <Value> <Obj> <type>0</type> <id>135</id> <name/> <fileName>hls_target.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>214</lineNumber> <contextFuncName>hls_target</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>214</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>416</item> <item>417</item> <item>418</item> </oprand_edges> <opcode>write</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_127"> <Value> <Obj> <type>0</type> <id>137</id> <name/> <fileName>hls_target.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>162</lineNumber> <contextFuncName>hls_target</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d_b2b</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>162</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>419</item> </oprand_edges> <opcode>br</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_128"> <Value> <Obj> <type>0</type> <id>139</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>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>23</count> <item_version>0</item_version> <item class_id="16" tracking_level="1" version="0" object_id="_129"> <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>32</bitwidth> </Value> <const_type>0</const_type> <content>32</content> </item> <item class_id_reference="16" object_id="_130"> <Value> <Obj> <type>2</type> <id>153</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>63</content> </item> <item class_id_reference="16" object_id="_131"> <Value> <Obj> <type>2</type> <id>159</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>64</content> </item> <item class_id_reference="16" object_id="_132"> <Value> <Obj> <type>2</type> <id>161</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>95</content> </item> <item class_id_reference="16" object_id="_133"> <Value> <Obj> <type>2</type> <id>167</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>96</content> </item> <item class_id_reference="16" object_id="_134"> <Value> <Obj> <type>2</type> <id>169</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>127</content> </item> <item class_id_reference="16" object_id="_135"> <Value> <Obj> <type>2</type> <id>174</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>64</bitwidth> </Value> <const_type>1</const_type> <content>0.0625</content> </item> <item class_id_reference="16" object_id="_136"> <Value> <Obj> <type>2</type> <id>184</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>52</content> </item> <item class_id_reference="16" object_id="_137"> <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>32</bitwidth> </Value> <const_type>0</const_type> <content>62</content> </item> <item class_id_reference="16" object_id="_138"> <Value> <Obj> <type>2</type> <id>191</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>1</bitwidth> </Value> <const_type>0</const_type> <content>1</content> </item> <item class_id_reference="16" object_id="_139"> <Value> <Obj> <type>2</type> <id>194</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>1</bitwidth> </Value> <const_type>0</const_type> <content>0</content> </item> <item class_id_reference="16" object_id="_140"> <Value> <Obj> <type>2</type> <id>198</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>12</bitwidth> </Value> <const_type>0</const_type> <content>3073</content> </item> <item class_id_reference="16" object_id="_141"> <Value> <Obj> <type>2</type> <id>204</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>11</content> </item> <item class_id_reference="16" object_id="_142"> <Value> <Obj> <type>2</type> <id>206</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>11</bitwidth> </Value> <const_type>0</const_type> <content>1023</content> </item> <item class_id_reference="16" object_id="_143"> <Value> <Obj> <type>2</type> <id>223</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>53</content> </item> <item class_id_reference="16" object_id="_144"> <Value> <Obj> <type>2</type> <id>230</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>83</content> </item> <item class_id_reference="16" object_id="_145"> <Value> <Obj> <type>2</type> <id>236</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="_146"> <Value> <Obj> <type>2</type> <id>289</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>30</bitwidth> </Value> <const_type>0</const_type> <content>0</content> </item> <item class_id_reference="16" object_id="_147"> <Value> <Obj> <type>2</type> <id>299</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="_148"> <Value> <Obj> <type>2</type> <id>347</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>31</bitwidth> </Value> <const_type>0</const_type> <content>0</content> </item> <item class_id_reference="16" object_id="_149"> <Value> <Obj> <type>2</type> <id>420</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>21</bitwidth> </Value> <const_type>0</const_type> <content>0</content> </item> <item class_id_reference="16" object_id="_150"> <Value> <Obj> <type>2</type> <id>426</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>21</bitwidth> </Value> <const_type>0</const_type> <content>2064609</content> </item> <item class_id_reference="16" object_id="_151"> <Value> <Obj> <type>2</type> <id>429</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>21</bitwidth> </Value> <const_type>0</const_type> <content>1</content> </item> </consts> <blocks class_id="17" tracking_level="0" version="0"> <count>4</count> <item_version>0</item_version> <item class_id="18" tracking_level="1" version="0" object_id="_152"> <Obj> <type>3</type> <id>8</id> <name>newFuncRoot</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>7</item> </node_objs> </item> <item class_id_reference="18" object_id="_153"> <Obj> <type>3</type> <id>13</id> <name>.preheader38</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <node_objs> <count>4</count> <item_version>0</item_version> <item>9</item> <item>10</item> <item>11</item> <item>12</item> </node_objs> </item> <item class_id_reference="18" object_id="_154"> <Obj> <type>3</type> <id>138</id> <name>.preheader38.preheader</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <node_objs> <count>120</count> <item_version>0</item_version> <item>17</item> <item>18</item> <item>19</item> <item>20</item> <item>21</item> <item>22</item> <item>23</item> <item>24</item> <item>25</item> <item>26</item> <item>27</item> <item>28</item> <item>29</item> <item>30</item> <item>31</item> <item>32</item> <item>33</item> <item>34</item> <item>35</item> <item>36</item> <item>37</item> <item>38</item> <item>39</item> <item>40</item> <item>41</item> <item>42</item> <item>43</item> <item>44</item> <item>45</item> <item>46</item> <item>47</item> <item>48</item> <item>49</item> <item>50</item> <item>51</item> <item>52</item> <item>53</item> <item>54</item> <item>55</item> <item>56</item> <item>57</item> <item>58</item> <item>59</item> <item>60</item> <item>61</item> <item>62</item> <item>63</item> <item>64</item> <item>65</item> <item>66</item> <item>67</item> <item>68</item> <item>69</item> <item>70</item> <item>71</item> <item>72</item> <item>73</item> <item>74</item> <item>75</item> <item>76</item> <item>77</item> <item>78</item> <item>79</item> <item>80</item> <item>81</item> <item>82</item> <item>83</item> <item>84</item> <item>85</item> <item>86</item> <item>87</item> <item>88</item> <item>89</item> <item>90</item> <item>91</item> <item>92</item> <item>93</item> <item>94</item> <item>95</item> <item>96</item> <item>97</item> <item>98</item> <item>99</item> <item>100</item> <item>101</item> <item>102</item> <item>103</item> <item>104</item> <item>105</item> <item>106</item> <item>107</item> <item>108</item> <item>109</item> <item>110</item> <item>111</item> <item>112</item> <item>113</item> <item>114</item> <item>115</item> <item>116</item> <item>117</item> <item>118</item> <item>119</item> <item>120</item> <item>121</item> <item>122</item> <item>123</item> <item>124</item> <item>125</item> <item>126</item> <item>127</item> <item>128</item> <item>129</item> <item>130</item> <item>131</item> <item>132</item> <item>133</item> <item>134</item> <item>135</item> <item>137</item> </node_objs> </item> <item class_id_reference="18" object_id="_155"> <Obj> <type>3</type> <id>140</id> <name>.preheader37.exitStub</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>139</item> </node_objs> </item> </blocks> <edges class_id="19" tracking_level="0" version="0"> <count>232</count> <item_version>0</item_version> <item class_id="20" tracking_level="1" version="0" object_id="_156"> <id>141</id> <edge_type>2</edge_type> <source_obj>13</source_obj> <sink_obj>7</sink_obj> </item> <item class_id_reference="20" object_id="_157"> <id>144</id> <edge_type>1</edge_type> <source_obj>1</source_obj> <sink_obj>17</sink_obj> </item> <item class_id_reference="20" object_id="_158"> <id>145</id> <edge_type>1</edge_type> <source_obj>17</source_obj> <sink_obj>18</sink_obj> </item> <item class_id_reference="20" object_id="_159"> <id>146</id> <edge_type>1</edge_type> <source_obj>18</source_obj> <sink_obj>19</sink_obj> </item> <item class_id_reference="20" object_id="_160"> <id>147</id> <edge_type>1</edge_type> <source_obj>19</source_obj> <sink_obj>20</sink_obj> </item> <item class_id_reference="20" object_id="_161"> <id>150</id> <edge_type>1</edge_type> <source_obj>17</source_obj> <sink_obj>21</sink_obj> </item> <item class_id_reference="20" object_id="_162"> <id>152</id> <edge_type>1</edge_type> <source_obj>151</source_obj> <sink_obj>21</sink_obj> </item> <item class_id_reference="20" object_id="_163"> <id>154</id> <edge_type>1</edge_type> <source_obj>153</source_obj> <sink_obj>21</sink_obj> </item> <item class_id_reference="20" object_id="_164"> <id>155</id> <edge_type>1</edge_type> <source_obj>21</source_obj> <sink_obj>22</sink_obj> </item> <item class_id_reference="20" object_id="_165"> <id>156</id> <edge_type>1</edge_type> <source_obj>22</source_obj> <sink_obj>23</sink_obj> </item> <item class_id_reference="20" object_id="_166"> <id>158</id> <edge_type>1</edge_type> <source_obj>17</source_obj> <sink_obj>24</sink_obj> </item> <item class_id_reference="20" object_id="_167"> <id>160</id> <edge_type>1</edge_type> <source_obj>159</source_obj> <sink_obj>24</sink_obj> </item> <item class_id_reference="20" object_id="_168"> <id>162</id> <edge_type>1</edge_type> <source_obj>161</source_obj> <sink_obj>24</sink_obj> </item> <item class_id_reference="20" object_id="_169"> <id>163</id> <edge_type>1</edge_type> <source_obj>24</source_obj> <sink_obj>25</sink_obj> </item> <item class_id_reference="20" object_id="_170"> <id>164</id> <edge_type>1</edge_type> <source_obj>25</source_obj> <sink_obj>26</sink_obj> </item> <item class_id_reference="20" object_id="_171"> <id>166</id> <edge_type>1</edge_type> <source_obj>17</source_obj> <sink_obj>27</sink_obj> </item> <item class_id_reference="20" object_id="_172"> <id>168</id> <edge_type>1</edge_type> <source_obj>167</source_obj> <sink_obj>27</sink_obj> </item> <item class_id_reference="20" object_id="_173"> <id>170</id> <edge_type>1</edge_type> <source_obj>169</source_obj> <sink_obj>27</sink_obj> </item> <item class_id_reference="20" object_id="_174"> <id>171</id> <edge_type>1</edge_type> <source_obj>27</source_obj> <sink_obj>28</sink_obj> </item> <item class_id_reference="20" object_id="_175"> <id>172</id> <edge_type>1</edge_type> <source_obj>28</source_obj> <sink_obj>29</sink_obj> </item> <item class_id_reference="20" object_id="_176"> <id>173</id> <edge_type>1</edge_type> <source_obj>20</source_obj> <sink_obj>30</sink_obj> </item> <item class_id_reference="20" object_id="_177"> <id>175</id> <edge_type>1</edge_type> <source_obj>174</source_obj> <sink_obj>30</sink_obj> </item> <item class_id_reference="20" object_id="_178"> <id>176</id> <edge_type>1</edge_type> <source_obj>30</source_obj> <sink_obj>31</sink_obj> </item> <item class_id_reference="20" object_id="_179"> <id>179</id> <edge_type>1</edge_type> <source_obj>31</source_obj> <sink_obj>32</sink_obj> </item> <item class_id_reference="20" object_id="_180"> <id>180</id> <edge_type>1</edge_type> <source_obj>153</source_obj> <sink_obj>32</sink_obj> </item> <item class_id_reference="20" object_id="_181"> <id>183</id> <edge_type>1</edge_type> <source_obj>31</source_obj> <sink_obj>33</sink_obj> </item> <item class_id_reference="20" object_id="_182"> <id>185</id> <edge_type>1</edge_type> <source_obj>184</source_obj> <sink_obj>33</sink_obj> </item> <item class_id_reference="20" object_id="_183"> <id>187</id> <edge_type>1</edge_type> <source_obj>186</source_obj> <sink_obj>33</sink_obj> </item> <item class_id_reference="20" object_id="_184"> <id>188</id> <edge_type>1</edge_type> <source_obj>31</source_obj> <sink_obj>34</sink_obj> </item> <item class_id_reference="20" object_id="_185"> <id>192</id> <edge_type>1</edge_type> <source_obj>191</source_obj> <sink_obj>35</sink_obj> </item> <item class_id_reference="20" object_id="_186"> <id>193</id> <edge_type>1</edge_type> <source_obj>34</source_obj> <sink_obj>35</sink_obj> </item> <item class_id_reference="20" object_id="_187"> <id>195</id> <edge_type>1</edge_type> <source_obj>194</source_obj> <sink_obj>35</sink_obj> </item> <item class_id_reference="20" object_id="_188"> <id>196</id> <edge_type>1</edge_type> <source_obj>35</source_obj> <sink_obj>36</sink_obj> </item> <item class_id_reference="20" object_id="_189"> <id>197</id> <edge_type>1</edge_type> <source_obj>33</source_obj> <sink_obj>37</sink_obj> </item> <item class_id_reference="20" object_id="_190"> <id>199</id> <edge_type>1</edge_type> <source_obj>198</source_obj> <sink_obj>38</sink_obj> </item> <item class_id_reference="20" object_id="_191"> <id>200</id> <edge_type>1</edge_type> <source_obj>37</source_obj> <sink_obj>38</sink_obj> </item> <item class_id_reference="20" object_id="_192"> <id>203</id> <edge_type>1</edge_type> <source_obj>38</source_obj> <sink_obj>39</sink_obj> </item> <item class_id_reference="20" object_id="_193"> <id>205</id> <edge_type>1</edge_type> <source_obj>204</source_obj> <sink_obj>39</sink_obj> </item> <item class_id_reference="20" object_id="_194"> <id>207</id> <edge_type>1</edge_type> <source_obj>206</source_obj> <sink_obj>40</sink_obj> </item> <item class_id_reference="20" object_id="_195"> <id>208</id> <edge_type>1</edge_type> <source_obj>33</source_obj> <sink_obj>40</sink_obj> </item> <item class_id_reference="20" object_id="_196"> <id>209</id> <edge_type>1</edge_type> <source_obj>40</source_obj> <sink_obj>41</sink_obj> </item> <item class_id_reference="20" object_id="_197"> <id>210</id> <edge_type>1</edge_type> <source_obj>39</source_obj> <sink_obj>42</sink_obj> </item> <item class_id_reference="20" object_id="_198"> <id>211</id> <edge_type>1</edge_type> <source_obj>41</source_obj> <sink_obj>42</sink_obj> </item> <item class_id_reference="20" object_id="_199"> <id>212</id> <edge_type>1</edge_type> <source_obj>38</source_obj> <sink_obj>42</sink_obj> </item> <item class_id_reference="20" object_id="_200"> <id>213</id> <edge_type>1</edge_type> <source_obj>42</source_obj> <sink_obj>43</sink_obj> </item> <item class_id_reference="20" object_id="_201"> <id>214</id> <edge_type>1</edge_type> <source_obj>43</source_obj> <sink_obj>44</sink_obj> </item> <item class_id_reference="20" object_id="_202"> <id>215</id> <edge_type>1</edge_type> <source_obj>43</source_obj> <sink_obj>45</sink_obj> </item> <item class_id_reference="20" object_id="_203"> <id>216</id> <edge_type>1</edge_type> <source_obj>35</source_obj> <sink_obj>46</sink_obj> </item> <item class_id_reference="20" object_id="_204"> <id>217</id> <edge_type>1</edge_type> <source_obj>45</source_obj> <sink_obj>46</sink_obj> </item> <item class_id_reference="20" object_id="_205"> <id>218</id> <edge_type>1</edge_type> <source_obj>36</source_obj> <sink_obj>47</sink_obj> </item> <item class_id_reference="20" object_id="_206"> <id>219</id> <edge_type>1</edge_type> <source_obj>44</source_obj> <sink_obj>47</sink_obj> </item> <item class_id_reference="20" object_id="_207"> <id>222</id> <edge_type>1</edge_type> <source_obj>46</source_obj> <sink_obj>48</sink_obj> </item> <item class_id_reference="20" object_id="_208"> <id>224</id> <edge_type>1</edge_type> <source_obj>223</source_obj> <sink_obj>48</sink_obj> </item> <item class_id_reference="20" object_id="_209"> <id>225</id> <edge_type>1</edge_type> <source_obj>48</source_obj> <sink_obj>49</sink_obj> </item> <item class_id_reference="20" object_id="_210"> <id>228</id> <edge_type>1</edge_type> <source_obj>47</source_obj> <sink_obj>50</sink_obj> </item> <item class_id_reference="20" object_id="_211"> <id>229</id> <edge_type>1</edge_type> <source_obj>223</source_obj> <sink_obj>50</sink_obj> </item> <item class_id_reference="20" object_id="_212"> <id>231</id> <edge_type>1</edge_type> <source_obj>230</source_obj> <sink_obj>50</sink_obj> </item> <item class_id_reference="20" object_id="_213"> <id>232</id> <edge_type>1</edge_type> <source_obj>39</source_obj> <sink_obj>51</sink_obj> </item> <item class_id_reference="20" object_id="_214"> <id>233</id> <edge_type>1</edge_type> <source_obj>49</source_obj> <sink_obj>51</sink_obj> </item> <item class_id_reference="20" object_id="_215"> <id>234</id> <edge_type>1</edge_type> <source_obj>50</source_obj> <sink_obj>51</sink_obj> </item> <item class_id_reference="20" object_id="_216"> <id>235</id> <edge_type>1</edge_type> <source_obj>51</source_obj> <sink_obj>52</sink_obj> </item> <item class_id_reference="20" object_id="_217"> <id>237</id> <edge_type>1</edge_type> <source_obj>236</source_obj> <sink_obj>53</sink_obj> </item> <item class_id_reference="20" object_id="_218"> <id>238</id> <edge_type>1</edge_type> <source_obj>52</source_obj> <sink_obj>53</sink_obj> </item> <item class_id_reference="20" object_id="_219"> <id>239</id> <edge_type>1</edge_type> <source_obj>32</source_obj> <sink_obj>54</sink_obj> </item> <item class_id_reference="20" object_id="_220"> <id>240</id> <edge_type>1</edge_type> <source_obj>53</source_obj> <sink_obj>54</sink_obj> </item> <item class_id_reference="20" object_id="_221"> <id>241</id> <edge_type>1</edge_type> <source_obj>52</source_obj> <sink_obj>54</sink_obj> </item> <item class_id_reference="20" object_id="_222"> <id>242</id> <edge_type>1</edge_type> <source_obj>23</source_obj> <sink_obj>55</sink_obj> </item> <item class_id_reference="20" object_id="_223"> <id>243</id> <edge_type>1</edge_type> <source_obj>174</source_obj> <sink_obj>55</sink_obj> </item> <item class_id_reference="20" object_id="_224"> <id>244</id> <edge_type>1</edge_type> <source_obj>55</source_obj> <sink_obj>56</sink_obj> </item> <item class_id_reference="20" object_id="_225"> <id>246</id> <edge_type>1</edge_type> <source_obj>56</source_obj> <sink_obj>57</sink_obj> </item> <item class_id_reference="20" object_id="_226"> <id>247</id> <edge_type>1</edge_type> <source_obj>153</source_obj> <sink_obj>57</sink_obj> </item> <item class_id_reference="20" object_id="_227"> <id>249</id> <edge_type>1</edge_type> <source_obj>56</source_obj> <sink_obj>58</sink_obj> </item> <item class_id_reference="20" object_id="_228"> <id>250</id> <edge_type>1</edge_type> <source_obj>184</source_obj> <sink_obj>58</sink_obj> </item> <item class_id_reference="20" object_id="_229"> <id>251</id> <edge_type>1</edge_type> <source_obj>186</source_obj> <sink_obj>58</sink_obj> </item> <item class_id_reference="20" object_id="_230"> <id>252</id> <edge_type>1</edge_type> <source_obj>56</source_obj> <sink_obj>59</sink_obj> </item> <item class_id_reference="20" object_id="_231"> <id>254</id> <edge_type>1</edge_type> <source_obj>191</source_obj> <sink_obj>60</sink_obj> </item> <item class_id_reference="20" object_id="_232"> <id>255</id> <edge_type>1</edge_type> <source_obj>59</source_obj> <sink_obj>60</sink_obj> </item> <item class_id_reference="20" object_id="_233"> <id>256</id> <edge_type>1</edge_type> <source_obj>194</source_obj> <sink_obj>60</sink_obj> </item> <item class_id_reference="20" object_id="_234"> <id>257</id> <edge_type>1</edge_type> <source_obj>60</source_obj> <sink_obj>61</sink_obj> </item> <item class_id_reference="20" object_id="_235"> <id>258</id> <edge_type>1</edge_type> <source_obj>58</source_obj> <sink_obj>62</sink_obj> </item> <item class_id_reference="20" object_id="_236"> <id>259</id> <edge_type>1</edge_type> <source_obj>198</source_obj> <sink_obj>63</sink_obj> </item> <item class_id_reference="20" object_id="_237"> <id>260</id> <edge_type>1</edge_type> <source_obj>62</source_obj> <sink_obj>63</sink_obj> </item> <item class_id_reference="20" object_id="_238"> <id>262</id> <edge_type>1</edge_type> <source_obj>63</source_obj> <sink_obj>64</sink_obj> </item> <item class_id_reference="20" object_id="_239"> <id>263</id> <edge_type>1</edge_type> <source_obj>204</source_obj> <sink_obj>64</sink_obj> </item> <item class_id_reference="20" object_id="_240"> <id>264</id> <edge_type>1</edge_type> <source_obj>206</source_obj> <sink_obj>65</sink_obj> </item> <item class_id_reference="20" object_id="_241"> <id>265</id> <edge_type>1</edge_type> <source_obj>58</source_obj> <sink_obj>65</sink_obj> </item> <item class_id_reference="20" object_id="_242"> <id>266</id> <edge_type>1</edge_type> <source_obj>65</source_obj> <sink_obj>66</sink_obj> </item> <item class_id_reference="20" object_id="_243"> <id>267</id> <edge_type>1</edge_type> <source_obj>64</source_obj> <sink_obj>67</sink_obj> </item> <item class_id_reference="20" object_id="_244"> <id>268</id> <edge_type>1</edge_type> <source_obj>66</source_obj> <sink_obj>67</sink_obj> </item> <item class_id_reference="20" object_id="_245"> <id>269</id> <edge_type>1</edge_type> <source_obj>63</source_obj> <sink_obj>67</sink_obj> </item> <item class_id_reference="20" object_id="_246"> <id>270</id> <edge_type>1</edge_type> <source_obj>67</source_obj> <sink_obj>68</sink_obj> </item> <item class_id_reference="20" object_id="_247"> <id>271</id> <edge_type>1</edge_type> <source_obj>68</source_obj> <sink_obj>69</sink_obj> </item> <item class_id_reference="20" object_id="_248"> <id>272</id> <edge_type>1</edge_type> <source_obj>68</source_obj> <sink_obj>70</sink_obj> </item> <item class_id_reference="20" object_id="_249"> <id>273</id> <edge_type>1</edge_type> <source_obj>60</source_obj> <sink_obj>71</sink_obj> </item> <item class_id_reference="20" object_id="_250"> <id>274</id> <edge_type>1</edge_type> <source_obj>70</source_obj> <sink_obj>71</sink_obj> </item> <item class_id_reference="20" object_id="_251"> <id>275</id> <edge_type>1</edge_type> <source_obj>61</source_obj> <sink_obj>72</sink_obj> </item> <item class_id_reference="20" object_id="_252"> <id>276</id> <edge_type>1</edge_type> <source_obj>69</source_obj> <sink_obj>72</sink_obj> </item> <item class_id_reference="20" object_id="_253"> <id>278</id> <edge_type>1</edge_type> <source_obj>71</source_obj> <sink_obj>73</sink_obj> </item> <item class_id_reference="20" object_id="_254"> <id>279</id> <edge_type>1</edge_type> <source_obj>223</source_obj> <sink_obj>73</sink_obj> </item> <item class_id_reference="20" object_id="_255"> <id>280</id> <edge_type>1</edge_type> <source_obj>73</source_obj> <sink_obj>74</sink_obj> </item> <item class_id_reference="20" object_id="_256"> <id>282</id> <edge_type>1</edge_type> <source_obj>72</source_obj> <sink_obj>75</sink_obj> </item> <item class_id_reference="20" object_id="_257"> <id>283</id> <edge_type>1</edge_type> <source_obj>223</source_obj> <sink_obj>75</sink_obj> </item> <item class_id_reference="20" object_id="_258"> <id>284</id> <edge_type>1</edge_type> <source_obj>230</source_obj> <sink_obj>75</sink_obj> </item> <item class_id_reference="20" object_id="_259"> <id>285</id> <edge_type>1</edge_type> <source_obj>64</source_obj> <sink_obj>76</sink_obj> </item> <item class_id_reference="20" object_id="_260"> <id>286</id> <edge_type>1</edge_type> <source_obj>74</source_obj> <sink_obj>76</sink_obj> </item> <item class_id_reference="20" object_id="_261"> <id>287</id> <edge_type>1</edge_type> <source_obj>75</source_obj> <sink_obj>76</sink_obj> </item> <item class_id_reference="20" object_id="_262"> <id>288</id> <edge_type>1</edge_type> <source_obj>76</source_obj> <sink_obj>77</sink_obj> </item> <item class_id_reference="20" object_id="_263"> <id>290</id> <edge_type>1</edge_type> <source_obj>289</source_obj> <sink_obj>78</sink_obj> </item> <item class_id_reference="20" object_id="_264"> <id>291</id> <edge_type>1</edge_type> <source_obj>77</source_obj> <sink_obj>78</sink_obj> </item> <item class_id_reference="20" object_id="_265"> <id>292</id> <edge_type>1</edge_type> <source_obj>76</source_obj> <sink_obj>79</sink_obj> </item> <item class_id_reference="20" object_id="_266"> <id>293</id> <edge_type>1</edge_type> <source_obj>57</source_obj> <sink_obj>80</sink_obj> </item> <item class_id_reference="20" object_id="_267"> <id>294</id> <edge_type>1</edge_type> <source_obj>78</source_obj> <sink_obj>80</sink_obj> </item> <item class_id_reference="20" object_id="_268"> <id>295</id> <edge_type>1</edge_type> <source_obj>79</source_obj> <sink_obj>80</sink_obj> </item> <item class_id_reference="20" object_id="_269"> <id>298</id> <edge_type>1</edge_type> <source_obj>80</source_obj> <sink_obj>81</sink_obj> </item> <item class_id_reference="20" object_id="_270"> <id>300</id> <edge_type>1</edge_type> <source_obj>299</source_obj> <sink_obj>81</sink_obj> </item> <item class_id_reference="20" object_id="_271"> <id>301</id> <edge_type>1</edge_type> <source_obj>26</source_obj> <sink_obj>82</sink_obj> </item> <item class_id_reference="20" object_id="_272"> <id>302</id> <edge_type>1</edge_type> <source_obj>174</source_obj> <sink_obj>82</sink_obj> </item> <item class_id_reference="20" object_id="_273"> <id>303</id> <edge_type>1</edge_type> <source_obj>82</source_obj> <sink_obj>83</sink_obj> </item> <item class_id_reference="20" object_id="_274"> <id>305</id> <edge_type>1</edge_type> <source_obj>83</source_obj> <sink_obj>84</sink_obj> </item> <item class_id_reference="20" object_id="_275"> <id>306</id> <edge_type>1</edge_type> <source_obj>153</source_obj> <sink_obj>84</sink_obj> </item> <item class_id_reference="20" object_id="_276"> <id>308</id> <edge_type>1</edge_type> <source_obj>83</source_obj> <sink_obj>85</sink_obj> </item> <item class_id_reference="20" object_id="_277"> <id>309</id> <edge_type>1</edge_type> <source_obj>184</source_obj> <sink_obj>85</sink_obj> </item> <item class_id_reference="20" object_id="_278"> <id>310</id> <edge_type>1</edge_type> <source_obj>186</source_obj> <sink_obj>85</sink_obj> </item> <item class_id_reference="20" object_id="_279"> <id>311</id> <edge_type>1</edge_type> <source_obj>83</source_obj> <sink_obj>86</sink_obj> </item> <item class_id_reference="20" object_id="_280"> <id>313</id> <edge_type>1</edge_type> <source_obj>191</source_obj> <sink_obj>87</sink_obj> </item> <item class_id_reference="20" object_id="_281"> <id>314</id> <edge_type>1</edge_type> <source_obj>86</source_obj> <sink_obj>87</sink_obj> </item> <item class_id_reference="20" object_id="_282"> <id>315</id> <edge_type>1</edge_type> <source_obj>194</source_obj> <sink_obj>87</sink_obj> </item> <item class_id_reference="20" object_id="_283"> <id>316</id> <edge_type>1</edge_type> <source_obj>87</source_obj> <sink_obj>88</sink_obj> </item> <item class_id_reference="20" object_id="_284"> <id>317</id> <edge_type>1</edge_type> <source_obj>85</source_obj> <sink_obj>89</sink_obj> </item> <item class_id_reference="20" object_id="_285"> <id>318</id> <edge_type>1</edge_type> <source_obj>198</source_obj> <sink_obj>90</sink_obj> </item> <item class_id_reference="20" object_id="_286"> <id>319</id> <edge_type>1</edge_type> <source_obj>89</source_obj> <sink_obj>90</sink_obj> </item> <item class_id_reference="20" object_id="_287"> <id>321</id> <edge_type>1</edge_type> <source_obj>90</source_obj> <sink_obj>91</sink_obj> </item> <item class_id_reference="20" object_id="_288"> <id>322</id> <edge_type>1</edge_type> <source_obj>204</source_obj> <sink_obj>91</sink_obj> </item> <item class_id_reference="20" object_id="_289"> <id>323</id> <edge_type>1</edge_type> <source_obj>206</source_obj> <sink_obj>92</sink_obj> </item> <item class_id_reference="20" object_id="_290"> <id>324</id> <edge_type>1</edge_type> <source_obj>85</source_obj> <sink_obj>92</sink_obj> </item> <item class_id_reference="20" object_id="_291"> <id>325</id> <edge_type>1</edge_type> <source_obj>92</source_obj> <sink_obj>93</sink_obj> </item> <item class_id_reference="20" object_id="_292"> <id>326</id> <edge_type>1</edge_type> <source_obj>91</source_obj> <sink_obj>94</sink_obj> </item> <item class_id_reference="20" object_id="_293"> <id>327</id> <edge_type>1</edge_type> <source_obj>93</source_obj> <sink_obj>94</sink_obj> </item> <item class_id_reference="20" object_id="_294"> <id>328</id> <edge_type>1</edge_type> <source_obj>90</source_obj> <sink_obj>94</sink_obj> </item> <item class_id_reference="20" object_id="_295"> <id>329</id> <edge_type>1</edge_type> <source_obj>94</source_obj> <sink_obj>95</sink_obj> </item> <item class_id_reference="20" object_id="_296"> <id>330</id> <edge_type>1</edge_type> <source_obj>95</source_obj> <sink_obj>96</sink_obj> </item> <item class_id_reference="20" object_id="_297"> <id>331</id> <edge_type>1</edge_type> <source_obj>95</source_obj> <sink_obj>97</sink_obj> </item> <item class_id_reference="20" object_id="_298"> <id>332</id> <edge_type>1</edge_type> <source_obj>87</source_obj> <sink_obj>98</sink_obj> </item> <item class_id_reference="20" object_id="_299"> <id>333</id> <edge_type>1</edge_type> <source_obj>97</source_obj> <sink_obj>98</sink_obj> </item> <item class_id_reference="20" object_id="_300"> <id>334</id> <edge_type>1</edge_type> <source_obj>88</source_obj> <sink_obj>99</sink_obj> </item> <item class_id_reference="20" object_id="_301"> <id>335</id> <edge_type>1</edge_type> <source_obj>96</source_obj> <sink_obj>99</sink_obj> </item> <item class_id_reference="20" object_id="_302"> <id>337</id> <edge_type>1</edge_type> <source_obj>98</source_obj> <sink_obj>100</sink_obj> </item> <item class_id_reference="20" object_id="_303"> <id>338</id> <edge_type>1</edge_type> <source_obj>223</source_obj> <sink_obj>100</sink_obj> </item> <item class_id_reference="20" object_id="_304"> <id>339</id> <edge_type>1</edge_type> <source_obj>100</source_obj> <sink_obj>101</sink_obj> </item> <item class_id_reference="20" object_id="_305"> <id>341</id> <edge_type>1</edge_type> <source_obj>99</source_obj> <sink_obj>102</sink_obj> </item> <item class_id_reference="20" object_id="_306"> <id>342</id> <edge_type>1</edge_type> <source_obj>223</source_obj> <sink_obj>102</sink_obj> </item> <item class_id_reference="20" object_id="_307"> <id>343</id> <edge_type>1</edge_type> <source_obj>230</source_obj> <sink_obj>102</sink_obj> </item> <item class_id_reference="20" object_id="_308"> <id>344</id> <edge_type>1</edge_type> <source_obj>91</source_obj> <sink_obj>103</sink_obj> </item> <item class_id_reference="20" object_id="_309"> <id>345</id> <edge_type>1</edge_type> <source_obj>101</source_obj> <sink_obj>103</sink_obj> </item> <item class_id_reference="20" object_id="_310"> <id>346</id> <edge_type>1</edge_type> <source_obj>102</source_obj> <sink_obj>103</sink_obj> </item> <item class_id_reference="20" object_id="_311"> <id>348</id> <edge_type>1</edge_type> <source_obj>347</source_obj> <sink_obj>104</sink_obj> </item> <item class_id_reference="20" object_id="_312"> <id>349</id> <edge_type>1</edge_type> <source_obj>103</source_obj> <sink_obj>104</sink_obj> </item> <item class_id_reference="20" object_id="_313"> <id>350</id> <edge_type>1</edge_type> <source_obj>84</source_obj> <sink_obj>105</sink_obj> </item> <item class_id_reference="20" object_id="_314"> <id>351</id> <edge_type>1</edge_type> <source_obj>104</source_obj> <sink_obj>105</sink_obj> </item> <item class_id_reference="20" object_id="_315"> <id>352</id> <edge_type>1</edge_type> <source_obj>103</source_obj> <sink_obj>105</sink_obj> </item> <item class_id_reference="20" object_id="_316"> <id>355</id> <edge_type>1</edge_type> <source_obj>105</source_obj> <sink_obj>106</sink_obj> </item> <item class_id_reference="20" object_id="_317"> <id>356</id> <edge_type>1</edge_type> <source_obj>194</source_obj> <sink_obj>106</sink_obj> </item> <item class_id_reference="20" object_id="_318"> <id>357</id> <edge_type>1</edge_type> <source_obj>29</source_obj> <sink_obj>107</sink_obj> </item> <item class_id_reference="20" object_id="_319"> <id>358</id> <edge_type>1</edge_type> <source_obj>174</source_obj> <sink_obj>107</sink_obj> </item> <item class_id_reference="20" object_id="_320"> <id>359</id> <edge_type>1</edge_type> <source_obj>107</source_obj> <sink_obj>108</sink_obj> </item> <item class_id_reference="20" object_id="_321"> <id>361</id> <edge_type>1</edge_type> <source_obj>108</source_obj> <sink_obj>109</sink_obj> </item> <item class_id_reference="20" object_id="_322"> <id>362</id> <edge_type>1</edge_type> <source_obj>153</source_obj> <sink_obj>109</sink_obj> </item> <item class_id_reference="20" object_id="_323"> <id>364</id> <edge_type>1</edge_type> <source_obj>108</source_obj> <sink_obj>110</sink_obj> </item> <item class_id_reference="20" object_id="_324"> <id>365</id> <edge_type>1</edge_type> <source_obj>184</source_obj> <sink_obj>110</sink_obj> </item> <item class_id_reference="20" object_id="_325"> <id>366</id> <edge_type>1</edge_type> <source_obj>186</source_obj> <sink_obj>110</sink_obj> </item> <item class_id_reference="20" object_id="_326"> <id>367</id> <edge_type>1</edge_type> <source_obj>108</source_obj> <sink_obj>111</sink_obj> </item> <item class_id_reference="20" object_id="_327"> <id>369</id> <edge_type>1</edge_type> <source_obj>191</source_obj> <sink_obj>112</sink_obj> </item> <item class_id_reference="20" object_id="_328"> <id>370</id> <edge_type>1</edge_type> <source_obj>111</source_obj> <sink_obj>112</sink_obj> </item> <item class_id_reference="20" object_id="_329"> <id>371</id> <edge_type>1</edge_type> <source_obj>194</source_obj> <sink_obj>112</sink_obj> </item> <item class_id_reference="20" object_id="_330"> <id>372</id> <edge_type>1</edge_type> <source_obj>112</source_obj> <sink_obj>113</sink_obj> </item> <item class_id_reference="20" object_id="_331"> <id>373</id> <edge_type>1</edge_type> <source_obj>110</source_obj> <sink_obj>114</sink_obj> </item> <item class_id_reference="20" object_id="_332"> <id>374</id> <edge_type>1</edge_type> <source_obj>198</source_obj> <sink_obj>115</sink_obj> </item> <item class_id_reference="20" object_id="_333"> <id>375</id> <edge_type>1</edge_type> <source_obj>114</source_obj> <sink_obj>115</sink_obj> </item> <item class_id_reference="20" object_id="_334"> <id>377</id> <edge_type>1</edge_type> <source_obj>115</source_obj> <sink_obj>116</sink_obj> </item> <item class_id_reference="20" object_id="_335"> <id>378</id> <edge_type>1</edge_type> <source_obj>204</source_obj> <sink_obj>116</sink_obj> </item> <item class_id_reference="20" object_id="_336"> <id>379</id> <edge_type>1</edge_type> <source_obj>206</source_obj> <sink_obj>117</sink_obj> </item> <item class_id_reference="20" object_id="_337"> <id>380</id> <edge_type>1</edge_type> <source_obj>110</source_obj> <sink_obj>117</sink_obj> </item> <item class_id_reference="20" object_id="_338"> <id>381</id> <edge_type>1</edge_type> <source_obj>117</source_obj> <sink_obj>118</sink_obj> </item> <item class_id_reference="20" object_id="_339"> <id>382</id> <edge_type>1</edge_type> <source_obj>116</source_obj> <sink_obj>119</sink_obj> </item> <item class_id_reference="20" object_id="_340"> <id>383</id> <edge_type>1</edge_type> <source_obj>118</source_obj> <sink_obj>119</sink_obj> </item> <item class_id_reference="20" object_id="_341"> <id>384</id> <edge_type>1</edge_type> <source_obj>115</source_obj> <sink_obj>119</sink_obj> </item> <item class_id_reference="20" object_id="_342"> <id>385</id> <edge_type>1</edge_type> <source_obj>119</source_obj> <sink_obj>120</sink_obj> </item> <item class_id_reference="20" object_id="_343"> <id>386</id> <edge_type>1</edge_type> <source_obj>120</source_obj> <sink_obj>121</sink_obj> </item> <item class_id_reference="20" object_id="_344"> <id>387</id> <edge_type>1</edge_type> <source_obj>120</source_obj> <sink_obj>122</sink_obj> </item> <item class_id_reference="20" object_id="_345"> <id>388</id> <edge_type>1</edge_type> <source_obj>112</source_obj> <sink_obj>123</sink_obj> </item> <item class_id_reference="20" object_id="_346"> <id>389</id> <edge_type>1</edge_type> <source_obj>122</source_obj> <sink_obj>123</sink_obj> </item> <item class_id_reference="20" object_id="_347"> <id>390</id> <edge_type>1</edge_type> <source_obj>113</source_obj> <sink_obj>124</sink_obj> </item> <item class_id_reference="20" object_id="_348"> <id>391</id> <edge_type>1</edge_type> <source_obj>121</source_obj> <sink_obj>124</sink_obj> </item> <item class_id_reference="20" object_id="_349"> <id>393</id> <edge_type>1</edge_type> <source_obj>123</source_obj> <sink_obj>125</sink_obj> </item> <item class_id_reference="20" object_id="_350"> <id>394</id> <edge_type>1</edge_type> <source_obj>223</source_obj> <sink_obj>125</sink_obj> </item> <item class_id_reference="20" object_id="_351"> <id>395</id> <edge_type>1</edge_type> <source_obj>125</source_obj> <sink_obj>126</sink_obj> </item> <item class_id_reference="20" object_id="_352"> <id>397</id> <edge_type>1</edge_type> <source_obj>124</source_obj> <sink_obj>127</sink_obj> </item> <item class_id_reference="20" object_id="_353"> <id>398</id> <edge_type>1</edge_type> <source_obj>223</source_obj> <sink_obj>127</sink_obj> </item> <item class_id_reference="20" object_id="_354"> <id>399</id> <edge_type>1</edge_type> <source_obj>230</source_obj> <sink_obj>127</sink_obj> </item> <item class_id_reference="20" object_id="_355"> <id>400</id> <edge_type>1</edge_type> <source_obj>116</source_obj> <sink_obj>128</sink_obj> </item> <item class_id_reference="20" object_id="_356"> <id>401</id> <edge_type>1</edge_type> <source_obj>126</source_obj> <sink_obj>128</sink_obj> </item> <item class_id_reference="20" object_id="_357"> <id>402</id> <edge_type>1</edge_type> <source_obj>127</source_obj> <sink_obj>128</sink_obj> </item> <item class_id_reference="20" object_id="_358"> <id>403</id> <edge_type>1</edge_type> <source_obj>128</source_obj> <sink_obj>129</sink_obj> </item> <item class_id_reference="20" object_id="_359"> <id>404</id> <edge_type>1</edge_type> <source_obj>236</source_obj> <sink_obj>130</sink_obj> </item> <item class_id_reference="20" object_id="_360"> <id>405</id> <edge_type>1</edge_type> <source_obj>129</source_obj> <sink_obj>130</sink_obj> </item> <item class_id_reference="20" object_id="_361"> <id>406</id> <edge_type>1</edge_type> <source_obj>109</source_obj> <sink_obj>131</sink_obj> </item> <item class_id_reference="20" object_id="_362"> <id>407</id> <edge_type>1</edge_type> <source_obj>130</source_obj> <sink_obj>131</sink_obj> </item> <item class_id_reference="20" object_id="_363"> <id>408</id> <edge_type>1</edge_type> <source_obj>129</source_obj> <sink_obj>131</sink_obj> </item> <item class_id_reference="20" object_id="_364"> <id>409</id> <edge_type>1</edge_type> <source_obj>81</source_obj> <sink_obj>132</sink_obj> </item> <item class_id_reference="20" object_id="_365"> <id>410</id> <edge_type>1</edge_type> <source_obj>54</source_obj> <sink_obj>132</sink_obj> </item> <item class_id_reference="20" object_id="_366"> <id>411</id> <edge_type>1</edge_type> <source_obj>106</source_obj> <sink_obj>133</sink_obj> </item> <item class_id_reference="20" object_id="_367"> <id>412</id> <edge_type>1</edge_type> <source_obj>131</source_obj> <sink_obj>133</sink_obj> </item> <item class_id_reference="20" object_id="_368"> <id>413</id> <edge_type>1</edge_type> <source_obj>133</source_obj> <sink_obj>134</sink_obj> </item> <item class_id_reference="20" object_id="_369"> <id>414</id> <edge_type>1</edge_type> <source_obj>132</source_obj> <sink_obj>134</sink_obj> </item> <item class_id_reference="20" object_id="_370"> <id>417</id> <edge_type>1</edge_type> <source_obj>2</source_obj> <sink_obj>135</sink_obj> </item> <item class_id_reference="20" object_id="_371"> <id>418</id> <edge_type>1</edge_type> <source_obj>134</source_obj> <sink_obj>135</sink_obj> </item> <item class_id_reference="20" object_id="_372"> <id>419</id> <edge_type>2</edge_type> <source_obj>13</source_obj> <sink_obj>137</sink_obj> </item> <item class_id_reference="20" object_id="_373"> <id>421</id> <edge_type>1</edge_type> <source_obj>420</source_obj> <sink_obj>9</sink_obj> </item> <item class_id_reference="20" object_id="_374"> <id>422</id> <edge_type>2</edge_type> <source_obj>8</source_obj> <sink_obj>9</sink_obj> </item> <item class_id_reference="20" object_id="_375"> <id>423</id> <edge_type>1</edge_type> <source_obj>11</source_obj> <sink_obj>9</sink_obj> </item> <item class_id_reference="20" object_id="_376"> <id>424</id> <edge_type>2</edge_type> <source_obj>138</source_obj> <sink_obj>9</sink_obj> </item> <item class_id_reference="20" object_id="_377"> <id>425</id> <edge_type>1</edge_type> <source_obj>9</source_obj> <sink_obj>10</sink_obj> </item> <item class_id_reference="20" object_id="_378"> <id>427</id> <edge_type>1</edge_type> <source_obj>426</source_obj> <sink_obj>10</sink_obj> </item> <item class_id_reference="20" object_id="_379"> <id>428</id> <edge_type>1</edge_type> <source_obj>9</source_obj> <sink_obj>11</sink_obj> </item> <item class_id_reference="20" object_id="_380"> <id>430</id> <edge_type>1</edge_type> <source_obj>429</source_obj> <sink_obj>11</sink_obj> </item> <item class_id_reference="20" object_id="_381"> <id>431</id> <edge_type>1</edge_type> <source_obj>10</source_obj> <sink_obj>12</sink_obj> </item> <item class_id_reference="20" object_id="_382"> <id>432</id> <edge_type>2</edge_type> <source_obj>138</source_obj> <sink_obj>12</sink_obj> </item> <item class_id_reference="20" object_id="_383"> <id>433</id> <edge_type>2</edge_type> <source_obj>140</source_obj> <sink_obj>12</sink_obj> </item> <item class_id_reference="20" object_id="_384"> <id>520</id> <edge_type>2</edge_type> <source_obj>8</source_obj> <sink_obj>13</sink_obj> </item> <item class_id_reference="20" object_id="_385"> <id>521</id> <edge_type>2</edge_type> <source_obj>13</source_obj> <sink_obj>140</sink_obj> </item> <item class_id_reference="20" object_id="_386"> <id>522</id> <edge_type>2</edge_type> <source_obj>13</source_obj> <sink_obj>138</sink_obj> </item> <item class_id_reference="20" object_id="_387"> <id>523</id> <edge_type>2</edge_type> <source_obj>138</source_obj> <sink_obj>13</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="_388"> <mId>1</mId> <mTag>Loop_2_proc</mTag> <mType>0</mType> <sub_regions> <count>3</count> <item_version>0</item_version> <item>2</item> <item>3</item> <item>4</item> </sub_regions> <basic_blocks> <count>0</count> <item_version>0</item_version> </basic_blocks> <mII>-1</mII> <mDepth>-1</mDepth> <mMinTripCount>-1</mMinTripCount> <mMaxTripCount>-1</mMaxTripCount> <mMinLatency>2064637</mMinLatency> <mMaxLatency>-1</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"/> </item> <item class_id_reference="22" object_id="_389"> <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>8</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="_390"> <mId>3</mId> <mTag>Loop 1</mTag> <mType>1</mType> <sub_regions> <count>0</count> <item_version>0</item_version> </sub_regions> <basic_blocks> <count>2</count> <item_version>0</item_version> <item>13</item> <item>138</item> </basic_blocks> <mII>1</mII> <mDepth>28</mDepth> <mMinTripCount>2064609</mMinTripCount> <mMaxTripCount>2064609</mMaxTripCount> <mMinLatency>2064635</mMinLatency> <mMaxLatency>-1</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"/> </item> <item class_id_reference="22" object_id="_391"> <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>140</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="_392"> <states class_id="25" tracking_level="0" version="0"> <count>30</count> <item_version>0</item_version> <item class_id="26" tracking_level="1" version="0" object_id="_393"> <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="_394"> <id>3</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_395"> <id>4</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_396"> <id>5</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_397"> <id>6</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_398"> <id>7</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_399"> <id>2</id> <operations> <count>4</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_400"> <id>9</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_401"> <id>10</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_402"> <id>11</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_403"> <id>12</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_404"> <id>3</id> <operations> <count>5</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_405"> <id>17</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_406"> <id>18</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_407"> <id>21</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_408"> <id>24</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_409"> <id>27</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_410"> <id>4</id> <operations> <count>4</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_411"> <id>19</id> <stage>8</stage> <latency>8</latency> </item> <item class_id_reference="28" object_id="_412"> <id>22</id> <stage>8</stage> <latency>8</latency> </item> <item class_id_reference="28" object_id="_413"> <id>25</id> <stage>8</stage> <latency>8</latency> </item> <item class_id_reference="28" object_id="_414"> <id>28</id> <stage>8</stage> <latency>8</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_415"> <id>5</id> <operations> <count>4</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_416"> <id>19</id> <stage>7</stage> <latency>8</latency> </item> <item class_id_reference="28" object_id="_417"> <id>22</id> <stage>7</stage> <latency>8</latency> </item> <item class_id_reference="28" object_id="_418"> <id>25</id> <stage>7</stage> <latency>8</latency> </item> <item class_id_reference="28" object_id="_419"> <id>28</id> <stage>7</stage> <latency>8</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_420"> <id>6</id> <operations> <count>4</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_421"> <id>19</id> <stage>6</stage> <latency>8</latency> </item> <item class_id_reference="28" object_id="_422"> <id>22</id> <stage>6</stage> <latency>8</latency> </item> <item class_id_reference="28" object_id="_423"> <id>25</id> <stage>6</stage> <latency>8</latency> </item> <item class_id_reference="28" object_id="_424"> <id>28</id> <stage>6</stage> <latency>8</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_425"> <id>7</id> <operations> <count>4</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_426"> <id>19</id> <stage>5</stage> <latency>8</latency> </item> <item class_id_reference="28" object_id="_427"> <id>22</id> <stage>5</stage> <latency>8</latency> </item> <item class_id_reference="28" object_id="_428"> <id>25</id> <stage>5</stage> <latency>8</latency> </item> <item class_id_reference="28" object_id="_429"> <id>28</id> <stage>5</stage> <latency>8</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_430"> <id>8</id> <operations> <count>4</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_431"> <id>19</id> <stage>4</stage> <latency>8</latency> </item> <item class_id_reference="28" object_id="_432"> <id>22</id> <stage>4</stage> <latency>8</latency> </item> <item class_id_reference="28" object_id="_433"> <id>25</id> <stage>4</stage> <latency>8</latency> </item> <item class_id_reference="28" object_id="_434"> <id>28</id> <stage>4</stage> <latency>8</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_435"> <id>9</id> <operations> <count>4</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_436"> <id>19</id> <stage>3</stage> <latency>8</latency> </item> <item class_id_reference="28" object_id="_437"> <id>22</id> <stage>3</stage> <latency>8</latency> </item> <item class_id_reference="28" object_id="_438"> <id>25</id> <stage>3</stage> <latency>8</latency> </item> <item class_id_reference="28" object_id="_439"> <id>28</id> <stage>3</stage> <latency>8</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_440"> <id>10</id> <operations> <count>4</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_441"> <id>19</id> <stage>2</stage> <latency>8</latency> </item> <item class_id_reference="28" object_id="_442"> <id>22</id> <stage>2</stage> <latency>8</latency> </item> <item class_id_reference="28" object_id="_443"> <id>25</id> <stage>2</stage> <latency>8</latency> </item> <item class_id_reference="28" object_id="_444"> <id>28</id> <stage>2</stage> <latency>8</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_445"> <id>11</id> <operations> <count>4</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_446"> <id>19</id> <stage>1</stage> <latency>8</latency> </item> <item class_id_reference="28" object_id="_447"> <id>22</id> <stage>1</stage> <latency>8</latency> </item> <item class_id_reference="28" object_id="_448"> <id>25</id> <stage>1</stage> <latency>8</latency> </item> <item class_id_reference="28" object_id="_449"> <id>28</id> <stage>1</stage> <latency>8</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_450"> <id>12</id> <operations> <count>4</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_451"> <id>20</id> <stage>2</stage> <latency>2</latency> </item> <item class_id_reference="28" object_id="_452"> <id>23</id> <stage>2</stage> <latency>2</latency> </item> <item class_id_reference="28" object_id="_453"> <id>26</id> <stage>2</stage> <latency>2</latency> </item> <item class_id_reference="28" object_id="_454"> <id>29</id> <stage>2</stage> <latency>2</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_455"> <id>13</id> <operations> <count>4</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_456"> <id>20</id> <stage>1</stage> <latency>2</latency> </item> <item class_id_reference="28" object_id="_457"> <id>23</id> <stage>1</stage> <latency>2</latency> </item> <item class_id_reference="28" object_id="_458"> <id>26</id> <stage>1</stage> <latency>2</latency> </item> <item class_id_reference="28" object_id="_459"> <id>29</id> <stage>1</stage> <latency>2</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_460"> <id>14</id> <operations> <count>4</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_461"> <id>30</id> <stage>10</stage> <latency>10</latency> </item> <item class_id_reference="28" object_id="_462"> <id>55</id> <stage>10</stage> <latency>10</latency> </item> <item class_id_reference="28" object_id="_463"> <id>82</id> <stage>10</stage> <latency>10</latency> </item> <item class_id_reference="28" object_id="_464"> <id>107</id> <stage>10</stage> <latency>10</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_465"> <id>15</id> <operations> <count>4</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_466"> <id>30</id> <stage>9</stage> <latency>10</latency> </item> <item class_id_reference="28" object_id="_467"> <id>55</id> <stage>9</stage> <latency>10</latency> </item> <item class_id_reference="28" object_id="_468"> <id>82</id> <stage>9</stage> <latency>10</latency> </item> <item class_id_reference="28" object_id="_469"> <id>107</id> <stage>9</stage> <latency>10</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_470"> <id>16</id> <operations> <count>4</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_471"> <id>30</id> <stage>8</stage> <latency>10</latency> </item> <item class_id_reference="28" object_id="_472"> <id>55</id> <stage>8</stage> <latency>10</latency> </item> <item class_id_reference="28" object_id="_473"> <id>82</id> <stage>8</stage> <latency>10</latency> </item> <item class_id_reference="28" object_id="_474"> <id>107</id> <stage>8</stage> <latency>10</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_475"> <id>17</id> <operations> <count>4</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_476"> <id>30</id> <stage>7</stage> <latency>10</latency> </item> <item class_id_reference="28" object_id="_477"> <id>55</id> <stage>7</stage> <latency>10</latency> </item> <item class_id_reference="28" object_id="_478"> <id>82</id> <stage>7</stage> <latency>10</latency> </item> <item class_id_reference="28" object_id="_479"> <id>107</id> <stage>7</stage> <latency>10</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_480"> <id>18</id> <operations> <count>4</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_481"> <id>30</id> <stage>6</stage> <latency>10</latency> </item> <item class_id_reference="28" object_id="_482"> <id>55</id> <stage>6</stage> <latency>10</latency> </item> <item class_id_reference="28" object_id="_483"> <id>82</id> <stage>6</stage> <latency>10</latency> </item> <item class_id_reference="28" object_id="_484"> <id>107</id> <stage>6</stage> <latency>10</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_485"> <id>19</id> <operations> <count>4</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_486"> <id>30</id> <stage>5</stage> <latency>10</latency> </item> <item class_id_reference="28" object_id="_487"> <id>55</id> <stage>5</stage> <latency>10</latency> </item> <item class_id_reference="28" object_id="_488"> <id>82</id> <stage>5</stage> <latency>10</latency> </item> <item class_id_reference="28" object_id="_489"> <id>107</id> <stage>5</stage> <latency>10</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_490"> <id>20</id> <operations> <count>4</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_491"> <id>30</id> <stage>4</stage> <latency>10</latency> </item> <item class_id_reference="28" object_id="_492"> <id>55</id> <stage>4</stage> <latency>10</latency> </item> <item class_id_reference="28" object_id="_493"> <id>82</id> <stage>4</stage> <latency>10</latency> </item> <item class_id_reference="28" object_id="_494"> <id>107</id> <stage>4</stage> <latency>10</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_495"> <id>21</id> <operations> <count>4</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_496"> <id>30</id> <stage>3</stage> <latency>10</latency> </item> <item class_id_reference="28" object_id="_497"> <id>55</id> <stage>3</stage> <latency>10</latency> </item> <item class_id_reference="28" object_id="_498"> <id>82</id> <stage>3</stage> <latency>10</latency> </item> <item class_id_reference="28" object_id="_499"> <id>107</id> <stage>3</stage> <latency>10</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_500"> <id>22</id> <operations> <count>4</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_501"> <id>30</id> <stage>2</stage> <latency>10</latency> </item> <item class_id_reference="28" object_id="_502"> <id>55</id> <stage>2</stage> <latency>10</latency> </item> <item class_id_reference="28" object_id="_503"> <id>82</id> <stage>2</stage> <latency>10</latency> </item> <item class_id_reference="28" object_id="_504"> <id>107</id> <stage>2</stage> <latency>10</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_505"> <id>23</id> <operations> <count>4</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_506"> <id>30</id> <stage>1</stage> <latency>10</latency> </item> <item class_id_reference="28" object_id="_507"> <id>55</id> <stage>1</stage> <latency>10</latency> </item> <item class_id_reference="28" object_id="_508"> <id>82</id> <stage>1</stage> <latency>10</latency> </item> <item class_id_reference="28" object_id="_509"> <id>107</id> <stage>1</stage> <latency>10</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_510"> <id>24</id> <operations> <count>38</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_511"> <id>31</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_512"> <id>32</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_513"> <id>33</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_514"> <id>34</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_515"> <id>37</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_516"> <id>38</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_517"> <id>39</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_518"> <id>40</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_519"> <id>41</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_520"> <id>42</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_521"> <id>56</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_522"> <id>57</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_523"> <id>58</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_524"> <id>59</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_525"> <id>62</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_526"> <id>63</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_527"> <id>64</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_528"> <id>65</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_529"> <id>66</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_530"> <id>67</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_531"> <id>83</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_532"> <id>85</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_533"> <id>86</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_534"> <id>89</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_535"> <id>90</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_536"> <id>91</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_537"> <id>92</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_538"> <id>93</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_539"> <id>94</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_540"> <id>108</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_541"> <id>110</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_542"> <id>111</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_543"> <id>114</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_544"> <id>115</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_545"> <id>116</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_546"> <id>117</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_547"> <id>118</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_548"> <id>119</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_549"> <id>25</id> <operations> <count>46</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_550"> <id>35</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_551"> <id>36</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_552"> <id>43</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_553"> <id>44</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_554"> <id>45</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_555"> <id>46</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_556"> <id>47</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_557"> <id>48</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_558"> <id>49</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_559"> <id>50</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_560"> <id>51</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_561"> <id>60</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_562"> <id>61</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_563"> <id>68</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_564"> <id>69</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_565"> <id>70</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_566"> <id>71</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_567"> <id>72</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_568"> <id>73</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_569"> <id>74</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_570"> <id>75</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_571"> <id>76</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_572"> <id>77</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_573"> <id>79</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_574"> <id>87</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_575"> <id>88</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_576"> <id>95</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_577"> <id>96</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_578"> <id>97</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_579"> <id>98</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_580"> <id>99</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_581"> <id>100</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_582"> <id>101</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_583"> <id>102</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_584"> <id>103</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_585"> <id>112</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_586"> <id>113</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_587"> <id>120</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_588"> <id>121</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_589"> <id>122</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_590"> <id>123</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_591"> <id>124</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_592"> <id>125</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_593"> <id>126</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_594"> <id>127</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_595"> <id>128</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_596"> <id>26</id> <operations> <count>7</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_597"> <id>52</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_598"> <id>53</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_599"> <id>78</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_600"> <id>80</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_601"> <id>104</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_602"> <id>129</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_603"> <id>130</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_604"> <id>27</id> <operations> <count>7</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_605"> <id>54</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_606"> <id>84</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_607"> <id>105</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_608"> <id>106</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_609"> <id>109</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_610"> <id>131</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_611"> <id>133</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_612"> <id>28</id> <operations> <count>3</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_613"> <id>81</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_614"> <id>132</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_615"> <id>134</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_616"> <id>29</id> <operations> <count>6</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_617"> <id>14</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_618"> <id>15</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_619"> <id>16</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_620"> <id>135</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_621"> <id>136</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_622"> <id>137</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_623"> <id>30</id> <operations> <count>1</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_624"> <id>139</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> </states> <transitions class_id="29" tracking_level="0" version="0"> <count>30</count> <item_version>0</item_version> <item class_id="30" tracking_level="1" version="0" object_id="_625"> <inState>1</inState> <outState>2</outState> <condition class_id="31" tracking_level="0" version="0"> <id>100</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="_626"> <inState>3</inState> <outState>4</outState> <condition> <id>133</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="_627"> <inState>4</inState> <outState>5</outState> <condition> <id>134</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="_628"> <inState>5</inState> <outState>6</outState> <condition> <id>135</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="_629"> <inState>6</inState> <outState>7</outState> <condition> <id>136</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="_630"> <inState>7</inState> <outState>8</outState> <condition> <id>137</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="_631"> <inState>8</inState> <outState>9</outState> <condition> <id>138</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="_632"> <inState>9</inState> <outState>10</outState> <condition> <id>139</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="_633"> <inState>10</inState> <outState>11</outState> <condition> <id>140</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="_634"> <inState>11</inState> <outState>12</outState> <condition> <id>141</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="_635"> <inState>12</inState> <outState>13</outState> <condition> <id>142</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="_636"> <inState>13</inState> <outState>14</outState> <condition> <id>143</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="_637"> <inState>14</inState> <outState>15</outState> <condition> <id>144</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="_638"> <inState>15</inState> <outState>16</outState> <condition> <id>145</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="_639"> <inState>16</inState> <outState>17</outState> <condition> <id>146</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="_640"> <inState>17</inState> <outState>18</outState> <condition> <id>147</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="_641"> <inState>18</inState> <outState>19</outState> <condition> <id>148</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="_642"> <inState>19</inState> <outState>20</outState> <condition> <id>149</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="_643"> <inState>20</inState> <outState>21</outState> <condition> <id>150</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="_644"> <inState>21</inState> <outState>22</outState> <condition> <id>151</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="_645"> <inState>22</inState> <outState>23</outState> <condition> <id>152</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="_646"> <inState>23</inState> <outState>24</outState> <condition> <id>153</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="_647"> <inState>24</inState> <outState>25</outState> <condition> <id>154</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="_648"> <inState>25</inState> <outState>26</outState> <condition> <id>155</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="_649"> <inState>26</inState> <outState>27</outState> <condition> <id>156</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="_650"> <inState>27</inState> <outState>28</outState> <condition> <id>157</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="_651"> <inState>28</inState> <outState>29</outState> <condition> <id>158</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="_652"> <inState>29</inState> <outState>2</outState> <condition> <id>159</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="_653"> <inState>2</inState> <outState>30</outState> <condition> <id>132</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>10</first> <second>0</second> </first> <second>0</second> </item> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_654"> <inState>2</inState> <outState>3</outState> <condition> <id>160</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>1</count> <item_version>0</item_version> <item> <first> <first>10</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="_655"> <dp_component_resource class_id="37" tracking_level="0" version="0"> <count>12</count> <item_version>0</item_version> <item class_id="38" tracking_level="0" version="0"> <first>hls_target_dmul_6jbC_U38 (hls_target_dmul_6jbC)</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>11</second> </item> <item> <first>FF</first> <second>456</second> </item> <item> <first>LUT</first> <second>603</second> </item> </second> </item> <item> <first>hls_target_dmul_6jbC_U39 (hls_target_dmul_6jbC)</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>DSP48E</first> <second>11</second> </item> <item> <first>FF</first> <second>456</second> </item> <item> <first>LUT</first> <second>603</second> </item> </second> </item> <item> <first>hls_target_dmul_6jbC_U40 (hls_target_dmul_6jbC)</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>DSP48E</first> <second>11</second> </item> <item> <first>FF</first> <second>456</second> </item> <item> <first>LUT</first> <second>603</second> </item> </second> </item> <item> <first>hls_target_dmul_6jbC_U41 (hls_target_dmul_6jbC)</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>DSP48E</first> <second>11</second> </item> <item> <first>FF</first> <second>456</second> </item> <item> <first>LUT</first> <second>603</second> </item> </second> </item> <item> <first>hls_target_fpext_ibs_U34 (hls_target_fpext_ibs)</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>DSP48E</first> <second>0</second> </item> <item> <first>FF</first> <second>100</second> </item> <item> <first>LUT</first> <second>138</second> </item> </second> </item> <item> <first>hls_target_fpext_ibs_U35 (hls_target_fpext_ibs)</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>DSP48E</first> <second>0</second> </item> <item> <first>FF</first> <second>100</second> </item> <item> <first>LUT</first> <second>138</second> </item> </second> </item> <item> <first>hls_target_fpext_ibs_U36 (hls_target_fpext_ibs)</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>DSP48E</first> <second>0</second> </item> <item> <first>FF</first> <second>100</second> </item> <item> <first>LUT</first> <second>138</second> </item> </second> </item> <item> <first>hls_target_fpext_ibs_U37 (hls_target_fpext_ibs)</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>DSP48E</first> <second>0</second> </item> <item> <first>FF</first> <second>100</second> </item> <item> <first>LUT</first> <second>138</second> </item> </second> </item> <item> <first>hls_target_sitofphbi_U30 (hls_target_sitofphbi)</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>DSP48E</first> <second>0</second> </item> <item> <first>FF</first> <second>438</second> </item> <item> <first>LUT</first> <second>567</second> </item> </second> </item> <item> <first>hls_target_sitofphbi_U31 (hls_target_sitofphbi)</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>DSP48E</first> <second>0</second> </item> <item> <first>FF</first> <second>438</second> </item> <item> <first>LUT</first> <second>567</second> </item> </second> </item> <item> <first>hls_target_sitofphbi_U32 (hls_target_sitofphbi)</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>DSP48E</first> <second>0</second> </item> <item> <first>FF</first> <second>438</second> </item> <item> <first>LUT</first> <second>567</second> </item> </second> </item> <item> <first>hls_target_sitofphbi_U33 (hls_target_sitofphbi)</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>DSP48E</first> <second>0</second> </item> <item> <first>FF</first> <second>438</second> </item> <item> <first>LUT</first> <second>567</second> </item> </second> </item> </dp_component_resource> <dp_expression_resource> <count>44</count> <item_version>0</item_version> <item> <first>ap_block_pp0_stage0_flag00001001 ( or ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>1</second> </item> <item> <first>(1P1)</first> <second>1</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>2</second> </item> </second> </item> <item> <first>ap_block_state1 ( or ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>1</second> </item> <item> <first>(1P1)</first> <second>1</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>2</second> </item> </second> </item> <item> <first>ap_block_state29_pp0_stage0_iter27 ( and ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>1</second> </item> <item> <first>(1P1)</first> <second>1</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>2</second> </item> </second> </item> <item> <first>ap_block_state3_pp0_stage0_iter1 ( and ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>1</second> </item> <item> <first>(1P1)</first> <second>1</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>2</second> </item> </second> </item> <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_170_p2 ( icmp ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>21</second> </item> <item> <first>(1P1)</first> <second>16</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>13</second> </item> </second> </item> <item> <first>indvar_flatten_next_fu_176_p2 ( + ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>21</second> </item> <item> <first>(1P1)</first> <second>1</second> </item> <item> <first>FF</first> <second>68</second> </item> <item> <first>LUT</first> <second>26</second> </item> </second> </item> <item> <first>p_415_fu_803_p2 ( + ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>32</second> </item> <item> <first>(1P1)</first> <second>32</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>32</second> </item> </second> </item> <item> <first>p_Val2_15_fu_567_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>31</second> </item> <item> <first>(2P2)</first> <second>31</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>31</second> </item> </second> </item> <item> <first>p_Val2_19_fu_640_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>31</second> </item> <item> <first>(2P2)</first> <second>31</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>31</second> </item> </second> </item> <item> <first>p_Val2_23_fu_705_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>31</second> </item> <item> <first>(2P2)</first> <second>31</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>31</second> </item> </second> </item> <item> <first>p_Val2_26_fu_746_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>32</second> </item> <item> <first>(2P2)</first> <second>32</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>32</second> </item> </second> </item> <item> <first>p_Val2_27_fu_779_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>32</second> </item> <item> <first>(2P2)</first> <second>32</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>32</second> </item> </second> </item> <item> <first>p_Val2_7_fu_502_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>31</second> </item> <item> <first>(2P2)</first> <second>31</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>31</second> </item> </second> </item> <item> <first>sh_assign_2_fu_269_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>12</second> </item> <item> <first>(2P2)</first> <second>12</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>12</second> </item> </second> </item> <item> <first>sh_assign_3_fu_306_p2 ( + ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>11</second> </item> <item> <first>(1P1)</first> <second>12</second> </item> <item> <first>FF</first> <second>41</second> </item> <item> <first>LUT</first> <second>17</second> </item> </second> </item> <item> <first>sh_assign_4_fu_330_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>12</second> </item> <item> <first>(2P2)</first> <second>12</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>12</second> </item> </second> </item> <item> <first>sh_assign_5_fu_359_p2 ( + ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>11</second> </item> <item> <first>(1P1)</first> <second>12</second> </item> <item> <first>FF</first> <second>41</second> </item> <item> <first>LUT</first> <second>17</second> </item> </second> </item> <item> <first>sh_assign_6_fu_383_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>12</second> </item> <item> <first>(2P2)</first> <second>12</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>12</second> </item> </second> </item> <item> <first>sh_assign_7_fu_412_p2 ( + ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>11</second> </item> <item> <first>(1P1)</first> <second>12</second> </item> <item> <first>FF</first> <second>41</second> </item> <item> <first>LUT</first> <second>17</second> </item> </second> </item> <item> <first>sh_assign_8_fu_436_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>12</second> </item> <item> <first>(2P2)</first> <second>12</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>12</second> </item> </second> </item> <item> <first>sh_assign_fu_245_p2 ( + ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>11</second> </item> <item> <first>(1P1)</first> <second>12</second> </item> <item> <first>FF</first> <second>41</second> </item> <item> <first>LUT</first> <second>17</second> </item> </second> </item> <item> <first>start_write ( and ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>1</second> </item> <item> <first>(1P1)</first> <second>1</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>2</second> </item> </second> </item> <item> <first>tmp5_fu_785_p2 ( + ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>32</second> </item> <item> <first>(1P1)</first> <second>32</second> </item> <item> <first>FF</first> <second>101</second> </item> <item> <first>LUT</first> <second>37</second> </item> </second> </item> <item> <first>tmp_10_i_i1_fu_533_p2 ( lshr ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>54</second> </item> <item> <first>(1P1)</first> <second>54</second> </item> <item> <first>FF</first> <second>143</second> </item> <item> <first>LUT</first> <second>162</second> </item> </second> </item> <item> <first>tmp_10_i_i2_fu_606_p2 ( lshr ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>54</second> </item> <item> <first>(1P1)</first> <second>54</second> </item> <item> <first>FF</first> <second>143</second> </item> <item> <first>LUT</first> <second>162</second> </item> </second> </item> <item> <first>tmp_10_i_i3_fu_671_p2 ( lshr ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>54</second> </item> <item> <first>(1P1)</first> <second>54</second> </item> <item> <first>FF</first> <second>143</second> </item> <item> <first>LUT</first> <second>162</second> </item> </second> </item> <item> <first>tmp_10_i_i_fu_468_p2 ( lshr ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>54</second> </item> <item> <first>(1P1)</first> <second>54</second> </item> <item> <first>FF</first> <second>143</second> </item> <item> <first>LUT</first> <second>162</second> </item> </second> </item> <item> <first>tmp_11_i_i1_fu_539_p2 ( shl ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>137</second> </item> <item> <first>(1P1)</first> <second>137</second> </item> <item> <first>FF</first> <second>315</second> </item> <item> <first>LUT</first> <second>474</second> </item> </second> </item> <item> <first>tmp_11_i_i2_fu_612_p2 ( shl ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>137</second> </item> <item> <first>(1P1)</first> <second>137</second> </item> <item> <first>FF</first> <second>315</second> </item> <item> <first>LUT</first> <second>474</second> </item> </second> </item> <item> <first>tmp_11_i_i3_fu_677_p2 ( shl ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>137</second> </item> <item> <first>(1P1)</first> <second>137</second> </item> <item> <first>FF</first> <second>315</second> </item> <item> <first>LUT</first> <second>474</second> </item> </second> </item> <item> <first>tmp_11_i_i_fu_474_p2 ( shl ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>137</second> </item> <item> <first>(1P1)</first> <second>137</second> </item> <item> <first>FF</first> <second>315</second> </item> <item> <first>LUT</first> <second>474</second> </item> </second> </item> <item> <first>tmp_16_i_i1_fu_721_p2 ( - ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>1</second> </item> <item> <first>(1P1)</first> <second>30</second> </item> <item> <first>FF</first> <second>95</second> </item> <item> <first>LUT</first> <second>35</second> </item> </second> </item> <item> <first>tmp_16_i_i2_fu_732_p2 ( - ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>1</second> </item> <item> <first>(1P1)</first> <second>31</second> </item> <item> <first>FF</first> <second>98</second> </item> <item> <first>LUT</first> <second>36</second> </item> </second> </item> <item> <first>tmp_16_i_i3_fu_740_p2 ( - ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>1</second> </item> <item> <first>(1P1)</first> <second>32</second> </item> <item> <first>FF</first> <second>101</second> </item> <item> <first>LUT</first> <second>37</second> </item> </second> </item> <item> <first>tmp_16_i_i_fu_715_p2 ( - ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>1</second> </item> <item> <first>(1P1)</first> <second>32</second> </item> <item> <first>FF</first> <second>101</second> </item> <item> <first>LUT</first> <second>37</second> </item> </second> </item> <item> <first>tmp_3_fu_726_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>30</second> </item> <item> <first>(2P2)</first> <second>30</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>30</second> </item> </second> </item> <item> <first>tmp_6_fu_758_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>31</second> </item> <item> <first>(2P2)</first> <second>31</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>31</second> </item> </second> </item> <item> <first>tmp_8_i_i1_fu_320_p2 ( - ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>10</second> </item> <item> <first>(1P1)</first> <second>11</second> </item> <item> <first>FF</first> <second>38</second> </item> <item> <first>LUT</first> <second>16</second> </item> </second> </item> <item> <first>tmp_8_i_i2_fu_373_p2 ( - ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>10</second> </item> <item> <first>(1P1)</first> <second>11</second> </item> <item> <first>FF</first> <second>38</second> </item> <item> <first>LUT</first> <second>16</second> </item> </second> </item> <item> <first>tmp_8_i_i3_fu_426_p2 ( - ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>10</second> </item> <item> <first>(1P1)</first> <second>11</second> </item> <item> <first>FF</first> <second>38</second> </item> <item> <first>LUT</first> <second>16</second> </item> </second> </item> <item> <first>tmp_8_i_i_fu_259_p2 ( - ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>10</second> </item> <item> <first>(1P1)</first> <second>11</second> </item> <item> <first>FF</first> <second>38</second> </item> <item> <first>LUT</first> <second>16</second> </item> </second> </item> <item> <first>tmp_fu_798_p2 ( + ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>32</second> </item> <item> <first>(1P1)</first> <second>32</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>32</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>8</count> <item_version>0</item_version> <item> <first>ap_NS_fsm</first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0Size)</first> <second>4</second> </item> <item> <first>(1Bits)</first> <second>1</second> </item> <item> <first>(2Count)</first> <second>4</second> </item> <item> <first>LUT</first> <second>21</second> </item> </second> </item> <item> <first>ap_done</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_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_iter27</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>indvar_flatten_reg_115</first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0Size)</first> <second>2</second> </item> <item> <first>(1Bits)</first> <second>21</second> </item> <item> <first>(2Count)</first> <second>42</second> </item> <item> <first>LUT</first> <second>9</second> </item> </second> </item> <item> <first>p_mul_stencil_stream_V_value_V_blk_n</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>p_p2_mul1_stencil_stream_V_value_V_blk_n</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>real_start</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> </dp_multiplexer_resource> <dp_register_resource> <count>84</count> <item_version>0</item_version> <item> <first>ap_CS_fsm</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>ap_done_reg</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_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_iter10</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_iter11</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_iter12</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_iter13</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_iter14</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_iter15</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_iter16</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_iter17</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_iter18</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_iter19</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_iter20</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_iter21</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_iter22</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_iter23</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_iter24</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_iter25</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_iter26</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_iter27</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_enable_reg_pp0_iter5</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_iter6</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_iter7</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_iter8</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_iter9</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_iter23_p_Result_4_reg_917</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_iter24_p_Val2_19_reg_992</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>31</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>31</second> </item> </second> </item> <item> <first>ap_reg_pp0_iter25_tmp_3_reg_1013</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>30</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>30</second> </item> </second> </item> <item> <first>exitcond_flatten_reg_808</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>indvar_flatten_reg_115</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>21</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>21</second> </item> </second> </item> <item> <first>isNeg_1_reg_927</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>isNeg_2_reg_947</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>isNeg_3_reg_967</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>isNeg_reg_907</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>loc_V_2_reg_902</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>52</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>52</second> </item> </second> </item> <item> <first>loc_V_4_reg_922</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>52</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>52</second> </item> </second> </item> <item> <first>loc_V_6_reg_942</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>52</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>52</second> </item> </second> </item> <item> <first>loc_V_8_reg_962</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>52</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>52</second> </item> </second> </item> <item> <first>p_381_reg_817</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>32</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>32</second> </item> </second> </item> <item> <first>p_382_reg_837</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>32</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>32</second> </item> </second> </item> <item> <first>p_383_reg_857</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>64</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>64</second> </item> </second> </item> <item> <first>p_384_reg_877</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>64</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>64</second> </item> </second> </item> <item> <first>p_391_reg_842</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>32</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>32</second> </item> </second> </item> <item> <first>p_392_reg_862</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>64</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>64</second> </item> </second> </item> <item> <first>p_393_reg_882</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>64</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>64</second> </item> </second> </item> <item> <first>p_400_reg_847</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>32</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>32</second> </item> </second> </item> <item> <first>p_401_reg_867</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>64</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>64</second> </item> </second> </item> <item> <first>p_402_reg_887</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>64</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>64</second> </item> </second> </item> <item> <first>p_409_reg_852</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>32</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>32</second> </item> </second> </item> <item> <first>p_410_reg_872</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>64</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>64</second> </item> </second> </item> <item> <first>p_411_reg_892</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>64</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>64</second> </item> </second> </item> <item> <first>p_415_reg_1043</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>32</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>32</second> </item> </second> </item> <item> <first>p_Result_4_reg_917</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>p_Result_s_reg_897</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>p_Val2_17_reg_937</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>64</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>64</second> </item> </second> </item> <item> <first>p_Val2_19_reg_992</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>31</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>31</second> </item> </second> </item> <item> <first>p_Val2_21_reg_957</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>64</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>64</second> </item> </second> </item> <item> <first>p_Val2_23_reg_998</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>31</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>31</second> </item> </second> </item> <item> <first>p_Val2_26_reg_1033</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>32</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>32</second> </item> </second> </item> <item> <first>p_Val2_7_reg_977</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>31</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>31</second> </item> </second> </item> <item> <first>p_mul_stencil_value_0_1_reg_827</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>32</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>32</second> </item> </second> </item> <item> <first>p_mul_stencil_value_0_2_reg_832</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>32</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>32</second> </item> </second> </item> <item> <first>p_mul_stencil_value_0_reg_822</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>32</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>32</second> </item> </second> </item> <item> <first>real_start_status_reg</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>sh_assign_2_reg_912</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>12</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>12</second> </item> </second> </item> <item> <first>sh_assign_4_reg_932</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>12</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>12</second> </item> </second> </item> <item> <first>sh_assign_6_reg_952</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>12</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>12</second> </item> </second> </item> <item> <first>sh_assign_8_reg_972</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>12</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>12</second> </item> </second> </item> <item> <first>start_control_reg</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>start_once_reg</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>tmp5_reg_1038</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>32</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>32</second> </item> </second> </item> <item> <first>tmp_13_i_i3_reg_1023</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>32</second> </item> <item> <first>(Consts)</first> <second>1</second> </item> <item> <first>FF</first> <second>31</second> </item> </second> </item> <item> <first>tmp_13_i_i_reg_1003</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>32</second> </item> <item> <first>(Consts)</first> <second>1</second> </item> <item> <first>FF</first> <second>31</second> </item> </second> </item> <item> <first>tmp_16_i_i2_reg_1018</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>31</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>31</second> </item> </second> </item> <item> <first>tmp_16_i_i3_reg_1028</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>32</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>32</second> </item> </second> </item> <item> <first>tmp_16_i_i_reg_1008</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>32</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>32</second> </item> </second> </item> <item> <first>tmp_27_reg_982</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>30</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>30</second> </item> </second> </item> <item> <first>tmp_28_reg_987</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>30</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>30</second> </item> </second> </item> <item> <first>tmp_3_reg_1013</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>30</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>30</second> </item> </second> </item> </dp_register_resource> <dp_component_map class_id="41" tracking_level="0" version="0"> <count>12</count> <item_version>0</item_version> <item class_id="42" tracking_level="0" version="0"> <first>hls_target_dmul_6jbC_U38 (hls_target_dmul_6jbC)</first> <second> <count>1</count> <item_version>0</item_version> <item>30</item> </second> </item> <item> <first>hls_target_dmul_6jbC_U39 (hls_target_dmul_6jbC)</first> <second> <count>1</count> <item_version>0</item_version> <item>55</item> </second> </item> <item> <first>hls_target_dmul_6jbC_U40 (hls_target_dmul_6jbC)</first> <second> <count>1</count> <item_version>0</item_version> <item>82</item> </second> </item> <item> <first>hls_target_dmul_6jbC_U41 (hls_target_dmul_6jbC)</first> <second> <count>1</count> <item_version>0</item_version> <item>107</item> </second> </item> <item> <first>hls_target_fpext_ibs_U34 (hls_target_fpext_ibs)</first> <second> <count>1</count> <item_version>0</item_version> <item>20</item> </second> </item> <item> <first>hls_target_fpext_ibs_U35 (hls_target_fpext_ibs)</first> <second> <count>1</count> <item_version>0</item_version> <item>23</item> </second> </item> <item> <first>hls_target_fpext_ibs_U36 (hls_target_fpext_ibs)</first> <second> <count>1</count> <item_version>0</item_version> <item>26</item> </second> </item> <item> <first>hls_target_fpext_ibs_U37 (hls_target_fpext_ibs)</first> <second> <count>1</count> <item_version>0</item_version> <item>29</item> </second> </item> <item> <first>hls_target_sitofphbi_U30 (hls_target_sitofphbi)</first> <second> <count>1</count> <item_version>0</item_version> <item>19</item> </second> </item> <item> <first>hls_target_sitofphbi_U31 (hls_target_sitofphbi)</first> <second> <count>1</count> <item_version>0</item_version> <item>22</item> </second> </item> <item> <first>hls_target_sitofphbi_U32 (hls_target_sitofphbi)</first> <second> <count>1</count> <item_version>0</item_version> <item>25</item> </second> </item> <item> <first>hls_target_sitofphbi_U33 (hls_target_sitofphbi)</first> <second> <count>1</count> <item_version>0</item_version> <item>28</item> </second> </item> </dp_component_map> <dp_expression_map> <count>37</count> <item_version>0</item_version> <item> <first>exitcond_flatten_fu_170_p2 ( icmp ) </first> <second> <count>1</count> <item_version>0</item_version> <item>10</item> </second> </item> <item> <first>indvar_flatten_next_fu_176_p2 ( + ) </first> <second> <count>1</count> <item_version>0</item_version> <item>11</item> </second> </item> <item> <first>p_415_fu_803_p2 ( + ) </first> <second> <count>1</count> <item_version>0</item_version> <item>134</item> </second> </item> <item> <first>p_Val2_15_fu_567_p3 ( select ) </first> <second> <count>1</count> <item_version>0</item_version> <item>76</item> </second> </item> <item> <first>p_Val2_19_fu_640_p3 ( select ) </first> <second> <count>1</count> <item_version>0</item_version> <item>103</item> </second> </item> <item> <first>p_Val2_23_fu_705_p3 ( select ) </first> <second> <count>1</count> <item_version>0</item_version> <item>128</item> </second> </item> <item> <first>p_Val2_26_fu_746_p3 ( select ) </first> <second> <count>1</count> <item_version>0</item_version> <item>54</item> </second> </item> <item> <first>p_Val2_27_fu_779_p3 ( select ) </first> <second> <count>1</count> <item_version>0</item_version> <item>131</item> </second> </item> <item> <first>p_Val2_7_fu_502_p3 ( select ) </first> <second> <count>1</count> <item_version>0</item_version> <item>51</item> </second> </item> <item> <first>sh_assign_2_fu_269_p3 ( select ) </first> <second> <count>1</count> <item_version>0</item_version> <item>42</item> </second> </item> <item> <first>sh_assign_3_fu_306_p2 ( + ) </first> <second> <count>1</count> <item_version>0</item_version> <item>63</item> </second> </item> <item> <first>sh_assign_4_fu_330_p3 ( select ) </first> <second> <count>1</count> <item_version>0</item_version> <item>67</item> </second> </item> <item> <first>sh_assign_5_fu_359_p2 ( + ) </first> <second> <count>1</count> <item_version>0</item_version> <item>90</item> </second> </item> <item> <first>sh_assign_6_fu_383_p3 ( select ) </first> <second> <count>1</count> <item_version>0</item_version> <item>94</item> </second> </item> <item> <first>sh_assign_7_fu_412_p2 ( + ) </first> <second> <count>1</count> <item_version>0</item_version> <item>115</item> </second> </item> <item> <first>sh_assign_8_fu_436_p3 ( select ) </first> <second> <count>1</count> <item_version>0</item_version> <item>119</item> </second> </item> <item> <first>sh_assign_fu_245_p2 ( + ) </first> <second> <count>1</count> <item_version>0</item_version> <item>38</item> </second> </item> <item> <first>tmp5_fu_785_p2 ( + ) </first> <second> <count>1</count> <item_version>0</item_version> <item>133</item> </second> </item> <item> <first>tmp_10_i_i1_fu_533_p2 ( lshr ) </first> <second> <count>1</count> <item_version>0</item_version> <item>71</item> </second> </item> <item> <first>tmp_10_i_i2_fu_606_p2 ( lshr ) </first> <second> <count>1</count> <item_version>0</item_version> <item>98</item> </second> </item> <item> <first>tmp_10_i_i3_fu_671_p2 ( lshr ) </first> <second> <count>1</count> <item_version>0</item_version> <item>123</item> </second> </item> <item> <first>tmp_10_i_i_fu_468_p2 ( lshr ) </first> <second> <count>1</count> <item_version>0</item_version> <item>46</item> </second> </item> <item> <first>tmp_11_i_i1_fu_539_p2 ( shl ) </first> <second> <count>1</count> <item_version>0</item_version> <item>72</item> </second> </item> <item> <first>tmp_11_i_i2_fu_612_p2 ( shl ) </first> <second> <count>1</count> <item_version>0</item_version> <item>99</item> </second> </item> <item> <first>tmp_11_i_i3_fu_677_p2 ( shl ) </first> <second> <count>1</count> <item_version>0</item_version> <item>124</item> </second> </item> <item> <first>tmp_11_i_i_fu_474_p2 ( shl ) </first> <second> <count>1</count> <item_version>0</item_version> <item>47</item> </second> </item> <item> <first>tmp_16_i_i1_fu_721_p2 ( - ) </first> <second> <count>1</count> <item_version>0</item_version> <item>78</item> </second> </item> <item> <first>tmp_16_i_i2_fu_732_p2 ( - ) </first> <second> <count>1</count> <item_version>0</item_version> <item>104</item> </second> </item> <item> <first>tmp_16_i_i3_fu_740_p2 ( - ) </first> <second> <count>1</count> <item_version>0</item_version> <item>130</item> </second> </item> <item> <first>tmp_16_i_i_fu_715_p2 ( - ) </first> <second> <count>1</count> <item_version>0</item_version> <item>53</item> </second> </item> <item> <first>tmp_3_fu_726_p3 ( select ) </first> <second> <count>1</count> <item_version>0</item_version> <item>80</item> </second> </item> <item> <first>tmp_6_fu_758_p3 ( select ) </first> <second> <count>1</count> <item_version>0</item_version> <item>105</item> </second> </item> <item> <first>tmp_8_i_i1_fu_320_p2 ( - ) </first> <second> <count>1</count> <item_version>0</item_version> <item>65</item> </second> </item> <item> <first>tmp_8_i_i2_fu_373_p2 ( - ) </first> <second> <count>1</count> <item_version>0</item_version> <item>92</item> </second> </item> <item> <first>tmp_8_i_i3_fu_426_p2 ( - ) </first> <second> <count>1</count> <item_version>0</item_version> <item>117</item> </second> </item> <item> <first>tmp_8_i_i_fu_259_p2 ( - ) </first> <second> <count>1</count> <item_version>0</item_version> <item>40</item> </second> </item> <item> <first>tmp_fu_798_p2 ( + ) </first> <second> <count>1</count> <item_version>0</item_version> <item>132</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>126</count> <item_version>0</item_version> <item class_id="44" tracking_level="0" version="0"> <first>7</first> <second class_id="45" tracking_level="0" version="0"> <first>0</first> <second>0</second> </second> </item> <item> <first>9</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>10</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>11</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>12</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>17</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>18</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>19</first> <second> <first>3</first> <second>7</second> </second> </item> <item> <first>20</first> <second> <first>11</first> <second>1</second> </second> </item> <item> <first>21</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>22</first> <second> <first>3</first> <second>7</second> </second> </item> <item> <first>23</first> <second> <first>11</first> <second>1</second> </second> </item> <item> <first>24</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>25</first> <second> <first>3</first> <second>7</second> </second> </item> <item> <first>26</first> <second> <first>11</first> <second>1</second> </second> </item> <item> <first>27</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>28</first> <second> <first>3</first> <second>7</second> </second> </item> <item> <first>29</first> <second> <first>11</first> <second>1</second> </second> </item> <item> <first>30</first> <second> <first>13</first> <second>9</second> </second> </item> <item> <first>31</first> <second> <first>23</first> <second>0</second> </second> </item> <item> <first>32</first> <second> <first>23</first> <second>0</second> </second> </item> <item> <first>33</first> <second> <first>23</first> <second>0</second> </second> </item> <item> <first>34</first> <second> <first>23</first> <second>0</second> </second> </item> <item> <first>35</first> <second> <first>24</first> <second>0</second> </second> </item> <item> <first>36</first> <second> <first>24</first> <second>0</second> </second> </item> <item> <first>37</first> <second> <first>23</first> <second>0</second> </second> </item> <item> <first>38</first> <second> <first>23</first> <second>0</second> </second> </item> <item> <first>39</first> <second> <first>23</first> <second>0</second> </second> </item> <item> <first>40</first> <second> <first>23</first> <second>0</second> </second> </item> <item> <first>41</first> <second> <first>23</first> <second>0</second> </second> </item> <item> <first>42</first> <second> <first>23</first> <second>0</second> </second> </item> <item> <first>43</first> <second> <first>24</first> <second>0</second> </second> </item> <item> <first>44</first> <second> <first>24</first> <second>0</second> </second> </item> <item> <first>45</first> <second> <first>24</first> <second>0</second> </second> </item> <item> <first>46</first> <second> <first>24</first> <second>0</second> </second> </item> <item> <first>47</first> <second> <first>24</first> <second>0</second> </second> </item> <item> <first>48</first> <second> <first>24</first> <second>0</second> </second> </item> <item> <first>49</first> <second> <first>24</first> <second>0</second> </second> </item> <item> <first>50</first> <second> <first>24</first> <second>0</second> </second> </item> <item> <first>51</first> <second> <first>24</first> <second>0</second> </second> </item> <item> <first>52</first> <second> <first>25</first> <second>0</second> </second> </item> <item> <first>53</first> <second> <first>25</first> <second>0</second> </second> </item> <item> <first>54</first> <second> <first>26</first> <second>0</second> </second> </item> <item> <first>55</first> <second> <first>13</first> <second>9</second> </second> </item> <item> <first>56</first> <second> <first>23</first> <second>0</second> </second> </item> <item> <first>57</first> <second> <first>23</first> <second>0</second> </second> </item> <item> <first>58</first> <second> <first>23</first> <second>0</second> </second> </item> <item> <first>59</first> <second> <first>23</first> <second>0</second> </second> </item> <item> <first>60</first> <second> <first>24</first> <second>0</second> </second> </item> <item> <first>61</first> <second> <first>24</first> <second>0</second> </second> </item> <item> <first>62</first> <second> <first>23</first> <second>0</second> </second> </item> <item> <first>63</first> <second> <first>23</first> <second>0</second> </second> </item> <item> <first>64</first> <second> <first>23</first> <second>0</second> </second> </item> <item> <first>65</first> <second> <first>23</first> <second>0</second> </second> </item> <item> <first>66</first> <second> <first>23</first> <second>0</second> </second> </item> <item> <first>67</first> <second> <first>23</first> <second>0</second> </second> </item> <item> <first>68</first> <second> <first>24</first> <second>0</second> </second> </item> <item> <first>69</first> <second> <first>24</first> <second>0</second> </second> </item> <item> <first>70</first> <second> <first>24</first> <second>0</second> </second> </item> <item> <first>71</first> <second> <first>24</first> <second>0</second> </second> </item> <item> <first>72</first> <second> <first>24</first> <second>0</second> </second> </item> <item> <first>73</first> <second> <first>24</first> <second>0</second> </second> </item> <item> <first>74</first> <second> <first>24</first> <second>0</second> </second> </item> <item> <first>75</first> <second> <first>24</first> <second>0</second> </second> </item> <item> <first>76</first> <second> <first>24</first> <second>0</second> </second> </item> <item> <first>77</first> <second> <first>24</first> <second>0</second> </second> </item> <item> <first>78</first> <second> <first>25</first> <second>0</second> </second> </item> <item> <first>79</first> <second> <first>24</first> <second>0</second> </second> </item> <item> <first>80</first> <second> <first>25</first> <second>0</second> </second> </item> <item> <first>81</first> <second> <first>27</first> <second>0</second> </second> </item> <item> <first>82</first> <second> <first>13</first> <second>9</second> </second> </item> <item> <first>83</first> <second> <first>23</first> <second>0</second> </second> </item> <item> <first>84</first> <second> <first>26</first> <second>0</second> </second> </item> <item> <first>85</first> <second> <first>23</first> <second>0</second> </second> </item> <item> <first>86</first> <second> <first>23</first> <second>0</second> </second> </item> <item> <first>87</first> <second> <first>24</first> <second>0</second> </second> </item> <item> <first>88</first> <second> <first>24</first> <second>0</second> </second> </item> <item> <first>89</first> <second> <first>23</first> <second>0</second> </second> </item> <item> <first>90</first> <second> <first>23</first> <second>0</second> </second> </item> <item> <first>91</first> <second> <first>23</first> <second>0</second> </second> </item> <item> <first>92</first> <second> <first>23</first> <second>0</second> </second> </item> <item> <first>93</first> <second> <first>23</first> <second>0</second> </second> </item> <item> <first>94</first> <second> <first>23</first> <second>0</second> </second> </item> <item> <first>95</first> <second> <first>24</first> <second>0</second> </second> </item> <item> <first>96</first> <second> <first>24</first> <second>0</second> </second> </item> <item> <first>97</first> <second> <first>24</first> <second>0</second> </second> </item> <item> <first>98</first> <second> <first>24</first> <second>0</second> </second> </item> <item> <first>99</first> <second> <first>24</first> <second>0</second> </second> </item> <item> <first>100</first> <second> <first>24</first> <second>0</second> </second> </item> <item> <first>101</first> <second> <first>24</first> <second>0</second> </second> </item> <item> <first>102</first> <second> <first>24</first> <second>0</second> </second> </item> <item> <first>103</first> <second> <first>24</first> <second>0</second> </second> </item> <item> <first>104</first> <second> <first>25</first> <second>0</second> </second> </item> <item> <first>105</first> <second> <first>26</first> <second>0</second> </second> </item> <item> <first>106</first> <second> <first>26</first> <second>0</second> </second> </item> <item> <first>107</first> <second> <first>13</first> <second>9</second> </second> </item> <item> <first>108</first> <second> <first>23</first> <second>0</second> </second> </item> <item> <first>109</first> <second> <first>26</first> <second>0</second> </second> </item> <item> <first>110</first> <second> <first>23</first> <second>0</second> </second> </item> <item> <first>111</first> <second> <first>23</first> <second>0</second> </second> </item> <item> <first>112</first> <second> <first>24</first> <second>0</second> </second> </item> <item> <first>113</first> <second> <first>24</first> <second>0</second> </second> </item> <item> <first>114</first> <second> <first>23</first> <second>0</second> </second> </item> <item> <first>115</first> <second> <first>23</first> <second>0</second> </second> </item> <item> <first>116</first> <second> <first>23</first> <second>0</second> </second> </item> <item> <first>117</first> <second> <first>23</first> <second>0</second> </second> </item> <item> <first>118</first> <second> <first>23</first> <second>0</second> </second> </item> <item> <first>119</first> <second> <first>23</first> <second>0</second> </second> </item> <item> <first>120</first> <second> <first>24</first> <second>0</second> </second> </item> <item> <first>121</first> <second> <first>24</first> <second>0</second> </second> </item> <item> <first>122</first> <second> <first>24</first> <second>0</second> </second> </item> <item> <first>123</first> <second> <first>24</first> <second>0</second> </second> </item> <item> <first>124</first> <second> <first>24</first> <second>0</second> </second> </item> <item> <first>125</first> <second> <first>24</first> <second>0</second> </second> </item> <item> <first>126</first> <second> <first>24</first> <second>0</second> </second> </item> <item> <first>127</first> <second> <first>24</first> <second>0</second> </second> </item> <item> <first>128</first> <second> <first>24</first> <second>0</second> </second> </item> <item> <first>129</first> <second> <first>25</first> <second>0</second> </second> </item> <item> <first>130</first> <second> <first>25</first> <second>0</second> </second> </item> <item> <first>131</first> <second> <first>26</first> <second>0</second> </second> </item> <item> <first>132</first> <second> <first>27</first> <second>0</second> </second> </item> <item> <first>133</first> <second> <first>26</first> <second>0</second> </second> </item> <item> <first>134</first> <second> <first>27</first> <second>0</second> </second> </item> <item> <first>135</first> <second> <first>28</first> <second>0</second> </second> </item> <item> <first>137</first> <second> <first>28</first> <second>0</second> </second> </item> <item> <first>139</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>8</first> <second class_id="48" tracking_level="0" version="0"> <first>0</first> <second>0</second> </second> </item> <item> <first>13</first> <second> <first>1</first> <second>1</second> </second> </item> <item> <first>138</first> <second> <first>2</first> <second>28</second> </second> </item> <item> <first>140</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="_656"> <region_name>Loop 1</region_name> <basic_blocks> <count>2</count> <item_version>0</item_version> <item>13</item> <item>138</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>28</pipe_depth> </item> </regions> <dp_fu_nodes class_id="51" tracking_level="0" version="0"> <count>122</count> <item_version>0</item_version> <item class_id="52" tracking_level="0" version="0"> <first>102</first> <second> <count>1</count> <item_version>0</item_version> <item>17</item> </second> </item> <item> <first>108</first> <second> <count>1</count> <item_version>0</item_version> <item>135</item> </second> </item> <item> <first>119</first> <second> <count>1</count> <item_version>0</item_version> <item>9</item> </second> </item> <item> <first>126</first> <second> <count>8</count> <item_version>0</item_version> <item>19</item> <item>19</item> <item>19</item> <item>19</item> <item>19</item> <item>19</item> <item>19</item> <item>19</item> </second> </item> <item> <first>129</first> <second> <count>8</count> <item_version>0</item_version> <item>22</item> <item>22</item> <item>22</item> <item>22</item> <item>22</item> <item>22</item> <item>22</item> <item>22</item> </second> </item> <item> <first>132</first> <second> <count>8</count> <item_version>0</item_version> <item>25</item> <item>25</item> <item>25</item> <item>25</item> <item>25</item> <item>25</item> <item>25</item> <item>25</item> </second> </item> <item> <first>135</first> <second> <count>8</count> <item_version>0</item_version> <item>28</item> <item>28</item> <item>28</item> <item>28</item> <item>28</item> <item>28</item> <item>28</item> <item>28</item> </second> </item> <item> <first>138</first> <second> <count>2</count> <item_version>0</item_version> <item>20</item> <item>20</item> </second> </item> <item> <first>141</first> <second> <count>2</count> <item_version>0</item_version> <item>23</item> <item>23</item> </second> </item> <item> <first>144</first> <second> <count>2</count> <item_version>0</item_version> <item>26</item> <item>26</item> </second> </item> <item> <first>147</first> <second> <count>2</count> <item_version>0</item_version> <item>29</item> <item>29</item> </second> </item> <item> <first>150</first> <second> <count>10</count> <item_version>0</item_version> <item>30</item> <item>30</item> <item>30</item> <item>30</item> <item>30</item> <item>30</item> <item>30</item> <item>30</item> <item>30</item> <item>30</item> </second> </item> <item> <first>155</first> <second> <count>10</count> <item_version>0</item_version> <item>55</item> <item>55</item> <item>55</item> <item>55</item> <item>55</item> <item>55</item> <item>55</item> <item>55</item> <item>55</item> <item>55</item> </second> </item> <item> <first>160</first> <second> <count>10</count> <item_version>0</item_version> <item>82</item> <item>82</item> <item>82</item> <item>82</item> <item>82</item> <item>82</item> <item>82</item> <item>82</item> <item>82</item> <item>82</item> </second> </item> <item> <first>165</first> <second> <count>10</count> <item_version>0</item_version> <item>107</item> <item>107</item> <item>107</item> <item>107</item> <item>107</item> <item>107</item> <item>107</item> <item>107</item> <item>107</item> <item>107</item> </second> </item> <item> <first>170</first> <second> <count>1</count> <item_version>0</item_version> <item>10</item> </second> </item> <item> <first>176</first> <second> <count>1</count> <item_version>0</item_version> <item>11</item> </second> </item> <item> <first>182</first> <second> <count>1</count> <item_version>0</item_version> <item>18</item> </second> </item> <item> <first>186</first> <second> <count>1</count> <item_version>0</item_version> <item>21</item> </second> </item> <item> <first>196</first> <second> <count>1</count> <item_version>0</item_version> <item>24</item> </second> </item> <item> <first>206</first> <second> <count>1</count> <item_version>0</item_version> <item>27</item> </second> </item> <item> <first>216</first> <second> <count>1</count> <item_version>0</item_version> <item>31</item> </second> </item> <item> <first>219</first> <second> <count>1</count> <item_version>0</item_version> <item>32</item> </second> </item> <item> <first>227</first> <second> <count>1</count> <item_version>0</item_version> <item>33</item> </second> </item> <item> <first>237</first> <second> <count>1</count> <item_version>0</item_version> <item>34</item> </second> </item> <item> <first>241</first> <second> <count>1</count> <item_version>0</item_version> <item>37</item> </second> </item> <item> <first>245</first> <second> <count>1</count> <item_version>0</item_version> <item>38</item> </second> </item> <item> <first>251</first> <second> <count>1</count> <item_version>0</item_version> <item>39</item> </second> </item> <item> <first>259</first> <second> <count>1</count> <item_version>0</item_version> <item>40</item> </second> </item> <item> <first>265</first> <second> <count>1</count> <item_version>0</item_version> <item>41</item> </second> </item> <item> <first>269</first> <second> <count>1</count> <item_version>0</item_version> <item>42</item> </second> </item> <item> <first>277</first> <second> <count>1</count> <item_version>0</item_version> <item>56</item> </second> </item> <item> <first>280</first> <second> <count>1</count> <item_version>0</item_version> <item>57</item> </second> </item> <item> <first>288</first> <second> <count>1</count> <item_version>0</item_version> <item>58</item> </second> </item> <item> <first>298</first> <second> <count>1</count> <item_version>0</item_version> <item>59</item> </second> </item> <item> <first>302</first> <second> <count>1</count> <item_version>0</item_version> <item>62</item> </second> </item> <item> <first>306</first> <second> <count>1</count> <item_version>0</item_version> <item>63</item> </second> </item> <item> <first>312</first> <second> <count>1</count> <item_version>0</item_version> <item>64</item> </second> </item> <item> <first>320</first> <second> <count>1</count> <item_version>0</item_version> <item>65</item> </second> </item> <item> <first>326</first> <second> <count>1</count> <item_version>0</item_version> <item>66</item> </second> </item> <item> <first>330</first> <second> <count>1</count> <item_version>0</item_version> <item>67</item> </second> </item> <item> <first>338</first> <second> <count>1</count> <item_version>0</item_version> <item>83</item> </second> </item> <item> <first>341</first> <second> <count>1</count> <item_version>0</item_version> <item>85</item> </second> </item> <item> <first>351</first> <second> <count>1</count> <item_version>0</item_version> <item>86</item> </second> </item> <item> <first>355</first> <second> <count>1</count> <item_version>0</item_version> <item>89</item> </second> </item> <item> <first>359</first> <second> <count>1</count> <item_version>0</item_version> <item>90</item> </second> </item> <item> <first>365</first> <second> <count>1</count> <item_version>0</item_version> <item>91</item> </second> </item> <item> <first>373</first> <second> <count>1</count> <item_version>0</item_version> <item>92</item> </second> </item> <item> <first>379</first> <second> <count>1</count> <item_version>0</item_version> <item>93</item> </second> </item> <item> <first>383</first> <second> <count>1</count> <item_version>0</item_version> <item>94</item> </second> </item> <item> <first>391</first> <second> <count>1</count> <item_version>0</item_version> <item>108</item> </second> </item> <item> <first>394</first> <second> <count>1</count> <item_version>0</item_version> <item>110</item> </second> </item> <item> <first>404</first> <second> <count>1</count> <item_version>0</item_version> <item>111</item> </second> </item> <item> <first>408</first> <second> <count>1</count> <item_version>0</item_version> <item>114</item> </second> </item> <item> <first>412</first> <second> <count>1</count> <item_version>0</item_version> <item>115</item> </second> </item> <item> <first>418</first> <second> <count>1</count> <item_version>0</item_version> <item>116</item> </second> </item> <item> <first>426</first> <second> <count>1</count> <item_version>0</item_version> <item>117</item> </second> </item> <item> <first>432</first> <second> <count>1</count> <item_version>0</item_version> <item>118</item> </second> </item> <item> <first>436</first> <second> <count>1</count> <item_version>0</item_version> <item>119</item> </second> </item> <item> <first>444</first> <second> <count>1</count> <item_version>0</item_version> <item>35</item> </second> </item> <item> <first>453</first> <second> <count>1</count> <item_version>0</item_version> <item>36</item> </second> </item> <item> <first>457</first> <second> <count>1</count> <item_version>0</item_version> <item>43</item> </second> </item> <item> <first>460</first> <second> <count>1</count> <item_version>0</item_version> <item>44</item> </second> </item> <item> <first>464</first> <second> <count>1</count> <item_version>0</item_version> <item>45</item> </second> </item> <item> <first>468</first> <second> <count>1</count> <item_version>0</item_version> <item>46</item> </second> </item> <item> <first>474</first> <second> <count>1</count> <item_version>0</item_version> <item>47</item> </second> </item> <item> <first>480</first> <second> <count>1</count> <item_version>0</item_version> <item>48</item> </second> </item> <item> <first>488</first> <second> <count>1</count> <item_version>0</item_version> <item>49</item> </second> </item> <item> <first>492</first> <second> <count>1</count> <item_version>0</item_version> <item>50</item> </second> </item> <item> <first>502</first> <second> <count>1</count> <item_version>0</item_version> <item>51</item> </second> </item> <item> <first>509</first> <second> <count>1</count> <item_version>0</item_version> <item>60</item> </second> </item> <item> <first>518</first> <second> <count>1</count> <item_version>0</item_version> <item>61</item> </second> </item> <item> <first>522</first> <second> <count>1</count> <item_version>0</item_version> <item>68</item> </second> </item> <item> <first>525</first> <second> <count>1</count> <item_version>0</item_version> <item>69</item> </second> </item> <item> <first>529</first> <second> <count>1</count> <item_version>0</item_version> <item>70</item> </second> </item> <item> <first>533</first> <second> <count>1</count> <item_version>0</item_version> <item>71</item> </second> </item> <item> <first>539</first> <second> <count>1</count> <item_version>0</item_version> <item>72</item> </second> </item> <item> <first>545</first> <second> <count>1</count> <item_version>0</item_version> <item>73</item> </second> </item> <item> <first>553</first> <second> <count>1</count> <item_version>0</item_version> <item>74</item> </second> </item> <item> <first>557</first> <second> <count>1</count> <item_version>0</item_version> <item>75</item> </second> </item> <item> <first>567</first> <second> <count>1</count> <item_version>0</item_version> <item>76</item> </second> </item> <item> <first>574</first> <second> <count>1</count> <item_version>0</item_version> <item>77</item> </second> </item> <item> <first>578</first> <second> <count>1</count> <item_version>0</item_version> <item>79</item> </second> </item> <item> <first>582</first> <second> <count>1</count> <item_version>0</item_version> <item>87</item> </second> </item> <item> <first>591</first> <second> <count>1</count> <item_version>0</item_version> <item>88</item> </second> </item> <item> <first>595</first> <second> <count>1</count> <item_version>0</item_version> <item>95</item> </second> </item> <item> <first>598</first> <second> <count>1</count> <item_version>0</item_version> <item>96</item> </second> </item> <item> <first>602</first> <second> <count>1</count> <item_version>0</item_version> <item>97</item> </second> </item> <item> <first>606</first> <second> <count>1</count> <item_version>0</item_version> <item>98</item> </second> </item> <item> <first>612</first> <second> <count>1</count> <item_version>0</item_version> <item>99</item> </second> </item> <item> <first>618</first> <second> <count>1</count> <item_version>0</item_version> <item>100</item> </second> </item> <item> <first>626</first> <second> <count>1</count> <item_version>0</item_version> <item>101</item> </second> </item> <item> <first>630</first> <second> <count>1</count> <item_version>0</item_version> <item>102</item> </second> </item> <item> <first>640</first> <second> <count>1</count> <item_version>0</item_version> <item>103</item> </second> </item> <item> <first>647</first> <second> <count>1</count> <item_version>0</item_version> <item>112</item> </second> </item> <item> <first>656</first> <second> <count>1</count> <item_version>0</item_version> <item>113</item> </second> </item> <item> <first>660</first> <second> <count>1</count> <item_version>0</item_version> <item>120</item> </second> </item> <item> <first>663</first> <second> <count>1</count> <item_version>0</item_version> <item>121</item> </second> </item> <item> <first>667</first> <second> <count>1</count> <item_version>0</item_version> <item>122</item> </second> </item> <item> <first>671</first> <second> <count>1</count> <item_version>0</item_version> <item>123</item> </second> </item> <item> <first>677</first> <second> <count>1</count> <item_version>0</item_version> <item>124</item> </second> </item> <item> <first>683</first> <second> <count>1</count> <item_version>0</item_version> <item>125</item> </second> </item> <item> <first>691</first> <second> <count>1</count> <item_version>0</item_version> <item>126</item> </second> </item> <item> <first>695</first> <second> <count>1</count> <item_version>0</item_version> <item>127</item> </second> </item> <item> <first>705</first> <second> <count>1</count> <item_version>0</item_version> <item>128</item> </second> </item> <item> <first>712</first> <second> <count>1</count> <item_version>0</item_version> <item>52</item> </second> </item> <item> <first>715</first> <second> <count>1</count> <item_version>0</item_version> <item>53</item> </second> </item> <item> <first>721</first> <second> <count>1</count> <item_version>0</item_version> <item>78</item> </second> </item> <item> <first>726</first> <second> <count>1</count> <item_version>0</item_version> <item>80</item> </second> </item> <item> <first>732</first> <second> <count>1</count> <item_version>0</item_version> <item>104</item> </second> </item> <item> <first>737</first> <second> <count>1</count> <item_version>0</item_version> <item>129</item> </second> </item> <item> <first>740</first> <second> <count>1</count> <item_version>0</item_version> <item>130</item> </second> </item> <item> <first>746</first> <second> <count>1</count> <item_version>0</item_version> <item>54</item> </second> </item> <item> <first>751</first> <second> <count>1</count> <item_version>0</item_version> <item>84</item> </second> </item> <item> <first>758</first> <second> <count>1</count> <item_version>0</item_version> <item>105</item> </second> </item> <item> <first>764</first> <second> <count>1</count> <item_version>0</item_version> <item>106</item> </second> </item> <item> <first>772</first> <second> <count>1</count> <item_version>0</item_version> <item>109</item> </second> </item> <item> <first>779</first> <second> <count>1</count> <item_version>0</item_version> <item>131</item> </second> </item> <item> <first>785</first> <second> <count>1</count> <item_version>0</item_version> <item>133</item> </second> </item> <item> <first>791</first> <second> <count>1</count> <item_version>0</item_version> <item>81</item> </second> </item> <item> <first>798</first> <second> <count>1</count> <item_version>0</item_version> <item>132</item> </second> </item> <item> <first>803</first> <second> <count>1</count> <item_version>0</item_version> <item>134</item> </second> </item> </dp_fu_nodes> <dp_fu_nodes_expression class_id="54" tracking_level="0" version="0"> <count>108</count> <item_version>0</item_version> <item class_id="55" tracking_level="0" version="0"> <first>exitcond_flatten_fu_170</first> <second> <count>1</count> <item_version>0</item_version> <item>10</item> </second> </item> <item> <first>indvar_flatten_next_fu_176</first> <second> <count>1</count> <item_version>0</item_version> <item>11</item> </second> </item> <item> <first>indvar_flatten_phi_fu_119</first> <second> <count>1</count> <item_version>0</item_version> <item>9</item> </second> </item> <item> <first>isNeg_1_fu_312</first> <second> <count>1</count> <item_version>0</item_version> <item>64</item> </second> </item> <item> <first>isNeg_2_fu_365</first> <second> <count>1</count> <item_version>0</item_version> <item>91</item> </second> </item> <item> <first>isNeg_3_fu_418</first> <second> <count>1</count> <item_version>0</item_version> <item>116</item> </second> </item> <item> <first>isNeg_fu_251</first> <second> <count>1</count> <item_version>0</item_version> <item>39</item> </second> </item> <item> <first>loc_V_2_fu_237</first> <second> <count>1</count> <item_version>0</item_version> <item>34</item> </second> </item> <item> <first>loc_V_3_fu_288</first> <second> <count>1</count> <item_version>0</item_version> <item>58</item> </second> </item> <item> <first>loc_V_4_fu_298</first> <second> <count>1</count> <item_version>0</item_version> <item>59</item> </second> </item> <item> <first>loc_V_5_fu_341</first> <second> <count>1</count> <item_version>0</item_version> <item>85</item> </second> </item> <item> <first>loc_V_6_fu_351</first> <second> <count>1</count> <item_version>0</item_version> <item>86</item> </second> </item> <item> <first>loc_V_7_fu_394</first> <second> <count>1</count> <item_version>0</item_version> <item>110</item> </second> </item> <item> <first>loc_V_8_fu_404</first> <second> <count>1</count> <item_version>0</item_version> <item>111</item> </second> </item> <item> <first>loc_V_fu_227</first> <second> <count>1</count> <item_version>0</item_version> <item>33</item> </second> </item> <item> <first>p_381_fu_182</first> <second> <count>1</count> <item_version>0</item_version> <item>18</item> </second> </item> <item> <first>p_396_fu_791</first> <second> <count>1</count> <item_version>0</item_version> <item>81</item> </second> </item> <item> <first>p_405_fu_764</first> <second> <count>1</count> <item_version>0</item_version> <item>106</item> </second> </item> <item> <first>p_415_fu_803</first> <second> <count>1</count> <item_version>0</item_version> <item>134</item> </second> </item> <item> <first>p_Result_4_fu_280</first> <second> <count>1</count> <item_version>0</item_version> <item>57</item> </second> </item> <item> <first>p_Result_5_fu_751</first> <second> <count>1</count> <item_version>0</item_version> <item>84</item> </second> </item> <item> <first>p_Result_6_fu_772</first> <second> <count>1</count> <item_version>0</item_version> <item>109</item> </second> </item> <item> <first>p_Result_s_fu_219</first> <second> <count>1</count> <item_version>0</item_version> <item>32</item> </second> </item> <item> <first>p_Val2_15_fu_567</first> <second> <count>1</count> <item_version>0</item_version> <item>76</item> </second> </item> <item> <first>p_Val2_17_fu_338</first> <second> <count>1</count> <item_version>0</item_version> <item>83</item> </second> </item> <item> <first>p_Val2_19_fu_640</first> <second> <count>1</count> <item_version>0</item_version> <item>103</item> </second> </item> <item> <first>p_Val2_21_fu_391</first> <second> <count>1</count> <item_version>0</item_version> <item>108</item> </second> </item> <item> <first>p_Val2_23_fu_705</first> <second> <count>1</count> <item_version>0</item_version> <item>128</item> </second> </item> <item> <first>p_Val2_26_fu_746</first> <second> <count>1</count> <item_version>0</item_version> <item>54</item> </second> </item> <item> <first>p_Val2_27_fu_779</first> <second> <count>1</count> <item_version>0</item_version> <item>131</item> </second> </item> <item> <first>p_Val2_5_fu_216</first> <second> <count>1</count> <item_version>0</item_version> <item>31</item> </second> </item> <item> <first>p_Val2_7_fu_502</first> <second> <count>1</count> <item_version>0</item_version> <item>51</item> </second> </item> <item> <first>p_Val2_s_fu_277</first> <second> <count>1</count> <item_version>0</item_version> <item>56</item> </second> </item> <item> <first>p_mul_stencil_value_0_1_fu_196</first> <second> <count>1</count> <item_version>0</item_version> <item>24</item> </second> </item> <item> <first>p_mul_stencil_value_0_2_fu_206</first> <second> <count>1</count> <item_version>0</item_version> <item>27</item> </second> </item> <item> <first>p_mul_stencil_value_0_fu_186</first> <second> <count>1</count> <item_version>0</item_version> <item>21</item> </second> </item> <item> <first>sh_assign_2_fu_269</first> <second> <count>1</count> <item_version>0</item_version> <item>42</item> </second> </item> <item> <first>sh_assign_2_i_cast_i_1_fu_522</first> <second> <count>1</count> <item_version>0</item_version> <item>68</item> </second> </item> <item> <first>sh_assign_2_i_cast_i_2_fu_595</first> <second> <count>1</count> <item_version>0</item_version> <item>95</item> </second> </item> <item> <first>sh_assign_2_i_cast_i_3_fu_660</first> <second> <count>1</count> <item_version>0</item_version> <item>120</item> </second> </item> <item> <first>sh_assign_2_i_cast_i_fu_457</first> <second> <count>1</count> <item_version>0</item_version> <item>43</item> </second> </item> <item> <first>sh_assign_3_fu_306</first> <second> <count>1</count> <item_version>0</item_version> <item>63</item> </second> </item> <item> <first>sh_assign_4_fu_330</first> <second> <count>1</count> <item_version>0</item_version> <item>67</item> </second> </item> <item> <first>sh_assign_5_fu_359</first> <second> <count>1</count> <item_version>0</item_version> <item>90</item> </second> </item> <item> <first>sh_assign_6_fu_383</first> <second> <count>1</count> <item_version>0</item_version> <item>94</item> </second> </item> <item> <first>sh_assign_7_fu_412</first> <second> <count>1</count> <item_version>0</item_version> <item>115</item> </second> </item> <item> <first>sh_assign_8_fu_436</first> <second> <count>1</count> <item_version>0</item_version> <item>119</item> </second> </item> <item> <first>sh_assign_fu_245</first> <second> <count>1</count> <item_version>0</item_version> <item>38</item> </second> </item> <item> <first>tmp5_fu_785</first> <second> <count>1</count> <item_version>0</item_version> <item>133</item> </second> </item> <item> <first>tmp_10_fu_695</first> <second> <count>1</count> <item_version>0</item_version> <item>127</item> </second> </item> <item> <first>tmp_10_i_i1_fu_533</first> <second> <count>1</count> <item_version>0</item_version> <item>71</item> </second> </item> <item> <first>tmp_10_i_i2_fu_606</first> <second> <count>1</count> <item_version>0</item_version> <item>98</item> </second> </item> <item> <first>tmp_10_i_i3_fu_671</first> <second> <count>1</count> <item_version>0</item_version> <item>123</item> </second> </item> <item> <first>tmp_10_i_i_fu_468</first> <second> <count>1</count> <item_version>0</item_version> <item>46</item> </second> </item> <item> <first>tmp_11_i_i1_fu_539</first> <second> <count>1</count> <item_version>0</item_version> <item>72</item> </second> </item> <item> <first>tmp_11_i_i2_fu_612</first> <second> <count>1</count> <item_version>0</item_version> <item>99</item> </second> </item> <item> <first>tmp_11_i_i3_fu_677</first> <second> <count>1</count> <item_version>0</item_version> <item>124</item> </second> </item> <item> <first>tmp_11_i_i_fu_474</first> <second> <count>1</count> <item_version>0</item_version> <item>47</item> </second> </item> <item> <first>tmp_13_i_i3_fu_737</first> <second> <count>1</count> <item_version>0</item_version> <item>129</item> </second> </item> <item> <first>tmp_13_i_i_fu_712</first> <second> <count>1</count> <item_version>0</item_version> <item>52</item> </second> </item> <item> <first>tmp_16_i_i1_fu_721</first> <second> <count>1</count> <item_version>0</item_version> <item>78</item> </second> </item> <item> <first>tmp_16_i_i2_fu_732</first> <second> <count>1</count> <item_version>0</item_version> <item>104</item> </second> </item> <item> <first>tmp_16_i_i3_fu_740</first> <second> <count>1</count> <item_version>0</item_version> <item>130</item> </second> </item> <item> <first>tmp_16_i_i_fu_715</first> <second> <count>1</count> <item_version>0</item_version> <item>53</item> </second> </item> <item> <first>tmp_17_fu_480</first> <second> <count>1</count> <item_version>0</item_version> <item>48</item> </second> </item> <item> <first>tmp_26_fu_545</first> <second> <count>1</count> <item_version>0</item_version> <item>73</item> </second> </item> <item> <first>tmp_27_fu_574</first> <second> <count>1</count> <item_version>0</item_version> <item>77</item> </second> </item> <item> <first>tmp_28_fu_578</first> <second> <count>1</count> <item_version>0</item_version> <item>79</item> </second> </item> <item> <first>tmp_2_fu_557</first> <second> <count>1</count> <item_version>0</item_version> <item>75</item> </second> </item> <item> <first>tmp_32_fu_618</first> <second> <count>1</count> <item_version>0</item_version> <item>100</item> </second> </item> <item> <first>tmp_36_fu_683</first> <second> <count>1</count> <item_version>0</item_version> <item>125</item> </second> </item> <item> <first>tmp_3_fu_726</first> <second> <count>1</count> <item_version>0</item_version> <item>80</item> </second> </item> <item> <first>tmp_4_fu_626</first> <second> <count>1</count> <item_version>0</item_version> <item>101</item> </second> </item> <item> <first>tmp_5_fu_630</first> <second> <count>1</count> <item_version>0</item_version> <item>102</item> </second> </item> <item> <first>tmp_6_fu_758</first> <second> <count>1</count> <item_version>0</item_version> <item>105</item> </second> </item> <item> <first>tmp_7_fu_488</first> <second> <count>1</count> <item_version>0</item_version> <item>49</item> </second> </item> <item> <first>tmp_8_fu_492</first> <second> <count>1</count> <item_version>0</item_version> <item>50</item> </second> </item> <item> <first>tmp_8_i_cast_i1_fu_326</first> <second> <count>1</count> <item_version>0</item_version> <item>66</item> </second> </item> <item> <first>tmp_8_i_cast_i2_fu_379</first> <second> <count>1</count> <item_version>0</item_version> <item>93</item> </second> </item> <item> <first>tmp_8_i_cast_i3_fu_432</first> <second> <count>1</count> <item_version>0</item_version> <item>118</item> </second> </item> <item> <first>tmp_8_i_cast_i_fu_265</first> <second> <count>1</count> <item_version>0</item_version> <item>41</item> </second> </item> <item> <first>tmp_8_i_i1_fu_320</first> <second> <count>1</count> <item_version>0</item_version> <item>65</item> </second> </item> <item> <first>tmp_8_i_i2_fu_373</first> <second> <count>1</count> <item_version>0</item_version> <item>92</item> </second> </item> <item> <first>tmp_8_i_i3_fu_426</first> <second> <count>1</count> <item_version>0</item_version> <item>117</item> </second> </item> <item> <first>tmp_8_i_i_fu_259</first> <second> <count>1</count> <item_version>0</item_version> <item>40</item> </second> </item> <item> <first>tmp_9_fu_691</first> <second> <count>1</count> <item_version>0</item_version> <item>126</item> </second> </item> <item> <first>tmp_9_i_cast_i1_fu_529</first> <second> <count>1</count> <item_version>0</item_version> <item>70</item> </second> </item> <item> <first>tmp_9_i_cast_i2_fu_602</first> <second> <count>1</count> <item_version>0</item_version> <item>97</item> </second> </item> <item> <first>tmp_9_i_cast_i3_fu_667</first> <second> <count>1</count> <item_version>0</item_version> <item>122</item> </second> </item> <item> <first>tmp_9_i_cast_i_fu_464</first> <second> <count>1</count> <item_version>0</item_version> <item>45</item> </second> </item> <item> <first>tmp_9_i_i1_fu_525</first> <second> <count>1</count> <item_version>0</item_version> <item>69</item> </second> </item> <item> <first>tmp_9_i_i2_fu_598</first> <second> <count>1</count> <item_version>0</item_version> <item>96</item> </second> </item> <item> <first>tmp_9_i_i3_fu_663</first> <second> <count>1</count> <item_version>0</item_version> <item>121</item> </second> </item> <item> <first>tmp_9_i_i_fu_460</first> <second> <count>1</count> <item_version>0</item_version> <item>44</item> </second> </item> <item> <first>tmp_fu_798</first> <second> <count>1</count> <item_version>0</item_version> <item>132</item> </second> </item> <item> <first>tmp_i_cast_i1_fu_591</first> <second> <count>1</count> <item_version>0</item_version> <item>88</item> </second> </item> <item> <first>tmp_i_cast_i2_fu_656</first> <second> <count>1</count> <item_version>0</item_version> <item>113</item> </second> </item> <item> <first>tmp_i_cast_i8_fu_518</first> <second> <count>1</count> <item_version>0</item_version> <item>61</item> </second> </item> <item> <first>tmp_i_cast_i_fu_453</first> <second> <count>1</count> <item_version>0</item_version> <item>36</item> </second> </item> <item> <first>tmp_i_i1_fu_582</first> <second> <count>1</count> <item_version>0</item_version> <item>87</item> </second> </item> <item> <first>tmp_i_i2_fu_647</first> <second> <count>1</count> <item_version>0</item_version> <item>112</item> </second> </item> <item> <first>tmp_i_i7_fu_509</first> <second> <count>1</count> <item_version>0</item_version> <item>60</item> </second> </item> <item> <first>tmp_i_i_cast_i1_fu_355</first> <second> <count>1</count> <item_version>0</item_version> <item>89</item> </second> </item> <item> <first>tmp_i_i_cast_i2_fu_408</first> <second> <count>1</count> <item_version>0</item_version> <item>114</item> </second> </item> <item> <first>tmp_i_i_cast_i9_fu_302</first> <second> <count>1</count> <item_version>0</item_version> <item>62</item> </second> </item> <item> <first>tmp_i_i_cast_i_fu_241</first> <second> <count>1</count> <item_version>0</item_version> <item>37</item> </second> </item> <item> <first>tmp_i_i_fu_444</first> <second> <count>1</count> <item_version>0</item_version> <item>35</item> </second> </item> <item> <first>tmp_s_fu_553</first> <second> <count>1</count> <item_version>0</item_version> <item>74</item> </second> </item> </dp_fu_nodes_expression> <dp_fu_nodes_module> <count>12</count> <item_version>0</item_version> <item> <first>grp_fu_126</first> <second> <count>8</count> <item_version>0</item_version> <item>19</item> <item>19</item> <item>19</item> <item>19</item> <item>19</item> <item>19</item> <item>19</item> <item>19</item> </second> </item> <item> <first>grp_fu_129</first> <second> <count>8</count> <item_version>0</item_version> <item>22</item> <item>22</item> <item>22</item> <item>22</item> <item>22</item> <item>22</item> <item>22</item> <item>22</item> </second> </item> <item> <first>grp_fu_132</first> <second> <count>8</count> <item_version>0</item_version> <item>25</item> <item>25</item> <item>25</item> <item>25</item> <item>25</item> <item>25</item> <item>25</item> <item>25</item> </second> </item> <item> <first>grp_fu_135</first> <second> <count>8</count> <item_version>0</item_version> <item>28</item> <item>28</item> <item>28</item> <item>28</item> <item>28</item> <item>28</item> <item>28</item> <item>28</item> </second> </item> <item> <first>grp_fu_138</first> <second> <count>2</count> <item_version>0</item_version> <item>20</item> <item>20</item> </second> </item> <item> <first>grp_fu_141</first> <second> <count>2</count> <item_version>0</item_version> <item>23</item> <item>23</item> </second> </item> <item> <first>grp_fu_144</first> <second> <count>2</count> <item_version>0</item_version> <item>26</item> <item>26</item> </second> </item> <item> <first>grp_fu_147</first> <second> <count>2</count> <item_version>0</item_version> <item>29</item> <item>29</item> </second> </item> <item> <first>grp_fu_150</first> <second> <count>10</count> <item_version>0</item_version> <item>30</item> <item>30</item> <item>30</item> <item>30</item> <item>30</item> <item>30</item> <item>30</item> <item>30</item> <item>30</item> <item>30</item> </second> </item> <item> <first>grp_fu_155</first> <second> <count>10</count> <item_version>0</item_version> <item>55</item> <item>55</item> <item>55</item> <item>55</item> <item>55</item> <item>55</item> <item>55</item> <item>55</item> <item>55</item> <item>55</item> </second> </item> <item> <first>grp_fu_160</first> <second> <count>10</count> <item_version>0</item_version> <item>82</item> <item>82</item> <item>82</item> <item>82</item> <item>82</item> <item>82</item> <item>82</item> <item>82</item> <item>82</item> <item>82</item> </second> </item> <item> <first>grp_fu_165</first> <second> <count>10</count> <item_version>0</item_version> <item>107</item> <item>107</item> <item>107</item> <item>107</item> <item>107</item> <item>107</item> <item>107</item> <item>107</item> <item>107</item> <item>107</item> </second> </item> </dp_fu_nodes_module> <dp_fu_nodes_io> <count>2</count> <item_version>0</item_version> <item> <first>StgValue_229_write_fu_108</first> <second> <count>1</count> <item_version>0</item_version> <item>135</item> </second> </item> <item> <first>tmp_value_V_read_fu_102</first> <second> <count>1</count> <item_version>0</item_version> <item>17</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="56" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </dp_mem_port_nodes> <dp_reg_nodes> <count>49</count> <item_version>0</item_version> <item> <first>115</first> <second> <count>1</count> <item_version>0</item_version> <item>9</item> </second> </item> <item> <first>808</first> <second> <count>1</count> <item_version>0</item_version> <item>10</item> </second> </item> <item> <first>812</first> <second> <count>1</count> <item_version>0</item_version> <item>11</item> </second> </item> <item> <first>817</first> <second> <count>1</count> <item_version>0</item_version> <item>18</item> </second> </item> <item> <first>822</first> <second> <count>1</count> <item_version>0</item_version> <item>21</item> </second> </item> <item> <first>827</first> <second> <count>1</count> <item_version>0</item_version> <item>24</item> </second> </item> <item> <first>832</first> <second> <count>1</count> <item_version>0</item_version> <item>27</item> </second> </item> <item> <first>837</first> <second> <count>1</count> <item_version>0</item_version> <item>19</item> </second> </item> <item> <first>842</first> <second> <count>1</count> <item_version>0</item_version> <item>22</item> </second> </item> <item> <first>847</first> <second> <count>1</count> <item_version>0</item_version> <item>25</item> </second> </item> <item> <first>852</first> <second> <count>1</count> <item_version>0</item_version> <item>28</item> </second> </item> <item> <first>857</first> <second> <count>1</count> <item_version>0</item_version> <item>20</item> </second> </item> <item> <first>862</first> <second> <count>1</count> <item_version>0</item_version> <item>23</item> </second> </item> <item> <first>867</first> <second> <count>1</count> <item_version>0</item_version> <item>26</item> </second> </item> <item> <first>872</first> <second> <count>1</count> <item_version>0</item_version> <item>29</item> </second> </item> <item> <first>877</first> <second> <count>1</count> <item_version>0</item_version> <item>30</item> </second> </item> <item> <first>882</first> <second> <count>1</count> <item_version>0</item_version> <item>55</item> </second> </item> <item> <first>887</first> <second> <count>1</count> <item_version>0</item_version> <item>82</item> </second> </item> <item> <first>892</first> <second> <count>1</count> <item_version>0</item_version> <item>107</item> </second> </item> <item> <first>897</first> <second> <count>1</count> <item_version>0</item_version> <item>32</item> </second> </item> <item> <first>902</first> <second> <count>1</count> <item_version>0</item_version> <item>34</item> </second> </item> <item> <first>907</first> <second> <count>1</count> <item_version>0</item_version> <item>39</item> </second> </item> <item> <first>912</first> <second> <count>1</count> <item_version>0</item_version> <item>42</item> </second> </item> <item> <first>917</first> <second> <count>1</count> <item_version>0</item_version> <item>57</item> </second> </item> <item> <first>922</first> <second> <count>1</count> <item_version>0</item_version> <item>59</item> </second> </item> <item> <first>927</first> <second> <count>1</count> <item_version>0</item_version> <item>64</item> </second> </item> <item> <first>932</first> <second> <count>1</count> <item_version>0</item_version> <item>67</item> </second> </item> <item> <first>937</first> <second> <count>1</count> <item_version>0</item_version> <item>83</item> </second> </item> <item> <first>942</first> <second> <count>1</count> <item_version>0</item_version> <item>86</item> </second> </item> <item> <first>947</first> <second> <count>1</count> <item_version>0</item_version> <item>91</item> </second> </item> <item> <first>952</first> <second> <count>1</count> <item_version>0</item_version> <item>94</item> </second> </item> <item> <first>957</first> <second> <count>1</count> <item_version>0</item_version> <item>108</item> </second> </item> <item> <first>962</first> <second> <count>1</count> <item_version>0</item_version> <item>111</item> </second> </item> <item> <first>967</first> <second> <count>1</count> <item_version>0</item_version> <item>116</item> </second> </item> <item> <first>972</first> <second> <count>1</count> <item_version>0</item_version> <item>119</item> </second> </item> <item> <first>977</first> <second> <count>1</count> <item_version>0</item_version> <item>51</item> </second> </item> <item> <first>982</first> <second> <count>1</count> <item_version>0</item_version> <item>77</item> </second> </item> <item> <first>987</first> <second> <count>1</count> <item_version>0</item_version> <item>79</item> </second> </item> <item> <first>992</first> <second> <count>1</count> <item_version>0</item_version> <item>103</item> </second> </item> <item> <first>998</first> <second> <count>1</count> <item_version>0</item_version> <item>128</item> </second> </item> <item> <first>1003</first> <second> <count>1</count> <item_version>0</item_version> <item>52</item> </second> </item> <item> <first>1008</first> <second> <count>1</count> <item_version>0</item_version> <item>53</item> </second> </item> <item> <first>1013</first> <second> <count>1</count> <item_version>0</item_version> <item>80</item> </second> </item> <item> <first>1018</first> <second> <count>1</count> <item_version>0</item_version> <item>104</item> </second> </item> <item> <first>1023</first> <second> <count>1</count> <item_version>0</item_version> <item>129</item> </second> </item> <item> <first>1028</first> <second> <count>1</count> <item_version>0</item_version> <item>130</item> </second> </item> <item> <first>1033</first> <second> <count>1</count> <item_version>0</item_version> <item>54</item> </second> </item> <item> <first>1038</first> <second> <count>1</count> <item_version>0</item_version> <item>133</item> </second> </item> <item> <first>1043</first> <second> <count>1</count> <item_version>0</item_version> <item>134</item> </second> </item> </dp_reg_nodes> <dp_regname_nodes> <count>49</count> <item_version>0</item_version> <item> <first>exitcond_flatten_reg_808</first> <second> <count>1</count> <item_version>0</item_version> <item>10</item> </second> </item> <item> <first>indvar_flatten_next_reg_812</first> <second> <count>1</count> <item_version>0</item_version> <item>11</item> </second> </item> <item> <first>indvar_flatten_reg_115</first> <second> <count>1</count> <item_version>0</item_version> <item>9</item> </second> </item> <item> <first>isNeg_1_reg_927</first> <second> <count>1</count> <item_version>0</item_version> <item>64</item> </second> </item> <item> <first>isNeg_2_reg_947</first> <second> <count>1</count> <item_version>0</item_version> <item>91</item> </second> </item> <item> <first>isNeg_3_reg_967</first> <second> <count>1</count> <item_version>0</item_version> <item>116</item> </second> </item> <item> <first>isNeg_reg_907</first> <second> <count>1</count> <item_version>0</item_version> <item>39</item> </second> </item> <item> <first>loc_V_2_reg_902</first> <second> <count>1</count> <item_version>0</item_version> <item>34</item> </second> </item> <item> <first>loc_V_4_reg_922</first> <second> <count>1</count> <item_version>0</item_version> <item>59</item> </second> </item> <item> <first>loc_V_6_reg_942</first> <second> <count>1</count> <item_version>0</item_version> <item>86</item> </second> </item> <item> <first>loc_V_8_reg_962</first> <second> <count>1</count> <item_version>0</item_version> <item>111</item> </second> </item> <item> <first>p_381_reg_817</first> <second> <count>1</count> <item_version>0</item_version> <item>18</item> </second> </item> <item> <first>p_382_reg_837</first> <second> <count>1</count> <item_version>0</item_version> <item>19</item> </second> </item> <item> <first>p_383_reg_857</first> <second> <count>1</count> <item_version>0</item_version> <item>20</item> </second> </item> <item> <first>p_384_reg_877</first> <second> <count>1</count> <item_version>0</item_version> <item>30</item> </second> </item> <item> <first>p_391_reg_842</first> <second> <count>1</count> <item_version>0</item_version> <item>22</item> </second> </item> <item> <first>p_392_reg_862</first> <second> <count>1</count> <item_version>0</item_version> <item>23</item> </second> </item> <item> <first>p_393_reg_882</first> <second> <count>1</count> <item_version>0</item_version> <item>55</item> </second> </item> <item> <first>p_400_reg_847</first> <second> <count>1</count> <item_version>0</item_version> <item>25</item> </second> </item> <item> <first>p_401_reg_867</first> <second> <count>1</count> <item_version>0</item_version> <item>26</item> </second> </item> <item> <first>p_402_reg_887</first> <second> <count>1</count> <item_version>0</item_version> <item>82</item> </second> </item> <item> <first>p_409_reg_852</first> <second> <count>1</count> <item_version>0</item_version> <item>28</item> </second> </item> <item> <first>p_410_reg_872</first> <second> <count>1</count> <item_version>0</item_version> <item>29</item> </second> </item> <item> <first>p_411_reg_892</first> <second> <count>1</count> <item_version>0</item_version> <item>107</item> </second> </item> <item> <first>p_415_reg_1043</first> <second> <count>1</count> <item_version>0</item_version> <item>134</item> </second> </item> <item> <first>p_Result_4_reg_917</first> <second> <count>1</count> <item_version>0</item_version> <item>57</item> </second> </item> <item> <first>p_Result_s_reg_897</first> <second> <count>1</count> <item_version>0</item_version> <item>32</item> </second> </item> <item> <first>p_Val2_17_reg_937</first> <second> <count>1</count> <item_version>0</item_version> <item>83</item> </second> </item> <item> <first>p_Val2_19_reg_992</first> <second> <count>1</count> <item_version>0</item_version> <item>103</item> </second> </item> <item> <first>p_Val2_21_reg_957</first> <second> <count>1</count> <item_version>0</item_version> <item>108</item> </second> </item> <item> <first>p_Val2_23_reg_998</first> <second> <count>1</count> <item_version>0</item_version> <item>128</item> </second> </item> <item> <first>p_Val2_26_reg_1033</first> <second> <count>1</count> <item_version>0</item_version> <item>54</item> </second> </item> <item> <first>p_Val2_7_reg_977</first> <second> <count>1</count> <item_version>0</item_version> <item>51</item> </second> </item> <item> <first>p_mul_stencil_value_0_1_reg_827</first> <second> <count>1</count> <item_version>0</item_version> <item>24</item> </second> </item> <item> <first>p_mul_stencil_value_0_2_reg_832</first> <second> <count>1</count> <item_version>0</item_version> <item>27</item> </second> </item> <item> <first>p_mul_stencil_value_0_reg_822</first> <second> <count>1</count> <item_version>0</item_version> <item>21</item> </second> </item> <item> <first>sh_assign_2_reg_912</first> <second> <count>1</count> <item_version>0</item_version> <item>42</item> </second> </item> <item> <first>sh_assign_4_reg_932</first> <second> <count>1</count> <item_version>0</item_version> <item>67</item> </second> </item> <item> <first>sh_assign_6_reg_952</first> <second> <count>1</count> <item_version>0</item_version> <item>94</item> </second> </item> <item> <first>sh_assign_8_reg_972</first> <second> <count>1</count> <item_version>0</item_version> <item>119</item> </second> </item> <item> <first>tmp5_reg_1038</first> <second> <count>1</count> <item_version>0</item_version> <item>133</item> </second> </item> <item> <first>tmp_13_i_i3_reg_1023</first> <second> <count>1</count> <item_version>0</item_version> <item>129</item> </second> </item> <item> <first>tmp_13_i_i_reg_1003</first> <second> <count>1</count> <item_version>0</item_version> <item>52</item> </second> </item> <item> <first>tmp_16_i_i2_reg_1018</first> <second> <count>1</count> <item_version>0</item_version> <item>104</item> </second> </item> <item> <first>tmp_16_i_i3_reg_1028</first> <second> <count>1</count> <item_version>0</item_version> <item>130</item> </second> </item> <item> <first>tmp_16_i_i_reg_1008</first> <second> <count>1</count> <item_version>0</item_version> <item>53</item> </second> </item> <item> <first>tmp_27_reg_982</first> <second> <count>1</count> <item_version>0</item_version> <item>77</item> </second> </item> <item> <first>tmp_28_reg_987</first> <second> <count>1</count> <item_version>0</item_version> <item>79</item> </second> </item> <item> <first>tmp_3_reg_1013</first> <second> <count>1</count> <item_version>0</item_version> <item>80</item> </second> </item> </dp_regname_nodes> <dp_reg_phi> <count>1</count> <item_version>0</item_version> <item> <first>115</first> <second> <count>1</count> <item_version>0</item_version> <item>9</item> </second> </item> </dp_reg_phi> <dp_regname_phi> <count>1</count> <item_version>0</item_version> <item> <first>indvar_flatten_reg_115</first> <second> <count>1</count> <item_version>0</item_version> <item>9</item> </second> </item> </dp_regname_phi> <dp_port_io_nodes class_id="57" tracking_level="0" version="0"> <count>2</count> <item_version>0</item_version> <item class_id="58" tracking_level="0" version="0"> <first>p_mul_stencil_stream_V_value_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>17</item> </second> </item> </second> </item> <item> <first>p_p2_mul1_stencil_stream_V_value_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>135</item> </second> </item> </second> </item> </dp_port_io_nodes> <port2core class_id="59" tracking_level="0" version="0"> <count>2</count> <item_version>0</item_version> <item class_id="60" tracking_level="0" version="0"> <first>1</first> <second>FIFO_SRL</second> </item> <item> <first>2</first> <second>FIFO_SRL</second> </item> </port2core> <node2core> <count>0</count> <item_version>0</item_version> </node2core> </syndb> </boost_serialization>
34.088455
134
0.443524
1259cb894403b0e199f87971226df3c2091ea3aa
3,743
ada
Ada
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/ce/ce2111f.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/ce2111f.ada
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
null
null
null
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/ce/ce2111f.ada
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
2
2020-07-27T00:22:36.000Z
2021-04-01T09:41:02.000Z
-- CE2111F.ADA -- Grant of Unlimited Rights -- -- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687, -- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained -- unlimited rights in the software and documentation contained herein. -- Unlimited rights are defined in DFAR 252.227-7013(a)(19). By making -- this public release, the Government intends to confer upon all -- recipients unlimited rights equal to those held by the Government. -- These rights include rights to use, duplicate, release or disclose the -- released technical data and computer software in whole or in part, in -- any manner and for any purpose whatsoever, and to have or permit others -- to do so. -- -- DISCLAIMER -- -- ALL MATERIALS OR INFORMATION HEREIN RELEASED, MADE AVAILABLE OR -- DISCLOSED ARE AS IS. THE GOVERNMENT MAKES NO EXPRESS OR IMPLIED -- WARRANTY AS TO ANY MATTER WHATSOEVER, INCLUDING THE CONDITIONS OF THE -- SOFTWARE, DOCUMENTATION OR OTHER INFORMATION RELEASED, MADE AVAILABLE -- OR DISCLOSED, OR THE OWNERSHIP, MERCHANTABILITY, OR FITNESS FOR A -- PARTICULAR PURPOSE OF SAID MATERIAL. --* -- OBJECTIVE: -- CHECK THAT A SUCCESSFUL RESET POSITIONS THE FILE CORRECTLY -- TO THE START OF THE FILE FOR SEQUENTIAL IO. -- APPLICABILITY CRITERIA: -- THIS TEST IS APPLICABLE ONLY TO IMPLEMENTATIONS WHICH SUPPORT -- RESET FOR SEQUENTIAL FILES. -- HISTORY: -- JLH 08/03/87 CREATED ORIGINAL TEST. WITH REPORT; USE REPORT; WITH SEQUENTIAL_IO; PROCEDURE CE2111F IS PACKAGE SEQ_IO IS NEW SEQUENTIAL_IO (INTEGER); USE SEQ_IO; TEST_FILE_ONE : SEQ_IO.FILE_TYPE; DATUM : INTEGER; INCOMPLETE : EXCEPTION; BEGIN TEST ("CE2111F", "CHECK THAT SUCCESSFUL RESET POSITIONS THE " & "FILE CORRECTLY"); -- CREATE AND INITIALIZE TEST FILE BEGIN CREATE (TEST_FILE_ONE, OUT_FILE, LEGAL_FILE_NAME); EXCEPTION WHEN USE_ERROR => NOT_APPLICABLE ("USE_ERROR RAISED ON CREATE"); RAISE INCOMPLETE; WHEN NAME_ERROR => NOT_APPLICABLE ("NAME_ERROR RAISED ON CREATE"); RAISE INCOMPLETE; END; WRITE (TEST_FILE_ONE, 5); WRITE (TEST_FILE_ONE, 6); -- CHECK THAT RESET POSITIONS INDEX CORRECTLY FOR OUT_FILE BEGIN RESET (TEST_FILE_ONE); EXCEPTION WHEN USE_ERROR => NOT_APPLICABLE ("RESET NOT SUPPORTED FOR OUT_FILE"); RAISE INCOMPLETE; END; -- WRITE MORE DATA WRITE (TEST_FILE_ONE, 2); CLOSE (TEST_FILE_ONE); -- NOW CHECK TO SEE THAT RESET WORKED FOR OUT_FILE BEGIN OPEN (TEST_FILE_ONE, IN_FILE, LEGAL_FILE_NAME); EXCEPTION WHEN USE_ERROR => NOT_APPLICABLE ("SEQ_IO NOT SUPPORTED FOR IN_FILE OPEN"); RAISE INCOMPLETE; END; READ (TEST_FILE_ONE, DATUM); IF DATUM /= 2 THEN FAILED ("RESET INCORRECTLY POSITIONED FILE FOR OUT_FILE"); END IF; -- RESET IN_FILE BEGIN RESET (TEST_FILE_ONE); EXCEPTION WHEN USE_ERROR => NOT_APPLICABLE ("RESET NOT SUPPORTED FOR IN_FILE"); RAISE INCOMPLETE; END; -- VALIDATE IN_FILE RESET READ (TEST_FILE_ONE, DATUM); IF DATUM /= 2 THEN FAILED ("RESET INCORRECTLY POSITIONED FILE FOR IN_FILE"); END IF; -- DELETE TEST FILE BEGIN DELETE (TEST_FILE_ONE); EXCEPTION WHEN USE_ERROR => NULL; END; RESULT; EXCEPTION WHEN INCOMPLETE => RESULT; END CE2111F;
28.142857
79
0.627839
fbafbd3fde49d4a521ebc611a6caf4a0609f0289
5,767
ads
Ada
addons_package.ads
ddugovic/words
13c2fc67d5b75259318cb4c9d23d3abcb7e5efbe
[ "MIT" ]
4
2016-10-30T13:30:55.000Z
2021-09-25T21:29:17.000Z
addons_package.ads
ddugovic/words
13c2fc67d5b75259318cb4c9d23d3abcb7e5efbe
[ "MIT" ]
1
2020-09-29T02:56:42.000Z
2020-10-06T18:50:42.000Z
addons_package.ads
ddugovic/words
13c2fc67d5b75259318cb4c9d23d3abcb7e5efbe
[ "MIT" ]
7
2016-07-07T20:40:08.000Z
2021-10-18T21:11:06.000Z
with TEXT_IO; with INFLECTIONS_PACKAGE; use INFLECTIONS_PACKAGE; with DICTIONARY_PACKAGE; use DICTIONARY_PACKAGE; package ADDONS_PACKAGE is use TEXT_IO; subtype FIX_TYPE is STEM_TYPE; NULL_FIX_TYPE : constant FIX_TYPE := NULL_STEM_TYPE; MAX_FIX_SIZE : constant := MAX_STEM_SIZE; subtype TARGET_POFS_TYPE is PART_OF_SPEECH_TYPE range X..V; type TARGET_ENTRY(POFS: TARGET_POFS_TYPE := X) is record case POFS is when N => N : NOUN_ENTRY; --NOUN_KIND : NOUN_KIND_TYPE; when PRON => PRON : PRONOUN_ENTRY; --PRONOUN_KIND : PRONOUN_KIND_TYPE; when PACK => PACK : PROPACK_ENTRY; --PROPACK_KIND : PRONOUN_KIND_TYPE; when ADJ => ADJ : ADJECTIVE_ENTRY; when NUM => NUM : NUMERAL_ENTRY; --NUMERAL_VALUE : NUMERAL_VALUE_TYPE; when ADV => ADV : ADVERB_ENTRY; when V => V : VERB_ENTRY; --VERB_KIND : VERB_KIND_TYPE; when others => null; end case; end record; NULL_TARGET_ENTRY : TARGET_ENTRY; package TARGET_ENTRY_IO is DEFAULT_WIDTH : NATURAL; procedure GET(F : in FILE_TYPE; P : out TARGET_ENTRY); procedure GET(P : out TARGET_ENTRY); procedure PUT(F : in FILE_TYPE; P : in TARGET_ENTRY); procedure PUT(P : in TARGET_ENTRY); procedure GET(S : in STRING; P : out TARGET_ENTRY; LAST : out INTEGER); procedure PUT(S : out STRING; P : in TARGET_ENTRY); end TARGET_ENTRY_IO; type TACKON_ENTRY is record BASE : TARGET_ENTRY; end record; NULL_TACKON_ENTRY : TACKON_ENTRY; package TACKON_ENTRY_IO is DEFAULT_WIDTH : NATURAL; procedure GET(F : in FILE_TYPE; I : out TACKON_ENTRY); procedure GET(I : out TACKON_ENTRY); procedure PUT(F : in FILE_TYPE; I : in TACKON_ENTRY); procedure PUT(I : in TACKON_ENTRY); procedure GET(S : in STRING; I : out TACKON_ENTRY; LAST : out INTEGER); procedure PUT(S : out STRING; I : in TACKON_ENTRY); end TACKON_ENTRY_IO; type PREFIX_ENTRY is record ROOT : PART_OF_SPEECH_TYPE := X; TARGET : PART_OF_SPEECH_TYPE := X; end record; NULL_PREFIX_ENTRY : PREFIX_ENTRY; package PREFIX_ENTRY_IO is DEFAULT_WIDTH : NATURAL; procedure GET(F : in FILE_TYPE; P : out PREFIX_ENTRY); procedure GET(P : out PREFIX_ENTRY); procedure PUT(F : in FILE_TYPE; P : in PREFIX_ENTRY); procedure PUT(P : in PREFIX_ENTRY); procedure GET(S : in STRING; P : out PREFIX_ENTRY; LAST : out INTEGER); procedure PUT(S : out STRING; P : in PREFIX_ENTRY); end PREFIX_ENTRY_IO; type SUFFIX_ENTRY is record ROOT : PART_OF_SPEECH_TYPE := X; ROOT_KEY : STEM_KEY_TYPE := 0; TARGET : TARGET_ENTRY := NULL_TARGET_ENTRY; TARGET_KEY : STEM_KEY_TYPE := 0; end record; NULL_SUFFIX_ENTRY : SUFFIX_ENTRY; package SUFFIX_ENTRY_IO is DEFAULT_WIDTH : NATURAL; procedure GET(F : in FILE_TYPE; P : out SUFFIX_ENTRY); procedure GET(P : out SUFFIX_ENTRY); procedure PUT(F : in FILE_TYPE; P : in SUFFIX_ENTRY); procedure PUT(P : in SUFFIX_ENTRY); procedure GET(S : in STRING; P : out SUFFIX_ENTRY; LAST : out INTEGER); procedure PUT(S : out STRING; P : in SUFFIX_ENTRY); end SUFFIX_ENTRY_IO; type TACKON_ITEM is record POFS: PART_OF_SPEECH_TYPE := TACKON; TACK : STEM_TYPE := NULL_STEM_TYPE; ENTR : TACKON_ENTRY := NULL_TACKON_ENTRY; MNPC : INTEGER := 0; end record; NULL_TACKON_ITEM : TACKON_ITEM; type PREFIX_ITEM is record POFS: PART_OF_SPEECH_TYPE := PREFIX; FIX : FIX_TYPE := NULL_FIX_TYPE; CONNECT : CHARACTER := ' '; ENTR : PREFIX_ENTRY := NULL_PREFIX_ENTRY; MNPC : INTEGER := 0; end record; NULL_PREFIX_ITEM : PREFIX_ITEM; type SUFFIX_ITEM is record POFS: PART_OF_SPEECH_TYPE := SUFFIX; FIX : FIX_TYPE := NULL_FIX_TYPE; CONNECT : CHARACTER := ' '; ENTR : SUFFIX_ENTRY := NULL_SUFFIX_ENTRY; MNPC : INTEGER := 0; end record; NULL_SUFFIX_ITEM : SUFFIX_ITEM; type PREFIX_ARRAY is array (INTEGER range <>) of PREFIX_ITEM; type TICKON_ARRAY is array (INTEGER range <>) of PREFIX_ITEM; type SUFFIX_ARRAY is array (INTEGER range <>) of SUFFIX_ITEM; type TACKON_ARRAY is array (INTEGER range <>) of TACKON_ITEM; type MEANS_ARRAY is array (INTEGER range <>) of MEANING_TYPE; -- To simulate a DICT_IO file, as used previously TACKONS : TACKON_ARRAY(1..20); PACKONS : TACKON_ARRAY(1..25); TICKONS : PREFIX_ARRAY(1..10); PREFIXES : PREFIX_ARRAY(1..130); SUFFIXES : SUFFIX_ARRAY(1..185); MEANS : MEANS_ARRAY(1..370); NUMBER_OF_TICKONS : INTEGER := 0; NUMBER_OF_TACKONS : INTEGER := 0; NUMBER_OF_PACKONS : INTEGER := 0; NUMBER_OF_PREFIXES : INTEGER := 0; NUMBER_OF_SUFFIXES : INTEGER := 0; procedure LOAD_ADDONS (FILE_NAME : in STRING); function SUBTRACT_TACKON(W : STRING; X : TACKON_ITEM) return STRING; function SUBTRACT_PREFIX(W : STRING; X : PREFIX_ITEM) return STEM_TYPE; function SUBTRACT_TICKON(W : STRING; X : PREFIX_ITEM) return STEM_TYPE renames SUBTRACT_PREFIX; function SUBTRACT_SUFFIX(W : STRING; X : SUFFIX_ITEM) return STEM_TYPE; function ADD_PREFIX(STEM : STEM_TYPE; PREFIX : PREFIX_ITEM) return STEM_TYPE; function ADD_SUFFIX(STEM : STEM_TYPE; SUFFIX : SUFFIX_ITEM) return STEM_TYPE; end ADDONS_PACKAGE;
32.038889
77
0.633085
df90530627265c760e87ba7c1221060344880a6f
937
ads
Ada
src/nso-json-parameters_to_json.ads
SSOCsoft/Log_Reporter
9351ce0b5bda6909d7b9fac3436a702393188fc9
[ "MIT" ]
null
null
null
src/nso-json-parameters_to_json.ads
SSOCsoft/Log_Reporter
9351ce0b5bda6909d7b9fac3436a702393188fc9
[ "MIT" ]
null
null
null
src/nso-json-parameters_to_json.ads
SSOCsoft/Log_Reporter
9351ce0b5bda6909d7b9fac3436a702393188fc9
[ "MIT" ]
null
null
null
Pragma Ada_2012; With Gnoga.Types; -------------------------- -- PARAMETERS_TO_JSON -- -------------------------------------------------------------------------------- -- This function takes the parameters collected from an HTML Form and returns -- -- a result of the JSON object. The parameters on the form should be indexed -- -- via square brackets, in the form of "BASE[INDEX_A][INDEX_B]" and values -- -- are text-encoded as either plain-strings or as an array of strings using -- -- the ASCII Unit_Seperator character (DEC 31, HEX 1F). -- -- -- -- NOTE: This function resets the Input to an empty map. -- -------------------------------------------------------------------------------- Function NSO.JSON.Parameters_to_JSON( Input : in out Gnoga.Types.Data_Map_Type ) return NSO.JSON.Instance'Class;
49.315789
80
0.487727
12bbe34a989f75f4523270cfe18009ed2df4ea7b
1,095
ads
Ada
courses/fundamentals_of_ada/labs/solar_system/adv_280_low_level_programming/question_1/src/stm32_svd-rng.ads
AdaCore/training_material
6651eb2c53f8c39649b8e0b3c757bc8ff963025a
[ "CC-BY-4.0" ]
15
2020-10-07T08:56:45.000Z
2022-02-08T23:13:22.000Z
courses/fundamentals_of_ada/labs/solar_system/adv_280_low_level_programming/question_1/src/stm32_svd-rng.ads
AdaCore/training_material
6651eb2c53f8c39649b8e0b3c757bc8ff963025a
[ "CC-BY-4.0" ]
20
2020-11-05T14:35:20.000Z
2022-01-13T15:59:33.000Z
courses/fundamentals_of_ada/labs/solar_system/adv_280_low_level_programming/question_1/src/stm32_svd-rng.ads
AdaCore/training_material
6651eb2c53f8c39649b8e0b3c757bc8ff963025a
[ "CC-BY-4.0" ]
6
2020-10-08T15:57:06.000Z
2021-08-31T12:03:08.000Z
pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package STM32_SVD.RNG is pragma Preelaborate; --------------- -- Registers -- --------------- -- control register type CR_Register is null record; -- TODO: Implement the CR_Register record type according to the -- STM32F429Discovery datasheet. -- status register type SR_Register is null record; -- TODO: Implement the SR_Register record type according to the -- STM32F429Discovery datasheet. ----------------- -- Peripherals -- ----------------- -- Random number generator type RNG_Peripheral is null record; -- TODO: Implement the RNG_Peripheral record type according to the -- STM32F429Discovery datasheet. -- Use the previously defined CR_Register and SR_Register record types. -- Random number generator RNG_Periph : aliased RNG_Peripheral with Import; -- TODO: Map RNG_Periph to the physical address specified in the -- STM32F429Discovery datasheet. end STM32_SVD.RNG;
23.804348
75
0.669406
128a387598c7d36eb27b976a16001bf2d333a958
4,661
adb
Ada
src/tcl-strings.adb
thindil/tashy2
43fcbadb33c0062b2c8d6138a8238441dec5fd80
[ "Apache-2.0" ]
2
2020-12-09T07:27:07.000Z
2021-10-19T13:31:54.000Z
src/tcl-strings.adb
thindil/tashy2
43fcbadb33c0062b2c8d6138a8238441dec5fd80
[ "Apache-2.0" ]
null
null
null
src/tcl-strings.adb
thindil/tashy2
43fcbadb33c0062b2c8d6138a8238441dec5fd80
[ "Apache-2.0" ]
null
null
null
-- Copyright (c) 2020-2021 Bartek thindil Jasicki <[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.Maps; package body Tcl.Strings is function To_Tcl_String (Source: String; Evaluate: Boolean := False) return Tcl_String is New_String: Tcl_String := Null_Tcl_String; Element_Index: Natural := 1; procedure Truncate_New_String is begin if Length(Source => New_String) = Natural'Last then Delete (Source => New_String, From => Natural'Last, Through => Natural'Last); end if; if Length(Source => New_String) = Natural'Last - 1 then Delete (Source => New_String, From => Natural'Last - 1, Through => Natural'Last - 1); end if; end Truncate_New_String; begin if Source'Length <= Natural'Last - Length(Source => New_String) then Append(Source => New_String, New_Item => Source); else Append (Source => New_String, New_Item => Source (Source'First .. Natural'Last - Length(Source => New_String))); end if; if Index(Source => New_String, Pattern => " ") = 0 or Source'Length < 2 then return New_String; end if; if Evaluate then Evaluated_String_Loop : loop pragma Loop_Invariant (Element_Index in 1 .. Length(Source => New_String)); Element_Index := Index (Source => New_String, Pattern => """", From => Element_Index); exit Evaluated_String_Loop when Element_Index = 0 or Element_Index > Length(Source => New_String) or Length(Source => New_String) = Natural'Last; Insert (Source => New_String, Before => Element_Index, New_Item => "\"); exit Evaluated_String_Loop when Element_Index > Natural'Last - 2; Element_Index := Element_Index + 2; exit Evaluated_String_Loop when Element_Index > Length(Source => New_String); end loop Evaluated_String_Loop; Truncate_New_String; Insert(Source => New_String, Before => 1, New_Item => """"); Append(Source => New_String, New_Item => """"); else Truncate_New_String; Insert(Source => New_String, Before => 1, New_Item => "{"); Append(Source => New_String, New_Item => "}"); end if; return New_String; end To_Tcl_String; function To_Ada_String(Source: Tcl_String) return String is use Ada.Strings.Maps; New_String: Tcl_String := Source; Element_Index: Natural := 1; begin if Length(Source => Source) = 0 then return ""; end if; if Element(Source => New_String, Index => 1) = '{' then Trim (Source => New_String, Left => To_Set(Sequence => "{"), Right => To_Set(Sequence => "}")); elsif Element(Source => New_String, Index => 1) = '"' then Trim (Source => New_String, Left => To_Set(Sequence => """"), Right => To_Set(Sequence => """")); if Length(Source => New_String) > 1 then Remove_Quotes_Loop : loop pragma Loop_Invariant (Element_Index in 1 .. Length(Source => New_String)); Element_Index := Index (Source => New_String, Pattern => "\""", From => Element_Index); exit Remove_Quotes_Loop when Element_Index not in 1 .. Length(Source => New_String); Delete (Source => New_String, From => Element_Index, Through => Element_Index); exit Remove_Quotes_Loop when Element_Index > Length(Source => New_String); end loop Remove_Quotes_Loop; end if; end if; return Slice (Source => New_String, Low => 1, High => Length(Source => New_String)); end To_Ada_String; end Tcl.Strings;
38.520661
79
0.572838
50da49279eb919bec98420b6050dbbc758428e3f
4,356
adb
Ada
support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/a-strbou.adb
orb-zhuchen/Orb
6da2404b949ac28bde786e08bf4debe4a27cd3a0
[ "CNRI-Python-GPL-Compatible", "MIT" ]
null
null
null
support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/a-strbou.adb
orb-zhuchen/Orb
6da2404b949ac28bde786e08bf4debe4a27cd3a0
[ "CNRI-Python-GPL-Compatible", "MIT" ]
null
null
null
support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/a-strbou.adb
orb-zhuchen/Orb
6da2404b949ac28bde786e08bf4debe4a27cd3a0
[ "CNRI-Python-GPL-Compatible", "MIT" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- A D A . S T R I N G S . B O U N D E D -- -- -- -- B o d y -- -- -- -- Copyright (C) 1992-2019, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ package body Ada.Strings.Bounded is package body Generic_Bounded_Length is -- The subprograms in this body are those for which there is no -- Bounded_String input, and hence no implicit information on the -- maximum size. This means that the maximum size has to be passed -- explicitly to the routine in Superbounded. --------- -- "*" -- --------- function "*" (Left : Natural; Right : Character) return Bounded_String is begin return Times (Left, Right, Max_Length); end "*"; function "*" (Left : Natural; Right : String) return Bounded_String is begin return Times (Left, Right, Max_Length); end "*"; ----------------- -- From_String -- ----------------- function From_String (Source : String) return Bounded_String is begin return To_Super_String (Source, Max_Length, Error); end From_String; --------------- -- Replicate -- --------------- function Replicate (Count : Natural; Item : Character; Drop : Strings.Truncation := Strings.Error) return Bounded_String is begin return Super_Replicate (Count, Item, Drop, Max_Length); end Replicate; function Replicate (Count : Natural; Item : String; Drop : Strings.Truncation := Strings.Error) return Bounded_String is begin return Super_Replicate (Count, Item, Drop, Max_Length); end Replicate; ----------------------- -- To_Bounded_String -- ----------------------- function To_Bounded_String (Source : String; Drop : Strings.Truncation := Strings.Error) return Bounded_String is begin return To_Super_String (Source, Max_Length, Drop); end To_Bounded_String; end Generic_Bounded_Length; end Ada.Strings.Bounded;
40.71028
78
0.452709
3917530eab74a829e4c97afa269d31733d6f109e
6,351
ads
Ada
source/amf/mof/cmof/amf-cmof-value_specifications.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
24
2016-11-29T06:59:41.000Z
2021-08-30T11:55:16.000Z
source/amf/mof/cmof/amf-cmof-value_specifications.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
2
2019-01-16T05:15:20.000Z
2019-02-03T10:03:32.000Z
source/amf/mof/cmof/amf-cmof-value_specifications.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
4
2017-07-18T07:11:05.000Z
2020-06-21T03:02:25.000Z
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Ada Modeling Framework -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2011, Vadim Godunko <[email protected]> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ -- This file is generated, don't edit it. ------------------------------------------------------------------------------ -- A value specification is the specification of a (possibly empty) set of -- instances, including both objects and data values. ------------------------------------------------------------------------------ with AMF.CMOF.Packageable_Elements; with AMF.CMOF.Typed_Elements; with League.Strings; package AMF.CMOF.Value_Specifications is pragma Preelaborate; type CMOF_Value_Specification is limited interface and AMF.CMOF.Typed_Elements.CMOF_Typed_Element and AMF.CMOF.Packageable_Elements.CMOF_Packageable_Element; type CMOF_Value_Specification_Access is access all CMOF_Value_Specification'Class; for CMOF_Value_Specification_Access'Storage_Size use 0; not overriding function Is_Computable (Self : not null access constant CMOF_Value_Specification) return Boolean is abstract; -- Operation ValueSpecification::isComputable. -- -- The query isComputable() determines whether a value specification can -- be computed in a model. This operation cannot be fully defined in OCL. -- A conforming implementation is expected to deliver true for this -- operation for all value specifications that it can compute, and to -- compute all of those for which the operation is true. A conforming -- implementation is expected to be able to compute the value of all -- literals. not overriding function Integer_Value (Self : not null access constant CMOF_Value_Specification) return Integer is abstract; -- Operation ValueSpecification::integerValue. -- -- The query integerValue() gives a single Integer value when one can be -- computed. not overriding function Boolean_Value (Self : not null access constant CMOF_Value_Specification) return Boolean is abstract; -- Operation ValueSpecification::booleanValue. -- -- The query booleanValue() gives a single Boolean value when one can be -- computed. not overriding function String_Value (Self : not null access constant CMOF_Value_Specification) return League.Strings.Universal_String is abstract; -- Operation ValueSpecification::stringValue. -- -- The query stringValue() gives a single String value when one can be -- computed. not overriding function Unlimited_Value (Self : not null access constant CMOF_Value_Specification) return AMF.Unlimited_Natural is abstract; -- Operation ValueSpecification::unlimitedValue. -- -- The query unlimitedValue() gives a single UnlimitedNatural value when -- one can be computed. not overriding function Is_Null (Self : not null access constant CMOF_Value_Specification) return Boolean is abstract; -- Operation ValueSpecification::isNull. -- -- The query isNull() returns true when it can be computed that the value -- is null. end AMF.CMOF.Value_Specifications;
53.369748
78
0.537081
d049f160a46490a995fbc789838299e56fdf076d
12,769
adb
Ada
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnarl/a-rttiev.adb
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnarl/a-rttiev.adb
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnarl/a-rttiev.adb
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- A D A . R E A L _ T I M E . T I M I N G _ E V E N T S -- -- -- -- B o d y -- -- -- -- Copyright (C) 2005-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.Task_Primitives.Operations; with System.Tasking.Utilities; with System.Soft_Links; with System.Interrupt_Management.Operations; with Ada.Containers.Doubly_Linked_Lists; pragma Elaborate_All (Ada.Containers.Doubly_Linked_Lists); --------------------------------- -- Ada.Real_Time.Timing_Events -- --------------------------------- package body Ada.Real_Time.Timing_Events is use System.Task_Primitives.Operations; package SSL renames System.Soft_Links; type Any_Timing_Event is access all Timing_Event'Class; -- We must also handle user-defined types derived from Timing_Event ------------ -- Events -- ------------ package Events is new Ada.Containers.Doubly_Linked_Lists (Any_Timing_Event); -- Provides the type for the container holding pointers to events All_Events : Events.List; -- The queue of pending events, ordered by increasing timeout value, that -- have been "set" by the user via Set_Handler. Event_Queue_Lock : aliased System.Task_Primitives.RTS_Lock; -- Used for mutually exclusive access to All_Events -- We need to Initialize_Lock before Timer is activated. The purpose of the -- Dummy package is to get around Ada's syntax rules. package Dummy is end Dummy; package body Dummy is begin Initialize_Lock (Event_Queue_Lock'Access, Level => PO_Level); end Dummy; procedure Process_Queued_Events; -- Examine the queue of pending events for any that have timed out. For -- those that have timed out, remove them from the queue and invoke their -- handler (unless the user has cancelled the event by setting the handler -- pointer to null). Mutually exclusive access is held via Event_Queue_Lock -- during part of the processing. procedure Insert_Into_Queue (This : Any_Timing_Event); -- Insert the specified event pointer into the queue of pending events -- with mutually exclusive access via Event_Queue_Lock. procedure Remove_From_Queue (This : Any_Timing_Event); -- Remove the specified event pointer from the queue of pending events with -- mutually exclusive access via Event_Queue_Lock. This procedure is used -- by the client-side routines (Set_Handler, etc.). ----------- -- Timer -- ----------- task Timer is pragma Priority (System.Priority'Last); end Timer; task body Timer is Period : constant Time_Span := Milliseconds (100); -- This is a "chiming" clock timer that fires periodically. The period -- selected is arbitrary and could be changed to suit the application -- requirements. Obviously a shorter period would give better resolution -- at the cost of more overhead. Ignore : constant Boolean := System.Tasking.Utilities.Make_Independent; pragma Unreferenced (Ignore); begin -- Since this package may be elaborated before System.Interrupt, -- we need to call Setup_Interrupt_Mask explicitly to ensure that -- this task has the proper signal mask. System.Interrupt_Management.Operations.Setup_Interrupt_Mask; loop Process_Queued_Events; delay until Clock + Period; end loop; end Timer; --------------------------- -- Process_Queued_Events -- --------------------------- procedure Process_Queued_Events is Next_Event : Any_Timing_Event; begin loop SSL.Abort_Defer.all; Write_Lock (Event_Queue_Lock'Access); if All_Events.Is_Empty then Unlock (Event_Queue_Lock'Access); SSL.Abort_Undefer.all; return; else Next_Event := All_Events.First_Element; end if; if Next_Event.Timeout > Clock then -- We found one that has not yet timed out. The queue is in -- ascending order by Timeout so there is no need to continue -- processing (and indeed we must not continue since we always -- delete the first element). Unlock (Event_Queue_Lock'Access); SSL.Abort_Undefer.all; return; end if; -- We have an event that has timed out so we will process it. It must -- be the first in the queue so no search is needed. All_Events.Delete_First; -- A fundamental issue is that the invocation of the event's handler -- might call Set_Handler on itself to re-insert itself back into the -- queue of future events. Thus we cannot hold the lock on the queue -- while invoking the event's handler. Unlock (Event_Queue_Lock'Access); SSL.Abort_Undefer.all; -- There is no race condition with the user changing the handler -- pointer while we are processing because we are executing at the -- highest possible application task priority and are not doing -- anything to block prior to invoking their handler. declare Handler : constant Timing_Event_Handler := Next_Event.Handler; begin -- The first act is to clear the event, per D.15(13/2). Besides, -- we cannot clear the handler pointer *after* invoking the -- handler because the handler may have re-inserted the event via -- Set_Event. Thus we take a copy and then clear the component. Next_Event.Handler := null; if Handler /= null then Handler.all (Timing_Event (Next_Event.all)); end if; -- Ignore exceptions propagated by Handler.all, as required by -- RM D.15(21/2). exception when others => null; end; end loop; end Process_Queued_Events; ----------------------- -- Insert_Into_Queue -- ----------------------- procedure Insert_Into_Queue (This : Any_Timing_Event) is function Sooner (Left, Right : Any_Timing_Event) return Boolean; -- Compares events in terms of timeout values package By_Timeout is new Events.Generic_Sorting (Sooner); -- Used to keep the events in ascending order by timeout value ------------ -- Sooner -- ------------ function Sooner (Left, Right : Any_Timing_Event) return Boolean is begin return Left.Timeout < Right.Timeout; end Sooner; -- Start of processing for Insert_Into_Queue begin SSL.Abort_Defer.all; Write_Lock (Event_Queue_Lock'Access); All_Events.Append (This); -- A critical property of the implementation of this package is that -- all occurrences are in ascending order by Timeout. Thus the first -- event in the queue always has the "next" value for the Timer task -- to use in its delay statement. By_Timeout.Sort (All_Events); Unlock (Event_Queue_Lock'Access); SSL.Abort_Undefer.all; end Insert_Into_Queue; ----------------------- -- Remove_From_Queue -- ----------------------- procedure Remove_From_Queue (This : Any_Timing_Event) is use Events; Location : Cursor; begin SSL.Abort_Defer.all; Write_Lock (Event_Queue_Lock'Access); Location := All_Events.Find (This); if Location /= No_Element then All_Events.Delete (Location); end if; Unlock (Event_Queue_Lock'Access); SSL.Abort_Undefer.all; end Remove_From_Queue; ----------------- -- Set_Handler -- ----------------- procedure Set_Handler (Event : in out Timing_Event; At_Time : Time; Handler : Timing_Event_Handler) is begin Remove_From_Queue (Event'Unchecked_Access); Event.Handler := null; -- RM D.15(15/2) required that at this point, we check whether the time -- has already passed, and if so, call Handler.all directly from here -- instead of doing the enqueuing below. However, this caused a nasty -- race condition and potential deadlock. If the current task has -- already locked the protected object of Handler.all, and the time has -- passed, deadlock would occur. It has been fixed by AI05-0094-1, which -- says that the handler should be executed as soon as possible, meaning -- that the timing event will be executed after the protected action -- finishes (Handler.all should not be called directly from here). -- The same comment applies to the other Set_Handler below. if Handler /= null then Event.Timeout := At_Time; Event.Handler := Handler; Insert_Into_Queue (Event'Unchecked_Access); end if; end Set_Handler; ----------------- -- Set_Handler -- ----------------- procedure Set_Handler (Event : in out Timing_Event; In_Time : Time_Span; Handler : Timing_Event_Handler) is begin Remove_From_Queue (Event'Unchecked_Access); Event.Handler := null; -- See comment in the other Set_Handler above if Handler /= null then Event.Timeout := Clock + In_Time; Event.Handler := Handler; Insert_Into_Queue (Event'Unchecked_Access); end if; end Set_Handler; --------------------- -- Current_Handler -- --------------------- function Current_Handler (Event : Timing_Event) return Timing_Event_Handler is begin return Event.Handler; end Current_Handler; -------------------- -- Cancel_Handler -- -------------------- procedure Cancel_Handler (Event : in out Timing_Event; Cancelled : out Boolean) is begin Remove_From_Queue (Event'Unchecked_Access); Cancelled := Event.Handler /= null; Event.Handler := null; end Cancel_Handler; ------------------- -- Time_Of_Event -- ------------------- function Time_Of_Event (Event : Timing_Event) return Time is begin -- RM D.15(18/2): Time_First must be returned in the event is not set return (if Event.Handler = null then Time_First else Event.Timeout); end Time_Of_Event; -------------- -- Finalize -- -------------- procedure Finalize (This : in out Timing_Event) is begin -- D.15 (19/2) says finalization clears the event This.Handler := null; Remove_From_Queue (This'Unchecked_Access); end Finalize; end Ada.Real_Time.Timing_Events;
34.69837
79
0.582426
dfc9744079b806afc345d0ade7a9c94ed8dd4bfc
370
ads
Ada
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/debug6_pkg.ads
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
7
2020-05-02T17:34:05.000Z
2021-10-17T10:15:18.000Z
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/debug6_pkg.ads
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
null
null
null
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/debug6_pkg.ads
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
2
2020-07-27T00:22:36.000Z
2021-04-01T09:41:02.000Z
package Debug6_Pkg is type Vkind is (Int, Undefined); for Vkind use (Int => -2 ** 31, Undefined => 0); type Value (Kind : Vkind) is record case Kind is when Undefined => null; when Int => Value : Integer; when others => null; end case; end record; procedure Process (V : Value); end Debug6_Pkg;
21.764706
51
0.556757
fb465eb457efae6fea26f36fa47f2c796436d8a7
1,421
ads
Ada
tier-1/xcb/source/thin/xcb-xcb_render_query_filters_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_render_query_filters_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_render_query_filters_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_render_query_filters_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_render_query_filters_cookie_t .Item; -- Pointer -- package C_Pointers is new Interfaces.C.Pointers (Index => Interfaces.C.size_t, Element => xcb.xcb_render_query_filters_cookie_t.Item, Element_Array => xcb.xcb_render_query_filters_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_render_query_filters_cookie_t .Pointer; -- Pointer_Pointer -- package C_Pointer_Pointers is new Interfaces.C.Pointers (Index => Interfaces.C.size_t, Element => xcb.xcb_render_query_filters_cookie_t.Pointer, Element_Array => xcb.xcb_render_query_filters_cookie_t.Pointer_Array, Default_Terminator => null); subtype Pointer_Pointer is C_Pointer_Pointers.Pointer; end xcb.xcb_render_query_filters_cookie_t;
26.811321
77
0.677692
39da06d8ec0ccd22dac6a0af2f6e8dc57431230c
2,657
ads
Ada
aunit/aunit-memory-utils.ads
btmalone/alog
164a0a3e82aee414dc6125b64cd8ccc3a01876f9
[ "Apache-2.0" ]
null
null
null
aunit/aunit-memory-utils.ads
btmalone/alog
164a0a3e82aee414dc6125b64cd8ccc3a01876f9
[ "Apache-2.0" ]
3
2018-12-23T03:07:49.000Z
2019-06-03T20:16:30.000Z
aunit/aunit-memory-utils.ads
btmalone/alog
164a0a3e82aee414dc6125b64cd8ccc3a01876f9
[ "Apache-2.0" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- A U N I T . M E M O R Y . U T I L S -- -- -- -- S p e c -- -- -- -- -- -- Copyright (C) 2008-2011, 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 is maintained by AdaCore (http://www.adacore.com) -- -- -- ------------------------------------------------------------------------------ -- Provides Gen_Alloc, easing the allocation of objects within AUnit. package AUnit.Memory.Utils is generic type Object is limited private; type Name is access Object; pragma No_Strict_Aliasing (Name); function Gen_Alloc return Name; end AUnit.Memory.Utils;
61.790698
78
0.308619
4d522806f78047eef5031cd9e0e11b6dbbc4eedf
3,832
ada
Ada
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c6/c64104h.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/c6/c64104h.ada
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
null
null
null
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c6/c64104h.ada
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
2
2020-07-27T00:22:36.000Z
2021-04-01T09:41:02.000Z
-- C64104H.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 CONSTRAINT_ERROR IS RAISED UNDER THE APPROPRIATE -- CIRCUMSTANCES FOR ACCESS PARAMETERS, NAMELY WHEN THE -- ACTUAL INDEX BOUNDS OR DISCRIMINANTS ARE NOT EQUAL -- TO THE FORMAL CONSTRAINTS BEFORE THE CALL (FOR IN AND IN OUT -- MODES), AND WHEN THE FORMAL CONSTRAINTS ARE NOT EQUAL TO THE -- ACTUAL CONSTRAINTS UPON RETURN (FOR IN OUT AND OUT MODES). -- (E) AFTER RETURN, IN OUT MODE, STATIC LIMITED PRIVATE -- DISCRIMINANTS. -- HISTORY: -- JRK 03/18/81 CREATED ORIGINAL TEST. -- NL 10/13/81 -- LB 11/25/86 ADDED CODE TO ENSURE THAT SUBPROGRAMS ARE -- ACTUALLY BEING CALLED. -- BCB 11/12/87 CHANGED HEADER TO STANDARD FORMAT. WITH REPORT; PROCEDURE C64104H IS USE REPORT; BEGIN TEST ("C64104H", "CHECK THAT CONSTRAINT_ERROR IS RAISED " & "APPROPRIATELY FOR ACCESS PARAMETERS"); -------------------------------------------------- DECLARE PACKAGE PKG IS SUBTYPE INT IS INTEGER RANGE 0..10; SUBTYPE CHAR IS CHARACTER RANGE 'A' .. 'C'; TYPE T (I : INT := 0; C : CHAR := 'A') IS LIMITED PRIVATE; PRIVATE TYPE T (I : INT := 0; C : CHAR := 'A') IS RECORD J : INTEGER; CASE C IS WHEN 'A' => K : INTEGER; WHEN 'B' => S : STRING (1..I); WHEN OTHERS => NULL; END CASE; END RECORD; END PKG; USE PKG; CALLED : BOOLEAN; TYPE A IS ACCESS T; V : A (2,'B') := NEW T (2,'B'); PROCEDURE P (X : IN OUT A) IS BEGIN CALLED := TRUE; X := NEW T (2,'A'); EXCEPTION WHEN OTHERS => FAILED ("EXCEPTION RAISED IN PROCEDURE"); END P; BEGIN CALLED := FALSE; P (V); FAILED ("EXCEPTION NOT RAISED AFTER RETURN"); EXCEPTION WHEN CONSTRAINT_ERROR => IF NOT CALLED THEN FAILED ("SUBPROGRAM P WAS NOT CALLED"); END IF; WHEN OTHERS => FAILED ("WRONG EXCEPTION RAISED"); END; -------------------------------------------------- RESULT; END C64104H;
34.214286
79
0.521921
4dfa1763e00b53e81eb659d3274af1b047ad05c1
285
ads
Ada
test-resources/ExamplesFromRoy/md_example7.ads
hergin/ada2fuml
977d6a123e010c0296e47102b89edd0175e3a25d
[ "MIT" ]
null
null
null
test-resources/ExamplesFromRoy/md_example7.ads
hergin/ada2fuml
977d6a123e010c0296e47102b89edd0175e3a25d
[ "MIT" ]
2
2019-10-28T14:31:44.000Z
2020-05-06T16:57:16.000Z
test-resources/ExamplesFromRoy/md_example7.ads
hergin/ada2fuml
977d6a123e010c0296e47102b89edd0175e3a25d
[ "MIT" ]
1
2020-04-09T15:04:05.000Z
2020-04-09T15:04:05.000Z
with Globals_Example1; package Md_Example7 is type T is tagged record Attribute : Globals_Example1.Itype; end record; type T2 is new T with record Child_Attribute : Globals_Example1.Itype; end record; type T3 is new T2 with null record; end Md_Example7;
19
47
0.722807