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
a1178d025205abfbb15f98d4a55f3a47460e6202
2,194
adb
Ada
memsim-master/src/memory-transform-flip.adb
strenkml/EE368
00f15bce9e65badddc613355643b1061fd4a8195
[ "MIT" ]
null
null
null
memsim-master/src/memory-transform-flip.adb
strenkml/EE368
00f15bce9e65badddc613355643b1061fd4a8195
[ "MIT" ]
null
null
null
memsim-master/src/memory-transform-flip.adb
strenkml/EE368
00f15bce9e65badddc613355643b1061fd4a8195
[ "MIT" ]
null
null
null
with Device; use Device; with Memory.Container; use Memory.Container; package body Memory.Transform.Flip is function Create_Flip return Flip_Pointer is result : constant Flip_Pointer := new Flip_Type; begin return result; end Create_Flip; function Random_Flip(next : access Memory_Type'Class; generator : Distribution_Type; max_cost : Cost_Type) return Memory_Pointer is result : constant Flip_Pointer := new Flip_Type; begin Set_Memory(result.all, next); return Memory_Pointer(result); end Random_Flip; function Clone(mem : Flip_Type) return Memory_Pointer is result : constant Flip_Pointer := new Flip_Type'(mem); begin return Memory_Pointer(result); end Clone; procedure Permute(mem : in out Flip_Type; generator : in Distribution_Type; max_cost : in Cost_Type) is begin null; end Permute; function Get_Name(mem : Flip_Type) return String is begin return "flip"; end Get_Name; function Apply(mem : Flip_Type; address : Address_Type; dir : Boolean) return Address_Type is addr_bits : constant Positive := Get_Address_Bits; word_bytes : constant Natural := Get_Word_Size(mem); src_mask : Address_Type; dest_mask : Address_Type; result : Address_Type := address mod Address_Type(word_bytes); begin src_mask := Address_Type(2) ** (addr_bits - 1); dest_mask := Address_Type(word_bytes); for i in 0 .. addr_bits - Log2(word_bytes) loop if (address and src_mask) /= 0 then result := result or dest_mask; end if; src_mask := src_mask / 2; dest_mask := dest_mask * 2; end loop; return result; end Apply; function Get_Alignment(mem : Flip_Type) return Positive is begin return Get_Word_Size(mem); end Get_Alignment; function Get_Transform_Length(mem : Flip_Type) return Natural is begin return 0; end Get_Transform_Length; end Memory.Transform.Flip;
30.472222
73
0.627165
06a135df50feb6b865bc9785cf89bf26efa621d9
11,821
ads
Ada
src/asf-views-nodes-facelets.ads
jquorning/ada-asf
ddc697c5dfa4e22c57c6958f4cff27e14d02ce98
[ "Apache-2.0" ]
12
2015-01-18T23:02:20.000Z
2022-03-25T15:30:30.000Z
src/asf-views-nodes-facelets.ads
jquorning/ada-asf
ddc697c5dfa4e22c57c6958f4cff27e14d02ce98
[ "Apache-2.0" ]
3
2021-01-06T09:44:02.000Z
2022-02-04T20:20:53.000Z
src/asf-views-nodes-facelets.ads
jquorning/ada-asf
ddc697c5dfa4e22c57c6958f4cff27e14d02ce98
[ "Apache-2.0" ]
4
2016-04-12T05:29:00.000Z
2022-01-24T23:53:59.000Z
----------------------------------------------------------------------- -- asf-views-nodes-facelets -- Facelets composition nodes -- Copyright (C) 2009 - 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. ----------------------------------------------------------------------- -- = Facelet Components = -- The facelets is the default view declaration language that uses XML and XHTML. -- It is a composition and templating framework that allows to create the component -- tree. -- -- The facelet components are defined in the following namespace: -- ``` -- xmlns:ui="http://java.sun.com/jsf/facelets" -- ``` -- -- The facelet components are implemented by the `ASF.Views.Nodes.Facelets` -- package which defines the pre-defined tags for composing a view. Nodes of -- this package are instantiated when the facelet XML tag is found when reading -- the XHTML view description. -- -- @include-doc docs/comp-facelet/*.txt with Ada.Strings.Hash; with ASF.Factory; with Ada.Containers.Indefinite_Hashed_Maps; package ASF.Views.Nodes.Facelets is -- Register the facelets component factory. procedure Register (Factory : in out ASF.Factory.Component_Factory); -- ------------------------------ -- Include Tag -- ------------------------------ -- The <ui:include src="..."/> type Include_Tag_Node is new Tag_Node with private; type Include_Tag_Node_Access is access all Include_Tag_Node'Class; -- Create the Include Tag function Create_Include_Tag_Node (Binding : in Binding_Type; Line : in Line_Info; Parent : in Tag_Node_Access; Attributes : in Tag_Attribute_Array_Access) return Tag_Node_Access; -- Build the component tree from the tag node and attach it as -- the last child of the given parent. Calls recursively the -- method to create children. overriding procedure Build_Components (Node : access Include_Tag_Node; Parent : in UIComponent_Access; Context : in out Facelet_Context'Class); -- ------------------------------ -- Composition Tag -- ------------------------------ -- The <ui:composition template="..."/> type Composition_Tag_Node is new Tag_Node with private; type Composition_Tag_Node_Access is access all Composition_Tag_Node'Class; -- Create the Composition Tag function Create_Composition_Tag_Node (Binding : in Binding_Type; Line : in Line_Info; Parent : in Tag_Node_Access; Attributes : in Tag_Attribute_Array_Access) return Tag_Node_Access; -- Build the component tree from the tag node and attach it as -- the last child of the given parent. Calls recursively the -- method to create children. overriding procedure Build_Components (Node : access Composition_Tag_Node; Parent : in UIComponent_Access; Context : in out Facelet_Context'Class); -- Freeze the tag node tree and perform any initialization steps -- necessary to build the components efficiently. After this call -- the tag node tree should not be modified and it represents a read-only -- tree. overriding procedure Freeze (Node : access Composition_Tag_Node); -- Include in the component tree the definition identified by the name. -- Upon completion, return in <b>Found</b> whether the definition was found -- within this composition context. procedure Include_Definition (Node : access Composition_Tag_Node; Parent : in UIComponent_Access; Context : in out Facelet_Context'Class; Name : in Unbounded_String; Found : out Boolean); -- ------------------------------ -- Debug Tag -- ------------------------------ -- The <ui:debug/> type Debug_Tag_Node is new Tag_Node with private; type Debug_Tag_Node_Access is access all Debug_Tag_Node'Class; -- Create the Debug Tag function Create_Debug_Tag_Node (Binding : in Binding_Type; Line : in Line_Info; Parent : in Tag_Node_Access; Attributes : in Tag_Attribute_Array_Access) return Tag_Node_Access; -- Build the component tree from the tag node and attach it as -- the last child of the given parent. Calls recursively the -- method to create children. overriding procedure Build_Components (Node : access Debug_Tag_Node; Parent : in UIComponent_Access; Context : in out Facelet_Context'Class); -- ------------------------------ -- Decorate Tag -- ------------------------------ -- The <ui:decorate template="...">...</ui:decorate> type Decorate_Tag_Node is new Composition_Tag_Node with private; type Decorate_Tag_Node_Access is access all Decorate_Tag_Node'Class; -- Create the Decorate Tag function Create_Decorate_Tag_Node (Binding : in Binding_Type; Line : in Line_Info; Parent : in Tag_Node_Access; Attributes : in Tag_Attribute_Array_Access) return Tag_Node_Access; -- ------------------------------ -- Define Tag -- ------------------------------ -- The <ui:define name="...">...</ui:define> type Define_Tag_Node is new Tag_Node with private; type Define_Tag_Node_Access is access all Define_Tag_Node'Class; -- Create the Define Tag function Create_Define_Tag_Node (Binding : in Binding_Type; Line : in Line_Info; Parent : in Tag_Node_Access; Attributes : in Tag_Attribute_Array_Access) return Tag_Node_Access; -- Build the component tree from the tag node and attach it as -- the last child of the given parent. Calls recursively the -- method to create children. overriding procedure Build_Components (Node : access Define_Tag_Node; Parent : in UIComponent_Access; Context : in out Facelet_Context'Class); -- ------------------------------ -- Insert Tag -- ------------------------------ -- The <ui:insert name="...">...</ui:insert> type Insert_Tag_Node is new Tag_Node with private; type Insert_Tag_Node_Access is access all Insert_Tag_Node'Class; -- Create the Insert Tag function Create_Insert_Tag_Node (Binding : in Binding_Type; Line : in Line_Info; Parent : in Tag_Node_Access; Attributes : in Tag_Attribute_Array_Access) return Tag_Node_Access; -- Build the component tree from the tag node and attach it as -- the last child of the given parent. Calls recursively the -- method to create children. overriding procedure Build_Components (Node : access Insert_Tag_Node; Parent : in UIComponent_Access; Context : in out Facelet_Context'Class); -- ------------------------------ -- Param Tag -- ------------------------------ -- The <ui:param name="name" value="#{expr}"/> parameter creation. -- The parameter is created in the faces context. type Param_Tag_Node is new Tag_Node with private; type Param_Tag_Node_Access is access all Param_Tag_Node'Class; -- Create the Param Tag function Create_Param_Tag_Node (Binding : in Binding_Type; Line : in Line_Info; Parent : in Tag_Node_Access; Attributes : in Tag_Attribute_Array_Access) return Tag_Node_Access; -- Build the component tree from the tag node and attach it as -- the last child of the given parent. Calls recursively the -- method to create children. overriding procedure Build_Components (Node : access Param_Tag_Node; Parent : in UIComponent_Access; Context : in out Facelet_Context'Class); -- ------------------------------ -- Comment Tag -- ------------------------------ -- The <ui:comment condition="...">...</ui:comment> type Comment_Tag_Node is new Tag_Node with private; type Comment_Tag_Node_Access is access all Comment_Tag_Node'Class; -- Create the Comment Tag function Create_Comment_Tag_Node (Binding : in Binding_Type; Line : in Line_Info; Parent : in Tag_Node_Access; Attributes : in Tag_Attribute_Array_Access) return Tag_Node_Access; -- Build the component tree from the tag node and attach it as -- the last child of the given parent. Calls recursively the -- method to create children. overriding procedure Build_Components (Node : access Comment_Tag_Node; Parent : in UIComponent_Access; Context : in out Facelet_Context'Class); private -- Tag library map indexed on the library namespace. package Define_Maps is new Ada.Containers.Indefinite_Hashed_Maps (Key_Type => String, Element_Type => Define_Tag_Node_Access, Hash => Ada.Strings.Hash, Equivalent_Keys => "="); type Include_Tag_Node is new Tag_Node with record Source : Tag_Attribute_Access; end record; type Composition_Tag_Node is new Tag_Node with record Template : Tag_Attribute_Access; Defines : Define_Maps.Map; end record; type Debug_Tag_Node is new Tag_Node with record Source : Tag_Attribute_Access; end record; type Decorate_Tag_Node is new Composition_Tag_Node with null record; type Define_Tag_Node is new Tag_Node with record Define_Name : Unbounded_String; end record; type Insert_Tag_Node is new Tag_Node with record Insert_Name : Tag_Attribute_Access; end record; type Param_Tag_Node is new Tag_Node with record Var : Tag_Attribute_Access; Value : Tag_Attribute_Access; end record; type Comment_Tag_Node is new Tag_Node with record Condition : Tag_Attribute_Access; end record; end ASF.Views.Nodes.Facelets;
43.781481
86
0.569326
a1e8e0c3c9d34ff54b1058c0663f89b9b98a03e3
3,227
ads
Ada
gcc-gcc-7_3_0-release/gcc/ada/s-pack35.ads
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
7
2020-05-02T17:34:05.000Z
2021-10-17T10:15:18.000Z
gcc-gcc-7_3_0-release/gcc/ada/s-pack35.ads
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
null
null
null
gcc-gcc-7_3_0-release/gcc/ada/s-pack35.ads
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
2
2020-07-27T00:22:36.000Z
2021-04-01T09:41:02.000Z
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- S Y S T E M . P A C K _ 3 5 -- -- -- -- S p e c -- -- -- -- Copyright (C) 1992-2014, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- 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. -- -- -- ------------------------------------------------------------------------------ -- Handling of packed arrays with Component_Size = 35 package System.Pack_35 is pragma Preelaborate; Bits : constant := 35; type Bits_35 is mod 2 ** Bits; for Bits_35'Size use Bits; -- In all subprograms below, Rev_SSO is set True if the array has the -- non-default scalar storage order. function Get_35 (Arr : System.Address; N : Natural; Rev_SSO : Boolean) return Bits_35 with Inline; -- Arr is the address of the packed array, N is the zero-based -- subscript. This element is extracted and returned. procedure Set_35 (Arr : System.Address; N : Natural; E : Bits_35; Rev_SSO : Boolean) with Inline; -- Arr is the address of the packed array, N is the zero-based -- subscript. This element is set to the given value. end System.Pack_35;
52.901639
78
0.439727
31cf3d9de0258cdf2bb0c658338967a0acf8dd8f
3,039
ada
Ada
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c4/c4a010b.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/c4a010b.ada
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
null
null
null
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c4/c4a010b.ada
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
2
2020-07-27T00:22:36.000Z
2021-04-01T09:41:02.000Z
-- C4A010B.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 STATIC UNIVERSAL REAL EXPRESSIONS ARE EVALUATED -- EXACTLY. IN PARTICULAR, CHECK THAT THE CASCADING USE OF FRACTIONAL -- VALUES DOES NOT RESULT IN THE LOSS OF PRECISION. -- RJW 7/31/86 WITH REPORT; USE REPORT; PROCEDURE C4A010B IS BEGIN TEST( "C4A010B", "CHECK THAT STATIC UNIVERSAL REAL EXPRESSIONS " & "ARE EVALUATED EXACTLY. IN PARTICULAR, CHECK " & "THAT THE CASCADING USE OF FRACTIONAL VALUES " & "DOES NOT RESULT IN THE LOSS OF PRECISION" ); DECLARE B : CONSTANT := 2.0/3.0; X0 : CONSTANT := 1.0; X1 : CONSTANT := X0 + B; X2 : CONSTANT := X1 + B ** 2; X3 : CONSTANT := X2 + B ** 3; X4 : CONSTANT := X3 + B ** 4; X5 : CONSTANT := X4 + B ** 5; X6 : CONSTANT := X5 + B ** 6; X7 : CONSTANT := X6 + B ** 7; X8 : CONSTANT := X7 + B ** 8; X9 : CONSTANT := X8 + B ** 9; Y1 : CONSTANT := B ** 10; Y2 : CONSTANT := 1.0; Y3 : CONSTANT := Y1 - Y2; Y4 : CONSTANT := B; Y5 : CONSTANT := Y4 - Y2; Y6 : CONSTANT := Y3 / Y5; BEGIN IF X9 /= 58025.0/19683.0 THEN FAILED ( "INCORRECT RESULTS FOR SERIES OF NAMED " & "NUMBERS - 1" ); END IF; IF Y6 /= 58025.0/19683.0 THEN FAILED ( "INCORRECT RESULTS FOR SERIES OF NAMED " & "NUMBERS - 2" ); END IF; IF X9 /= Y6 THEN FAILED ( "INCORRECT RESULTS FOR SERIES OF NAMED " & "NUMBERS - 3" ); END IF; END; RESULT; END C4A010B;
36.614458
79
0.548207
1215332f22391aa98d317e652aa0817683d83c90
9,231
ads
Ada
source/amf/uml/amf-uml-parameters.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
24
2016-11-29T06:59:41.000Z
2021-08-30T11:55:16.000Z
source/amf/uml/amf-uml-parameters.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
2
2019-01-16T05:15:20.000Z
2019-02-03T10:03:32.000Z
source/amf/uml/amf-uml-parameters.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
4
2017-07-18T07:11:05.000Z
2020-06-21T03:02:25.000Z
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Ada Modeling Framework -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2011-2012, Vadim Godunko <[email protected]> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ -- This file is generated, don't edit it. ------------------------------------------------------------------------------ -- A parameter is a specification of an argument used to pass information -- into or out of an invocation of a behavioral feature. -- -- Parameters have support for streaming, exceptions, and parameter sets. -- -- Parameters are allowed to be treated as connectable elements. ------------------------------------------------------------------------------ with AMF.UML.Connectable_Elements; with AMF.UML.Multiplicity_Elements; limited with AMF.UML.Operations; limited with AMF.UML.Parameter_Sets.Collections; limited with AMF.UML.Value_Specifications; package AMF.UML.Parameters is pragma Preelaborate; type UML_Parameter is limited interface and AMF.UML.Multiplicity_Elements.UML_Multiplicity_Element and AMF.UML.Connectable_Elements.UML_Connectable_Element; type UML_Parameter_Access is access all UML_Parameter'Class; for UML_Parameter_Access'Storage_Size use 0; not overriding function Get_Default (Self : not null access constant UML_Parameter) return AMF.Optional_String is abstract; -- Getter of Parameter::default. -- -- Specifies a String that represents a value to be used when no argument -- is supplied for the Parameter. not overriding procedure Set_Default (Self : not null access UML_Parameter; To : AMF.Optional_String) is abstract; -- Setter of Parameter::default. -- -- Specifies a String that represents a value to be used when no argument -- is supplied for the Parameter. not overriding function Get_Default_Value (Self : not null access constant UML_Parameter) return AMF.UML.Value_Specifications.UML_Value_Specification_Access is abstract; -- Getter of Parameter::defaultValue. -- -- Specifies a ValueSpecification that represents a value to be used when -- no argument is supplied for the Parameter. not overriding procedure Set_Default_Value (Self : not null access UML_Parameter; To : AMF.UML.Value_Specifications.UML_Value_Specification_Access) is abstract; -- Setter of Parameter::defaultValue. -- -- Specifies a ValueSpecification that represents a value to be used when -- no argument is supplied for the Parameter. not overriding function Get_Direction (Self : not null access constant UML_Parameter) return AMF.UML.UML_Parameter_Direction_Kind is abstract; -- Getter of Parameter::direction. -- -- Indicates whether a parameter is being sent into or out of a behavioral -- element. not overriding procedure Set_Direction (Self : not null access UML_Parameter; To : AMF.UML.UML_Parameter_Direction_Kind) is abstract; -- Setter of Parameter::direction. -- -- Indicates whether a parameter is being sent into or out of a behavioral -- element. not overriding function Get_Effect (Self : not null access constant UML_Parameter) return AMF.UML.Optional_UML_Parameter_Effect_Kind is abstract; -- Getter of Parameter::effect. -- -- Specifies the effect that the owner of the parameter has on values -- passed in or out of the parameter. not overriding procedure Set_Effect (Self : not null access UML_Parameter; To : AMF.UML.Optional_UML_Parameter_Effect_Kind) is abstract; -- Setter of Parameter::effect. -- -- Specifies the effect that the owner of the parameter has on values -- passed in or out of the parameter. not overriding function Get_Is_Exception (Self : not null access constant UML_Parameter) return Boolean is abstract; -- Getter of Parameter::isException. -- -- Tells whether an output parameter may emit a value to the exclusion of -- the other outputs. not overriding procedure Set_Is_Exception (Self : not null access UML_Parameter; To : Boolean) is abstract; -- Setter of Parameter::isException. -- -- Tells whether an output parameter may emit a value to the exclusion of -- the other outputs. not overriding function Get_Is_Stream (Self : not null access constant UML_Parameter) return Boolean is abstract; -- Getter of Parameter::isStream. -- -- Tells whether an input parameter may accept values while its behavior -- is executing, or whether an output parameter post values while the -- behavior is executing. not overriding procedure Set_Is_Stream (Self : not null access UML_Parameter; To : Boolean) is abstract; -- Setter of Parameter::isStream. -- -- Tells whether an input parameter may accept values while its behavior -- is executing, or whether an output parameter post values while the -- behavior is executing. not overriding function Get_Operation (Self : not null access constant UML_Parameter) return AMF.UML.Operations.UML_Operation_Access is abstract; -- Getter of Parameter::operation. -- -- References the Operation owning this parameter. not overriding procedure Set_Operation (Self : not null access UML_Parameter; To : AMF.UML.Operations.UML_Operation_Access) is abstract; -- Setter of Parameter::operation. -- -- References the Operation owning this parameter. not overriding function Get_Parameter_Set (Self : not null access constant UML_Parameter) return AMF.UML.Parameter_Sets.Collections.Set_Of_UML_Parameter_Set is abstract; -- Getter of Parameter::parameterSet. -- -- The parameter sets containing the parameter. See ParameterSet. not overriding function Default (Self : not null access constant UML_Parameter) return AMF.Optional_String is abstract; -- Operation Parameter::default. -- -- Missing derivation for Parameter::/default : String end AMF.UML.Parameters;
46.621212
86
0.591702
3156bc997098c7041d4aa9b2e5f789a79c505953
190,789
adb
Ada
Vivado_HLS_Tutorial/Design_Analysis/lab1/dct_prj/solution6/.autopilot/db/dct_Loop_Row_DCT_Loop_proc.sched.adb
williambong/Vivado
68efafbc44b65c0bb047dbafc0ff7f1b56ee36bb
[ "MIT" ]
null
null
null
Vivado_HLS_Tutorial/Design_Analysis/lab1/dct_prj/solution6/.autopilot/db/dct_Loop_Row_DCT_Loop_proc.sched.adb
williambong/Vivado
68efafbc44b65c0bb047dbafc0ff7f1b56ee36bb
[ "MIT" ]
null
null
null
Vivado_HLS_Tutorial/Design_Analysis/lab1/dct_prj/solution6/.autopilot/db/dct_Loop_Row_DCT_Loop_proc.sched.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_Loop_Row_DCT_Loop_proc</name> <ret_bitwidth>0</ret_bitwidth> <ports class_id="2" tracking_level="0" version="0"> <count>9</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>buf_2d_in_0</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>buf_2d_in_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>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>buf_2d_in_2</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>buf_2d_in_3</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>buf_2d_in_4</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>buf_2d_in_5</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>buf_2d_in_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>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>buf_2d_in_7</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>row_outbuf_i</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> </ports> <nodes class_id="8" tracking_level="0" version="0"> <count>88</count> <item_version>0</item_version> <item class_id="9" tracking_level="1" version="0" object_id="_10"> <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>76</lineNumber> <contextFuncName>dct_2d</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item class_id="10" tracking_level="0" version="0"> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second class_id="11" tracking_level="0" version="0"> <count>2</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>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>76</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>116</item> </oprand_edges> <opcode>br</opcode> </item> <item class_id_reference="9" object_id="_11"> <Value> <Obj> <type>0</type> <id>20</id> <name>indvar_flatten</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>7</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>118</item> <item>119</item> <item>120</item> <item>121</item> </oprand_edges> <opcode>phi</opcode> </item> <item class_id_reference="9" object_id="_12"> <Value> <Obj> <type>0</type> <id>21</id> <name>i_0_i</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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>57</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>4</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>123</item> <item>124</item> <item>125</item> <item>126</item> </oprand_edges> <opcode>phi</opcode> </item> <item class_id_reference="9" object_id="_13"> <Value> <Obj> <type>0</type> <id>22</id> <name>k_i</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>127</item> <item>128</item> <item>129</item> <item>130</item> </oprand_edges> <opcode>phi</opcode> </item> <item class_id_reference="9" object_id="_14"> <Value> <Obj> <type>0</type> <id>23</id> <name>exitcond_flatten</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>1</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>131</item> <item>133</item> </oprand_edges> <opcode>icmp</opcode> </item> <item class_id_reference="9" object_id="_15"> <Value> <Obj> <type>0</type> <id>24</id> <name>indvar_flatten_next</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>7</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>134</item> <item>136</item> </oprand_edges> <opcode>add</opcode> </item> <item class_id_reference="9" object_id="_16"> <Value> <Obj> <type>0</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> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>137</item> <item>138</item> <item>139</item> </oprand_edges> <opcode>br</opcode> </item> <item class_id_reference="9" object_id="_17"> <Value> <Obj> <type>0</type> <id>29</id> <name>exitcond1_i4</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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>57</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</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>140</item> <item>142</item> </oprand_edges> <opcode>icmp</opcode> </item> <item class_id_reference="9" object_id="_18"> <Value> <Obj> <type>0</type> <id>30</id> <name>k_i_mid2</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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>57</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>4</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>143</item> <item>144</item> <item>145</item> </oprand_edges> <opcode>select</opcode> </item> <item class_id_reference="9" object_id="_19"> <Value> <Obj> <type>0</type> <id>31</id> <name>i2</name> <fileName>dct.cpp</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</fileDirectory> <lineNumber>76</lineNumber> <contextFuncName>dct_2d</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>2</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>76</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>4</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>146</item> <item>148</item> </oprand_edges> <opcode>add</opcode> </item> <item class_id_reference="9" object_id="_20"> <Value> <Obj> <type>0</type> <id>32</id> <name>i_0_i_mid2</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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>57</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>4</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>149</item> <item>150</item> <item>151</item> </oprand_edges> <opcode>select</opcode> </item> <item class_id_reference="9" object_id="_21"> <Value> <Obj> <type>0</type> <id>33</id> <name>tmp_71_cast_i</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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>57</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</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="_22"> <Value> <Obj> <type>0</type> <id>37</id> <name>tmp_i_7</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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>60</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</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>153</item> </oprand_edges> <opcode>zext</opcode> </item> <item class_id_reference="9" object_id="_23"> <Value> <Obj> <type>0</type> <id>38</id> <name>dct_coeff_table_0_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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>60</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</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>154</item> <item>156</item> <item>157</item> </oprand_edges> <opcode>getelementptr</opcode> </item> <item class_id_reference="9" object_id="_24"> <Value> <Obj> <type>0</type> <id>39</id> <name>dct_coeff_table_0_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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>60</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</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>158</item> </oprand_edges> <opcode>load</opcode> </item> <item class_id_reference="9" object_id="_25"> <Value> <Obj> <type>0</type> <id>40</id> <name>coeff_cast_i</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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>60</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</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>159</item> </oprand_edges> <opcode>zext</opcode> </item> <item class_id_reference="9" object_id="_26"> <Value> <Obj> <type>0</type> <id>41</id> <name>buf_2d_in_0_addr</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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>57</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</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>160</item> <item>161</item> <item>162</item> </oprand_edges> <opcode>getelementptr</opcode> </item> <item class_id_reference="9" object_id="_27"> <Value> <Obj> <type>0</type> <id>42</id> <name>buf_2d_in_0_load</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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>57</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</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>163</item> </oprand_edges> <opcode>load</opcode> </item> <item class_id_reference="9" object_id="_28"> <Value> <Obj> <type>0</type> <id>43</id> <name>tmp_72_cast_i</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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>61</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</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>164</item> </oprand_edges> <opcode>sext</opcode> </item> <item class_id_reference="9" object_id="_29"> <Value> <Obj> <type>0</type> <id>44</id> <name>tmp_8_i</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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>61</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</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>165</item> <item>166</item> </oprand_edges> <opcode>mul</opcode> </item> <item class_id_reference="9" object_id="_30"> <Value> <Obj> <type>0</type> <id>45</id> <name>dct_coeff_table_1_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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>60</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</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>167</item> <item>168</item> <item>169</item> </oprand_edges> <opcode>getelementptr</opcode> </item> <item class_id_reference="9" object_id="_31"> <Value> <Obj> <type>0</type> <id>46</id> <name>dct_coeff_table_1_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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>60</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</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>170</item> </oprand_edges> <opcode>load</opcode> </item> <item class_id_reference="9" object_id="_32"> <Value> <Obj> <type>0</type> <id>47</id> <name>coeff_1_cast_i</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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>60</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</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>171</item> </oprand_edges> <opcode>sext</opcode> </item> <item class_id_reference="9" object_id="_33"> <Value> <Obj> <type>0</type> <id>48</id> <name>buf_2d_in_1_addr</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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>57</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</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> </item> <item class_id_reference="9" object_id="_34"> <Value> <Obj> <type>0</type> <id>49</id> <name>buf_2d_in_1_load</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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>57</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</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>175</item> </oprand_edges> <opcode>load</opcode> </item> <item class_id_reference="9" object_id="_35"> <Value> <Obj> <type>0</type> <id>50</id> <name>tmp_72_1_cast_i</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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>61</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</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>sext</opcode> </item> <item class_id_reference="9" object_id="_36"> <Value> <Obj> <type>0</type> <id>51</id> <name>tmp_8_1_i</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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>61</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</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>177</item> <item>178</item> </oprand_edges> <opcode>mul</opcode> </item> <item class_id_reference="9" object_id="_37"> <Value> <Obj> <type>0</type> <id>52</id> <name>dct_coeff_table_2_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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>60</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</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>179</item> <item>180</item> <item>181</item> </oprand_edges> <opcode>getelementptr</opcode> </item> <item class_id_reference="9" object_id="_38"> <Value> <Obj> <type>0</type> <id>53</id> <name>dct_coeff_table_2_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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>60</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</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>182</item> </oprand_edges> <opcode>load</opcode> </item> <item class_id_reference="9" object_id="_39"> <Value> <Obj> <type>0</type> <id>54</id> <name>coeff_2_cast_i</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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>60</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</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>183</item> </oprand_edges> <opcode>sext</opcode> </item> <item class_id_reference="9" object_id="_40"> <Value> <Obj> <type>0</type> <id>55</id> <name>buf_2d_in_2_addr</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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>57</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</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>184</item> <item>185</item> <item>186</item> </oprand_edges> <opcode>getelementptr</opcode> </item> <item class_id_reference="9" object_id="_41"> <Value> <Obj> <type>0</type> <id>56</id> <name>buf_2d_in_2_load</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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>57</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</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>187</item> </oprand_edges> <opcode>load</opcode> </item> <item class_id_reference="9" object_id="_42"> <Value> <Obj> <type>0</type> <id>57</id> <name>tmp_72_2_cast_i</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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>61</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</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>188</item> </oprand_edges> <opcode>sext</opcode> </item> <item class_id_reference="9" object_id="_43"> <Value> <Obj> <type>0</type> <id>58</id> <name>tmp_8_2_i</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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>61</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</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>189</item> <item>190</item> </oprand_edges> <opcode>mul</opcode> </item> <item class_id_reference="9" object_id="_44"> <Value> <Obj> <type>0</type> <id>59</id> <name>dct_coeff_table_3_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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>60</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</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>191</item> <item>192</item> <item>193</item> </oprand_edges> <opcode>getelementptr</opcode> </item> <item class_id_reference="9" object_id="_45"> <Value> <Obj> <type>0</type> <id>60</id> <name>dct_coeff_table_3_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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>60</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</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>194</item> </oprand_edges> <opcode>load</opcode> </item> <item class_id_reference="9" object_id="_46"> <Value> <Obj> <type>0</type> <id>61</id> <name>coeff_3_cast_i</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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>60</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</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>195</item> </oprand_edges> <opcode>sext</opcode> </item> <item class_id_reference="9" object_id="_47"> <Value> <Obj> <type>0</type> <id>62</id> <name>buf_2d_in_3_addr</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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>57</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</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>196</item> <item>197</item> <item>198</item> </oprand_edges> <opcode>getelementptr</opcode> </item> <item class_id_reference="9" object_id="_48"> <Value> <Obj> <type>0</type> <id>63</id> <name>buf_2d_in_3_load</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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>57</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</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>199</item> </oprand_edges> <opcode>load</opcode> </item> <item class_id_reference="9" object_id="_49"> <Value> <Obj> <type>0</type> <id>64</id> <name>tmp_72_3_cast_i</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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>61</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</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>200</item> </oprand_edges> <opcode>sext</opcode> </item> <item class_id_reference="9" object_id="_50"> <Value> <Obj> <type>0</type> <id>65</id> <name>tmp_8_3_i</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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>61</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</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>201</item> <item>202</item> </oprand_edges> <opcode>mul</opcode> </item> <item class_id_reference="9" object_id="_51"> <Value> <Obj> <type>0</type> <id>66</id> <name>dct_coeff_table_4_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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>60</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</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>203</item> <item>204</item> <item>205</item> </oprand_edges> <opcode>getelementptr</opcode> </item> <item class_id_reference="9" object_id="_52"> <Value> <Obj> <type>0</type> <id>67</id> <name>dct_coeff_table_4_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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>60</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</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>206</item> </oprand_edges> <opcode>load</opcode> </item> <item class_id_reference="9" object_id="_53"> <Value> <Obj> <type>0</type> <id>68</id> <name>coeff_4_cast_i</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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>60</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</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>207</item> </oprand_edges> <opcode>sext</opcode> </item> <item class_id_reference="9" object_id="_54"> <Value> <Obj> <type>0</type> <id>69</id> <name>buf_2d_in_4_addr</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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>57</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</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> </item> <item class_id_reference="9" object_id="_55"> <Value> <Obj> <type>0</type> <id>70</id> <name>buf_2d_in_4_load</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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>57</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</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>211</item> </oprand_edges> <opcode>load</opcode> </item> <item class_id_reference="9" object_id="_56"> <Value> <Obj> <type>0</type> <id>71</id> <name>tmp_72_4_cast_i</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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>61</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</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> </item> <item class_id_reference="9" object_id="_57"> <Value> <Obj> <type>0</type> <id>72</id> <name>tmp_8_4_i</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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>61</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</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>213</item> <item>214</item> </oprand_edges> <opcode>mul</opcode> </item> <item class_id_reference="9" object_id="_58"> <Value> <Obj> <type>0</type> <id>73</id> <name>dct_coeff_table_5_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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>60</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</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>215</item> <item>216</item> <item>217</item> </oprand_edges> <opcode>getelementptr</opcode> </item> <item class_id_reference="9" object_id="_59"> <Value> <Obj> <type>0</type> <id>74</id> <name>dct_coeff_table_5_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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>60</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</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>218</item> </oprand_edges> <opcode>load</opcode> </item> <item class_id_reference="9" object_id="_60"> <Value> <Obj> <type>0</type> <id>75</id> <name>coeff_5_cast_i</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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>60</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</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>219</item> </oprand_edges> <opcode>sext</opcode> </item> <item class_id_reference="9" object_id="_61"> <Value> <Obj> <type>0</type> <id>76</id> <name>buf_2d_in_5_addr</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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>57</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</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>220</item> <item>221</item> <item>222</item> </oprand_edges> <opcode>getelementptr</opcode> </item> <item class_id_reference="9" object_id="_62"> <Value> <Obj> <type>0</type> <id>77</id> <name>buf_2d_in_5_load</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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>57</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</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>223</item> </oprand_edges> <opcode>load</opcode> </item> <item class_id_reference="9" object_id="_63"> <Value> <Obj> <type>0</type> <id>78</id> <name>tmp_72_5_cast_i</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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>61</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</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>224</item> </oprand_edges> <opcode>sext</opcode> </item> <item class_id_reference="9" object_id="_64"> <Value> <Obj> <type>0</type> <id>79</id> <name>tmp_8_5_i</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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>61</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</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>225</item> <item>226</item> </oprand_edges> <opcode>mul</opcode> </item> <item class_id_reference="9" object_id="_65"> <Value> <Obj> <type>0</type> <id>80</id> <name>dct_coeff_table_6_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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>60</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</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>227</item> <item>228</item> <item>229</item> </oprand_edges> <opcode>getelementptr</opcode> </item> <item class_id_reference="9" object_id="_66"> <Value> <Obj> <type>0</type> <id>81</id> <name>dct_coeff_table_6_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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>60</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</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>230</item> </oprand_edges> <opcode>load</opcode> </item> <item class_id_reference="9" object_id="_67"> <Value> <Obj> <type>0</type> <id>82</id> <name>coeff_6_cast_i</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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>60</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</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>231</item> </oprand_edges> <opcode>sext</opcode> </item> <item class_id_reference="9" object_id="_68"> <Value> <Obj> <type>0</type> <id>83</id> <name>buf_2d_in_6_addr</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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>57</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</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>232</item> <item>233</item> <item>234</item> </oprand_edges> <opcode>getelementptr</opcode> </item> <item class_id_reference="9" object_id="_69"> <Value> <Obj> <type>0</type> <id>84</id> <name>buf_2d_in_6_load</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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>57</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</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>235</item> </oprand_edges> <opcode>load</opcode> </item> <item class_id_reference="9" object_id="_70"> <Value> <Obj> <type>0</type> <id>85</id> <name>tmp_72_6_cast_i</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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>61</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</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>236</item> </oprand_edges> <opcode>sext</opcode> </item> <item class_id_reference="9" object_id="_71"> <Value> <Obj> <type>0</type> <id>86</id> <name>tmp_8_6_i</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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>61</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</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>237</item> <item>238</item> </oprand_edges> <opcode>mul</opcode> </item> <item class_id_reference="9" object_id="_72"> <Value> <Obj> <type>0</type> <id>87</id> <name>dct_coeff_table_7_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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>60</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</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>239</item> <item>240</item> <item>241</item> </oprand_edges> <opcode>getelementptr</opcode> </item> <item class_id_reference="9" object_id="_73"> <Value> <Obj> <type>0</type> <id>88</id> <name>dct_coeff_table_7_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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>60</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</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>242</item> </oprand_edges> <opcode>load</opcode> </item> <item class_id_reference="9" object_id="_74"> <Value> <Obj> <type>0</type> <id>89</id> <name>coeff_7_cast_i</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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>60</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</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>243</item> </oprand_edges> <opcode>sext</opcode> </item> <item class_id_reference="9" object_id="_75"> <Value> <Obj> <type>0</type> <id>90</id> <name>buf_2d_in_7_addr</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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>57</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</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>244</item> <item>245</item> <item>246</item> </oprand_edges> <opcode>getelementptr</opcode> </item> <item class_id_reference="9" object_id="_76"> <Value> <Obj> <type>0</type> <id>91</id> <name>buf_2d_in_7_load</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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>57</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</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>247</item> </oprand_edges> <opcode>load</opcode> </item> <item class_id_reference="9" object_id="_77"> <Value> <Obj> <type>0</type> <id>92</id> <name>tmp_72_7_cast_i</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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>61</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</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>248</item> </oprand_edges> <opcode>sext</opcode> </item> <item class_id_reference="9" object_id="_78"> <Value> <Obj> <type>0</type> <id>93</id> <name>tmp_8_7_i</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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>61</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</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>249</item> <item>250</item> </oprand_edges> <opcode>mul</opcode> </item> <item class_id_reference="9" object_id="_79"> <Value> <Obj> <type>0</type> <id>94</id> <name>tmp1</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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>63</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</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>251</item> <item>252</item> </oprand_edges> <opcode>add</opcode> </item> <item class_id_reference="9" object_id="_80"> <Value> <Obj> <type>0</type> <id>95</id> <name>tmp2</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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>63</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</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>253</item> <item>254</item> </oprand_edges> <opcode>add</opcode> </item> <item class_id_reference="9" object_id="_81"> <Value> <Obj> <type>0</type> <id>96</id> <name>tmp</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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>63</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</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> </item> <item class_id_reference="9" object_id="_82"> <Value> <Obj> <type>0</type> <id>97</id> <name>tmp4</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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>63</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</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> </item> <item class_id_reference="9" object_id="_83"> <Value> <Obj> <type>0</type> <id>98</id> <name>tmp6</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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>63</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</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>261</item> </oprand_edges> <opcode>add</opcode> </item> <item class_id_reference="9" object_id="_84"> <Value> <Obj> <type>0</type> <id>99</id> <name>tmp5</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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>63</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</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>262</item> <item>263</item> </oprand_edges> <opcode>add</opcode> </item> <item class_id_reference="9" object_id="_85"> <Value> <Obj> <type>0</type> <id>100</id> <name>tmp3</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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>63</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</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>264</item> <item>265</item> </oprand_edges> <opcode>add</opcode> </item> <item class_id_reference="9" object_id="_86"> <Value> <Obj> <type>0</type> <id>101</id> <name>tmp_2_i</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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>63</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</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>266</item> <item>267</item> </oprand_edges> <opcode>add</opcode> </item> <item class_id_reference="9" object_id="_87"> <Value> <Obj> <type>0</type> <id>102</id> <name>tmp_4_i</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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>63</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</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>269</item> <item>270</item> <item>272</item> <item>274</item> </oprand_edges> <opcode>partselect</opcode> </item> <item class_id_reference="9" object_id="_88"> <Value> <Obj> <type>0</type> <id>103</id> <name>tmp_i_trn_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> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>57</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</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>275</item> </oprand_edges> <opcode>zext</opcode> </item> <item class_id_reference="9" object_id="_89"> <Value> <Obj> <type>0</type> <id>104</id> <name>tmp_5</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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>57</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</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>277</item> <item>278</item> <item>280</item> </oprand_edges> <opcode>bitconcatenate</opcode> </item> <item class_id_reference="9" object_id="_90"> <Value> <Obj> <type>0</type> <id>105</id> <name>p_addr_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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>63</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</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>281</item> </oprand_edges> <opcode>zext</opcode> </item> <item class_id_reference="9" object_id="_91"> <Value> <Obj> <type>0</type> <id>106</id> <name>p_addr1</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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>63</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</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>282</item> <item>283</item> </oprand_edges> <opcode>add</opcode> </item> <item class_id_reference="9" object_id="_92"> <Value> <Obj> <type>0</type> <id>107</id> <name>tmp_6</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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>63</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</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>284</item> </oprand_edges> <opcode>zext</opcode> </item> <item class_id_reference="9" object_id="_93"> <Value> <Obj> <type>0</type> <id>108</id> <name>row_outbuf_i_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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>63</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</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>285</item> <item>286</item> <item>287</item> </oprand_edges> <opcode>getelementptr</opcode> </item> <item class_id_reference="9" object_id="_94"> <Value> <Obj> <type>0</type> <id>109</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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>63</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</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>288</item> <item>289</item> </oprand_edges> <opcode>store</opcode> </item> <item class_id_reference="9" object_id="_95"> <Value> <Obj> <type>0</type> <id>111</id> <name>k</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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>57</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</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>290</item> <item>291</item> </oprand_edges> <opcode>add</opcode> </item> <item class_id_reference="9" object_id="_96"> <Value> <Obj> <type>0</type> <id>112</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>3</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_1d</second> </first> <second>57</second> </item> <item> <first> <first>dct.cpp</first> <second>dct_2d</second> </first> <second>77</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>292</item> </oprand_edges> <opcode>br</opcode> </item> <item class_id_reference="9" object_id="_97"> <Value> <Obj> <type>0</type> <id>114</id> <name></name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <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>11</count> <item_version>0</item_version> <item class_id="16" tracking_level="1" version="0" object_id="_98"> <Value> <Obj> <type>2</type> <id>117</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>7</bitwidth> </Value> <const_type>0</const_type> <content>0</content> </item> <item class_id_reference="16" object_id="_99"> <Value> <Obj> <type>2</type> <id>122</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="_100"> <Value> <Obj> <type>2</type> <id>132</id> <name>empty</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>7</bitwidth> </Value> <const_type>0</const_type> <content>64</content> </item> <item class_id_reference="16" object_id="_101"> <Value> <Obj> <type>2</type> <id>135</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>7</bitwidth> </Value> <const_type>0</const_type> <content>1</content> </item> <item class_id_reference="16" object_id="_102"> <Value> <Obj> <type>2</type> <id>141</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="_103"> <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>4</bitwidth> </Value> <const_type>0</const_type> <content>1</content> </item> <item class_id_reference="16" object_id="_104"> <Value> <Obj> <type>2</type> <id>155</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="_105"> <Value> <Obj> <type>2</type> <id>260</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="_106"> <Value> <Obj> <type>2</type> <id>271</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="_107"> <Value> <Obj> <type>2</type> <id>273</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> <item class_id_reference="16" object_id="_108"> <Value> <Obj> <type>2</type> <id>279</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> </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="_109"> <Obj> <type>3</type> <id>19</id> <name>newFuncRoot</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <node_objs> <count>1</count> <item_version>0</item_version> <item>18</item> </node_objs> </item> <item class_id_reference="18" object_id="_110"> <Obj> <type>3</type> <id>26</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>6</count> <item_version>0</item_version> <item>20</item> <item>21</item> <item>22</item> <item>23</item> <item>24</item> <item>25</item> </node_objs> </item> <item class_id_reference="18" object_id="_111"> <Obj> <type>3</type> <id>113</id> <name>dct_1d.exit</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <node_objs> <count>80</count> <item_version>0</item_version> <item>29</item> <item>30</item> <item>31</item> <item>32</item> <item>33</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>111</item> <item>112</item> </node_objs> </item> <item class_id_reference="18" object_id="_112"> <Obj> <type>3</type> <id>115</id> <name>.preheader7.i.exitStub</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <node_objs> <count>1</count> <item_version>0</item_version> <item>114</item> </node_objs> </item> </blocks> <edges class_id="19" tracking_level="0" version="0"> <count>166</count> <item_version>0</item_version> <item class_id="20" tracking_level="1" version="0" object_id="_113"> <id>116</id> <edge_type>2</edge_type> <source_obj>26</source_obj> <sink_obj>18</sink_obj> </item> <item class_id_reference="20" object_id="_114"> <id>118</id> <edge_type>1</edge_type> <source_obj>117</source_obj> <sink_obj>20</sink_obj> </item> <item class_id_reference="20" object_id="_115"> <id>119</id> <edge_type>2</edge_type> <source_obj>19</source_obj> <sink_obj>20</sink_obj> </item> <item class_id_reference="20" object_id="_116"> <id>120</id> <edge_type>1</edge_type> <source_obj>24</source_obj> <sink_obj>20</sink_obj> </item> <item class_id_reference="20" object_id="_117"> <id>121</id> <edge_type>2</edge_type> <source_obj>113</source_obj> <sink_obj>20</sink_obj> </item> <item class_id_reference="20" object_id="_118"> <id>123</id> <edge_type>1</edge_type> <source_obj>122</source_obj> <sink_obj>21</sink_obj> </item> <item class_id_reference="20" object_id="_119"> <id>124</id> <edge_type>2</edge_type> <source_obj>19</source_obj> <sink_obj>21</sink_obj> </item> <item class_id_reference="20" object_id="_120"> <id>125</id> <edge_type>1</edge_type> <source_obj>32</source_obj> <sink_obj>21</sink_obj> </item> <item class_id_reference="20" object_id="_121"> <id>126</id> <edge_type>2</edge_type> <source_obj>113</source_obj> <sink_obj>21</sink_obj> </item> <item class_id_reference="20" object_id="_122"> <id>127</id> <edge_type>1</edge_type> <source_obj>122</source_obj> <sink_obj>22</sink_obj> </item> <item class_id_reference="20" object_id="_123"> <id>128</id> <edge_type>2</edge_type> <source_obj>19</source_obj> <sink_obj>22</sink_obj> </item> <item class_id_reference="20" object_id="_124"> <id>129</id> <edge_type>1</edge_type> <source_obj>111</source_obj> <sink_obj>22</sink_obj> </item> <item class_id_reference="20" object_id="_125"> <id>130</id> <edge_type>2</edge_type> <source_obj>113</source_obj> <sink_obj>22</sink_obj> </item> <item class_id_reference="20" object_id="_126"> <id>131</id> <edge_type>1</edge_type> <source_obj>20</source_obj> <sink_obj>23</sink_obj> </item> <item class_id_reference="20" object_id="_127"> <id>133</id> <edge_type>1</edge_type> <source_obj>132</source_obj> <sink_obj>23</sink_obj> </item> <item class_id_reference="20" object_id="_128"> <id>134</id> <edge_type>1</edge_type> <source_obj>20</source_obj> <sink_obj>24</sink_obj> </item> <item class_id_reference="20" object_id="_129"> <id>136</id> <edge_type>1</edge_type> <source_obj>135</source_obj> <sink_obj>24</sink_obj> </item> <item class_id_reference="20" object_id="_130"> <id>137</id> <edge_type>1</edge_type> <source_obj>23</source_obj> <sink_obj>25</sink_obj> </item> <item class_id_reference="20" object_id="_131"> <id>138</id> <edge_type>2</edge_type> <source_obj>113</source_obj> <sink_obj>25</sink_obj> </item> <item class_id_reference="20" object_id="_132"> <id>139</id> <edge_type>2</edge_type> <source_obj>115</source_obj> <sink_obj>25</sink_obj> </item> <item class_id_reference="20" object_id="_133"> <id>140</id> <edge_type>1</edge_type> <source_obj>22</source_obj> <sink_obj>29</sink_obj> </item> <item class_id_reference="20" object_id="_134"> <id>142</id> <edge_type>1</edge_type> <source_obj>141</source_obj> <sink_obj>29</sink_obj> </item> <item class_id_reference="20" object_id="_135"> <id>143</id> <edge_type>1</edge_type> <source_obj>29</source_obj> <sink_obj>30</sink_obj> </item> <item class_id_reference="20" object_id="_136"> <id>144</id> <edge_type>1</edge_type> <source_obj>122</source_obj> <sink_obj>30</sink_obj> </item> <item class_id_reference="20" object_id="_137"> <id>145</id> <edge_type>1</edge_type> <source_obj>22</source_obj> <sink_obj>30</sink_obj> </item> <item class_id_reference="20" object_id="_138"> <id>146</id> <edge_type>1</edge_type> <source_obj>21</source_obj> <sink_obj>31</sink_obj> </item> <item class_id_reference="20" object_id="_139"> <id>148</id> <edge_type>1</edge_type> <source_obj>147</source_obj> <sink_obj>31</sink_obj> </item> <item class_id_reference="20" object_id="_140"> <id>149</id> <edge_type>1</edge_type> <source_obj>29</source_obj> <sink_obj>32</sink_obj> </item> <item class_id_reference="20" object_id="_141"> <id>150</id> <edge_type>1</edge_type> <source_obj>31</source_obj> <sink_obj>32</sink_obj> </item> <item class_id_reference="20" object_id="_142"> <id>151</id> <edge_type>1</edge_type> <source_obj>21</source_obj> <sink_obj>32</sink_obj> </item> <item class_id_reference="20" object_id="_143"> <id>152</id> <edge_type>1</edge_type> <source_obj>32</source_obj> <sink_obj>33</sink_obj> </item> <item class_id_reference="20" object_id="_144"> <id>153</id> <edge_type>1</edge_type> <source_obj>30</source_obj> <sink_obj>37</sink_obj> </item> <item class_id_reference="20" object_id="_145"> <id>154</id> <edge_type>1</edge_type> <source_obj>10</source_obj> <sink_obj>38</sink_obj> </item> <item class_id_reference="20" object_id="_146"> <id>156</id> <edge_type>1</edge_type> <source_obj>155</source_obj> <sink_obj>38</sink_obj> </item> <item class_id_reference="20" object_id="_147"> <id>157</id> <edge_type>1</edge_type> <source_obj>37</source_obj> <sink_obj>38</sink_obj> </item> <item class_id_reference="20" object_id="_148"> <id>158</id> <edge_type>1</edge_type> <source_obj>38</source_obj> <sink_obj>39</sink_obj> </item> <item class_id_reference="20" object_id="_149"> <id>159</id> <edge_type>1</edge_type> <source_obj>39</source_obj> <sink_obj>40</sink_obj> </item> <item class_id_reference="20" object_id="_150"> <id>160</id> <edge_type>1</edge_type> <source_obj>1</source_obj> <sink_obj>41</sink_obj> </item> <item class_id_reference="20" object_id="_151"> <id>161</id> <edge_type>1</edge_type> <source_obj>155</source_obj> <sink_obj>41</sink_obj> </item> <item class_id_reference="20" object_id="_152"> <id>162</id> <edge_type>1</edge_type> <source_obj>33</source_obj> <sink_obj>41</sink_obj> </item> <item class_id_reference="20" object_id="_153"> <id>163</id> <edge_type>1</edge_type> <source_obj>41</source_obj> <sink_obj>42</sink_obj> </item> <item class_id_reference="20" object_id="_154"> <id>164</id> <edge_type>1</edge_type> <source_obj>42</source_obj> <sink_obj>43</sink_obj> </item> <item class_id_reference="20" object_id="_155"> <id>165</id> <edge_type>1</edge_type> <source_obj>43</source_obj> <sink_obj>44</sink_obj> </item> <item class_id_reference="20" object_id="_156"> <id>166</id> <edge_type>1</edge_type> <source_obj>40</source_obj> <sink_obj>44</sink_obj> </item> <item class_id_reference="20" object_id="_157"> <id>167</id> <edge_type>1</edge_type> <source_obj>11</source_obj> <sink_obj>45</sink_obj> </item> <item class_id_reference="20" object_id="_158"> <id>168</id> <edge_type>1</edge_type> <source_obj>155</source_obj> <sink_obj>45</sink_obj> </item> <item class_id_reference="20" object_id="_159"> <id>169</id> <edge_type>1</edge_type> <source_obj>37</source_obj> <sink_obj>45</sink_obj> </item> <item class_id_reference="20" object_id="_160"> <id>170</id> <edge_type>1</edge_type> <source_obj>45</source_obj> <sink_obj>46</sink_obj> </item> <item class_id_reference="20" object_id="_161"> <id>171</id> <edge_type>1</edge_type> <source_obj>46</source_obj> <sink_obj>47</sink_obj> </item> <item class_id_reference="20" object_id="_162"> <id>172</id> <edge_type>1</edge_type> <source_obj>2</source_obj> <sink_obj>48</sink_obj> </item> <item class_id_reference="20" object_id="_163"> <id>173</id> <edge_type>1</edge_type> <source_obj>155</source_obj> <sink_obj>48</sink_obj> </item> <item class_id_reference="20" object_id="_164"> <id>174</id> <edge_type>1</edge_type> <source_obj>33</source_obj> <sink_obj>48</sink_obj> </item> <item class_id_reference="20" object_id="_165"> <id>175</id> <edge_type>1</edge_type> <source_obj>48</source_obj> <sink_obj>49</sink_obj> </item> <item class_id_reference="20" object_id="_166"> <id>176</id> <edge_type>1</edge_type> <source_obj>49</source_obj> <sink_obj>50</sink_obj> </item> <item class_id_reference="20" object_id="_167"> <id>177</id> <edge_type>1</edge_type> <source_obj>50</source_obj> <sink_obj>51</sink_obj> </item> <item class_id_reference="20" object_id="_168"> <id>178</id> <edge_type>1</edge_type> <source_obj>47</source_obj> <sink_obj>51</sink_obj> </item> <item class_id_reference="20" object_id="_169"> <id>179</id> <edge_type>1</edge_type> <source_obj>12</source_obj> <sink_obj>52</sink_obj> </item> <item class_id_reference="20" object_id="_170"> <id>180</id> <edge_type>1</edge_type> <source_obj>155</source_obj> <sink_obj>52</sink_obj> </item> <item class_id_reference="20" object_id="_171"> <id>181</id> <edge_type>1</edge_type> <source_obj>37</source_obj> <sink_obj>52</sink_obj> </item> <item class_id_reference="20" object_id="_172"> <id>182</id> <edge_type>1</edge_type> <source_obj>52</source_obj> <sink_obj>53</sink_obj> </item> <item class_id_reference="20" object_id="_173"> <id>183</id> <edge_type>1</edge_type> <source_obj>53</source_obj> <sink_obj>54</sink_obj> </item> <item class_id_reference="20" object_id="_174"> <id>184</id> <edge_type>1</edge_type> <source_obj>3</source_obj> <sink_obj>55</sink_obj> </item> <item class_id_reference="20" object_id="_175"> <id>185</id> <edge_type>1</edge_type> <source_obj>155</source_obj> <sink_obj>55</sink_obj> </item> <item class_id_reference="20" object_id="_176"> <id>186</id> <edge_type>1</edge_type> <source_obj>33</source_obj> <sink_obj>55</sink_obj> </item> <item class_id_reference="20" object_id="_177"> <id>187</id> <edge_type>1</edge_type> <source_obj>55</source_obj> <sink_obj>56</sink_obj> </item> <item class_id_reference="20" object_id="_178"> <id>188</id> <edge_type>1</edge_type> <source_obj>56</source_obj> <sink_obj>57</sink_obj> </item> <item class_id_reference="20" object_id="_179"> <id>189</id> <edge_type>1</edge_type> <source_obj>57</source_obj> <sink_obj>58</sink_obj> </item> <item class_id_reference="20" object_id="_180"> <id>190</id> <edge_type>1</edge_type> <source_obj>54</source_obj> <sink_obj>58</sink_obj> </item> <item class_id_reference="20" object_id="_181"> <id>191</id> <edge_type>1</edge_type> <source_obj>13</source_obj> <sink_obj>59</sink_obj> </item> <item class_id_reference="20" object_id="_182"> <id>192</id> <edge_type>1</edge_type> <source_obj>155</source_obj> <sink_obj>59</sink_obj> </item> <item class_id_reference="20" object_id="_183"> <id>193</id> <edge_type>1</edge_type> <source_obj>37</source_obj> <sink_obj>59</sink_obj> </item> <item class_id_reference="20" object_id="_184"> <id>194</id> <edge_type>1</edge_type> <source_obj>59</source_obj> <sink_obj>60</sink_obj> </item> <item class_id_reference="20" object_id="_185"> <id>195</id> <edge_type>1</edge_type> <source_obj>60</source_obj> <sink_obj>61</sink_obj> </item> <item class_id_reference="20" object_id="_186"> <id>196</id> <edge_type>1</edge_type> <source_obj>4</source_obj> <sink_obj>62</sink_obj> </item> <item class_id_reference="20" object_id="_187"> <id>197</id> <edge_type>1</edge_type> <source_obj>155</source_obj> <sink_obj>62</sink_obj> </item> <item class_id_reference="20" object_id="_188"> <id>198</id> <edge_type>1</edge_type> <source_obj>33</source_obj> <sink_obj>62</sink_obj> </item> <item class_id_reference="20" object_id="_189"> <id>199</id> <edge_type>1</edge_type> <source_obj>62</source_obj> <sink_obj>63</sink_obj> </item> <item class_id_reference="20" object_id="_190"> <id>200</id> <edge_type>1</edge_type> <source_obj>63</source_obj> <sink_obj>64</sink_obj> </item> <item class_id_reference="20" object_id="_191"> <id>201</id> <edge_type>1</edge_type> <source_obj>64</source_obj> <sink_obj>65</sink_obj> </item> <item class_id_reference="20" object_id="_192"> <id>202</id> <edge_type>1</edge_type> <source_obj>61</source_obj> <sink_obj>65</sink_obj> </item> <item class_id_reference="20" object_id="_193"> <id>203</id> <edge_type>1</edge_type> <source_obj>14</source_obj> <sink_obj>66</sink_obj> </item> <item class_id_reference="20" object_id="_194"> <id>204</id> <edge_type>1</edge_type> <source_obj>155</source_obj> <sink_obj>66</sink_obj> </item> <item class_id_reference="20" object_id="_195"> <id>205</id> <edge_type>1</edge_type> <source_obj>37</source_obj> <sink_obj>66</sink_obj> </item> <item class_id_reference="20" object_id="_196"> <id>206</id> <edge_type>1</edge_type> <source_obj>66</source_obj> <sink_obj>67</sink_obj> </item> <item class_id_reference="20" object_id="_197"> <id>207</id> <edge_type>1</edge_type> <source_obj>67</source_obj> <sink_obj>68</sink_obj> </item> <item class_id_reference="20" object_id="_198"> <id>208</id> <edge_type>1</edge_type> <source_obj>5</source_obj> <sink_obj>69</sink_obj> </item> <item class_id_reference="20" object_id="_199"> <id>209</id> <edge_type>1</edge_type> <source_obj>155</source_obj> <sink_obj>69</sink_obj> </item> <item class_id_reference="20" object_id="_200"> <id>210</id> <edge_type>1</edge_type> <source_obj>33</source_obj> <sink_obj>69</sink_obj> </item> <item class_id_reference="20" object_id="_201"> <id>211</id> <edge_type>1</edge_type> <source_obj>69</source_obj> <sink_obj>70</sink_obj> </item> <item class_id_reference="20" object_id="_202"> <id>212</id> <edge_type>1</edge_type> <source_obj>70</source_obj> <sink_obj>71</sink_obj> </item> <item class_id_reference="20" object_id="_203"> <id>213</id> <edge_type>1</edge_type> <source_obj>71</source_obj> <sink_obj>72</sink_obj> </item> <item class_id_reference="20" object_id="_204"> <id>214</id> <edge_type>1</edge_type> <source_obj>68</source_obj> <sink_obj>72</sink_obj> </item> <item class_id_reference="20" object_id="_205"> <id>215</id> <edge_type>1</edge_type> <source_obj>15</source_obj> <sink_obj>73</sink_obj> </item> <item class_id_reference="20" object_id="_206"> <id>216</id> <edge_type>1</edge_type> <source_obj>155</source_obj> <sink_obj>73</sink_obj> </item> <item class_id_reference="20" object_id="_207"> <id>217</id> <edge_type>1</edge_type> <source_obj>37</source_obj> <sink_obj>73</sink_obj> </item> <item class_id_reference="20" object_id="_208"> <id>218</id> <edge_type>1</edge_type> <source_obj>73</source_obj> <sink_obj>74</sink_obj> </item> <item class_id_reference="20" object_id="_209"> <id>219</id> <edge_type>1</edge_type> <source_obj>74</source_obj> <sink_obj>75</sink_obj> </item> <item class_id_reference="20" object_id="_210"> <id>220</id> <edge_type>1</edge_type> <source_obj>6</source_obj> <sink_obj>76</sink_obj> </item> <item class_id_reference="20" object_id="_211"> <id>221</id> <edge_type>1</edge_type> <source_obj>155</source_obj> <sink_obj>76</sink_obj> </item> <item class_id_reference="20" object_id="_212"> <id>222</id> <edge_type>1</edge_type> <source_obj>33</source_obj> <sink_obj>76</sink_obj> </item> <item class_id_reference="20" object_id="_213"> <id>223</id> <edge_type>1</edge_type> <source_obj>76</source_obj> <sink_obj>77</sink_obj> </item> <item class_id_reference="20" object_id="_214"> <id>224</id> <edge_type>1</edge_type> <source_obj>77</source_obj> <sink_obj>78</sink_obj> </item> <item class_id_reference="20" object_id="_215"> <id>225</id> <edge_type>1</edge_type> <source_obj>78</source_obj> <sink_obj>79</sink_obj> </item> <item class_id_reference="20" object_id="_216"> <id>226</id> <edge_type>1</edge_type> <source_obj>75</source_obj> <sink_obj>79</sink_obj> </item> <item class_id_reference="20" object_id="_217"> <id>227</id> <edge_type>1</edge_type> <source_obj>16</source_obj> <sink_obj>80</sink_obj> </item> <item class_id_reference="20" object_id="_218"> <id>228</id> <edge_type>1</edge_type> <source_obj>155</source_obj> <sink_obj>80</sink_obj> </item> <item class_id_reference="20" object_id="_219"> <id>229</id> <edge_type>1</edge_type> <source_obj>37</source_obj> <sink_obj>80</sink_obj> </item> <item class_id_reference="20" object_id="_220"> <id>230</id> <edge_type>1</edge_type> <source_obj>80</source_obj> <sink_obj>81</sink_obj> </item> <item class_id_reference="20" object_id="_221"> <id>231</id> <edge_type>1</edge_type> <source_obj>81</source_obj> <sink_obj>82</sink_obj> </item> <item class_id_reference="20" object_id="_222"> <id>232</id> <edge_type>1</edge_type> <source_obj>7</source_obj> <sink_obj>83</sink_obj> </item> <item class_id_reference="20" object_id="_223"> <id>233</id> <edge_type>1</edge_type> <source_obj>155</source_obj> <sink_obj>83</sink_obj> </item> <item class_id_reference="20" object_id="_224"> <id>234</id> <edge_type>1</edge_type> <source_obj>33</source_obj> <sink_obj>83</sink_obj> </item> <item class_id_reference="20" object_id="_225"> <id>235</id> <edge_type>1</edge_type> <source_obj>83</source_obj> <sink_obj>84</sink_obj> </item> <item class_id_reference="20" object_id="_226"> <id>236</id> <edge_type>1</edge_type> <source_obj>84</source_obj> <sink_obj>85</sink_obj> </item> <item class_id_reference="20" object_id="_227"> <id>237</id> <edge_type>1</edge_type> <source_obj>85</source_obj> <sink_obj>86</sink_obj> </item> <item class_id_reference="20" object_id="_228"> <id>238</id> <edge_type>1</edge_type> <source_obj>82</source_obj> <sink_obj>86</sink_obj> </item> <item class_id_reference="20" object_id="_229"> <id>239</id> <edge_type>1</edge_type> <source_obj>17</source_obj> <sink_obj>87</sink_obj> </item> <item class_id_reference="20" object_id="_230"> <id>240</id> <edge_type>1</edge_type> <source_obj>155</source_obj> <sink_obj>87</sink_obj> </item> <item class_id_reference="20" object_id="_231"> <id>241</id> <edge_type>1</edge_type> <source_obj>37</source_obj> <sink_obj>87</sink_obj> </item> <item class_id_reference="20" object_id="_232"> <id>242</id> <edge_type>1</edge_type> <source_obj>87</source_obj> <sink_obj>88</sink_obj> </item> <item class_id_reference="20" object_id="_233"> <id>243</id> <edge_type>1</edge_type> <source_obj>88</source_obj> <sink_obj>89</sink_obj> </item> <item class_id_reference="20" object_id="_234"> <id>244</id> <edge_type>1</edge_type> <source_obj>8</source_obj> <sink_obj>90</sink_obj> </item> <item class_id_reference="20" object_id="_235"> <id>245</id> <edge_type>1</edge_type> <source_obj>155</source_obj> <sink_obj>90</sink_obj> </item> <item class_id_reference="20" object_id="_236"> <id>246</id> <edge_type>1</edge_type> <source_obj>33</source_obj> <sink_obj>90</sink_obj> </item> <item class_id_reference="20" object_id="_237"> <id>247</id> <edge_type>1</edge_type> <source_obj>90</source_obj> <sink_obj>91</sink_obj> </item> <item class_id_reference="20" object_id="_238"> <id>248</id> <edge_type>1</edge_type> <source_obj>91</source_obj> <sink_obj>92</sink_obj> </item> <item class_id_reference="20" object_id="_239"> <id>249</id> <edge_type>1</edge_type> <source_obj>92</source_obj> <sink_obj>93</sink_obj> </item> <item class_id_reference="20" object_id="_240"> <id>250</id> <edge_type>1</edge_type> <source_obj>89</source_obj> <sink_obj>93</sink_obj> </item> <item class_id_reference="20" object_id="_241"> <id>251</id> <edge_type>1</edge_type> <source_obj>44</source_obj> <sink_obj>94</sink_obj> </item> <item class_id_reference="20" object_id="_242"> <id>252</id> <edge_type>1</edge_type> <source_obj>51</source_obj> <sink_obj>94</sink_obj> </item> <item class_id_reference="20" object_id="_243"> <id>253</id> <edge_type>1</edge_type> <source_obj>58</source_obj> <sink_obj>95</sink_obj> </item> <item class_id_reference="20" object_id="_244"> <id>254</id> <edge_type>1</edge_type> <source_obj>65</source_obj> <sink_obj>95</sink_obj> </item> <item class_id_reference="20" object_id="_245"> <id>255</id> <edge_type>1</edge_type> <source_obj>95</source_obj> <sink_obj>96</sink_obj> </item> <item class_id_reference="20" object_id="_246"> <id>256</id> <edge_type>1</edge_type> <source_obj>94</source_obj> <sink_obj>96</sink_obj> </item> <item class_id_reference="20" object_id="_247"> <id>257</id> <edge_type>1</edge_type> <source_obj>72</source_obj> <sink_obj>97</sink_obj> </item> <item class_id_reference="20" object_id="_248"> <id>258</id> <edge_type>1</edge_type> <source_obj>79</source_obj> <sink_obj>97</sink_obj> </item> <item class_id_reference="20" object_id="_249"> <id>259</id> <edge_type>1</edge_type> <source_obj>93</source_obj> <sink_obj>98</sink_obj> </item> <item class_id_reference="20" object_id="_250"> <id>261</id> <edge_type>1</edge_type> <source_obj>260</source_obj> <sink_obj>98</sink_obj> </item> <item class_id_reference="20" object_id="_251"> <id>262</id> <edge_type>1</edge_type> <source_obj>98</source_obj> <sink_obj>99</sink_obj> </item> <item class_id_reference="20" object_id="_252"> <id>263</id> <edge_type>1</edge_type> <source_obj>86</source_obj> <sink_obj>99</sink_obj> </item> <item class_id_reference="20" object_id="_253"> <id>264</id> <edge_type>1</edge_type> <source_obj>99</source_obj> <sink_obj>100</sink_obj> </item> <item class_id_reference="20" object_id="_254"> <id>265</id> <edge_type>1</edge_type> <source_obj>97</source_obj> <sink_obj>100</sink_obj> </item> <item class_id_reference="20" object_id="_255"> <id>266</id> <edge_type>1</edge_type> <source_obj>100</source_obj> <sink_obj>101</sink_obj> </item> <item class_id_reference="20" object_id="_256"> <id>267</id> <edge_type>1</edge_type> <source_obj>96</source_obj> <sink_obj>101</sink_obj> </item> <item class_id_reference="20" object_id="_257"> <id>270</id> <edge_type>1</edge_type> <source_obj>101</source_obj> <sink_obj>102</sink_obj> </item> <item class_id_reference="20" object_id="_258"> <id>272</id> <edge_type>1</edge_type> <source_obj>271</source_obj> <sink_obj>102</sink_obj> </item> <item class_id_reference="20" object_id="_259"> <id>274</id> <edge_type>1</edge_type> <source_obj>273</source_obj> <sink_obj>102</sink_obj> </item> <item class_id_reference="20" object_id="_260"> <id>275</id> <edge_type>1</edge_type> <source_obj>30</source_obj> <sink_obj>103</sink_obj> </item> <item class_id_reference="20" object_id="_261"> <id>278</id> <edge_type>1</edge_type> <source_obj>32</source_obj> <sink_obj>104</sink_obj> </item> <item class_id_reference="20" object_id="_262"> <id>280</id> <edge_type>1</edge_type> <source_obj>279</source_obj> <sink_obj>104</sink_obj> </item> <item class_id_reference="20" object_id="_263"> <id>281</id> <edge_type>1</edge_type> <source_obj>104</source_obj> <sink_obj>105</sink_obj> </item> <item class_id_reference="20" object_id="_264"> <id>282</id> <edge_type>1</edge_type> <source_obj>103</source_obj> <sink_obj>106</sink_obj> </item> <item class_id_reference="20" object_id="_265"> <id>283</id> <edge_type>1</edge_type> <source_obj>105</source_obj> <sink_obj>106</sink_obj> </item> <item class_id_reference="20" object_id="_266"> <id>284</id> <edge_type>1</edge_type> <source_obj>106</source_obj> <sink_obj>107</sink_obj> </item> <item class_id_reference="20" object_id="_267"> <id>285</id> <edge_type>1</edge_type> <source_obj>9</source_obj> <sink_obj>108</sink_obj> </item> <item class_id_reference="20" object_id="_268"> <id>286</id> <edge_type>1</edge_type> <source_obj>155</source_obj> <sink_obj>108</sink_obj> </item> <item class_id_reference="20" object_id="_269"> <id>287</id> <edge_type>1</edge_type> <source_obj>107</source_obj> <sink_obj>108</sink_obj> </item> <item class_id_reference="20" object_id="_270"> <id>288</id> <edge_type>1</edge_type> <source_obj>102</source_obj> <sink_obj>109</sink_obj> </item> <item class_id_reference="20" object_id="_271"> <id>289</id> <edge_type>1</edge_type> <source_obj>108</source_obj> <sink_obj>109</sink_obj> </item> <item class_id_reference="20" object_id="_272"> <id>290</id> <edge_type>1</edge_type> <source_obj>30</source_obj> <sink_obj>111</sink_obj> </item> <item class_id_reference="20" object_id="_273"> <id>291</id> <edge_type>1</edge_type> <source_obj>147</source_obj> <sink_obj>111</sink_obj> </item> <item class_id_reference="20" object_id="_274"> <id>292</id> <edge_type>2</edge_type> <source_obj>26</source_obj> <sink_obj>112</sink_obj> </item> <item class_id_reference="20" object_id="_275"> <id>323</id> <edge_type>2</edge_type> <source_obj>19</source_obj> <sink_obj>26</sink_obj> </item> <item class_id_reference="20" object_id="_276"> <id>324</id> <edge_type>2</edge_type> <source_obj>26</source_obj> <sink_obj>115</sink_obj> </item> <item class_id_reference="20" object_id="_277"> <id>325</id> <edge_type>2</edge_type> <source_obj>26</source_obj> <sink_obj>113</sink_obj> </item> <item class_id_reference="20" object_id="_278"> <id>326</id> <edge_type>2</edge_type> <source_obj>113</source_obj> <sink_obj>26</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="_279"> <mId>1</mId> <mTag>dct_Loop_Row_DCT_Loop_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>69</mMinLatency> <mMaxLatency>-1</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"></mDfPipe> </item> <item class_id_reference="22" object_id="_280"> <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>19</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="_281"> <mId>3</mId> <mTag>Row_DCT_Loop_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>26</item> <item>113</item> </basic_blocks> <mII>1</mII> <mDepth>5</mDepth> <mMinTripCount>64</mMinTripCount> <mMaxTripCount>64</mMaxTripCount> <mMinLatency>67</mMinLatency> <mMaxLatency>-1</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"></mDfPipe> </item> <item class_id_reference="22" object_id="_282"> <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>115</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="25" tracking_level="1" version="0" object_id="_283"> <dp_component_resource class_id="26" 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="27" 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="28" tracking_level="0" version="0"> <count>88</count> <item_version>0</item_version> <item class_id="29" tracking_level="0" version="0"> <first>18</first> <second class_id="30" tracking_level="0" version="0"> <first>0</first> <second>0</second> </second> </item> <item> <first>20</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>21</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>22</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>23</first> <second> <first>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>29</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>30</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>31</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>32</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>33</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>39</first> <second> <first>1</first> <second>1</second> </second> </item> <item> <first>40</first> <second> <first>3</first> <second>0</second> </second> </item> <item> <first>41</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>42</first> <second> <first>1</first> <second>1</second> </second> </item> <item> <first>43</first> <second> <first>3</first> <second>0</second> </second> </item> <item> <first>44</first> <second> <first>3</first> <second>0</second> </second> </item> <item> <first>45</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>46</first> <second> <first>1</first> <second>1</second> </second> </item> <item> <first>47</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>48</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>49</first> <second> <first>1</first> <second>1</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>1</first> <second>0</second> </second> </item> <item> <first>53</first> <second> <first>1</first> <second>1</second> </second> </item> <item> <first>54</first> <second> <first>3</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>3</first> <second>0</second> </second> </item> <item> <first>59</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>60</first> <second> <first>1</first> <second>1</second> </second> </item> <item> <first>61</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>62</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>63</first> <second> <first>1</first> <second>1</second> </second> </item> <item> <first>64</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>65</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>66</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>67</first> <second> <first>1</first> <second>1</second> </second> </item> <item> <first>68</first> <second> <first>3</first> <second>0</second> </second> </item> <item> <first>69</first> <second> <first>1</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>1</first> <second>0</second> </second> </item> <item> <first>74</first> <second> <first>1</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>1</first> <second>0</second> </second> </item> <item> <first>77</first> <second> <first>1</first> <second>1</second> </second> </item> <item> <first>78</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>79</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>80</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>81</first> <second> <first>1</first> <second>1</second> </second> </item> <item> <first>82</first> <second> <first>3</first> <second>0</second> </second> </item> <item> <first>83</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>84</first> <second> <first>1</first> <second>1</second> </second> </item> <item> <first>85</first> <second> <first>3</first> <second>0</second> </second> </item> <item> <first>86</first> <second> <first>3</first> <second>0</second> </second> </item> <item> <first>87</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>88</first> <second> <first>1</first> <second>1</second> </second> </item> <item> <first>89</first> <second> <first>3</first> <second>0</second> </second> </item> <item> <first>90</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>91</first> <second> <first>1</first> <second>1</second> </second> </item> <item> <first>92</first> <second> <first>3</first> <second>0</second> </second> </item> <item> <first>93</first> <second> <first>3</first> <second>0</second> </second> </item> <item> <first>94</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>95</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>96</first> <second> <first>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>3</first> <second>0</second> </second> </item> <item> <first>99</first> <second> <first>3</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>5</first> <second>0</second> </second> </item> <item> <first>107</first> <second> <first>5</first> <second>0</second> </second> </item> <item> <first>108</first> <second> <first>5</first> <second>0</second> </second> </item> <item> <first>109</first> <second> <first>5</first> <second>0</second> </second> </item> <item> <first>111</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>112</first> <second> <first>5</first> <second>0</second> </second> </item> <item> <first>114</first> <second> <first>2</first> <second>0</second> </second> </item> </node_label_latency> <bblk_ent_exit class_id="31" tracking_level="0" version="0"> <count>4</count> <item_version>0</item_version> <item class_id="32" tracking_level="0" version="0"> <first>19</first> <second class_id="33" tracking_level="0" version="0"> <first>0</first> <second>0</second> </second> </item> <item> <first>26</first> <second> <first>1</first> <second>1</second> </second> </item> <item> <first>113</first> <second> <first>1</first> <second>5</second> </second> </item> <item> <first>115</first> <second> <first>2</first> <second>2</second> </second> </item> </bblk_ent_exit> <regions class_id="34" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="35" tracking_level="1" version="0" object_id="_284"> <region_name>Row_DCT_Loop_DCT_Outer_Loop</region_name> <basic_blocks> <count>2</count> <item_version>0</item_version> <item>26</item> <item>113</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>5</pipe_depth> </item> </regions> <dp_fu_nodes class_id="36" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </dp_fu_nodes> <dp_fu_nodes_expression class_id="37" 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="38" 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="39" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </dp_port_io_nodes> <port2core class_id="40" 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>
26.106869
98
0.557925
50365a1c24f69596bacc27dc4a9914f7566a9f3f
1,204
adb
Ada
src/gdb/gdb-7.11/gdb/testsuite/gdb.ada/exprs/p.adb
alrooney/unum-sdk
bbccb10b0cd3500feccbbef22e27ea111c3d18eb
[ "Apache-2.0" ]
31
2018-08-01T21:25:24.000Z
2022-02-14T07:52:34.000Z
src/gdb/gdb-7.11/gdb/testsuite/gdb.ada/exprs/p.adb
alrooney/unum-sdk
bbccb10b0cd3500feccbbef22e27ea111c3d18eb
[ "Apache-2.0" ]
40
2018-12-03T19:48:52.000Z
2021-03-10T06:34:26.000Z
src/gdb/gdb-7.11/gdb/testsuite/gdb.ada/exprs/p.adb
alrooney/unum-sdk
bbccb10b0cd3500feccbbef22e27ea111c3d18eb
[ "Apache-2.0" ]
20
2018-11-16T21:19:22.000Z
2021-10-18T23:08:24.000Z
-- Copyright 2008-2016 Free Software Foundation, Inc. -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation; either version 3 of the License, or -- (at your option) any later version. -- -- This program is distributed in the hope that it will be useful, -- but WITHOUT ANY WARRANTY; without even the implied warranty of -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- GNU General Public License for more details. -- -- You should have received a copy of the GNU General Public License -- along with this program. If not, see <http://www.gnu.org/licenses/>. -- Test Ada additions to core GDB evaluation. with System; with Text_IO; use Text_IO; procedure P is type Int is range System.Min_Int .. System.Max_Int; X, Z : Int; Y : Integer; begin X := 0; -- Set X to 7 by disguised means lest a future optimizer interfere. for I in 1 .. 7 loop X := X + 1; end loop; Z := 1; Y := 0; while Z < Int'Last / X loop Z := Z * X; Y := Y + 1; end loop; Put_Line (Int'Image (X ** Y)); -- START end P;
28.666667
73
0.666113
06656de746d9e71c15c16f6c7276e7785cc5d4cb
883
ads
Ada
src/crawler-entities.ads
mulander/crawler
42374c074483475eb724ce12160c138d6afb62bd
[ "BSD-2-Clause" ]
1
2017-10-07T06:19:59.000Z
2017-10-07T06:19:59.000Z
src/crawler-entities.ads
mulander/crawler
42374c074483475eb724ce12160c138d6afb62bd
[ "BSD-2-Clause" ]
null
null
null
src/crawler-entities.ads
mulander/crawler
42374c074483475eb724ce12160c138d6afb62bd
[ "BSD-2-Clause" ]
null
null
null
with Terminal_Interface.Curses; package Crawler.Entities is package Curses renames Terminal_Interface.Curses; type Character is limited private; function Make(Symbol : Standard.Character; Row : Curses.Line_Position; Col : Curses.Column_Position) return Character; procedure Set_Position (This : out Character; Row : Curses.Line_Position; Col : Curses.Column_Position); function Get_Row (This : in Character) return Curses.Line_Position; function Get_Col (This : in Character) return Curses.Column_Position; function Get_Symbol (This : in Character) return Standard.Character; private type Character is limited record Row : Curses.Line_Position; Col : Curses.Column_Position; Symbol : Standard.Character; end record; end Crawler.Entities;
33.961538
72
0.682899
1c17c0c749d6f23aba9fc16ec8d85af4b44dbfc6
297
ads
Ada
src/hardware/hardware.ads
kisom/rover-mk1
5d7495893a7305387508755c0d5f2758660f6bf5
[ "MIT" ]
null
null
null
src/hardware/hardware.ads
kisom/rover-mk1
5d7495893a7305387508755c0d5f2758660f6bf5
[ "MIT" ]
null
null
null
src/hardware/hardware.ads
kisom/rover-mk1
5d7495893a7305387508755c0d5f2758660f6bf5
[ "MIT" ]
null
null
null
-- Hardware contains the code to control the hardware platform. This -- top level package contains initialisation for the hardware before any -- of the specific modules are set up. package Hardware is -- Init is required for any of other hardware modules. procedure Init; end Hardware;
29.7
73
0.760943
069ffeec083142879eb080a024f730588cee3e33
3,359
ads
Ada
source/libgela/gela-encodings.ads
faelys/gela-asis
48a3bee90eda9f0c9d958b4e3c80a5a9b1c65253
[ "BSD-3-Clause" ]
4
2016-02-05T15:51:56.000Z
2022-03-25T20:38:32.000Z
source/libgela/gela-encodings.ads
faelys/gela-asis
48a3bee90eda9f0c9d958b4e3c80a5a9b1c65253
[ "BSD-3-Clause" ]
null
null
null
source/libgela/gela-encodings.ads
faelys/gela-asis
48a3bee90eda9f0c9d958b4e3c80a5a9b1c65253
[ "BSD-3-Clause" ]
null
null
null
------------------------------------------------------------------------------ -- G E L A A S I S -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- - - - - - - - - - - - - - - - -- -- Read copyright and license at the end of this file -- ------------------------------------------------------------------------------ -- $Revision: 209 $ $Date: 2013-11-30 21:03:24 +0200 (Сб., 30 нояб. 2013) $ -- Purpose: -- List of supported encodings package Gela.Encodings is pragma Pure; type Encoding is (UTF_8, UTF_16, ISO_8859_1, ISO_8859_2, ISO_8859_3, ISO_8859_4, ISO_8859_5, ISO_8859_6, ISO_8859_7, ISO_8859_8, ISO_8859_9, ISO_8859_10, ISO_8859_11, ISO_8859_13, ISO_8859_14, ISO_8859_15, ISO_8859_16, CP_037, CP_424, CP_437, CP_500, CP_875, CP_737, CP_775, CP_850, CP_852, CP_855, CP_856, CP_857, CP_860, CP_861, CP_862, CP_863, CP_864, CP_865, CP_866, CP_869, CP_874, CP_1006, CP_1026, CP_1250, CP_1251, CP_1252, CP_1253, CP_1254, CP_1255, CP_1256, CP_1257, CP_1258, KOI8_R, AtariST); subtype Fixed_Width_Encoding is Encoding range ISO_8859_1 .. AtariST; end Gela.Encodings; ------------------------------------------------------------------------------ -- Copyright (c) 2008, Maxim Reznik -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions are met: -- -- * Redistributions of source code must retain the above copyright notice, -- this list of conditions and the following disclaimer. -- * Redistributions in binary form must reproduce the above copyright -- notice, this list of conditions and the following disclaimer in the -- documentation and/or other materials provided with the distribution. -- * Neither the name of the Maxim Reznik, IE nor the names of its -- contributors may be used to endorse or promote products derived from -- this software without specific prior written permission. -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -- ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE -- LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -- CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -- SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -- INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -- CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -- POSSIBILITY OF SUCH DAMAGE. -- ------------------------------------------------------------------------------
49.397059
79
0.566538
069d029917fece650014f8aa09851af48f6b6cc4
12,254
adb
Ada
examples/src/examples-match_patterns.adb
TNO/Rejuvenation-Ada
8113ec28da3923ccde40d76cbab70e0e614f4b75
[ "BSD-3-Clause" ]
1
2022-03-08T13:00:47.000Z
2022-03-08T13:00:47.000Z
src/examples/Rejuvenation_Examples/src/examples-match_patterns.adb
selroc/Renaissance-Ada
39230b34aced4a9d83831be346ca103136c53715
[ "BSD-3-Clause" ]
null
null
null
src/examples/Rejuvenation_Examples/src/examples-match_patterns.adb
selroc/Renaissance-Ada
39230b34aced4a9d83831be346ca103136c53715
[ "BSD-3-Clause" ]
null
null
null
with Ada.Text_IO; use Ada.Text_IO; with Libadalang.Analysis; use Libadalang.Analysis; with Libadalang.Common; use Libadalang.Common; with Rejuvenation; use Rejuvenation; with Rejuvenation.Match_Patterns; use Rejuvenation.Match_Patterns; with Rejuvenation.Simple_Factory; use Rejuvenation.Simple_Factory; with Rejuvenation.Utils; use Rejuvenation.Utils; package body Examples.Match_Patterns is -- Without placeholders -------- procedure Demo_Without_Placeholders_Success; procedure Demo_Without_Placeholders_Failure; -- With single placeholders -------- procedure Demo_With_Single_Placeholders_Success_Single_Occurrence; procedure Demo_With_Single_Placeholders_Success_Consistent_Occurrences; procedure Demo_With_Single_Placeholders_Failure_Inconsistent_Occurrences; procedure Demo_With_Single_Placeholders_Success_Consistent_Complex_Occurrences; -- With multiple placeholders -------- procedure Demo_With_Multiple_Placeholders_Success_Single_Occurrence; procedure Demo_With_Multiple_Placeholders_Success_Consistent_Occurrences; procedure Demo_With_Multiple_Placeholders_Failure_Inconsistent_Occurrences; -- With single and multiple placeholders -------- procedure Demo_With_Single_And_Multiple_Placeholders_Success; procedure Demo_With_Single_And_Multiple_Placeholders_Failure; procedure Demo is begin Put_Line ("=== Examples of Match_Pattern ======="); New_Line; Put_Line ("--- Examples without placeholders (success) -------"); New_Line; Demo_Without_Placeholders_Success; New_Line; Put_Line ("--- Examples without placeholders (failure) -------"); New_Line; Demo_Without_Placeholders_Failure; New_Line; Put_Line ("--- Examples with single placeholders " & "(success: single occurence) -------"); New_Line; Demo_With_Single_Placeholders_Success_Single_Occurrence; New_Line; Put_Line ("--- Examples with single placeholders " & "(success: consistent occurences) -------"); New_Line; Demo_With_Single_Placeholders_Success_Consistent_Occurrences; New_Line; Put_Line ("--- Examples with single placeholders " & "(failure: inconsistent occurences) -------"); New_Line; Demo_With_Single_Placeholders_Failure_Inconsistent_Occurrences; New_Line; Put_Line ("--- Examples with single placeholders " & "(success: consistent complex occurences) -------"); New_Line; Demo_With_Single_Placeholders_Success_Consistent_Complex_Occurrences; New_Line; Put_Line ("--- Examples with multiple placeholders " & "(success: single occurence) -------"); New_Line; Demo_With_Multiple_Placeholders_Success_Single_Occurrence; New_Line; Put_Line ("--- Examples with multiple placeholders " & "(success: consistent occurences) -------"); New_Line; Demo_With_Multiple_Placeholders_Success_Consistent_Occurrences; New_Line; Put_Line ("--- Examples with multiple placeholders " & "(failure: inconsistent occurences) -------"); New_Line; Demo_With_Multiple_Placeholders_Failure_Inconsistent_Occurrences; New_Line; Put_Line ("--- Examples with single and multiple placeholders " & "(success) -------"); New_Line; Demo_With_Single_And_Multiple_Placeholders_Success; New_Line; Put_Line ("--- Examples with single and multiple placeholders " & "(failure) -------"); New_Line; Demo_With_Single_And_Multiple_Placeholders_Failure; New_Line; end Demo; -- Without placeholders -------- procedure Demo_Without_Placeholders_Success is MP : Match_Pattern; Result : Boolean; begin Result := MP.Match_Full (Pattern => Analyze_Fragment ("x := 42;", Stmt_Rule).Root, Instance => Analyze_Fragment ("x := 42;", Stmt_Rule).Root); Put_Line (Result'Image); end Demo_Without_Placeholders_Success; procedure Demo_Without_Placeholders_Failure is MP : Match_Pattern; Result : Boolean; begin Rejuvenation.Match_Patterns.DIAGNOSE := True; -- To get diagnosis information Result := MP.Match_Full (Pattern => Analyze_Fragment ("x := 21;", Stmt_Rule).Root, Instance => Analyze_Fragment ("x := 42;", Stmt_Rule).Root); Rejuvenation.Match_Patterns.DIAGNOSE := False; Put_Line (Result'Image); end Demo_Without_Placeholders_Failure; -- With single placeholders -------- procedure Demo_With_Single_Placeholders_Success_Single_Occurrence is -- To be able to access placeholder nodes, do not inline Unit. Unit : constant Analysis_Unit := Analyze_Fragment ("x := 42;", Stmt_Rule); MP : Match_Pattern; Result : Boolean; begin Result := MP.Match_Full (Pattern => Analyze_Fragment ("x := $S_value;", Stmt_Rule).Root, Instance => Unit.Root); Put_Line (Result'Image & " " & MP.Has_Single ("$S_value")'Image & " " & MP.Get_Single_As_Node ("$S_value").Image & " " & MP.Get_Single_As_Raw_Signature ("$S_value")); end Demo_With_Single_Placeholders_Success_Single_Occurrence; procedure Demo_With_Single_Placeholders_Success_Consistent_Occurrences is -- To be able to access placeholder nodes, do not inline Unit. Unit : constant Analysis_Unit := Analyze_Fragment ("x := 42 + 42;", Stmt_Rule); MP : Match_Pattern; Result : Boolean; begin Result := MP.Match_Full (Pattern => Analyze_Fragment ("x := $S_value + $S_value;", Stmt_Rule).Root, Instance => Unit.Root); Put_Line (Result'Image & " " & MP.Has_Single ("$S_value")'Image & " " & MP.Get_Single_As_Node ("$S_value").Image & " " & MP.Get_Single_As_Raw_Signature ("$S_value")); end Demo_With_Single_Placeholders_Success_Consistent_Occurrences; procedure Demo_With_Single_Placeholders_Failure_Inconsistent_Occurrences is -- To be able to access placeholder nodes, do not inline Unit. Unit : constant Analysis_Unit := Analyze_Fragment ("x := 42 + 21;", Stmt_Rule); MP : Match_Pattern; Result : Boolean; begin Rejuvenation.Match_Patterns.DIAGNOSE := True; -- To get diagnosis information Result := MP.Match_Full (Pattern => Analyze_Fragment ("x := $S_value + $S_value;", Stmt_Rule).Root, Instance => Unit.Root); Rejuvenation.Match_Patterns.DIAGNOSE := False; Put_Line (Result'Image & " " & MP.Has_Single ("$S_value")'Image); end Demo_With_Single_Placeholders_Failure_Inconsistent_Occurrences; procedure Demo_With_Single_Placeholders_Success_Consistent_Complex_Occurrences is -- To be able to access placeholder nodes, do not inline Unit. Unit : constant Analysis_Unit := Analyze_Fragment ("x := (f(a)+12) + (f(a)+12);", Stmt_Rule); MP : Match_Pattern; Result : Boolean; begin Result := MP.Match_Full (Pattern => Analyze_Fragment ("x := $S_value + $S_value;", Stmt_Rule).Root, Instance => Unit.Root); Put_Line (Result'Image & " " & MP.Has_Single ("$S_value")'Image & " " & MP.Get_Single_As_Node ("$S_value").Image & " " & MP.Get_Single_As_Raw_Signature ("$S_value")); end Demo_With_Single_Placeholders_Success_Consistent_Complex_Occurrences; -- With multiple placeholders -------- procedure Demo_With_Multiple_Placeholders_Success_Single_Occurrence is -- To be able to access placeholder nodes, do not inline Unit. Unit : constant Analysis_Unit := Analyze_Fragment ("x := 42;", Stmt_Rule); MP : Match_Pattern; Result : Boolean; begin Result := MP.Match_Full (Pattern => Analyze_Fragment ("x := $M_value;", Stmt_Rule).Root, Instance => Unit.Root); Put_Line (Result'Image & " " & MP.Has_Multiple ("$M_value")'Image & " " & MP.Get_Multiple_As_Nodes ("$M_value").Length'Image & " " & MP.Get_Multiple_As_Nodes ("$M_value") (1).Image); end Demo_With_Multiple_Placeholders_Success_Single_Occurrence; procedure Demo_With_Multiple_Placeholders_Success_Consistent_Occurrences is -- To be able to access placeholder nodes, do not inline Unit. Unit : constant Analysis_Unit := Analyze_Fragment ("x := 42 + 42;", Stmt_Rule); MP : Match_Pattern; Result : Boolean; begin Result := MP.Match_Full (Pattern => Analyze_Fragment ("x := $M_value + $M_value;", Stmt_Rule).Root, Instance => Unit.Root); Put_Line (Result'Image & " " & MP.Has_Multiple ("$M_value")'Image & " " & MP.Get_Multiple_As_Nodes ("$M_value").Length'Image & " " & MP.Get_Multiple_As_Nodes ("$M_value") (1).Image); end Demo_With_Multiple_Placeholders_Success_Consistent_Occurrences; procedure Demo_With_Multiple_Placeholders_Failure_Inconsistent_Occurrences is -- To be able to access placeholder nodes, do not inline Unit. Unit : constant Analysis_Unit := Analyze_Fragment ("x := 42 + 21;", Stmt_Rule); MP : Match_Pattern; Result : Boolean; begin Rejuvenation.Match_Patterns.DIAGNOSE := True; -- To get diagnosis information Result := MP.Match_Full (Pattern => Analyze_Fragment ("x := $M_value + $M_value;", Stmt_Rule).Root, Instance => Unit.Root); Rejuvenation.Match_Patterns.DIAGNOSE := False; Put_Line (Result'Image & " " & MP.Has_Multiple ("$M_value")'Image); end Demo_With_Multiple_Placeholders_Failure_Inconsistent_Occurrences; -- With single and multiple placeholders -------- procedure Demo_With_Single_And_Multiple_Placeholders_Success is -- To be able to access placeholder nodes, do not inline Unit. Unit : constant Analysis_Unit := Analyze_Fragment ("x := 42; x := 21; y := 22; x := 42;", Stmts_Rule); MP : Match_Pattern; Result : Boolean; begin Result := MP.Match_Full (Pattern => Analyze_Fragment ("x := $S_value; $M_stats; x := $S_value;", Stmts_Rule) .Root, Instance => Unit.Root); Put_Line (Result'Image & " " & MP.Has_Single ("$S_value")'Image & " " & MP.Get_Single_As_Node ("$S_value").Image & " " & MP.Get_Single_As_Raw_Signature ("$S_value") & " " & MP.Has_Multiple ("$M_stats")'Image & " " & MP.Get_Multiple_As_Nodes ("$M_stats").Length'Image & " " & MP.Get_Multiple_As_Nodes ("$M_stats") (1).Image & " " & Rejuvenation.Utils.Raw_Signature (MP.Get_Multiple_As_Nodes ("$M_stats") (1)) & " " & MP.Get_Multiple_As_Nodes ("$M_stats") (2).Image & " " & Rejuvenation.Utils.Raw_Signature (MP.Get_Multiple_As_Nodes ("$M_stats") (2))); end Demo_With_Single_And_Multiple_Placeholders_Success; procedure Demo_With_Single_And_Multiple_Placeholders_Failure is -- To be able to access placeholder nodes, do not inline Unit. Unit : constant Analysis_Unit := Analyze_Fragment ("x := 42; y := 21; y := 21; x := 43;", Stmts_Rule); MP : Match_Pattern; Result : Boolean; begin Rejuvenation.Match_Patterns.DIAGNOSE := True; -- To get diagnosis information Result := MP.Match_Full (Pattern => Analyze_Fragment ("x := $S_value; $M_stats; x := $S_value;", Stmts_Rule) .Root, Instance => Unit.Root); Rejuvenation.Match_Patterns.DIAGNOSE := False; Put_Line (Result'Image & " " & MP.Has_Single ("$S_value")'Image & " " & MP.Has_Multiple ("$M_stats")'Image); end Demo_With_Single_And_Multiple_Placeholders_Failure; end Examples.Match_Patterns;
37.588957
78
0.644361
500737e61f97b6067bcd9c219313f5ea5aee9a4d
15,919
ads
Ada
sources/glew/glew.ads
godunko/adagl
5b62d3bac6aa4e11084b4b19171dadbf805e95d6
[ "BSD-3-Clause" ]
6
2018-01-18T16:57:21.000Z
2020-01-19T07:40:12.000Z
sources/glew/glew.ads
godunko/adagl
5b62d3bac6aa4e11084b4b19171dadbf805e95d6
[ "BSD-3-Clause" ]
null
null
null
sources/glew/glew.ads
godunko/adagl
5b62d3bac6aa4e11084b4b19171dadbf805e95d6
[ "BSD-3-Clause" ]
1
2018-01-20T16:12:26.000Z
2018-01-20T16:12:26.000Z
------------------------------------------------------------------------------ -- -- -- Ada binding for OpenGL/WebGL -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2018-2020, 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. -- -- -- ------------------------------------------------------------------------------ with OpenGL; with Interfaces.C.Strings; with System; package GLEW is pragma Preelaborate; type GLuint is new Interfaces.Unsigned_32; type GLuint_Array is array (Positive range <>) of GLuint with Convention => C; type GLint_Array is array (Positive range <>) of OpenGL.GLint with Convention => C; type glewGenBuffers is access procedure (n : OpenGL.GLsizei; buffers : access GLuint) with Convention => C; glGenBuffers : glewGenBuffers with Import, Convention => C, External_Name => "__glewGenBuffers"; type glewBufferData is access procedure (target : OpenGL.GLenum; size : Interfaces.C.ptrdiff_t; data : System.Address; buffer : GLuint) with Convention => C; glBufferData : glewBufferData with Import, Convention => C, External_Name => "__glewBufferData"; type glewBindBuffer is access procedure (target : OpenGL.GLenum; buffer : GLuint) with Convention => C; glBindBuffer : glewBindBuffer with Import, Convention => C, External_Name => "__glewBindBuffer"; type glewCreateShader is access function (shaderType : OpenGL.GLenum) return GLuint with Convention => C; glCreateShader : glewCreateShader with Import, Convention => C, External_Name => "__glewCreateShader"; type glewShaderSource is access procedure (shader : GLuint; count : OpenGL.GLsizei; string : Interfaces.C.Strings.chars_ptr_array; length : GLint_Array) with Convention => C; glShaderSource : glewShaderSource with Import, Convention => C, External_Name => "__glewShaderSource"; type glewCompileShader is access procedure (shader : GLuint) with Convention => C; glCompileShader : glewCompileShader with Import, Convention => C, External_Name => "__glewCompileShader"; type glewGetShaderiv is access procedure (shader : GLuint; pname : OpenGL.GLenum; params : access OpenGL.GLint) with Convention => C; glGetShaderiv : glewGetShaderiv with Import, Convention => C, External_Name => "__glewGetShaderiv"; type glewDeleteShader is access procedure (shader : GLuint) with Convention => C; glDeleteShader : glewDeleteShader with Import, Convention => C, External_Name => "__glewDeleteShader"; type glewGetShaderInfoLog is access procedure (shader : GLuint; maxLength : OpenGL.GLsizei; length : access OpenGL.GLsizei; infoLog : out Interfaces.C.char_array) with Convention => C; glGetShaderInfoLog : glewGetShaderInfoLog with Import, Convention => C, External_Name => "__glewGetShaderInfoLog"; type glewAttachShader is access procedure (program : GLuint; shader : GLuint) with Convention => C; glAttachShader : glewAttachShader with Import, Convention => C, External_Name => "__glewAttachShader"; type glewGetAttribLocation is access function (program : GLuint; name : Interfaces.C.char_array) return OpenGL.GLint with Convention => C; glGetAttribLocation : glewGetAttribLocation with Import, Convention => C, External_Name => "__glewGetAttribLocation"; type glewUseProgram is access procedure (program : GLuint) with Convention => C; glUseProgram : glewUseProgram with Import, Convention => C, External_Name => "__glewUseProgram"; type glewCreateProgram is access function return GLuint with Convention => C; glCreateProgram : glewCreateProgram with Import, Convention => C, External_Name => "__glewCreateProgram"; type glewDisableVertexAttribArray is access procedure (index : GLuint) with Convention => C; glDisableVertexAttribArray : glewDisableVertexAttribArray with Import, Convention => C, External_Name => "__glewDisableVertexAttribArray"; type glewEnableVertexAttribArray is access procedure (index : GLuint) with Convention => C; glEnableVertexAttribArray : glewEnableVertexAttribArray with Import, Convention => C, External_Name => "__glewEnableVertexAttribArray"; type glewGetProgramiv is access procedure (program : GLuint; pname : OpenGL.GLenum; params : access OpenGL.GLint) with Convention => C; glGetProgramiv : glewGetProgramiv with Import, Convention => C, External_Name => "__glewGetProgramiv"; type glewLinkProgram is access procedure (index : GLuint) with Convention => C; glLinkProgram : glewLinkProgram with Import, Convention => C, External_Name => "__glewLinkProgram"; type glewVertexAttribPointer is access procedure (index : GLuint; size : OpenGL.GLint; kind : OpenGL.GLenum; normalized : OpenGL.GLint; stride : OpenGL.GLsizei; pointer : System.Address) with Convention => C; glVertexAttribPointer : glewVertexAttribPointer with Import, Convention => C, External_Name => "__glewVertexAttribPointer"; type glewVertexAttrib1f is access procedure (index : GLuint; v0 : OpenGL.GLfloat) with Convention => C; glVertexAttrib1f : glewVertexAttrib1f with Import, Convention => C, External_Name => "__glewVertexAttrib1f"; type glewVertexAttrib2f is access procedure (index : GLuint; v0 : OpenGL.GLfloat; v1 : OpenGL.GLfloat) with Convention => C; glVertexAttrib2f : glewVertexAttrib2f with Import, Convention => C, External_Name => "__glewVertexAttrib2f"; type glewVertexAttrib3f is access procedure (index : GLuint; v0 : OpenGL.GLfloat; v1 : OpenGL.GLfloat; v2 : OpenGL.GLfloat) with Convention => C; glVertexAttrib3f : glewVertexAttrib3f with Import, Convention => C, External_Name => "__glewVertexAttrib3f"; type glewVertexAttrib4f is access procedure (index : GLuint; v0 : OpenGL.GLfloat; v1 : OpenGL.GLfloat; v2 : OpenGL.GLfloat; v4 : OpenGL.GLfloat) with Convention => C; glVertexAttrib4f : glewVertexAttrib4f with Import, Convention => C, External_Name => "__glewVertexAttrib4f"; type glewVertexAttrib2fv is access procedure (index : GLuint; v : OpenGL.GLfloat_Matrix_2x2) with Convention => C; glVertexAttrib2fv : glewVertexAttrib2fv with Import, Convention => C, External_Name => "__glewVertexAttrib2fv"; type glewVertexAttrib3fv is access procedure (index : GLuint; v : OpenGL.GLfloat_Matrix_3x3) with Convention => C; glVertexAttrib3fv : glewVertexAttrib3fv with Import, Convention => C, External_Name => "__glewVertexAttrib3fv"; type glewVertexAttrib4fv is access procedure (index : GLuint; v : OpenGL.GLfloat_Matrix_4x4) with Convention => C; glVertexAttrib4fv : glewVertexAttrib4fv with Import, Convention => C, External_Name => "__glewVertexAttrib4fv"; type glewUniform1i is access procedure (index : OpenGL.GLint; v0 : OpenGL.GLint) with Convention => C; glUniform1i : glewUniform1i with Import, Convention => C, External_Name => "__glewUniform1i"; type glewUniform1f is access procedure (index : OpenGL.GLint; v0 : OpenGL.GLfloat) with Convention => C; glUniform1f : glewUniform1f with Import, Convention => C, External_Name => "__glewUniform1f"; type glewUniform2f is access procedure (index : OpenGL.GLint; v0 : OpenGL.GLfloat; v1 : OpenGL.GLfloat) with Convention => C; glUniform2f : glewUniform2f with Import, Convention => C, External_Name => "__glewUniform2f"; type glewUniform3f is access procedure (index : OpenGL.GLint; v0 : OpenGL.GLfloat; v1 : OpenGL.GLfloat; v2 : OpenGL.GLfloat) with Convention => C; glUniform3f : glewUniform3f with Import, Convention => C, External_Name => "__glewUniform3f"; type glewUniform4f is access procedure (index : OpenGL.GLint; v0 : OpenGL.GLfloat; v1 : OpenGL.GLfloat; v2 : OpenGL.GLfloat; v4 : OpenGL.GLfloat) with Convention => C; glUniform4f : glewUniform4f with Import, Convention => C, External_Name => "__glewUniform4f"; type glewUniformMatrix2fv is access procedure (index : OpenGL.GLint; count : OpenGL.GLsizei; transpose : OpenGL.GLint; v : OpenGL.GLfloat_Matrix_2x2) with Convention => C; glUniformMatrix2fv : glewUniformMatrix2fv with Import, Convention => C, External_Name => "__glewUniformMatrix2fv"; type glewUniformMatrix3fv is access procedure (index : OpenGL.GLint; count : OpenGL.GLsizei; transpose : OpenGL.GLint; v : OpenGL.GLfloat_Matrix_3x3) with Convention => C; glUniformMatrix3fv : glewUniformMatrix3fv with Import, Convention => C, External_Name => "__glewUniformMatrix3fv"; type glewUniformMatrix4fv is access procedure (index : OpenGL.GLint; count : OpenGL.GLsizei; transpose : OpenGL.GLint; v : OpenGL.GLfloat_Matrix_4x4) with Convention => C; glUniformMatrix4fv : glewUniformMatrix4fv with Import, Convention => C, External_Name => "__glewUniformMatrix4fv"; type glewGetUniformLocation is access function (program : GLuint; name : Interfaces.C.char_array) return OpenGL.GLint with Convention => C; glGetUniformLocation : glewGetUniformLocation with Import, Convention => C, External_Name => "__glewGetUniformLocation"; type glewActiveTexture is access procedure (texture : OpenGL.GLenum) with Convention => C; glActiveTexture : glewActiveTexture with Import, Convention => C, External_Name => "__glewActiveTexture"; procedure glClear (mask : OpenGL.Clear_Buffer_Mask) with Import, Convention => C, External_Name => "glClear"; procedure glDrawArrays (mode : OpenGL.GLenum; first : OpenGL.GLint; count : OpenGL.GLsizei) with Import, Convention => C, External_Name => "glDrawArrays"; procedure glDrawElements (mode : OpenGL.GLenum; count : OpenGL.GLsizei; tipe : OpenGL.GLenum; offset : System.Address) with Import, Convention => C, External_Name => "glDrawElements"; procedure glEnable(cap : OpenGL.GLenum) with Import, Convention => C, External_Name => "glEnable"; procedure glDisable(cap : OpenGL.GLenum) with Import, Convention => C, External_Name => "glDisable"; procedure glBlendFunc (sfactor : OpenGL.GLenum; dfactor : OpenGL.GLenum) with Import, Convention => C, External_Name => "glBlendFunc"; procedure glClearColor (red, green, blue, alpha : OpenGL.GLclampf) with Import, Convention => C, External_Name => "glClearColor"; procedure glClearDepth (depth : OpenGL.GLdouble) with Import, Convention => C, External_Name => "glClearDepth"; procedure glDepthFunc (func : OpenGL.GLenum) with Import, Convention => C, External_Name => "glDepthFunc"; procedure glFinish with Import, Convention => C, External_Name => "glFinish"; procedure glFlush with Import, Convention => C, External_Name => "glFlush"; procedure glViewport (x, y : OpenGL.GLint; width, height : OpenGL.GLsizei) with Import, Convention => C, External_Name => "glViewport"; procedure glBindTexture (target : OpenGL.GLenum; texture : GLuint) with Import, Convention => C, External_Name => "glBindTexture"; procedure glGenTextures (n : OpenGL.GLsizei; textures : access GLuint) with Import, Convention => C, External_Name => "glGenTextures"; procedure glDeleteTextures (n : OpenGL.GLsizei; textures : access GLuint) with Import, Convention => C, External_Name => "glDeleteTextures"; procedure glTexImage2D (target : OpenGL.GLenum; level : OpenGL.GLint; internalformat : OpenGL.GLenum; width : OpenGL.GLsizei; height : OpenGL.GLsizei; border : OpenGL.GLint; format : OpenGL.GLenum; tipe : OpenGL.GLenum; data : System.Address) with Import, Convention => C, External_Name => "glTexImage2D"; procedure glTexParameteri (target : OpenGL.GLenum; pname : OpenGL.GLenum; param : OpenGL.GLint) with Import, Convention => C, External_Name => "glTexParameteri"; ARRAY_BUFFER : constant := 16#8892#; ELEMENT_ARRAY_BUFFER : constant := 16#8893#; STATIC_DRAW : constant := 16#88E4#; FRAGMENT_SHADER : constant := 16#8B30#; VERTEX_SHADER : constant := 16#8B31#; COMPILE_STATUS : constant := 16#8B81#; LINK_STATUS : constant := 16#8B82#; end GLEW;
36.427918
80
0.622715
31fe0d8a04d37badacd0bfaf0319664f628c3695
7,763
adb
Ada
gcc-gcc-7_3_0-release/gcc/ada/s-memory-mingw.adb
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
7
2020-05-02T17:34:05.000Z
2021-10-17T10:15:18.000Z
gcc-gcc-7_3_0-release/gcc/ada/s-memory-mingw.adb
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
null
null
null
gcc-gcc-7_3_0-release/gcc/ada/s-memory-mingw.adb
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
2
2020-07-27T00:22:36.000Z
2021-04-01T09:41:02.000Z
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- S Y S T E M . M E M O R Y -- -- -- -- B o d y -- -- -- -- Copyright (C) 2001-2009, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ -- This version provides ways to limit the amount of used memory for systems -- that do not have OS support for that. -- The amount of available memory available for dynamic allocation is limited -- by setting the environment variable GNAT_MEMORY_LIMIT to the number of -- kilobytes that can be used. -- -- Windows is currently using this version. with Ada.Exceptions; with System.Soft_Links; package body System.Memory is use Ada.Exceptions; use System.Soft_Links; function c_malloc (Size : size_t) return System.Address; pragma Import (C, c_malloc, "malloc"); procedure c_free (Ptr : System.Address); pragma Import (C, c_free, "free"); function c_realloc (Ptr : System.Address; Size : size_t) return System.Address; pragma Import (C, c_realloc, "realloc"); function msize (Ptr : System.Address) return size_t; pragma Import (C, msize, "_msize"); function getenv (Str : String) return System.Address; pragma Import (C, getenv); function atoi (Str : System.Address) return Integer; pragma Import (C, atoi); Available_Memory : size_t := 0; -- Amount of memory that is available for heap allocations. -- A value of 0 means that the amount is not yet initialized. Msize_Accuracy : constant := 4096; -- Defines the amount of memory to add to requested allocation sizes, -- because malloc may return a bigger block than requested. As msize -- is used when by Free, it must be used on allocation as well. To -- prevent underflow of available_memory we need to use a reserve. procedure Check_Available_Memory (Size : size_t); -- This routine must be called while holding the task lock. When the -- memory limit is not yet initialized, it will be set to the value of -- the GNAT_MEMORY_LIMIT environment variable or to unlimited if that -- does not exist. If the size is larger than the amount of available -- memory, the task lock will be freed and a storage_error exception -- will be raised. ----------- -- Alloc -- ----------- function Alloc (Size : size_t) return System.Address is Result : System.Address; Actual_Size : size_t := Size; begin if Size = size_t'Last then Raise_Exception (Storage_Error'Identity, "object too large"); end if; -- Change size from zero to non-zero. We still want a proper pointer -- for the zero case because pointers to zero length objects have to -- be distinct, but we can't just go ahead and allocate zero bytes, -- since some malloc's return zero for a zero argument. if Size = 0 then Actual_Size := 1; end if; Lock_Task.all; if Actual_Size + Msize_Accuracy >= Available_Memory then Check_Available_Memory (Size + Msize_Accuracy); end if; Result := c_malloc (Actual_Size); if Result /= System.Null_Address then Available_Memory := Available_Memory - msize (Result); end if; Unlock_Task.all; if Result = System.Null_Address then Raise_Exception (Storage_Error'Identity, "heap exhausted"); end if; return Result; end Alloc; ---------------------------- -- Check_Available_Memory -- ---------------------------- procedure Check_Available_Memory (Size : size_t) is Gnat_Memory_Limit : System.Address; begin if Available_Memory = 0 then -- The amount of available memory hasn't been initialized yet Gnat_Memory_Limit := getenv ("GNAT_MEMORY_LIMIT" & ASCII.NUL); if Gnat_Memory_Limit /= System.Null_Address then Available_Memory := size_t (atoi (Gnat_Memory_Limit)) * 1024 + Msize_Accuracy; else Available_Memory := size_t'Last; end if; end if; if Size >= Available_Memory then -- There is a memory overflow Unlock_Task.all; Raise_Exception (Storage_Error'Identity, "heap memory limit exceeded"); end if; end Check_Available_Memory; ---------- -- Free -- ---------- procedure Free (Ptr : System.Address) is begin Lock_Task.all; if Ptr /= System.Null_Address then Available_Memory := Available_Memory + msize (Ptr); end if; c_free (Ptr); Unlock_Task.all; end Free; ------------- -- Realloc -- ------------- function Realloc (Ptr : System.Address; Size : size_t) return System.Address is Result : System.Address; Actual_Size : constant size_t := Size; Old_Size : size_t; begin if Size = size_t'Last then Raise_Exception (Storage_Error'Identity, "object too large"); end if; Lock_Task.all; Old_Size := msize (Ptr); -- Conservative check - no need to try to be precise here if Size + Msize_Accuracy >= Available_Memory then Check_Available_Memory (Size + Msize_Accuracy); end if; Result := c_realloc (Ptr, Actual_Size); if Result /= System.Null_Address then Available_Memory := Available_Memory + Old_Size - msize (Result); end if; Unlock_Task.all; if Result = System.Null_Address then Raise_Exception (Storage_Error'Identity, "heap exhausted"); end if; return Result; end Realloc; end System.Memory;
34.968468
78
0.555455
3111a03e047833040892a90b0a0088dc72878c28
3,227
ads
Ada
support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/s-pack25.ads
orb-zhuchen/Orb
6da2404b949ac28bde786e08bf4debe4a27cd3a0
[ "CNRI-Python-GPL-Compatible", "MIT" ]
null
null
null
support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/s-pack25.ads
orb-zhuchen/Orb
6da2404b949ac28bde786e08bf4debe4a27cd3a0
[ "CNRI-Python-GPL-Compatible", "MIT" ]
null
null
null
support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/s-pack25.ads
orb-zhuchen/Orb
6da2404b949ac28bde786e08bf4debe4a27cd3a0
[ "CNRI-Python-GPL-Compatible", "MIT" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- S Y S T E M . P A C K _ 2 5 -- -- -- -- 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. -- -- -- ------------------------------------------------------------------------------ -- Handling of packed arrays with Component_Size = 25 package System.Pack_25 is pragma Preelaborate; Bits : constant := 25; type Bits_25 is mod 2 ** Bits; for Bits_25'Size use Bits; -- In all subprograms below, Rev_SSO is set True if the array has the -- non-default scalar storage order. function Get_25 (Arr : System.Address; N : Natural; Rev_SSO : Boolean) return Bits_25 with Inline; -- Arr is the address of the packed array, N is the zero-based -- subscript. This element is extracted and returned. procedure Set_25 (Arr : System.Address; N : Natural; E : Bits_25; Rev_SSO : Boolean) with Inline; -- Arr is the address of the packed array, N is the zero-based -- subscript. This element is set to the given value. end System.Pack_25;
52.901639
78
0.439727
066a9deac5294d4e5743f838ab7251dfbb848f11
2,845
ads
Ada
src/lumen-binary-endian-words.ads
darkestkhan/lumen
d560f322a8efccac7ed5d16db1d2d188245836ba
[ "0BSD" ]
8
2015-07-20T18:20:10.000Z
2021-01-29T21:09:02.000Z
src/lumen-binary-endian-words.ads
darkestkhan/lumen
d560f322a8efccac7ed5d16db1d2d188245836ba
[ "0BSD" ]
10
2015-07-20T18:48:45.000Z
2016-05-07T19:23:31.000Z
src/lumen-binary-endian-words.ads
darkestkhan/lumen
d560f322a8efccac7ed5d16db1d2d188245836ba
[ "0BSD" ]
1
2018-11-18T17:01:15.000Z
2018-11-18T17:01:15.000Z
-- Lumen.Binary.Endian.Words -- Byte re-ordering routines for "word" -- (32-bit) values -- -- -- Chip Richards, NiEstu, Phoenix AZ, Summer 2010 -- This code is covered by the ISC License: -- -- Copyright © 2010, NiEstu -- -- 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. generic type Word_Type is (<>); package Lumen.Binary.Endian.Words is --------------------------------------------------------------------------- -- Swap the bytes, no matter the host ordering function Swap_Bytes (Value : Word_Type) return Word_Type; -- Swap bytes if host is little-endian, or no-op if it's big-endian function To_Big (Value : Word_Type) return Word_Type; -- Swap bytes if host is big-endian, or no-op if it's little-endian function To_Little (Value : Word_Type) return Word_Type; -- Swap bytes if host is little-endian, or no-op if it's big-endian function From_Big (Value : Word_Type) return Word_Type renames To_Big; -- Swap bytes if host is big-endian, or no-op if it's little-endian function From_Little (Value : Word_Type) return Word_Type renames To_Little; --------------------------------------------------------------------------- -- Swap the bytes in place, no matter the host ordering procedure Swap_Bytes (Value : in out Word_Type); -- Swap bytes in place if host is little-endian, or no-op if it's big-endian procedure To_Big (Value : in out Word_Type); -- Swap bytes in place if host is big-endian, or no-op if it's little-endian procedure To_Little (Value : in out Word_Type); -- Swap bytes in place if host is little-endian, or no-op if it's big-endian procedure From_Big (Value : in out Word_Type) renames To_Big; -- Swap bytes in place if host is big-endian, or no-op if it's little-endian procedure From_Little (Value : in out Word_Type) renames To_Little; --------------------------------------------------------------------------- pragma Inline (Swap_Bytes, To_Big, To_Little, From_Big, From_Little); --------------------------------------------------------------------------- end Lumen.Binary.Endian.Words;
41.231884
79
0.639719
12cff16d8a170a5315f1eb528817b61757f454c9
647
adb
Ada
examples/ada/Sum.adb
hsutter/compiler-explorer
6ea766981424db1e7c952a1bb5161a6eaba6ddc6
[ "BSD-2-Clause" ]
4,668
2017-01-02T19:35:10.000Z
2020-05-16T03:18:45.000Z
examples/ada/Sum.adb
hsutter/compiler-explorer
6ea766981424db1e7c952a1bb5161a6eaba6ddc6
[ "BSD-2-Clause" ]
1,750
2017-01-02T19:37:06.000Z
2020-05-16T14:54:29.000Z
examples/ada/Sum.adb
hsutter/compiler-explorer
6ea766981424db1e7c952a1bb5161a6eaba6ddc6
[ "BSD-2-Clause" ]
620
2017-01-03T00:29:17.000Z
2020-05-14T09:27:47.000Z
-- This pragma will remove the warning produced by the default -- CE filename and the procedure name differing, -- see : https://gcc.gnu.org/onlinedocs/gcc-8.2.0/gnat_rm/Pragma-Source_005fFile_005fName.html#Pragma-Source_005fFile_005fName -- pragma Source_File_Name (Sum, Body_File_Name => "example.adb"); procedure Sum is type Integer_Array is array(Natural range <>) of Integer; function Sum(input : in Integer_Array) return Natural is sum : Natural := 0; begin for i in input'range loop sum := sum + input(i); end loop; return sum; end Sum; begin null; end Sum;
35.944444
127
0.666151
3900c49b1f5d93fd4bee75f2eab7430673406ac3
3,635
ads
Ada
source/amf/uml/amf-standard_profile_l2-calls-hash.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
24
2016-11-29T06:59:41.000Z
2021-08-30T11:55:16.000Z
source/amf/uml/amf-standard_profile_l2-calls-hash.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
2
2019-01-16T05:15:20.000Z
2019-02-03T10:03:32.000Z
source/amf/uml/amf-standard_profile_l2-calls-hash.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
4
2017-07-18T07:11:05.000Z
2020-06-21T03:02:25.000Z
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Ada Modeling Framework -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2011-2012, Vadim Godunko <[email protected]> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ -- This file is generated, don't edit it. ------------------------------------------------------------------------------ with AMF.Elements.Generic_Hash; function AMF.Standard_Profile_L2.Calls.Hash is new AMF.Elements.Generic_Hash (Standard_Profile_L2_Call, Standard_Profile_L2_Call_Access);
72.7
92
0.406327
cb85ea64fa70878b74613e67a4d04117e9f91215
1,501
adb
Ada
ordinary/quadrature.adb
jscparker/math_packages
b112a90338014d5c2dfae3f7265ee30841fb6cfd
[ "ISC", "MIT" ]
30
2018-12-09T01:15:04.000Z
2022-03-20T16:14:54.000Z
ordinary/quadrature.adb
jscparker/math_packages
b112a90338014d5c2dfae3f7265ee30841fb6cfd
[ "ISC", "MIT" ]
null
null
null
ordinary/quadrature.adb
jscparker/math_packages
b112a90338014d5c2dfae3f7265ee30841fb6cfd
[ "ISC", "MIT" ]
null
null
null
package body Quadrature is function Norm (Y : Dynamical_Variable) return Real is Sum : Real := +0.0; begin for i in Dyn_Index loop Sum := Sum + Abs Y(i); --Sum := Sum + Y(i) * Y(i); -- return Sqrt (Sum); end loop; return Sum; end Norm; function "-" (Left : Dynamical_Variable; Right : Dynamical_Variable) return Dynamical_Variable is Result : Dynamical_Variable; begin for I in Dyn_Index loop Result(I) := Left(I) - Right(I); end loop; return Result; end "-"; function "*" (Left : Real; Right : Dynamical_Variable) return Dynamical_Variable is Result : Dynamical_Variable; begin for I in Dyn_Index loop Result(I) := Left * Right(I); end loop; return Result; end "*"; function "+" (Left : Dynamical_Variable; Right : Dynamical_Variable) return Dynamical_Variable is Result : Dynamical_Variable; begin for I in Dyn_Index loop Result(I) := Left(I) + Right(I); end loop; return Result; end "+"; -- The differential equation is dY/dt = F (t, Y) function F (Time : Real; Y : Dynamical_Variable) return Dynamical_Variable is Deriv : Dynamical_Variable; begin for I in Dyn_Index range Dyn_Index'First .. Dyn_Index'Last-1 loop Deriv(I) := Y(I+1); end loop; Deriv(Dyn_Index'Last) := Integrand (Time); return Deriv; end F; end Quadrature;
20.847222
70
0.593604
1d3a0e2bbca21f0a34b66eca7d3a532233447755
1,612
ads
Ada
3-mid/opengl/source/lean/model/opengl-model-arrow-colored.ads
charlie5/lace
e9b7dc751d500ff3f559617a6fc3089ace9dc134
[ "0BSD" ]
20
2015-11-04T09:23:59.000Z
2022-01-14T10:21:42.000Z
3-mid/opengl/source/lean/model/opengl-model-arrow-colored.ads
charlie5/lace-alire
9ace9682cf4daac7adb9f980c2868d6225b8111c
[ "0BSD" ]
2
2015-11-04T17:05:56.000Z
2015-12-08T03:16:13.000Z
3-mid/opengl/source/lean/model/opengl-model-arrow-colored.ads
charlie5/lace-alire
9ace9682cf4daac7adb9f980c2868d6225b8111c
[ "0BSD" ]
1
2015-12-07T12:53:52.000Z
2015-12-07T12:53:52.000Z
with openGL.geometry.colored, openGL.Font, openGL.Palette; package openGL.Model.arrow.colored -- -- Models a colored arrow. -- is type Item is new openGL.Model.arrow.item with private; type View is access all Item'Class; --------- --- Forge -- function new_Arrow (Color : in openGL.Color := Palette.White; line_Width : in Real := 1.0; End_1, End_2 : in Vector_3 := Origin_3D) return View; -------------- --- Attributes -- overriding function to_GL_Geometries (Self : access Item; Textures : access Texture.name_Map_of_texture'Class; Fonts : in Font.font_id_Map_of_font) return Geometry.views; procedure end_Site_is (Self : in out Item; Now : in Vector_3; for_End : in Integer); function end_Site (Self : in Item; for_End : in Integer) return Vector_3; overriding procedure modify (Self : in out Item); overriding function is_Modified (Self : in Item) return Boolean; private type Item is new openGL.Model.arrow.item with record Color : openGL.Color; line_Width : Real; Vertices : aliased Geometry.colored.Vertex_array (1 .. 4); Geometry : access Geometry.colored.item'Class; is_Modified : Boolean := False; end record; procedure set_side_Bits (Self : in out Item); end openGL.Model.arrow.colored;
26
119
0.555211
31f51d6a17d56dada3b47798a18fcec5e287a322
7,603
adb
Ada
test/dmat/vulkan-math-dmat4x4-test.adb
zrmyers/VulkanAda
ed8c46d923bc8936db3a5d55d36afebb928a9ede
[ "MIT" ]
1
2021-01-29T21:10:45.000Z
2021-01-29T21:10:45.000Z
test/dmat/vulkan-math-dmat4x4-test.adb
zrmyers/VulkanAda
ed8c46d923bc8936db3a5d55d36afebb928a9ede
[ "MIT" ]
8
2020-04-22T14:55:20.000Z
2021-11-22T03:58:08.000Z
test/dmat/vulkan-math-dmat4x4-test.adb
zrmyers/VulkanAda
ed8c46d923bc8936db3a5d55d36afebb928a9ede
[ "MIT" ]
1
2021-04-05T13:19:21.000Z
2021-04-05T13:19:21.000Z
-------------------------------------------------------------------------------- -- MIT License -- -- Copyright (c) 2021 Zane Myers -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to deal -- in the Software without restriction, including without limitation the rights -- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -- copies of the Software, and to permit persons to whom the Software is -- furnished to do so, subject to the following conditions: -- -- The above copyright notice and this permission notice shall be included in all -- copies or substantial portions of the Software. -- -- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -- SOFTWARE. -------------------------------------------------------------------------------- with Ada.Text_IO; with Vulkan.Test.Framework; with Vulkan.Math.GenDMatrix; with Vulkan.Math.Dmat4x4; with Vulkan.Math.Dmat2x4; with Vulkan.Math.Dmat4x2; with Vulkan.Math.GenDType; with Vulkan.Math.Dvec4; with Vulkan.Math.Operators; use Ada.Text_IO; use Vulkan.Test.Framework; use Vulkan.Math.Dmat4x4; use Vulkan.Math.Dmat2x4; use Vulkan.Math.Dmat4x2; use Vulkan.Math.GenDType; use Vulkan.Math.Dvec4; use Vulkan.Math.Operators; -------------------------------------------------------------------------------- --< @group Vulkan Math Basic Types -------------------------------------------------------------------------------- --< @summary --< This package provides tests for single precision floating point mat4x4. -------------------------------------------------------------------------------- package body Vulkan.Math.Dmat4x4.Test is -- Test Mat4x4 procedure Test_Dmat4x4 is vec1 : Vkm_Dvec4 := Make_Dvec4(1.0, 2.0, 3.0, 4.0); mat1 : Vkm_Dmat4x4 := Make_Dmat4x4; mat2 : Vkm_Dmat4x4 := Make_Dmat4x4(diag => 2.0); mat3 : Vkm_Dmat4x4 := Make_Dmat4x4(vec1); mat4 : Vkm_Dmat4x4 := Make_Dmat4x4(0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0); mat5 : Vkm_Dmat4x4 := Make_Dmat4x4(vec1, -vec1, vec1 / 2.0, -vec1 / 2.0); mat6 : Vkm_Dmat4x4 := Make_Dmat4x4(mat4); mat7 : Vkm_Dmat2x4 := Make_Dmat2x4(1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0); mat8 : Vkm_Dmat4x2 := Make_Dmat4x2(1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0); begin Put_Line("Testing Mat4x4 Constructors..."); Put_Line("mat1 " & mat1.Image); Assert_Dmat4x4_Equals(mat1, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0); Put_Line("mat2 " & mat2.Image); Assert_Dmat4x4_Equals(mat2, 2.0, 0.0, 0.0, 0.0, 0.0, 2.0, 0.0, 0.0, 0.0, 0.0, 2.0, 0.0, 0.0, 0.0, 0.0, 2.0); Put_Line("mat3 " & mat3.Image); Assert_Dmat4x4_Equals(mat3, 1.0, 0.0, 0.0, 0.0, 0.0, 2.0, 0.0, 0.0, 0.0, 0.0, 3.0, 0.0, 0.0, 0.0, 0.0, 4.0); Put_Line("mat4 " & mat4.Image); Assert_Dmat4x4_Equals(mat4, 0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0); Put_Line("mat5 " & mat5.Image); Assert_Dmat4x4_Equals(mat5, 1.0, 2.0, 3.0, 4.0, -1.0, -2.0, -3.0, -4.0, 0.5, 1.0, 1.5, 2.0, -0.5, -1.0, -1.5, -2.0); Put_Line("mat6 " & mat6.Image); Assert_Dmat4x4_Equals(mat6, 0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0); Put_Line("Testing '=' operator..."); Put_Line(" mat2 != mat3"); Assert_Vkm_Bool_Equals(mat2 = mat3, False); Put_Line(" mat4 != mat5"); Assert_Vkm_Bool_Equals(mat4 = mat5, False); Put_Line(" mat4 = mat6"); Assert_Vkm_Bool_Equals(mat4 = mat6, True); Put_Line(" Testing unary '+/-' operator"); Put_Line(" + mat4 = " & Image(+ mat4)); Assert_Dmat4x4_Equals(+mat4, 0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0); Put_Line(" - mat4 = " & Image(- mat4)); Assert_Dmat4x4_Equals(-mat4, -0.0, -1.0, -2.0, -3.0, -4.0, -5.0, -6.0, -7.0, -8.0, -9.0, -10.0, -11.0, -12.0, -13.0, -14.0, -15.0); Put_Line("+ ( - mat4) = " & Image(+(- mat4))); Assert_Dmat4x4_Equals(+(-mat4), -0.0, -1.0, -2.0, -3.0, -4.0, -5.0, -6.0, -7.0, -8.0, -9.0, -10.0, -11.0, -12.0, -13.0, -14.0, -15.0); Put_Line("Testing 'abs' operator..."); Put_Line(" abs( - mat4) = " & Image(abs(-mat4))); Assert_Dmat4x4_Equals(abs(-mat4), 0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0); Put_Line("Testing '+' operator..."); Put_Line(" mat4 + mat5 = " & Image(mat4 + mat5)); Assert_Dmat4x4_Equals(mat4 + mat5, 1.0, 3.0, 5.0, 7.0, 3.0, 3.0, 3.0, 3.0, 8.5, 10.0, 11.5, 13.0, 11.5, 12.0, 12.5, 13.0); Put_Line("Testing '-' operator..."); Put_Line(" mat4 - mat5 = " & Image(mat4 -mat5)); Assert_Dmat4x4_Equals(mat4 - mat5, -1.0, -1.0, -1.0, -1.0, 5.0, 7.0, 9.0, 11.0, 7.5, 8.0, 8.5, 9.0, 12.5, 14.0, 15.5, 17.0); Put_Line("Testing '*' operator..."); Put_Line(" mat4 * mat8 = " & Image(mat4 * mat8)); Assert_Dmat4x2_Equals(mat4 * mat8, 34.0, 40.0, 98.0, 120.0, 162.0, 200.0, 226.0, 280.0); Put_Line(" mat7 * mat4 = " & Image(mat7 * mat4)); Assert_Dmat2x4_Equals(mat7*mat4, 80.0, 90.0, 100.0, 110.0, 176.0, 202.0, 228.0, 254.0); Put_Line(" vec1 * mat4 = " & Image(vec1 * mat4)); Assert_Dvec4_Equals(vec1 * mat4, 80.0, 90.0, 100.0, 110.0); Put_Line(" mat4 * vec1 = " & Image(mat4 * vec1)); Assert_Dvec4_Equals(mat4 * vec1, 20.0, 60.0, 100.0, 140.0); end Test_Dmat4x4; end Vulkan.Math.Dmat4x4.Test;
38.015
81
0.449954
1c0a54a751849a498510b491ae34710f64bbfb5f
57,676
adb
Ada
apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_shifts/sharpen/sharpen/hls_target/.autopilot/db/hls_target.bind.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/sharpen/sharpen/hls_target/.autopilot/db/hls_target.bind.adb
dillonhuff/Halide-HLS
e9f4c3ac7915e5a52f211ce65004ae17890515a0
[ "MIT" ]
null
null
null
apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_shifts/sharpen/sharpen/hls_target/.autopilot/db/hls_target.bind.adb
dillonhuff/Halide-HLS
e9f4c3ac7915e5a52f211ce65004ae17890515a0
[ "MIT" ]
1
2020-03-18T00:43:22.000Z
2020-03-18T00:43:22.000Z
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <!DOCTYPE boost_serialization> <boost_serialization signature="serialization::archive" version="14"> <syndb class_id="0" tracking_level="0" version="0"> <userIPLatency>-1</userIPLatency> <userIPName></userIPName> <cdfg class_id="1" tracking_level="1" version="0" object_id="_0"> <name>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></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo class_id="6" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>hw_input.V.value.V</originalName> <rtlName></rtlName> <coreName></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></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>hw_input.V.last.V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>1</bitwidth> </Value> <direction>0</direction> <if_type>0</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_3"> <Value> <Obj> <type>1</type> <id>3</id> <name>hw_output_V_value_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>hw_output.V.value.V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>32</bitwidth> </Value> <direction>1</direction> <if_type>0</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_4"> <Value> <Obj> <type>1</type> <id>4</id> <name>hw_output_V_last_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>hw_output.V.last.V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>1</bitwidth> </Value> <direction>1</direction> <if_type>0</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> </ports> <nodes class_id="8" tracking_level="0" version="0"> <count>11</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>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_shifts/sharpen</fileDirectory> <lineNumber>52</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/sharpen</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>52</second> </item> </second> </item> </inlineStackInfo> <originalName>_hw_input_stencil_stream.V.value.V</originalName> <rtlName></rtlName> <coreName>FIFO_SRL</coreName> </Obj> <bitwidth>288</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>41</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>15</id> <name>p_hw_input_stencil_st_3</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName>FIFO_SRL</coreName> </Obj> <bitwidth>288</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>42</item> </oprand_edges> <opcode>alloca</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_7"> <Value> <Obj> <type>0</type> <id>19</id> <name>p_hw_input_stencil_st_4</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName>FIFO_SRL</coreName> </Obj> <bitwidth>288</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>43</item> </oprand_edges> <opcode>alloca</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_8"> <Value> <Obj> <type>0</type> <id>23</id> <name>p_delayed_input_stenc</name> <fileName>hls_target.cpp</fileName> <fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_shifts/sharpen</fileDirectory> <lineNumber>82</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/sharpen</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>82</second> </item> </second> </item> </inlineStackInfo> <originalName>_delayed_input_stencil_stream.V.value.V</originalName> <rtlName></rtlName> <coreName>FIFO_SRL</coreName> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>44</item> </oprand_edges> <opcode>alloca</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_9"> <Value> <Obj> <type>0</type> <id>27</id> <name>p_mul_stencil_stream_s</name> <fileName>hls_target.cpp</fileName> <fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_shifts/sharpen</fileDirectory> <lineNumber>172</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/sharpen</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>172</second> </item> </second> </item> </inlineStackInfo> <originalName>_mul_stencil_stream.V.value.V</originalName> <rtlName></rtlName> <coreName>FIFO_SRL</coreName> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>45</item> </oprand_edges> <opcode>alloca</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_10"> <Value> <Obj> <type>0</type> <id>33</id> <name></name> <fileName>hls_target.cpp</fileName> <fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_shifts/sharpen</fileDirectory> <lineNumber>56</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/sharpen</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>56</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>47</item> <item>48</item> <item>49</item> <item>50</item> </oprand_edges> <opcode>call</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_11"> <Value> <Obj> <type>0</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> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>6</count> <item_version>0</item_version> <item>52</item> <item>53</item> <item>54</item> <item>55</item> <item>329</item> <item>330</item> </oprand_edges> <opcode>call</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_12"> <Value> <Obj> <type>0</type> <id>35</id> <name></name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>5</count> <item_version>0</item_version> <item>57</item> <item>58</item> <item>59</item> <item>327</item> <item>331</item> </oprand_edges> <opcode>call</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_13"> <Value> <Obj> <type>0</type> <id>36</id> <name></name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>61</item> <item>62</item> <item>63</item> <item>328</item> </oprand_edges> <opcode>call</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_14"> <Value> <Obj> <type>0</type> <id>37</id> <name></name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>8</count> <item_version>0</item_version> <item>65</item> <item>66</item> <item>67</item> <item>68</item> <item>69</item> <item>325</item> <item>326</item> <item>332</item> </oprand_edges> <opcode>call</opcode> <m_Display>0</m_Display> </item> <item class_id_reference="9" object_id="_15"> <Value> <Obj> <type>0</type> <id>38</id> <name></name> <fileName>hls_target.cpp</fileName> <fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_shifts/sharpen</fileDirectory> <lineNumber>307</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/sharpen</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>hls_target.cpp</first> <second>hls_target</second> </first> <second>307</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>6</count> <item_version>0</item_version> <item class_id="16" tracking_level="1" version="0" object_id="_16"> <Value> <Obj> <type>2</type> <id>40</id> <name>empty</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>64</bitwidth> </Value> <const_type>0</const_type> <content>1</content> </item> <item class_id_reference="16" object_id="_17"> <Value> <Obj> <type>2</type> <id>46</id> <name>linebuffer_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>0</bitwidth> </Value> <const_type>6</const_type> <content>&lt;constant:linebuffer.1&gt;</content> </item> <item class_id_reference="16" object_id="_18"> <Value> <Obj> <type>2</type> <id>51</id> <name>Loop_1_proc</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>0</bitwidth> </Value> <const_type>6</const_type> <content>&lt;constant:Loop_1_proc&gt;</content> </item> <item class_id_reference="16" object_id="_19"> <Value> <Obj> <type>2</type> <id>56</id> <name>Loop_2_proc</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>0</bitwidth> </Value> <const_type>6</const_type> <content>&lt;constant:Loop_2_proc&gt;</content> </item> <item class_id_reference="16" object_id="_20"> <Value> <Obj> <type>2</type> <id>60</id> <name>Loop_3_proc</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>0</bitwidth> </Value> <const_type>6</const_type> <content>&lt;constant:Loop_3_proc&gt;</content> </item> <item class_id_reference="16" object_id="_21"> <Value> <Obj> <type>2</type> <id>64</id> <name>Loop_4_proc</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>0</bitwidth> </Value> <const_type>6</const_type> <content>&lt;constant:Loop_4_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="_22"> <Obj> <type>3</type> <id>39</id> <name>hls_target</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>11</count> <item_version>0</item_version> <item>11</item> <item>15</item> <item>19</item> <item>23</item> <item>27</item> <item>33</item> <item>34</item> <item>35</item> <item>36</item> <item>37</item> <item>38</item> </node_objs> </item> </blocks> <edges class_id="19" tracking_level="0" version="0"> <count>32</count> <item_version>0</item_version> <item class_id="20" tracking_level="1" version="0" object_id="_23"> <id>41</id> <edge_type>1</edge_type> <source_obj>40</source_obj> <sink_obj>11</sink_obj> </item> <item class_id_reference="20" object_id="_24"> <id>42</id> <edge_type>1</edge_type> <source_obj>40</source_obj> <sink_obj>15</sink_obj> </item> <item class_id_reference="20" object_id="_25"> <id>43</id> <edge_type>1</edge_type> <source_obj>40</source_obj> <sink_obj>19</sink_obj> </item> <item class_id_reference="20" object_id="_26"> <id>44</id> <edge_type>1</edge_type> <source_obj>40</source_obj> <sink_obj>23</sink_obj> </item> <item class_id_reference="20" object_id="_27"> <id>45</id> <edge_type>1</edge_type> <source_obj>40</source_obj> <sink_obj>27</sink_obj> </item> <item class_id_reference="20" object_id="_28"> <id>47</id> <edge_type>1</edge_type> <source_obj>46</source_obj> <sink_obj>33</sink_obj> </item> <item class_id_reference="20" object_id="_29"> <id>48</id> <edge_type>1</edge_type> <source_obj>1</source_obj> <sink_obj>33</sink_obj> </item> <item class_id_reference="20" object_id="_30"> <id>49</id> <edge_type>1</edge_type> <source_obj>2</source_obj> <sink_obj>33</sink_obj> </item> <item class_id_reference="20" object_id="_31"> <id>50</id> <edge_type>1</edge_type> <source_obj>11</source_obj> <sink_obj>33</sink_obj> </item> <item class_id_reference="20" object_id="_32"> <id>52</id> <edge_type>1</edge_type> <source_obj>51</source_obj> <sink_obj>34</sink_obj> </item> <item class_id_reference="20" object_id="_33"> <id>53</id> <edge_type>1</edge_type> <source_obj>11</source_obj> <sink_obj>34</sink_obj> </item> <item class_id_reference="20" object_id="_34"> <id>54</id> <edge_type>1</edge_type> <source_obj>15</source_obj> <sink_obj>34</sink_obj> </item> <item class_id_reference="20" object_id="_35"> <id>55</id> <edge_type>1</edge_type> <source_obj>19</source_obj> <sink_obj>34</sink_obj> </item> <item class_id_reference="20" object_id="_36"> <id>57</id> <edge_type>1</edge_type> <source_obj>56</source_obj> <sink_obj>35</sink_obj> </item> <item class_id_reference="20" object_id="_37"> <id>58</id> <edge_type>1</edge_type> <source_obj>15</source_obj> <sink_obj>35</sink_obj> </item> <item class_id_reference="20" object_id="_38"> <id>59</id> <edge_type>1</edge_type> <source_obj>23</source_obj> <sink_obj>35</sink_obj> </item> <item class_id_reference="20" object_id="_39"> <id>61</id> <edge_type>1</edge_type> <source_obj>60</source_obj> <sink_obj>36</sink_obj> </item> <item class_id_reference="20" object_id="_40"> <id>62</id> <edge_type>1</edge_type> <source_obj>19</source_obj> <sink_obj>36</sink_obj> </item> <item class_id_reference="20" object_id="_41"> <id>63</id> <edge_type>1</edge_type> <source_obj>27</source_obj> <sink_obj>36</sink_obj> </item> <item class_id_reference="20" object_id="_42"> <id>65</id> <edge_type>1</edge_type> <source_obj>64</source_obj> <sink_obj>37</sink_obj> </item> <item class_id_reference="20" object_id="_43"> <id>66</id> <edge_type>1</edge_type> <source_obj>3</source_obj> <sink_obj>37</sink_obj> </item> <item class_id_reference="20" object_id="_44"> <id>67</id> <edge_type>1</edge_type> <source_obj>4</source_obj> <sink_obj>37</sink_obj> </item> <item class_id_reference="20" object_id="_45"> <id>68</id> <edge_type>1</edge_type> <source_obj>27</source_obj> <sink_obj>37</sink_obj> </item> <item class_id_reference="20" object_id="_46"> <id>69</id> <edge_type>1</edge_type> <source_obj>23</source_obj> <sink_obj>37</sink_obj> </item> <item class_id_reference="20" object_id="_47"> <id>325</id> <edge_type>4</edge_type> <source_obj>36</source_obj> <sink_obj>37</sink_obj> </item> <item class_id_reference="20" object_id="_48"> <id>326</id> <edge_type>4</edge_type> <source_obj>35</source_obj> <sink_obj>37</sink_obj> </item> <item class_id_reference="20" object_id="_49"> <id>327</id> <edge_type>4</edge_type> <source_obj>34</source_obj> <sink_obj>35</sink_obj> </item> <item class_id_reference="20" object_id="_50"> <id>328</id> <edge_type>4</edge_type> <source_obj>34</source_obj> <sink_obj>36</sink_obj> </item> <item class_id_reference="20" object_id="_51"> <id>329</id> <edge_type>4</edge_type> <source_obj>33</source_obj> <sink_obj>34</sink_obj> </item> <item class_id_reference="20" object_id="_52"> <id>330</id> <edge_type>4</edge_type> <source_obj>33</source_obj> <sink_obj>34</sink_obj> </item> <item class_id_reference="20" object_id="_53"> <id>331</id> <edge_type>4</edge_type> <source_obj>34</source_obj> <sink_obj>35</sink_obj> </item> <item class_id_reference="20" object_id="_54"> <id>332</id> <edge_type>4</edge_type> <source_obj>35</source_obj> <sink_obj>37</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="_55"> <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>39</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="_56"> <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>5</count> <item_version>0</item_version> <item class_id="26" tracking_level="1" version="0" object_id="_57"> <type>0</type> <name>linebuffer_1_U0</name> <ssdmobj_id>33</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="_58"> <port class_id="29" tracking_level="1" version="0" object_id="_59"> <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="_60"> <type>0</type> <name>linebuffer_1_U0</name> <ssdmobj_id>33</ssdmobj_id> </inst> </item> <item class_id_reference="28" object_id="_61"> <port class_id_reference="29" object_id="_62"> <name>in_axi_stream_V_last_V</name> <dir>3</dir> <type>0</type> </port> <inst class_id_reference="30" object_id_reference="_60"></inst> </item> <item class_id_reference="28" object_id="_63"> <port class_id_reference="29" object_id="_64"> <name>out_stream_V_value_V</name> <dir>0</dir> <type>1</type> </port> <inst class_id_reference="30" object_id_reference="_60"></inst> </item> </pins> </item> <item class_id_reference="26" object_id="_65"> <type>0</type> <name>Loop_1_proc_U0</name> <ssdmobj_id>34</ssdmobj_id> <pins> <count>3</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_66"> <port class_id_reference="29" object_id="_67"> <name>p_hw_input_stencil_stream_V_value_V</name> <dir>0</dir> <type>0</type> </port> <inst class_id_reference="30" object_id="_68"> <type>0</type> <name>Loop_1_proc_U0</name> <ssdmobj_id>34</ssdmobj_id> </inst> </item> <item class_id_reference="28" object_id="_69"> <port class_id_reference="29" object_id="_70"> <name>p_hw_input_stencil_stream_to_delayed_input_V_value_V</name> <dir>0</dir> <type>1</type> </port> <inst class_id_reference="30" object_id_reference="_68"></inst> </item> <item class_id_reference="28" object_id="_71"> <port class_id_reference="29" object_id="_72"> <name>p_hw_input_stencil_stream_to_mul_V_value_V</name> <dir>0</dir> <type>1</type> </port> <inst class_id_reference="30" object_id_reference="_68"></inst> </item> </pins> </item> <item class_id_reference="26" object_id="_73"> <type>0</type> <name>Loop_2_proc_U0</name> <ssdmobj_id>35</ssdmobj_id> <pins> <count>2</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_74"> <port class_id_reference="29" object_id="_75"> <name>p_hw_input_stencil_stream_to_delayed_input_V_value_V</name> <dir>0</dir> <type>0</type> </port> <inst class_id_reference="30" object_id="_76"> <type>0</type> <name>Loop_2_proc_U0</name> <ssdmobj_id>35</ssdmobj_id> </inst> </item> <item class_id_reference="28" object_id="_77"> <port class_id_reference="29" object_id="_78"> <name>p_delayed_input_stencil_stream_V_value_V</name> <dir>0</dir> <type>1</type> </port> <inst class_id_reference="30" object_id_reference="_76"></inst> </item> </pins> </item> <item class_id_reference="26" object_id="_79"> <type>0</type> <name>Loop_3_proc_U0</name> <ssdmobj_id>36</ssdmobj_id> <pins> <count>2</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_80"> <port class_id_reference="29" object_id="_81"> <name>p_hw_input_stencil_stream_to_mul_V_value_V</name> <dir>0</dir> <type>0</type> </port> <inst class_id_reference="30" object_id="_82"> <type>0</type> <name>Loop_3_proc_U0</name> <ssdmobj_id>36</ssdmobj_id> </inst> </item> <item class_id_reference="28" object_id="_83"> <port class_id_reference="29" object_id="_84"> <name>p_mul_stencil_stream_V_value_V</name> <dir>0</dir> <type>1</type> </port> <inst class_id_reference="30" object_id_reference="_82"></inst> </item> </pins> </item> <item class_id_reference="26" object_id="_85"> <type>0</type> <name>Loop_4_proc_U0</name> <ssdmobj_id>37</ssdmobj_id> <pins> <count>4</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_86"> <port class_id_reference="29" object_id="_87"> <name>hw_output_V_value_V</name> <dir>3</dir> <type>1</type> </port> <inst class_id_reference="30" object_id="_88"> <type>0</type> <name>Loop_4_proc_U0</name> <ssdmobj_id>37</ssdmobj_id> </inst> </item> <item class_id_reference="28" object_id="_89"> <port class_id_reference="29" object_id="_90"> <name>hw_output_V_last_V</name> <dir>3</dir> <type>1</type> </port> <inst class_id_reference="30" object_id_reference="_88"></inst> </item> <item class_id_reference="28" object_id="_91"> <port class_id_reference="29" object_id="_92"> <name>p_mul_stencil_stream_V_value_V</name> <dir>0</dir> <type>0</type> </port> <inst class_id_reference="30" object_id_reference="_88"></inst> </item> <item class_id_reference="28" object_id="_93"> <port class_id_reference="29" object_id="_94"> <name>p_delayed_input_stencil_stream_V_value_V</name> <dir>0</dir> <type>0</type> </port> <inst class_id_reference="30" object_id_reference="_88"></inst> </item> </pins> </item> </process_list> <channel_list class_id="31" tracking_level="0" version="0"> <count>5</count> <item_version>0</item_version> <item class_id="32" tracking_level="1" version="0" object_id="_95"> <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="_96"> <port class_id_reference="29" object_id="_97"> <name>in</name> <dir>3</dir> <type>0</type> </port> <inst class_id_reference="30" object_id_reference="_60"></inst> </source> <sink class_id_reference="28" object_id="_98"> <port class_id_reference="29" object_id="_99"> <name>out</name> <dir>3</dir> <type>1</type> </port> <inst class_id_reference="30" object_id_reference="_68"></inst> </sink> </item> <item class_id_reference="32" object_id="_100"> <type>1</type> <name>p_hw_input_stencil_st_3</name> <ssdmobj_id>15</ssdmobj_id> <ctype>0</ctype> <depth>1</depth> <bitwidth>288</bitwidth> <source class_id_reference="28" object_id="_101"> <port class_id_reference="29" object_id="_102"> <name>in</name> <dir>3</dir> <type>0</type> </port> <inst class_id_reference="30" object_id_reference="_68"></inst> </source> <sink class_id_reference="28" object_id="_103"> <port class_id_reference="29" object_id="_104"> <name>out</name> <dir>3</dir> <type>1</type> </port> <inst class_id_reference="30" object_id_reference="_76"></inst> </sink> </item> <item class_id_reference="32" object_id="_105"> <type>1</type> <name>p_hw_input_stencil_st_4</name> <ssdmobj_id>19</ssdmobj_id> <ctype>0</ctype> <depth>1</depth> <bitwidth>288</bitwidth> <source class_id_reference="28" object_id="_106"> <port class_id_reference="29" object_id="_107"> <name>in</name> <dir>3</dir> <type>0</type> </port> <inst class_id_reference="30" object_id_reference="_68"></inst> </source> <sink class_id_reference="28" object_id="_108"> <port class_id_reference="29" object_id="_109"> <name>out</name> <dir>3</dir> <type>1</type> </port> <inst class_id_reference="30" object_id_reference="_82"></inst> </sink> </item> <item class_id_reference="32" object_id="_110"> <type>1</type> <name>p_delayed_input_stenc</name> <ssdmobj_id>23</ssdmobj_id> <ctype>0</ctype> <depth>1</depth> <bitwidth>32</bitwidth> <source class_id_reference="28" object_id="_111"> <port class_id_reference="29" object_id="_112"> <name>in</name> <dir>3</dir> <type>0</type> </port> <inst class_id_reference="30" object_id_reference="_76"></inst> </source> <sink class_id_reference="28" object_id="_113"> <port class_id_reference="29" object_id="_114"> <name>out</name> <dir>3</dir> <type>1</type> </port> <inst class_id_reference="30" object_id_reference="_88"></inst> </sink> </item> <item class_id_reference="32" object_id="_115"> <type>1</type> <name>p_mul_stencil_stream_s</name> <ssdmobj_id>27</ssdmobj_id> <ctype>0</ctype> <depth>1</depth> <bitwidth>32</bitwidth> <source class_id_reference="28" object_id="_116"> <port class_id_reference="29" object_id="_117"> <name>in</name> <dir>3</dir> <type>0</type> </port> <inst class_id_reference="30" object_id_reference="_82"></inst> </source> <sink class_id_reference="28" object_id="_118"> <port class_id_reference="29" object_id="_119"> <name>out</name> <dir>3</dir> <type>1</type> </port> <inst class_id_reference="30" object_id_reference="_88"></inst> </sink> </item> </channel_list> <net_list class_id="33" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </net_list> </mDfPipe> </item> </cdfg_regions> <fsm class_id="34" tracking_level="1" version="0" object_id="_120"> <states class_id="35" tracking_level="0" version="0"> <count>8</count> <item_version>0</item_version> <item class_id="36" tracking_level="1" version="0" object_id="_121"> <id>1</id> <operations class_id="37" tracking_level="0" version="0"> <count>6</count> <item_version>0</item_version> <item class_id="38" tracking_level="1" version="0" object_id="_122"> <id>11</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="38" object_id="_123"> <id>15</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="38" object_id="_124"> <id>19</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="38" object_id="_125"> <id>23</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="38" object_id="_126"> <id>27</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="38" object_id="_127"> <id>33</id> <stage>2</stage> <latency>2</latency> </item> </operations> </item> <item class_id_reference="36" object_id="_128"> <id>2</id> <operations> <count>1</count> <item_version>0</item_version> <item class_id_reference="38" object_id="_129"> <id>33</id> <stage>1</stage> <latency>2</latency> </item> </operations> </item> <item class_id_reference="36" object_id="_130"> <id>3</id> <operations> <count>1</count> <item_version>0</item_version> <item class_id_reference="38" object_id="_131"> <id>34</id> <stage>2</stage> <latency>2</latency> </item> </operations> </item> <item class_id_reference="36" object_id="_132"> <id>4</id> <operations> <count>1</count> <item_version>0</item_version> <item class_id_reference="38" object_id="_133"> <id>34</id> <stage>1</stage> <latency>2</latency> </item> </operations> </item> <item class_id_reference="36" object_id="_134"> <id>5</id> <operations> <count>2</count> <item_version>0</item_version> <item class_id_reference="38" object_id="_135"> <id>35</id> <stage>2</stage> <latency>2</latency> </item> <item class_id_reference="38" object_id="_136"> <id>36</id> <stage>2</stage> <latency>2</latency> </item> </operations> </item> <item class_id_reference="36" object_id="_137"> <id>6</id> <operations> <count>2</count> <item_version>0</item_version> <item class_id_reference="38" object_id="_138"> <id>35</id> <stage>1</stage> <latency>2</latency> </item> <item class_id_reference="38" object_id="_139"> <id>36</id> <stage>1</stage> <latency>2</latency> </item> </operations> </item> <item class_id_reference="36" object_id="_140"> <id>7</id> <operations> <count>1</count> <item_version>0</item_version> <item class_id_reference="38" object_id="_141"> <id>37</id> <stage>2</stage> <latency>2</latency> </item> </operations> </item> <item class_id_reference="36" object_id="_142"> <id>8</id> <operations> <count>25</count> <item_version>0</item_version> <item class_id_reference="38" object_id="_143"> <id>5</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="38" object_id="_144"> <id>6</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="38" object_id="_145"> <id>7</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="38" object_id="_146"> <id>8</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="38" object_id="_147"> <id>9</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="38" object_id="_148"> <id>10</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="38" object_id="_149"> <id>12</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="38" object_id="_150"> <id>13</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="38" object_id="_151"> <id>14</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="38" object_id="_152"> <id>16</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="38" object_id="_153"> <id>17</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="38" object_id="_154"> <id>18</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="38" object_id="_155"> <id>20</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="38" object_id="_156"> <id>21</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="38" object_id="_157"> <id>22</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="38" object_id="_158"> <id>24</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="38" object_id="_159"> <id>25</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="38" object_id="_160"> <id>26</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="38" object_id="_161"> <id>28</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="38" object_id="_162"> <id>29</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="38" object_id="_163"> <id>30</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="38" object_id="_164"> <id>31</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="38" object_id="_165"> <id>32</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="38" object_id="_166"> <id>37</id> <stage>1</stage> <latency>2</latency> </item> <item class_id_reference="38" object_id="_167"> <id>38</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> </states> <transitions class_id="39" tracking_level="0" version="0"> <count>7</count> <item_version>0</item_version> <item class_id="40" tracking_level="1" version="0" object_id="_168"> <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="_169"> <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="_170"> <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> <item class_id_reference="40" object_id="_171"> <inState>4</inState> <outState>5</outState> <condition> <id>3</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="_172"> <inState>5</inState> <outState>6</outState> <condition> <id>4</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="_173"> <inState>6</inState> <outState>7</outState> <condition> <id>5</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="_174"> <inState>7</inState> <outState>8</outState> <condition> <id>6</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="-1"></res> <node_label_latency class_id="45" tracking_level="0" version="0"> <count>11</count> <item_version>0</item_version> <item class_id="46" tracking_level="0" version="0"> <first>11</first> <second class_id="47" tracking_level="0" version="0"> <first>0</first> <second>0</second> </second> </item> <item> <first>15</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>19</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>23</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>33</first> <second> <first>0</first> <second>1</second> </second> </item> <item> <first>34</first> <second> <first>2</first> <second>1</second> </second> </item> <item> <first>35</first> <second> <first>4</first> <second>1</second> </second> </item> <item> <first>36</first> <second> <first>4</first> <second>1</second> </second> </item> <item> <first>37</first> <second> <first>6</first> <second>1</second> </second> </item> <item> <first>38</first> <second> <first>7</first> <second>0</second> </second> </item> </node_label_latency> <bblk_ent_exit class_id="48" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="49" tracking_level="0" version="0"> <first>39</first> <second class_id="50" tracking_level="0" version="0"> <first>0</first> <second>7</second> </second> </item> </bblk_ent_exit> <regions class_id="51" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="52" tracking_level="1" version="0" object_id="_175"> <region_name>hls_target</region_name> <basic_blocks> <count>1</count> <item_version>0</item_version> <item>39</item> </basic_blocks> <nodes> <count>34</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> <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> </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="53" tracking_level="0" version="0"> <count>10</count> <item_version>0</item_version> <item class_id="54" tracking_level="0" version="0"> <first>62</first> <second> <count>1</count> <item_version>0</item_version> <item>11</item> </second> </item> <item> <first>66</first> <second> <count>1</count> <item_version>0</item_version> <item>15</item> </second> </item> <item> <first>70</first> <second> <count>1</count> <item_version>0</item_version> <item>19</item> </second> </item> <item> <first>74</first> <second> <count>1</count> <item_version>0</item_version> <item>23</item> </second> </item> <item> <first>78</first> <second> <count>1</count> <item_version>0</item_version> <item>27</item> </second> </item> <item> <first>82</first> <second> <count>2</count> <item_version>0</item_version> <item>33</item> <item>33</item> </second> </item> <item> <first>91</first> <second> <count>2</count> <item_version>0</item_version> <item>36</item> <item>36</item> </second> </item> <item> <first>97</first> <second> <count>2</count> <item_version>0</item_version> <item>37</item> <item>37</item> </second> </item> <item> <first>107</first> <second> <count>2</count> <item_version>0</item_version> <item>35</item> <item>35</item> </second> </item> <item> <first>113</first> <second> <count>2</count> <item_version>0</item_version> <item>34</item> <item>34</item> </second> </item> </dp_fu_nodes> <dp_fu_nodes_expression class_id="56" tracking_level="0" version="0"> <count>5</count> <item_version>0</item_version> <item class_id="57" tracking_level="0" version="0"> <first>p_delayed_input_stenc_fu_74</first> <second> <count>1</count> <item_version>0</item_version> <item>23</item> </second> </item> <item> <first>p_hw_input_stencil_st_3_fu_66</first> <second> <count>1</count> <item_version>0</item_version> <item>15</item> </second> </item> <item> <first>p_hw_input_stencil_st_4_fu_70</first> <second> <count>1</count> <item_version>0</item_version> <item>19</item> </second> </item> <item> <first>p_hw_input_stencil_st_fu_62</first> <second> <count>1</count> <item_version>0</item_version> <item>11</item> </second> </item> <item> <first>p_mul_stencil_stream_s_fu_78</first> <second> <count>1</count> <item_version>0</item_version> <item>27</item> </second> </item> </dp_fu_nodes_expression> <dp_fu_nodes_module> <count>5</count> <item_version>0</item_version> <item> <first>grp_Loop_1_proc_fu_113</first> <second> <count>2</count> <item_version>0</item_version> <item>34</item> <item>34</item> </second> </item> <item> <first>grp_Loop_2_proc_fu_107</first> <second> <count>2</count> <item_version>0</item_version> <item>35</item> <item>35</item> </second> </item> <item> <first>grp_Loop_3_proc_fu_91</first> <second> <count>2</count> <item_version>0</item_version> <item>36</item> <item>36</item> </second> </item> <item> <first>grp_Loop_4_proc_fu_97</first> <second> <count>2</count> <item_version>0</item_version> <item>37</item> <item>37</item> </second> </item> <item> <first>grp_linebuffer_1_fu_82</first> <second> <count>2</count> <item_version>0</item_version> <item>33</item> <item>33</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="58" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </dp_mem_port_nodes> <dp_reg_nodes> <count>5</count> <item_version>0</item_version> <item> <first>120</first> <second> <count>1</count> <item_version>0</item_version> <item>11</item> </second> </item> <item> <first>126</first> <second> <count>1</count> <item_version>0</item_version> <item>15</item> </second> </item> <item> <first>132</first> <second> <count>1</count> <item_version>0</item_version> <item>19</item> </second> </item> <item> <first>138</first> <second> <count>1</count> <item_version>0</item_version> <item>23</item> </second> </item> <item> <first>144</first> <second> <count>1</count> <item_version>0</item_version> <item>27</item> </second> </item> </dp_reg_nodes> <dp_regname_nodes> <count>5</count> <item_version>0</item_version> <item> <first>p_delayed_input_stenc_reg_138</first> <second> <count>1</count> <item_version>0</item_version> <item>23</item> </second> </item> <item> <first>p_hw_input_stencil_st_3_reg_126</first> <second> <count>1</count> <item_version>0</item_version> <item>15</item> </second> </item> <item> <first>p_hw_input_stencil_st_4_reg_132</first> <second> <count>1</count> <item_version>0</item_version> <item>19</item> </second> </item> <item> <first>p_hw_input_stencil_st_reg_120</first> <second> <count>1</count> <item_version>0</item_version> <item>11</item> </second> </item> <item> <first>p_mul_stencil_stream_s_reg_144</first> <second> <count>1</count> <item_version>0</item_version> <item>27</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="59" tracking_level="0" version="0"> <count>4</count> <item_version>0</item_version> <item class_id="60" 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>33</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>33</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>37</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>37</item> </second> </item> </second> </item> </dp_port_io_nodes> <port2core class_id="61" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </port2core> <node2core> <count>5</count> <item_version>0</item_version> <item class_id="62" tracking_level="0" version="0"> <first>11</first> <second>FIFO_SRL</second> </item> <item> <first>15</first> <second>FIFO_SRL</second> </item> <item> <first>19</first> <second>FIFO_SRL</second> </item> <item> <first>23</first> <second>FIFO_SRL</second> </item> <item> <first>27</first> <second>FIFO_SRL</second> </item> </node2core> </syndb> </boost_serialization>
26.913672
137
0.594823
318b0e30ad5f09210fdd05d8bc1c0206a9287118
1,750
ads
Ada
kv-avm-clients.ads
davidkristola/vole
aa8e19d9deff2efe98fcd4dc0028c2895d624693
[ "Unlicense" ]
4
2015-02-02T12:11:41.000Z
2020-12-19T02:14:21.000Z
kv-avm-clients.ads
davidkristola/vole
aa8e19d9deff2efe98fcd4dc0028c2895d624693
[ "Unlicense" ]
null
null
null
kv-avm-clients.ads
davidkristola/vole
aa8e19d9deff2efe98fcd4dc0028c2895d624693
[ "Unlicense" ]
3
2017-02-22T10:44:02.000Z
2021-05-16T09:34:39.000Z
with Ada.Unchecked_Deallocation; with Interfaces; with kv.avm.Transactions; package kv.avm.Clients is type Client_Interface is interface; type Client_Access is access all Client_Interface'CLASS; type Status_Type is (Uninitialized, Closed, Running, Transacting, Failed); subtype Open_Status_Type is Status_Type range Running .. Transacting; procedure Bind_Address (Self : in out Client_Interface; Address : in String) is abstract; procedure Bind_Port (Self : in out Client_Interface; Port : in Positive) is abstract; procedure Open (Self : in out Client_Interface) is abstract; procedure Close (Self : in out Client_Interface) is abstract; function Get_Status(Self : Client_Interface) return Status_Type is abstract; function Is_Open(Self : Client_Interface) return Boolean is abstract; procedure Send_Transaction (Self : in out Client_Interface; Transaction : in kv.avm.Transactions.Transactions_Interface'CLASS) is abstract; procedure Conclude_Transaction (Self : in out Client_Interface) is abstract; function Is_Transaction_Pending(Self : Client_Interface) return Boolean is abstract; function Get_Transaction(Self : Client_Interface) return kv.avm.Transactions.Transactions_Access is abstract; function Get_Domain(Self : Client_Interface) return Interfaces.Unsigned_32 is abstract; procedure Free is new Ada.Unchecked_Deallocation(Client_Interface'CLASS, Client_Access); type Client_Factory is interface; type Factory_Access is access all Client_Factory'CLASS; procedure New_Client (Self : in out Client_Factory; Client : out Client_Access) is abstract; end kv.avm.Clients;
32.407407
112
0.748
31a285591f5d958473b507ed568d1468e3b26bf2
4,645
adb
Ada
gcc-gcc-7_3_0-release/gcc/ada/a-colire.adb
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
7
2020-05-02T17:34:05.000Z
2021-10-17T10:15:18.000Z
gcc-gcc-7_3_0-release/gcc/ada/a-colire.adb
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
null
null
null
gcc-gcc-7_3_0-release/gcc/ada/a-colire.adb
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
2
2020-07-27T00:22:36.000Z
2021-04-01T09:41:02.000Z
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- A D A . C O M M A N D _ L I N E . R E M O V E -- -- -- -- B o d y -- -- -- -- Copyright (C) 1999-2009, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ package body Ada.Command_Line.Remove is ----------------------- -- Local Subprograms -- ----------------------- procedure Initialize; -- Initialize the Remove_Count and Remove_Args variables ---------------- -- Initialize -- ---------------- procedure Initialize is begin if Remove_Args = null then Remove_Count := Argument_Count; Remove_Args := new Arg_Nums (1 .. Argument_Count); for J in Remove_Args'Range loop Remove_Args (J) := J; end loop; end if; end Initialize; --------------------- -- Remove_Argument -- --------------------- procedure Remove_Argument (Number : Positive) is begin Initialize; if Number > Remove_Count then raise Constraint_Error; end if; Remove_Count := Remove_Count - 1; for J in Number .. Remove_Count loop Remove_Args (J) := Remove_Args (J + 1); end loop; end Remove_Argument; procedure Remove_Argument (Argument : String) is begin for J in reverse 1 .. Argument_Count loop if Argument = Ada.Command_Line.Argument (J) then Remove_Argument (J); end if; end loop; end Remove_Argument; ---------------------- -- Remove_Arguments -- ---------------------- procedure Remove_Arguments (From : Positive; To : Natural) is begin Initialize; if From > Remove_Count or else To > Remove_Count then raise Constraint_Error; end if; if To >= From then Remove_Count := Remove_Count - (To - From + 1); for J in From .. Remove_Count loop Remove_Args (J) := Remove_Args (J + (To - From + 1)); end loop; end if; end Remove_Arguments; procedure Remove_Arguments (Argument_Prefix : String) is begin for J in reverse 1 .. Argument_Count loop declare Arg : constant String := Argument (J); begin if Arg'Length >= Argument_Prefix'Length and then Arg (1 .. Argument_Prefix'Length) = Argument_Prefix then Remove_Argument (J); end if; end; end loop; end Remove_Arguments; end Ada.Command_Line.Remove;
37.16
78
0.455328
121cd86396f155b45ed3cac7a5ea2eb60dd06f5c
3,066
ads
Ada
specs/ada/server/tkmrpc-contexts-isa.ads
DrenfongWong/tkm-rpc
075d22871cf81d497aac656c7f03a513278b641c
[ "BSD-3-Clause" ]
null
null
null
specs/ada/server/tkmrpc-contexts-isa.ads
DrenfongWong/tkm-rpc
075d22871cf81d497aac656c7f03a513278b641c
[ "BSD-3-Clause" ]
null
null
null
specs/ada/server/tkmrpc-contexts-isa.ads
DrenfongWong/tkm-rpc
075d22871cf81d497aac656c7f03a513278b641c
[ "BSD-3-Clause" ]
null
null
null
with Tkmrpc.Types; package Tkmrpc.Contexts.isa is type isa_State_Type is (clean, -- Initial clean state invalid, -- Error state stale, -- IKE SA stale. active -- IKE SA is in active use. ); function Get_State (Id : Types.isa_id_type) return isa_State_Type with Pre => Is_Valid (Id); function Is_Valid (Id : Types.isa_id_type) return Boolean; -- Returns True if the given id has a valid value. function Has_ae_id (Id : Types.isa_id_type; ae_id : Types.ae_id_type) return Boolean with Pre => Is_Valid (Id); -- Returns True if the context specified by id has the given -- ae_id value. function Has_creation_time (Id : Types.isa_id_type; creation_time : Types.rel_time_type) return Boolean with Pre => Is_Valid (Id); -- Returns True if the context specified by id has the given -- creation_time value. function Has_ia_id (Id : Types.isa_id_type; ia_id : Types.ia_id_type) return Boolean with Pre => Is_Valid (Id); -- Returns True if the context specified by id has the given -- ia_id value. function Has_max_rekey_age (Id : Types.isa_id_type; max_rekey_age : Types.duration_type) return Boolean with Pre => Is_Valid (Id); -- Returns True if the context specified by id has the given -- max_rekey_age value. function Has_sk_d (Id : Types.isa_id_type; sk_d : Types.key_type) return Boolean with Pre => Is_Valid (Id); -- Returns True if the context specified by id has the given -- sk_d value. function Has_State (Id : Types.isa_id_type; State : isa_State_Type) return Boolean with Pre => Is_Valid (Id); -- Returns True if the context specified by id has the given -- State value. procedure create (Id : Types.isa_id_type; ae_id : Types.ae_id_type; ia_id : Types.ia_id_type; sk_d : Types.key_type; creation_time : Types.rel_time_type) with Pre => Is_Valid (Id) and then (Has_State (Id, clean)), Post => Has_State (Id, active) and Has_ae_id (Id, ae_id) and Has_ia_id (Id, ia_id) and Has_sk_d (Id, sk_d) and Has_creation_time (Id, creation_time); function get_ae_id (Id : Types.isa_id_type) return Types.ae_id_type with Pre => Is_Valid (Id) and then (Has_State (Id, active)), Post => Has_ae_id (Id, get_ae_id'Result); function get_sk_d (Id : Types.isa_id_type) return Types.key_type with Pre => Is_Valid (Id) and then (Has_State (Id, active)), Post => Has_sk_d (Id, get_sk_d'Result); procedure invalidate (Id : Types.isa_id_type) with Pre => Is_Valid (Id), Post => Has_State (Id, invalid); procedure reset (Id : Types.isa_id_type) with Pre => Is_Valid (Id), Post => Has_State (Id, clean); end Tkmrpc.Contexts.isa;
24.725806
64
0.613503
31738ffe4ef32912cb04f902057661a47fd58a94
588
ada
Ada
Programas Ada95/funcionesAnidadas.ada
mendoza/mini-ada95
da77d99b6afa68570f6528f2fa283b1c2751a2f5
[ "MIT" ]
null
null
null
Programas Ada95/funcionesAnidadas.ada
mendoza/mini-ada95
da77d99b6afa68570f6528f2fa283b1c2751a2f5
[ "MIT" ]
null
null
null
Programas Ada95/funcionesAnidadas.ada
mendoza/mini-ada95
da77d99b6afa68570f6528f2fa283b1c2751a2f5
[ "MIT" ]
1
2021-09-26T08:00:50.000Z
2021-09-26T08:00:50.000Z
------ FUNCIONES ANIDADAS/ RECURSIVA/ IF / LOOP procedure Hello is a: Integer; b: Float ; c: Boolean; function dos(a,b:in Integer) return Integer is function uno(a,b:in Integer) return Integer is begin Put(one); return uno(x, y); end uno; begin Put(one); return; end dos; function uno(a,b:in Integer) return Integer is begin Put(one); return True; end uno; begin b := 2.0; c := True; loop Put(a); exit when (a>2); end loop; end Hello;
17.294118
51
0.518707
4d5446b3aac2d535569c91a8656a17b5b3803861
1,506
adb
Ada
samples/serialize.adb
yrashk/ada-util
2aaa1d87e92a7137e1c63dce90f0722c549dfafd
[ "Apache-2.0" ]
60
2015-01-18T23:05:34.000Z
2022-03-20T18:56:30.000Z
samples/serialize.adb
yrashk/ada-util
2aaa1d87e92a7137e1c63dce90f0722c549dfafd
[ "Apache-2.0" ]
20
2016-09-15T16:41:30.000Z
2022-03-29T22:02:32.000Z
samples/serialize.adb
yrashk/ada-util
2aaa1d87e92a7137e1c63dce90f0722c549dfafd
[ "Apache-2.0" ]
10
2015-02-13T04:00:45.000Z
2022-03-20T18:57:54.000Z
----------------------------------------------------------------------- -- serialize -- JSON serialization -- Copyright (C) 2017 Stephane Carrez -- Written by Stephane Carrez ([email protected]) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in writing, software -- distributed under the License is distributed on an "AS IS" BASIS, -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. ----------------------------------------------------------------------- with Ada.Text_IO; with Util.Serialize.IO.JSON; with Util.Streams.Texts; procedure Serialize is Output : aliased Util.Streams.Texts.Print_Stream; Stream : Util.Serialize.IO.JSON.Output_Stream; begin Output.Initialize (Size => 10000); Stream.Initialize (Output => Output'Unchecked_Access); Stream.Start_Document; Stream.Start_Entity ("person"); Stream.Write_Entity ("name", "Harry Potter"); Stream.Write_Entity ("gender", "male"); Stream.Write_Entity ("age", 17); Stream.End_Entity ("person"); Stream.End_Document; Ada.Text_IO.Put_Line (Util.Streams.Texts.To_String (Output)); end Serialize;
41.833333
77
0.646746
1d08316f9afcfe26d4c785ca93c4b82da231d472
14,705
adb
Ada
firehog/ncurses/Ada95/samples/sample-menu_demo.adb
KipodAfterFree/KAF-2019-FireHog
5f6ee3c3c3329459bc9daeabc1a16ff4619508d9
[ "MIT" ]
null
null
null
firehog/ncurses/Ada95/samples/sample-menu_demo.adb
KipodAfterFree/KAF-2019-FireHog
5f6ee3c3c3329459bc9daeabc1a16ff4619508d9
[ "MIT" ]
null
null
null
firehog/ncurses/Ada95/samples/sample-menu_demo.adb
KipodAfterFree/KAF-2019-FireHog
5f6ee3c3c3329459bc9daeabc1a16ff4619508d9
[ "MIT" ]
1
2019-12-26T10:18:16.000Z
2019-12-26T10:18:16.000Z
------------------------------------------------------------------------------ -- -- -- GNAT ncurses Binding Samples -- -- -- -- Sample.Menu_Demo -- -- -- -- B O D Y -- -- -- ------------------------------------------------------------------------------ -- Copyright (c) 1998 Free Software Foundation, Inc. -- -- -- -- Permission is hereby granted, free of charge, to any person obtaining a -- -- copy of this software and associated documentation files (the -- -- "Software"), to deal in the Software without restriction, including -- -- without limitation the rights to use, copy, modify, merge, publish, -- -- distribute, distribute with modifications, sublicense, and/or sell -- -- copies of the Software, and to permit persons to whom the Software is -- -- furnished to do so, subject to the following conditions: -- -- -- -- The above copyright notice and this permission notice shall be included -- -- in all copies or substantial portions of the Software. -- -- -- -- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -- -- OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -- -- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -- -- IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -- -- DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -- -- OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR -- -- THE USE OR OTHER DEALINGS IN THE SOFTWARE. -- -- -- -- Except as contained in this notice, the name(s) of the above copyright -- -- holders shall not be used in advertising or otherwise to promote the -- -- sale, use or other dealings in this Software without prior written -- -- authorization. -- ------------------------------------------------------------------------------ -- Author: Juergen Pfeifer <[email protected]> 1996 -- Version Control -- $Revision: 1.7 $ -- Binding Version 00.93 ------------------------------------------------------------------------------ with Terminal_Interface.Curses; use Terminal_Interface.Curses; with Terminal_Interface.Curses.Panels; use Terminal_Interface.Curses.Panels; with Terminal_Interface.Curses.Menus; use Terminal_Interface.Curses.Menus; with Terminal_Interface.Curses.Menus.Menu_User_Data; with Terminal_Interface.Curses.Menus.Item_User_Data; with Ada.Characters.Latin_1; use Ada.Characters.Latin_1; with Sample.Manifest; use Sample.Manifest; with Sample.Function_Key_Setting; use Sample.Function_Key_Setting; with Sample.Keyboard_Handler; use Sample.Keyboard_Handler; with Sample.Menu_Demo.Handler; with Sample.Helpers; use Sample.Helpers; with Sample.Explanation; use Sample.Explanation; package body Sample.Menu_Demo is package Spacing_Demo is procedure Spacing_Test; end Spacing_Demo; package body Spacing_Demo is procedure Spacing_Test is function My_Driver (M : Menu; K : Key_Code; P : Panel) return Boolean; procedure Set_Option_Key; procedure Set_Select_Key; procedure Set_Description_Key; procedure Set_Hide_Key; package Mh is new Sample.Menu_Demo.Handler (My_Driver); I : Item_Array_Access := new Item_Array' (New_Item ("January", "31 Days"), New_Item ("February", "28/29 Days"), New_Item ("March", "31 Days"), New_Item ("April", "30 Days"), New_Item ("May", "31 Days"), New_Item ("June", "30 Days"), New_Item ("July", "31 Days"), New_Item ("August", "31 Days"), New_Item ("September", "30 Days"), New_Item ("October", "31 Days"), New_Item ("November", "30 Days"), New_Item ("December", "31 Days"), Null_Item); M : Menu := New_Menu (I); Flip_State : Boolean := True; Hide_Long : Boolean := False; type Format_Code is (Four_By_1, Four_By_2, Four_By_3); type Operations is (Flip, Reorder, Reformat, Reselect, Describe); type Change is array (Operations) of Boolean; pragma Pack (Change); No_Change : constant Change := Change'(others => False); Current_Format : Format_Code := Four_By_1; To_Change : Change := No_Change; function My_Driver (M : Menu; K : Key_Code; P : Panel) return Boolean is begin To_Change := No_Change; if K in User_Key_Code'Range then if K = QUIT then return True; end if; end if; if K in Special_Key_Code'Range then case K is when Key_F4 => To_Change (Flip) := True; return True; when Key_F5 => To_Change (Reformat) := True; Current_Format := Four_By_1; return True; when Key_F6 => To_Change (Reformat) := True; Current_Format := Four_By_2; return True; when Key_F7 => To_Change (Reformat) := True; Current_Format := Four_By_3; return True; when Key_F8 => To_Change (Reorder) := True; return True; when Key_F9 => To_Change (Reselect) := True; return True; when Key_F10 => if Current_Format /= Four_By_3 then To_Change (Describe) := True; return True; else return False; end if; when Key_F11 => Hide_Long := not Hide_Long; declare O : Item_Option_Set; begin for J in I'Range loop Get_Options (I (J), O); O.Selectable := True; if Hide_Long then case J is when 1 | 3 | 5 | 7 | 8 | 10 | 12 => O.Selectable := False; when others => null; end case; end if; Set_Options (I (J), O); end loop; end; return False; when others => null; end case; end if; return False; end My_Driver; procedure Set_Option_Key is O : Menu_Option_Set; begin if Current_Format = Four_By_1 then Set_Soft_Label_Key (8, ""); else Get_Options (M, O); if O.Row_Major_Order then Set_Soft_Label_Key (8, "O-Col"); else Set_Soft_Label_Key (8, "O-Row"); end if; end if; Refresh_Soft_Label_Keys_Without_Update; end Set_Option_Key; procedure Set_Select_Key is O : Menu_Option_Set; begin Get_Options (M, O); if O.One_Valued then Set_Soft_Label_Key (9, "Multi"); else Set_Soft_Label_Key (9, "Singl"); end if; Refresh_Soft_Label_Keys_Without_Update; end Set_Select_Key; procedure Set_Description_Key is O : Menu_Option_Set; begin if Current_Format = Four_By_3 then Set_Soft_Label_Key (10, ""); else Get_Options (M, O); if O.Show_Descriptions then Set_Soft_Label_Key (10, "-Desc"); else Set_Soft_Label_Key (10, "+Desc"); end if; end if; Refresh_Soft_Label_Keys_Without_Update; end Set_Description_Key; procedure Set_Hide_Key is begin if Hide_Long then Set_Soft_Label_Key (11, "Enab"); else Set_Soft_Label_Key (11, "Disab"); end if; Refresh_Soft_Label_Keys_Without_Update; end Set_Hide_Key; begin Push_Environment ("MENU01"); Notepad ("MENU-PAD01"); Default_Labels; Set_Soft_Label_Key (4, "Flip"); Set_Soft_Label_Key (5, "4x1"); Set_Soft_Label_Key (6, "4x2"); Set_Soft_Label_Key (7, "4x3"); Set_Option_Key; Set_Select_Key; Set_Description_Key; Set_Hide_Key; Set_Format (M, 4, 1); loop Mh.Drive_Me (M); exit when To_Change = No_Change; if To_Change (Flip) then if Flip_State then Flip_State := False; Set_Spacing (M, 3, 2, 0); else Flip_State := True; Set_Spacing (M); end if; elsif To_Change (Reformat) then case Current_Format is when Four_By_1 => Set_Format (M, 4, 1); when Four_By_2 => Set_Format (M, 4, 2); when Four_By_3 => declare O : Menu_Option_Set; begin Get_Options (M, O); O.Show_Descriptions := False; Set_Options (M, O); Set_Format (M, 4, 3); end; end case; Set_Option_Key; Set_Description_Key; elsif To_Change (Reorder) then declare O : Menu_Option_Set; begin Get_Options (M, O); O.Row_Major_Order := not O.Row_Major_Order; Set_Options (M, O); Set_Option_Key; end; elsif To_Change (Reselect) then declare O : Menu_Option_Set; begin Get_Options (M, O); O.One_Valued := not O.One_Valued; Set_Options (M, O); Set_Select_Key; end; elsif To_Change (Describe) then declare O : Menu_Option_Set; begin Get_Options (M, O); O.Show_Descriptions := not O.Show_Descriptions; Set_Options (M, O); Set_Description_Key; end; else null; end if; end loop; Set_Spacing (M); Flip_State := True; Pop_Environment; Delete (M); Free (I, True); end Spacing_Test; end Spacing_Demo; procedure Demo is -- We use this datatype only to test the instantiation of -- the Menu_User_Data generic package. No functionality -- behind it. type User_Data is new Integer; type User_Data_Access is access User_Data; -- Those packages are only instantiated to test the usability. -- No real functionality is shown in the demo. package MUD is new Menu_User_Data (User_Data, User_Data_Access); package IUD is new Item_User_Data (User_Data, User_Data_Access); function My_Driver (M : Menu; K : Key_Code; P : Panel) return Boolean; package Mh is new Sample.Menu_Demo.Handler (My_Driver); Itm : Item_Array_Access := new Item_Array' (New_Item ("Menu Layout Options"), New_Item ("Demo of Hook functions"), Null_Item); M : Menu := New_Menu (Itm); U1 : User_Data_Access := new User_Data'(4711); U2 : User_Data_Access; U3 : User_Data_Access := new User_Data'(4712); U4 : User_Data_Access; function My_Driver (M : Menu; K : Key_Code; P : Panel) return Boolean is Idx : constant Positive := Get_Index (Current (M)); begin if K in User_Key_Code'Range then if K = QUIT then return True; elsif K = SELECT_ITEM then if Idx in Itm'Range then Hide (P); Update_Panels; end if; case Idx is when 1 => Spacing_Demo.Spacing_Test; when others => Not_Implemented; end case; if Idx in Itm'Range then Top (P); Show (P); Update_Panels; Update_Screen; end if; end if; end if; return False; end My_Driver; begin Push_Environment ("MENU00"); Notepad ("MENU-PAD00"); Default_Labels; Refresh_Soft_Label_Keys_Without_Update; Set_Pad_Character (M, '|'); MUD.Set_User_Data (M, U1); IUD.Set_User_Data (Itm (1), U3); Mh.Drive_Me (M); MUD.Get_User_Data (M, U2); pragma Assert (U1 = U2 and U1.all = 4711); IUD.Get_User_Data (Itm (1), U4); pragma Assert (U3 = U4 and U3.all = 4712); Pop_Environment; Delete (M); Free (Itm, True); end Demo; end Sample.Menu_Demo;
37.417303
78
0.465216
31c80b00ae0f89633cb03bc17592fc8a6fc62ef5
3,053
ads
Ada
source/asis/asis-gela-parser_utils.ads
faelys/gela-asis
48a3bee90eda9f0c9d958b4e3c80a5a9b1c65253
[ "BSD-3-Clause" ]
4
2016-02-05T15:51:56.000Z
2022-03-25T20:38:32.000Z
source/asis/asis-gela-parser_utils.ads
faelys/gela-asis
48a3bee90eda9f0c9d958b4e3c80a5a9b1c65253
[ "BSD-3-Clause" ]
null
null
null
source/asis/asis-gela-parser_utils.ads
faelys/gela-asis
48a3bee90eda9f0c9d958b4e3c80a5a9b1c65253
[ "BSD-3-Clause" ]
null
null
null
------------------------------------------------------------------------------ -- G E L A A S I S -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- - - - - - - - - - - - - - - - -- -- Read copyright and license at the end of this file -- ------------------------------------------------------------------------------ -- $Revision: 209 $ $Date: 2013-11-30 21:03:24 +0200 (Сб., 30 нояб. 2013) $ -- Purpose: -- Helper procedures used in parser to build AST with Asis.Gela.Elements.Expr; with Asis.Gela.Elements.Helpers; package Asis.Gela.Parser_Utils is procedure Init_Token (Element : in out Elements.Helpers.Token_Node; Line : in Positive; Column : in Positive; Length : in Positive; Image : in Gela_String); procedure Push_Argument (Call : in out Elements.Expr.Function_Call_Node; Arg : in Asis.Element); procedure Push_Argument (Call : in out Elements.Expr.Base_Short_Circuit_Node'Class; Arg : in Asis.Element); end Asis.Gela.Parser_Utils; ------------------------------------------------------------------------------ -- Copyright (c) 2006-2013, Maxim Reznik -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions are met: -- -- * Redistributions of source code must retain the above copyright notice, -- this list of conditions and the following disclaimer. -- * Redistributions in binary form must reproduce the above copyright -- notice, this list of conditions and the following disclaimer in the -- documentation and/or other materials provided with the distribution. -- * Neither the name of the Maxim Reznik, IE nor the names of its -- contributors may be used to endorse or promote products derived from -- this software without specific prior written permission. -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -- ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE -- LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -- CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -- SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -- INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -- CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -- POSSIBILITY OF SUCH DAMAGE. ------------------------------------------------------------------------------
48.460317
79
0.590894
31368a077fe026a5ff86ef5fae4acd5cbf9a617a
1,402
ads
Ada
tier-1/xcb/source/thin/xcb-xcb_glx_get_tex_gendv_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_gendv_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_gendv_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_gendv_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_gendv_cookie_t .Item; -- Pointer -- package C_Pointers is new Interfaces.C.Pointers (Index => Interfaces.C.size_t, Element => xcb.xcb_glx_get_tex_gendv_cookie_t.Item, Element_Array => xcb.xcb_glx_get_tex_gendv_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_gendv_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_gendv_cookie_t.Pointer, Element_Array => xcb.xcb_glx_get_tex_gendv_cookie_t.Pointer_Array, Default_Terminator => null); subtype Pointer_Pointer is C_Pointer_Pointers.Pointer; end xcb.xcb_glx_get_tex_gendv_cookie_t;
26.45283
77
0.669757
df2caf865ffb67f941cf302933150de1c7976653
3,850
ads
Ada
src/gen-model-queries.ads
jquorning/dynamo
10d68571476c270b8e45a9c5ef585fa9139b0d05
[ "Apache-2.0" ]
15
2015-01-18T23:04:19.000Z
2022-03-01T20:27:08.000Z
src/gen-model-queries.ads
jquorning/dynamo
10d68571476c270b8e45a9c5ef585fa9139b0d05
[ "Apache-2.0" ]
16
2018-06-10T07:09:30.000Z
2022-03-26T18:28:40.000Z
src/gen-model-queries.ads
jquorning/dynamo
10d68571476c270b8e45a9c5ef585fa9139b0d05
[ "Apache-2.0" ]
3
2015-11-11T18:00:14.000Z
2022-01-30T23:08:45.000Z
----------------------------------------------------------------------- -- gen-model-queries -- XML Mapped Database queries representation -- Copyright (C) 2009, 2010, 2011, 2012, 2013, 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 Util.Encoders.SHA1; with Gen.Model.List; with Gen.Model.Tables; package Gen.Model.Queries is -- ------------------------------ -- Sort definition -- ------------------------------ type Sort_Definition is new Definition with record Sql : UString; end record; type Sort_Definition_Access is access all Sort_Definition'Class; -- Get the value identified by the name. -- If the name cannot be found, the method should return the Null object. overriding function Get_Value (From : in Sort_Definition; Name : in String) return UBO.Object; package Sort_List is new Gen.Model.List (T => Sort_Definition, T_Access => Sort_Definition_Access); -- ------------------------------ -- Query definition -- ------------------------------ type Query_Definition is new Gen.Model.Tables.Table_Definition with record Sorts_Bean : UBO.Object; Sorts : aliased Sort_List.List_Definition; end record; type Query_Definition_Access is access all Query_Definition'Class; -- Get the value identified by the name. -- If the name cannot be found, the method should return the Null object. overriding function Get_Value (From : in Query_Definition; Name : in String) return UBO.Object; -- Prepare the generation of the model. overriding procedure Prepare (O : in out Query_Definition); -- Add a new sort mode for the query definition. procedure Add_Sort (Into : in out Query_Definition; Name : in UString; Sql : in UString); -- Initialize the table definition instance. overriding procedure Initialize (O : in out Query_Definition); -- ------------------------------ -- Table Definition -- ------------------------------ type Query_File_Definition is new Query_Definition with record File_Name : UString; Sha1 : Util.Encoders.SHA1.Digest; Queries : aliased Gen.Model.Tables.Table_List.List_Definition; Queries_Bean : UBO.Object; end record; type Query_File_Definition_Access is access all Query_File_Definition'Class; -- Get the value identified by the name. -- If the name cannot be found, the method should return the Null object. overriding function Get_Value (From : in Query_File_Definition; Name : in String) return UBO.Object; -- Prepare the generation of the model. overriding procedure Prepare (O : in out Query_File_Definition); -- Add a new query to the definition. procedure Add_Query (Into : in out Query_File_Definition; Name : in UString; Query : out Query_Definition_Access); private overriding procedure Initialize (O : in out Query_File_Definition); end Gen.Model.Queries;
37.745098
81
0.613506
0b8cbeb8695046efea3345d06c2c66c3bb134de6
3,576
adb
Ada
source/amf/dd/amf-internals-factories-dc_factories-convert_string_to_string.adb
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
24
2016-11-29T06:59:41.000Z
2021-08-30T11:55:16.000Z
source/amf/dd/amf-internals-factories-dc_factories-convert_string_to_string.adb
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
2
2019-01-16T05:15:20.000Z
2019-02-03T10:03:32.000Z
source/amf/dd/amf-internals-factories-dc_factories-convert_string_to_string.adb
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
4
2017-07-18T07:11:05.000Z
2020-06-21T03:02:25.000Z
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Ada Modeling Framework -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2012, Vadim Godunko <[email protected]> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ separate (AMF.Internals.Factories.DC_Factories) function Convert_String_To_String (Value : League.Holders.Holder) return League.Strings.Universal_String is begin return League.Holders.Element (Value); end Convert_String_To_String;
70.117647
78
0.417226
4d7744c50ba0db181d12c7c939d8c757b35bf502
4,918
adb
Ada
stm32f0/stm32gd-gpio-pin.adb
ekoeppen/STM32_Generic_Ada_Drivers
4ff29c3026c4b24280baf22a5b81ea9969375466
[ "MIT" ]
1
2021-04-06T07:57:56.000Z
2021-04-06T07:57:56.000Z
stm32f0/stm32gd-gpio-pin.adb
ekoeppen/STM32_Generic_Ada_Drivers
4ff29c3026c4b24280baf22a5b81ea9969375466
[ "MIT" ]
null
null
null
stm32f0/stm32gd-gpio-pin.adb
ekoeppen/STM32_Generic_Ada_Drivers
4ff29c3026c4b24280baf22a5b81ea9969375466
[ "MIT" ]
2
2018-05-29T13:59:31.000Z
2019-02-03T19:48:08.000Z
with STM32_SVD.GPIO; use STM32_SVD.GPIO; with STM32_SVD.SCB; use STM32_SVD.SCB; with STM32_SVD.RCC; use STM32_SVD.RCC; with STM32_SVD.EXTI; use STM32_SVD.EXTI; with STM32_SVD.NVIC; use STM32_SVD.NVIC; with STM32_SVD.SYSCFG; use STM32_SVD.SYSCFG; with STM32GD.GPIO.Port; package body STM32GD.GPIO.Pin is type Port_Periph_Access is access all GPIO_Peripheral; function Index return Natural is begin return GPIO_Pin'Pos (Pin); end Index; function Pin_Mask return UInt16 is begin return GPIO_Pin'Enum_Rep (Pin); end Pin_Mask; function Port_Periph return Port_Periph_Access is begin return (if Port = Port_A then STM32_SVD.GPIO.GPIOA_Periph'Access elsif Port = Port_B then STM32_SVD.GPIO.GPIOB_Periph'Access elsif Port = Port_C then STM32_SVD.GPIO.GPIOC_Periph'Access elsif Port = Port_D then STM32_SVD.GPIO.GPIOD_Periph'Access else STM32_SVD.GPIO.GPIOF_Periph'Access); end Port_Periph; procedure Enable is begin case Port is when Port_A => RCC_Periph.AHBENR.IOPAEN := 1; when Port_B => RCC_Periph.AHBENR.IOPBEN := 1; when Port_C => RCC_Periph.AHBENR.IOPCEN := 1; when Port_D => RCC_Periph.AHBENR.IOPDEN := 1; when Port_F => RCC_Periph.AHBENR.IOPFEN := 1; end case; end Enable; procedure Disable is begin case Port is when Port_A => RCC_Periph.AHBENR.IOPAEN := 0; when Port_B => RCC_Periph.AHBENR.IOPBEN := 0; when Port_C => RCC_Periph.AHBENR.IOPCEN := 0; when Port_D => RCC_Periph.AHBENR.IOPDEN := 0; when Port_F => RCC_Periph.AHBENR.IOPFEN := 0; end case; end Disable; procedure Init is begin if Mode /= Mode_In then Set_Mode (Mode); end if; if Pull_Resistor /= Floating then Set_Pull_Resistor (Pull_Resistor); end if; if Alternate_Function /= 0 then Configure_Alternate_Function (Alternate_Function); end if; end Init; procedure Set_Mode (Mode : Pin_IO_Modes) is begin Port_Periph.MODER.Arr (Index) := Pin_IO_Modes'Enum_Rep (Mode); end Set_Mode; procedure Set_Type (Pin_Type : Pin_Output_Types) is begin Port_Periph.OTYPER.OT.Arr (Index) := Pin_Output_Types'Enum_Rep (Pin_Type); end Set_Type; function Get_Pull_Resistor return Internal_Pin_Resistors is begin if Port_Periph.PUPDR.Arr (Index) = 0 then return Floating; elsif Port_Periph.PUPDR.Arr (Index) = 1 then return Pull_Up; else return Pull_Down; end if; end Get_Pull_Resistor; procedure Set_Pull_Resistor (Pull : Internal_Pin_Resistors) is begin Port_Periph.PUPDR.Arr (Index) := Internal_Pin_Resistors'Enum_Rep (Pull); end Set_Pull_Resistor; function Is_Set return Boolean is begin return (Port_Periph.IDR.IDR.Val and Pin_Mask) = Pin_Mask; end Is_Set; procedure Set is begin Port_Periph.BSRR.BS.Val := GPIO_Pin'Enum_Rep (Pin); end Set; procedure Clear is begin Port_Periph.BRR.BR.Val := GPIO_Pin'Enum_Rep (Pin); end Clear; procedure Toggle is begin Port_Periph.ODR.ODR.Val := Port_Periph.ODR.ODR.Val xor GPIO_Pin'Enum_Rep (Pin); end Toggle; procedure Configure_Alternate_Function (AF : GPIO_Alternate_Function) is begin if Index < 8 then Port_Periph.AFRL.Arr (Index) := UInt4 (AF); else Port_Periph.AFRH.Arr (Index) := UInt4 (AF); end if; end Configure_Alternate_Function; procedure Connect_External_Interrupt is Port_Id : constant UInt4 := GPIO_Port'Enum_Rep (Port); begin case Index is when 0 .. 3 => SYSCFG_Periph.EXTICR1.EXTI.Arr (Index) := Port_Id; when 4 .. 7 => SYSCFG_Periph.EXTICR2.EXTI.Arr (Index) := Port_Id; when 8 .. 11 => SYSCFG_Periph.EXTICR3.EXTI.Arr (Index) := Port_Id; when 12 .. 15 => SYSCFG_Periph.EXTICR4.EXTI.Arr (Index) := Port_Id; when others => raise Program_Error; end case; end Connect_External_Interrupt; procedure Wait_For_Trigger is begin loop STM32GD.Wait_For_Event; exit when Triggered; end loop; Clear_Trigger; end Wait_For_Trigger; procedure Clear_Trigger is begin EXTI_Periph.PR.PR.Arr (Index) := 1; NVIC_Periph.ICPR := 2 ** 5; end Clear_Trigger; function Triggered return Boolean is begin return EXTI_Periph.PR.PR.Arr (Index) = 1; end Triggered; procedure Configure_Trigger (Rising : Boolean := False; Falling : Boolean := False) is begin Connect_External_Interrupt; if Rising then EXTI_Periph.RTSR.TR.Arr (Index) := 1; end if; if Falling then EXTI_Periph.FTSR.TR.Arr (Index) := 1; end if; EXTI_Periph.EMR.MR.Arr (Index) := 1; end Configure_Trigger; end STM32GD.GPIO.Pin;
30.171779
89
0.662871
1248c6db5e4b28768bbc03fd9bfc7eae09c1c190
1,676
ads
Ada
tier-1/xcb/source/thin/xcb-xcb_visualtype_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_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_t.ads
charlie5/cBound
741be08197a61ad9c72553e3302f3b669902216d
[ "0BSD" ]
null
null
null
-- This file is generated by SWIG. Please do not modify by hand. -- with Interfaces; with swig; with Interfaces.C; with Interfaces.C.Pointers; package xcb.xcb_visualtype_t is -- Item -- type Item is record visual_id : aliased xcb.xcb_visualid_t; a_class : aliased Interfaces.Unsigned_8; bits_per_rgb_value : aliased Interfaces.Unsigned_8; colormap_entries : aliased Interfaces.Unsigned_16; red_mask : aliased Interfaces.Unsigned_32; green_mask : aliased Interfaces.Unsigned_32; blue_mask : aliased Interfaces.Unsigned_32; pad0 : aliased swig.int8_t_Array (0 .. 3); end record; -- Item_Array -- type Item_Array is array (Interfaces.C.size_t range <>) of aliased xcb.xcb_visualtype_t.Item; -- Pointer -- package C_Pointers is new Interfaces.C.Pointers (Index => Interfaces.C.size_t, Element => xcb.xcb_visualtype_t.Item, Element_Array => xcb.xcb_visualtype_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_t.Pointer; -- Pointer_Pointer -- package C_Pointer_Pointers is new Interfaces.C.Pointers (Index => Interfaces.C.size_t, Element => xcb.xcb_visualtype_t.Pointer, Element_Array => xcb.xcb_visualtype_t.Pointer_Array, Default_Terminator => null); subtype Pointer_Pointer is C_Pointer_Pointers.Pointer; end xcb.xcb_visualtype_t;
29.928571
79
0.653938
18d25bc6ddfa5971f09267eeed02e8b576127091
2,845
ads
Ada
bb-runtimes/arm/sam/sam4s/s-bbmcpa.ads
JCGobbi/Nucleo-STM32F334R8
2a0b1b4b2664c92773703ac5e95dcb71979d051c
[ "BSD-3-Clause" ]
null
null
null
bb-runtimes/arm/sam/sam4s/s-bbmcpa.ads
JCGobbi/Nucleo-STM32F334R8
2a0b1b4b2664c92773703ac5e95dcb71979d051c
[ "BSD-3-Clause" ]
null
null
null
bb-runtimes/arm/sam/sam4s/s-bbmcpa.ads
JCGobbi/Nucleo-STM32F334R8
2a0b1b4b2664c92773703ac5e95dcb71979d051c
[ "BSD-3-Clause" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- S Y S T E M . B B . M C U _ P A R A M E T E R S -- -- -- -- S p e c -- -- -- -- Copyright (C) 2016, AdaCore -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- -- The port of GNARL to bare board targets was initially developed by the -- -- Real-Time Systems Group at the Technical University of Madrid. -- -- -- ------------------------------------------------------------------------------ -- This package defines MCU parameters for the SAM4S family package System.BB.MCU_Parameters is pragma Preelaborate; Number_Of_Interrupts : constant := 34; Has_FPU : constant Boolean := False; end System.BB.MCU_Parameters;
63.222222
78
0.404921
39765aa787d597de439b7b840f138a72e6c1b1f7
935
ads
Ada
drivers/molecular_dynamics.ads
sciencylab/lagrangian-solver
0f77265c1105658a27a9fa316bf5f046ac233774
[ "MIT" ]
null
null
null
drivers/molecular_dynamics.ads
sciencylab/lagrangian-solver
0f77265c1105658a27a9fa316bf5f046ac233774
[ "MIT" ]
null
null
null
drivers/molecular_dynamics.ads
sciencylab/lagrangian-solver
0f77265c1105658a27a9fa316bf5f046ac233774
[ "MIT" ]
null
null
null
with Numerics, Ada.Text_IO; use Numerics, Ada.Text_IO; package Molecular_Dynamics is use Real_Functions, Real_IO, Int_IO; type BC_Vectype is array (Nat range <>) of Boolean; function Verlet (R : in Pos2D_Vector; R_New : in Pos2D_Vector; Is_BC : in BC_Vectype; Dt : in Real) return Pos2D_Vector; function Calculate_Forces (R : in Pos2D_Vector; Is_BC : in BC_Vectype) return Pos2D_Vector; function LJ_Force (From : in Pos2D; To : in Pos2D) return Pos2D; procedure Initialize_Lattice (N, M : in Nat; Vac : in Nat; Lattice : out Pos2d_Vector; Is_BC : out BC_Vectype; Sides : in Boolean := False); procedure Output (R : in Pos2D_Vector; File : in File_Type); function Spring_Force (From : in Pos2D; To : in Pos2D) return Pos2D is (To - From); end Molecular_Dynamics;
25.27027
54
0.616043
06fae89751c83756674ba6ece9e8454ba6381016
13,696
adb
Ada
src/tests/ahven/ahven-results.adb
yrashk/ada-util
2aaa1d87e92a7137e1c63dce90f0722c549dfafd
[ "Apache-2.0" ]
60
2015-01-18T23:05:34.000Z
2022-03-20T18:56:30.000Z
src/tests/ahven/ahven-results.adb
yrashk/ada-util
2aaa1d87e92a7137e1c63dce90f0722c549dfafd
[ "Apache-2.0" ]
20
2016-09-15T16:41:30.000Z
2022-03-29T22:02:32.000Z
src/tests/ahven/ahven-results.adb
yrashk/ada-util
2aaa1d87e92a7137e1c63dce90f0722c549dfafd
[ "Apache-2.0" ]
10
2015-02-13T04:00:45.000Z
2022-03-20T18:57:54.000Z
-- -- Copyright (c) 2007-2009 Tero Koskinen <[email protected]> -- -- Permission to use, copy, modify, and distribute this software for any -- purpose with or without fee is hereby granted, provided that the above -- copyright notice and this permission notice appear in all copies. -- -- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -- ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF -- OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -- with Ada.Unchecked_Deallocation; package body Ahven.Results is use Ahven.Results.Result_List; use Ahven.Results.Result_Info_List; -- Bunch of setters and getters. -- The implementation is straightforward. procedure Set_Test_Name (Info : in out Result_Info; Name : Bounded_String) is begin Info.Test_Name := Name; end Set_Test_Name; procedure Set_Routine_Name (Info : in out Result_Info; Name : Bounded_String) is begin Info.Routine_Name := Name; end Set_Routine_Name; procedure Set_Message (Info : in out Result_Info; Message : Bounded_String) is begin Info.Message := Message; end Set_Message; procedure Set_Test_Name (Info : in out Result_Info; Name : String) is begin Set_Test_Name (Info, To_Bounded_String (Name)); end Set_Test_Name; procedure Set_Routine_Name (Info : in out Result_Info; Name : String) is begin Set_Routine_Name (Info, To_Bounded_String (Name)); end Set_Routine_Name; procedure Set_Message (Info : in out Result_Info; Message : String) is begin Set_Message (Info, To_Bounded_String (Message)); end Set_Message; procedure Set_Long_Message (Info : in out Result_Info; Message : Bounded_String) is begin Set_Long_Message (Info, To_String (Message)); end Set_Long_Message; procedure Set_Long_Message (Info : in out Result_Info; Message : Long_AStrings.Bounded_String) is begin Info.Long_Message := Message; end Set_Long_Message; procedure Set_Long_Message (Info : in out Result_Info; Message : String) is begin Set_Long_Message (Info, Long_AStrings.To_Bounded_String (Message)); end Set_Long_Message; procedure Set_Execution_Time (Info : in out Result_Info; Elapsed_Time : Duration) is begin Info.Execution_Time := Elapsed_Time; end Set_Execution_Time; procedure Set_Output_File (Info : in out Result_Info; Filename : Bounded_String) is begin Info.Output_File := Filename; end Set_Output_File; procedure Set_Output_File (Info : in out Result_Info; Filename : String) is begin Set_Output_File (Info, To_Bounded_String (Filename)); end Set_Output_File; function Get_Test_Name (Info : Result_Info) return String is begin return To_String (Info.Test_Name); end Get_Test_Name; function Get_Routine_Name (Info : Result_Info) return String is begin return To_String (Info.Routine_Name); end Get_Routine_Name; function Get_Message (Info : Result_Info) return String is begin return To_String (Info.Message); end Get_Message; function Get_Long_Message (Info : Result_Info) return String is begin return Long_AStrings.To_String (Info.Long_Message); end Get_Long_Message; function Get_Execution_Time (Info : Result_Info) return Duration is begin return Info.Execution_Time; end Get_Execution_Time; function Get_Output_File (Info : Result_Info) return Bounded_String is begin return Info.Output_File; end Get_Output_File; procedure Add_Child (Collection : in out Result_Collection; Child : Result_Collection_Access) is begin Append (Collection.Children, (Ptr => Child)); end Add_Child; procedure Add_Error (Collection : in out Result_Collection; Info : Result_Info) is begin Append (Collection.Errors, Info); end Add_Error; procedure Add_Skipped (Collection : in out Result_Collection; Info : Result_Info) is begin Append (Collection.Skips, Info); end Add_Skipped; procedure Add_Failure (Collection : in out Result_Collection; Info : Result_Info) is begin Append (Collection.Failures, Info); end Add_Failure; procedure Add_Pass (Collection : in out Result_Collection; Info : Result_Info) is begin Append (Collection.Passes, Info); end Add_Pass; -- When Result_Collection is released, it recursively releases -- its all children. procedure Release (Collection : in out Result_Collection) is procedure Free is new Ada.Unchecked_Deallocation (Object => Result_Collection, Name => Result_Collection_Access); Position : Result_List.Cursor := First (Collection.Children); Ptr : Result_Collection_Access := null; begin loop exit when not Is_Valid (Position); Ptr := Data (Position).Ptr; Release (Ptr.all); Free (Ptr); Position := Next (Position); end loop; Clear (Collection.Children); -- No need to call Free for these three since -- they are stored as plain objects instead of pointers. Clear (Collection.Errors); Clear (Collection.Failures); Clear (Collection.Passes); end Release; procedure Set_Name (Collection : in out Result_Collection; Name : Bounded_String) is begin Collection.Test_Name := Name; end Set_Name; procedure Set_Parent (Collection : in out Result_Collection; Parent : Result_Collection_Access) is begin Collection.Parent := Parent; end Set_Parent; function Test_Count (Collection : Result_Collection) return Natural is Count : Natural := Result_Info_List.Length (Collection.Errors) + Result_Info_List.Length (Collection.Failures) + Result_Info_List.Length (Collection.Skips) + Result_Info_List.Length (Collection.Passes); Position : Result_List.Cursor := First (Collection.Children); begin loop exit when not Is_Valid (Position); Count := Count + Test_Count (Data (Position).Ptr.all); Position := Next (Position); end loop; return Count; end Test_Count; function Direct_Test_Count (Collection : Result_Collection) return Natural is begin return Length (Collection.Errors) + Length (Collection.Failures) + Length (Collection.Passes); end Direct_Test_Count; function Pass_Count (Collection : Result_Collection) return Natural is Count : Natural := Length (Collection.Passes); Position : Result_List.Cursor := First (Collection.Children); begin loop exit when not Is_Valid (Position); Count := Count + Pass_Count (Data (Position).Ptr.all); Position := Next (Position); end loop; return Count; end Pass_Count; function Error_Count (Collection : Result_Collection) return Natural is Count : Natural := Length (Collection.Errors); Position : Result_List.Cursor := First (Collection.Children); begin loop exit when not Is_Valid (Position); Count := Count + Error_Count (Data (Position).Ptr.all); Position := Next (Position); end loop; return Count; end Error_Count; function Failure_Count (Collection : Result_Collection) return Natural is Count : Natural := Length (Collection.Failures); Position : Result_List.Cursor := First (Collection.Children); begin loop exit when not Is_Valid (Position); Count := Count + Failure_Count (Data (Position).Ptr.all); Position := Next (Position); end loop; return Count; end Failure_Count; function Skipped_Count (Collection : Result_Collection) return Natural is Count : Natural := Length (Collection.Skips); Position : Result_List.Cursor := First (Collection.Children); begin loop exit when not Is_Valid (Position); Count := Count + Skipped_Count (Data (Position).Ptr.all); Position := Next (Position); end loop; return Count; end Skipped_Count; function Get_Test_Name (Collection : Result_Collection) return Bounded_String is begin return Collection.Test_Name; end Get_Test_Name; function Get_Parent (Collection : Result_Collection) return Result_Collection_Access is begin return Collection.Parent; end Get_Parent; function Get_Execution_Time (Collection : Result_Collection) return Duration is Position : Result_Info_List.Cursor; Total_Time : Duration := 0.0; Child_Position : Result_List.Cursor; begin Position := First (Collection.Passes); Pass_Loop : loop exit Pass_Loop when not Is_Valid (Position); Total_Time := Total_Time + Get_Execution_Time (Data (Position)); Position := Next (Position); end loop Pass_Loop; Position := First (Collection.Failures); Failure_Loop : loop exit Failure_Loop when not Is_Valid (Position); Total_Time := Total_Time + Get_Execution_Time (Data (Position)); Position := Next (Position); end loop Failure_Loop; Position := First (Collection.Errors); Error_Loop : loop exit Error_Loop when not Is_Valid (Position); Total_Time := Total_Time + Get_Execution_Time (Data (Position)); Position := Next (Position); end loop Error_Loop; Child_Loop : loop exit Child_Loop when not Result_List.Is_Valid (Child_Position); Total_Time := Total_Time + Get_Execution_Time (Result_List.Data (Child_Position).Ptr.all); Child_Position := Result_List.Next (Child_Position); end loop Child_Loop; return Total_Time; end Get_Execution_Time; function First_Pass (Collection : Result_Collection) return Result_Info_Cursor is begin return First (Collection.Passes); end First_Pass; function First_Failure (Collection : Result_Collection) return Result_Info_Cursor is begin return First (Collection.Failures); end First_Failure; function First_Skipped (Collection : Result_Collection) return Result_Info_Cursor is begin return First (Collection.Skips); end First_Skipped; function First_Error (Collection : Result_Collection) return Result_Info_Cursor is begin return First (Collection.Errors); end First_Error; function Next (Position : Result_Info_Cursor) return Result_Info_Cursor is begin return Result_Info_Cursor (Result_Info_List.Next (Result_Info_List.Cursor (Position))); end Next; function Data (Position : Result_Info_Cursor) return Result_Info is begin return Result_Info_List.Data (Result_Info_List.Cursor (Position)); end Data; function Is_Valid (Position : Result_Info_Cursor) return Boolean is begin return Result_Info_List.Is_Valid (Result_Info_List.Cursor (Position)); end Is_Valid; function First_Child (Collection : in Result_Collection) return Result_Collection_Cursor is begin return First (Collection.Children); end First_Child; function Next (Position : Result_Collection_Cursor) return Result_Collection_Cursor is begin return Result_Collection_Cursor (Result_List.Next (Result_List.Cursor (Position))); end Next; function Is_Valid (Position : Result_Collection_Cursor) return Boolean is begin return Result_List.Is_Valid (Result_List.Cursor (Position)); end Is_Valid; function Data (Position : Result_Collection_Cursor) return Result_Collection_Access is begin return Result_List.Data (Result_List.Cursor (Position)).Ptr; end Data; function Child_Depth (Collection : Result_Collection) return Natural is function Child_Depth_Impl (Coll : Result_Collection; Level : Natural) return Natural; function Child_Depth_Impl (Coll : Result_Collection; Level : Natural) return Natural is Max : Natural := 0; Current : Natural := 0; Position : Result_List.Cursor := Result_List.First (Coll.Children); begin loop exit when not Is_Valid (Position); Current := Child_Depth_Impl (Data (Position).Ptr.all, Level + 1); if Max < Current then Max := Current; end if; Position := Result_List.Next (Position); end loop; return Level + Max; end Child_Depth_Impl; begin return Child_Depth_Impl (Collection, 0); end Child_Depth; end Ahven.Results;
32.76555
78
0.654717
1d52eae79c5d847cd670d05f39cb21a8dcd75a31
6,320
ada
Ada
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/ce/ce3605d.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/ce3605d.ada
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
null
null
null
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/ce/ce3605d.ada
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
2
2020-07-27T00:22:36.000Z
2021-04-01T09:41:02.000Z
-- CE3605D.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 PUT DOES NOT RAISE LAYOUT_ERROR WHEN THE NUMBER OF -- CHARACTERS TO BE OUTPUT EXCEEDS THE LINE LENGTH. -- CHECK THAT PUT HAS THE EFFECT OF NEW_LINE (AS WELL AS -- OUTPUTTING THE ITEM) WHEN THE NUMBER OF CHARACTERS TO BE OUTPUT -- OVERFLOWS A BOUNDED LINE LENGTH. -- CHECK THAT PUT WITH A NULL STRING PERFORMS NO OPERATION. -- APPLICABILITY CRITERIA: -- THIS TEST IS APPLICABLE ONLY TO IMPLEMENTATIONS WHICH SUPPORT -- TEXT FILES. -- HISTORY: -- SPS 09/02/82 -- JBG 12/28/82 -- RJW 11/04/86 REVISED TEST TO OUTPUT A NOT_APPLICABLE -- RESULT WHEN FILES ARE NOT SUPPORTED. -- JLH 09/08/87 CORRECTED EXCEPTION HANDLING. WITH REPORT; USE REPORT; WITH TEXT_IO; USE TEXT_IO; WITH CHECK_FILE; PROCEDURE CE3605D IS INCOMPLETE : EXCEPTION; BEGIN TEST ("CE3605D", "CHECK THAT LAYOUT_ERROR IS NOT RAISED BY PUT " & "FOR STRING"); DECLARE FT : FILE_TYPE; LC : POSITIVE_COUNT; BEGIN BEGIN CREATE (FT, OUT_FILE, LEGAL_FILE_NAME); EXCEPTION WHEN USE_ERROR => NOT_APPLICABLE ("USE_ERROR RAISED ON TEXT CREATE " & "WITH OUT_FILE MODE"); RAISE INCOMPLETE; WHEN NAME_ERROR => NOT_APPLICABLE ("NAME_ERROR RAISED ON TEXT " & "CREATE WITH OUT_FILE MODE"); RAISE INCOMPLETE; WHEN OTHERS => FAILED ("UNEXPECTED EXCEPTION RAISED ON " & "TEXT CREATE"); RAISE INCOMPLETE; END; SET_LINE_LENGTH (FT, 5); BEGIN PUT (FT, "STRING"); IF LINE(FT) /= 2 THEN FAILED ("LINE COUNT WAS" & COUNT'IMAGE(LINE(FT)) & " INSTEAD OF 2"); END IF; IF COL(FT) /= 2 THEN FAILED ("COLUMN COUNT WAS" & COUNT'IMAGE(COL(FT)) & " INSTEAD OF 2"); END IF; EXCEPTION WHEN LAYOUT_ERROR => FAILED ("LAYOUT_ERROR RAISED - 1"); WHEN OTHERS => FAILED ("UNEXPECTED EXCEPTION RAISED - 1"); END; PUT (FT, "NEW"); IF LINE(FT) /= 2 THEN FAILED ("LINE COUNT WRONG - 2; WAS" & COUNT'IMAGE(LINE(FT)) & " INSTEAD OF 2"); END IF; IF COL(FT) /= 5 THEN FAILED ("COL COUNT WRONG - 2; WAS" & COUNT'IMAGE(COL(FT)) & " INSTEAD OF 5"); END IF; BEGIN PUT (FT, "STR"); IF LINE (FT) /= 3 THEN FAILED ("PUT STRING WHEN IN MIDDLE OF " & "LINE DOES NOT HAVE EFFECT OF " & "NEW_LINE; LINE COUNT IS" & COUNT'IMAGE(LINE(FT))); END IF; IF COL(FT) /= 3 THEN FAILED ("COL COUNT WRONG - 3; WAS" & COUNT'IMAGE(COL(FT)) & " INSTEAD OF 3"); END IF; EXCEPTION WHEN LAYOUT_ERROR => FAILED ("LAYOUT_ERROR RAISED - 2"); WHEN OTHERS => FAILED ("UNEXPECTED EXCEPTION RAISED - 2"); END; PUT (FT, "ING"); IF LINE(FT) /= 3 THEN FAILED ("LINE COUNT WRONG - 3; WAS" & COUNT'IMAGE(LINE(FT)) & " INSTEAD OF 3"); END IF; IF COL(FT) /= 6 THEN FAILED ("COL COUNT WRONG - 3; WAS" & COUNT'IMAGE(COL(FT)) & " INSTEAD OF 6"); END IF; BEGIN PUT (FT, ""); IF LINE(FT) /= 3 THEN FAILED ("LINE COUNT WRONG - 3; WAS" & COUNT'IMAGE(LINE(FT)) & " INSTEAD OF 3"); END IF; IF COL(FT) /= 6 THEN FAILED ("COL COUNT WRONG - 3; WAS" & COUNT'IMAGE(COL(FT)) & " INSTEAD OF 6"); END IF; EXCEPTION WHEN LAYOUT_ERROR => FAILED ("LAYOUT_ERROR RAISED - 3"); WHEN OTHERS => FAILED ("UNEXPECTED EXCEPTION RAISED - 3"); END; CHECK_FILE (FT, "STRIN#" & "GNEWS#" & "TRING#@%"); BEGIN DELETE (FT); EXCEPTION WHEN USE_ERROR => NULL; END; EXCEPTION WHEN INCOMPLETE => NULL; END; RESULT; END CE3605D;
32.746114
79
0.471835
06984dde67b1c36b5bde4d5cd66063b0a4488af0
1,350
adb
Ada
examples/msg_authentication/demo_ada.adb
jrmarino/libsodium-ada
cca3879ea41e64c05011c9b5f36de550d9435eb9
[ "0BSD" ]
10
2016-07-16T16:22:16.000Z
2021-07-18T13:19:23.000Z
examples/msg_authentication/demo_ada.adb
jrmarino/libsodium-ada
cca3879ea41e64c05011c9b5f36de550d9435eb9
[ "0BSD" ]
1
2022-03-15T20:32:04.000Z
2022-03-23T04:16:05.000Z
examples/msg_authentication/demo_ada.adb
jrmarino/libsodium-ada
cca3879ea41e64c05011c9b5f36de550d9435eb9
[ "0BSD" ]
1
2021-07-18T13:19:02.000Z
2021-07-18T13:19:02.000Z
with Sodium.Functions; use Sodium.Functions; with Ada.Text_IO; use Ada.Text_IO; procedure Demo_Ada is message : String := "Are you sure I wrote this?"; begin if not initialize_sodium_library then Put_Line ("Initialization failed"); return; end if; declare tag : Auth_Tag; my_key : Auth_Key := Random_Auth_Key; begin tag := Generate_Authentication_Tag (message => message, authentication_key => my_key); Put_Line (" Message: " & message); Put_Line ("Auth Tag: " & As_Hexidecimal (tag)); Put ("Test unmodified message and tag ... "); if Authentic_Message (authentication_tag => tag, message => message, authentication_key => my_key) then Put_Line ("Authentic"); else Put_Line ("It's a fake!"); end if; Put_Line (""); message (14) := 'i'; Put_Line (" Message: " & message); Put ("Test modified message and real tag ... "); if Authentic_Message (authentication_tag => tag, message => message, authentication_key => my_key) then Put_Line ("Authentic"); else Put_Line ("It's a fake!"); end if; end; end Demo_Ada;
30
73
0.542222
12ae7cdab08c15f1a80e195e15f820f2a3049125
2,856
adb
Ada
examples/MicroBit_v2/digital_out/src/main.adb
BaderKashkash/Ada_Drivers_Library
027f0982c033a45a490b262080a9ede8c6adbc1c
[ "BSD-3-Clause" ]
1
2022-01-10T13:58:36.000Z
2022-01-10T13:58:36.000Z
examples/MicroBit_v2/digital_out/src/main.adb
BaderKashkash/Ada_Drivers_Library
027f0982c033a45a490b262080a9ede8c6adbc1c
[ "BSD-3-Clause" ]
null
null
null
examples/MicroBit_v2/digital_out/src/main.adb
BaderKashkash/Ada_Drivers_Library
027f0982c033a45a490b262080a9ede8c6adbc1c
[ "BSD-3-Clause" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2018, 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 MicroBit.IOs; with MicroBit.Time; --The classical blinking demo demonstrating switching pin 0 high and low in .5 sec interval procedure Main is begin loop -- Turn on the LED connected to pin 0 MicroBit.IOs.Set (0, True); -- Wait 500 milliseconds MicroBit.Time.Delay_Ms (500); -- Turn off the LED connected to pin 0 MicroBit.IOs.Set (0, False); -- Wait 500 milliseconds MicroBit.Time.Delay_Ms (500); end loop; end Main;
54.923077
91
0.529412
31f717c61c61747b9267ce8e3fcaebf39b9ada6a
783
adb
Ada
examples/ada/Square_Executable.adb
hsutter/compiler-explorer
6ea766981424db1e7c952a1bb5161a6eaba6ddc6
[ "BSD-2-Clause" ]
4,668
2017-01-02T19:35:10.000Z
2020-05-16T03:18:45.000Z
examples/ada/Square_Executable.adb
hsutter/compiler-explorer
6ea766981424db1e7c952a1bb5161a6eaba6ddc6
[ "BSD-2-Clause" ]
1,750
2017-01-02T19:37:06.000Z
2020-05-16T14:54:29.000Z
examples/ada/Square_Executable.adb
hsutter/compiler-explorer
6ea766981424db1e7c952a1bb5161a6eaba6ddc6
[ "BSD-2-Clause" ]
620
2017-01-03T00:29:17.000Z
2020-05-14T09:27:47.000Z
with Ada.Command_Line; with Ada.Text_IO; function Example return Integer is function Square(num : Integer) return Integer is begin return num**2; end Square; function ReadCmdArgumentOrDefault(default: Integer) return Integer is begin if Ada.Command_Line.Argument_Count > 0 then return Integer'Value(Ada.Command_Line.Argument(1)); else return Default; end if; end ReadCmdArgumentOrDefault; NumberToSquare: Integer; Answer: Integer; begin NumberToSquare := ReadCmdArgumentOrDefault(4); Ada.Text_IO.Put_Line("Number to square: " & NumberToSquare'Image); Answer := Square(NumberToSquare); Ada.Text_IO.Put_Line("Square answer: " & Answer'Image); return Answer; end Example;
25.258065
73
0.685824
39e2332fbbfd278c92a71556f0dd6cec242c4495
7,749
adb
Ada
llvm-gcc-4.2-2.9/gcc/ada/sinput-c.adb
vidkidz/crossbridge
ba0bf94aee0ce6cf7eb5be882382e52bc57ba396
[ "MIT" ]
1
2016-04-09T02:58:13.000Z
2016-04-09T02:58:13.000Z
llvm-gcc-4.2-2.9/gcc/ada/sinput-c.adb
vidkidz/crossbridge
ba0bf94aee0ce6cf7eb5be882382e52bc57ba396
[ "MIT" ]
null
null
null
llvm-gcc-4.2-2.9/gcc/ada/sinput-c.adb
vidkidz/crossbridge
ba0bf94aee0ce6cf7eb5be882382e52bc57ba396
[ "MIT" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- S I N P U T . C -- -- -- -- B o d y -- -- -- -- Copyright (C) 1992-2006, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 2, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -- -- for more details. You should have received a copy of the GNU General -- -- Public License distributed with GNAT; see file COPYING. If not, write -- -- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, -- -- Boston, MA 02110-1301, USA. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ with Ada.Unchecked_Conversion; with GNAT.OS_Lib; use GNAT.OS_Lib; with Namet; use Namet; with Opt; use Opt; with System; use System; package body Sinput.C is --------------- -- Load_File -- --------------- function Load_File (Path : String) return Source_File_Index is Src : Source_Buffer_Ptr; X : Source_File_Index; Lo : Source_Ptr; Hi : Source_Ptr; Source_File_FD : File_Descriptor; -- The file descriptor for the current source file. A negative value -- indicates failure to open the specified source file. Len : Integer; -- Length of file. Assume no more than 2 gigabytes of source! Actual_Len : Integer; Path_Id : Name_Id; File_Id : Name_Id; begin if Path = "" then return No_Source_File; end if; Source_File.Increment_Last; X := Source_File.Last; if X = Source_File.First then Lo := First_Source_Ptr; else Lo := Source_File.Table (X - 1).Source_Last + 1; end if; Name_Len := Path'Length; Name_Buffer (1 .. Name_Len) := Path; Path_Id := Name_Find; Name_Buffer (Name_Len + 1) := ASCII.NUL; -- Open the source FD, note that we open in binary mode, because as -- documented in the spec, the caller is expected to handle either -- DOS or Unix mode files, and there is no point in wasting time on -- text translation when it is not required. Source_File_FD := Open_Read (Name_Buffer'Address, Binary); if Source_File_FD = Invalid_FD then Source_File.Decrement_Last; return No_Source_File; end if; Len := Integer (File_Length (Source_File_FD)); -- Set Hi so that length is one more than the physical length, -- allowing for the extra EOF character at the end of the buffer Hi := Lo + Source_Ptr (Len); -- Do the actual read operation declare subtype Actual_Source_Buffer is Source_Buffer (Lo .. Hi); -- Physical buffer allocated type Actual_Source_Ptr is access Actual_Source_Buffer; -- This is the pointer type for the physical buffer allocated Actual_Ptr : constant Actual_Source_Ptr := new Actual_Source_Buffer; -- And this is the actual physical buffer begin -- Allocate source buffer, allowing extra character at end for EOF -- Some systems (e.g. VMS) have file types that require one -- read per line, so read until we get the Len bytes or until -- there are no more characters. Hi := Lo; loop Actual_Len := Read (Source_File_FD, Actual_Ptr (Hi)'Address, Len); Hi := Hi + Source_Ptr (Actual_Len); exit when Actual_Len = Len or Actual_Len <= 0; end loop; Actual_Ptr (Hi) := EOF; -- Now we need to work out the proper virtual origin pointer to -- return. This is exactly Actual_Ptr (0)'Address, but we have -- to be careful to suppress checks to compute this address. declare pragma Suppress (All_Checks); pragma Warnings (Off); -- The following unchecked conversion is aliased safe, since it -- is not used to create improperly aliased pointer values. function To_Source_Buffer_Ptr is new Ada.Unchecked_Conversion (Address, Source_Buffer_Ptr); pragma Warnings (On); begin Src := To_Source_Buffer_Ptr (Actual_Ptr (0)'Address); end; end; -- Read is complete, close the file and we are done (no need to test -- status from close, since we have successfully read the file!) Close (Source_File_FD); -- Get the file name, without path information declare Index : Positive := Path'Last; begin while Index > Path'First loop exit when Path (Index - 1) = '/'; exit when Path (Index - 1) = Directory_Separator; Index := Index - 1; end loop; Name_Len := Path'Last - Index + 1; Name_Buffer (1 .. Name_Len) := Path (Index .. Path'Last); File_Id := Name_Find; end; declare S : Source_File_Record renames Source_File.Table (X); begin S := (Debug_Source_Name => File_Id, File_Name => File_Id, File_Type => Config, First_Mapped_Line => No_Line_Number, Full_Debug_Name => Path_Id, Full_File_Name => Path_Id, Full_Ref_Name => Path_Id, Identifier_Casing => Unknown, Inlined_Body => False, Instantiation => No_Location, Keyword_Casing => Unknown, Last_Source_Line => 1, License => Unknown, Lines_Table => null, Lines_Table_Max => 1, Logical_Lines_Table => null, Num_SRef_Pragmas => 0, Reference_Name => File_Id, Sloc_Adjust => 0, Source_Checksum => 0, Source_First => Lo, Source_Last => Hi, Source_Text => Src, Template => No_Source_File, Unit => No_Unit, Time_Stamp => Empty_Time_Stamp); Alloc_Line_Tables (S, Opt.Table_Factor * Alloc.Lines_Initial); S.Lines_Table (1) := Lo; end; Set_Source_File_Index_Table (X); return X; end Load_File; end Sinput.C;
37.254808
78
0.511292
dff681d380395d2756027a650c2d2e150195148c
812
adb
Ada
common/utils.adb
ekoeppen/STM32_Generic_Ada_Drivers
4ff29c3026c4b24280baf22a5b81ea9969375466
[ "MIT" ]
1
2021-04-06T07:57:56.000Z
2021-04-06T07:57:56.000Z
common/utils.adb
ekoeppen/STM32_Generic_Ada_Drivers
4ff29c3026c4b24280baf22a5b81ea9969375466
[ "MIT" ]
null
null
null
common/utils.adb
ekoeppen/STM32_Generic_Ada_Drivers
4ff29c3026c4b24280baf22a5b81ea9969375466
[ "MIT" ]
2
2018-05-29T13:59:31.000Z
2019-02-03T19:48:08.000Z
package body Utils is Hex_Chars : constant array (Unsigned_8 range 0 .. 15) of Character := ('0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'); function To_Hex_String (B : Unsigned_8) return Hex_String_Byte is Low_Nibble : constant Unsigned_8 := B mod 16; High_Nibble : constant Unsigned_8 := B / 16; begin return Hex_Chars (High_Nibble) & Hex_Chars (Low_Nibble); end To_Hex_String; function To_Hex_String (S : Unsigned_16) return Hex_String_Short is begin return To_Hex_String (Unsigned_8 (S / 256)) & To_Hex_String (Unsigned_8 (S mod 256)); end To_Hex_String; function To_Hex_String (W : Unsigned_32) return Hex_String_Word is begin return To_Hex_String (Unsigned_16 (W / 65536)) & To_Hex_String (Unsigned_16 (W mod 65536)); end To_Hex_String; end Utils;
35.304348
152
0.698276
1d3c4e99979bc1a92c9e2a00d95d3cfe87c1568d
53
ads
Ada
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/discr27.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/discr27.ads
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
null
null
null
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/discr27.ads
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
2
2020-07-27T00:22:36.000Z
2021-04-01T09:41:02.000Z
package Discr27 is procedure Proc; end Discr27;
8.833333
18
0.735849
a128eb08ea4c6b8447beb927035670a4d6244302
6,794
ads
Ada
source/amf/uml/amf-uml-exception_handlers.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
24
2016-11-29T06:59:41.000Z
2021-08-30T11:55:16.000Z
source/amf/uml/amf-uml-exception_handlers.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
2
2019-01-16T05:15:20.000Z
2019-02-03T10:03:32.000Z
source/amf/uml/amf-uml-exception_handlers.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
4
2017-07-18T07:11:05.000Z
2020-06-21T03:02:25.000Z
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Ada Modeling Framework -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2011-2012, Vadim Godunko <[email protected]> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ -- This file is generated, don't edit it. ------------------------------------------------------------------------------ -- An exception handler is an element that specifies a body to execute in -- case the specified exception occurs during the execution of the protected -- node. ------------------------------------------------------------------------------ limited with AMF.UML.Classifiers.Collections; with AMF.UML.Elements; limited with AMF.UML.Executable_Nodes; limited with AMF.UML.Object_Nodes; package AMF.UML.Exception_Handlers is pragma Preelaborate; type UML_Exception_Handler is limited interface and AMF.UML.Elements.UML_Element; type UML_Exception_Handler_Access is access all UML_Exception_Handler'Class; for UML_Exception_Handler_Access'Storage_Size use 0; not overriding function Get_Exception_Input (Self : not null access constant UML_Exception_Handler) return AMF.UML.Object_Nodes.UML_Object_Node_Access is abstract; -- Getter of ExceptionHandler::exceptionInput. -- -- An object node within the handler body. When the handler catches an -- exception, the exception token is placed in this node, causing the body -- to execute. not overriding procedure Set_Exception_Input (Self : not null access UML_Exception_Handler; To : AMF.UML.Object_Nodes.UML_Object_Node_Access) is abstract; -- Setter of ExceptionHandler::exceptionInput. -- -- An object node within the handler body. When the handler catches an -- exception, the exception token is placed in this node, causing the body -- to execute. not overriding function Get_Exception_Type (Self : not null access constant UML_Exception_Handler) return AMF.UML.Classifiers.Collections.Set_Of_UML_Classifier is abstract; -- Getter of ExceptionHandler::exceptionType. -- -- The kind of instances that the handler catches. If an exception occurs -- whose type is any of the classifiers in the set, the handler catches -- the exception and executes its body. not overriding function Get_Handler_Body (Self : not null access constant UML_Exception_Handler) return AMF.UML.Executable_Nodes.UML_Executable_Node_Access is abstract; -- Getter of ExceptionHandler::handlerBody. -- -- A node that is executed if the handler satisfies an uncaught exception. not overriding procedure Set_Handler_Body (Self : not null access UML_Exception_Handler; To : AMF.UML.Executable_Nodes.UML_Executable_Node_Access) is abstract; -- Setter of ExceptionHandler::handlerBody. -- -- A node that is executed if the handler satisfies an uncaught exception. not overriding function Get_Protected_Node (Self : not null access constant UML_Exception_Handler) return AMF.UML.Executable_Nodes.UML_Executable_Node_Access is abstract; -- Getter of ExceptionHandler::protectedNode. -- -- The node protected by the handler. The handler is examined if an -- exception propagates to the outside of the node. not overriding procedure Set_Protected_Node (Self : not null access UML_Exception_Handler; To : AMF.UML.Executable_Nodes.UML_Executable_Node_Access) is abstract; -- Setter of ExceptionHandler::protectedNode. -- -- The node protected by the handler. The handler is examined if an -- exception propagates to the outside of the node. end AMF.UML.Exception_Handlers;
54.790323
80
0.555785
a111ca92f7fb5cc63f1d9f1fa0e251d129c927d9
160
ads
Ada
Sources/Library/timing.ads
ForYouEyesOnly/Space-Convoy
be4904f6a02695f7c4c5c3c965f4871cd3250003
[ "MIT" ]
1
2019-09-21T09:40:34.000Z
2019-09-21T09:40:34.000Z
Sources/Library/timing.ads
ForYouEyesOnly/Space-Convoy
be4904f6a02695f7c4c5c3c965f4871cd3250003
[ "MIT" ]
null
null
null
Sources/Library/timing.ads
ForYouEyesOnly/Space-Convoy
be4904f6a02695f7c4c5c3c965f4871cd3250003
[ "MIT" ]
1
2019-09-25T12:29:27.000Z
2019-09-25T12:29:27.000Z
-- -- Jan & Uwe R. Zimmer, Australia, July 2011 -- with Ada.Real_Time; use Ada.Real_Time; package Timing is function Timer return Time_Span; end Timing;
13.333333
44
0.70625
0ba3e291667a67e046e1800891aab7759b423144
4,780
ads
Ada
source/containers/a-cconwr.ads
ytomino/drake
4e4bdcd8b8e23a11a29b31d3a8861fdf60090ea2
[ "MIT" ]
33
2015-04-04T09:19:36.000Z
2021-11-10T05:33:34.000Z
source/containers/a-cconwr.ads
ytomino/drake
4e4bdcd8b8e23a11a29b31d3a8861fdf60090ea2
[ "MIT" ]
8
2017-11-14T13:05:07.000Z
2018-08-09T15:28:49.000Z
source/containers/a-cconwr.ads
ytomino/drake
4e4bdcd8b8e23a11a29b31d3a8861fdf60090ea2
[ "MIT" ]
9
2015-02-03T17:09:53.000Z
2021-11-12T01:16:05.000Z
pragma License (Unrestricted); -- implementation unit private package Ada.Containers.Copy_On_Write is pragma Preelaborate; type Container; type Container_Access is access all Container; for Container_Access'Storage_Size use 0; Data_Size : constant := Standard'Address_Size; type Data is limited record Follower : Container_Access; -- first container is owner pragma Atomic (Follower); end record; for Data'Size use Data_Size; type Data_Access is access Data; function Shared (Data : Data_Access) return Boolean; type Container is record Data : Data_Access; pragma Atomic (Data); Next_Follower : Container_Access; pragma Atomic (Next_Follower); end record; procedure Adjust ( Target : not null access Container); procedure Assign ( Target : not null access Container; Source : not null access constant Container; Free : not null access procedure (Object : in out Data_Access)); procedure Clear ( Target : not null access Container; Free : not null access procedure (Object : in out Data_Access)); procedure Copy ( Target : not null access Container; Source : not null access constant Container; Allocate : not null access procedure ( Target : out not null Data_Access; New_Length : Count_Type; Capacity : Count_Type); Copy : not null access procedure ( Target : out not null Data_Access; Source : not null Data_Access; Length : Count_Type; -- copying length New_Length : Count_Type; Capacity : Count_Type)); procedure Copy ( Target : not null access Container; Source : not null access constant Container; Length : Count_Type; New_Capacity : Count_Type; Allocate : not null access procedure ( Target : out not null Data_Access; New_Length : Count_Type; Capacity : Count_Type); Copy : not null access procedure ( Target : out not null Data_Access; Source : not null Data_Access; Length : Count_Type; -- copying length New_Length : Count_Type; Capacity : Count_Type)); procedure Move ( Target : not null access Container; Source : not null access Container; Free : not null access procedure (Object : in out Data_Access)); procedure Unique ( Target : not null access Container; To_Update : Boolean; Allocate : not null access procedure ( Target : out not null Data_Access; New_Length : Count_Type; Capacity : Count_Type); Move : not null access procedure ( Target : out not null Data_Access; Source : not null Data_Access; Length : Count_Type; -- copying length New_Length : Count_Type; Capacity : Count_Type); Copy : not null access procedure ( Target : out not null Data_Access; Source : not null Data_Access; Length : Count_Type; -- copying length New_Length : Count_Type; Capacity : Count_Type); Free : not null access procedure (Object : in out Data_Access)); procedure Unique ( Target : not null access Container; Target_Length : Count_Type; Target_Capacity : Count_Type; New_Length : Count_Type; New_Capacity : Count_Type; To_Update : Boolean; Allocate : not null access procedure ( Target : out not null Data_Access; New_Length : Count_Type; Capacity : Count_Type); Move : not null access procedure ( Target : out not null Data_Access; Source : not null Data_Access; Length : Count_Type; -- copying length New_Length : Count_Type; Capacity : Count_Type); Copy : not null access procedure ( Target : out not null Data_Access; Source : not null Data_Access; Length : Count_Type; -- copying length New_Length : Count_Type; Capacity : Count_Type); Free : not null access procedure (Object : in out Data_Access); Max_Length : not null access function (Data : not null Data_Access) return not null access Count_Type); -- Note: Copy and Reserve_Capacity also make a container unique. procedure In_Place_Set_Length ( Target : not null access Container; Target_Length : Count_Type; Target_Capacity : Count_Type; New_Length : Count_Type; Failure : out Boolean; -- reallocation is needed Max_Length : not null access function (Data : not null Data_Access) return not null access Count_Type); function Zero (Data : not null Data_Access) return not null access Count_Type; end Ada.Containers.Copy_On_Write;
33.900709
73
0.652092
06669f236511bccac6413fb6edfc5c41d95f9ffa
600
ads
Ada
2-low/neural/source/neural-forge.ads
charlie5/lace
e9b7dc751d500ff3f559617a6fc3089ace9dc134
[ "0BSD" ]
20
2015-11-04T09:23:59.000Z
2022-01-14T10:21:42.000Z
2-low/neural/source/neural-forge.ads
charlie5/lace
e9b7dc751d500ff3f559617a6fc3089ace9dc134
[ "0BSD" ]
2
2015-11-04T17:05:56.000Z
2015-12-08T03:16:13.000Z
2-low/neural/source/neural-forge.ads
charlie5/lace
e9b7dc751d500ff3f559617a6fc3089ace9dc134
[ "0BSD" ]
1
2015-12-07T12:53:52.000Z
2015-12-07T12:53:52.000Z
with neural.Set; package Neural.Forge -- -- Declares a factory for creation/destruction of core types. -- is -- Pattern -- function Creation (From : in Pattern) return Pattern; procedure Destroy (Self : in out Pattern); -- Patterns -- function Creation (From_File_Named : in String) return neural.Set.Patterns_view; procedure Destroy (Self : in out Patterns); procedure Destroy (Self : in out neural.Set.Patterns_view); procedure Store (Self : in Patterns; In_File_Named : in String); end Neural.Forge;
17.142857
85
0.635
129efea64a2c3f72140784293232996de625fc9e
3,075
ads
Ada
llvm-gcc-4.2-2.9/gcc/ada/s-fatsfl.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-fatsfl.ads
vidkidz/crossbridge
ba0bf94aee0ce6cf7eb5be882382e52bc57ba396
[ "MIT" ]
null
null
null
llvm-gcc-4.2-2.9/gcc/ada/s-fatsfl.ads
vidkidz/crossbridge
ba0bf94aee0ce6cf7eb5be882382e52bc57ba396
[ "MIT" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- S Y S T E M . F A T _ S F L T -- -- -- -- S p e c -- -- -- -- Copyright (C) 1992-2005 Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 2, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -- -- for more details. You should have received a copy of the GNU General -- -- Public License distributed with GNAT; see file COPYING. If not, write -- -- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, -- -- Boston, MA 02110-1301, USA. -- -- -- -- As a special exception, if other files instantiate generics from this -- -- unit, or you link this unit with other files to produce an executable, -- -- this unit does not by itself cause the resulting executable to be -- -- covered by the GNU General Public License. This exception does not -- -- however invalidate any other reasons why the executable file might be -- -- covered by the GNU Public License. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ -- This package contains an instantiation of the floating-point attribute -- runtime routines for the type Short_Float. with System.Fat_Gen; package System.Fat_SFlt is pragma Pure; -- Note the only entity from this package that is acccessed by Rtsfind -- is the name of the package instantiation. Entities within this package -- (i.e. the individual floating-point attribute routines) are accessed -- by name using selected notation. package Attr_Short_Float is new System.Fat_Gen (Short_Float); end System.Fat_SFlt;
61.5
78
0.470569
1c3472a5fe7fa7a5e3fdcdd763a30c322227f30c
9,710
ads
Ada
project/adl/middleware/src/filesystem/file_io.ads
corentingay/adaboy
68f08afa246c8255a42897376d375edcb4e2efc2
[ "MIT" ]
null
null
null
project/adl/middleware/src/filesystem/file_io.ads
corentingay/adaboy
68f08afa246c8255a42897376d375edcb4e2efc2
[ "MIT" ]
null
null
null
project/adl/middleware/src/filesystem/file_io.ads
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 package provides a user friendly interface to the file system. For -- more info, see the file system chapter of the documentation. with System; with HAL.Block_Drivers; with HAL.Filesystem; package File_IO is MAX_PATH_LENGTH : constant := 1024; -- Maximum size of a path name length type Status_Code is (OK, Non_Empty_Directory, Disk_Error, -- A hardware error occurred in the low level disk I/O Disk_Full, Internal_Error, Drive_Not_Ready, No_Such_File, No_Such_Path, Not_Mounted, -- The mount point is invalid Invalid_Name, Access_Denied, Already_Exists, Invalid_Object_Entry, Write_Protected, Invalid_Drive, No_Filesystem, -- The volume is not a FAT volume Locked, Too_Many_Open_Files, -- All available handles are used Invalid_Parameter, Input_Output_Error, No_MBR_Found, No_Partition_Found, No_More_Entries, Read_Only_File_System, Operation_Not_Permitted); type File_Mode is (Read_Only, Write_Only, Read_Write); type Seek_Mode is ( -- Seek from the beginning of the file, forward From_Start, -- Seek from the end of the file, backward From_End, -- Seek from the current position, forward Forward, -- Seek from the current position, backward Backward); type File_Size is new HAL.UInt64; -- Modern fs all support 64-bit file size. Only old or limited ones support -- max 32-bit (FAT in particular). So let's see big and not limit ourselves -- in this API with 32-bit only. type File_Descriptor is limited private; function Open (File : in out File_Descriptor; Name : String; Mode : File_Mode) return Status_Code; procedure Close (File : in out File_Descriptor); function Is_Open (File : File_Descriptor) return Boolean; function Flush (File : File_Descriptor) return Status_Code; function Size (File : File_Descriptor) return File_Size; function Read (File : File_Descriptor; Addr : System.Address; Length : File_Size) return File_Size; function Write (File : File_Descriptor; Addr : System.Address; Length : File_Size) return File_Size; function Offset (File : File_Descriptor) return File_Size; function Seek (File : in out File_Descriptor; Origin : Seek_Mode; Amount : in out File_Size) return Status_Code; generic type T is private; function Generic_Write (File : File_Descriptor; Value : T) return Status_Code; generic type T is private; function Generic_Read (File : File_Descriptor; Value : out T) return Status_Code; type Directory_Descriptor is limited private; function Open (Dir : in out Directory_Descriptor; Name : String) return Status_Code; procedure Close (Dir : in out Directory_Descriptor); type Directory_Entry (Name_Length : Natural) is record Name : String (1 .. Name_Length); Subdirectory : Boolean; Read_Only : Boolean; Hidden : Boolean; Symlink : Boolean; Size : File_Size; end record; Invalid_Dir_Entry : constant Directory_Entry; function Read (Dir : in out Directory_Descriptor) return Directory_Entry; procedure Reset (Dir : in out Directory_Descriptor); function Create_File (Path : String) return Status_Code; function Unlink (Path : String) return Status_Code; function Remove_Directory (Path : String) return Status_Code; function Copy_File (Source_Path, Destination_Path : String; Buffer_Size : Positive := 512) return Status_Code; -------------- -- Mounting -- -------------- MAX_MOUNT_POINTS : constant := 2; MAX_MOUNT_NAME_LENGTH : constant := 128; subtype Mount_Path is String with Dynamic_Predicate => Mount_Path'Length <= MAX_MOUNT_NAME_LENGTH; function Mount_Volume (Mount_Point : Mount_Path; FS : HAL.Filesystem.Any_Filesystem_Driver) return Status_Code; function Mount_Drive (Mount_Point : Mount_Path; Device : HAL.Block_Drivers.Any_Block_Driver) return Status_Code; function Unmount (Mount_Point : Mount_Path) return Status_Code; private type File_Descriptor is limited record Handle : HAL.Filesystem.Any_File_Handle := null; end record; type Directory_Descriptor is limited record Handle : HAL.Filesystem.Any_Directory_Handle := null; end record; Invalid_Dir_Entry : constant Directory_Entry (Name_Length => 0) := (Name_Length => 0, Name => "", Subdirectory => False, Read_Only => False, Hidden => False, Symlink => False, Size => 0); for Status_Code use (OK => HAL.Filesystem.OK'Enum_Rep, Non_Empty_Directory => HAL.Filesystem.Non_Empty_Directory'Enum_Rep, Disk_Error => HAL.Filesystem.Disk_Error'Enum_Rep, Disk_Full => HAL.Filesystem.Disk_Full'Enum_Rep, Internal_Error => HAL.Filesystem.Internal_Error'Enum_Rep, Drive_Not_Ready => HAL.Filesystem.Drive_Not_Ready'Enum_Rep, No_Such_File => HAL.Filesystem.No_Such_File'Enum_Rep, No_Such_Path => HAL.Filesystem.No_Such_Path'Enum_Rep, Not_Mounted => HAL.Filesystem.Not_Mounted'Enum_Rep, Invalid_Name => HAL.Filesystem.Invalid_Name'Enum_Rep, Access_Denied => HAL.Filesystem.Access_Denied'Enum_Rep, Already_Exists => HAL.Filesystem.Already_Exists'Enum_Rep, Invalid_Object_Entry => HAL.Filesystem.Invalid_Object_Entry'Enum_Rep, Write_Protected => HAL.Filesystem.Write_Protected'Enum_Rep, Invalid_Drive => HAL.Filesystem.Invalid_Drive'Enum_Rep, No_Filesystem => HAL.Filesystem.No_Filesystem'Enum_Rep, Locked => HAL.Filesystem.Locked'Enum_Rep, Too_Many_Open_Files => HAL.Filesystem.Too_Many_Open_Files'Enum_Rep, Invalid_Parameter => HAL.Filesystem.Invalid_Parameter'Enum_Rep, Input_Output_Error => HAL.Filesystem.Input_Output_Error'Enum_Rep, No_MBR_Found => HAL.Filesystem.No_MBR_Found'Enum_Rep, No_Partition_Found => HAL.Filesystem.No_Partition_Found'Enum_Rep, No_More_Entries => HAL.Filesystem.No_More_Entries'Enum_Rep, Read_Only_File_System => HAL.Filesystem.Read_Only_File_System'Enum_Rep, Operation_Not_Permitted => HAL.Filesystem.Operation_Not_Permitted'Enum_Rep); for File_Mode use (Read_Only => HAL.Filesystem.Read_Only'Enum_Rep, Write_Only => HAL.Filesystem.Write_Only'Enum_Rep, Read_Write => HAL.Filesystem.Read_Write'Enum_Rep); for Seek_Mode use (From_Start => HAL.Filesystem.From_Start'Enum_Rep, From_End => HAL.Filesystem.From_End'Enum_Rep, Forward => HAL.Filesystem.Forward'Enum_Rep, Backward => HAL.Filesystem.Backward'Enum_Rep); end File_IO;
38.531746
82
0.614933
319410cd335ab1300584abc758ce9be4e9dc7bd1
4,945
adb
Ada
support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/s-imgwiu.adb
orb-zhuchen/Orb
6da2404b949ac28bde786e08bf4debe4a27cd3a0
[ "CNRI-Python-GPL-Compatible", "MIT" ]
null
null
null
support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/s-imgwiu.adb
orb-zhuchen/Orb
6da2404b949ac28bde786e08bf4debe4a27cd3a0
[ "CNRI-Python-GPL-Compatible", "MIT" ]
null
null
null
support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/s-imgwiu.adb
orb-zhuchen/Orb
6da2404b949ac28bde786e08bf4debe4a27cd3a0
[ "CNRI-Python-GPL-Compatible", "MIT" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- S Y S T E M . I M G _ W I U -- -- -- -- B o d y -- -- -- -- Copyright (C) 1992-2019, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ with System.Unsigned_Types; use System.Unsigned_Types; package body System.Img_WIU is ----------------------------- -- Set_Image_Width_Integer -- ----------------------------- procedure Set_Image_Width_Integer (V : Integer; W : Integer; S : out String; P : in out Natural) is Start : Natural; begin -- Positive case can just use the unsigned circuit directly if V >= 0 then Set_Image_Width_Unsigned (Unsigned (V), W, S, P); -- Negative case has to set a minus sign. Note also that we have to be -- careful not to generate overflow with the largest negative number. else P := P + 1; S (P) := ' '; Start := P; declare pragma Suppress (Overflow_Check); pragma Suppress (Range_Check); begin Set_Image_Width_Unsigned (Unsigned (-V), W - 1, S, P); end; -- Set minus sign in last leading blank location. Because of the -- code above, there must be at least one such location. while S (Start + 1) = ' ' loop Start := Start + 1; end loop; S (Start) := '-'; end if; end Set_Image_Width_Integer; ------------------------------ -- Set_Image_Width_Unsigned -- ------------------------------ procedure Set_Image_Width_Unsigned (V : Unsigned; W : Integer; S : out String; P : in out Natural) is Start : constant Natural := P; F, T : Natural; procedure Set_Digits (T : Unsigned); -- Set digits of absolute value of T ---------------- -- Set_Digits -- ---------------- procedure Set_Digits (T : Unsigned) is begin if T >= 10 then Set_Digits (T / 10); P := P + 1; S (P) := Character'Val (T mod 10 + Character'Pos ('0')); else P := P + 1; S (P) := Character'Val (T + Character'Pos ('0')); end if; end Set_Digits; -- Start of processing for Set_Image_Width_Unsigned begin Set_Digits (V); -- Add leading spaces if required by width parameter if P - Start < W then F := P; P := P + (W - (P - Start)); T := P; while F > Start loop S (T) := S (F); T := T - 1; F := F - 1; end loop; for J in Start + 1 .. T loop S (J) := ' '; end loop; end if; end Set_Image_Width_Unsigned; end System.Img_WIU;
35.57554
78
0.426087
068bf0f1d10fb156e97536c062042ef22065b09f
1,286
adb
Ada
ADA_Project/src/sensor.adb
Intelligente-sanntidssystemer/Ada-prosjekt
90797813f0c107dc1af7c073788d8c6f2d413bf8
[ "MIT" ]
null
null
null
ADA_Project/src/sensor.adb
Intelligente-sanntidssystemer/Ada-prosjekt
90797813f0c107dc1af7c073788d8c6f2d413bf8
[ "MIT" ]
null
null
null
ADA_Project/src/sensor.adb
Intelligente-sanntidssystemer/Ada-prosjekt
90797813f0c107dc1af7c073788d8c6f2d413bf8
[ "MIT" ]
null
null
null
with NRF52_DK.Time; use NRF52_DK.Time; with HAL; use HAL; package body sensor is function Distance(TrigPin, EchoPin : NRF52_DK.IOs.Pin_Id) return Float is TimeNow : Time_Ms; --Maximum distance of sensor is 400cm = 23200uS. We add a 1ms margin on top of that DeadlineMicroseconds : constant Integer := 5800; Duration_Result : Time_Ms; Pulse : Boolean; DistanceLimit : constant Float := 100.0; begin TimeNow := NRF52_DK.Time.Clock; NRF52_DK.IOs.Set(TrigPin, False); NRF52_DK.Time.Delay_Ms(UInt64 (2 / 1000)); NRF52_DK.IOs.Set(TrigPin, True); NRF52_DK.Time.Delay_Ms (UInt64 (2 / 1000)); NRF52_DK.IOs.Set(TrigPin, False); --There must be no interrupts between these parts. Pulse := NRF52_DK.IOs.Set(EchoPin); while Pulse = NRF52_DK.IOs.Set(EchoPin) loop --Wait for the analog signal to change from low - high or high - low null; end loop; Duration_Result := (NRF52_DK.Time.Clock - TimeNow); return (Float(Duration_Result) / 58.0) * 1000000.0; -- https://github.com/gamegine/HCSR04-ultrasonic-sensor-lib/blob/master/src/HCSR04.cpp return -1.0; --Something went wrong if we end up here! end Distance; end sensor;
25.215686
95
0.650855
12e298a9f355d107ae33e0287430354ff56d0755
9,527
adb
Ada
tests/tk-bind-test_data-tests.adb
thindil/tashy2
43fcbadb33c0062b2c8d6138a8238441dec5fd80
[ "Apache-2.0" ]
2
2020-12-09T07:27:07.000Z
2021-10-19T13:31:54.000Z
tests/tk-bind-test_data-tests.adb
thindil/tashy2
43fcbadb33c0062b2c8d6138a8238441dec5fd80
[ "Apache-2.0" ]
null
null
null
tests/tk-bind-test_data-tests.adb
thindil/tashy2
43fcbadb33c0062b2c8d6138a8238441dec5fd80
[ "Apache-2.0" ]
null
null
null
-- This package has been generated automatically by GNATtest. -- You are allowed to add your code to the bodies of test routines. -- Such changes will be kept during further regeneration of this file. -- All code placed outside of test routine bodies will be lost. The -- code intended to set up and tear down the test environment should be -- placed into Tk.Bind.Test_Data. with AUnit.Assertions; use AUnit.Assertions; with System.Assertions; -- begin read only -- id:2.2/00/ -- -- This section can be used to add with clauses if necessary. -- -- end read only with Ada.Environment_Variables; use Ada.Environment_Variables; with Tcl.Variables; use Tcl.Variables; with Tk.MainWindow; use Tk.MainWindow; -- begin read only -- end read only package body Tk.Bind.Test_Data.Tests is -- begin read only -- id:2.2/01/ -- -- This section can be used to add global variables and other elements. -- -- end read only -- begin read only -- end read only -- begin read only function Wrap_Test_Modifier_Type_Image_4c8acf_353f1d (Modifier: Modifiers_Type) return String is begin declare Test_Modifier_Type_Image_4c8acf_353f1d_Result: constant String := GNATtest_Generated.GNATtest_Standard.Tk.Bind.Modifier_Type_Image (Modifier); begin return Test_Modifier_Type_Image_4c8acf_353f1d_Result; end; end Wrap_Test_Modifier_Type_Image_4c8acf_353f1d; -- end read only -- begin read only procedure Test_Modifier_Type_Image_test_modifier_type_image (Gnattest_T: in out Test); procedure Test_Modifier_Type_Image_4c8acf_353f1d (Gnattest_T: in out Test) renames Test_Modifier_Type_Image_test_modifier_type_image; -- id:2.2/4c8acf146866aa03/Modifier_Type_Image/1/0/test_modifier_type_image/ procedure Test_Modifier_Type_Image_test_modifier_type_image (Gnattest_T: in out Test) is function Modifier_Type_Image (Modifier: Modifiers_Type) return String renames Wrap_Test_Modifier_Type_Image_4c8acf_353f1d; -- end read only pragma Unreferenced(Gnattest_T); begin Assert (Modifier_Type_Image(BUTTON_1) = "Button-1", "Failed to get Image of Modifier_Type."); -- begin read only end Test_Modifier_Type_Image_test_modifier_type_image; -- end read only -- begin read only function Wrap_Test_Key_Syms_Type_Image_c4d722_679161 (Key: Key_Syms) return String is begin declare Test_Key_Syms_Type_Image_c4d722_679161_Result: constant String := GNATtest_Generated.GNATtest_Standard.Tk.Bind.Key_Syms_Type_Image (Key); begin return Test_Key_Syms_Type_Image_c4d722_679161_Result; end; end Wrap_Test_Key_Syms_Type_Image_c4d722_679161; -- end read only -- begin read only procedure Test_Key_Syms_Type_Image_test_key_syms_image (Gnattest_T: in out Test); procedure Test_Key_Syms_Type_Image_c4d722_679161 (Gnattest_T: in out Test) renames Test_Key_Syms_Type_Image_test_key_syms_image; -- id:2.2/c4d7226df5041a94/Key_Syms_Type_Image/1/0/test_key_syms_image/ procedure Test_Key_Syms_Type_Image_test_key_syms_image (Gnattest_T: in out Test) is function Key_Syms_Type_Image(Key: Key_Syms) return String renames Wrap_Test_Key_Syms_Type_Image_c4d722_679161; -- end read only pragma Unreferenced(Gnattest_T); begin Assert (Key_Syms_Type_Image(KEY_SPACE) = "Key-space", "Failed to get image of the space key."); Assert (Key_Syms_Type_Image(SHIFT_KEY_B) = "Key-B", "Failed to get image of the capital B key."); Assert (Key_Syms_Type_Image(SHIFT_KEY_KANA_A) = "Key-kana_A", "Failed to get image of capital kana_a key"); Assert (Key_Syms_Type_Image(KEY_ARABIC_COMMA) = "Key-Arabic_comma", "Failed to get image of arabic comma."); Assert (Key_Syms_Type_Image(SHIFT_KEY_SERBIAN_DJE) = "Key-Serbian_DJE", "Failed to get image for capital Serbian dje key"); Assert (Key_Syms_Type_Image(KEY_CYRILLIC_YU) = "Key-Cyrillic_yu", "Failed to get image of cyrillic yu."); Assert (Key_Syms_Type_Image(SHIFT_KEY_CYRILLIC_YU) = "Key-Cyrillic_YU", "Failed to get image of capital cyrillic yu."); Assert (Key_Syms_Type_Image(SHIFT_KEY_GREEK_ALPHAACCENT) = "Key-Greek_ALPHAaccent", "Failed to get image of capital Greek alpha accent."); Assert (Key_Syms_Type_Image(SHIFT_KEY_GREEK_OMICRONACCENT) = "Key-Greek_OMICRONaccent", "Failed to get image of capital Greek omicron accent."); Assert (Key_Syms_Type_Image(KEY_GREEK_ALPHAACCENT) = "Key-Greek_alphaaccent", "Failed to get image of Greek alpha accent."); Assert (Key_Syms_Type_Image(SHIFT_KEY_GREEK_ALPHA) = "Key-Greek_ALPHA", "Failed to get image of capital Greek alpha."); Assert (Key_Syms_Type_Image(KEY_BACKSPACE) = "Key-Backspace", "Failed to get image of the backspace key."); Assert (Key_Syms_Type_Image(KEY_SCROLL_LOCK) = "Key-Scroll_Lock", "Failed to get image of the scroll lock key."); Assert (Key_Syms_Type_Image(KEY_KANJI) = "Key-Kanji", "Failed to get image of the kanji key."); -- begin read only end Test_Key_Syms_Type_Image_test_key_syms_image; -- end read only -- begin read only procedure Wrap_Test_Tk_Bind_09337a_b9da3f (Window: Tk_Widget; Sequence: Modifiers_Type; Script: Tcl_String; Append: Boolean := False) is begin begin pragma Assert(Window /= Null_Widget and Length(Source => Script) > 0); null; exception when System.Assertions.Assert_Failure => AUnit.Assertions.Assert (False, "req_sloc(tk-bind.ads:0):Test_Bind test requirement violated"); end; GNATtest_Generated.GNATtest_Standard.Tk.Bind.Tk_Bind (Window, Sequence, Script, Append); begin pragma Assert(True); null; exception when System.Assertions.Assert_Failure => AUnit.Assertions.Assert (False, "ens_sloc(tk-bind.ads:0:):Test_Bind test commitment violated"); end; end Wrap_Test_Tk_Bind_09337a_b9da3f; -- end read only -- begin read only procedure Test_1_Tk_Bind_test_bind(Gnattest_T: in out Test); procedure Test_Tk_Bind_09337a_b9da3f(Gnattest_T: in out Test) renames Test_1_Tk_Bind_test_bind; -- id:2.2/09337ab9ce5ba9c4/Tk_Bind/1/0/test_bind/ procedure Test_1_Tk_Bind_test_bind(Gnattest_T: in out Test) is procedure Tk_Bind (Window: Tk_Widget; Sequence: Modifiers_Type; Script: Tcl_String; Append: Boolean := False) renames Wrap_Test_Tk_Bind_09337a_b9da3f; -- end read only pragma Unreferenced(Gnattest_T); begin if Value("DISPLAY", "")'Length = 0 then Assert(True, "No display, can't test"); return; end if; Tk_Bind(Get_Main_Window, BUTTON_1, To_Tcl_String("exit")); Assert (Tcl_Eval("bind .").Result = "<Button-1>", "Failed to set bind for Tk main window with simple sequence"); -- begin read only end Test_1_Tk_Bind_test_bind; -- end read only -- begin read only procedure Wrap_Test_Tk_Bind_45f058_8585f0 (Window: Tk_Widget; Sequence: Modifiers_Array; Script: Tcl_String; Append: Boolean := False) is begin begin pragma Assert (Window /= Null_Widget and Sequence /= Empty_Modifiers_Array and Length(Source => Script) > 0); null; exception when System.Assertions.Assert_Failure => AUnit.Assertions.Assert (False, "req_sloc(tk-bind.ads:0):Test_Bind2 test requirement violated"); end; GNATtest_Generated.GNATtest_Standard.Tk.Bind.Tk_Bind (Window, Sequence, Script, Append); begin pragma Assert(True); null; exception when System.Assertions.Assert_Failure => AUnit.Assertions.Assert (False, "ens_sloc(tk-bind.ads:0:):Test_Bind2 test commitment violated"); end; end Wrap_Test_Tk_Bind_45f058_8585f0; -- end read only -- begin read only procedure Test_2_Tk_Bind_test_bind2(Gnattest_T: in out Test); procedure Test_Tk_Bind_45f058_8585f0(Gnattest_T: in out Test) renames Test_2_Tk_Bind_test_bind2; -- id:2.2/45f058fa2634d176/Tk_Bind/0/0/test_bind2/ procedure Test_2_Tk_Bind_test_bind2(Gnattest_T: in out Test) is procedure Tk_Bind (Window: Tk_Widget; Sequence: Modifiers_Array; Script: Tcl_String; Append: Boolean := False) renames Wrap_Test_Tk_Bind_45f058_8585f0; -- end read only pragma Unreferenced(Gnattest_T); begin if Value("DISPLAY", "")'Length = 0 then Assert(True, "No display, can't test"); return; end if; Tk_Bind(Get_Main_Window, (CONTROL, BUTTON_1), To_Tcl_String("exit")); Assert (Tcl_Eval("bind .").Result = "<Control-Button-1> <Button-1>", "Failed to set bind for Tk main window with array sequence"); -- begin read only end Test_2_Tk_Bind_test_bind2; -- end read only -- begin read only -- id:2.2/02/ -- -- This section can be used to add elaboration code for the global state. -- begin -- end read only null; -- begin read only -- end read only end Tk.Bind.Test_Data.Tests;
33.783688
79
0.68542
3133798cf0d7ca889bc554da372456c569752883
2,335
ads
Ada
json/src/json-parsers.ads
onox/json-ada
2800de3000500ac3815a593d58baded61bf462fa
[ "Apache-2.0" ]
28
2016-07-30T23:00:19.000Z
2021-09-24T01:48:18.000Z
json/src/json-parsers.ads
onox/json-ada
2800de3000500ac3815a593d58baded61bf462fa
[ "Apache-2.0" ]
9
2018-01-14T15:18:34.000Z
2021-09-23T14:37:22.000Z
json/src/json-parsers.ads
onox/json-ada
2800de3000500ac3815a593d58baded61bf462fa
[ "Apache-2.0" ]
4
2018-11-11T03:11:01.000Z
2021-09-23T02:17:03.000Z
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2016 onox <[email protected]> -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in writing, software -- distributed under the License is distributed on an "AS IS" BASIS, -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. private with Ada.Containers.Indefinite_Holders; private with Ada.Finalization; with JSON.Types; with JSON.Streams; generic with package Types is new JSON.Types (<>); Default_Maximum_Depth : Positive := 10; Check_Duplicate_Keys : Boolean := False; -- If enabled, raise a Constraint_Error when an object contains -- duplicate keys. Parsing a JSON text will be slower if enabled. package JSON.Parsers with SPARK_Mode => On is pragma Preelaborate; type Parser is tagged limited private; function Create (Pointer : not null JSON.Streams.Stream_Element_Array_Access; Maximum_Depth : Positive := Default_Maximum_Depth) return Parser; function Create (Text : String; Maximum_Depth : Positive := Default_Maximum_Depth) return Parser; function Create_From_File (File_Name : String; Maximum_Depth : Positive := Default_Maximum_Depth) return Parser; function Parse (Object : in out Parser) return Types.JSON_Value; Parse_Error : exception; private package Stream_Holders is new Ada.Containers.Indefinite_Holders (Element_Type => Streams.Stream, "=" => Streams."="); package Memory_Holders is new Ada.Containers.Indefinite_Holders (Element_Type => Types.Memory_Allocator, "=" => Types."="); package AF renames Ada.Finalization; type Parser is limited new AF.Limited_Controlled with record Stream : Stream_Holders.Holder; Allocator : Memory_Holders.Holder; Pointer : Streams.Stream_Element_Array_Access; Own_Pointer : Boolean; end record; overriding procedure Finalize (Object : in out Parser); end JSON.Parsers;
31.986301
76
0.719486
318f72d21330ce15ea1cd67c4f0df9938a462056
31,232
ads
Ada
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/g-alleve__hard.ads
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/g-alleve__hard.ads
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/g-alleve__hard.ads
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- G N A T . A L T I V E C . L O W _ L E V E L _ V E C T O R S -- -- -- -- S p e c -- -- (Hard Binding Version) -- -- -- -- 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. -- -- -- ------------------------------------------------------------------------------ -- This unit exposes the low level vector support for the Hard binding, -- intended for AltiVec capable targets. See Altivec.Design for a description -- of what is expected to be exposed. package GNAT.Altivec.Low_Level_Vectors is pragma Elaborate_Body; ---------------------------------------- -- Low-level Vector Type Declarations -- ---------------------------------------- type LL_VUC is private; type LL_VSC is private; type LL_VBC is private; type LL_VUS is private; type LL_VSS is private; type LL_VBS is private; type LL_VUI is private; type LL_VSI is private; type LL_VBI is private; type LL_VF is private; type LL_VP is private; ------------------------------------ -- Low-level Functional Interface -- ------------------------------------ function abs_v16qi (A : LL_VSC) return LL_VSC; function abs_v8hi (A : LL_VSS) return LL_VSS; function abs_v4si (A : LL_VSI) return LL_VSI; function abs_v4sf (A : LL_VF) return LL_VF; function abss_v16qi (A : LL_VSC) return LL_VSC; function abss_v8hi (A : LL_VSS) return LL_VSS; function abss_v4si (A : LL_VSI) return LL_VSI; function vaddubm (A : LL_VSC; B : LL_VSC) return LL_VSC; function vadduhm (A : LL_VSS; B : LL_VSS) return LL_VSS; function vadduwm (A : LL_VSI; B : LL_VSI) return LL_VSI; function vaddfp (A : LL_VF; B : LL_VF) return LL_VF; function vaddcuw (A : LL_VSI; B : LL_VSI) return LL_VSI; function vaddubs (A : LL_VSC; B : LL_VSC) return LL_VSC; function vaddsbs (A : LL_VSC; B : LL_VSC) return LL_VSC; function vadduhs (A : LL_VSS; B : LL_VSS) return LL_VSS; function vaddshs (A : LL_VSS; B : LL_VSS) return LL_VSS; function vadduws (A : LL_VSI; B : LL_VSI) return LL_VSI; function vaddsws (A : LL_VSI; B : LL_VSI) return LL_VSI; function vand (A : LL_VSI; B : LL_VSI) return LL_VSI; function vandc (A : LL_VSI; B : LL_VSI) return LL_VSI; function vavgub (A : LL_VSC; B : LL_VSC) return LL_VSC; function vavgsb (A : LL_VSC; B : LL_VSC) return LL_VSC; function vavguh (A : LL_VSS; B : LL_VSS) return LL_VSS; function vavgsh (A : LL_VSS; B : LL_VSS) return LL_VSS; function vavguw (A : LL_VSI; B : LL_VSI) return LL_VSI; function vavgsw (A : LL_VSI; B : LL_VSI) return LL_VSI; function vcmpbfp (A : LL_VF; B : LL_VF) return LL_VSI; function vcmpequb (A : LL_VSC; B : LL_VSC) return LL_VSC; function vcmpequh (A : LL_VSS; B : LL_VSS) return LL_VSS; function vcmpequw (A : LL_VSI; B : LL_VSI) return LL_VSI; function vcmpeqfp (A : LL_VF; B : LL_VF) return LL_VF; function vcmpgefp (A : LL_VF; B : LL_VF) return LL_VF; function vcmpgtub (A : LL_VSC; B : LL_VSC) return LL_VSC; function vcmpgtsb (A : LL_VSC; B : LL_VSC) return LL_VSC; function vcmpgtuh (A : LL_VSS; B : LL_VSS) return LL_VSS; function vcmpgtsh (A : LL_VSS; B : LL_VSS) return LL_VSS; function vcmpgtuw (A : LL_VSI; B : LL_VSI) return LL_VSI; function vcmpgtsw (A : LL_VSI; B : LL_VSI) return LL_VSI; function vcmpgtfp (A : LL_VF; B : LL_VF) return LL_VF; function vcfux (A : LL_VUI; B : c_int) return LL_VF; function vcfsx (A : LL_VSI; B : c_int) return LL_VF; function vctsxs (A : LL_VF; B : c_int) return LL_VSI; function vctuxs (A : LL_VF; B : c_int) return LL_VUI; procedure dss (A : c_int); procedure dssall; procedure dst (A : c_ptr; B : c_int; C : c_int); procedure dstst (A : c_ptr; B : c_int; C : c_int); procedure dststt (A : c_ptr; B : c_int; C : c_int); procedure dstt (A : c_ptr; B : c_int; C : c_int); function vexptefp (A : LL_VF) return LL_VF; function vrfim (A : LL_VF) return LL_VF; function lvx (A : c_long; B : c_ptr) return LL_VSI; function lvebx (A : c_long; B : c_ptr) return LL_VSC; function lvehx (A : c_long; B : c_ptr) return LL_VSS; function lvewx (A : c_long; B : c_ptr) return LL_VSI; function lvxl (A : c_long; B : c_ptr) return LL_VSI; function vlogefp (A : LL_VF) return LL_VF; function lvsl (A : c_long; B : c_ptr) return LL_VSC; function lvsr (A : c_long; B : c_ptr) return LL_VSC; function vmaddfp (A : LL_VF; B : LL_VF; C : LL_VF) return LL_VF; function vmhaddshs (A : LL_VSS; B : LL_VSS; C : LL_VSS) return LL_VSS; function vmaxub (A : LL_VSC; B : LL_VSC) return LL_VSC; function vmaxsb (A : LL_VSC; B : LL_VSC) return LL_VSC; function vmaxuh (A : LL_VSS; B : LL_VSS) return LL_VSS; function vmaxsh (A : LL_VSS; B : LL_VSS) return LL_VSS; function vmaxuw (A : LL_VSI; B : LL_VSI) return LL_VSI; function vmaxsw (A : LL_VSI; B : LL_VSI) return LL_VSI; function vmaxfp (A : LL_VF; B : LL_VF) return LL_VF; function vmrghb (A : LL_VSC; B : LL_VSC) return LL_VSC; function vmrghh (A : LL_VSS; B : LL_VSS) return LL_VSS; function vmrghw (A : LL_VSI; B : LL_VSI) return LL_VSI; function vmrglb (A : LL_VSC; B : LL_VSC) return LL_VSC; function vmrglh (A : LL_VSS; B : LL_VSS) return LL_VSS; function vmrglw (A : LL_VSI; B : LL_VSI) return LL_VSI; function mfvscr return LL_VSS; function vminfp (A : LL_VF; B : LL_VF) return LL_VF; function vminsb (A : LL_VSC; B : LL_VSC) return LL_VSC; function vminsh (A : LL_VSS; B : LL_VSS) return LL_VSS; function vminsw (A : LL_VSI; B : LL_VSI) return LL_VSI; function vminub (A : LL_VSC; B : LL_VSC) return LL_VSC; function vminuh (A : LL_VSS; B : LL_VSS) return LL_VSS; function vminuw (A : LL_VSI; B : LL_VSI) return LL_VSI; function vmladduhm (A : LL_VSS; B : LL_VSS; C : LL_VSS) return LL_VSS; function vmhraddshs (A : LL_VSS; B : LL_VSS; C : LL_VSS) return LL_VSS; function vmsumubm (A : LL_VSC; B : LL_VSC; C : LL_VSI) return LL_VSI; function vmsummbm (A : LL_VSC; B : LL_VSC; C : LL_VSI) return LL_VSI; function vmsumuhm (A : LL_VSS; B : LL_VSS; C : LL_VSI) return LL_VSI; function vmsumshm (A : LL_VSS; B : LL_VSS; C : LL_VSI) return LL_VSI; function vmsumuhs (A : LL_VSS; B : LL_VSS; C : LL_VSI) return LL_VSI; function vmsumshs (A : LL_VSS; B : LL_VSS; C : LL_VSI) return LL_VSI; procedure mtvscr (A : LL_VSI); function vmuleub (A : LL_VSC; B : LL_VSC) return LL_VSS; function vmuleuh (A : LL_VSS; B : LL_VSS) return LL_VSI; function vmulesb (A : LL_VSC; B : LL_VSC) return LL_VSS; function vmulesh (A : LL_VSS; B : LL_VSS) return LL_VSI; function vmulosb (A : LL_VSC; B : LL_VSC) return LL_VSS; function vmulosh (A : LL_VSS; B : LL_VSS) return LL_VSI; function vmuloub (A : LL_VSC; B : LL_VSC) return LL_VSS; function vmulouh (A : LL_VSS; B : LL_VSS) return LL_VSI; function vnmsubfp (A : LL_VF; B : LL_VF; C : LL_VF) return LL_VF; function vxor (A : LL_VSI; B : LL_VSI) return LL_VSI; function vnor (A : LL_VSI; B : LL_VSI) return LL_VSI; function vor (A : LL_VSI; B : LL_VSI) return LL_VSI; function vpkuhum (A : LL_VSS; B : LL_VSS) return LL_VSC; function vpkuwum (A : LL_VSI; B : LL_VSI) return LL_VSS; function vpkpx (A : LL_VSI; B : LL_VSI) return LL_VSS; function vpkuhus (A : LL_VSS; B : LL_VSS) return LL_VSC; function vpkuwus (A : LL_VSI; B : LL_VSI) return LL_VSS; function vpkshss (A : LL_VSS; B : LL_VSS) return LL_VSC; function vpkswss (A : LL_VSI; B : LL_VSI) return LL_VSS; function vpkshus (A : LL_VSS; B : LL_VSS) return LL_VSC; function vpkswus (A : LL_VSI; B : LL_VSI) return LL_VSS; function vperm_4si (A : LL_VSI; B : LL_VSI; C : LL_VSC) return LL_VSI; function vrefp (A : LL_VF) return LL_VF; function vrlb (A : LL_VSC; B : LL_VSC) return LL_VSC; function vrlh (A : LL_VSS; B : LL_VSS) return LL_VSS; function vrlw (A : LL_VSI; B : LL_VSI) return LL_VSI; function vrfin (A : LL_VF) return LL_VF; function vrfip (A : LL_VF) return LL_VF; function vrfiz (A : LL_VF) return LL_VF; function vrsqrtefp (A : LL_VF) return LL_VF; function vsel_4si (A : LL_VSI; B : LL_VSI; C : LL_VSI) return LL_VSI; function vslb (A : LL_VSC; B : LL_VSC) return LL_VSC; function vslh (A : LL_VSS; B : LL_VSS) return LL_VSS; function vslw (A : LL_VSI; B : LL_VSI) return LL_VSI; function vsldoi_4si (A : LL_VSI; B : LL_VSI; C : c_int) return LL_VSI; function vsldoi_8hi (A : LL_VSS; B : LL_VSS; C : c_int) return LL_VSS; function vsldoi_16qi (A : LL_VSC; B : LL_VSC; C : c_int) return LL_VSC; function vsldoi_4sf (A : LL_VF; B : LL_VF; C : c_int) return LL_VF; function vsl (A : LL_VSI; B : LL_VSI) return LL_VSI; function vslo (A : LL_VSI; B : LL_VSI) return LL_VSI; function vspltb (A : LL_VSC; B : c_int) return LL_VSC; function vsplth (A : LL_VSS; B : c_int) return LL_VSS; function vspltw (A : LL_VSI; B : c_int) return LL_VSI; function vspltisb (A : c_int) return LL_VSC; function vspltish (A : c_int) return LL_VSS; function vspltisw (A : c_int) return LL_VSI; function vsrb (A : LL_VSC; B : LL_VSC) return LL_VSC; function vsrh (A : LL_VSS; B : LL_VSS) return LL_VSS; function vsrw (A : LL_VSI; B : LL_VSI) return LL_VSI; function vsrab (A : LL_VSC; B : LL_VSC) return LL_VSC; function vsrah (A : LL_VSS; B : LL_VSS) return LL_VSS; function vsraw (A : LL_VSI; B : LL_VSI) return LL_VSI; function vsr (A : LL_VSI; B : LL_VSI) return LL_VSI; function vsro (A : LL_VSI; B : LL_VSI) return LL_VSI; procedure stvx (A : LL_VSI; B : c_int; C : c_ptr); procedure stvebx (A : LL_VSC; B : c_int; C : c_ptr); procedure stvehx (A : LL_VSS; B : c_int; C : c_ptr); procedure stvewx (A : LL_VSI; B : c_int; C : c_ptr); procedure stvxl (A : LL_VSI; B : c_int; C : c_ptr); function vsububm (A : LL_VSC; B : LL_VSC) return LL_VSC; function vsubuhm (A : LL_VSS; B : LL_VSS) return LL_VSS; function vsubuwm (A : LL_VSI; B : LL_VSI) return LL_VSI; function vsubfp (A : LL_VF; B : LL_VF) return LL_VF; function vsubcuw (A : LL_VSI; B : LL_VSI) return LL_VSI; function vsububs (A : LL_VSC; B : LL_VSC) return LL_VSC; function vsubsbs (A : LL_VSC; B : LL_VSC) return LL_VSC; function vsubuhs (A : LL_VSS; B : LL_VSS) return LL_VSS; function vsubshs (A : LL_VSS; B : LL_VSS) return LL_VSS; function vsubuws (A : LL_VSI; B : LL_VSI) return LL_VSI; function vsubsws (A : LL_VSI; B : LL_VSI) return LL_VSI; function vsum4ubs (A : LL_VSC; B : LL_VSI) return LL_VSI; function vsum4sbs (A : LL_VSC; B : LL_VSI) return LL_VSI; function vsum4shs (A : LL_VSS; B : LL_VSI) return LL_VSI; function vsum2sws (A : LL_VSI; B : LL_VSI) return LL_VSI; function vsumsws (A : LL_VSI; B : LL_VSI) return LL_VSI; function vupkhsb (A : LL_VSC) return LL_VSS; function vupkhsh (A : LL_VSS) return LL_VSI; function vupkhpx (A : LL_VSS) return LL_VSI; function vupklsb (A : LL_VSC) return LL_VSS; function vupklsh (A : LL_VSS) return LL_VSI; function vupklpx (A : LL_VSS) return LL_VSI; function vcmpequb_p (A : c_int; B : LL_VSC; C : LL_VSC) return c_int; function vcmpequh_p (A : c_int; B : LL_VSS; C : LL_VSS) return c_int; function vcmpequw_p (A : c_int; B : LL_VSI; C : LL_VSI) return c_int; function vcmpeqfp_p (A : c_int; B : LL_VF; C : LL_VF) return c_int; function vcmpgtub_p (A : c_int; B : LL_VSC; C : LL_VSC) return c_int; function vcmpgtuh_p (A : c_int; B : LL_VSS; C : LL_VSS) return c_int; function vcmpgtuw_p (A : c_int; B : LL_VSI; C : LL_VSI) return c_int; function vcmpgtsb_p (A : c_int; B : LL_VSC; C : LL_VSC) return c_int; function vcmpgtsh_p (A : c_int; B : LL_VSS; C : LL_VSS) return c_int; function vcmpgtsw_p (A : c_int; B : LL_VSI; C : LL_VSI) return c_int; function vcmpgtfp_p (A : c_int; B : LL_VF; C : LL_VF) return c_int; function vcmpgefp_p (A : c_int; B : LL_VF; C : LL_VF) return c_int; function vcmpbfp_p (A : c_int; B : LL_VF; C : LL_VF) return c_int; private --------------------------------------- -- Low-level Vector Type Definitions -- --------------------------------------- -- [PIM-2.3.3 Alignment of aggregate and unions containing vector types]: -- "Aggregates (structures and arrays) and unions containing vector -- types must be aligned on 16-byte boundaries and their internal -- organization padded, if necessary, so that each internal vector -- type is aligned on a 16-byte boundary. This is an extension to -- all ABIs (AIX, Apple, SVR4, and EABI). -------------------------- -- char Core Components -- -------------------------- type LL_VUC is array (1 .. 16) of unsigned_char; for LL_VUC'Alignment use VECTOR_ALIGNMENT; pragma Machine_Attribute (LL_VUC, "vector_type"); pragma Suppress (All_Checks, LL_VUC); type LL_VSC is array (1 .. 16) of signed_char; for LL_VSC'Alignment use VECTOR_ALIGNMENT; pragma Machine_Attribute (LL_VSC, "vector_type"); pragma Suppress (All_Checks, LL_VSC); type LL_VBC is array (1 .. 16) of unsigned_char; for LL_VBC'Alignment use VECTOR_ALIGNMENT; pragma Machine_Attribute (LL_VBC, "vector_type"); pragma Suppress (All_Checks, LL_VBC); --------------------------- -- short Core Components -- --------------------------- type LL_VUS is array (1 .. 8) of unsigned_short; for LL_VUS'Alignment use VECTOR_ALIGNMENT; pragma Machine_Attribute (LL_VUS, "vector_type"); pragma Suppress (All_Checks, LL_VUS); type LL_VSS is array (1 .. 8) of signed_short; for LL_VSS'Alignment use VECTOR_ALIGNMENT; pragma Machine_Attribute (LL_VSS, "vector_type"); pragma Suppress (All_Checks, LL_VSS); type LL_VBS is array (1 .. 8) of unsigned_short; for LL_VBS'Alignment use VECTOR_ALIGNMENT; pragma Machine_Attribute (LL_VBS, "vector_type"); pragma Suppress (All_Checks, LL_VBS); ------------------------- -- int Core Components -- ------------------------- type LL_VUI is array (1 .. 4) of unsigned_int; for LL_VUI'Alignment use VECTOR_ALIGNMENT; pragma Machine_Attribute (LL_VUI, "vector_type"); pragma Suppress (All_Checks, LL_VUI); type LL_VSI is array (1 .. 4) of signed_int; for LL_VSI'Alignment use VECTOR_ALIGNMENT; pragma Machine_Attribute (LL_VSI, "vector_type"); pragma Suppress (All_Checks, LL_VSI); type LL_VBI is array (1 .. 4) of unsigned_int; for LL_VBI'Alignment use VECTOR_ALIGNMENT; pragma Machine_Attribute (LL_VBI, "vector_type"); pragma Suppress (All_Checks, LL_VBI); --------------------------- -- Float Core Components -- --------------------------- type LL_VF is array (1 .. 4) of Float; for LL_VF'Alignment use VECTOR_ALIGNMENT; pragma Machine_Attribute (LL_VF, "vector_type"); pragma Suppress (All_Checks, LL_VF); --------------------------- -- pixel Core Components -- --------------------------- type LL_VP is array (1 .. 8) of pixel; for LL_VP'Alignment use VECTOR_ALIGNMENT; pragma Machine_Attribute (LL_VP, "vector_type"); pragma Suppress (All_Checks, LL_VP); ------------------------------------ -- Low-level Functional Interface -- ------------------------------------ -- The functions we have to expose here are exactly those for which -- GCC builtins are available. Calls to these functions will be turned -- into real AltiVec instructions by the GCC back-end. pragma Convention_Identifier (LL_Altivec, Intrinsic); pragma Import (LL_Altivec, dss, "__builtin_altivec_dss"); pragma Import (LL_Altivec, dssall, "__builtin_altivec_dssall"); pragma Import (LL_Altivec, dst, "__builtin_altivec_dst"); pragma Import (LL_Altivec, dstst, "__builtin_altivec_dstst"); pragma Import (LL_Altivec, dststt, "__builtin_altivec_dststt"); pragma Import (LL_Altivec, dstt, "__builtin_altivec_dstt"); pragma Import (LL_Altivec, mtvscr, "__builtin_altivec_mtvscr"); pragma Import (LL_Altivec, mfvscr, "__builtin_altivec_mfvscr"); pragma Import (LL_Altivec, stvebx, "__builtin_altivec_stvebx"); pragma Import (LL_Altivec, stvehx, "__builtin_altivec_stvehx"); pragma Import (LL_Altivec, stvewx, "__builtin_altivec_stvewx"); pragma Import (LL_Altivec, stvx, "__builtin_altivec_stvx"); pragma Import (LL_Altivec, stvxl, "__builtin_altivec_stvxl"); pragma Import (LL_Altivec, lvebx, "__builtin_altivec_lvebx"); pragma Import (LL_Altivec, lvehx, "__builtin_altivec_lvehx"); pragma Import (LL_Altivec, lvewx, "__builtin_altivec_lvewx"); pragma Import (LL_Altivec, lvx, "__builtin_altivec_lvx"); pragma Import (LL_Altivec, lvxl, "__builtin_altivec_lvxl"); pragma Import (LL_Altivec, lvsl, "__builtin_altivec_lvsl"); pragma Import (LL_Altivec, lvsr, "__builtin_altivec_lvsr"); pragma Import (LL_Altivec, abs_v16qi, "__builtin_altivec_abs_v16qi"); pragma Import (LL_Altivec, abs_v8hi, "__builtin_altivec_abs_v8hi"); pragma Import (LL_Altivec, abs_v4si, "__builtin_altivec_abs_v4si"); pragma Import (LL_Altivec, abs_v4sf, "__builtin_altivec_abs_v4sf"); pragma Import (LL_Altivec, abss_v16qi, "__builtin_altivec_abss_v16qi"); pragma Import (LL_Altivec, abss_v8hi, "__builtin_altivec_abss_v8hi"); pragma Import (LL_Altivec, abss_v4si, "__builtin_altivec_abss_v4si"); pragma Import (LL_Altivec, vaddcuw, "__builtin_altivec_vaddcuw"); pragma Import (LL_Altivec, vaddfp, "__builtin_altivec_vaddfp"); pragma Import (LL_Altivec, vaddsbs, "__builtin_altivec_vaddsbs"); pragma Import (LL_Altivec, vaddshs, "__builtin_altivec_vaddshs"); pragma Import (LL_Altivec, vaddsws, "__builtin_altivec_vaddsws"); pragma Import (LL_Altivec, vaddubm, "__builtin_altivec_vaddubm"); pragma Import (LL_Altivec, vaddubs, "__builtin_altivec_vaddubs"); pragma Import (LL_Altivec, vadduhm, "__builtin_altivec_vadduhm"); pragma Import (LL_Altivec, vadduhs, "__builtin_altivec_vadduhs"); pragma Import (LL_Altivec, vadduwm, "__builtin_altivec_vadduwm"); pragma Import (LL_Altivec, vadduws, "__builtin_altivec_vadduws"); pragma Import (LL_Altivec, vand, "__builtin_altivec_vand"); pragma Import (LL_Altivec, vandc, "__builtin_altivec_vandc"); pragma Import (LL_Altivec, vavgsb, "__builtin_altivec_vavgsb"); pragma Import (LL_Altivec, vavgsh, "__builtin_altivec_vavgsh"); pragma Import (LL_Altivec, vavgsw, "__builtin_altivec_vavgsw"); pragma Import (LL_Altivec, vavgub, "__builtin_altivec_vavgub"); pragma Import (LL_Altivec, vavguh, "__builtin_altivec_vavguh"); pragma Import (LL_Altivec, vavguw, "__builtin_altivec_vavguw"); pragma Import (LL_Altivec, vcfsx, "__builtin_altivec_vcfsx"); pragma Import (LL_Altivec, vcfux, "__builtin_altivec_vcfux"); pragma Import (LL_Altivec, vcmpbfp, "__builtin_altivec_vcmpbfp"); pragma Import (LL_Altivec, vcmpeqfp, "__builtin_altivec_vcmpeqfp"); pragma Import (LL_Altivec, vcmpequb, "__builtin_altivec_vcmpequb"); pragma Import (LL_Altivec, vcmpequh, "__builtin_altivec_vcmpequh"); pragma Import (LL_Altivec, vcmpequw, "__builtin_altivec_vcmpequw"); pragma Import (LL_Altivec, vcmpgefp, "__builtin_altivec_vcmpgefp"); pragma Import (LL_Altivec, vcmpgtfp, "__builtin_altivec_vcmpgtfp"); pragma Import (LL_Altivec, vcmpgtsb, "__builtin_altivec_vcmpgtsb"); pragma Import (LL_Altivec, vcmpgtsh, "__builtin_altivec_vcmpgtsh"); pragma Import (LL_Altivec, vcmpgtsw, "__builtin_altivec_vcmpgtsw"); pragma Import (LL_Altivec, vcmpgtub, "__builtin_altivec_vcmpgtub"); pragma Import (LL_Altivec, vcmpgtuh, "__builtin_altivec_vcmpgtuh"); pragma Import (LL_Altivec, vcmpgtuw, "__builtin_altivec_vcmpgtuw"); pragma Import (LL_Altivec, vctsxs, "__builtin_altivec_vctsxs"); pragma Import (LL_Altivec, vctuxs, "__builtin_altivec_vctuxs"); pragma Import (LL_Altivec, vexptefp, "__builtin_altivec_vexptefp"); pragma Import (LL_Altivec, vlogefp, "__builtin_altivec_vlogefp"); pragma Import (LL_Altivec, vmaddfp, "__builtin_altivec_vmaddfp"); pragma Import (LL_Altivec, vmaxfp, "__builtin_altivec_vmaxfp"); pragma Import (LL_Altivec, vmaxsb, "__builtin_altivec_vmaxsb"); pragma Import (LL_Altivec, vmaxsh, "__builtin_altivec_vmaxsh"); pragma Import (LL_Altivec, vmaxsw, "__builtin_altivec_vmaxsw"); pragma Import (LL_Altivec, vmaxub, "__builtin_altivec_vmaxub"); pragma Import (LL_Altivec, vmaxuh, "__builtin_altivec_vmaxuh"); pragma Import (LL_Altivec, vmaxuw, "__builtin_altivec_vmaxuw"); pragma Import (LL_Altivec, vmhaddshs, "__builtin_altivec_vmhaddshs"); pragma Import (LL_Altivec, vmhraddshs, "__builtin_altivec_vmhraddshs"); pragma Import (LL_Altivec, vminfp, "__builtin_altivec_vminfp"); pragma Import (LL_Altivec, vminsb, "__builtin_altivec_vminsb"); pragma Import (LL_Altivec, vminsh, "__builtin_altivec_vminsh"); pragma Import (LL_Altivec, vminsw, "__builtin_altivec_vminsw"); pragma Import (LL_Altivec, vminub, "__builtin_altivec_vminub"); pragma Import (LL_Altivec, vminuh, "__builtin_altivec_vminuh"); pragma Import (LL_Altivec, vminuw, "__builtin_altivec_vminuw"); pragma Import (LL_Altivec, vmladduhm, "__builtin_altivec_vmladduhm"); pragma Import (LL_Altivec, vmrghb, "__builtin_altivec_vmrghb"); pragma Import (LL_Altivec, vmrghh, "__builtin_altivec_vmrghh"); pragma Import (LL_Altivec, vmrghw, "__builtin_altivec_vmrghw"); pragma Import (LL_Altivec, vmrglb, "__builtin_altivec_vmrglb"); pragma Import (LL_Altivec, vmrglh, "__builtin_altivec_vmrglh"); pragma Import (LL_Altivec, vmrglw, "__builtin_altivec_vmrglw"); pragma Import (LL_Altivec, vmsummbm, "__builtin_altivec_vmsummbm"); pragma Import (LL_Altivec, vmsumshm, "__builtin_altivec_vmsumshm"); pragma Import (LL_Altivec, vmsumshs, "__builtin_altivec_vmsumshs"); pragma Import (LL_Altivec, vmsumubm, "__builtin_altivec_vmsumubm"); pragma Import (LL_Altivec, vmsumuhm, "__builtin_altivec_vmsumuhm"); pragma Import (LL_Altivec, vmsumuhs, "__builtin_altivec_vmsumuhs"); pragma Import (LL_Altivec, vmulesb, "__builtin_altivec_vmulesb"); pragma Import (LL_Altivec, vmulesh, "__builtin_altivec_vmulesh"); pragma Import (LL_Altivec, vmuleub, "__builtin_altivec_vmuleub"); pragma Import (LL_Altivec, vmuleuh, "__builtin_altivec_vmuleuh"); pragma Import (LL_Altivec, vmulosb, "__builtin_altivec_vmulosb"); pragma Import (LL_Altivec, vmulosh, "__builtin_altivec_vmulosh"); pragma Import (LL_Altivec, vmuloub, "__builtin_altivec_vmuloub"); pragma Import (LL_Altivec, vmulouh, "__builtin_altivec_vmulouh"); pragma Import (LL_Altivec, vnmsubfp, "__builtin_altivec_vnmsubfp"); pragma Import (LL_Altivec, vnor, "__builtin_altivec_vnor"); pragma Import (LL_Altivec, vxor, "__builtin_altivec_vxor"); pragma Import (LL_Altivec, vor, "__builtin_altivec_vor"); pragma Import (LL_Altivec, vperm_4si, "__builtin_altivec_vperm_4si"); pragma Import (LL_Altivec, vpkpx, "__builtin_altivec_vpkpx"); pragma Import (LL_Altivec, vpkshss, "__builtin_altivec_vpkshss"); pragma Import (LL_Altivec, vpkshus, "__builtin_altivec_vpkshus"); pragma Import (LL_Altivec, vpkswss, "__builtin_altivec_vpkswss"); pragma Import (LL_Altivec, vpkswus, "__builtin_altivec_vpkswus"); pragma Import (LL_Altivec, vpkuhum, "__builtin_altivec_vpkuhum"); pragma Import (LL_Altivec, vpkuhus, "__builtin_altivec_vpkuhus"); pragma Import (LL_Altivec, vpkuwum, "__builtin_altivec_vpkuwum"); pragma Import (LL_Altivec, vpkuwus, "__builtin_altivec_vpkuwus"); pragma Import (LL_Altivec, vrefp, "__builtin_altivec_vrefp"); pragma Import (LL_Altivec, vrfim, "__builtin_altivec_vrfim"); pragma Import (LL_Altivec, vrfin, "__builtin_altivec_vrfin"); pragma Import (LL_Altivec, vrfip, "__builtin_altivec_vrfip"); pragma Import (LL_Altivec, vrfiz, "__builtin_altivec_vrfiz"); pragma Import (LL_Altivec, vrlb, "__builtin_altivec_vrlb"); pragma Import (LL_Altivec, vrlh, "__builtin_altivec_vrlh"); pragma Import (LL_Altivec, vrlw, "__builtin_altivec_vrlw"); pragma Import (LL_Altivec, vrsqrtefp, "__builtin_altivec_vrsqrtefp"); pragma Import (LL_Altivec, vsel_4si, "__builtin_altivec_vsel_4si"); pragma Import (LL_Altivec, vsldoi_4si, "__builtin_altivec_vsldoi_4si"); pragma Import (LL_Altivec, vsldoi_8hi, "__builtin_altivec_vsldoi_8hi"); pragma Import (LL_Altivec, vsldoi_16qi, "__builtin_altivec_vsldoi_16qi"); pragma Import (LL_Altivec, vsldoi_4sf, "__builtin_altivec_vsldoi_4sf"); pragma Import (LL_Altivec, vsl, "__builtin_altivec_vsl"); pragma Import (LL_Altivec, vslb, "__builtin_altivec_vslb"); pragma Import (LL_Altivec, vslh, "__builtin_altivec_vslh"); pragma Import (LL_Altivec, vslo, "__builtin_altivec_vslo"); pragma Import (LL_Altivec, vslw, "__builtin_altivec_vslw"); pragma Import (LL_Altivec, vspltb, "__builtin_altivec_vspltb"); pragma Import (LL_Altivec, vsplth, "__builtin_altivec_vsplth"); pragma Import (LL_Altivec, vspltisb, "__builtin_altivec_vspltisb"); pragma Import (LL_Altivec, vspltish, "__builtin_altivec_vspltish"); pragma Import (LL_Altivec, vspltisw, "__builtin_altivec_vspltisw"); pragma Import (LL_Altivec, vspltw, "__builtin_altivec_vspltw"); pragma Import (LL_Altivec, vsr, "__builtin_altivec_vsr"); pragma Import (LL_Altivec, vsrab, "__builtin_altivec_vsrab"); pragma Import (LL_Altivec, vsrah, "__builtin_altivec_vsrah"); pragma Import (LL_Altivec, vsraw, "__builtin_altivec_vsraw"); pragma Import (LL_Altivec, vsrb, "__builtin_altivec_vsrb"); pragma Import (LL_Altivec, vsrh, "__builtin_altivec_vsrh"); pragma Import (LL_Altivec, vsro, "__builtin_altivec_vsro"); pragma Import (LL_Altivec, vsrw, "__builtin_altivec_vsrw"); pragma Import (LL_Altivec, vsubcuw, "__builtin_altivec_vsubcuw"); pragma Import (LL_Altivec, vsubfp, "__builtin_altivec_vsubfp"); pragma Import (LL_Altivec, vsubsbs, "__builtin_altivec_vsubsbs"); pragma Import (LL_Altivec, vsubshs, "__builtin_altivec_vsubshs"); pragma Import (LL_Altivec, vsubsws, "__builtin_altivec_vsubsws"); pragma Import (LL_Altivec, vsububm, "__builtin_altivec_vsububm"); pragma Import (LL_Altivec, vsububs, "__builtin_altivec_vsububs"); pragma Import (LL_Altivec, vsubuhm, "__builtin_altivec_vsubuhm"); pragma Import (LL_Altivec, vsubuhs, "__builtin_altivec_vsubuhs"); pragma Import (LL_Altivec, vsubuwm, "__builtin_altivec_vsubuwm"); pragma Import (LL_Altivec, vsubuws, "__builtin_altivec_vsubuws"); pragma Import (LL_Altivec, vsum2sws, "__builtin_altivec_vsum2sws"); pragma Import (LL_Altivec, vsum4sbs, "__builtin_altivec_vsum4sbs"); pragma Import (LL_Altivec, vsum4shs, "__builtin_altivec_vsum4shs"); pragma Import (LL_Altivec, vsum4ubs, "__builtin_altivec_vsum4ubs"); pragma Import (LL_Altivec, vsumsws, "__builtin_altivec_vsumsws"); pragma Import (LL_Altivec, vupkhpx, "__builtin_altivec_vupkhpx"); pragma Import (LL_Altivec, vupkhsb, "__builtin_altivec_vupkhsb"); pragma Import (LL_Altivec, vupkhsh, "__builtin_altivec_vupkhsh"); pragma Import (LL_Altivec, vupklpx, "__builtin_altivec_vupklpx"); pragma Import (LL_Altivec, vupklsb, "__builtin_altivec_vupklsb"); pragma Import (LL_Altivec, vupklsh, "__builtin_altivec_vupklsh"); pragma Import (LL_Altivec, vcmpbfp_p, "__builtin_altivec_vcmpbfp_p"); pragma Import (LL_Altivec, vcmpeqfp_p, "__builtin_altivec_vcmpeqfp_p"); pragma Import (LL_Altivec, vcmpgefp_p, "__builtin_altivec_vcmpgefp_p"); pragma Import (LL_Altivec, vcmpgtfp_p, "__builtin_altivec_vcmpgtfp_p"); pragma Import (LL_Altivec, vcmpequw_p, "__builtin_altivec_vcmpequw_p"); pragma Import (LL_Altivec, vcmpgtsw_p, "__builtin_altivec_vcmpgtsw_p"); pragma Import (LL_Altivec, vcmpgtuw_p, "__builtin_altivec_vcmpgtuw_p"); pragma Import (LL_Altivec, vcmpgtuh_p, "__builtin_altivec_vcmpgtuh_p"); pragma Import (LL_Altivec, vcmpgtsh_p, "__builtin_altivec_vcmpgtsh_p"); pragma Import (LL_Altivec, vcmpequh_p, "__builtin_altivec_vcmpequh_p"); pragma Import (LL_Altivec, vcmpequb_p, "__builtin_altivec_vcmpequb_p"); pragma Import (LL_Altivec, vcmpgtsb_p, "__builtin_altivec_vcmpgtsb_p"); pragma Import (LL_Altivec, vcmpgtub_p, "__builtin_altivec_vcmpgtub_p"); end GNAT.Altivec.Low_Level_Vectors;
52.579125
78
0.665183
3145e6137c7289254f30a6c1f9a19e21731399fe
4,945
ads
Ada
src/lumen-glu.ads
darkestkhan/lumen2
8c3ac44b2010b4abe36a46c576b1078101bf75a1
[ "0BSD" ]
8
2015-07-20T18:20:10.000Z
2021-01-29T21:09:02.000Z
src/lumen-glu.ads
darkestkhan/lumen2
8c3ac44b2010b4abe36a46c576b1078101bf75a1
[ "0BSD" ]
10
2015-07-20T18:48:45.000Z
2016-05-07T19:23:31.000Z
src/lumen-glu.ads
darkestkhan/lumen2
8c3ac44b2010b4abe36a46c576b1078101bf75a1
[ "0BSD" ]
1
2018-11-18T17:01:15.000Z
2018-11-18T17:01:15.000Z
-- Lumen.GLU -- Lumen's own thin OpenGL utilities bindings -- -- Chip Richards, NiEstu, Phoenix AZ, Summer 2010 -- This code is covered by the ISC License: -- -- Copyright © 2010, NiEstu -- -- 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. -- Environment with Lumen.GL; use Lumen.GL; package Lumen.GLU is --------------------------------------------------------------------------- -- Build mipmaps function Build_1D_Mipmaps (Target : in Enum; Components : in Int; Width : in Int; Format : in Enum; Data_Type : in Enum; Data : in Pointer) return Int with Import => True, Convention => StdCall, External_Name => "gluBuild1DMipmaps"; function Build_2D_Mipmaps (Target : in Enum; Components : in Int; Width : in Int; Height : in Int; Format : in Enum; Data_Type : in Enum; Data : in Pointer) return Int with Import => True, Convention => StdCall, External_Name => "gluBuild2DMipmaps"; -- Projections procedure Ortho_2D (Left : in Double; Right : in Double; Bottom : in Double; Top : in Double) with Import => True, Convention => StdCall, External_Name => "gluOrtho2D"; procedure Perspective (FOV_Y_Angle, Aspect, Z_Near, Z_Far : in Double) with Import => True, Convention => StdCall, External_Name => "gluPerspective"; -- Quadrics type Quadric is new Pointer; function New_Quadric return Quadric with Import => True, Convention => StdCall, External_Name => "gluNewQuadric"; procedure Delete_Quadric (Quad : in Quadric) with Import => True, Convention => StdCall, External_Name => "gluDeleteQuadric"; procedure Quadric_Draw_Style (Quad : in Quadric; Draw : in Enum) with Import => True, Convention => StdCall, External_Name => "gluQuadricDrawStyle"; procedure Quadric_Normals (Quad : in Quadric; Normal : in Enum) with Import => True, Convention => StdCall, External_Name => "gluQuadricNormals"; procedure Quadric_Orientation (Quad : in Quadric; Orientation : in Enum) with Import => True, Convention => StdCall, External_Name => "gluQuadricOrientation"; procedure Quadric_Texture (Quad : in Quadric; Texture : in Bool) with Import => True, Convention => StdCall, External_Name => "gluQuadricTexture"; -- Shapes procedure Cylinder (Quad : in Quadric; Base : in Double; Top : in Double; Height : in Double; Slices : in Int; Stacks : in Int) with Import => True, Convention => StdCall, External_Name => "gluCylinder"; procedure Disk (Quad : in Quadric; Inner : in Double; Outer : in Double; Slices : in Int; Loops : in Int) with Import => True, Convention => StdCall, External_Name => "gluDisk"; procedure Partial_Disk (Quad : in Quadric; Inner : in Double; Outer : in Double; Slices : in Int; Loops : in Int; Start : in Double; Sweep : in Double) with Import => True, Convention => StdCall, External_Name => "gluPartialDisk"; procedure Sphere (Quad : in Quadric; Radius : in Double; Slices : in Int; Stacks : in Int) with Import => True, Convention => StdCall, External_Name => "gluSphere"; --------------------------------------------------------------------------- end Lumen.GLU;
38.632813
80
0.525784
0b4903abe3458a5401887e15d899aa5a4449c66e
269
ads
Ada
msp430-gcc-tics/msp430-gcc-7.3.1.24-source-full/gcc/gcc/testsuite/gnat.dg/disp2_pkg.ads
TUDSSL/TICS
575ed1b34403b435540bc946c2e6dc5b6bf13072
[ "MIT" ]
7
2020-05-02T17:34:05.000Z
2021-10-17T10:15:18.000Z
msp430-gcc-tics/msp430-gcc-7.3.1.24-source-full/gcc/gcc/testsuite/gnat.dg/disp2_pkg.ads
TUDSSL/TICS
575ed1b34403b435540bc946c2e6dc5b6bf13072
[ "MIT" ]
null
null
null
msp430-gcc-tics/msp430-gcc-7.3.1.24-source-full/gcc/gcc/testsuite/gnat.dg/disp2_pkg.ads
TUDSSL/TICS
575ed1b34403b435540bc946c2e6dc5b6bf13072
[ "MIT" ]
2
2020-07-27T00:22:36.000Z
2021-04-01T09:41:02.000Z
package Disp2_Pkg is type Object is tagged null record; type Object_Ptr is access all Object'CLASS; function Impl_Of (Self : access Object) return Object_Ptr; function Get_Ptr (Self : access Object) return Object_Ptr renames Impl_Of; end Disp2_Pkg;
22.416667
60
0.750929
fb10fd4f9f1ea9062f1b410d2c5c747b70814d10
6,083
ads
Ada
extern/gnat_sdl/gnat_sdl2/src/sdl_version_h.ads
AdaCore/training_material
6651eb2c53f8c39649b8e0b3c757bc8ff963025a
[ "CC-BY-4.0" ]
15
2020-10-07T08:56:45.000Z
2022-02-08T23:13:22.000Z
extern/gnat_sdl/gnat_sdl2/src/sdl_version_h.ads
AdaCore/training_material
6651eb2c53f8c39649b8e0b3c757bc8ff963025a
[ "CC-BY-4.0" ]
20
2020-11-05T14:35:20.000Z
2022-01-13T15:59:33.000Z
extern/gnat_sdl/gnat_sdl2/src/sdl_version_h.ads
AdaCore/training_material
6651eb2c53f8c39649b8e0b3c757bc8ff963025a
[ "CC-BY-4.0" ]
6
2020-10-08T15:57:06.000Z
2021-08-31T12:03:08.000Z
pragma Ada_2005; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; with SDL_stdinc_h; with Interfaces.C.Strings; package SDL_version_h is SDL_MAJOR_VERSION : constant := 2; -- ..\SDL2_tmp\SDL_version.h:60 SDL_MINOR_VERSION : constant := 0; -- ..\SDL2_tmp\SDL_version.h:61 SDL_PATCHLEVEL : constant := 9; -- ..\SDL2_tmp\SDL_version.h:62 -- arg-macro: procedure SDL_VERSION (x) -- { (x).major := SDL_MAJOR_VERSION; (x).minor := SDL_MINOR_VERSION; (x).patch := SDL_PATCHLEVEL; } -- arg-macro: function SDL_VERSIONNUM (X, Y, Z) -- return (X)*1000 + (Y)*100 + (Z); -- unsupported macro: SDL_COMPILEDVERSION SDL_VERSIONNUM(SDL_MAJOR_VERSION, SDL_MINOR_VERSION, SDL_PATCHLEVEL) -- arg-macro: function SDL_VERSION_ATLEAST (X, Y, Z) -- return SDL_COMPILEDVERSION >= SDL_VERSIONNUM(X, Y, Z); -- Simple DirectMedia Layer -- Copyright (C) 1997-2018 Sam Lantinga <[email protected]> -- This software is provided 'as-is', without any express or implied -- warranty. In no event will the authors be held liable for any damages -- arising from the use of this software. -- Permission is granted to anyone to use this software for any purpose, -- including commercial applications, and to alter it and redistribute it -- freely, subject to the following restrictions: -- 1. The origin of this software must not be misrepresented; you must not -- claim that you wrote the original software. If you use this software -- in a product, an acknowledgment in the product documentation would be -- appreciated but is not required. -- 2. Altered source versions must be plainly marked as such, and must not be -- misrepresented as being the original software. -- 3. This notice may not be removed or altered from any source distribution. -- --* -- * \file SDL_version.h -- * -- * This header defines the current SDL version. -- -- Set up for C function definitions, even when using C++ --* -- * \brief Information the version of SDL in use. -- * -- * Represents the library's version as three levels: major revision -- * (increments with massive changes, additions, and enhancements), -- * minor revision (increments with backwards-compatible changes to the -- * major revision), and patchlevel (increments with fixes to the minor -- * revision). -- * -- * \sa SDL_VERSION -- * \sa SDL_GetVersion -- --*< major version type SDL_version is record major : aliased SDL_stdinc_h.Uint8; -- ..\SDL2_tmp\SDL_version.h:53 minor : aliased SDL_stdinc_h.Uint8; -- ..\SDL2_tmp\SDL_version.h:54 patch : aliased SDL_stdinc_h.Uint8; -- ..\SDL2_tmp\SDL_version.h:55 end record; pragma Convention (C_Pass_By_Copy, SDL_version); -- ..\SDL2_tmp\SDL_version.h:51 --*< minor version --*< update version -- Printable format: "%d.%d.%d", MAJOR, MINOR, PATCHLEVEL -- --* -- * \brief Macro to determine SDL version program was compiled against. -- * -- * This macro fills in a SDL_version structure with the version of the -- * library you compiled against. This is determined by what header the -- * compiler uses. Note that if you dynamically linked the library, you might -- * have a slightly newer or older version at runtime. That version can be -- * determined with SDL_GetVersion(), which, unlike SDL_VERSION(), -- * is not a macro. -- * -- * \param x A pointer to a SDL_version struct to initialize. -- * -- * \sa SDL_version -- * \sa SDL_GetVersion -- --* -- * This macro turns the version numbers into a numeric value: -- * \verbatim -- (1,2,3) -> (1203) -- \endverbatim -- * -- * This assumes that there will never be more than 100 patchlevels. -- --* -- * This is the version number macro for the current SDL version. -- --* -- * This macro will evaluate to true if compiled with SDL at least X.Y.Z. -- --* -- * \brief Get the version of SDL that is linked against your program. -- * -- * If you are linking to SDL dynamically, then it is possible that the -- * current version will be different than the version you compiled against. -- * This function returns the current version, while SDL_VERSION() is a -- * macro that tells you what version you compiled with. -- * -- * \code -- * SDL_version compiled; -- * SDL_version linked; -- * -- * SDL_VERSION(&compiled); -- * SDL_GetVersion(&linked); -- * printf("We compiled against SDL version %d.%d.%d ...\n", -- * compiled.major, compiled.minor, compiled.patch); -- * printf("But we linked against SDL version %d.%d.%d.\n", -- * linked.major, linked.minor, linked.patch); -- * \endcode -- * -- * This function may be called safely at any time, even before SDL_Init(). -- * -- * \sa SDL_VERSION -- procedure SDL_GetVersion (ver : access SDL_version); -- ..\SDL2_tmp\SDL_version.h:133 pragma Import (C, SDL_GetVersion, "SDL_GetVersion"); --* -- * \brief Get the code revision of SDL that is linked against your program. -- * -- * Returns an arbitrary string (a hash value) uniquely identifying the -- * exact revision of the SDL library in use, and is only useful in comparing -- * against other revisions. It is NOT an incrementing number. -- function SDL_GetRevision return Interfaces.C.Strings.chars_ptr; -- ..\SDL2_tmp\SDL_version.h:142 pragma Import (C, SDL_GetRevision, "SDL_GetRevision"); --* -- * \brief Get the revision number of SDL that is linked against your program. -- * -- * Returns a number uniquely identifying the exact revision of the SDL -- * library in use. It is an incrementing number based on commits to -- * hg.libsdl.org. -- function SDL_GetRevisionNumber return int; -- ..\SDL2_tmp\SDL_version.h:151 pragma Import (C, SDL_GetRevisionNumber, "SDL_GetRevisionNumber"); -- Ends C function definitions when using C++ -- vi: set ts=4 sw=4 expandtab: end SDL_version_h;
38.745223
114
0.665954
a11829893e065d2c5efb7624fb5a693267a8d1f9
1,667
ads
Ada
kv-avm-symbol_tables.ads
davidkristola/vole
aa8e19d9deff2efe98fcd4dc0028c2895d624693
[ "Unlicense" ]
4
2015-02-02T12:11:41.000Z
2020-12-19T02:14:21.000Z
kv-avm-symbol_tables.ads
davidkristola/vole
aa8e19d9deff2efe98fcd4dc0028c2895d624693
[ "Unlicense" ]
null
null
null
kv-avm-symbol_tables.ads
davidkristola/vole
aa8e19d9deff2efe98fcd4dc0028c2895d624693
[ "Unlicense" ]
3
2017-02-22T10:44:02.000Z
2021-05-16T09:34:39.000Z
with kv.avm.Registers; package kv.avm.Symbol_Tables is Missing_Element_Error : exception; type Symbol_Table is tagged limited private; type Symbol_Table_Access is access all Symbol_Table; procedure Initialize (Self : in out Symbol_Table); function Count(Self : Symbol_Table) return Natural; procedure Add (Self : in out Symbol_Table; Name : in String; Kind : in kv.avm.Registers.Data_Kind := kv.avm.Registers.Unset; Init : in String := ""); procedure Set_Kind (Self : in out Symbol_Table; Name : in String; Kind : in kv.avm.Registers.Data_Kind); procedure Set_Init (Self : in out Symbol_Table; Name : in String; Init : in String); function Get_Kind(Self : Symbol_Table; Name : String) return kv.avm.Registers.Data_Kind; function Get_Index(Self : Symbol_Table; Name : String) return Natural; function Has(Self : Symbol_Table; Name : String) return Boolean; procedure Set_All_Indexes (Self : in out Symbol_Table; Starting : in Natural := 1); procedure For_Each (Self : in out Symbol_Table; Proc : not null access procedure (Name : in String; Kind : in kv.avm.Registers.Data_Kind; Indx : in Natural; Init : in String)); procedure Link_Superclass_Table (Self : in out Symbol_Table; Super : in Symbol_Table_Access); private type Table_Type; type Table_Pointer is access Table_Type; type Symbol_Table is tagged limited record Table : Table_Pointer; end record; end kv.avm.Symbol_Tables;
26.046875
91
0.644871
318739d5a56e3b127677da76f86295658cfff212
3,365
adb
Ada
src/fractal_impl.adb
Robert-Tice/EmbeddedFractal
7c451cf8dc9d9b0844111cdef8dc64fc8c1cc703
[ "MIT" ]
null
null
null
src/fractal_impl.adb
Robert-Tice/EmbeddedFractal
7c451cf8dc9d9b0844111cdef8dc64fc8c1cc703
[ "MIT" ]
null
null
null
src/fractal_impl.adb
Robert-Tice/EmbeddedFractal
7c451cf8dc9d9b0844111cdef8dc64fc8c1cc703
[ "MIT" ]
2
2021-04-16T19:49:20.000Z
2021-05-03T15:54:27.000Z
package body Fractal_Impl is procedure Init (Viewport : Viewport_Info) is begin Float_Julia_Fractal.Init (Viewport => Viewport); Fixed_Julia_Fractal.Init (Viewport => Viewport); end Init; procedure Compute_Image (Buffer : in out Buffer_Access) is begin case Current_Computation is when Fixed_Type => -- Fixed_Julia_Fractal.Increment_Frame; Fixed_Julia_Fractal.Calculate_Image (Buffer => Buffer); when Float_Type => -- Float_Julia_Fractal.Increment_Frame; Float_Julia_Fractal.Calculate_Image (Buffer => Buffer); end case; end Compute_Image; procedure Increment_Frame is begin if Cnt_Up then if Frame_Counter = UInt5'Last then Cnt_Up := not Cnt_Up; return; else Frame_Counter := Frame_Counter + 1; return; end if; end if; if Frame_Counter = UInt5'First then Cnt_Up := not Cnt_Up; return; end if; Frame_Counter := Frame_Counter - 1; end Increment_Frame; procedure RGB565_Color_Pixel (Z_Escape : Boolean; Iter_Escape : Natural; Px : out RGB565_Pixel) is Value : constant Integer := 765 * (Iter_Escape - 1) / Max_Iterations; begin if Z_Escape then if Value > 510 then Px := RGB565_Pixel'(Red => UInt5'Last - Frame_Counter, Green => UInt6'Last, Blue => UInt5 (Value rem Integer (UInt5'Last))); elsif Value > 255 then Px := RGB565_Pixel'(Red => UInt5'Last - Frame_Counter, Green => UInt6 (Value rem Integer (UInt6'Last)), Blue => UInt5'First + Frame_Counter); else Px := RGB565_Pixel'(Red => UInt5 (Value rem Integer (UInt5'Last)), Green => UInt6'First + UInt6 (Frame_Counter), Blue => UInt5'First); end if; else Px := RGB565_Pixel'(Red => UInt5'First + Frame_Counter, Green => UInt6'First + UInt6 (Frame_Counter), Blue => UInt5'First + Frame_Counter); end if; end RGB565_Color_Pixel; procedure Set_Computation_Type (Comp_Type : Computation_Enum) is begin Current_Computation := Comp_Type; end Set_Computation_Type; procedure Compute_Row (Row : Natural; Buffer : in out Buffer_Access) is begin case Current_Computation is when Fixed_Type => -- Fixed_Julia_Fractal.Increment_Frame; Fixed_Julia_Fractal.Calculate_Row (Y => Row, Idx => Buffer'First, Buffer => Buffer); when Float_Type => -- Float_Julia_Fractal.Increment_Frame; Float_Julia_Fractal.Calculate_Row (Y => Row, Idx => Buffer'First, Buffer => Buffer); end case; end Compute_Row; end Fractal_Impl;
33.316832
81
0.513819
108b433c6b8c790c6fdf693bdf0d67b6ff2b3455
3,808
ads
Ada
source/web/tools/wsdl2ada/wsdl-parsers-mep.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
24
2016-11-29T06:59:41.000Z
2021-08-30T11:55:16.000Z
source/web/tools/wsdl2ada/wsdl-parsers-mep.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
2
2019-01-16T05:15:20.000Z
2019-02-03T10:03:32.000Z
source/web/tools/wsdl2ada/wsdl-parsers-mep.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
4
2017-07-18T07:11:05.000Z
2020-06-21T03:02:25.000Z
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Web Framework -- -- -- -- Tools Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2013, Vadim Godunko <[email protected]> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ -- This package provides utilities to handle MEP during parsing. ------------------------------------------------------------------------------ with WSDL.MEPs; private package WSDL.Parsers.MEP is function Resolve (Parser : WSDL_Parser; IRI : League.Strings.Universal_String) return not null WSDL.MEPs.MEP_Access; -- Resolves IRI to MEP. Reports MEP-1022 assertion and raises WSDL_Error -- when IRI is not known. end WSDL.Parsers.MEP;
65.655172
78
0.409401
a1e99a3a0f63c9bb369e33bdc686ea5341256981
2,602
adb
Ada
tests/secretbox2.adb
rod-chapman/SPARKNaCl
afe46fde2fe5ea78aa53d380e2b7f64ae725ec0e
[ "BSD-3-Clause" ]
76
2020-02-24T20:30:15.000Z
2022-02-16T15:10:56.000Z
tests/secretbox2.adb
rod-chapman/SPARKNaCl
afe46fde2fe5ea78aa53d380e2b7f64ae725ec0e
[ "BSD-3-Clause" ]
10
2020-04-15T10:02:49.000Z
2022-02-24T20:10:46.000Z
tests/secretbox2.adb
rod-chapman/SPARKNaCl
afe46fde2fe5ea78aa53d380e2b7f64ae725ec0e
[ "BSD-3-Clause" ]
4
2020-03-10T15:19:45.000Z
2022-02-17T09:46:20.000Z
with SPARKNaCl; use SPARKNaCl; with SPARKNaCl.Core; use SPARKNaCl.Core; with SPARKNaCl.Debug; use SPARKNaCl.Debug; with SPARKNaCl.Secretbox; use SPARKNaCl.Secretbox; with SPARKNaCl.Stream; with Ada.Text_IO; use Ada.Text_IO; procedure Secretbox2 is Firstkey : constant Core.Salsa20_Key := Construct ((16#1b#, 16#27#, 16#55#, 16#64#, 16#73#, 16#e9#, 16#85#, 16#d4#, 16#62#, 16#cd#, 16#51#, 16#19#, 16#7a#, 16#9a#, 16#46#, 16#c7#, 16#60#, 16#09#, 16#54#, 16#9e#, 16#ac#, 16#64#, 16#74#, 16#f2#, 16#06#, 16#c4#, 16#ee#, 16#08#, 16#44#, 16#f6#, 16#83#, 16#89#)); Nonce : constant Stream.HSalsa20_Nonce := (16#69#, 16#69#, 16#6e#, 16#e9#, 16#55#, 16#b6#, 16#2b#, 16#73#, 16#cd#, 16#62#, 16#bd#, 16#a8#, 16#75#, 16#fc#, 16#73#, 16#d6#, 16#82#, 16#19#, 16#e0#, 16#03#, 16#6b#, 16#7a#, 16#0b#, 16#37#); C : constant Byte_Seq (0 .. 162) := (16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#F3#, 16#FF#, 16#C7#, 16#70#, 16#3F#, 16#94#, 16#00#, 16#E5#, 16#2A#, 16#7D#, 16#FB#, 16#4B#, 16#3D#, 16#33#, 16#05#, 16#D9#, 16#8E#, 16#99#, 16#3B#, 16#9F#, 16#48#, 16#68#, 16#12#, 16#73#, 16#C2#, 16#96#, 16#50#, 16#BA#, 16#32#, 16#FC#, 16#76#, 16#CE#, 16#48#, 16#33#, 16#2E#, 16#A7#, 16#16#, 16#4D#, 16#96#, 16#A4#, 16#47#, 16#6F#, 16#B8#, 16#C5#, 16#31#, 16#A1#, 16#18#, 16#6A#, 16#C0#, 16#DF#, 16#C1#, 16#7C#, 16#98#, 16#DC#, 16#E8#, 16#7B#, 16#4D#, 16#A7#, 16#F0#, 16#11#, 16#EC#, 16#48#, 16#C9#, 16#72#, 16#71#, 16#D2#, 16#C2#, 16#0F#, 16#9B#, 16#92#, 16#8F#, 16#E2#, 16#27#, 16#0D#, 16#6F#, 16#B8#, 16#63#, 16#D5#, 16#17#, 16#38#, 16#B4#, 16#8E#, 16#EE#, 16#E3#, 16#14#, 16#A7#, 16#CC#, 16#8A#, 16#B9#, 16#32#, 16#16#, 16#45#, 16#48#, 16#E5#, 16#26#, 16#AE#, 16#90#, 16#22#, 16#43#, 16#68#, 16#51#, 16#7A#, 16#CF#, 16#EA#, 16#BD#, 16#6B#, 16#B3#, 16#73#, 16#2B#, 16#C0#, 16#E9#, 16#DA#, 16#99#, 16#83#, 16#2B#, 16#61#, 16#CA#, 16#01#, 16#B6#, 16#DE#, 16#56#, 16#24#, 16#4A#, 16#9E#, 16#88#, 16#D5#, 16#F9#, 16#B3#, 16#79#, 16#73#, 16#F6#, 16#22#, 16#A4#, 16#3D#, 16#14#, 16#A6#, 16#59#, 16#9B#, 16#1F#, 16#65#, 16#4C#, 16#B4#, 16#5A#, 16#74#, 16#E3#, 16#55#, 16#A5#); M : Byte_Seq (0 .. 162); S : Boolean; begin Open (M, S, C, Nonce, Firstkey); Put_Line ("Status is " & Img (S)); DH ("M is", M); end Secretbox2;
46.464286
70
0.483474
06d373e635a6a17cc07e8a8388e15bbb5a50a07c
4,270
adb
Ada
source/sql/postgresql/matreshka-internals-sql_drivers-postgresql-factory.adb
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
24
2016-11-29T06:59:41.000Z
2021-08-30T11:55:16.000Z
source/sql/postgresql/matreshka-internals-sql_drivers-postgresql-factory.adb
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
2
2019-01-16T05:15:20.000Z
2019-02-03T10:03:32.000Z
source/sql/postgresql/matreshka-internals-sql_drivers-postgresql-factory.adb
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
4
2017-07-18T07:11:05.000Z
2020-06-21T03:02:25.000Z
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- SQL Database Access -- -- -- -- 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$ ------------------------------------------------------------------------------ with Matreshka.Internals.SQL_Drivers.PostgreSQL.Databases; package body Matreshka.Internals.SQL_Drivers.PostgreSQL.Factory is type PostgreSQL_Factory is new Abstract_Factory with null record; overriding function Create (Self : not null access PostgreSQL_Factory) return not null Database_Access; ------------ -- Create -- ------------ overriding function Create (Self : not null access PostgreSQL_Factory) return not null Database_Access is begin return new Databases.PostgreSQL_Database; end Create; use type Interfaces.C.int; Factory : aliased PostgreSQL_Factory; begin -- Check for thread safety. if PQisthreadsafe /= 1 then raise Program_Error with "PostgreSQL doesn't support thread safety"; end if; Register (League.Strings.To_Universal_String ("POSTGRESQL"), Factory'Access); end Matreshka.Internals.SQL_Drivers.PostgreSQL.Factory;
54.050633
78
0.460422
31f6648287282006393b46a375c191d79b8547ac
1,459
adb
Ada
source/tasking/machine-pc-freebsd/s-natint.adb
ytomino/drake
4e4bdcd8b8e23a11a29b31d3a8861fdf60090ea2
[ "MIT" ]
33
2015-04-04T09:19:36.000Z
2021-11-10T05:33:34.000Z
source/tasking/machine-pc-linux-gnu/s-natint.adb
ytomino/drake
4e4bdcd8b8e23a11a29b31d3a8861fdf60090ea2
[ "MIT" ]
8
2017-11-14T13:05:07.000Z
2018-08-09T15:28:49.000Z
source/tasking/machine-pc-linux-gnu/s-natint.adb
ytomino/drake
4e4bdcd8b8e23a11a29b31d3a8861fdf60090ea2
[ "MIT" ]
9
2015-02-03T17:09:53.000Z
2021-11-12T01:16:05.000Z
with C.signal; package body System.Native_Interrupts is use type C.signed_int; procedure Mask (How : C.signed_int; Interrupt : Interrupt_Id); procedure Mask (How : C.signed_int; Interrupt : Interrupt_Id) is Mask : aliased C.signal.sigset_t; Dummy : C.signed_int; R : C.signed_int; begin Dummy := C.signal.sigemptyset (Mask'Access); Dummy := C.signal.sigaddset (Mask'Access, Interrupt); R := C.signal.sigprocmask (How, Mask'Access, null); if R < 0 then raise Program_Error; end if; end Mask; -- implementation function Is_Blocked (Interrupt : Interrupt_Id) return Boolean is Current_Mask : aliased C.signal.sigset_t; R : C.signed_int; begin R := C.signal.sigprocmask ( C.signal.SIG_SETMASK, null, Current_Mask'Access); if R < 0 then raise Program_Error; end if; return C.signal.sigismember (Current_Mask'Access, Interrupt) /= 0; end Is_Blocked; procedure Block (Interrupt : Interrupt_Id) is begin Mask (C.signal.SIG_BLOCK, Interrupt); end Block; procedure Unblock (Interrupt : Interrupt_Id) is begin Mask (C.signal.SIG_UNBLOCK, Interrupt); end Unblock; procedure Raise_Interrupt (Interrupt : Interrupt_Id) is begin if C.signal.C_raise (Interrupt) < 0 then raise Program_Error; end if; end Raise_Interrupt; end System.Native_Interrupts;
27.528302
72
0.655243
31816623dffb2ccfe9a9476aa618fa25c6b99382
789
adb
Ada
gnu/src/gdb/gdb/testsuite/gdb.ada/int_deref/foo.adb
ghsecuritylab/ellcc-mirror
b03a4afac74d50cf0987554b8c0cd8209bcb92a2
[ "BSD-2-Clause" ]
null
null
null
gnu/src/gdb/gdb/testsuite/gdb.ada/int_deref/foo.adb
ghsecuritylab/ellcc-mirror
b03a4afac74d50cf0987554b8c0cd8209bcb92a2
[ "BSD-2-Clause" ]
null
null
null
gnu/src/gdb/gdb/testsuite/gdb.ada/int_deref/foo.adb
ghsecuritylab/ellcc-mirror
b03a4afac74d50cf0987554b8c0cd8209bcb92a2
[ "BSD-2-Clause" ]
null
null
null
-- Copyright 2008-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/>. with Pck; procedure Foo is begin Pck.Watch := Pck.Watch + 1; end Foo;
35.863636
73
0.731305
068a9f804e0f2472d35aeca393a92e0a176a9dfc
2,507
ads
Ada
src/bases-cargo.ads
thindil/steamsky
d5d7fea622f7994c91017c4cd7ba5e188153556c
[ "TCL", "MIT" ]
80
2017-04-08T23:14:07.000Z
2022-02-10T22:30:51.000Z
src/bases-cargo.ads
thindil/steamsky
d5d7fea622f7994c91017c4cd7ba5e188153556c
[ "TCL", "MIT" ]
89
2017-06-24T08:18:26.000Z
2021-11-12T04:37:36.000Z
src/bases-cargo.ads
thindil/steamsky
d5d7fea622f7994c91017c4cd7ba5e188153556c
[ "TCL", "MIT" ]
9
2018-04-14T16:37:25.000Z
2020-03-21T14:33:49.000Z
-- Copyright 2017-2021 Bartek thindil Jasicki -- -- This file is part of Steam Sky. -- -- Steam Sky 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. -- -- Steam Sky 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 Steam Sky. If not, see <http://www.gnu.org/licenses/>. -- ****h* Bases/BCargo -- FUNCTION -- Provide code for manipulate cargo of sky bases -- SOURCE package Bases.Cargo is -- **** -- ****f* BCargo/BCargo.Generate_Cargo -- FUNCTION -- Generate base cargo -- SOURCE procedure Generate_Cargo with Test_Case => (Name => "Test_GenerateCargo", Mode => Robustness); -- **** -- ****f* BCargo/BCargo.Update_Base_Cargo -- FUNCTION -- Update cargo in base -- PARAMETERS -- Proto_Index - Index of item prototype. Can be empty if Cargo_Index is set -- Amount - Amount of item to add or remove -- Durability - Durability of item to add or remove. Can be empty -- Cargo_Index - Index of item in sky base cargo. Can be empty if Proto_Index -- is set -- SOURCE procedure Update_Base_Cargo (Proto_Index: Unbounded_String := Null_Unbounded_String; Amount: Integer; Durability: Items_Durability := Default_Item_Durability; Cargo_Index: Inventory_Container.Extended_Index := 0) with Test_Case => (Name => "Test_UpdateBaseCargo", Mode => Robustness); -- **** -- ****f* BCargo/BCargo.Find_Base_Cargo -- FUNCTION -- Find index of item in base cargo -- PARAMETERS -- Proto_Index - Index of prototype of item to search -- Durability - Durability of item to search. Can be empty -- RESULT -- Index of item in sky base cargo or 0 if item not found -- SOURCE function Find_Base_Cargo (Proto_Index: Unbounded_String; Durability: Items_Durability := Items_Durability'Last) return Natural with Pre => Length(Source => Proto_Index) > 0, Test_Case => (Name => "Test_FindBaseCargo", Mode => Nominal); -- **** end Bases.Cargo;
36.867647
80
0.663742
0bd81c6bb6402077d7d6a9c4fe0f91d4fabe27ec
921
adb
Ada
generated/natools-static_maps-web-simple_pages-components.adb
faelys/natools-web
f7ba99f2ffb6f5a06d1b1e8becbf5f92fd58c750
[ "0BSD" ]
1
2015-04-23T10:48:58.000Z
2015-04-23T10:48:58.000Z
generated/natools-static_maps-web-simple_pages-components.adb
faelys/natools-web
f7ba99f2ffb6f5a06d1b1e8becbf5f92fd58c750
[ "0BSD" ]
null
null
null
generated/natools-static_maps-web-simple_pages-components.adb
faelys/natools-web
f7ba99f2ffb6f5a06d1b1e8becbf5f92fd58c750
[ "0BSD" ]
null
null
null
with Interfaces; use Interfaces; package body Natools.Static_Maps.Web.Simple_Pages.Components is P : constant array (0 .. 1) of Natural := (1, 8); T1 : constant array (0 .. 1) of Unsigned_8 := (2, 4); T2 : constant array (0 .. 1) of Unsigned_8 := (9, 9); G : constant array (0 .. 14) of Unsigned_8 := (0, 0, 4, 3, 0, 0, 0, 0, 4, 1, 0, 0, 6, 2, 0); function Hash (S : String) return Natural is F : constant Natural := S'First - 1; L : constant Natural := S'Length; F1, F2 : Natural := 0; J : Natural; begin for K in P'Range loop exit when L < P (K); J := Character'Pos (S (P (K) + F)); F1 := (F1 + Natural (T1 (K)) * J) mod 15; F2 := (F2 + Natural (T2 (K)) * J) mod 15; end loop; return (Natural (G (F1)) + Natural (G (F2))) mod 7; end Hash; end Natools.Static_Maps.Web.Simple_Pages.Components;
27.909091
63
0.537459
0bb8cb73f7549237a04d52dcf7809f1ca04ae82e
54,458
adb
Ada
llvm-gcc-4.2-2.9/gcc/ada/a-cihase.adb
vidkidz/crossbridge
ba0bf94aee0ce6cf7eb5be882382e52bc57ba396
[ "MIT" ]
1
2016-04-09T02:58:13.000Z
2016-04-09T02:58:13.000Z
llvm-gcc-4.2-2.9/gcc/ada/a-cihase.adb
vidkidz/crossbridge
ba0bf94aee0ce6cf7eb5be882382e52bc57ba396
[ "MIT" ]
null
null
null
llvm-gcc-4.2-2.9/gcc/ada/a-cihase.adb
vidkidz/crossbridge
ba0bf94aee0ce6cf7eb5be882382e52bc57ba396
[ "MIT" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- A D A . C O N T A I N E R S . -- -- I N D E F I N I T E _ H A S H E D _ S E T S -- -- -- -- B o d y -- -- -- -- Copyright (C) 2004-2006, 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 2, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -- -- for more details. You should have received a copy of the GNU General -- -- Public License distributed with GNAT; see file COPYING. If not, write -- -- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, -- -- Boston, MA 02110-1301, USA. -- -- -- -- As a special exception, if other files instantiate generics from this -- -- unit, or you link this unit with other files to produce an executable, -- -- this unit does not by itself cause the resulting executable to be -- -- covered by the GNU General Public License. This exception does not -- -- however invalidate any other reasons why the executable file might be -- -- covered by the GNU Public License. -- -- -- -- This unit has originally being developed by Matthew J Heaney. -- ------------------------------------------------------------------------------ with Ada.Unchecked_Deallocation; with Ada.Containers.Hash_Tables.Generic_Operations; pragma Elaborate_All (Ada.Containers.Hash_Tables.Generic_Operations); with Ada.Containers.Hash_Tables.Generic_Keys; pragma Elaborate_All (Ada.Containers.Hash_Tables.Generic_Keys); with Ada.Containers.Prime_Numbers; with System; use type System.Address; package body Ada.Containers.Indefinite_Hashed_Sets is ----------------------- -- Local Subprograms -- ----------------------- function Copy_Node (Source : Node_Access) return Node_Access; pragma Inline (Copy_Node); function Equivalent_Keys (Key : Element_Type; Node : Node_Access) return Boolean; pragma Inline (Equivalent_Keys); function Find_Equal_Key (R_HT : Hash_Table_Type; L_Node : Node_Access) return Boolean; function Find_Equivalent_Key (R_HT : Hash_Table_Type; L_Node : Node_Access) return Boolean; procedure Free (X : in out Node_Access); function Hash_Node (Node : Node_Access) return Hash_Type; pragma Inline (Hash_Node); procedure Insert (HT : in out Hash_Table_Type; New_Item : Element_Type; Node : out Node_Access; Inserted : out Boolean); function Is_In (HT : Hash_Table_Type; Key : Node_Access) return Boolean; pragma Inline (Is_In); function Next (Node : Node_Access) return Node_Access; pragma Inline (Next); function Read_Node (Stream : access Root_Stream_Type'Class) return Node_Access; pragma Inline (Read_Node); procedure Replace_Element (HT : in out Hash_Table_Type; Node : Node_Access; New_Item : Element_Type); procedure Set_Next (Node : Node_Access; Next : Node_Access); pragma Inline (Set_Next); function Vet (Position : Cursor) return Boolean; procedure Write_Node (Stream : access Root_Stream_Type'Class; Node : Node_Access); pragma Inline (Write_Node); -------------------------- -- Local Instantiations -- -------------------------- procedure Free_Element is new Ada.Unchecked_Deallocation (Element_Type, Element_Access); package HT_Ops is new Hash_Tables.Generic_Operations (HT_Types => HT_Types, Hash_Node => Hash_Node, Next => Next, Set_Next => Set_Next, Copy_Node => Copy_Node, Free => Free); package Element_Keys is new Hash_Tables.Generic_Keys (HT_Types => HT_Types, Next => Next, Set_Next => Set_Next, Key_Type => Element_Type, Hash => Hash, Equivalent_Keys => Equivalent_Keys); function Is_Equal is new HT_Ops.Generic_Equal (Find_Equal_Key); function Is_Equivalent is new HT_Ops.Generic_Equal (Find_Equivalent_Key); procedure Read_Nodes is new HT_Ops.Generic_Read (Read_Node); procedure Write_Nodes is new HT_Ops.Generic_Write (Write_Node); --------- -- "=" -- --------- function "=" (Left, Right : Set) return Boolean is begin return Is_Equal (Left.HT, Right.HT); end "="; ------------ -- Adjust -- ------------ procedure Adjust (Container : in out Set) is begin HT_Ops.Adjust (Container.HT); end Adjust; -------------- -- Capacity -- -------------- function Capacity (Container : Set) return Count_Type is begin return HT_Ops.Capacity (Container.HT); end Capacity; ----------- -- Clear -- ----------- procedure Clear (Container : in out Set) is begin HT_Ops.Clear (Container.HT); end Clear; -------------- -- Contains -- -------------- function Contains (Container : Set; Item : Element_Type) return Boolean is begin return Find (Container, Item) /= No_Element; end Contains; --------------- -- Copy_Node -- --------------- function Copy_Node (Source : Node_Access) return Node_Access is E : Element_Access := new Element_Type'(Source.Element.all); begin return new Node_Type'(Element => E, Next => null); exception when others => Free_Element (E); raise; end Copy_Node; ------------ -- Delete -- ------------ procedure Delete (Container : in out Set; Item : Element_Type) is X : Node_Access; begin Element_Keys.Delete_Key_Sans_Free (Container.HT, Item, X); if X = null then raise Constraint_Error with "attempt to delete element not in set"; end if; Free (X); end Delete; procedure Delete (Container : in out Set; Position : in out Cursor) is begin if Position.Node = null then raise Constraint_Error with "Position cursor equals No_Element"; end if; if Position.Node.Element = null then raise Program_Error with "Position cursor is bad"; end if; if Position.Container /= Container'Unrestricted_Access then raise Program_Error with "Position cursor designates wrong set"; end if; if Container.HT.Busy > 0 then raise Program_Error with "attempt to tamper with elements (set is busy)"; end if; pragma Assert (Vet (Position), "Position cursor is bad"); HT_Ops.Delete_Node_Sans_Free (Container.HT, Position.Node); Free (Position.Node); Position.Container := null; end Delete; ---------------- -- Difference -- ---------------- procedure Difference (Target : in out Set; Source : Set) is Tgt_Node : Node_Access; begin if Target'Address = Source'Address then Clear (Target); return; end if; if Source.Length = 0 then return; end if; if Target.HT.Busy > 0 then raise Program_Error with "attempt to tamper with elements (set is busy)"; end if; -- TODO: This can be written in terms of a loop instead as -- active-iterator style, sort of like a passive iterator. Tgt_Node := HT_Ops.First (Target.HT); while Tgt_Node /= null loop if Is_In (Source.HT, Tgt_Node) then declare X : Node_Access := Tgt_Node; begin Tgt_Node := HT_Ops.Next (Target.HT, Tgt_Node); HT_Ops.Delete_Node_Sans_Free (Target.HT, X); Free (X); end; else Tgt_Node := HT_Ops.Next (Target.HT, Tgt_Node); end if; end loop; end Difference; function Difference (Left, Right : Set) return Set is Buckets : HT_Types.Buckets_Access; Length : Count_Type; begin if Left'Address = Right'Address then return Empty_Set; end if; if Left.Length = 0 then return Empty_Set; end if; if Right.Length = 0 then return Left; end if; declare Size : constant Hash_Type := Prime_Numbers.To_Prime (Left.Length); begin Buckets := new Buckets_Type (0 .. Size - 1); end; Length := 0; Iterate_Left : declare procedure Process (L_Node : Node_Access); procedure Iterate is new HT_Ops.Generic_Iteration (Process); ------------- -- Process -- ------------- procedure Process (L_Node : Node_Access) is begin if not Is_In (Right.HT, L_Node) then declare Src : Element_Type renames L_Node.Element.all; Indx : constant Hash_Type := Hash (Src) mod Buckets'Length; Bucket : Node_Access renames Buckets (Indx); Tgt : Element_Access := new Element_Type'(Src); begin Bucket := new Node_Type'(Tgt, Bucket); exception when others => Free_Element (Tgt); raise; end; Length := Length + 1; end if; end Process; -- Start of processing for Iterate_Left begin Iterate (Left.HT); exception when others => HT_Ops.Free_Hash_Table (Buckets); raise; end Iterate_Left; return (Controlled with HT => (Buckets, Length, 0, 0)); end Difference; ------------- -- Element -- ------------- function Element (Position : Cursor) return Element_Type is begin if Position.Node = null then raise Constraint_Error with "Position cursor of equals No_Element"; end if; if Position.Node.Element = null then -- handle dangling reference raise Program_Error with "Position cursor is bad"; end if; pragma Assert (Vet (Position), "bad cursor in function Element"); return Position.Node.Element.all; end Element; --------------------- -- Equivalent_Sets -- --------------------- function Equivalent_Sets (Left, Right : Set) return Boolean is begin return Is_Equivalent (Left.HT, Right.HT); end Equivalent_Sets; ------------------------- -- Equivalent_Elements -- ------------------------- function Equivalent_Elements (Left, Right : Cursor) return Boolean is begin if Left.Node = null then raise Constraint_Error with "Left cursor of Equivalent_Elements equals No_Element"; end if; if Right.Node = null then raise Constraint_Error with "Right cursor of Equivalent_Elements equals No_Element"; end if; if Left.Node.Element = null then raise Program_Error with "Left cursor of Equivalent_Elements is bad"; end if; if Right.Node.Element = null then raise Program_Error with "Right cursor of Equivalent_Elements is bad"; end if; pragma Assert (Vet (Left), "bad Left cursor in Equivalent_Elements"); pragma Assert (Vet (Right), "bad Right cursor in Equivalent_Elements"); return Equivalent_Elements (Left.Node.Element.all, Right.Node.Element.all); end Equivalent_Elements; function Equivalent_Elements (Left : Cursor; Right : Element_Type) return Boolean is begin if Left.Node = null then raise Constraint_Error with "Left cursor of Equivalent_Elements equals No_Element"; end if; if Left.Node.Element = null then raise Program_Error with "Left cursor of Equivalent_Elements is bad"; end if; pragma Assert (Vet (Left), "bad Left cursor in Equivalent_Elements"); return Equivalent_Elements (Left.Node.Element.all, Right); end Equivalent_Elements; function Equivalent_Elements (Left : Element_Type; Right : Cursor) return Boolean is begin if Right.Node = null then raise Constraint_Error with "Right cursor of Equivalent_Elements equals No_Element"; end if; if Right.Node.Element = null then raise Program_Error with "Right cursor of Equivalent_Elements is bad"; end if; pragma Assert (Vet (Right), "bad Right cursor in Equivalent_Elements"); return Equivalent_Elements (Left, Right.Node.Element.all); end Equivalent_Elements; --------------------- -- Equivalent_Keys -- --------------------- function Equivalent_Keys (Key : Element_Type; Node : Node_Access) return Boolean is begin return Equivalent_Elements (Key, Node.Element.all); end Equivalent_Keys; ------------- -- Exclude -- ------------- procedure Exclude (Container : in out Set; Item : Element_Type) is X : Node_Access; begin Element_Keys.Delete_Key_Sans_Free (Container.HT, Item, X); Free (X); end Exclude; -------------- -- Finalize -- -------------- procedure Finalize (Container : in out Set) is begin HT_Ops.Finalize (Container.HT); end Finalize; ---------- -- Find -- ---------- function Find (Container : Set; Item : Element_Type) return Cursor is Node : constant Node_Access := Element_Keys.Find (Container.HT, Item); begin if Node = null then return No_Element; end if; return Cursor'(Container'Unrestricted_Access, Node); end Find; -------------------- -- Find_Equal_Key -- -------------------- function Find_Equal_Key (R_HT : Hash_Table_Type; L_Node : Node_Access) return Boolean is R_Index : constant Hash_Type := Element_Keys.Index (R_HT, L_Node.Element.all); R_Node : Node_Access := R_HT.Buckets (R_Index); begin loop if R_Node = null then return False; end if; if L_Node.Element.all = R_Node.Element.all then return True; end if; R_Node := Next (R_Node); end loop; end Find_Equal_Key; ------------------------- -- Find_Equivalent_Key -- ------------------------- function Find_Equivalent_Key (R_HT : Hash_Table_Type; L_Node : Node_Access) return Boolean is R_Index : constant Hash_Type := Element_Keys.Index (R_HT, L_Node.Element.all); R_Node : Node_Access := R_HT.Buckets (R_Index); begin loop if R_Node = null then return False; end if; if Equivalent_Elements (L_Node.Element.all, R_Node.Element.all) then return True; end if; R_Node := Next (R_Node); end loop; end Find_Equivalent_Key; ----------- -- First -- ----------- function First (Container : Set) return Cursor is Node : constant Node_Access := HT_Ops.First (Container.HT); begin if Node = null then return No_Element; end if; return Cursor'(Container'Unrestricted_Access, Node); end First; ---------- -- Free -- ---------- procedure Free (X : in out Node_Access) is procedure Deallocate is new Ada.Unchecked_Deallocation (Node_Type, Node_Access); begin if X = null then return; end if; X.Next := X; -- detect mischief (in Vet) begin Free_Element (X.Element); exception when others => X.Element := null; Deallocate (X); raise; end; Deallocate (X); end Free; ----------------- -- Has_Element -- ----------------- function Has_Element (Position : Cursor) return Boolean is begin pragma Assert (Vet (Position), "bad cursor in Has_Element"); return Position.Node /= null; end Has_Element; --------------- -- Hash_Node -- --------------- function Hash_Node (Node : Node_Access) return Hash_Type is begin return Hash (Node.Element.all); end Hash_Node; ------------- -- Include -- ------------- procedure Include (Container : in out Set; New_Item : Element_Type) is Position : Cursor; Inserted : Boolean; X : Element_Access; begin Insert (Container, New_Item, Position, Inserted); if not Inserted then if Container.HT.Lock > 0 then raise Program_Error with "attempt to tamper with cursors (set is locked)"; end if; X := Position.Node.Element; Position.Node.Element := new Element_Type'(New_Item); Free_Element (X); end if; end Include; ------------ -- Insert -- ------------ procedure Insert (Container : in out Set; New_Item : Element_Type; Position : out Cursor; Inserted : out Boolean) is begin Insert (Container.HT, New_Item, Position.Node, Inserted); Position.Container := Container'Unchecked_Access; end Insert; procedure Insert (Container : in out Set; New_Item : Element_Type) is Position : Cursor; Inserted : Boolean; begin Insert (Container, New_Item, Position, Inserted); if not Inserted then raise Constraint_Error with "attempt to insert element already in set"; end if; end Insert; procedure Insert (HT : in out Hash_Table_Type; New_Item : Element_Type; Node : out Node_Access; Inserted : out Boolean) is function New_Node (Next : Node_Access) return Node_Access; pragma Inline (New_Node); procedure Local_Insert is new Element_Keys.Generic_Conditional_Insert (New_Node); -------------- -- New_Node -- -------------- function New_Node (Next : Node_Access) return Node_Access is Element : Element_Access := new Element_Type'(New_Item); begin return new Node_Type'(Element, Next); exception when others => Free_Element (Element); raise; end New_Node; -- Start of processing for Insert begin if HT_Ops.Capacity (HT) = 0 then HT_Ops.Reserve_Capacity (HT, 1); end if; Local_Insert (HT, New_Item, Node, Inserted); if Inserted and then HT.Length > HT_Ops.Capacity (HT) then HT_Ops.Reserve_Capacity (HT, HT.Length); end if; end Insert; ------------------ -- Intersection -- ------------------ procedure Intersection (Target : in out Set; Source : Set) is Tgt_Node : Node_Access; begin if Target'Address = Source'Address then return; end if; if Source.Length = 0 then Clear (Target); return; end if; if Target.HT.Busy > 0 then raise Program_Error with "attempt to tamper with elements (set is busy)"; end if; -- TODO: optimize this to use an explicit -- loop instead of an active iterator -- (similar to how a passive iterator is -- implemented). -- -- Another possibility is to test which -- set is smaller, and iterate over the -- smaller set. Tgt_Node := HT_Ops.First (Target.HT); while Tgt_Node /= null loop if Is_In (Source.HT, Tgt_Node) then Tgt_Node := HT_Ops.Next (Target.HT, Tgt_Node); else declare X : Node_Access := Tgt_Node; begin Tgt_Node := HT_Ops.Next (Target.HT, Tgt_Node); HT_Ops.Delete_Node_Sans_Free (Target.HT, X); Free (X); end; end if; end loop; end Intersection; function Intersection (Left, Right : Set) return Set is Buckets : HT_Types.Buckets_Access; Length : Count_Type; begin if Left'Address = Right'Address then return Left; end if; Length := Count_Type'Min (Left.Length, Right.Length); if Length = 0 then return Empty_Set; end if; declare Size : constant Hash_Type := Prime_Numbers.To_Prime (Length); begin Buckets := new Buckets_Type (0 .. Size - 1); end; Length := 0; Iterate_Left : declare procedure Process (L_Node : Node_Access); procedure Iterate is new HT_Ops.Generic_Iteration (Process); ------------- -- Process -- ------------- procedure Process (L_Node : Node_Access) is begin if Is_In (Right.HT, L_Node) then declare Src : Element_Type renames L_Node.Element.all; Indx : constant Hash_Type := Hash (Src) mod Buckets'Length; Bucket : Node_Access renames Buckets (Indx); Tgt : Element_Access := new Element_Type'(Src); begin Bucket := new Node_Type'(Tgt, Bucket); exception when others => Free_Element (Tgt); raise; end; Length := Length + 1; end if; end Process; -- Start of processing for Iterate_Left begin Iterate (Left.HT); exception when others => HT_Ops.Free_Hash_Table (Buckets); raise; end Iterate_Left; return (Controlled with HT => (Buckets, Length, 0, 0)); end Intersection; -------------- -- Is_Empty -- -------------- function Is_Empty (Container : Set) return Boolean is begin return Container.HT.Length = 0; end Is_Empty; ----------- -- Is_In -- ----------- function Is_In (HT : Hash_Table_Type; Key : Node_Access) return Boolean is begin return Element_Keys.Find (HT, Key.Element.all) /= null; end Is_In; --------------- -- Is_Subset -- --------------- function Is_Subset (Subset : Set; Of_Set : Set) return Boolean is Subset_Node : Node_Access; begin if Subset'Address = Of_Set'Address then return True; end if; if Subset.Length > Of_Set.Length then return False; end if; -- TODO: rewrite this to loop in the -- style of a passive iterator. Subset_Node := HT_Ops.First (Subset.HT); while Subset_Node /= null loop if not Is_In (Of_Set.HT, Subset_Node) then return False; end if; Subset_Node := HT_Ops.Next (Subset.HT, Subset_Node); end loop; return True; end Is_Subset; ------------- -- Iterate -- ------------- procedure Iterate (Container : Set; Process : not null access procedure (Position : Cursor)) is procedure Process_Node (Node : Node_Access); pragma Inline (Process_Node); procedure Iterate is new HT_Ops.Generic_Iteration (Process_Node); ------------------ -- Process_Node -- ------------------ procedure Process_Node (Node : Node_Access) is begin Process (Cursor'(Container'Unrestricted_Access, Node)); end Process_Node; HT : Hash_Table_Type renames Container'Unrestricted_Access.all.HT; -- Start of processing for Iterate begin -- TODO: resolve whether HT_Ops.Generic_Iteration should -- manipulate busy bit. Iterate (HT); end Iterate; ------------ -- Length -- ------------ function Length (Container : Set) return Count_Type is begin return Container.HT.Length; end Length; ---------- -- Move -- ---------- procedure Move (Target : in out Set; Source : in out Set) is begin HT_Ops.Move (Target => Target.HT, Source => Source.HT); end Move; ---------- -- Next -- ---------- function Next (Node : Node_Access) return Node_Access is begin return Node.Next; end Next; function Next (Position : Cursor) return Cursor is begin if Position.Node = null then return No_Element; end if; if Position.Node.Element = null then raise Program_Error with "bad cursor in Next"; end if; pragma Assert (Vet (Position), "bad cursor in Next"); declare HT : Hash_Table_Type renames Position.Container.HT; Node : constant Node_Access := HT_Ops.Next (HT, Position.Node); begin if Node = null then return No_Element; end if; return Cursor'(Position.Container, Node); end; end Next; procedure Next (Position : in out Cursor) is begin Position := Next (Position); end Next; ------------- -- Overlap -- ------------- function Overlap (Left, Right : Set) return Boolean is Left_Node : Node_Access; begin if Right.Length = 0 then return False; end if; if Left'Address = Right'Address then return True; end if; Left_Node := HT_Ops.First (Left.HT); while Left_Node /= null loop if Is_In (Right.HT, Left_Node) then return True; end if; Left_Node := HT_Ops.Next (Left.HT, Left_Node); end loop; return False; end Overlap; ------------------- -- Query_Element -- ------------------- procedure Query_Element (Position : Cursor; Process : not null access procedure (Element : Element_Type)) is begin if Position.Node = null then raise Constraint_Error with "Position cursor of Query_Element equals No_Element"; end if; if Position.Node.Element = null then raise Program_Error with "bad cursor in Query_Element"; end if; pragma Assert (Vet (Position), "bad cursor in Query_Element"); declare HT : Hash_Table_Type renames Position.Container'Unrestricted_Access.all.HT; B : Natural renames HT.Busy; L : Natural renames HT.Lock; begin B := B + 1; L := L + 1; begin Process (Position.Node.Element.all); exception when others => L := L - 1; B := B - 1; raise; end; L := L - 1; B := B - 1; end; end Query_Element; ---------- -- Read -- ---------- procedure Read (Stream : access Root_Stream_Type'Class; Container : out Set) is begin Read_Nodes (Stream, Container.HT); end Read; procedure Read (Stream : access Root_Stream_Type'Class; Item : out Cursor) is begin raise Program_Error with "attempt to stream set cursor"; end Read; --------------- -- Read_Node -- --------------- function Read_Node (Stream : access Root_Stream_Type'Class) return Node_Access is X : Element_Access := new Element_Type'(Element_Type'Input (Stream)); begin return new Node_Type'(X, null); exception when others => Free_Element (X); raise; end Read_Node; ------------- -- Replace -- ------------- procedure Replace (Container : in out Set; New_Item : Element_Type) is Node : constant Node_Access := Element_Keys.Find (Container.HT, New_Item); X : Element_Access; begin if Node = null then raise Constraint_Error with "attempt to replace element not in set"; end if; if Container.HT.Lock > 0 then raise Program_Error with "attempt to tamper with cursors (set is locked)"; end if; X := Node.Element; Node.Element := new Element_Type'(New_Item); Free_Element (X); end Replace; --------------------- -- Replace_Element -- --------------------- procedure Replace_Element (HT : in out Hash_Table_Type; Node : Node_Access; New_Item : Element_Type) is begin if Equivalent_Elements (Node.Element.all, New_Item) then pragma Assert (Hash (Node.Element.all) = Hash (New_Item)); if HT.Lock > 0 then raise Program_Error with "attempt to tamper with cursors (set is locked)"; end if; declare X : Element_Access := Node.Element; begin Node.Element := new Element_Type'(New_Item); -- OK if fails Free_Element (X); end; return; end if; if HT.Busy > 0 then raise Program_Error with "attempt to tamper with elements (set is busy)"; end if; HT_Ops.Delete_Node_Sans_Free (HT, Node); Insert_New_Element : declare function New_Node (Next : Node_Access) return Node_Access; pragma Inline (New_Node); procedure Insert is new Element_Keys.Generic_Conditional_Insert (New_Node); ------------------------ -- Insert_New_Element -- ------------------------ function New_Node (Next : Node_Access) return Node_Access is begin Node.Element := new Element_Type'(New_Item); -- OK if fails Node.Next := Next; return Node; end New_Node; Result : Node_Access; Inserted : Boolean; X : Element_Access := Node.Element; -- Start of processing for Insert_New_Element begin Attempt_Insert : begin Insert (HT => HT, Key => New_Item, Node => Result, Inserted => Inserted); exception when others => Inserted := False; -- Assignment failed end Attempt_Insert; if Inserted then Free_Element (X); -- Just propagate if fails return; end if; end Insert_New_Element; Reinsert_Old_Element : declare function New_Node (Next : Node_Access) return Node_Access; pragma Inline (New_Node); procedure Insert is new Element_Keys.Generic_Conditional_Insert (New_Node); -------------- -- New_Node -- -------------- function New_Node (Next : Node_Access) return Node_Access is begin Node.Next := Next; return Node; end New_Node; Result : Node_Access; Inserted : Boolean; -- Start of processing for Reinsert_Old_Element begin Insert (HT => HT, Key => Node.Element.all, Node => Result, Inserted => Inserted); exception when others => null; end Reinsert_Old_Element; raise Program_Error with "attempt to replace existing element"; end Replace_Element; procedure Replace_Element (Container : in out Set; Position : Cursor; New_Item : Element_Type) is begin if Position.Node = null then raise Constraint_Error with "Position cursor equals No_Element"; end if; if Position.Node.Element = null then raise Program_Error with "bad cursor in Replace_Element"; end if; if Position.Container /= Container'Unrestricted_Access then raise Program_Error with "Position cursor designates wrong set"; end if; pragma Assert (Vet (Position), "bad cursor in Replace_Element"); Replace_Element (Container.HT, Position.Node, New_Item); end Replace_Element; ---------------------- -- Reserve_Capacity -- ---------------------- procedure Reserve_Capacity (Container : in out Set; Capacity : Count_Type) is begin HT_Ops.Reserve_Capacity (Container.HT, Capacity); end Reserve_Capacity; -------------- -- Set_Next -- -------------- procedure Set_Next (Node : Node_Access; Next : Node_Access) is begin Node.Next := Next; end Set_Next; -------------------------- -- Symmetric_Difference -- -------------------------- procedure Symmetric_Difference (Target : in out Set; Source : Set) is begin if Target'Address = Source'Address then Clear (Target); return; end if; if Target.HT.Busy > 0 then raise Program_Error with "attempt to tamper with elements (set is busy)"; end if; declare N : constant Count_Type := Target.Length + Source.Length; begin if N > HT_Ops.Capacity (Target.HT) then HT_Ops.Reserve_Capacity (Target.HT, N); end if; end; if Target.Length = 0 then Iterate_Source_When_Empty_Target : declare procedure Process (Src_Node : Node_Access); procedure Iterate is new HT_Ops.Generic_Iteration (Process); ------------- -- Process -- ------------- procedure Process (Src_Node : Node_Access) is E : Element_Type renames Src_Node.Element.all; B : Buckets_Type renames Target.HT.Buckets.all; J : constant Hash_Type := Hash (E) mod B'Length; N : Count_Type renames Target.HT.Length; begin declare X : Element_Access := new Element_Type'(E); begin B (J) := new Node_Type'(X, B (J)); exception when others => Free_Element (X); raise; end; N := N + 1; end Process; -- Start of processing for Iterate_Source_When_Empty_Target begin Iterate (Source.HT); end Iterate_Source_When_Empty_Target; else Iterate_Source : declare procedure Process (Src_Node : Node_Access); procedure Iterate is new HT_Ops.Generic_Iteration (Process); ------------- -- Process -- ------------- procedure Process (Src_Node : Node_Access) is E : Element_Type renames Src_Node.Element.all; B : Buckets_Type renames Target.HT.Buckets.all; J : constant Hash_Type := Hash (E) mod B'Length; N : Count_Type renames Target.HT.Length; begin if B (J) = null then declare X : Element_Access := new Element_Type'(E); begin B (J) := new Node_Type'(X, null); exception when others => Free_Element (X); raise; end; N := N + 1; elsif Equivalent_Elements (E, B (J).Element.all) then declare X : Node_Access := B (J); begin B (J) := B (J).Next; N := N - 1; Free (X); end; else declare Prev : Node_Access := B (J); Curr : Node_Access := Prev.Next; begin while Curr /= null loop if Equivalent_Elements (E, Curr.Element.all) then Prev.Next := Curr.Next; N := N - 1; Free (Curr); return; end if; Prev := Curr; Curr := Prev.Next; end loop; declare X : Element_Access := new Element_Type'(E); begin B (J) := new Node_Type'(X, B (J)); exception when others => Free_Element (X); raise; end; N := N + 1; end; end if; end Process; -- Start of processing for Iterate_Source begin Iterate (Source.HT); end Iterate_Source; end if; end Symmetric_Difference; function Symmetric_Difference (Left, Right : Set) return Set is Buckets : HT_Types.Buckets_Access; Length : Count_Type; begin if Left'Address = Right'Address then return Empty_Set; end if; if Right.Length = 0 then return Left; end if; if Left.Length = 0 then return Right; end if; declare Size : constant Hash_Type := Prime_Numbers.To_Prime (Left.Length + Right.Length); begin Buckets := new Buckets_Type (0 .. Size - 1); end; Length := 0; Iterate_Left : declare procedure Process (L_Node : Node_Access); procedure Iterate is new HT_Ops.Generic_Iteration (Process); ------------- -- Process -- ------------- procedure Process (L_Node : Node_Access) is begin if not Is_In (Right.HT, L_Node) then declare E : Element_Type renames L_Node.Element.all; J : constant Hash_Type := Hash (E) mod Buckets'Length; begin declare X : Element_Access := new Element_Type'(E); begin Buckets (J) := new Node_Type'(X, Buckets (J)); exception when others => Free_Element (X); raise; end; Length := Length + 1; end; end if; end Process; -- Start of processing for Iterate_Left begin Iterate (Left.HT); exception when others => HT_Ops.Free_Hash_Table (Buckets); raise; end Iterate_Left; Iterate_Right : declare procedure Process (R_Node : Node_Access); procedure Iterate is new HT_Ops.Generic_Iteration (Process); ------------- -- Process -- ------------- procedure Process (R_Node : Node_Access) is begin if not Is_In (Left.HT, R_Node) then declare E : Element_Type renames R_Node.Element.all; J : constant Hash_Type := Hash (E) mod Buckets'Length; begin declare X : Element_Access := new Element_Type'(E); begin Buckets (J) := new Node_Type'(X, Buckets (J)); exception when others => Free_Element (X); raise; end; Length := Length + 1; end; end if; end Process; -- Start of processing for Iterate_Right begin Iterate (Right.HT); exception when others => HT_Ops.Free_Hash_Table (Buckets); raise; end Iterate_Right; return (Controlled with HT => (Buckets, Length, 0, 0)); end Symmetric_Difference; ------------ -- To_Set -- ------------ function To_Set (New_Item : Element_Type) return Set is HT : Hash_Table_Type; Node : Node_Access; Inserted : Boolean; begin Insert (HT, New_Item, Node, Inserted); return Set'(Controlled with HT); end To_Set; ----------- -- Union -- ----------- procedure Union (Target : in out Set; Source : Set) is procedure Process (Src_Node : Node_Access); procedure Iterate is new HT_Ops.Generic_Iteration (Process); ------------- -- Process -- ------------- procedure Process (Src_Node : Node_Access) is Src : Element_Type renames Src_Node.Element.all; function New_Node (Next : Node_Access) return Node_Access; pragma Inline (New_Node); procedure Insert is new Element_Keys.Generic_Conditional_Insert (New_Node); -------------- -- New_Node -- -------------- function New_Node (Next : Node_Access) return Node_Access is Tgt : Element_Access := new Element_Type'(Src); begin return new Node_Type'(Tgt, Next); exception when others => Free_Element (Tgt); raise; end New_Node; Tgt_Node : Node_Access; Success : Boolean; -- Start of processing for Process begin Insert (Target.HT, Src, Tgt_Node, Success); end Process; -- Start of processing for Union begin if Target'Address = Source'Address then return; end if; if Target.HT.Busy > 0 then raise Program_Error with "attempt to tamper with elements (set is busy)"; end if; declare N : constant Count_Type := Target.Length + Source.Length; begin if N > HT_Ops.Capacity (Target.HT) then HT_Ops.Reserve_Capacity (Target.HT, N); end if; end; Iterate (Source.HT); end Union; function Union (Left, Right : Set) return Set is Buckets : HT_Types.Buckets_Access; Length : Count_Type; begin if Left'Address = Right'Address then return Left; end if; if Right.Length = 0 then return Left; end if; if Left.Length = 0 then return Right; end if; declare Size : constant Hash_Type := Prime_Numbers.To_Prime (Left.Length + Right.Length); begin Buckets := new Buckets_Type (0 .. Size - 1); end; Iterate_Left : declare procedure Process (L_Node : Node_Access); procedure Iterate is new HT_Ops.Generic_Iteration (Process); ------------- -- Process -- ------------- procedure Process (L_Node : Node_Access) is Src : Element_Type renames L_Node.Element.all; J : constant Hash_Type := Hash (Src) mod Buckets'Length; Bucket : Node_Access renames Buckets (J); Tgt : Element_Access := new Element_Type'(Src); begin Bucket := new Node_Type'(Tgt, Bucket); exception when others => Free_Element (Tgt); raise; end Process; -- Start of processing for Process begin Iterate (Left.HT); exception when others => HT_Ops.Free_Hash_Table (Buckets); raise; end Iterate_Left; Length := Left.Length; Iterate_Right : declare procedure Process (Src_Node : Node_Access); procedure Iterate is new HT_Ops.Generic_Iteration (Process); ------------- -- Process -- ------------- procedure Process (Src_Node : Node_Access) is Src : Element_Type renames Src_Node.Element.all; Idx : constant Hash_Type := Hash (Src) mod Buckets'Length; Tgt_Node : Node_Access := Buckets (Idx); begin while Tgt_Node /= null loop if Equivalent_Elements (Src, Tgt_Node.Element.all) then return; end if; Tgt_Node := Next (Tgt_Node); end loop; declare Tgt : Element_Access := new Element_Type'(Src); begin Buckets (Idx) := new Node_Type'(Tgt, Buckets (Idx)); exception when others => Free_Element (Tgt); raise; end; Length := Length + 1; end Process; -- Start of processing for Iterate_Right begin Iterate (Right.HT); exception when others => HT_Ops.Free_Hash_Table (Buckets); raise; end Iterate_Right; return (Controlled with HT => (Buckets, Length, 0, 0)); end Union; --------- -- Vet -- --------- function Vet (Position : Cursor) return Boolean is begin if Position.Node = null then return Position.Container = null; end if; if Position.Container = null then return False; end if; if Position.Node.Next = Position.Node then return False; end if; if Position.Node.Element = null then return False; end if; declare HT : Hash_Table_Type renames Position.Container.HT; X : Node_Access; begin if HT.Length = 0 then return False; end if; if HT.Buckets = null or else HT.Buckets'Length = 0 then return False; end if; X := HT.Buckets (Element_Keys.Index (HT, Position.Node.Element.all)); for J in 1 .. HT.Length loop if X = Position.Node then return True; end if; if X = null then return False; end if; if X = X.Next then -- to prevent unnecessary looping return False; end if; X := X.Next; end loop; return False; end; end Vet; ----------- -- Write -- ----------- procedure Write (Stream : access Root_Stream_Type'Class; Container : Set) is begin Write_Nodes (Stream, Container.HT); end Write; procedure Write (Stream : access Root_Stream_Type'Class; Item : Cursor) is begin raise Program_Error with "attempt to stream set cursor"; end Write; ---------------- -- Write_Node -- ---------------- procedure Write_Node (Stream : access Root_Stream_Type'Class; Node : Node_Access) is begin Element_Type'Output (Stream, Node.Element.all); end Write_Node; package body Generic_Keys is ----------------------- -- Local Subprograms -- ----------------------- function Equivalent_Key_Node (Key : Key_Type; Node : Node_Access) return Boolean; pragma Inline (Equivalent_Key_Node); -------------------------- -- Local Instantiations -- -------------------------- package Key_Keys is new Hash_Tables.Generic_Keys (HT_Types => HT_Types, Next => Next, Set_Next => Set_Next, Key_Type => Key_Type, Hash => Hash, Equivalent_Keys => Equivalent_Key_Node); -------------- -- Contains -- -------------- function Contains (Container : Set; Key : Key_Type) return Boolean is begin return Find (Container, Key) /= No_Element; end Contains; ------------ -- Delete -- ------------ procedure Delete (Container : in out Set; Key : Key_Type) is X : Node_Access; begin Key_Keys.Delete_Key_Sans_Free (Container.HT, Key, X); if X = null then raise Constraint_Error with "key not in map"; end if; Free (X); end Delete; ------------- -- Element -- ------------- function Element (Container : Set; Key : Key_Type) return Element_Type is Node : constant Node_Access := Key_Keys.Find (Container.HT, Key); begin if Node = null then raise Constraint_Error with "key not in map"; end if; return Node.Element.all; end Element; ------------------------- -- Equivalent_Key_Node -- ------------------------- function Equivalent_Key_Node (Key : Key_Type; Node : Node_Access) return Boolean is begin return Equivalent_Keys (Key, Generic_Keys.Key (Node.Element.all)); end Equivalent_Key_Node; ------------- -- Exclude -- ------------- procedure Exclude (Container : in out Set; Key : Key_Type) is X : Node_Access; begin Key_Keys.Delete_Key_Sans_Free (Container.HT, Key, X); Free (X); end Exclude; ---------- -- Find -- ---------- function Find (Container : Set; Key : Key_Type) return Cursor is Node : constant Node_Access := Key_Keys.Find (Container.HT, Key); begin if Node = null then return No_Element; end if; return Cursor'(Container'Unrestricted_Access, Node); end Find; --------- -- Key -- --------- function Key (Position : Cursor) return Key_Type is begin if Position.Node = null then raise Constraint_Error with "Position cursor equals No_Element"; end if; if Position.Node.Element = null then raise Program_Error with "Position cursor is bad"; end if; pragma Assert (Vet (Position), "bad cursor in function Key"); return Key (Position.Node.Element.all); end Key; ------------- -- Replace -- ------------- procedure Replace (Container : in out Set; Key : Key_Type; New_Item : Element_Type) is Node : constant Node_Access := Key_Keys.Find (Container.HT, Key); begin if Node = null then raise Constraint_Error with "attempt to replace key not in set"; end if; Replace_Element (Container.HT, Node, New_Item); end Replace; procedure Update_Element_Preserving_Key (Container : in out Set; Position : Cursor; Process : not null access procedure (Element : in out Element_Type)) is HT : Hash_Table_Type renames Container.HT; Indx : Hash_Type; begin if Position.Node = null then raise Constraint_Error with "Position cursor equals No_Element"; end if; if Position.Node.Element = null or else Position.Node.Next = Position.Node then raise Program_Error with "Position cursor is bad"; end if; if Position.Container /= Container'Unrestricted_Access then raise Program_Error with "Position cursor designates wrong set"; end if; if HT.Buckets = null or else HT.Buckets'Length = 0 or else HT.Length = 0 then raise Program_Error with "Position cursor is bad (set is empty)"; end if; pragma Assert (Vet (Position), "bad cursor in Update_Element_Preserving_Key"); Indx := HT_Ops.Index (HT, Position.Node); declare E : Element_Type renames Position.Node.Element.all; K : constant Key_Type := Key (E); B : Natural renames HT.Busy; L : Natural renames HT.Lock; begin B := B + 1; L := L + 1; begin Process (E); exception when others => L := L - 1; B := B - 1; raise; end; L := L - 1; B := B - 1; if Equivalent_Keys (K, Key (E)) then pragma Assert (Hash (K) = Hash (E)); return; end if; end; if HT.Buckets (Indx) = Position.Node then HT.Buckets (Indx) := Position.Node.Next; else declare Prev : Node_Access := HT.Buckets (Indx); begin while Prev.Next /= Position.Node loop Prev := Prev.Next; if Prev = null then raise Program_Error with "Position cursor is bad (node not found)"; end if; end loop; Prev.Next := Position.Node.Next; end; end if; HT.Length := HT.Length - 1; declare X : Node_Access := Position.Node; begin Free (X); end; raise Program_Error with "key was modified"; end Update_Element_Preserving_Key; end Generic_Keys; end Ada.Containers.Indefinite_Hashed_Sets;
25.772835
79
0.522568
394bfed072b5a7ea98a01ed76f3e46b17701cb09
14,591
ads
Ada
Validation/pyFrame3DD-master/gcc-master/gcc/ada/urealp.ads
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
Validation/pyFrame3DD-master/gcc-master/gcc/ada/urealp.ads
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
Validation/pyFrame3DD-master/gcc-master/gcc/ada/urealp.ads
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- U R E A L P -- -- -- -- S p e c -- -- -- -- Copyright (C) 1992-2020, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ -- Support for universal real arithmetic -- WARNING: There is a C version of this package. Any changes to this -- source file must be properly reflected in the C header file urealp.h with Types; use Types; with Uintp; use Uintp; package Urealp is --------------------------------------- -- Representation of Universal Reals -- --------------------------------------- -- A universal real value is represented by a single value (which is -- an index into an internal table). These values are not hashed, so -- the equality operator should not be used on Ureal values (instead -- use the UR_Eq function). -- A Ureal value represents an arbitrary precision universal real value, -- stored internally using four components: -- the numerator (Uint, always non-negative) -- the denominator (Uint, always non-zero, always positive if base = 0) -- a real base (Nat, either zero, or in the range 2 .. 16) -- a sign flag (Boolean), set if negative -- Negative numbers are represented by the sign flag being True. -- If the base is zero, then the absolute value of the Ureal is simply -- numerator/denominator, where denominator is positive. If the base is -- non-zero, then the absolute value is numerator / (base ** denominator). -- In that case, since base is positive, (base ** denominator) is also -- positive, even when denominator is negative or null. -- A normalized Ureal value has base = 0, and numerator/denominator -- reduced to lowest terms, with zero itself being represented as 0/1. -- This is a canonical format, so that for normalized Ureal values it -- is the case that two equal values always have the same denominator -- and numerator values. -- Note: a value of minus zero is legitimate, and the operations in -- Urealp preserve the handling of signed zeroes in accordance with -- the rules of IEEE P754 ("IEEE floating point"). ------------------------------ -- Types for Urealp Package -- ------------------------------ type Ureal is private; -- Type used for representation of universal reals No_Ureal : constant Ureal; -- Constant used to indicate missing or unset Ureal value --------------------- -- Ureal Constants -- --------------------- function Ureal_0 return Ureal; -- Returns value 0.0 function Ureal_M_0 return Ureal; -- Returns value -0.0 function Ureal_Tenth return Ureal; -- Returns value 0.1 function Ureal_Half return Ureal; -- Returns value 0.5 function Ureal_1 return Ureal; -- Returns value 1.0 function Ureal_2 return Ureal; -- Returns value 2.0 function Ureal_10 return Ureal; -- Returns value 10.0 function Ureal_100 return Ureal; -- Returns value 100.0 function Ureal_2_80 return Ureal; -- Returns value 2.0 ** 80 function Ureal_2_M_80 return Ureal; -- Returns value 2.0 ** (-80) function Ureal_2_128 return Ureal; -- Returns value 2.0 ** 128 function Ureal_2_M_128 return Ureal; -- Returns value 2.0 ** (-128) function Ureal_10_36 return Ureal; -- Returns value 10.0 ** 36 function Ureal_M_10_36 return Ureal; -- Returns value -10.0 ** 36 ----------------- -- Subprograms -- ----------------- procedure Initialize; -- Initialize Ureal tables. Note that there is no Lock routine in this -- unit. These tables are among the few tables that can be expanded -- during Gigi processing. function Rbase (Real : Ureal) return Nat; -- Return the base of the universal real function Denominator (Real : Ureal) return Uint; -- Return the denominator of the universal real function Numerator (Real : Ureal) return Uint; -- Return the numerator of the universal real function Norm_Den (Real : Ureal) return Uint; -- Return the denominator of the universal real after a normalization function Norm_Num (Real : Ureal) return Uint; -- Return the numerator of the universal real after a normalization function UR_From_Uint (UI : Uint) return Ureal; -- Returns real corresponding to universal integer value function UR_To_Uint (Real : Ureal) return Uint; -- Return integer value obtained by accurate rounding of real value. -- The rounding of values half way between two integers is away from -- zero, as required by normal Ada 95 rounding semantics. function UR_Trunc (Real : Ureal) return Uint; -- Return integer value obtained by a truncation of real towards zero function UR_Ceiling (Real : Ureal) return Uint; -- Return value of smallest integer not less than the given value function UR_Floor (Real : Ureal) return Uint; -- Return value of smallest integer not greater than the given value -- Conversion table for above four functions -- Input To_Uint Trunc Ceiling Floor -- 1.0 1 1 1 1 -- 1.2 1 1 2 1 -- 1.5 2 1 2 1 -- 1.7 2 1 2 1 -- 2.0 2 2 2 2 -- -1.0 -1 -1 -1 -1 -- -1.2 -1 -1 -1 -2 -- -1.5 -2 -1 -1 -2 -- -1.7 -2 -1 -1 -2 -- -2.0 -2 -2 -2 -2 function UR_From_Components (Num : Uint; Den : Uint; Rbase : Nat := 0; Negative : Boolean := False) return Ureal; -- Builds real value from given numerator, denominator and base. The -- value is negative if Negative is set to true, and otherwise is -- non-negative. function UR_Add (Left : Ureal; Right : Ureal) return Ureal; function UR_Add (Left : Ureal; Right : Uint) return Ureal; function UR_Add (Left : Uint; Right : Ureal) return Ureal; -- Returns real sum of operands function UR_Div (Left : Ureal; Right : Ureal) return Ureal; function UR_Div (Left : Uint; Right : Ureal) return Ureal; function UR_Div (Left : Ureal; Right : Uint) return Ureal; -- Returns real quotient of operands. Fatal error if Right is zero function UR_Mul (Left : Ureal; Right : Ureal) return Ureal; function UR_Mul (Left : Uint; Right : Ureal) return Ureal; function UR_Mul (Left : Ureal; Right : Uint) return Ureal; -- Returns real product of operands function UR_Sub (Left : Ureal; Right : Ureal) return Ureal; function UR_Sub (Left : Uint; Right : Ureal) return Ureal; function UR_Sub (Left : Ureal; Right : Uint) return Ureal; -- Returns real difference of operands function UR_Exponentiate (Real : Ureal; N : Uint) return Ureal; -- Returns result of raising Ureal to Uint power. -- Fatal error if Left is 0 and Right is negative. function UR_Abs (Real : Ureal) return Ureal; -- Returns abs function of real function UR_Negate (Real : Ureal) return Ureal; -- Returns negative of real function UR_Eq (Left, Right : Ureal) return Boolean; -- Compares reals for equality function UR_Max (Left, Right : Ureal) return Ureal; -- Returns the maximum of two reals function UR_Min (Left, Right : Ureal) return Ureal; -- Returns the minimum of two reals function UR_Ne (Left, Right : Ureal) return Boolean; -- Compares reals for inequality function UR_Lt (Left, Right : Ureal) return Boolean; -- Compares reals for less than function UR_Le (Left, Right : Ureal) return Boolean; -- Compares reals for less than or equal function UR_Gt (Left, Right : Ureal) return Boolean; -- Compares reals for greater than function UR_Ge (Left, Right : Ureal) return Boolean; -- Compares reals for greater than or equal function UR_Is_Zero (Real : Ureal) return Boolean; -- Tests if real value is zero function UR_Is_Negative (Real : Ureal) return Boolean; -- Tests if real value is negative, note that negative zero gives true function UR_Is_Positive (Real : Ureal) return Boolean; -- Test if real value is greater than zero procedure UR_Write (Real : Ureal; Brackets : Boolean := False); -- Writes value of Real to standard output. Used for debugging and -- tree/source output, and also for -gnatR representation output. If the -- result is easily representable as a standard Ada literal, it will be -- given that way, but as a result of evaluation of static expressions, it -- is possible to generate constants (e.g. 1/13) which have no such -- representation. In such cases (and in cases where it is too much work to -- figure out the Ada literal), the string that is output is of the form -- of some expression such as integer/integer, or integer*integer**integer. -- In the case where an expression is output, if Brackets is set to True, -- the expression is surrounded by square brackets. procedure pr (Real : Ureal); pragma Export (Ada, pr); -- Writes value of Real to standard output with a terminating line return, -- using UR_Write as described above. This is for use from the debugger. ------------------------ -- Operator Renamings -- ------------------------ function "+" (Left : Ureal; Right : Ureal) return Ureal renames UR_Add; function "+" (Left : Uint; Right : Ureal) return Ureal renames UR_Add; function "+" (Left : Ureal; Right : Uint) return Ureal renames UR_Add; function "/" (Left : Ureal; Right : Ureal) return Ureal renames UR_Div; function "/" (Left : Uint; Right : Ureal) return Ureal renames UR_Div; function "/" (Left : Ureal; Right : Uint) return Ureal renames UR_Div; function "*" (Left : Ureal; Right : Ureal) return Ureal renames UR_Mul; function "*" (Left : Uint; Right : Ureal) return Ureal renames UR_Mul; function "*" (Left : Ureal; Right : Uint) return Ureal renames UR_Mul; function "-" (Left : Ureal; Right : Ureal) return Ureal renames UR_Sub; function "-" (Left : Uint; Right : Ureal) return Ureal renames UR_Sub; function "-" (Left : Ureal; Right : Uint) return Ureal renames UR_Sub; function "**" (Real : Ureal; N : Uint) return Ureal renames UR_Exponentiate; function "abs" (Real : Ureal) return Ureal renames UR_Abs; function "-" (Real : Ureal) return Ureal renames UR_Negate; function "=" (Left, Right : Ureal) return Boolean renames UR_Eq; function "<" (Left, Right : Ureal) return Boolean renames UR_Lt; function "<=" (Left, Right : Ureal) return Boolean renames UR_Le; function ">=" (Left, Right : Ureal) return Boolean renames UR_Ge; function ">" (Left, Right : Ureal) return Boolean renames UR_Gt; ----------------------------- -- Mark/Release Processing -- ----------------------------- -- The space used by Ureal data is not automatically reclaimed. However, -- a mark-release regime is implemented which allows storage to be -- released back to a previously noted mark. This is used for example -- when doing comparisons, where only intermediate results get stored -- that do not need to be saved for future use. type Save_Mark is private; function Mark return Save_Mark; -- Note mark point for future release procedure Release (M : Save_Mark); -- Release storage allocated since mark was noted ------------------------------------ -- Representation of Ureal Values -- ------------------------------------ private type Ureal is new Int range Ureal_Low_Bound .. Ureal_High_Bound; for Ureal'Size use 32; No_Ureal : constant Ureal := Ureal'First; type Save_Mark is new Int; pragma Inline (Denominator); pragma Inline (Mark); pragma Inline (Norm_Num); pragma Inline (Norm_Den); pragma Inline (Numerator); pragma Inline (Rbase); pragma Inline (Release); pragma Inline (Ureal_0); pragma Inline (Ureal_M_0); pragma Inline (Ureal_Tenth); pragma Inline (Ureal_Half); pragma Inline (Ureal_1); pragma Inline (Ureal_2); pragma Inline (Ureal_10); pragma Inline (UR_From_Components); end Urealp;
40.195592
79
0.594202
50e8aa9e95e3742a8d637b5070806aa55b4013b0
2,785
ads
Ada
src/sdl-video-displays.ads
mosteo/sdlada
429c594de613c5ba2f0d7c59f8708956697e14f1
[ "Zlib" ]
89
2015-01-03T01:41:23.000Z
2022-02-23T18:21:11.000Z
src/sdl-video-displays.ads
mosteo/sdlada
429c594de613c5ba2f0d7c59f8708956697e14f1
[ "Zlib" ]
66
2015-05-01T00:54:03.000Z
2022-01-20T04:09:59.000Z
src/sdl-video-displays.ads
Jellix/sdlada
997d2ae2da5c75e2ea99cee98372cf5b752519cf
[ "Zlib" ]
33
2015-04-30T23:39:31.000Z
2022-01-03T13:00:41.000Z
-------------------------------------------------------------------------------------------------------------------- -- Copyright (c) 2013-2020, Luke A. Guest -- -- This software is provided 'as-is', without any express or implied -- warranty. In no event will the authors be held liable for any damages -- arising from the use of this software. -- -- Permission is granted to anyone to use this software for any purpose, -- including commercial applications, and to alter it and redistribute it -- freely, subject to the following restrictions: -- -- 1. The origin of this software must not be misrepresented; you must not -- claim that you wrote the original software. If you use this software -- in a product, an acknowledgment in the product documentation would be -- appreciated but is not required. -- -- 2. Altered source versions must be plainly marked as such, and must not be -- misrepresented as being the original software. -- -- 3. This notice may not be removed or altered from any source -- distribution. -------------------------------------------------------------------------------------------------------------------- -- SDL.Video.Displays -- -- Access to display information including video displays and resolutions. -------------------------------------------------------------------------------------------------------------------- with Interfaces.C; with SDL.Video.Pixel_Formats; with SDL.Video.Rectangles; with System; package SDL.Video.Displays is pragma Preelaborate; package C renames Interfaces.C; type Refresh_Rates is range 0 .. 400 with Convention => C; type Mode is record Format : SDL.Video.Pixel_Formats.Pixel_Format_Names; Width : C.int; Height : C.int; Refresh_Rate : Refresh_Rates; Driver_Data : System.Address; -- TODO: Somehow make this a real type. end record with Convention => C; type Access_Mode is access all Mode with Convention => C; -- Video displays. type Display_Indices is new Positive; function Total return Display_Indices; function Closest_Mode (Display : in Display_Indices; Wanted : in Mode; Target : out Mode) return Boolean; function Current_Mode (Display : in Display_Indices; Target : out Mode) return Boolean; function Desktop_Mode (Display : in Display_Indices; Target : out Mode) return Boolean; function Display_Mode (Display : in Display_Indices; Index : in Natural; Target : out Mode) return Boolean; function Total_Display_Modes (Display : in Display_Indices; Total : out Positive) return Boolean; function Display_Bounds (Display : in Display_Indices; Bounds : out Rectangles.Rectangle) return Boolean; end SDL.Video.Displays;
39.785714
116
0.624417
4d981c96aa79ae7a79b06724b0f7c224f05058c4
243,410
adb
Ada
clients/ada-server/generated/src/server/-skeletons.adb
shinesolutions/swagger-aem
b41f1ae3d23917de38ca5cf116cbcc173368d1e8
[ "Apache-2.0" ]
39
2016-10-02T06:45:12.000Z
2021-09-08T20:39:53.000Z
clients/ada-server/generated/src/server/-skeletons.adb
shinesolutions/swagger-aem
b41f1ae3d23917de38ca5cf116cbcc173368d1e8
[ "Apache-2.0" ]
35
2016-11-02T05:06:34.000Z
2021-09-03T06:03:08.000Z
clients/ada-server/generated/src/server/-skeletons.adb
shinesolutions/swagger-aem
b41f1ae3d23917de38ca5cf116cbcc173368d1e8
[ "Apache-2.0" ]
23
2016-11-07T04:14:42.000Z
2021-02-15T09:49:13.000Z
-- Adobe Experience Manager (AEM) API -- Swagger AEM is an OpenAPI specification for Adobe Experience Manager (AEM) API -- -- The version of the OpenAPI document: 3.5.0_pre.0 -- Contact: [email protected] -- -- NOTE: This package is auto generated by OpenAPI-Generator 5.2.1. -- https://openapi-generator.tech -- Do not edit the class manually. pragma Warnings (Off, "*is not referenced"); with Swagger.Streams; with Swagger.Servers.Operation; package body .Skeletons is pragma Style_Checks ("-mr"); pragma Warnings (Off, "*use clause for package*"); use Swagger.Streams; package body Skeleton is package API_Get_Aem_Product_Info is new Swagger.Servers.Operation (Handler => Get_Aem_Product_Info, Method => Swagger.Servers.GET, URI => URI_Prefix & "/system/console/status-productinfo.json"); -- procedure Get_Aem_Product_Info (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Impl : Implementation_Type; Result : Swagger.UString_Vectors.Vector; begin Impl.Get_Aem_Product_Info (Result, Context); if Context.Get_Status = 200 then Stream.Start_Document; Swagger.Streams.Serialize (Stream, "", Result); Stream.End_Document; end if; end Get_Aem_Product_Info; package API_Get_Bundle_Info is new Swagger.Servers.Operation (Handler => Get_Bundle_Info, Method => Swagger.Servers.GET, URI => URI_Prefix & "/system/console/bundles/{name}.json"); -- procedure Get_Bundle_Info (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Impl : Implementation_Type; Name : Swagger.UString; Result : .Models.BundleInfo_Type; begin Swagger.Servers.Get_Path_Parameter (Req, 1, Name); Impl.Get_Bundle_Info (Name, Result, Context); if Context.Get_Status = 200 then Stream.Start_Document; .Models.Serialize (Stream, "", Result); Stream.End_Document; end if; end Get_Bundle_Info; package API_Get_Config_Mgr is new Swagger.Servers.Operation (Handler => Get_Config_Mgr, Method => Swagger.Servers.GET, URI => URI_Prefix & "/system/console/configMgr"); -- procedure Get_Config_Mgr (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Impl : Implementation_Type; Result : Swagger.UString; begin Impl.Get_Config_Mgr (Result, Context); if Context.Get_Status = 200 then Stream.Start_Document; Swagger.Streams.Serialize (Stream, "", Result); Stream.End_Document; end if; end Get_Config_Mgr; package API_Post_Bundle is new Swagger.Servers.Operation (Handler => Post_Bundle, Method => Swagger.Servers.POST, URI => URI_Prefix & "/system/console/bundles/{name}"); -- procedure Post_Bundle (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Impl : Implementation_Type; Name : Swagger.UString; Action : Swagger.UString; begin Swagger.Servers.Get_Query_Parameter (Req, "action", Action); Swagger.Servers.Get_Path_Parameter (Req, 1, Name); Impl.Post_Bundle (Name, Action, Context); end Post_Bundle; package API_Post_Jmx_Repository is new Swagger.Servers.Operation (Handler => Post_Jmx_Repository, Method => Swagger.Servers.POST, URI => URI_Prefix & "/system/console/jmx/com.adobe.granite:type=Repository/op/{action}"); -- procedure Post_Jmx_Repository (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Impl : Implementation_Type; Action : Swagger.UString; begin Swagger.Servers.Get_Path_Parameter (Req, 1, Action); Impl.Post_Jmx_Repository (Action, Context); end Post_Jmx_Repository; package API_Post_Saml_Configuration is new Swagger.Servers.Operation (Handler => Post_Saml_Configuration, Method => Swagger.Servers.POST, URI => URI_Prefix & "/system/console/configMgr/com.adobe.granite.auth.saml.SamlAuthenticationHandler"); -- procedure Post_Saml_Configuration (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Impl : Implementation_Type; Post : Swagger.Nullable_Boolean; Apply : Swagger.Nullable_Boolean; Delete : Swagger.Nullable_Boolean; Action : Swagger.Nullable_UString; Dollarlocation : Swagger.Nullable_UString; Path : Swagger.UString_Vectors.Vector; Service_Periodranking : Swagger.Nullable_Integer; Idp_Url : Swagger.Nullable_UString; Idp_Cert_Alias : Swagger.Nullable_UString; Idp_Http_Redirect : Swagger.Nullable_Boolean; Service_Provider_Entity_Id : Swagger.Nullable_UString; Assertion_Consumer_Service_URL : Swagger.Nullable_UString; Sp_Private_Key_Alias : Swagger.Nullable_UString; Key_Store_Password : Swagger.Nullable_UString; Default_Redirect_Url : Swagger.Nullable_UString; User_IDAttribute : Swagger.Nullable_UString; Use_Encryption : Swagger.Nullable_Boolean; Create_User : Swagger.Nullable_Boolean; Add_Group_Memberships : Swagger.Nullable_Boolean; Group_Membership_Attribute : Swagger.Nullable_UString; Default_Groups : Swagger.UString_Vectors.Vector; Name_Id_Format : Swagger.Nullable_UString; Synchronize_Attributes : Swagger.UString_Vectors.Vector; Handle_Logout : Swagger.Nullable_Boolean; Logout_Url : Swagger.Nullable_UString; Clock_Tolerance : Swagger.Nullable_Integer; Digest_Method : Swagger.Nullable_UString; Signature_Method : Swagger.Nullable_UString; User_Intermediate_Path : Swagger.Nullable_UString; Propertylist : Swagger.UString_Vectors.Vector; Result : .Models.SamlConfigurationInfo_Type; begin Swagger.Servers.Get_Query_Parameter (Req, "post", Post); Swagger.Servers.Get_Query_Parameter (Req, "apply", Apply); Swagger.Servers.Get_Query_Parameter (Req, "delete", Delete); Swagger.Servers.Get_Query_Parameter (Req, "action", Action); Swagger.Servers.Get_Query_Parameter (Req, "$location", Dollarlocation); Swagger.Servers.Get_Query_Parameter (Req, "path", Path); Swagger.Servers.Get_Query_Parameter (Req, "service.ranking", Service_Periodranking); Swagger.Servers.Get_Query_Parameter (Req, "idpUrl", Idp_Url); Swagger.Servers.Get_Query_Parameter (Req, "idpCertAlias", Idp_Cert_Alias); Swagger.Servers.Get_Query_Parameter (Req, "idpHttpRedirect", Idp_Http_Redirect); Swagger.Servers.Get_Query_Parameter (Req, "serviceProviderEntityId", Service_Provider_Entity_Id); Swagger.Servers.Get_Query_Parameter (Req, "assertionConsumerServiceURL", Assertion_Consumer_Service_URL); Swagger.Servers.Get_Query_Parameter (Req, "spPrivateKeyAlias", Sp_Private_Key_Alias); Swagger.Servers.Get_Query_Parameter (Req, "keyStorePassword", Key_Store_Password); Swagger.Servers.Get_Query_Parameter (Req, "defaultRedirectUrl", Default_Redirect_Url); Swagger.Servers.Get_Query_Parameter (Req, "userIDAttribute", User_IDAttribute); Swagger.Servers.Get_Query_Parameter (Req, "useEncryption", Use_Encryption); Swagger.Servers.Get_Query_Parameter (Req, "createUser", Create_User); Swagger.Servers.Get_Query_Parameter (Req, "addGroupMemberships", Add_Group_Memberships); Swagger.Servers.Get_Query_Parameter (Req, "groupMembershipAttribute", Group_Membership_Attribute); Swagger.Servers.Get_Query_Parameter (Req, "defaultGroups", Default_Groups); Swagger.Servers.Get_Query_Parameter (Req, "nameIdFormat", Name_Id_Format); Swagger.Servers.Get_Query_Parameter (Req, "synchronizeAttributes", Synchronize_Attributes); Swagger.Servers.Get_Query_Parameter (Req, "handleLogout", Handle_Logout); Swagger.Servers.Get_Query_Parameter (Req, "logoutUrl", Logout_Url); Swagger.Servers.Get_Query_Parameter (Req, "clockTolerance", Clock_Tolerance); Swagger.Servers.Get_Query_Parameter (Req, "digestMethod", Digest_Method); Swagger.Servers.Get_Query_Parameter (Req, "signatureMethod", Signature_Method); Swagger.Servers.Get_Query_Parameter (Req, "userIntermediatePath", User_Intermediate_Path); Swagger.Servers.Get_Query_Parameter (Req, "propertylist", Propertylist); Impl.Post_Saml_Configuration (Post, Apply, Delete, Action, Dollarlocation, Path, Service_Periodranking, Idp_Url, Idp_Cert_Alias, Idp_Http_Redirect, Service_Provider_Entity_Id, Assertion_Consumer_Service_URL, Sp_Private_Key_Alias, Key_Store_Password, Default_Redirect_Url, User_IDAttribute, Use_Encryption, Create_User, Add_Group_Memberships, Group_Membership_Attribute, Default_Groups, Name_Id_Format, Synchronize_Attributes, Handle_Logout, Logout_Url, Clock_Tolerance, Digest_Method, Signature_Method, User_Intermediate_Path, Propertylist, Result, Context); if Context.Get_Status = 200 then Stream.Start_Document; .Models.Serialize (Stream, "", Result); Stream.End_Document; end if; end Post_Saml_Configuration; package API_Get_Login_Page is new Swagger.Servers.Operation (Handler => Get_Login_Page, Method => Swagger.Servers.GET, URI => URI_Prefix & "/libs/granite/core/content/login.html"); -- procedure Get_Login_Page (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Impl : Implementation_Type; Result : Swagger.UString; begin Impl.Get_Login_Page (Result, Context); if Context.Get_Status = 200 then Stream.Start_Document; Swagger.Streams.Serialize (Stream, "", Result); Stream.End_Document; end if; end Get_Login_Page; package API_Post_Cq_Actions is new Swagger.Servers.Operation (Handler => Post_Cq_Actions, Method => Swagger.Servers.POST, URI => URI_Prefix & "/.cqactions.html"); -- procedure Post_Cq_Actions (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Impl : Implementation_Type; Authorizable_Id : Swagger.UString; Changelog : Swagger.UString; begin Swagger.Servers.Get_Query_Parameter (Req, "authorizableId", Authorizable_Id); Swagger.Servers.Get_Query_Parameter (Req, "changelog", Changelog); Impl.Post_Cq_Actions (Authorizable_Id, Changelog, Context); end Post_Cq_Actions; package API_Get_Crxde_Status is new Swagger.Servers.Operation (Handler => Get_Crxde_Status, Method => Swagger.Servers.GET, URI => URI_Prefix & "/crx/server/crx.default/jcr:root/.1.json"); -- procedure Get_Crxde_Status (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Impl : Implementation_Type; Result : Swagger.UString; begin Impl.Get_Crxde_Status (Result, Context); if Context.Get_Status = 200 then Stream.Start_Document; Swagger.Streams.Serialize (Stream, "", Result); Stream.End_Document; end if; end Get_Crxde_Status; package API_Get_Install_Status is new Swagger.Servers.Operation (Handler => Get_Install_Status, Method => Swagger.Servers.GET, URI => URI_Prefix & "/crx/packmgr/installstatus.jsp"); -- procedure Get_Install_Status (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Impl : Implementation_Type; Result : .Models.InstallStatus_Type; begin Impl.Get_Install_Status (Result, Context); if Context.Get_Status = 200 then Stream.Start_Document; .Models.Serialize (Stream, "", Result); Stream.End_Document; end if; end Get_Install_Status; package API_Get_Package_Manager_Servlet is new Swagger.Servers.Operation (Handler => Get_Package_Manager_Servlet, Method => Swagger.Servers.GET, URI => URI_Prefix & "/crx/packmgr/service/script.html"); -- procedure Get_Package_Manager_Servlet (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Impl : Implementation_Type; begin Impl.Get_Package_Manager_Servlet (Context); end Get_Package_Manager_Servlet; package API_Post_Package_Service is new Swagger.Servers.Operation (Handler => Post_Package_Service, Method => Swagger.Servers.POST, URI => URI_Prefix & "/crx/packmgr/service.jsp"); -- procedure Post_Package_Service (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Impl : Implementation_Type; Cmd : Swagger.UString; Result : Swagger.UString; begin Swagger.Servers.Get_Query_Parameter (Req, "cmd", Cmd); Impl.Post_Package_Service (Cmd, Result, Context); if Context.Get_Status = 200 then Stream.Start_Document; Swagger.Streams.Serialize (Stream, "", Result); Stream.End_Document; end if; end Post_Package_Service; package API_Post_Package_Service_Json is new Swagger.Servers.Operation (Handler => Post_Package_Service_Json, Method => Swagger.Servers.POST, URI => URI_Prefix & "/crx/packmgr/service/.json/{path}"); -- procedure Post_Package_Service_Json (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Impl : Implementation_Type; Path : Swagger.UString; Cmd : Swagger.UString; Group_Name : Swagger.Nullable_UString; Package_Name : Swagger.Nullable_UString; Package_Version : Swagger.Nullable_UString; Charset : Swagger.Nullable_UString; Force : Swagger.Nullable_Boolean; Recursive : Swagger.Nullable_Boolean; P_Package : Swagger.File_Part_Type; Result : Swagger.UString; begin Swagger.Servers.Get_Query_Parameter (Req, "cmd", Cmd); Swagger.Servers.Get_Query_Parameter (Req, "groupName", Group_Name); Swagger.Servers.Get_Query_Parameter (Req, "packageName", Package_Name); Swagger.Servers.Get_Query_Parameter (Req, "packageVersion", Package_Version); Swagger.Servers.Get_Query_Parameter (Req, "_charset_", Charset); Swagger.Servers.Get_Query_Parameter (Req, "force", Force); Swagger.Servers.Get_Query_Parameter (Req, "recursive", Recursive); Swagger.Servers.Get_Path_Parameter (Req, 1, Path); Swagger.Servers.Get_Parameter (Context, "package", P_Package); Impl.Post_Package_Service_Json (Path, Cmd, Group_Name, Package_Name, Package_Version, Charset, Force, Recursive, P_Package, Result, Context); if Context.Get_Status = 200 then Stream.Start_Document; Swagger.Streams.Serialize (Stream, "", Result); Stream.End_Document; end if; end Post_Package_Service_Json; package API_Post_Package_Update is new Swagger.Servers.Operation (Handler => Post_Package_Update, Method => Swagger.Servers.POST, URI => URI_Prefix & "/crx/packmgr/update.jsp"); -- procedure Post_Package_Update (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Impl : Implementation_Type; Group_Name : Swagger.UString; Package_Name : Swagger.UString; Version : Swagger.UString; Path : Swagger.UString; Filter : Swagger.Nullable_UString; Charset : Swagger.Nullable_UString; Result : Swagger.UString; begin Swagger.Servers.Get_Query_Parameter (Req, "groupName", Group_Name); Swagger.Servers.Get_Query_Parameter (Req, "packageName", Package_Name); Swagger.Servers.Get_Query_Parameter (Req, "version", Version); Swagger.Servers.Get_Query_Parameter (Req, "path", Path); Swagger.Servers.Get_Query_Parameter (Req, "filter", Filter); Swagger.Servers.Get_Query_Parameter (Req, "_charset_", Charset); Impl.Post_Package_Update (Group_Name, Package_Name, Version, Path, Filter, Charset, Result, Context); if Context.Get_Status = 200 then Stream.Start_Document; Swagger.Streams.Serialize (Stream, "", Result); Stream.End_Document; end if; end Post_Package_Update; package API_Post_Set_Password is new Swagger.Servers.Operation (Handler => Post_Set_Password, Method => Swagger.Servers.POST, URI => URI_Prefix & "/crx/explorer/ui/setpassword.jsp"); -- procedure Post_Set_Password (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Impl : Implementation_Type; Old : Swagger.UString; Plain : Swagger.UString; Verify : Swagger.UString; Result : Swagger.UString; begin Swagger.Servers.Get_Query_Parameter (Req, "old", Old); Swagger.Servers.Get_Query_Parameter (Req, "plain", Plain); Swagger.Servers.Get_Query_Parameter (Req, "verify", Verify); Impl.Post_Set_Password (Old, Plain, Verify, Result, Context); if Context.Get_Status = 200 then Stream.Start_Document; Swagger.Streams.Serialize (Stream, "", Result); Stream.End_Document; end if; end Post_Set_Password; package API_Get_Aem_Health_Check is new Swagger.Servers.Operation (Handler => Get_Aem_Health_Check, Method => Swagger.Servers.GET, URI => URI_Prefix & "/system/health"); -- procedure Get_Aem_Health_Check (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Impl : Implementation_Type; Tags : Swagger.Nullable_UString; Combine_Tags_Or : Swagger.Nullable_Boolean; Result : Swagger.UString; begin Swagger.Servers.Get_Query_Parameter (Req, "tags", Tags); Swagger.Servers.Get_Query_Parameter (Req, "combineTagsOr", Combine_Tags_Or); Impl.Get_Aem_Health_Check (Tags, Combine_Tags_Or, Result, Context); if Context.Get_Status = 200 then Stream.Start_Document; Swagger.Streams.Serialize (Stream, "", Result); Stream.End_Document; end if; end Get_Aem_Health_Check; package API_Post_Config_Aem_Health_Check_Servlet is new Swagger.Servers.Operation (Handler => Post_Config_Aem_Health_Check_Servlet, Method => Swagger.Servers.POST, URI => URI_Prefix & "/apps/system/config/com.shinesolutions.healthcheck.hc.impl.ActiveBundleHealthCheck"); -- procedure Post_Config_Aem_Health_Check_Servlet (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Impl : Implementation_Type; Bundles_Periodignored : Swagger.UString_Vectors.Vector; Bundles_Periodignored_At_Type_Hint : Swagger.Nullable_UString; begin Swagger.Servers.Get_Query_Parameter (Req, "bundles.ignored", Bundles_Periodignored); Swagger.Servers.Get_Query_Parameter (Req, "bundles.ignored@TypeHint", Bundles_Periodignored_At_Type_Hint); Impl.Post_Config_Aem_Health_Check_Servlet (Bundles_Periodignored, Bundles_Periodignored_At_Type_Hint, Context); end Post_Config_Aem_Health_Check_Servlet; package API_Post_Config_Aem_Password_Reset is new Swagger.Servers.Operation (Handler => Post_Config_Aem_Password_Reset, Method => Swagger.Servers.POST, URI => URI_Prefix & "/apps/system/config/com.shinesolutions.aem.passwordreset.Activator"); -- procedure Post_Config_Aem_Password_Reset (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Impl : Implementation_Type; Pwdreset_Periodauthorizables : Swagger.UString_Vectors.Vector; Pwdreset_Periodauthorizables_At_Type_Hint : Swagger.Nullable_UString; begin Swagger.Servers.Get_Query_Parameter (Req, "pwdreset.authorizables", Pwdreset_Periodauthorizables); Swagger.Servers.Get_Query_Parameter (Req, "pwdreset.authorizables@TypeHint", Pwdreset_Periodauthorizables_At_Type_Hint); Impl.Post_Config_Aem_Password_Reset (Pwdreset_Periodauthorizables, Pwdreset_Periodauthorizables_At_Type_Hint, Context); end Post_Config_Aem_Password_Reset; package API_Ssl_Setup is new Swagger.Servers.Operation (Handler => Ssl_Setup, Method => Swagger.Servers.POST, URI => URI_Prefix & "/libs/granite/security/post/sslSetup.html"); -- procedure Ssl_Setup (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Impl : Implementation_Type; Keystore_Password : Swagger.UString; Keystore_Password_Confirm : Swagger.UString; Truststore_Password : Swagger.UString; Truststore_Password_Confirm : Swagger.UString; Https_Hostname : Swagger.UString; Https_Port : Swagger.UString; Privatekey_File : Swagger.File_Part_Type; Certificate_File : Swagger.File_Part_Type; Result : Swagger.UString; begin Swagger.Servers.Get_Query_Parameter (Req, "keystorePassword", Keystore_Password); Swagger.Servers.Get_Query_Parameter (Req, "keystorePasswordConfirm", Keystore_Password_Confirm); Swagger.Servers.Get_Query_Parameter (Req, "truststorePassword", Truststore_Password); Swagger.Servers.Get_Query_Parameter (Req, "truststorePasswordConfirm", Truststore_Password_Confirm); Swagger.Servers.Get_Query_Parameter (Req, "httpsHostname", Https_Hostname); Swagger.Servers.Get_Query_Parameter (Req, "httpsPort", Https_Port); Swagger.Servers.Get_Parameter (Context, "privatekeyFile", Privatekey_File); Swagger.Servers.Get_Parameter (Context, "certificateFile", Certificate_File); Impl.Ssl_Setup (Keystore_Password, Keystore_Password_Confirm, Truststore_Password, Truststore_Password_Confirm, Https_Hostname, Https_Port, Privatekey_File, Certificate_File, Result, Context); if Context.Get_Status = 200 then Stream.Start_Document; Swagger.Streams.Serialize (Stream, "", Result); Stream.End_Document; end if; end Ssl_Setup; package API_Delete_Agent is new Swagger.Servers.Operation (Handler => Delete_Agent, Method => Swagger.Servers.DELETE, URI => URI_Prefix & "/etc/replication/agents.{runmode}/{name}"); -- procedure Delete_Agent (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Impl : Implementation_Type; Runmode : Swagger.UString; Name : Swagger.UString; begin Swagger.Servers.Get_Path_Parameter (Req, 1, Runmode); Swagger.Servers.Get_Path_Parameter (Req, 2, Name); Impl.Delete_Agent (Runmode, Name, Context); end Delete_Agent; package API_Delete_Node is new Swagger.Servers.Operation (Handler => Delete_Node, Method => Swagger.Servers.DELETE, URI => URI_Prefix & "/{path}/{name}"); -- procedure Delete_Node (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Impl : Implementation_Type; Path : Swagger.UString; Name : Swagger.UString; begin Swagger.Servers.Get_Path_Parameter (Req, 1, Path); Swagger.Servers.Get_Path_Parameter (Req, 2, Name); Impl.Delete_Node (Path, Name, Context); end Delete_Node; package API_Get_Agent is new Swagger.Servers.Operation (Handler => Get_Agent, Method => Swagger.Servers.GET, URI => URI_Prefix & "/etc/replication/agents.{runmode}/{name}"); -- procedure Get_Agent (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Impl : Implementation_Type; Runmode : Swagger.UString; Name : Swagger.UString; begin Swagger.Servers.Get_Path_Parameter (Req, 1, Runmode); Swagger.Servers.Get_Path_Parameter (Req, 2, Name); Impl.Get_Agent (Runmode, Name, Context); end Get_Agent; package API_Get_Agents is new Swagger.Servers.Operation (Handler => Get_Agents, Method => Swagger.Servers.GET, URI => URI_Prefix & "/etc/replication/agents.{runmode}.-1.json"); -- procedure Get_Agents (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Impl : Implementation_Type; Runmode : Swagger.UString; Result : Swagger.UString; begin Swagger.Servers.Get_Path_Parameter (Req, 1, Runmode); Impl.Get_Agents (Runmode, Result, Context); if Context.Get_Status = 200 then Stream.Start_Document; Swagger.Streams.Serialize (Stream, "", Result); Stream.End_Document; end if; end Get_Agents; package API_Get_Authorizable_Keystore is new Swagger.Servers.Operation (Handler => Get_Authorizable_Keystore, Method => Swagger.Servers.GET, URI => URI_Prefix & "/{intermediatePath}/{authorizableId}.ks.json"); -- procedure Get_Authorizable_Keystore (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Impl : Implementation_Type; Intermediate_Path : Swagger.UString; Authorizable_Id : Swagger.UString; Result : .Models.KeystoreInfo_Type; begin Swagger.Servers.Get_Path_Parameter (Req, 1, Intermediate_Path); Swagger.Servers.Get_Path_Parameter (Req, 2, Authorizable_Id); Impl.Get_Authorizable_Keystore (Intermediate_Path, Authorizable_Id, Result, Context); if Context.Get_Status = 200 then Stream.Start_Document; .Models.Serialize (Stream, "", Result); Stream.End_Document; end if; end Get_Authorizable_Keystore; package API_Get_Keystore is new Swagger.Servers.Operation (Handler => Get_Keystore, Method => Swagger.Servers.GET, URI => URI_Prefix & "/{intermediatePath}/{authorizableId}/keystore/store.p12"); -- procedure Get_Keystore (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Impl : Implementation_Type; Intermediate_Path : Swagger.UString; Authorizable_Id : Swagger.UString; Result : Swagger.Http_Content_Type; begin Swagger.Servers.Get_Path_Parameter (Req, 1, Intermediate_Path); Swagger.Servers.Get_Path_Parameter (Req, 2, Authorizable_Id); Impl.Get_Keystore (Intermediate_Path, Authorizable_Id, Result, Context); if Context.Get_Status = 200 then Stream.Start_Document; .Models.Serialize (Stream, "", Result); Stream.End_Document; end if; end Get_Keystore; package API_Get_Node is new Swagger.Servers.Operation (Handler => Get_Node, Method => Swagger.Servers.GET, URI => URI_Prefix & "/{path}/{name}"); -- procedure Get_Node (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Impl : Implementation_Type; Path : Swagger.UString; Name : Swagger.UString; begin Swagger.Servers.Get_Path_Parameter (Req, 1, Path); Swagger.Servers.Get_Path_Parameter (Req, 2, Name); Impl.Get_Node (Path, Name, Context); end Get_Node; package API_Get_Package is new Swagger.Servers.Operation (Handler => Get_Package, Method => Swagger.Servers.GET, URI => URI_Prefix & "/etc/packages/{group}/{name}-{version}.zip"); -- procedure Get_Package (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Impl : Implementation_Type; Group : Swagger.UString; Name : Swagger.UString; Version : Swagger.UString; Result : Swagger.Http_Content_Type; begin Swagger.Servers.Get_Path_Parameter (Req, 1, Group); Swagger.Servers.Get_Path_Parameter (Req, 2, Name); Swagger.Servers.Get_Path_Parameter (Req, 3, Version); Impl.Get_Package (Group, Name, Version, Result, Context); if Context.Get_Status = 200 then Stream.Start_Document; .Models.Serialize (Stream, "", Result); Stream.End_Document; end if; end Get_Package; package API_Get_Package_Filter is new Swagger.Servers.Operation (Handler => Get_Package_Filter, Method => Swagger.Servers.GET, URI => URI_Prefix & "/etc/packages/{group}/{name}-{version}.zip/jcr:content/vlt:definition/filter.tidy.2.json"); -- procedure Get_Package_Filter (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Impl : Implementation_Type; Group : Swagger.UString; Name : Swagger.UString; Version : Swagger.UString; Result : Swagger.UString; begin Swagger.Servers.Get_Path_Parameter (Req, 1, Group); Swagger.Servers.Get_Path_Parameter (Req, 2, Name); Swagger.Servers.Get_Path_Parameter (Req, 3, Version); Impl.Get_Package_Filter (Group, Name, Version, Result, Context); if Context.Get_Status = 200 then Stream.Start_Document; Swagger.Streams.Serialize (Stream, "", Result); Stream.End_Document; end if; end Get_Package_Filter; package API_Get_Query is new Swagger.Servers.Operation (Handler => Get_Query, Method => Swagger.Servers.GET, URI => URI_Prefix & "/bin/querybuilder.json"); -- procedure Get_Query (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Impl : Implementation_Type; Path : Swagger.UString; P_Periodlimit : Swagger.Number; P_1Property : Swagger.UString; P_1Property_Periodvalue : Swagger.UString; Result : Swagger.UString; begin Swagger.Servers.Get_Query_Parameter (Req, "path", Path); Swagger.Servers.Get_Query_Parameter (Req, "p.limit", P_Periodlimit); Swagger.Servers.Get_Query_Parameter (Req, "1_property", P_1Property); Swagger.Servers.Get_Query_Parameter (Req, "1_property.value", P_1Property_Periodvalue); Impl.Get_Query (Path, P_Periodlimit, P_1Property, P_1Property_Periodvalue, Result, Context); if Context.Get_Status = 200 then Stream.Start_Document; Swagger.Streams.Serialize (Stream, "", Result); Stream.End_Document; end if; end Get_Query; package API_Get_Truststore is new Swagger.Servers.Operation (Handler => Get_Truststore, Method => Swagger.Servers.GET, URI => URI_Prefix & "/etc/truststore/truststore.p12"); -- procedure Get_Truststore (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Impl : Implementation_Type; Result : Swagger.Http_Content_Type; begin Impl.Get_Truststore (Result, Context); if Context.Get_Status = 200 then Stream.Start_Document; .Models.Serialize (Stream, "", Result); Stream.End_Document; end if; end Get_Truststore; package API_Get_Truststore_Info is new Swagger.Servers.Operation (Handler => Get_Truststore_Info, Method => Swagger.Servers.GET, URI => URI_Prefix & "/libs/granite/security/truststore.json"); -- procedure Get_Truststore_Info (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Impl : Implementation_Type; Result : .Models.TruststoreInfo_Type; begin Impl.Get_Truststore_Info (Result, Context); if Context.Get_Status = 200 then Stream.Start_Document; .Models.Serialize (Stream, "", Result); Stream.End_Document; end if; end Get_Truststore_Info; package API_Post_Agent is new Swagger.Servers.Operation (Handler => Post_Agent, Method => Swagger.Servers.POST, URI => URI_Prefix & "/etc/replication/agents.{runmode}/{name}"); -- procedure Post_Agent (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Impl : Implementation_Type; Runmode : Swagger.UString; Name : Swagger.UString; Jcr_Content_Slashcq_Distribute : Swagger.Nullable_Boolean; Jcr_Content_Slashcq_Distribute_At_Type_Hint : Swagger.Nullable_UString; Jcr_Content_Slashcq_Name : Swagger.Nullable_UString; Jcr_Content_Slashcq_Template : Swagger.Nullable_UString; Jcr_Content_Slashenabled : Swagger.Nullable_Boolean; Jcr_Content_Slashjcr_Description : Swagger.Nullable_UString; Jcr_Content_Slashjcr_Last_Modified : Swagger.Nullable_UString; Jcr_Content_Slashjcr_Last_Modified_By : Swagger.Nullable_UString; Jcr_Content_Slashjcr_Mixin_Types : Swagger.Nullable_UString; Jcr_Content_Slashjcr_Title : Swagger.Nullable_UString; Jcr_Content_Slashlog_Level : Swagger.Nullable_UString; Jcr_Content_Slashno_Status_Update : Swagger.Nullable_Boolean; Jcr_Content_Slashno_Versioning : Swagger.Nullable_Boolean; Jcr_Content_Slashprotocol_Connect_Timeout : Swagger.Number; Jcr_Content_Slashprotocol_HTTPConnection_Closed : Swagger.Nullable_Boolean; Jcr_Content_Slashprotocol_HTTPExpired : Swagger.Nullable_UString; Jcr_Content_Slashprotocol_HTTPHeaders : Swagger.UString_Vectors.Vector; Jcr_Content_Slashprotocol_HTTPHeaders_At_Type_Hint : Swagger.Nullable_UString; Jcr_Content_Slashprotocol_HTTPMethod : Swagger.Nullable_UString; Jcr_Content_Slashprotocol_HTTPSRelaxed : Swagger.Nullable_Boolean; Jcr_Content_Slashprotocol_Interface : Swagger.Nullable_UString; Jcr_Content_Slashprotocol_Socket_Timeout : Swagger.Number; Jcr_Content_Slashprotocol_Version : Swagger.Nullable_UString; Jcr_Content_Slashproxy_NTLMDomain : Swagger.Nullable_UString; Jcr_Content_Slashproxy_NTLMHost : Swagger.Nullable_UString; Jcr_Content_Slashproxy_Host : Swagger.Nullable_UString; Jcr_Content_Slashproxy_Password : Swagger.Nullable_UString; Jcr_Content_Slashproxy_Port : Swagger.Number; Jcr_Content_Slashproxy_User : Swagger.Nullable_UString; Jcr_Content_Slashqueue_Batch_Max_Size : Swagger.Number; Jcr_Content_Slashqueue_Batch_Mode : Swagger.Nullable_UString; Jcr_Content_Slashqueue_Batch_Wait_Time : Swagger.Number; Jcr_Content_Slashretry_Delay : Swagger.Nullable_UString; Jcr_Content_Slashreverse_Replication : Swagger.Nullable_Boolean; Jcr_Content_Slashserialization_Type : Swagger.Nullable_UString; Jcr_Content_Slashsling_Resource_Type : Swagger.Nullable_UString; Jcr_Content_Slashssl : Swagger.Nullable_UString; Jcr_Content_Slashtransport_NTLMDomain : Swagger.Nullable_UString; Jcr_Content_Slashtransport_NTLMHost : Swagger.Nullable_UString; Jcr_Content_Slashtransport_Password : Swagger.Nullable_UString; Jcr_Content_Slashtransport_Uri : Swagger.Nullable_UString; Jcr_Content_Slashtransport_User : Swagger.Nullable_UString; Jcr_Content_Slashtrigger_Distribute : Swagger.Nullable_Boolean; Jcr_Content_Slashtrigger_Modified : Swagger.Nullable_Boolean; Jcr_Content_Slashtrigger_On_Off_Time : Swagger.Nullable_Boolean; Jcr_Content_Slashtrigger_Receive : Swagger.Nullable_Boolean; Jcr_Content_Slashtrigger_Specific : Swagger.Nullable_Boolean; Jcr_Content_Slashuser_Id : Swagger.Nullable_UString; Jcr_Primary_Type : Swagger.Nullable_UString; Operation : Swagger.Nullable_UString; begin Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/cq:distribute", Jcr_Content_Slashcq_Distribute); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/cq:distribute@TypeHint", Jcr_Content_Slashcq_Distribute_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/cq:name", Jcr_Content_Slashcq_Name); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/cq:template", Jcr_Content_Slashcq_Template); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/enabled", Jcr_Content_Slashenabled); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/jcr:description", Jcr_Content_Slashjcr_Description); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/jcr:lastModified", Jcr_Content_Slashjcr_Last_Modified); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/jcr:lastModifiedBy", Jcr_Content_Slashjcr_Last_Modified_By); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/jcr:mixinTypes", Jcr_Content_Slashjcr_Mixin_Types); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/jcr:title", Jcr_Content_Slashjcr_Title); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/logLevel", Jcr_Content_Slashlog_Level); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/noStatusUpdate", Jcr_Content_Slashno_Status_Update); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/noVersioning", Jcr_Content_Slashno_Versioning); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/protocolConnectTimeout", Jcr_Content_Slashprotocol_Connect_Timeout); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/protocolHTTPConnectionClosed", Jcr_Content_Slashprotocol_HTTPConnection_Closed); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/protocolHTTPExpired", Jcr_Content_Slashprotocol_HTTPExpired); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/protocolHTTPHeaders", Jcr_Content_Slashprotocol_HTTPHeaders); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/protocolHTTPHeaders@TypeHint", Jcr_Content_Slashprotocol_HTTPHeaders_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/protocolHTTPMethod", Jcr_Content_Slashprotocol_HTTPMethod); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/protocolHTTPSRelaxed", Jcr_Content_Slashprotocol_HTTPSRelaxed); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/protocolInterface", Jcr_Content_Slashprotocol_Interface); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/protocolSocketTimeout", Jcr_Content_Slashprotocol_Socket_Timeout); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/protocolVersion", Jcr_Content_Slashprotocol_Version); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/proxyNTLMDomain", Jcr_Content_Slashproxy_NTLMDomain); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/proxyNTLMHost", Jcr_Content_Slashproxy_NTLMHost); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/proxyHost", Jcr_Content_Slashproxy_Host); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/proxyPassword", Jcr_Content_Slashproxy_Password); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/proxyPort", Jcr_Content_Slashproxy_Port); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/proxyUser", Jcr_Content_Slashproxy_User); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/queueBatchMaxSize", Jcr_Content_Slashqueue_Batch_Max_Size); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/queueBatchMode", Jcr_Content_Slashqueue_Batch_Mode); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/queueBatchWaitTime", Jcr_Content_Slashqueue_Batch_Wait_Time); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/retryDelay", Jcr_Content_Slashretry_Delay); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/reverseReplication", Jcr_Content_Slashreverse_Replication); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/serializationType", Jcr_Content_Slashserialization_Type); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/sling:resourceType", Jcr_Content_Slashsling_Resource_Type); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/ssl", Jcr_Content_Slashssl); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/transportNTLMDomain", Jcr_Content_Slashtransport_NTLMDomain); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/transportNTLMHost", Jcr_Content_Slashtransport_NTLMHost); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/transportPassword", Jcr_Content_Slashtransport_Password); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/transportUri", Jcr_Content_Slashtransport_Uri); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/transportUser", Jcr_Content_Slashtransport_User); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/triggerDistribute", Jcr_Content_Slashtrigger_Distribute); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/triggerModified", Jcr_Content_Slashtrigger_Modified); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/triggerOnOffTime", Jcr_Content_Slashtrigger_On_Off_Time); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/triggerReceive", Jcr_Content_Slashtrigger_Receive); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/triggerSpecific", Jcr_Content_Slashtrigger_Specific); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/userId", Jcr_Content_Slashuser_Id); Swagger.Servers.Get_Query_Parameter (Req, "jcr:primaryType", Jcr_Primary_Type); Swagger.Servers.Get_Query_Parameter (Req, ":operation", Operation); Swagger.Servers.Get_Path_Parameter (Req, 1, Runmode); Swagger.Servers.Get_Path_Parameter (Req, 2, Name); Impl.Post_Agent (Runmode, Name, Jcr_Content_Slashcq_Distribute, Jcr_Content_Slashcq_Distribute_At_Type_Hint, Jcr_Content_Slashcq_Name, Jcr_Content_Slashcq_Template, Jcr_Content_Slashenabled, Jcr_Content_Slashjcr_Description, Jcr_Content_Slashjcr_Last_Modified, Jcr_Content_Slashjcr_Last_Modified_By, Jcr_Content_Slashjcr_Mixin_Types, Jcr_Content_Slashjcr_Title, Jcr_Content_Slashlog_Level, Jcr_Content_Slashno_Status_Update, Jcr_Content_Slashno_Versioning, Jcr_Content_Slashprotocol_Connect_Timeout, Jcr_Content_Slashprotocol_HTTPConnection_Closed, Jcr_Content_Slashprotocol_HTTPExpired, Jcr_Content_Slashprotocol_HTTPHeaders, Jcr_Content_Slashprotocol_HTTPHeaders_At_Type_Hint, Jcr_Content_Slashprotocol_HTTPMethod, Jcr_Content_Slashprotocol_HTTPSRelaxed, Jcr_Content_Slashprotocol_Interface, Jcr_Content_Slashprotocol_Socket_Timeout, Jcr_Content_Slashprotocol_Version, Jcr_Content_Slashproxy_NTLMDomain, Jcr_Content_Slashproxy_NTLMHost, Jcr_Content_Slashproxy_Host, Jcr_Content_Slashproxy_Password, Jcr_Content_Slashproxy_Port, Jcr_Content_Slashproxy_User, Jcr_Content_Slashqueue_Batch_Max_Size, Jcr_Content_Slashqueue_Batch_Mode, Jcr_Content_Slashqueue_Batch_Wait_Time, Jcr_Content_Slashretry_Delay, Jcr_Content_Slashreverse_Replication, Jcr_Content_Slashserialization_Type, Jcr_Content_Slashsling_Resource_Type, Jcr_Content_Slashssl, Jcr_Content_Slashtransport_NTLMDomain, Jcr_Content_Slashtransport_NTLMHost, Jcr_Content_Slashtransport_Password, Jcr_Content_Slashtransport_Uri, Jcr_Content_Slashtransport_User, Jcr_Content_Slashtrigger_Distribute, Jcr_Content_Slashtrigger_Modified, Jcr_Content_Slashtrigger_On_Off_Time, Jcr_Content_Slashtrigger_Receive, Jcr_Content_Slashtrigger_Specific, Jcr_Content_Slashuser_Id, Jcr_Primary_Type, Operation, Context); end Post_Agent; package API_Post_Authorizable_Keystore is new Swagger.Servers.Operation (Handler => Post_Authorizable_Keystore, Method => Swagger.Servers.POST, URI => URI_Prefix & "/{intermediatePath}/{authorizableId}.ks.html"); -- procedure Post_Authorizable_Keystore (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Impl : Implementation_Type; Intermediate_Path : Swagger.UString; Authorizable_Id : Swagger.UString; Operation : Swagger.Nullable_UString; Current_Password : Swagger.Nullable_UString; New_Password : Swagger.Nullable_UString; Re_Password : Swagger.Nullable_UString; Key_Password : Swagger.Nullable_UString; Key_Store_Pass : Swagger.Nullable_UString; Alias : Swagger.Nullable_UString; New_Alias : Swagger.Nullable_UString; Remove_Alias : Swagger.Nullable_UString; Cert_Chain : Swagger.File_Part_Type; Pk : Swagger.File_Part_Type; Key_Store : Swagger.File_Part_Type; Result : .Models.KeystoreInfo_Type; begin Swagger.Servers.Get_Query_Parameter (Req, ":operation", Operation); Swagger.Servers.Get_Query_Parameter (Req, "currentPassword", Current_Password); Swagger.Servers.Get_Query_Parameter (Req, "newPassword", New_Password); Swagger.Servers.Get_Query_Parameter (Req, "rePassword", Re_Password); Swagger.Servers.Get_Query_Parameter (Req, "keyPassword", Key_Password); Swagger.Servers.Get_Query_Parameter (Req, "keyStorePass", Key_Store_Pass); Swagger.Servers.Get_Query_Parameter (Req, "alias", Alias); Swagger.Servers.Get_Query_Parameter (Req, "newAlias", New_Alias); Swagger.Servers.Get_Query_Parameter (Req, "removeAlias", Remove_Alias); Swagger.Servers.Get_Path_Parameter (Req, 1, Intermediate_Path); Swagger.Servers.Get_Path_Parameter (Req, 2, Authorizable_Id); Swagger.Servers.Get_Parameter (Context, "cert-chain", Cert_Chain); Swagger.Servers.Get_Parameter (Context, "pk", Pk); Swagger.Servers.Get_Parameter (Context, "keyStore", Key_Store); Impl.Post_Authorizable_Keystore (Intermediate_Path, Authorizable_Id, Operation, Current_Password, New_Password, Re_Password, Key_Password, Key_Store_Pass, Alias, New_Alias, Remove_Alias, Cert_Chain, Pk, Key_Store, Result, Context); if Context.Get_Status = 200 then Stream.Start_Document; .Models.Serialize (Stream, "", Result); Stream.End_Document; end if; end Post_Authorizable_Keystore; package API_Post_Authorizables is new Swagger.Servers.Operation (Handler => Post_Authorizables, Method => Swagger.Servers.POST, URI => URI_Prefix & "/libs/granite/security/post/authorizables"); -- procedure Post_Authorizables (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Impl : Implementation_Type; Authorizable_Id : Swagger.UString; Intermediate_Path : Swagger.UString; Create_User : Swagger.Nullable_UString; Create_Group : Swagger.Nullable_UString; Rep_Password : Swagger.Nullable_UString; Profile_Slashgiven_Name : Swagger.Nullable_UString; Result : Swagger.UString; begin Swagger.Servers.Get_Query_Parameter (Req, "authorizableId", Authorizable_Id); Swagger.Servers.Get_Query_Parameter (Req, "intermediatePath", Intermediate_Path); Swagger.Servers.Get_Query_Parameter (Req, "createUser", Create_User); Swagger.Servers.Get_Query_Parameter (Req, "createGroup", Create_Group); Swagger.Servers.Get_Query_Parameter (Req, "rep:password", Rep_Password); Swagger.Servers.Get_Query_Parameter (Req, "profile/givenName", Profile_Slashgiven_Name); Impl.Post_Authorizables (Authorizable_Id, Intermediate_Path, Create_User, Create_Group, Rep_Password, Profile_Slashgiven_Name, Result, Context); if Context.Get_Status = 200 then Stream.Start_Document; Swagger.Streams.Serialize (Stream, "", Result); Stream.End_Document; end if; end Post_Authorizables; package API_Post_Config_Adobe_Granite_Saml_Authentication_Handler is new Swagger.Servers.Operation (Handler => Post_Config_Adobe_Granite_Saml_Authentication_Handler, Method => Swagger.Servers.POST, URI => URI_Prefix & "/apps/system/config/com.adobe.granite.auth.saml.SamlAuthenticationHandler.config"); -- procedure Post_Config_Adobe_Granite_Saml_Authentication_Handler (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Impl : Implementation_Type; Key_Store_Password : Swagger.Nullable_UString; Key_Store_Password_At_Type_Hint : Swagger.Nullable_UString; Service_Periodranking : Swagger.Nullable_Integer; Service_Periodranking_At_Type_Hint : Swagger.Nullable_UString; Idp_Http_Redirect : Swagger.Nullable_Boolean; Idp_Http_Redirect_At_Type_Hint : Swagger.Nullable_UString; Create_User : Swagger.Nullable_Boolean; Create_User_At_Type_Hint : Swagger.Nullable_UString; Default_Redirect_Url : Swagger.Nullable_UString; Default_Redirect_Url_At_Type_Hint : Swagger.Nullable_UString; User_IDAttribute : Swagger.Nullable_UString; User_IDAttribute_At_Type_Hint : Swagger.Nullable_UString; Default_Groups : Swagger.UString_Vectors.Vector; Default_Groups_At_Type_Hint : Swagger.Nullable_UString; Idp_Cert_Alias : Swagger.Nullable_UString; Idp_Cert_Alias_At_Type_Hint : Swagger.Nullable_UString; Add_Group_Memberships : Swagger.Nullable_Boolean; Add_Group_Memberships_At_Type_Hint : Swagger.Nullable_UString; Path : Swagger.UString_Vectors.Vector; Path_At_Type_Hint : Swagger.Nullable_UString; Synchronize_Attributes : Swagger.UString_Vectors.Vector; Synchronize_Attributes_At_Type_Hint : Swagger.Nullable_UString; Clock_Tolerance : Swagger.Nullable_Integer; Clock_Tolerance_At_Type_Hint : Swagger.Nullable_UString; Group_Membership_Attribute : Swagger.Nullable_UString; Group_Membership_Attribute_At_Type_Hint : Swagger.Nullable_UString; Idp_Url : Swagger.Nullable_UString; Idp_Url_At_Type_Hint : Swagger.Nullable_UString; Logout_Url : Swagger.Nullable_UString; Logout_Url_At_Type_Hint : Swagger.Nullable_UString; Service_Provider_Entity_Id : Swagger.Nullable_UString; Service_Provider_Entity_Id_At_Type_Hint : Swagger.Nullable_UString; Assertion_Consumer_Service_URL : Swagger.Nullable_UString; Assertion_Consumer_Service_URLAt_Type_Hint : Swagger.Nullable_UString; Handle_Logout : Swagger.Nullable_Boolean; Handle_Logout_At_Type_Hint : Swagger.Nullable_UString; Sp_Private_Key_Alias : Swagger.Nullable_UString; Sp_Private_Key_Alias_At_Type_Hint : Swagger.Nullable_UString; Use_Encryption : Swagger.Nullable_Boolean; Use_Encryption_At_Type_Hint : Swagger.Nullable_UString; Name_Id_Format : Swagger.Nullable_UString; Name_Id_Format_At_Type_Hint : Swagger.Nullable_UString; Digest_Method : Swagger.Nullable_UString; Digest_Method_At_Type_Hint : Swagger.Nullable_UString; Signature_Method : Swagger.Nullable_UString; Signature_Method_At_Type_Hint : Swagger.Nullable_UString; User_Intermediate_Path : Swagger.Nullable_UString; User_Intermediate_Path_At_Type_Hint : Swagger.Nullable_UString; begin Swagger.Servers.Get_Query_Parameter (Req, "keyStorePassword", Key_Store_Password); Swagger.Servers.Get_Query_Parameter (Req, "keyStorePassword@TypeHint", Key_Store_Password_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "service.ranking", Service_Periodranking); Swagger.Servers.Get_Query_Parameter (Req, "service.ranking@TypeHint", Service_Periodranking_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "idpHttpRedirect", Idp_Http_Redirect); Swagger.Servers.Get_Query_Parameter (Req, "idpHttpRedirect@TypeHint", Idp_Http_Redirect_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "createUser", Create_User); Swagger.Servers.Get_Query_Parameter (Req, "createUser@TypeHint", Create_User_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "defaultRedirectUrl", Default_Redirect_Url); Swagger.Servers.Get_Query_Parameter (Req, "defaultRedirectUrl@TypeHint", Default_Redirect_Url_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "userIDAttribute", User_IDAttribute); Swagger.Servers.Get_Query_Parameter (Req, "userIDAttribute@TypeHint", User_IDAttribute_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "defaultGroups", Default_Groups); Swagger.Servers.Get_Query_Parameter (Req, "defaultGroups@TypeHint", Default_Groups_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "idpCertAlias", Idp_Cert_Alias); Swagger.Servers.Get_Query_Parameter (Req, "idpCertAlias@TypeHint", Idp_Cert_Alias_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "addGroupMemberships", Add_Group_Memberships); Swagger.Servers.Get_Query_Parameter (Req, "addGroupMemberships@TypeHint", Add_Group_Memberships_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "path", Path); Swagger.Servers.Get_Query_Parameter (Req, "path@TypeHint", Path_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "synchronizeAttributes", Synchronize_Attributes); Swagger.Servers.Get_Query_Parameter (Req, "synchronizeAttributes@TypeHint", Synchronize_Attributes_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "clockTolerance", Clock_Tolerance); Swagger.Servers.Get_Query_Parameter (Req, "clockTolerance@TypeHint", Clock_Tolerance_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "groupMembershipAttribute", Group_Membership_Attribute); Swagger.Servers.Get_Query_Parameter (Req, "groupMembershipAttribute@TypeHint", Group_Membership_Attribute_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "idpUrl", Idp_Url); Swagger.Servers.Get_Query_Parameter (Req, "idpUrl@TypeHint", Idp_Url_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "logoutUrl", Logout_Url); Swagger.Servers.Get_Query_Parameter (Req, "logoutUrl@TypeHint", Logout_Url_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "serviceProviderEntityId", Service_Provider_Entity_Id); Swagger.Servers.Get_Query_Parameter (Req, "serviceProviderEntityId@TypeHint", Service_Provider_Entity_Id_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "assertionConsumerServiceURL", Assertion_Consumer_Service_URL); Swagger.Servers.Get_Query_Parameter (Req, "assertionConsumerServiceURL@TypeHint", Assertion_Consumer_Service_URLAt_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "handleLogout", Handle_Logout); Swagger.Servers.Get_Query_Parameter (Req, "handleLogout@TypeHint", Handle_Logout_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "spPrivateKeyAlias", Sp_Private_Key_Alias); Swagger.Servers.Get_Query_Parameter (Req, "spPrivateKeyAlias@TypeHint", Sp_Private_Key_Alias_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "useEncryption", Use_Encryption); Swagger.Servers.Get_Query_Parameter (Req, "useEncryption@TypeHint", Use_Encryption_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "nameIdFormat", Name_Id_Format); Swagger.Servers.Get_Query_Parameter (Req, "nameIdFormat@TypeHint", Name_Id_Format_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "digestMethod", Digest_Method); Swagger.Servers.Get_Query_Parameter (Req, "digestMethod@TypeHint", Digest_Method_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "signatureMethod", Signature_Method); Swagger.Servers.Get_Query_Parameter (Req, "signatureMethod@TypeHint", Signature_Method_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "userIntermediatePath", User_Intermediate_Path); Swagger.Servers.Get_Query_Parameter (Req, "userIntermediatePath@TypeHint", User_Intermediate_Path_At_Type_Hint); Impl.Post_Config_Adobe_Granite_Saml_Authentication_Handler (Key_Store_Password, Key_Store_Password_At_Type_Hint, Service_Periodranking, Service_Periodranking_At_Type_Hint, Idp_Http_Redirect, Idp_Http_Redirect_At_Type_Hint, Create_User, Create_User_At_Type_Hint, Default_Redirect_Url, Default_Redirect_Url_At_Type_Hint, User_IDAttribute, User_IDAttribute_At_Type_Hint, Default_Groups, Default_Groups_At_Type_Hint, Idp_Cert_Alias, Idp_Cert_Alias_At_Type_Hint, Add_Group_Memberships, Add_Group_Memberships_At_Type_Hint, Path, Path_At_Type_Hint, Synchronize_Attributes, Synchronize_Attributes_At_Type_Hint, Clock_Tolerance, Clock_Tolerance_At_Type_Hint, Group_Membership_Attribute, Group_Membership_Attribute_At_Type_Hint, Idp_Url, Idp_Url_At_Type_Hint, Logout_Url, Logout_Url_At_Type_Hint, Service_Provider_Entity_Id, Service_Provider_Entity_Id_At_Type_Hint, Assertion_Consumer_Service_URL, Assertion_Consumer_Service_URLAt_Type_Hint, Handle_Logout, Handle_Logout_At_Type_Hint, Sp_Private_Key_Alias, Sp_Private_Key_Alias_At_Type_Hint, Use_Encryption, Use_Encryption_At_Type_Hint, Name_Id_Format, Name_Id_Format_At_Type_Hint, Digest_Method, Digest_Method_At_Type_Hint, Signature_Method, Signature_Method_At_Type_Hint, User_Intermediate_Path, User_Intermediate_Path_At_Type_Hint, Context); end Post_Config_Adobe_Granite_Saml_Authentication_Handler; package API_Post_Config_Apache_Felix_Jetty_Based_Http_Service is new Swagger.Servers.Operation (Handler => Post_Config_Apache_Felix_Jetty_Based_Http_Service, Method => Swagger.Servers.POST, URI => URI_Prefix & "/apps/system/config/org.apache.felix.http"); -- procedure Post_Config_Apache_Felix_Jetty_Based_Http_Service (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Impl : Implementation_Type; Org_Periodapache_Periodfelix_Periodhttps_Periodnio : Swagger.Nullable_Boolean; Org_Periodapache_Periodfelix_Periodhttps_Periodnio_At_Type_Hint : Swagger.Nullable_UString; Org_Periodapache_Periodfelix_Periodhttps_Periodkeystore : Swagger.Nullable_UString; Org_Periodapache_Periodfelix_Periodhttps_Periodkeystore_At_Type_Hint : Swagger.Nullable_UString; Org_Periodapache_Periodfelix_Periodhttps_Periodkeystore_Periodpassword : Swagger.Nullable_UString; Org_Periodapache_Periodfelix_Periodhttps_Periodkeystore_Periodpassword_At_Type_Hint : Swagger.Nullable_UString; Org_Periodapache_Periodfelix_Periodhttps_Periodkeystore_Periodkey : Swagger.Nullable_UString; Org_Periodapache_Periodfelix_Periodhttps_Periodkeystore_Periodkey_At_Type_Hint : Swagger.Nullable_UString; Org_Periodapache_Periodfelix_Periodhttps_Periodkeystore_Periodkey_Periodpassword : Swagger.Nullable_UString; Org_Periodapache_Periodfelix_Periodhttps_Periodkeystore_Periodkey_Periodpassword_At_Type_Hint : Swagger.Nullable_UString; Org_Periodapache_Periodfelix_Periodhttps_Periodtruststore : Swagger.Nullable_UString; Org_Periodapache_Periodfelix_Periodhttps_Periodtruststore_At_Type_Hint : Swagger.Nullable_UString; Org_Periodapache_Periodfelix_Periodhttps_Periodtruststore_Periodpassword : Swagger.Nullable_UString; Org_Periodapache_Periodfelix_Periodhttps_Periodtruststore_Periodpassword_At_Type_Hint : Swagger.Nullable_UString; Org_Periodapache_Periodfelix_Periodhttps_Periodclientcertificate : Swagger.Nullable_UString; Org_Periodapache_Periodfelix_Periodhttps_Periodclientcertificate_At_Type_Hint : Swagger.Nullable_UString; Org_Periodapache_Periodfelix_Periodhttps_Periodenable : Swagger.Nullable_Boolean; Org_Periodapache_Periodfelix_Periodhttps_Periodenable_At_Type_Hint : Swagger.Nullable_UString; Org_Periodosgi_Periodservice_Periodhttp_Periodport_Periodsecure : Swagger.Nullable_UString; Org_Periodosgi_Periodservice_Periodhttp_Periodport_Periodsecure_At_Type_Hint : Swagger.Nullable_UString; begin Swagger.Servers.Get_Query_Parameter (Req, "org.apache.felix.https.nio", Org_Periodapache_Periodfelix_Periodhttps_Periodnio); Swagger.Servers.Get_Query_Parameter (Req, "org.apache.felix.https.nio@TypeHint", Org_Periodapache_Periodfelix_Periodhttps_Periodnio_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "org.apache.felix.https.keystore", Org_Periodapache_Periodfelix_Periodhttps_Periodkeystore); Swagger.Servers.Get_Query_Parameter (Req, "org.apache.felix.https.keystore@TypeHint", Org_Periodapache_Periodfelix_Periodhttps_Periodkeystore_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "org.apache.felix.https.keystore.password", Org_Periodapache_Periodfelix_Periodhttps_Periodkeystore_Periodpassword); Swagger.Servers.Get_Query_Parameter (Req, "org.apache.felix.https.keystore.password@TypeHint", Org_Periodapache_Periodfelix_Periodhttps_Periodkeystore_Periodpassword_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "org.apache.felix.https.keystore.key", Org_Periodapache_Periodfelix_Periodhttps_Periodkeystore_Periodkey); Swagger.Servers.Get_Query_Parameter (Req, "org.apache.felix.https.keystore.key@TypeHint", Org_Periodapache_Periodfelix_Periodhttps_Periodkeystore_Periodkey_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "org.apache.felix.https.keystore.key.password", Org_Periodapache_Periodfelix_Periodhttps_Periodkeystore_Periodkey_Periodpassword); Swagger.Servers.Get_Query_Parameter (Req, "org.apache.felix.https.keystore.key.password@TypeHint", Org_Periodapache_Periodfelix_Periodhttps_Periodkeystore_Periodkey_Periodpassword_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "org.apache.felix.https.truststore", Org_Periodapache_Periodfelix_Periodhttps_Periodtruststore); Swagger.Servers.Get_Query_Parameter (Req, "org.apache.felix.https.truststore@TypeHint", Org_Periodapache_Periodfelix_Periodhttps_Periodtruststore_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "org.apache.felix.https.truststore.password", Org_Periodapache_Periodfelix_Periodhttps_Periodtruststore_Periodpassword); Swagger.Servers.Get_Query_Parameter (Req, "org.apache.felix.https.truststore.password@TypeHint", Org_Periodapache_Periodfelix_Periodhttps_Periodtruststore_Periodpassword_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "org.apache.felix.https.clientcertificate", Org_Periodapache_Periodfelix_Periodhttps_Periodclientcertificate); Swagger.Servers.Get_Query_Parameter (Req, "org.apache.felix.https.clientcertificate@TypeHint", Org_Periodapache_Periodfelix_Periodhttps_Periodclientcertificate_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "org.apache.felix.https.enable", Org_Periodapache_Periodfelix_Periodhttps_Periodenable); Swagger.Servers.Get_Query_Parameter (Req, "org.apache.felix.https.enable@TypeHint", Org_Periodapache_Periodfelix_Periodhttps_Periodenable_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "org.osgi.service.http.port.secure", Org_Periodosgi_Periodservice_Periodhttp_Periodport_Periodsecure); Swagger.Servers.Get_Query_Parameter (Req, "org.osgi.service.http.port.secure@TypeHint", Org_Periodosgi_Periodservice_Periodhttp_Periodport_Periodsecure_At_Type_Hint); Impl.Post_Config_Apache_Felix_Jetty_Based_Http_Service (Org_Periodapache_Periodfelix_Periodhttps_Periodnio, Org_Periodapache_Periodfelix_Periodhttps_Periodnio_At_Type_Hint, Org_Periodapache_Periodfelix_Periodhttps_Periodkeystore, Org_Periodapache_Periodfelix_Periodhttps_Periodkeystore_At_Type_Hint, Org_Periodapache_Periodfelix_Periodhttps_Periodkeystore_Periodpassword, Org_Periodapache_Periodfelix_Periodhttps_Periodkeystore_Periodpassword_At_Type_Hint, Org_Periodapache_Periodfelix_Periodhttps_Periodkeystore_Periodkey, Org_Periodapache_Periodfelix_Periodhttps_Periodkeystore_Periodkey_At_Type_Hint, Org_Periodapache_Periodfelix_Periodhttps_Periodkeystore_Periodkey_Periodpassword, Org_Periodapache_Periodfelix_Periodhttps_Periodkeystore_Periodkey_Periodpassword_At_Type_Hint, Org_Periodapache_Periodfelix_Periodhttps_Periodtruststore, Org_Periodapache_Periodfelix_Periodhttps_Periodtruststore_At_Type_Hint, Org_Periodapache_Periodfelix_Periodhttps_Periodtruststore_Periodpassword, Org_Periodapache_Periodfelix_Periodhttps_Periodtruststore_Periodpassword_At_Type_Hint, Org_Periodapache_Periodfelix_Periodhttps_Periodclientcertificate, Org_Periodapache_Periodfelix_Periodhttps_Periodclientcertificate_At_Type_Hint, Org_Periodapache_Periodfelix_Periodhttps_Periodenable, Org_Periodapache_Periodfelix_Periodhttps_Periodenable_At_Type_Hint, Org_Periodosgi_Periodservice_Periodhttp_Periodport_Periodsecure, Org_Periodosgi_Periodservice_Periodhttp_Periodport_Periodsecure_At_Type_Hint, Context); end Post_Config_Apache_Felix_Jetty_Based_Http_Service; package API_Post_Config_Apache_Http_Components_Proxy_Configuration is new Swagger.Servers.Operation (Handler => Post_Config_Apache_Http_Components_Proxy_Configuration, Method => Swagger.Servers.POST, URI => URI_Prefix & "/apps/system/config/org.apache.http.proxyconfigurator.config"); -- procedure Post_Config_Apache_Http_Components_Proxy_Configuration (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Impl : Implementation_Type; Proxy_Periodhost : Swagger.Nullable_UString; Proxy_Periodhost_At_Type_Hint : Swagger.Nullable_UString; Proxy_Periodport : Swagger.Nullable_Integer; Proxy_Periodport_At_Type_Hint : Swagger.Nullable_UString; Proxy_Periodexceptions : Swagger.UString_Vectors.Vector; Proxy_Periodexceptions_At_Type_Hint : Swagger.Nullable_UString; Proxy_Periodenabled : Swagger.Nullable_Boolean; Proxy_Periodenabled_At_Type_Hint : Swagger.Nullable_UString; Proxy_Perioduser : Swagger.Nullable_UString; Proxy_Perioduser_At_Type_Hint : Swagger.Nullable_UString; Proxy_Periodpassword : Swagger.Nullable_UString; Proxy_Periodpassword_At_Type_Hint : Swagger.Nullable_UString; begin Swagger.Servers.Get_Query_Parameter (Req, "proxy.host", Proxy_Periodhost); Swagger.Servers.Get_Query_Parameter (Req, "proxy.host@TypeHint", Proxy_Periodhost_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "proxy.port", Proxy_Periodport); Swagger.Servers.Get_Query_Parameter (Req, "proxy.port@TypeHint", Proxy_Periodport_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "proxy.exceptions", Proxy_Periodexceptions); Swagger.Servers.Get_Query_Parameter (Req, "proxy.exceptions@TypeHint", Proxy_Periodexceptions_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "proxy.enabled", Proxy_Periodenabled); Swagger.Servers.Get_Query_Parameter (Req, "proxy.enabled@TypeHint", Proxy_Periodenabled_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "proxy.user", Proxy_Perioduser); Swagger.Servers.Get_Query_Parameter (Req, "proxy.user@TypeHint", Proxy_Perioduser_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "proxy.password", Proxy_Periodpassword); Swagger.Servers.Get_Query_Parameter (Req, "proxy.password@TypeHint", Proxy_Periodpassword_At_Type_Hint); Impl.Post_Config_Apache_Http_Components_Proxy_Configuration (Proxy_Periodhost, Proxy_Periodhost_At_Type_Hint, Proxy_Periodport, Proxy_Periodport_At_Type_Hint, Proxy_Periodexceptions, Proxy_Periodexceptions_At_Type_Hint, Proxy_Periodenabled, Proxy_Periodenabled_At_Type_Hint, Proxy_Perioduser, Proxy_Perioduser_At_Type_Hint, Proxy_Periodpassword, Proxy_Periodpassword_At_Type_Hint, Context); end Post_Config_Apache_Http_Components_Proxy_Configuration; package API_Post_Config_Apache_Sling_Dav_Ex_Servlet is new Swagger.Servers.Operation (Handler => Post_Config_Apache_Sling_Dav_Ex_Servlet, Method => Swagger.Servers.POST, URI => URI_Prefix & "/apps/system/config/org.apache.sling.jcr.davex.impl.servlets.SlingDavExServlet"); -- procedure Post_Config_Apache_Sling_Dav_Ex_Servlet (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Impl : Implementation_Type; Alias : Swagger.Nullable_UString; Alias_At_Type_Hint : Swagger.Nullable_UString; Dav_Periodcreate_Absolute_Uri : Swagger.Nullable_Boolean; Dav_Periodcreate_Absolute_Uri_At_Type_Hint : Swagger.Nullable_UString; begin Swagger.Servers.Get_Query_Parameter (Req, "alias", Alias); Swagger.Servers.Get_Query_Parameter (Req, "alias@TypeHint", Alias_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "dav.create-absolute-uri", Dav_Periodcreate_Absolute_Uri); Swagger.Servers.Get_Query_Parameter (Req, "dav.create-absolute-uri@TypeHint", Dav_Periodcreate_Absolute_Uri_At_Type_Hint); Impl.Post_Config_Apache_Sling_Dav_Ex_Servlet (Alias, Alias_At_Type_Hint, Dav_Periodcreate_Absolute_Uri, Dav_Periodcreate_Absolute_Uri_At_Type_Hint, Context); end Post_Config_Apache_Sling_Dav_Ex_Servlet; package API_Post_Config_Apache_Sling_Get_Servlet is new Swagger.Servers.Operation (Handler => Post_Config_Apache_Sling_Get_Servlet, Method => Swagger.Servers.POST, URI => URI_Prefix & "/apps/system/config/org.apache.sling.servlets.get.DefaultGetServlet"); -- procedure Post_Config_Apache_Sling_Get_Servlet (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Impl : Implementation_Type; Json_Periodmaximumresults : Swagger.Nullable_UString; Json_Periodmaximumresults_At_Type_Hint : Swagger.Nullable_UString; Enable_Periodhtml : Swagger.Nullable_Boolean; Enable_Periodhtml_At_Type_Hint : Swagger.Nullable_UString; Enable_Periodtxt : Swagger.Nullable_Boolean; Enable_Periodtxt_At_Type_Hint : Swagger.Nullable_UString; Enable_Periodxml : Swagger.Nullable_Boolean; Enable_Periodxml_At_Type_Hint : Swagger.Nullable_UString; begin Swagger.Servers.Get_Query_Parameter (Req, "json.maximumresults", Json_Periodmaximumresults); Swagger.Servers.Get_Query_Parameter (Req, "json.maximumresults@TypeHint", Json_Periodmaximumresults_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "enable.html", Enable_Periodhtml); Swagger.Servers.Get_Query_Parameter (Req, "enable.html@TypeHint", Enable_Periodhtml_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "enable.txt", Enable_Periodtxt); Swagger.Servers.Get_Query_Parameter (Req, "enable.txt@TypeHint", Enable_Periodtxt_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "enable.xml", Enable_Periodxml); Swagger.Servers.Get_Query_Parameter (Req, "enable.xml@TypeHint", Enable_Periodxml_At_Type_Hint); Impl.Post_Config_Apache_Sling_Get_Servlet (Json_Periodmaximumresults, Json_Periodmaximumresults_At_Type_Hint, Enable_Periodhtml, Enable_Periodhtml_At_Type_Hint, Enable_Periodtxt, Enable_Periodtxt_At_Type_Hint, Enable_Periodxml, Enable_Periodxml_At_Type_Hint, Context); end Post_Config_Apache_Sling_Get_Servlet; package API_Post_Config_Apache_Sling_Referrer_Filter is new Swagger.Servers.Operation (Handler => Post_Config_Apache_Sling_Referrer_Filter, Method => Swagger.Servers.POST, URI => URI_Prefix & "/apps/system/config/org.apache.sling.security.impl.ReferrerFilter"); -- procedure Post_Config_Apache_Sling_Referrer_Filter (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Impl : Implementation_Type; Allow_Periodempty : Swagger.Nullable_Boolean; Allow_Periodempty_At_Type_Hint : Swagger.Nullable_UString; Allow_Periodhosts : Swagger.Nullable_UString; Allow_Periodhosts_At_Type_Hint : Swagger.Nullable_UString; Allow_Periodhosts_Periodregexp : Swagger.Nullable_UString; Allow_Periodhosts_Periodregexp_At_Type_Hint : Swagger.Nullable_UString; Filter_Periodmethods : Swagger.Nullable_UString; Filter_Periodmethods_At_Type_Hint : Swagger.Nullable_UString; begin Swagger.Servers.Get_Query_Parameter (Req, "allow.empty", Allow_Periodempty); Swagger.Servers.Get_Query_Parameter (Req, "allow.empty@TypeHint", Allow_Periodempty_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "allow.hosts", Allow_Periodhosts); Swagger.Servers.Get_Query_Parameter (Req, "allow.hosts@TypeHint", Allow_Periodhosts_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "allow.hosts.regexp", Allow_Periodhosts_Periodregexp); Swagger.Servers.Get_Query_Parameter (Req, "allow.hosts.regexp@TypeHint", Allow_Periodhosts_Periodregexp_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "filter.methods", Filter_Periodmethods); Swagger.Servers.Get_Query_Parameter (Req, "filter.methods@TypeHint", Filter_Periodmethods_At_Type_Hint); Impl.Post_Config_Apache_Sling_Referrer_Filter (Allow_Periodempty, Allow_Periodempty_At_Type_Hint, Allow_Periodhosts, Allow_Periodhosts_At_Type_Hint, Allow_Periodhosts_Periodregexp, Allow_Periodhosts_Periodregexp_At_Type_Hint, Filter_Periodmethods, Filter_Periodmethods_At_Type_Hint, Context); end Post_Config_Apache_Sling_Referrer_Filter; package API_Post_Config_Property is new Swagger.Servers.Operation (Handler => Post_Config_Property, Method => Swagger.Servers.POST, URI => URI_Prefix & "/apps/system/config/{configNodeName}"); -- procedure Post_Config_Property (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Impl : Implementation_Type; Config_Node_Name : Swagger.UString; begin Swagger.Servers.Get_Path_Parameter (Req, 1, Config_Node_Name); Impl.Post_Config_Property (Config_Node_Name, Context); end Post_Config_Property; package API_Post_Node is new Swagger.Servers.Operation (Handler => Post_Node, Method => Swagger.Servers.POST, URI => URI_Prefix & "/{path}/{name}"); -- procedure Post_Node (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Impl : Implementation_Type; Path : Swagger.UString; Name : Swagger.UString; Operation : Swagger.Nullable_UString; Delete_Authorizable : Swagger.Nullable_UString; File : Swagger.File_Part_Type; begin Swagger.Servers.Get_Query_Parameter (Req, ":operation", Operation); Swagger.Servers.Get_Query_Parameter (Req, "deleteAuthorizable", Delete_Authorizable); Swagger.Servers.Get_Path_Parameter (Req, 1, Path); Swagger.Servers.Get_Path_Parameter (Req, 2, Name); Swagger.Servers.Get_Parameter (Context, "file", File); Impl.Post_Node (Path, Name, Operation, Delete_Authorizable, File, Context); end Post_Node; package API_Post_Node_Rw is new Swagger.Servers.Operation (Handler => Post_Node_Rw, Method => Swagger.Servers.POST, URI => URI_Prefix & "/{path}/{name}.rw.html"); -- procedure Post_Node_Rw (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Impl : Implementation_Type; Path : Swagger.UString; Name : Swagger.UString; Add_Members : Swagger.Nullable_UString; begin Swagger.Servers.Get_Query_Parameter (Req, "addMembers", Add_Members); Swagger.Servers.Get_Path_Parameter (Req, 1, Path); Swagger.Servers.Get_Path_Parameter (Req, 2, Name); Impl.Post_Node_Rw (Path, Name, Add_Members, Context); end Post_Node_Rw; package API_Post_Path is new Swagger.Servers.Operation (Handler => Post_Path, Method => Swagger.Servers.POST, URI => URI_Prefix & "/{path}/"); -- procedure Post_Path (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Impl : Implementation_Type; Path : Swagger.UString; Jcr_Primary_Type : Swagger.UString; Name : Swagger.UString; begin Swagger.Servers.Get_Query_Parameter (Req, "jcr:primaryType", Jcr_Primary_Type); Swagger.Servers.Get_Query_Parameter (Req, ":name", Name); Swagger.Servers.Get_Path_Parameter (Req, 1, Path); Impl.Post_Path (Path, Jcr_Primary_Type, Name, Context); end Post_Path; package API_Post_Query is new Swagger.Servers.Operation (Handler => Post_Query, Method => Swagger.Servers.POST, URI => URI_Prefix & "/bin/querybuilder.json"); -- procedure Post_Query (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Impl : Implementation_Type; Path : Swagger.UString; P_Periodlimit : Swagger.Number; P_1Property : Swagger.UString; P_1Property_Periodvalue : Swagger.UString; Result : Swagger.UString; begin Swagger.Servers.Get_Query_Parameter (Req, "path", Path); Swagger.Servers.Get_Query_Parameter (Req, "p.limit", P_Periodlimit); Swagger.Servers.Get_Query_Parameter (Req, "1_property", P_1Property); Swagger.Servers.Get_Query_Parameter (Req, "1_property.value", P_1Property_Periodvalue); Impl.Post_Query (Path, P_Periodlimit, P_1Property, P_1Property_Periodvalue, Result, Context); if Context.Get_Status = 200 then Stream.Start_Document; Swagger.Streams.Serialize (Stream, "", Result); Stream.End_Document; end if; end Post_Query; package API_Post_Tree_Activation is new Swagger.Servers.Operation (Handler => Post_Tree_Activation, Method => Swagger.Servers.POST, URI => URI_Prefix & "/etc/replication/treeactivation.html"); -- procedure Post_Tree_Activation (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Impl : Implementation_Type; Ignoredeactivated : Boolean; Onlymodified : Boolean; Path : Swagger.UString; begin Swagger.Servers.Get_Query_Parameter (Req, "ignoredeactivated", Ignoredeactivated); Swagger.Servers.Get_Query_Parameter (Req, "onlymodified", Onlymodified); Swagger.Servers.Get_Query_Parameter (Req, "path", Path); Impl.Post_Tree_Activation (Ignoredeactivated, Onlymodified, Path, Context); end Post_Tree_Activation; package API_Post_Truststore is new Swagger.Servers.Operation (Handler => Post_Truststore, Method => Swagger.Servers.POST, URI => URI_Prefix & "/libs/granite/security/post/truststore"); -- procedure Post_Truststore (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Impl : Implementation_Type; Operation : Swagger.Nullable_UString; New_Password : Swagger.Nullable_UString; Re_Password : Swagger.Nullable_UString; Key_Store_Type : Swagger.Nullable_UString; Remove_Alias : Swagger.Nullable_UString; Certificate : Swagger.File_Part_Type; Result : Swagger.UString; begin Swagger.Servers.Get_Query_Parameter (Req, ":operation", Operation); Swagger.Servers.Get_Query_Parameter (Req, "newPassword", New_Password); Swagger.Servers.Get_Query_Parameter (Req, "rePassword", Re_Password); Swagger.Servers.Get_Query_Parameter (Req, "keyStoreType", Key_Store_Type); Swagger.Servers.Get_Query_Parameter (Req, "removeAlias", Remove_Alias); Swagger.Servers.Get_Parameter (Context, "certificate", Certificate); Impl.Post_Truststore (Operation, New_Password, Re_Password, Key_Store_Type, Remove_Alias, Certificate, Result, Context); if Context.Get_Status = 200 then Stream.Start_Document; Swagger.Streams.Serialize (Stream, "", Result); Stream.End_Document; end if; end Post_Truststore; package API_Post_Truststore_PKCS12 is new Swagger.Servers.Operation (Handler => Post_Truststore_PKCS12, Method => Swagger.Servers.POST, URI => URI_Prefix & "/etc/truststore"); -- procedure Post_Truststore_PKCS12 (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Impl : Implementation_Type; Truststore_Periodp_12 : Swagger.File_Part_Type; Result : Swagger.UString; begin Swagger.Servers.Get_Parameter (Context, "truststore.p12", Truststore_Periodp_12); Impl.Post_Truststore_PKCS12 (Truststore_Periodp_12, Result, Context); if Context.Get_Status = 200 then Stream.Start_Document; Swagger.Streams.Serialize (Stream, "", Result); Stream.End_Document; end if; end Post_Truststore_PKCS12; procedure Register (Server : in out Swagger.Servers.Application_Type'Class) is begin Swagger.Servers.Register (Server, API_Get_Aem_Product_Info.Definition); Swagger.Servers.Register (Server, API_Get_Bundle_Info.Definition); Swagger.Servers.Register (Server, API_Get_Config_Mgr.Definition); Swagger.Servers.Register (Server, API_Post_Bundle.Definition); Swagger.Servers.Register (Server, API_Post_Jmx_Repository.Definition); Swagger.Servers.Register (Server, API_Post_Saml_Configuration.Definition); Swagger.Servers.Register (Server, API_Get_Login_Page.Definition); Swagger.Servers.Register (Server, API_Post_Cq_Actions.Definition); Swagger.Servers.Register (Server, API_Get_Crxde_Status.Definition); Swagger.Servers.Register (Server, API_Get_Install_Status.Definition); Swagger.Servers.Register (Server, API_Get_Package_Manager_Servlet.Definition); Swagger.Servers.Register (Server, API_Post_Package_Service.Definition); Swagger.Servers.Register (Server, API_Post_Package_Service_Json.Definition); Swagger.Servers.Register (Server, API_Post_Package_Update.Definition); Swagger.Servers.Register (Server, API_Post_Set_Password.Definition); Swagger.Servers.Register (Server, API_Get_Aem_Health_Check.Definition); Swagger.Servers.Register (Server, API_Post_Config_Aem_Health_Check_Servlet.Definition); Swagger.Servers.Register (Server, API_Post_Config_Aem_Password_Reset.Definition); Swagger.Servers.Register (Server, API_Ssl_Setup.Definition); Swagger.Servers.Register (Server, API_Delete_Agent.Definition); Swagger.Servers.Register (Server, API_Delete_Node.Definition); Swagger.Servers.Register (Server, API_Get_Agent.Definition); Swagger.Servers.Register (Server, API_Get_Agents.Definition); Swagger.Servers.Register (Server, API_Get_Authorizable_Keystore.Definition); Swagger.Servers.Register (Server, API_Get_Keystore.Definition); Swagger.Servers.Register (Server, API_Get_Node.Definition); Swagger.Servers.Register (Server, API_Get_Package.Definition); Swagger.Servers.Register (Server, API_Get_Package_Filter.Definition); Swagger.Servers.Register (Server, API_Get_Query.Definition); Swagger.Servers.Register (Server, API_Get_Truststore.Definition); Swagger.Servers.Register (Server, API_Get_Truststore_Info.Definition); Swagger.Servers.Register (Server, API_Post_Agent.Definition); Swagger.Servers.Register (Server, API_Post_Authorizable_Keystore.Definition); Swagger.Servers.Register (Server, API_Post_Authorizables.Definition); Swagger.Servers.Register (Server, API_Post_Config_Adobe_Granite_Saml_Authentication_Handler.Definition); Swagger.Servers.Register (Server, API_Post_Config_Apache_Felix_Jetty_Based_Http_Service.Definition); Swagger.Servers.Register (Server, API_Post_Config_Apache_Http_Components_Proxy_Configuration.Definition); Swagger.Servers.Register (Server, API_Post_Config_Apache_Sling_Dav_Ex_Servlet.Definition); Swagger.Servers.Register (Server, API_Post_Config_Apache_Sling_Get_Servlet.Definition); Swagger.Servers.Register (Server, API_Post_Config_Apache_Sling_Referrer_Filter.Definition); Swagger.Servers.Register (Server, API_Post_Config_Property.Definition); Swagger.Servers.Register (Server, API_Post_Node.Definition); Swagger.Servers.Register (Server, API_Post_Node_Rw.Definition); Swagger.Servers.Register (Server, API_Post_Path.Definition); Swagger.Servers.Register (Server, API_Post_Query.Definition); Swagger.Servers.Register (Server, API_Post_Tree_Activation.Definition); Swagger.Servers.Register (Server, API_Post_Truststore.Definition); Swagger.Servers.Register (Server, API_Post_Truststore_PKCS12.Definition); end Register; end Skeleton; package body Shared_Instance is -- procedure Get_Aem_Product_Info (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Result : Swagger.UString_Vectors.Vector; begin Server.Get_Aem_Product_Info (Result, Context); if Context.Get_Status = 200 then Stream.Start_Document; Swagger.Streams.Serialize (Stream, "", Result); Stream.End_Document; end if; end Get_Aem_Product_Info; package API_Get_Aem_Product_Info is new Swagger.Servers.Operation (Handler => Get_Aem_Product_Info, Method => Swagger.Servers.GET, URI => URI_Prefix & "/system/console/status-productinfo.json"); -- procedure Get_Bundle_Info (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Name : Swagger.UString; Result : .Models.BundleInfo_Type; begin Swagger.Servers.Get_Path_Parameter (Req, 1, Name); Server.Get_Bundle_Info (Name, Result, Context); if Context.Get_Status = 200 then Stream.Start_Document; .Models.Serialize (Stream, "", Result); Stream.End_Document; end if; end Get_Bundle_Info; package API_Get_Bundle_Info is new Swagger.Servers.Operation (Handler => Get_Bundle_Info, Method => Swagger.Servers.GET, URI => URI_Prefix & "/system/console/bundles/{name}.json"); -- procedure Get_Config_Mgr (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Result : Swagger.UString; begin Server.Get_Config_Mgr (Result, Context); if Context.Get_Status = 200 then Stream.Start_Document; Swagger.Streams.Serialize (Stream, "", Result); Stream.End_Document; end if; end Get_Config_Mgr; package API_Get_Config_Mgr is new Swagger.Servers.Operation (Handler => Get_Config_Mgr, Method => Swagger.Servers.GET, URI => URI_Prefix & "/system/console/configMgr"); -- procedure Post_Bundle (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Name : Swagger.UString; Action : Swagger.UString; begin Swagger.Servers.Get_Query_Parameter (Req, "action", Action); Swagger.Servers.Get_Path_Parameter (Req, 1, Name); Server.Post_Bundle (Name, Action, Context); end Post_Bundle; package API_Post_Bundle is new Swagger.Servers.Operation (Handler => Post_Bundle, Method => Swagger.Servers.POST, URI => URI_Prefix & "/system/console/bundles/{name}"); -- procedure Post_Jmx_Repository (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Action : Swagger.UString; begin Swagger.Servers.Get_Path_Parameter (Req, 1, Action); Server.Post_Jmx_Repository (Action, Context); end Post_Jmx_Repository; package API_Post_Jmx_Repository is new Swagger.Servers.Operation (Handler => Post_Jmx_Repository, Method => Swagger.Servers.POST, URI => URI_Prefix & "/system/console/jmx/com.adobe.granite:type=Repository/op/{action}"); -- procedure Post_Saml_Configuration (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Post : Swagger.Nullable_Boolean; Apply : Swagger.Nullable_Boolean; Delete : Swagger.Nullable_Boolean; Action : Swagger.Nullable_UString; Dollarlocation : Swagger.Nullable_UString; Path : Swagger.UString_Vectors.Vector; Service_Periodranking : Swagger.Nullable_Integer; Idp_Url : Swagger.Nullable_UString; Idp_Cert_Alias : Swagger.Nullable_UString; Idp_Http_Redirect : Swagger.Nullable_Boolean; Service_Provider_Entity_Id : Swagger.Nullable_UString; Assertion_Consumer_Service_URL : Swagger.Nullable_UString; Sp_Private_Key_Alias : Swagger.Nullable_UString; Key_Store_Password : Swagger.Nullable_UString; Default_Redirect_Url : Swagger.Nullable_UString; User_IDAttribute : Swagger.Nullable_UString; Use_Encryption : Swagger.Nullable_Boolean; Create_User : Swagger.Nullable_Boolean; Add_Group_Memberships : Swagger.Nullable_Boolean; Group_Membership_Attribute : Swagger.Nullable_UString; Default_Groups : Swagger.UString_Vectors.Vector; Name_Id_Format : Swagger.Nullable_UString; Synchronize_Attributes : Swagger.UString_Vectors.Vector; Handle_Logout : Swagger.Nullable_Boolean; Logout_Url : Swagger.Nullable_UString; Clock_Tolerance : Swagger.Nullable_Integer; Digest_Method : Swagger.Nullable_UString; Signature_Method : Swagger.Nullable_UString; User_Intermediate_Path : Swagger.Nullable_UString; Propertylist : Swagger.UString_Vectors.Vector; Result : .Models.SamlConfigurationInfo_Type; begin Swagger.Servers.Get_Query_Parameter (Req, "post", Post); Swagger.Servers.Get_Query_Parameter (Req, "apply", Apply); Swagger.Servers.Get_Query_Parameter (Req, "delete", Delete); Swagger.Servers.Get_Query_Parameter (Req, "action", Action); Swagger.Servers.Get_Query_Parameter (Req, "$location", Dollarlocation); Swagger.Servers.Get_Query_Parameter (Req, "path", Path); Swagger.Servers.Get_Query_Parameter (Req, "service.ranking", Service_Periodranking); Swagger.Servers.Get_Query_Parameter (Req, "idpUrl", Idp_Url); Swagger.Servers.Get_Query_Parameter (Req, "idpCertAlias", Idp_Cert_Alias); Swagger.Servers.Get_Query_Parameter (Req, "idpHttpRedirect", Idp_Http_Redirect); Swagger.Servers.Get_Query_Parameter (Req, "serviceProviderEntityId", Service_Provider_Entity_Id); Swagger.Servers.Get_Query_Parameter (Req, "assertionConsumerServiceURL", Assertion_Consumer_Service_URL); Swagger.Servers.Get_Query_Parameter (Req, "spPrivateKeyAlias", Sp_Private_Key_Alias); Swagger.Servers.Get_Query_Parameter (Req, "keyStorePassword", Key_Store_Password); Swagger.Servers.Get_Query_Parameter (Req, "defaultRedirectUrl", Default_Redirect_Url); Swagger.Servers.Get_Query_Parameter (Req, "userIDAttribute", User_IDAttribute); Swagger.Servers.Get_Query_Parameter (Req, "useEncryption", Use_Encryption); Swagger.Servers.Get_Query_Parameter (Req, "createUser", Create_User); Swagger.Servers.Get_Query_Parameter (Req, "addGroupMemberships", Add_Group_Memberships); Swagger.Servers.Get_Query_Parameter (Req, "groupMembershipAttribute", Group_Membership_Attribute); Swagger.Servers.Get_Query_Parameter (Req, "defaultGroups", Default_Groups); Swagger.Servers.Get_Query_Parameter (Req, "nameIdFormat", Name_Id_Format); Swagger.Servers.Get_Query_Parameter (Req, "synchronizeAttributes", Synchronize_Attributes); Swagger.Servers.Get_Query_Parameter (Req, "handleLogout", Handle_Logout); Swagger.Servers.Get_Query_Parameter (Req, "logoutUrl", Logout_Url); Swagger.Servers.Get_Query_Parameter (Req, "clockTolerance", Clock_Tolerance); Swagger.Servers.Get_Query_Parameter (Req, "digestMethod", Digest_Method); Swagger.Servers.Get_Query_Parameter (Req, "signatureMethod", Signature_Method); Swagger.Servers.Get_Query_Parameter (Req, "userIntermediatePath", User_Intermediate_Path); Swagger.Servers.Get_Query_Parameter (Req, "propertylist", Propertylist); Server.Post_Saml_Configuration (Post, Apply, Delete, Action, Dollarlocation, Path, Service_Periodranking, Idp_Url, Idp_Cert_Alias, Idp_Http_Redirect, Service_Provider_Entity_Id, Assertion_Consumer_Service_URL, Sp_Private_Key_Alias, Key_Store_Password, Default_Redirect_Url, User_IDAttribute, Use_Encryption, Create_User, Add_Group_Memberships, Group_Membership_Attribute, Default_Groups, Name_Id_Format, Synchronize_Attributes, Handle_Logout, Logout_Url, Clock_Tolerance, Digest_Method, Signature_Method, User_Intermediate_Path, Propertylist, Result, Context); if Context.Get_Status = 200 then Stream.Start_Document; .Models.Serialize (Stream, "", Result); Stream.End_Document; end if; end Post_Saml_Configuration; package API_Post_Saml_Configuration is new Swagger.Servers.Operation (Handler => Post_Saml_Configuration, Method => Swagger.Servers.POST, URI => URI_Prefix & "/system/console/configMgr/com.adobe.granite.auth.saml.SamlAuthenticationHandler"); -- procedure Get_Login_Page (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Result : Swagger.UString; begin Server.Get_Login_Page (Result, Context); if Context.Get_Status = 200 then Stream.Start_Document; Swagger.Streams.Serialize (Stream, "", Result); Stream.End_Document; end if; end Get_Login_Page; package API_Get_Login_Page is new Swagger.Servers.Operation (Handler => Get_Login_Page, Method => Swagger.Servers.GET, URI => URI_Prefix & "/libs/granite/core/content/login.html"); -- procedure Post_Cq_Actions (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Authorizable_Id : Swagger.UString; Changelog : Swagger.UString; begin Swagger.Servers.Get_Query_Parameter (Req, "authorizableId", Authorizable_Id); Swagger.Servers.Get_Query_Parameter (Req, "changelog", Changelog); Server.Post_Cq_Actions (Authorizable_Id, Changelog, Context); end Post_Cq_Actions; package API_Post_Cq_Actions is new Swagger.Servers.Operation (Handler => Post_Cq_Actions, Method => Swagger.Servers.POST, URI => URI_Prefix & "/.cqactions.html"); -- procedure Get_Crxde_Status (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Result : Swagger.UString; begin Server.Get_Crxde_Status (Result, Context); if Context.Get_Status = 200 then Stream.Start_Document; Swagger.Streams.Serialize (Stream, "", Result); Stream.End_Document; end if; end Get_Crxde_Status; package API_Get_Crxde_Status is new Swagger.Servers.Operation (Handler => Get_Crxde_Status, Method => Swagger.Servers.GET, URI => URI_Prefix & "/crx/server/crx.default/jcr:root/.1.json"); -- procedure Get_Install_Status (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Result : .Models.InstallStatus_Type; begin Server.Get_Install_Status (Result, Context); if Context.Get_Status = 200 then Stream.Start_Document; .Models.Serialize (Stream, "", Result); Stream.End_Document; end if; end Get_Install_Status; package API_Get_Install_Status is new Swagger.Servers.Operation (Handler => Get_Install_Status, Method => Swagger.Servers.GET, URI => URI_Prefix & "/crx/packmgr/installstatus.jsp"); -- procedure Get_Package_Manager_Servlet (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is begin Server.Get_Package_Manager_Servlet (Context); end Get_Package_Manager_Servlet; package API_Get_Package_Manager_Servlet is new Swagger.Servers.Operation (Handler => Get_Package_Manager_Servlet, Method => Swagger.Servers.GET, URI => URI_Prefix & "/crx/packmgr/service/script.html"); -- procedure Post_Package_Service (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Cmd : Swagger.UString; Result : Swagger.UString; begin Swagger.Servers.Get_Query_Parameter (Req, "cmd", Cmd); Server.Post_Package_Service (Cmd, Result, Context); if Context.Get_Status = 200 then Stream.Start_Document; Swagger.Streams.Serialize (Stream, "", Result); Stream.End_Document; end if; end Post_Package_Service; package API_Post_Package_Service is new Swagger.Servers.Operation (Handler => Post_Package_Service, Method => Swagger.Servers.POST, URI => URI_Prefix & "/crx/packmgr/service.jsp"); -- procedure Post_Package_Service_Json (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Path : Swagger.UString; Cmd : Swagger.UString; Group_Name : Swagger.Nullable_UString; Package_Name : Swagger.Nullable_UString; Package_Version : Swagger.Nullable_UString; Charset : Swagger.Nullable_UString; Force : Swagger.Nullable_Boolean; Recursive : Swagger.Nullable_Boolean; P_Package : Swagger.File_Part_Type; Result : Swagger.UString; begin Swagger.Servers.Get_Query_Parameter (Req, "cmd", Cmd); Swagger.Servers.Get_Query_Parameter (Req, "groupName", Group_Name); Swagger.Servers.Get_Query_Parameter (Req, "packageName", Package_Name); Swagger.Servers.Get_Query_Parameter (Req, "packageVersion", Package_Version); Swagger.Servers.Get_Query_Parameter (Req, "_charset_", Charset); Swagger.Servers.Get_Query_Parameter (Req, "force", Force); Swagger.Servers.Get_Query_Parameter (Req, "recursive", Recursive); Swagger.Servers.Get_Path_Parameter (Req, 1, Path); Swagger.Servers.Get_Parameter (Context, "package", P_Package); Server.Post_Package_Service_Json (Path, Cmd, Group_Name, Package_Name, Package_Version, Charset, Force, Recursive, P_Package, Result, Context); if Context.Get_Status = 200 then Stream.Start_Document; Swagger.Streams.Serialize (Stream, "", Result); Stream.End_Document; end if; end Post_Package_Service_Json; package API_Post_Package_Service_Json is new Swagger.Servers.Operation (Handler => Post_Package_Service_Json, Method => Swagger.Servers.POST, URI => URI_Prefix & "/crx/packmgr/service/.json/{path}"); -- procedure Post_Package_Update (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Group_Name : Swagger.UString; Package_Name : Swagger.UString; Version : Swagger.UString; Path : Swagger.UString; Filter : Swagger.Nullable_UString; Charset : Swagger.Nullable_UString; Result : Swagger.UString; begin Swagger.Servers.Get_Query_Parameter (Req, "groupName", Group_Name); Swagger.Servers.Get_Query_Parameter (Req, "packageName", Package_Name); Swagger.Servers.Get_Query_Parameter (Req, "version", Version); Swagger.Servers.Get_Query_Parameter (Req, "path", Path); Swagger.Servers.Get_Query_Parameter (Req, "filter", Filter); Swagger.Servers.Get_Query_Parameter (Req, "_charset_", Charset); Server.Post_Package_Update (Group_Name, Package_Name, Version, Path, Filter, Charset, Result, Context); if Context.Get_Status = 200 then Stream.Start_Document; Swagger.Streams.Serialize (Stream, "", Result); Stream.End_Document; end if; end Post_Package_Update; package API_Post_Package_Update is new Swagger.Servers.Operation (Handler => Post_Package_Update, Method => Swagger.Servers.POST, URI => URI_Prefix & "/crx/packmgr/update.jsp"); -- procedure Post_Set_Password (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Old : Swagger.UString; Plain : Swagger.UString; Verify : Swagger.UString; Result : Swagger.UString; begin Swagger.Servers.Get_Query_Parameter (Req, "old", Old); Swagger.Servers.Get_Query_Parameter (Req, "plain", Plain); Swagger.Servers.Get_Query_Parameter (Req, "verify", Verify); Server.Post_Set_Password (Old, Plain, Verify, Result, Context); if Context.Get_Status = 200 then Stream.Start_Document; Swagger.Streams.Serialize (Stream, "", Result); Stream.End_Document; end if; end Post_Set_Password; package API_Post_Set_Password is new Swagger.Servers.Operation (Handler => Post_Set_Password, Method => Swagger.Servers.POST, URI => URI_Prefix & "/crx/explorer/ui/setpassword.jsp"); -- procedure Get_Aem_Health_Check (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Tags : Swagger.Nullable_UString; Combine_Tags_Or : Swagger.Nullable_Boolean; Result : Swagger.UString; begin Swagger.Servers.Get_Query_Parameter (Req, "tags", Tags); Swagger.Servers.Get_Query_Parameter (Req, "combineTagsOr", Combine_Tags_Or); Server.Get_Aem_Health_Check (Tags, Combine_Tags_Or, Result, Context); if Context.Get_Status = 200 then Stream.Start_Document; Swagger.Streams.Serialize (Stream, "", Result); Stream.End_Document; end if; end Get_Aem_Health_Check; package API_Get_Aem_Health_Check is new Swagger.Servers.Operation (Handler => Get_Aem_Health_Check, Method => Swagger.Servers.GET, URI => URI_Prefix & "/system/health"); -- procedure Post_Config_Aem_Health_Check_Servlet (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Bundles_Periodignored : Swagger.UString_Vectors.Vector; Bundles_Periodignored_At_Type_Hint : Swagger.Nullable_UString; begin Swagger.Servers.Get_Query_Parameter (Req, "bundles.ignored", Bundles_Periodignored); Swagger.Servers.Get_Query_Parameter (Req, "bundles.ignored@TypeHint", Bundles_Periodignored_At_Type_Hint); Server.Post_Config_Aem_Health_Check_Servlet (Bundles_Periodignored, Bundles_Periodignored_At_Type_Hint, Context); end Post_Config_Aem_Health_Check_Servlet; package API_Post_Config_Aem_Health_Check_Servlet is new Swagger.Servers.Operation (Handler => Post_Config_Aem_Health_Check_Servlet, Method => Swagger.Servers.POST, URI => URI_Prefix & "/apps/system/config/com.shinesolutions.healthcheck.hc.impl.ActiveBundleHealthCheck"); -- procedure Post_Config_Aem_Password_Reset (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Pwdreset_Periodauthorizables : Swagger.UString_Vectors.Vector; Pwdreset_Periodauthorizables_At_Type_Hint : Swagger.Nullable_UString; begin Swagger.Servers.Get_Query_Parameter (Req, "pwdreset.authorizables", Pwdreset_Periodauthorizables); Swagger.Servers.Get_Query_Parameter (Req, "pwdreset.authorizables@TypeHint", Pwdreset_Periodauthorizables_At_Type_Hint); Server.Post_Config_Aem_Password_Reset (Pwdreset_Periodauthorizables, Pwdreset_Periodauthorizables_At_Type_Hint, Context); end Post_Config_Aem_Password_Reset; package API_Post_Config_Aem_Password_Reset is new Swagger.Servers.Operation (Handler => Post_Config_Aem_Password_Reset, Method => Swagger.Servers.POST, URI => URI_Prefix & "/apps/system/config/com.shinesolutions.aem.passwordreset.Activator"); -- procedure Ssl_Setup (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Keystore_Password : Swagger.UString; Keystore_Password_Confirm : Swagger.UString; Truststore_Password : Swagger.UString; Truststore_Password_Confirm : Swagger.UString; Https_Hostname : Swagger.UString; Https_Port : Swagger.UString; Privatekey_File : Swagger.File_Part_Type; Certificate_File : Swagger.File_Part_Type; Result : Swagger.UString; begin Swagger.Servers.Get_Query_Parameter (Req, "keystorePassword", Keystore_Password); Swagger.Servers.Get_Query_Parameter (Req, "keystorePasswordConfirm", Keystore_Password_Confirm); Swagger.Servers.Get_Query_Parameter (Req, "truststorePassword", Truststore_Password); Swagger.Servers.Get_Query_Parameter (Req, "truststorePasswordConfirm", Truststore_Password_Confirm); Swagger.Servers.Get_Query_Parameter (Req, "httpsHostname", Https_Hostname); Swagger.Servers.Get_Query_Parameter (Req, "httpsPort", Https_Port); Swagger.Servers.Get_Parameter (Context, "privatekeyFile", Privatekey_File); Swagger.Servers.Get_Parameter (Context, "certificateFile", Certificate_File); Server.Ssl_Setup (Keystore_Password, Keystore_Password_Confirm, Truststore_Password, Truststore_Password_Confirm, Https_Hostname, Https_Port, Privatekey_File, Certificate_File, Result, Context); if Context.Get_Status = 200 then Stream.Start_Document; Swagger.Streams.Serialize (Stream, "", Result); Stream.End_Document; end if; end Ssl_Setup; package API_Ssl_Setup is new Swagger.Servers.Operation (Handler => Ssl_Setup, Method => Swagger.Servers.POST, URI => URI_Prefix & "/libs/granite/security/post/sslSetup.html"); -- procedure Delete_Agent (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Runmode : Swagger.UString; Name : Swagger.UString; begin Swagger.Servers.Get_Path_Parameter (Req, 1, Runmode); Swagger.Servers.Get_Path_Parameter (Req, 2, Name); Server.Delete_Agent (Runmode, Name, Context); end Delete_Agent; package API_Delete_Agent is new Swagger.Servers.Operation (Handler => Delete_Agent, Method => Swagger.Servers.DELETE, URI => URI_Prefix & "/etc/replication/agents.{runmode}/{name}"); -- procedure Delete_Node (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Path : Swagger.UString; Name : Swagger.UString; begin Swagger.Servers.Get_Path_Parameter (Req, 1, Path); Swagger.Servers.Get_Path_Parameter (Req, 2, Name); Server.Delete_Node (Path, Name, Context); end Delete_Node; package API_Delete_Node is new Swagger.Servers.Operation (Handler => Delete_Node, Method => Swagger.Servers.DELETE, URI => URI_Prefix & "/{path}/{name}"); -- procedure Get_Agent (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Runmode : Swagger.UString; Name : Swagger.UString; begin Swagger.Servers.Get_Path_Parameter (Req, 1, Runmode); Swagger.Servers.Get_Path_Parameter (Req, 2, Name); Server.Get_Agent (Runmode, Name, Context); end Get_Agent; package API_Get_Agent is new Swagger.Servers.Operation (Handler => Get_Agent, Method => Swagger.Servers.GET, URI => URI_Prefix & "/etc/replication/agents.{runmode}/{name}"); -- procedure Get_Agents (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Runmode : Swagger.UString; Result : Swagger.UString; begin Swagger.Servers.Get_Path_Parameter (Req, 1, Runmode); Server.Get_Agents (Runmode, Result, Context); if Context.Get_Status = 200 then Stream.Start_Document; Swagger.Streams.Serialize (Stream, "", Result); Stream.End_Document; end if; end Get_Agents; package API_Get_Agents is new Swagger.Servers.Operation (Handler => Get_Agents, Method => Swagger.Servers.GET, URI => URI_Prefix & "/etc/replication/agents.{runmode}.-1.json"); -- procedure Get_Authorizable_Keystore (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Intermediate_Path : Swagger.UString; Authorizable_Id : Swagger.UString; Result : .Models.KeystoreInfo_Type; begin Swagger.Servers.Get_Path_Parameter (Req, 1, Intermediate_Path); Swagger.Servers.Get_Path_Parameter (Req, 2, Authorizable_Id); Server.Get_Authorizable_Keystore (Intermediate_Path, Authorizable_Id, Result, Context); if Context.Get_Status = 200 then Stream.Start_Document; .Models.Serialize (Stream, "", Result); Stream.End_Document; end if; end Get_Authorizable_Keystore; package API_Get_Authorizable_Keystore is new Swagger.Servers.Operation (Handler => Get_Authorizable_Keystore, Method => Swagger.Servers.GET, URI => URI_Prefix & "/{intermediatePath}/{authorizableId}.ks.json"); -- procedure Get_Keystore (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Intermediate_Path : Swagger.UString; Authorizable_Id : Swagger.UString; Result : Swagger.Http_Content_Type; begin Swagger.Servers.Get_Path_Parameter (Req, 1, Intermediate_Path); Swagger.Servers.Get_Path_Parameter (Req, 2, Authorizable_Id); Server.Get_Keystore (Intermediate_Path, Authorizable_Id, Result, Context); if Context.Get_Status = 200 then Stream.Start_Document; .Models.Serialize (Stream, "", Result); Stream.End_Document; end if; end Get_Keystore; package API_Get_Keystore is new Swagger.Servers.Operation (Handler => Get_Keystore, Method => Swagger.Servers.GET, URI => URI_Prefix & "/{intermediatePath}/{authorizableId}/keystore/store.p12"); -- procedure Get_Node (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Path : Swagger.UString; Name : Swagger.UString; begin Swagger.Servers.Get_Path_Parameter (Req, 1, Path); Swagger.Servers.Get_Path_Parameter (Req, 2, Name); Server.Get_Node (Path, Name, Context); end Get_Node; package API_Get_Node is new Swagger.Servers.Operation (Handler => Get_Node, Method => Swagger.Servers.GET, URI => URI_Prefix & "/{path}/{name}"); -- procedure Get_Package (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Group : Swagger.UString; Name : Swagger.UString; Version : Swagger.UString; Result : Swagger.Http_Content_Type; begin Swagger.Servers.Get_Path_Parameter (Req, 1, Group); Swagger.Servers.Get_Path_Parameter (Req, 2, Name); Swagger.Servers.Get_Path_Parameter (Req, 3, Version); Server.Get_Package (Group, Name, Version, Result, Context); if Context.Get_Status = 200 then Stream.Start_Document; .Models.Serialize (Stream, "", Result); Stream.End_Document; end if; end Get_Package; package API_Get_Package is new Swagger.Servers.Operation (Handler => Get_Package, Method => Swagger.Servers.GET, URI => URI_Prefix & "/etc/packages/{group}/{name}-{version}.zip"); -- procedure Get_Package_Filter (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Group : Swagger.UString; Name : Swagger.UString; Version : Swagger.UString; Result : Swagger.UString; begin Swagger.Servers.Get_Path_Parameter (Req, 1, Group); Swagger.Servers.Get_Path_Parameter (Req, 2, Name); Swagger.Servers.Get_Path_Parameter (Req, 3, Version); Server.Get_Package_Filter (Group, Name, Version, Result, Context); if Context.Get_Status = 200 then Stream.Start_Document; Swagger.Streams.Serialize (Stream, "", Result); Stream.End_Document; end if; end Get_Package_Filter; package API_Get_Package_Filter is new Swagger.Servers.Operation (Handler => Get_Package_Filter, Method => Swagger.Servers.GET, URI => URI_Prefix & "/etc/packages/{group}/{name}-{version}.zip/jcr:content/vlt:definition/filter.tidy.2.json"); -- procedure Get_Query (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Path : Swagger.UString; P_Periodlimit : Swagger.Number; P_1Property : Swagger.UString; P_1Property_Periodvalue : Swagger.UString; Result : Swagger.UString; begin Swagger.Servers.Get_Query_Parameter (Req, "path", Path); Swagger.Servers.Get_Query_Parameter (Req, "p.limit", P_Periodlimit); Swagger.Servers.Get_Query_Parameter (Req, "1_property", P_1Property); Swagger.Servers.Get_Query_Parameter (Req, "1_property.value", P_1Property_Periodvalue); Server.Get_Query (Path, P_Periodlimit, P_1Property, P_1Property_Periodvalue, Result, Context); if Context.Get_Status = 200 then Stream.Start_Document; Swagger.Streams.Serialize (Stream, "", Result); Stream.End_Document; end if; end Get_Query; package API_Get_Query is new Swagger.Servers.Operation (Handler => Get_Query, Method => Swagger.Servers.GET, URI => URI_Prefix & "/bin/querybuilder.json"); -- procedure Get_Truststore (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Result : Swagger.Http_Content_Type; begin Server.Get_Truststore (Result, Context); if Context.Get_Status = 200 then Stream.Start_Document; .Models.Serialize (Stream, "", Result); Stream.End_Document; end if; end Get_Truststore; package API_Get_Truststore is new Swagger.Servers.Operation (Handler => Get_Truststore, Method => Swagger.Servers.GET, URI => URI_Prefix & "/etc/truststore/truststore.p12"); -- procedure Get_Truststore_Info (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Result : .Models.TruststoreInfo_Type; begin Server.Get_Truststore_Info (Result, Context); if Context.Get_Status = 200 then Stream.Start_Document; .Models.Serialize (Stream, "", Result); Stream.End_Document; end if; end Get_Truststore_Info; package API_Get_Truststore_Info is new Swagger.Servers.Operation (Handler => Get_Truststore_Info, Method => Swagger.Servers.GET, URI => URI_Prefix & "/libs/granite/security/truststore.json"); -- procedure Post_Agent (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Runmode : Swagger.UString; Name : Swagger.UString; Jcr_Content_Slashcq_Distribute : Swagger.Nullable_Boolean; Jcr_Content_Slashcq_Distribute_At_Type_Hint : Swagger.Nullable_UString; Jcr_Content_Slashcq_Name : Swagger.Nullable_UString; Jcr_Content_Slashcq_Template : Swagger.Nullable_UString; Jcr_Content_Slashenabled : Swagger.Nullable_Boolean; Jcr_Content_Slashjcr_Description : Swagger.Nullable_UString; Jcr_Content_Slashjcr_Last_Modified : Swagger.Nullable_UString; Jcr_Content_Slashjcr_Last_Modified_By : Swagger.Nullable_UString; Jcr_Content_Slashjcr_Mixin_Types : Swagger.Nullable_UString; Jcr_Content_Slashjcr_Title : Swagger.Nullable_UString; Jcr_Content_Slashlog_Level : Swagger.Nullable_UString; Jcr_Content_Slashno_Status_Update : Swagger.Nullable_Boolean; Jcr_Content_Slashno_Versioning : Swagger.Nullable_Boolean; Jcr_Content_Slashprotocol_Connect_Timeout : Swagger.Number; Jcr_Content_Slashprotocol_HTTPConnection_Closed : Swagger.Nullable_Boolean; Jcr_Content_Slashprotocol_HTTPExpired : Swagger.Nullable_UString; Jcr_Content_Slashprotocol_HTTPHeaders : Swagger.UString_Vectors.Vector; Jcr_Content_Slashprotocol_HTTPHeaders_At_Type_Hint : Swagger.Nullable_UString; Jcr_Content_Slashprotocol_HTTPMethod : Swagger.Nullable_UString; Jcr_Content_Slashprotocol_HTTPSRelaxed : Swagger.Nullable_Boolean; Jcr_Content_Slashprotocol_Interface : Swagger.Nullable_UString; Jcr_Content_Slashprotocol_Socket_Timeout : Swagger.Number; Jcr_Content_Slashprotocol_Version : Swagger.Nullable_UString; Jcr_Content_Slashproxy_NTLMDomain : Swagger.Nullable_UString; Jcr_Content_Slashproxy_NTLMHost : Swagger.Nullable_UString; Jcr_Content_Slashproxy_Host : Swagger.Nullable_UString; Jcr_Content_Slashproxy_Password : Swagger.Nullable_UString; Jcr_Content_Slashproxy_Port : Swagger.Number; Jcr_Content_Slashproxy_User : Swagger.Nullable_UString; Jcr_Content_Slashqueue_Batch_Max_Size : Swagger.Number; Jcr_Content_Slashqueue_Batch_Mode : Swagger.Nullable_UString; Jcr_Content_Slashqueue_Batch_Wait_Time : Swagger.Number; Jcr_Content_Slashretry_Delay : Swagger.Nullable_UString; Jcr_Content_Slashreverse_Replication : Swagger.Nullable_Boolean; Jcr_Content_Slashserialization_Type : Swagger.Nullable_UString; Jcr_Content_Slashsling_Resource_Type : Swagger.Nullable_UString; Jcr_Content_Slashssl : Swagger.Nullable_UString; Jcr_Content_Slashtransport_NTLMDomain : Swagger.Nullable_UString; Jcr_Content_Slashtransport_NTLMHost : Swagger.Nullable_UString; Jcr_Content_Slashtransport_Password : Swagger.Nullable_UString; Jcr_Content_Slashtransport_Uri : Swagger.Nullable_UString; Jcr_Content_Slashtransport_User : Swagger.Nullable_UString; Jcr_Content_Slashtrigger_Distribute : Swagger.Nullable_Boolean; Jcr_Content_Slashtrigger_Modified : Swagger.Nullable_Boolean; Jcr_Content_Slashtrigger_On_Off_Time : Swagger.Nullable_Boolean; Jcr_Content_Slashtrigger_Receive : Swagger.Nullable_Boolean; Jcr_Content_Slashtrigger_Specific : Swagger.Nullable_Boolean; Jcr_Content_Slashuser_Id : Swagger.Nullable_UString; Jcr_Primary_Type : Swagger.Nullable_UString; Operation : Swagger.Nullable_UString; begin Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/cq:distribute", Jcr_Content_Slashcq_Distribute); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/cq:distribute@TypeHint", Jcr_Content_Slashcq_Distribute_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/cq:name", Jcr_Content_Slashcq_Name); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/cq:template", Jcr_Content_Slashcq_Template); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/enabled", Jcr_Content_Slashenabled); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/jcr:description", Jcr_Content_Slashjcr_Description); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/jcr:lastModified", Jcr_Content_Slashjcr_Last_Modified); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/jcr:lastModifiedBy", Jcr_Content_Slashjcr_Last_Modified_By); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/jcr:mixinTypes", Jcr_Content_Slashjcr_Mixin_Types); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/jcr:title", Jcr_Content_Slashjcr_Title); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/logLevel", Jcr_Content_Slashlog_Level); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/noStatusUpdate", Jcr_Content_Slashno_Status_Update); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/noVersioning", Jcr_Content_Slashno_Versioning); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/protocolConnectTimeout", Jcr_Content_Slashprotocol_Connect_Timeout); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/protocolHTTPConnectionClosed", Jcr_Content_Slashprotocol_HTTPConnection_Closed); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/protocolHTTPExpired", Jcr_Content_Slashprotocol_HTTPExpired); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/protocolHTTPHeaders", Jcr_Content_Slashprotocol_HTTPHeaders); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/protocolHTTPHeaders@TypeHint", Jcr_Content_Slashprotocol_HTTPHeaders_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/protocolHTTPMethod", Jcr_Content_Slashprotocol_HTTPMethod); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/protocolHTTPSRelaxed", Jcr_Content_Slashprotocol_HTTPSRelaxed); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/protocolInterface", Jcr_Content_Slashprotocol_Interface); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/protocolSocketTimeout", Jcr_Content_Slashprotocol_Socket_Timeout); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/protocolVersion", Jcr_Content_Slashprotocol_Version); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/proxyNTLMDomain", Jcr_Content_Slashproxy_NTLMDomain); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/proxyNTLMHost", Jcr_Content_Slashproxy_NTLMHost); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/proxyHost", Jcr_Content_Slashproxy_Host); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/proxyPassword", Jcr_Content_Slashproxy_Password); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/proxyPort", Jcr_Content_Slashproxy_Port); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/proxyUser", Jcr_Content_Slashproxy_User); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/queueBatchMaxSize", Jcr_Content_Slashqueue_Batch_Max_Size); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/queueBatchMode", Jcr_Content_Slashqueue_Batch_Mode); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/queueBatchWaitTime", Jcr_Content_Slashqueue_Batch_Wait_Time); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/retryDelay", Jcr_Content_Slashretry_Delay); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/reverseReplication", Jcr_Content_Slashreverse_Replication); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/serializationType", Jcr_Content_Slashserialization_Type); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/sling:resourceType", Jcr_Content_Slashsling_Resource_Type); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/ssl", Jcr_Content_Slashssl); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/transportNTLMDomain", Jcr_Content_Slashtransport_NTLMDomain); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/transportNTLMHost", Jcr_Content_Slashtransport_NTLMHost); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/transportPassword", Jcr_Content_Slashtransport_Password); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/transportUri", Jcr_Content_Slashtransport_Uri); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/transportUser", Jcr_Content_Slashtransport_User); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/triggerDistribute", Jcr_Content_Slashtrigger_Distribute); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/triggerModified", Jcr_Content_Slashtrigger_Modified); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/triggerOnOffTime", Jcr_Content_Slashtrigger_On_Off_Time); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/triggerReceive", Jcr_Content_Slashtrigger_Receive); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/triggerSpecific", Jcr_Content_Slashtrigger_Specific); Swagger.Servers.Get_Query_Parameter (Req, "jcr:content/userId", Jcr_Content_Slashuser_Id); Swagger.Servers.Get_Query_Parameter (Req, "jcr:primaryType", Jcr_Primary_Type); Swagger.Servers.Get_Query_Parameter (Req, ":operation", Operation); Swagger.Servers.Get_Path_Parameter (Req, 1, Runmode); Swagger.Servers.Get_Path_Parameter (Req, 2, Name); Server.Post_Agent (Runmode, Name, Jcr_Content_Slashcq_Distribute, Jcr_Content_Slashcq_Distribute_At_Type_Hint, Jcr_Content_Slashcq_Name, Jcr_Content_Slashcq_Template, Jcr_Content_Slashenabled, Jcr_Content_Slashjcr_Description, Jcr_Content_Slashjcr_Last_Modified, Jcr_Content_Slashjcr_Last_Modified_By, Jcr_Content_Slashjcr_Mixin_Types, Jcr_Content_Slashjcr_Title, Jcr_Content_Slashlog_Level, Jcr_Content_Slashno_Status_Update, Jcr_Content_Slashno_Versioning, Jcr_Content_Slashprotocol_Connect_Timeout, Jcr_Content_Slashprotocol_HTTPConnection_Closed, Jcr_Content_Slashprotocol_HTTPExpired, Jcr_Content_Slashprotocol_HTTPHeaders, Jcr_Content_Slashprotocol_HTTPHeaders_At_Type_Hint, Jcr_Content_Slashprotocol_HTTPMethod, Jcr_Content_Slashprotocol_HTTPSRelaxed, Jcr_Content_Slashprotocol_Interface, Jcr_Content_Slashprotocol_Socket_Timeout, Jcr_Content_Slashprotocol_Version, Jcr_Content_Slashproxy_NTLMDomain, Jcr_Content_Slashproxy_NTLMHost, Jcr_Content_Slashproxy_Host, Jcr_Content_Slashproxy_Password, Jcr_Content_Slashproxy_Port, Jcr_Content_Slashproxy_User, Jcr_Content_Slashqueue_Batch_Max_Size, Jcr_Content_Slashqueue_Batch_Mode, Jcr_Content_Slashqueue_Batch_Wait_Time, Jcr_Content_Slashretry_Delay, Jcr_Content_Slashreverse_Replication, Jcr_Content_Slashserialization_Type, Jcr_Content_Slashsling_Resource_Type, Jcr_Content_Slashssl, Jcr_Content_Slashtransport_NTLMDomain, Jcr_Content_Slashtransport_NTLMHost, Jcr_Content_Slashtransport_Password, Jcr_Content_Slashtransport_Uri, Jcr_Content_Slashtransport_User, Jcr_Content_Slashtrigger_Distribute, Jcr_Content_Slashtrigger_Modified, Jcr_Content_Slashtrigger_On_Off_Time, Jcr_Content_Slashtrigger_Receive, Jcr_Content_Slashtrigger_Specific, Jcr_Content_Slashuser_Id, Jcr_Primary_Type, Operation, Context); end Post_Agent; package API_Post_Agent is new Swagger.Servers.Operation (Handler => Post_Agent, Method => Swagger.Servers.POST, URI => URI_Prefix & "/etc/replication/agents.{runmode}/{name}"); -- procedure Post_Authorizable_Keystore (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Intermediate_Path : Swagger.UString; Authorizable_Id : Swagger.UString; Operation : Swagger.Nullable_UString; Current_Password : Swagger.Nullable_UString; New_Password : Swagger.Nullable_UString; Re_Password : Swagger.Nullable_UString; Key_Password : Swagger.Nullable_UString; Key_Store_Pass : Swagger.Nullable_UString; Alias : Swagger.Nullable_UString; New_Alias : Swagger.Nullable_UString; Remove_Alias : Swagger.Nullable_UString; Cert_Chain : Swagger.File_Part_Type; Pk : Swagger.File_Part_Type; Key_Store : Swagger.File_Part_Type; Result : .Models.KeystoreInfo_Type; begin Swagger.Servers.Get_Query_Parameter (Req, ":operation", Operation); Swagger.Servers.Get_Query_Parameter (Req, "currentPassword", Current_Password); Swagger.Servers.Get_Query_Parameter (Req, "newPassword", New_Password); Swagger.Servers.Get_Query_Parameter (Req, "rePassword", Re_Password); Swagger.Servers.Get_Query_Parameter (Req, "keyPassword", Key_Password); Swagger.Servers.Get_Query_Parameter (Req, "keyStorePass", Key_Store_Pass); Swagger.Servers.Get_Query_Parameter (Req, "alias", Alias); Swagger.Servers.Get_Query_Parameter (Req, "newAlias", New_Alias); Swagger.Servers.Get_Query_Parameter (Req, "removeAlias", Remove_Alias); Swagger.Servers.Get_Path_Parameter (Req, 1, Intermediate_Path); Swagger.Servers.Get_Path_Parameter (Req, 2, Authorizable_Id); Swagger.Servers.Get_Parameter (Context, "cert-chain", Cert_Chain); Swagger.Servers.Get_Parameter (Context, "pk", Pk); Swagger.Servers.Get_Parameter (Context, "keyStore", Key_Store); Server.Post_Authorizable_Keystore (Intermediate_Path, Authorizable_Id, Operation, Current_Password, New_Password, Re_Password, Key_Password, Key_Store_Pass, Alias, New_Alias, Remove_Alias, Cert_Chain, Pk, Key_Store, Result, Context); if Context.Get_Status = 200 then Stream.Start_Document; .Models.Serialize (Stream, "", Result); Stream.End_Document; end if; end Post_Authorizable_Keystore; package API_Post_Authorizable_Keystore is new Swagger.Servers.Operation (Handler => Post_Authorizable_Keystore, Method => Swagger.Servers.POST, URI => URI_Prefix & "/{intermediatePath}/{authorizableId}.ks.html"); -- procedure Post_Authorizables (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Authorizable_Id : Swagger.UString; Intermediate_Path : Swagger.UString; Create_User : Swagger.Nullable_UString; Create_Group : Swagger.Nullable_UString; Rep_Password : Swagger.Nullable_UString; Profile_Slashgiven_Name : Swagger.Nullable_UString; Result : Swagger.UString; begin Swagger.Servers.Get_Query_Parameter (Req, "authorizableId", Authorizable_Id); Swagger.Servers.Get_Query_Parameter (Req, "intermediatePath", Intermediate_Path); Swagger.Servers.Get_Query_Parameter (Req, "createUser", Create_User); Swagger.Servers.Get_Query_Parameter (Req, "createGroup", Create_Group); Swagger.Servers.Get_Query_Parameter (Req, "rep:password", Rep_Password); Swagger.Servers.Get_Query_Parameter (Req, "profile/givenName", Profile_Slashgiven_Name); Server.Post_Authorizables (Authorizable_Id, Intermediate_Path, Create_User, Create_Group, Rep_Password, Profile_Slashgiven_Name, Result, Context); if Context.Get_Status = 200 then Stream.Start_Document; Swagger.Streams.Serialize (Stream, "", Result); Stream.End_Document; end if; end Post_Authorizables; package API_Post_Authorizables is new Swagger.Servers.Operation (Handler => Post_Authorizables, Method => Swagger.Servers.POST, URI => URI_Prefix & "/libs/granite/security/post/authorizables"); -- procedure Post_Config_Adobe_Granite_Saml_Authentication_Handler (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Key_Store_Password : Swagger.Nullable_UString; Key_Store_Password_At_Type_Hint : Swagger.Nullable_UString; Service_Periodranking : Swagger.Nullable_Integer; Service_Periodranking_At_Type_Hint : Swagger.Nullable_UString; Idp_Http_Redirect : Swagger.Nullable_Boolean; Idp_Http_Redirect_At_Type_Hint : Swagger.Nullable_UString; Create_User : Swagger.Nullable_Boolean; Create_User_At_Type_Hint : Swagger.Nullable_UString; Default_Redirect_Url : Swagger.Nullable_UString; Default_Redirect_Url_At_Type_Hint : Swagger.Nullable_UString; User_IDAttribute : Swagger.Nullable_UString; User_IDAttribute_At_Type_Hint : Swagger.Nullable_UString; Default_Groups : Swagger.UString_Vectors.Vector; Default_Groups_At_Type_Hint : Swagger.Nullable_UString; Idp_Cert_Alias : Swagger.Nullable_UString; Idp_Cert_Alias_At_Type_Hint : Swagger.Nullable_UString; Add_Group_Memberships : Swagger.Nullable_Boolean; Add_Group_Memberships_At_Type_Hint : Swagger.Nullable_UString; Path : Swagger.UString_Vectors.Vector; Path_At_Type_Hint : Swagger.Nullable_UString; Synchronize_Attributes : Swagger.UString_Vectors.Vector; Synchronize_Attributes_At_Type_Hint : Swagger.Nullable_UString; Clock_Tolerance : Swagger.Nullable_Integer; Clock_Tolerance_At_Type_Hint : Swagger.Nullable_UString; Group_Membership_Attribute : Swagger.Nullable_UString; Group_Membership_Attribute_At_Type_Hint : Swagger.Nullable_UString; Idp_Url : Swagger.Nullable_UString; Idp_Url_At_Type_Hint : Swagger.Nullable_UString; Logout_Url : Swagger.Nullable_UString; Logout_Url_At_Type_Hint : Swagger.Nullable_UString; Service_Provider_Entity_Id : Swagger.Nullable_UString; Service_Provider_Entity_Id_At_Type_Hint : Swagger.Nullable_UString; Assertion_Consumer_Service_URL : Swagger.Nullable_UString; Assertion_Consumer_Service_URLAt_Type_Hint : Swagger.Nullable_UString; Handle_Logout : Swagger.Nullable_Boolean; Handle_Logout_At_Type_Hint : Swagger.Nullable_UString; Sp_Private_Key_Alias : Swagger.Nullable_UString; Sp_Private_Key_Alias_At_Type_Hint : Swagger.Nullable_UString; Use_Encryption : Swagger.Nullable_Boolean; Use_Encryption_At_Type_Hint : Swagger.Nullable_UString; Name_Id_Format : Swagger.Nullable_UString; Name_Id_Format_At_Type_Hint : Swagger.Nullable_UString; Digest_Method : Swagger.Nullable_UString; Digest_Method_At_Type_Hint : Swagger.Nullable_UString; Signature_Method : Swagger.Nullable_UString; Signature_Method_At_Type_Hint : Swagger.Nullable_UString; User_Intermediate_Path : Swagger.Nullable_UString; User_Intermediate_Path_At_Type_Hint : Swagger.Nullable_UString; begin Swagger.Servers.Get_Query_Parameter (Req, "keyStorePassword", Key_Store_Password); Swagger.Servers.Get_Query_Parameter (Req, "keyStorePassword@TypeHint", Key_Store_Password_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "service.ranking", Service_Periodranking); Swagger.Servers.Get_Query_Parameter (Req, "service.ranking@TypeHint", Service_Periodranking_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "idpHttpRedirect", Idp_Http_Redirect); Swagger.Servers.Get_Query_Parameter (Req, "idpHttpRedirect@TypeHint", Idp_Http_Redirect_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "createUser", Create_User); Swagger.Servers.Get_Query_Parameter (Req, "createUser@TypeHint", Create_User_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "defaultRedirectUrl", Default_Redirect_Url); Swagger.Servers.Get_Query_Parameter (Req, "defaultRedirectUrl@TypeHint", Default_Redirect_Url_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "userIDAttribute", User_IDAttribute); Swagger.Servers.Get_Query_Parameter (Req, "userIDAttribute@TypeHint", User_IDAttribute_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "defaultGroups", Default_Groups); Swagger.Servers.Get_Query_Parameter (Req, "defaultGroups@TypeHint", Default_Groups_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "idpCertAlias", Idp_Cert_Alias); Swagger.Servers.Get_Query_Parameter (Req, "idpCertAlias@TypeHint", Idp_Cert_Alias_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "addGroupMemberships", Add_Group_Memberships); Swagger.Servers.Get_Query_Parameter (Req, "addGroupMemberships@TypeHint", Add_Group_Memberships_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "path", Path); Swagger.Servers.Get_Query_Parameter (Req, "path@TypeHint", Path_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "synchronizeAttributes", Synchronize_Attributes); Swagger.Servers.Get_Query_Parameter (Req, "synchronizeAttributes@TypeHint", Synchronize_Attributes_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "clockTolerance", Clock_Tolerance); Swagger.Servers.Get_Query_Parameter (Req, "clockTolerance@TypeHint", Clock_Tolerance_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "groupMembershipAttribute", Group_Membership_Attribute); Swagger.Servers.Get_Query_Parameter (Req, "groupMembershipAttribute@TypeHint", Group_Membership_Attribute_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "idpUrl", Idp_Url); Swagger.Servers.Get_Query_Parameter (Req, "idpUrl@TypeHint", Idp_Url_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "logoutUrl", Logout_Url); Swagger.Servers.Get_Query_Parameter (Req, "logoutUrl@TypeHint", Logout_Url_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "serviceProviderEntityId", Service_Provider_Entity_Id); Swagger.Servers.Get_Query_Parameter (Req, "serviceProviderEntityId@TypeHint", Service_Provider_Entity_Id_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "assertionConsumerServiceURL", Assertion_Consumer_Service_URL); Swagger.Servers.Get_Query_Parameter (Req, "assertionConsumerServiceURL@TypeHint", Assertion_Consumer_Service_URLAt_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "handleLogout", Handle_Logout); Swagger.Servers.Get_Query_Parameter (Req, "handleLogout@TypeHint", Handle_Logout_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "spPrivateKeyAlias", Sp_Private_Key_Alias); Swagger.Servers.Get_Query_Parameter (Req, "spPrivateKeyAlias@TypeHint", Sp_Private_Key_Alias_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "useEncryption", Use_Encryption); Swagger.Servers.Get_Query_Parameter (Req, "useEncryption@TypeHint", Use_Encryption_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "nameIdFormat", Name_Id_Format); Swagger.Servers.Get_Query_Parameter (Req, "nameIdFormat@TypeHint", Name_Id_Format_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "digestMethod", Digest_Method); Swagger.Servers.Get_Query_Parameter (Req, "digestMethod@TypeHint", Digest_Method_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "signatureMethod", Signature_Method); Swagger.Servers.Get_Query_Parameter (Req, "signatureMethod@TypeHint", Signature_Method_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "userIntermediatePath", User_Intermediate_Path); Swagger.Servers.Get_Query_Parameter (Req, "userIntermediatePath@TypeHint", User_Intermediate_Path_At_Type_Hint); Server.Post_Config_Adobe_Granite_Saml_Authentication_Handler (Key_Store_Password, Key_Store_Password_At_Type_Hint, Service_Periodranking, Service_Periodranking_At_Type_Hint, Idp_Http_Redirect, Idp_Http_Redirect_At_Type_Hint, Create_User, Create_User_At_Type_Hint, Default_Redirect_Url, Default_Redirect_Url_At_Type_Hint, User_IDAttribute, User_IDAttribute_At_Type_Hint, Default_Groups, Default_Groups_At_Type_Hint, Idp_Cert_Alias, Idp_Cert_Alias_At_Type_Hint, Add_Group_Memberships, Add_Group_Memberships_At_Type_Hint, Path, Path_At_Type_Hint, Synchronize_Attributes, Synchronize_Attributes_At_Type_Hint, Clock_Tolerance, Clock_Tolerance_At_Type_Hint, Group_Membership_Attribute, Group_Membership_Attribute_At_Type_Hint, Idp_Url, Idp_Url_At_Type_Hint, Logout_Url, Logout_Url_At_Type_Hint, Service_Provider_Entity_Id, Service_Provider_Entity_Id_At_Type_Hint, Assertion_Consumer_Service_URL, Assertion_Consumer_Service_URLAt_Type_Hint, Handle_Logout, Handle_Logout_At_Type_Hint, Sp_Private_Key_Alias, Sp_Private_Key_Alias_At_Type_Hint, Use_Encryption, Use_Encryption_At_Type_Hint, Name_Id_Format, Name_Id_Format_At_Type_Hint, Digest_Method, Digest_Method_At_Type_Hint, Signature_Method, Signature_Method_At_Type_Hint, User_Intermediate_Path, User_Intermediate_Path_At_Type_Hint, Context); end Post_Config_Adobe_Granite_Saml_Authentication_Handler; package API_Post_Config_Adobe_Granite_Saml_Authentication_Handler is new Swagger.Servers.Operation (Handler => Post_Config_Adobe_Granite_Saml_Authentication_Handler, Method => Swagger.Servers.POST, URI => URI_Prefix & "/apps/system/config/com.adobe.granite.auth.saml.SamlAuthenticationHandler.config"); -- procedure Post_Config_Apache_Felix_Jetty_Based_Http_Service (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Org_Periodapache_Periodfelix_Periodhttps_Periodnio : Swagger.Nullable_Boolean; Org_Periodapache_Periodfelix_Periodhttps_Periodnio_At_Type_Hint : Swagger.Nullable_UString; Org_Periodapache_Periodfelix_Periodhttps_Periodkeystore : Swagger.Nullable_UString; Org_Periodapache_Periodfelix_Periodhttps_Periodkeystore_At_Type_Hint : Swagger.Nullable_UString; Org_Periodapache_Periodfelix_Periodhttps_Periodkeystore_Periodpassword : Swagger.Nullable_UString; Org_Periodapache_Periodfelix_Periodhttps_Periodkeystore_Periodpassword_At_Type_Hint : Swagger.Nullable_UString; Org_Periodapache_Periodfelix_Periodhttps_Periodkeystore_Periodkey : Swagger.Nullable_UString; Org_Periodapache_Periodfelix_Periodhttps_Periodkeystore_Periodkey_At_Type_Hint : Swagger.Nullable_UString; Org_Periodapache_Periodfelix_Periodhttps_Periodkeystore_Periodkey_Periodpassword : Swagger.Nullable_UString; Org_Periodapache_Periodfelix_Periodhttps_Periodkeystore_Periodkey_Periodpassword_At_Type_Hint : Swagger.Nullable_UString; Org_Periodapache_Periodfelix_Periodhttps_Periodtruststore : Swagger.Nullable_UString; Org_Periodapache_Periodfelix_Periodhttps_Periodtruststore_At_Type_Hint : Swagger.Nullable_UString; Org_Periodapache_Periodfelix_Periodhttps_Periodtruststore_Periodpassword : Swagger.Nullable_UString; Org_Periodapache_Periodfelix_Periodhttps_Periodtruststore_Periodpassword_At_Type_Hint : Swagger.Nullable_UString; Org_Periodapache_Periodfelix_Periodhttps_Periodclientcertificate : Swagger.Nullable_UString; Org_Periodapache_Periodfelix_Periodhttps_Periodclientcertificate_At_Type_Hint : Swagger.Nullable_UString; Org_Periodapache_Periodfelix_Periodhttps_Periodenable : Swagger.Nullable_Boolean; Org_Periodapache_Periodfelix_Periodhttps_Periodenable_At_Type_Hint : Swagger.Nullable_UString; Org_Periodosgi_Periodservice_Periodhttp_Periodport_Periodsecure : Swagger.Nullable_UString; Org_Periodosgi_Periodservice_Periodhttp_Periodport_Periodsecure_At_Type_Hint : Swagger.Nullable_UString; begin Swagger.Servers.Get_Query_Parameter (Req, "org.apache.felix.https.nio", Org_Periodapache_Periodfelix_Periodhttps_Periodnio); Swagger.Servers.Get_Query_Parameter (Req, "org.apache.felix.https.nio@TypeHint", Org_Periodapache_Periodfelix_Periodhttps_Periodnio_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "org.apache.felix.https.keystore", Org_Periodapache_Periodfelix_Periodhttps_Periodkeystore); Swagger.Servers.Get_Query_Parameter (Req, "org.apache.felix.https.keystore@TypeHint", Org_Periodapache_Periodfelix_Periodhttps_Periodkeystore_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "org.apache.felix.https.keystore.password", Org_Periodapache_Periodfelix_Periodhttps_Periodkeystore_Periodpassword); Swagger.Servers.Get_Query_Parameter (Req, "org.apache.felix.https.keystore.password@TypeHint", Org_Periodapache_Periodfelix_Periodhttps_Periodkeystore_Periodpassword_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "org.apache.felix.https.keystore.key", Org_Periodapache_Periodfelix_Periodhttps_Periodkeystore_Periodkey); Swagger.Servers.Get_Query_Parameter (Req, "org.apache.felix.https.keystore.key@TypeHint", Org_Periodapache_Periodfelix_Periodhttps_Periodkeystore_Periodkey_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "org.apache.felix.https.keystore.key.password", Org_Periodapache_Periodfelix_Periodhttps_Periodkeystore_Periodkey_Periodpassword); Swagger.Servers.Get_Query_Parameter (Req, "org.apache.felix.https.keystore.key.password@TypeHint", Org_Periodapache_Periodfelix_Periodhttps_Periodkeystore_Periodkey_Periodpassword_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "org.apache.felix.https.truststore", Org_Periodapache_Periodfelix_Periodhttps_Periodtruststore); Swagger.Servers.Get_Query_Parameter (Req, "org.apache.felix.https.truststore@TypeHint", Org_Periodapache_Periodfelix_Periodhttps_Periodtruststore_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "org.apache.felix.https.truststore.password", Org_Periodapache_Periodfelix_Periodhttps_Periodtruststore_Periodpassword); Swagger.Servers.Get_Query_Parameter (Req, "org.apache.felix.https.truststore.password@TypeHint", Org_Periodapache_Periodfelix_Periodhttps_Periodtruststore_Periodpassword_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "org.apache.felix.https.clientcertificate", Org_Periodapache_Periodfelix_Periodhttps_Periodclientcertificate); Swagger.Servers.Get_Query_Parameter (Req, "org.apache.felix.https.clientcertificate@TypeHint", Org_Periodapache_Periodfelix_Periodhttps_Periodclientcertificate_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "org.apache.felix.https.enable", Org_Periodapache_Periodfelix_Periodhttps_Periodenable); Swagger.Servers.Get_Query_Parameter (Req, "org.apache.felix.https.enable@TypeHint", Org_Periodapache_Periodfelix_Periodhttps_Periodenable_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "org.osgi.service.http.port.secure", Org_Periodosgi_Periodservice_Periodhttp_Periodport_Periodsecure); Swagger.Servers.Get_Query_Parameter (Req, "org.osgi.service.http.port.secure@TypeHint", Org_Periodosgi_Periodservice_Periodhttp_Periodport_Periodsecure_At_Type_Hint); Server.Post_Config_Apache_Felix_Jetty_Based_Http_Service (Org_Periodapache_Periodfelix_Periodhttps_Periodnio, Org_Periodapache_Periodfelix_Periodhttps_Periodnio_At_Type_Hint, Org_Periodapache_Periodfelix_Periodhttps_Periodkeystore, Org_Periodapache_Periodfelix_Periodhttps_Periodkeystore_At_Type_Hint, Org_Periodapache_Periodfelix_Periodhttps_Periodkeystore_Periodpassword, Org_Periodapache_Periodfelix_Periodhttps_Periodkeystore_Periodpassword_At_Type_Hint, Org_Periodapache_Periodfelix_Periodhttps_Periodkeystore_Periodkey, Org_Periodapache_Periodfelix_Periodhttps_Periodkeystore_Periodkey_At_Type_Hint, Org_Periodapache_Periodfelix_Periodhttps_Periodkeystore_Periodkey_Periodpassword, Org_Periodapache_Periodfelix_Periodhttps_Periodkeystore_Periodkey_Periodpassword_At_Type_Hint, Org_Periodapache_Periodfelix_Periodhttps_Periodtruststore, Org_Periodapache_Periodfelix_Periodhttps_Periodtruststore_At_Type_Hint, Org_Periodapache_Periodfelix_Periodhttps_Periodtruststore_Periodpassword, Org_Periodapache_Periodfelix_Periodhttps_Periodtruststore_Periodpassword_At_Type_Hint, Org_Periodapache_Periodfelix_Periodhttps_Periodclientcertificate, Org_Periodapache_Periodfelix_Periodhttps_Periodclientcertificate_At_Type_Hint, Org_Periodapache_Periodfelix_Periodhttps_Periodenable, Org_Periodapache_Periodfelix_Periodhttps_Periodenable_At_Type_Hint, Org_Periodosgi_Periodservice_Periodhttp_Periodport_Periodsecure, Org_Periodosgi_Periodservice_Periodhttp_Periodport_Periodsecure_At_Type_Hint, Context); end Post_Config_Apache_Felix_Jetty_Based_Http_Service; package API_Post_Config_Apache_Felix_Jetty_Based_Http_Service is new Swagger.Servers.Operation (Handler => Post_Config_Apache_Felix_Jetty_Based_Http_Service, Method => Swagger.Servers.POST, URI => URI_Prefix & "/apps/system/config/org.apache.felix.http"); -- procedure Post_Config_Apache_Http_Components_Proxy_Configuration (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Proxy_Periodhost : Swagger.Nullable_UString; Proxy_Periodhost_At_Type_Hint : Swagger.Nullable_UString; Proxy_Periodport : Swagger.Nullable_Integer; Proxy_Periodport_At_Type_Hint : Swagger.Nullable_UString; Proxy_Periodexceptions : Swagger.UString_Vectors.Vector; Proxy_Periodexceptions_At_Type_Hint : Swagger.Nullable_UString; Proxy_Periodenabled : Swagger.Nullable_Boolean; Proxy_Periodenabled_At_Type_Hint : Swagger.Nullable_UString; Proxy_Perioduser : Swagger.Nullable_UString; Proxy_Perioduser_At_Type_Hint : Swagger.Nullable_UString; Proxy_Periodpassword : Swagger.Nullable_UString; Proxy_Periodpassword_At_Type_Hint : Swagger.Nullable_UString; begin Swagger.Servers.Get_Query_Parameter (Req, "proxy.host", Proxy_Periodhost); Swagger.Servers.Get_Query_Parameter (Req, "proxy.host@TypeHint", Proxy_Periodhost_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "proxy.port", Proxy_Periodport); Swagger.Servers.Get_Query_Parameter (Req, "proxy.port@TypeHint", Proxy_Periodport_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "proxy.exceptions", Proxy_Periodexceptions); Swagger.Servers.Get_Query_Parameter (Req, "proxy.exceptions@TypeHint", Proxy_Periodexceptions_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "proxy.enabled", Proxy_Periodenabled); Swagger.Servers.Get_Query_Parameter (Req, "proxy.enabled@TypeHint", Proxy_Periodenabled_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "proxy.user", Proxy_Perioduser); Swagger.Servers.Get_Query_Parameter (Req, "proxy.user@TypeHint", Proxy_Perioduser_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "proxy.password", Proxy_Periodpassword); Swagger.Servers.Get_Query_Parameter (Req, "proxy.password@TypeHint", Proxy_Periodpassword_At_Type_Hint); Server.Post_Config_Apache_Http_Components_Proxy_Configuration (Proxy_Periodhost, Proxy_Periodhost_At_Type_Hint, Proxy_Periodport, Proxy_Periodport_At_Type_Hint, Proxy_Periodexceptions, Proxy_Periodexceptions_At_Type_Hint, Proxy_Periodenabled, Proxy_Periodenabled_At_Type_Hint, Proxy_Perioduser, Proxy_Perioduser_At_Type_Hint, Proxy_Periodpassword, Proxy_Periodpassword_At_Type_Hint, Context); end Post_Config_Apache_Http_Components_Proxy_Configuration; package API_Post_Config_Apache_Http_Components_Proxy_Configuration is new Swagger.Servers.Operation (Handler => Post_Config_Apache_Http_Components_Proxy_Configuration, Method => Swagger.Servers.POST, URI => URI_Prefix & "/apps/system/config/org.apache.http.proxyconfigurator.config"); -- procedure Post_Config_Apache_Sling_Dav_Ex_Servlet (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Alias : Swagger.Nullable_UString; Alias_At_Type_Hint : Swagger.Nullable_UString; Dav_Periodcreate_Absolute_Uri : Swagger.Nullable_Boolean; Dav_Periodcreate_Absolute_Uri_At_Type_Hint : Swagger.Nullable_UString; begin Swagger.Servers.Get_Query_Parameter (Req, "alias", Alias); Swagger.Servers.Get_Query_Parameter (Req, "alias@TypeHint", Alias_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "dav.create-absolute-uri", Dav_Periodcreate_Absolute_Uri); Swagger.Servers.Get_Query_Parameter (Req, "dav.create-absolute-uri@TypeHint", Dav_Periodcreate_Absolute_Uri_At_Type_Hint); Server.Post_Config_Apache_Sling_Dav_Ex_Servlet (Alias, Alias_At_Type_Hint, Dav_Periodcreate_Absolute_Uri, Dav_Periodcreate_Absolute_Uri_At_Type_Hint, Context); end Post_Config_Apache_Sling_Dav_Ex_Servlet; package API_Post_Config_Apache_Sling_Dav_Ex_Servlet is new Swagger.Servers.Operation (Handler => Post_Config_Apache_Sling_Dav_Ex_Servlet, Method => Swagger.Servers.POST, URI => URI_Prefix & "/apps/system/config/org.apache.sling.jcr.davex.impl.servlets.SlingDavExServlet"); -- procedure Post_Config_Apache_Sling_Get_Servlet (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Json_Periodmaximumresults : Swagger.Nullable_UString; Json_Periodmaximumresults_At_Type_Hint : Swagger.Nullable_UString; Enable_Periodhtml : Swagger.Nullable_Boolean; Enable_Periodhtml_At_Type_Hint : Swagger.Nullable_UString; Enable_Periodtxt : Swagger.Nullable_Boolean; Enable_Periodtxt_At_Type_Hint : Swagger.Nullable_UString; Enable_Periodxml : Swagger.Nullable_Boolean; Enable_Periodxml_At_Type_Hint : Swagger.Nullable_UString; begin Swagger.Servers.Get_Query_Parameter (Req, "json.maximumresults", Json_Periodmaximumresults); Swagger.Servers.Get_Query_Parameter (Req, "json.maximumresults@TypeHint", Json_Periodmaximumresults_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "enable.html", Enable_Periodhtml); Swagger.Servers.Get_Query_Parameter (Req, "enable.html@TypeHint", Enable_Periodhtml_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "enable.txt", Enable_Periodtxt); Swagger.Servers.Get_Query_Parameter (Req, "enable.txt@TypeHint", Enable_Periodtxt_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "enable.xml", Enable_Periodxml); Swagger.Servers.Get_Query_Parameter (Req, "enable.xml@TypeHint", Enable_Periodxml_At_Type_Hint); Server.Post_Config_Apache_Sling_Get_Servlet (Json_Periodmaximumresults, Json_Periodmaximumresults_At_Type_Hint, Enable_Periodhtml, Enable_Periodhtml_At_Type_Hint, Enable_Periodtxt, Enable_Periodtxt_At_Type_Hint, Enable_Periodxml, Enable_Periodxml_At_Type_Hint, Context); end Post_Config_Apache_Sling_Get_Servlet; package API_Post_Config_Apache_Sling_Get_Servlet is new Swagger.Servers.Operation (Handler => Post_Config_Apache_Sling_Get_Servlet, Method => Swagger.Servers.POST, URI => URI_Prefix & "/apps/system/config/org.apache.sling.servlets.get.DefaultGetServlet"); -- procedure Post_Config_Apache_Sling_Referrer_Filter (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Allow_Periodempty : Swagger.Nullable_Boolean; Allow_Periodempty_At_Type_Hint : Swagger.Nullable_UString; Allow_Periodhosts : Swagger.Nullable_UString; Allow_Periodhosts_At_Type_Hint : Swagger.Nullable_UString; Allow_Periodhosts_Periodregexp : Swagger.Nullable_UString; Allow_Periodhosts_Periodregexp_At_Type_Hint : Swagger.Nullable_UString; Filter_Periodmethods : Swagger.Nullable_UString; Filter_Periodmethods_At_Type_Hint : Swagger.Nullable_UString; begin Swagger.Servers.Get_Query_Parameter (Req, "allow.empty", Allow_Periodempty); Swagger.Servers.Get_Query_Parameter (Req, "allow.empty@TypeHint", Allow_Periodempty_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "allow.hosts", Allow_Periodhosts); Swagger.Servers.Get_Query_Parameter (Req, "allow.hosts@TypeHint", Allow_Periodhosts_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "allow.hosts.regexp", Allow_Periodhosts_Periodregexp); Swagger.Servers.Get_Query_Parameter (Req, "allow.hosts.regexp@TypeHint", Allow_Periodhosts_Periodregexp_At_Type_Hint); Swagger.Servers.Get_Query_Parameter (Req, "filter.methods", Filter_Periodmethods); Swagger.Servers.Get_Query_Parameter (Req, "filter.methods@TypeHint", Filter_Periodmethods_At_Type_Hint); Server.Post_Config_Apache_Sling_Referrer_Filter (Allow_Periodempty, Allow_Periodempty_At_Type_Hint, Allow_Periodhosts, Allow_Periodhosts_At_Type_Hint, Allow_Periodhosts_Periodregexp, Allow_Periodhosts_Periodregexp_At_Type_Hint, Filter_Periodmethods, Filter_Periodmethods_At_Type_Hint, Context); end Post_Config_Apache_Sling_Referrer_Filter; package API_Post_Config_Apache_Sling_Referrer_Filter is new Swagger.Servers.Operation (Handler => Post_Config_Apache_Sling_Referrer_Filter, Method => Swagger.Servers.POST, URI => URI_Prefix & "/apps/system/config/org.apache.sling.security.impl.ReferrerFilter"); -- procedure Post_Config_Property (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Config_Node_Name : Swagger.UString; begin Swagger.Servers.Get_Path_Parameter (Req, 1, Config_Node_Name); Server.Post_Config_Property (Config_Node_Name, Context); end Post_Config_Property; package API_Post_Config_Property is new Swagger.Servers.Operation (Handler => Post_Config_Property, Method => Swagger.Servers.POST, URI => URI_Prefix & "/apps/system/config/{configNodeName}"); -- procedure Post_Node (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Path : Swagger.UString; Name : Swagger.UString; Operation : Swagger.Nullable_UString; Delete_Authorizable : Swagger.Nullable_UString; File : Swagger.File_Part_Type; begin Swagger.Servers.Get_Query_Parameter (Req, ":operation", Operation); Swagger.Servers.Get_Query_Parameter (Req, "deleteAuthorizable", Delete_Authorizable); Swagger.Servers.Get_Path_Parameter (Req, 1, Path); Swagger.Servers.Get_Path_Parameter (Req, 2, Name); Swagger.Servers.Get_Parameter (Context, "file", File); Server.Post_Node (Path, Name, Operation, Delete_Authorizable, File, Context); end Post_Node; package API_Post_Node is new Swagger.Servers.Operation (Handler => Post_Node, Method => Swagger.Servers.POST, URI => URI_Prefix & "/{path}/{name}"); -- procedure Post_Node_Rw (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Path : Swagger.UString; Name : Swagger.UString; Add_Members : Swagger.Nullable_UString; begin Swagger.Servers.Get_Query_Parameter (Req, "addMembers", Add_Members); Swagger.Servers.Get_Path_Parameter (Req, 1, Path); Swagger.Servers.Get_Path_Parameter (Req, 2, Name); Server.Post_Node_Rw (Path, Name, Add_Members, Context); end Post_Node_Rw; package API_Post_Node_Rw is new Swagger.Servers.Operation (Handler => Post_Node_Rw, Method => Swagger.Servers.POST, URI => URI_Prefix & "/{path}/{name}.rw.html"); -- procedure Post_Path (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Path : Swagger.UString; Jcr_Primary_Type : Swagger.UString; Name : Swagger.UString; begin Swagger.Servers.Get_Query_Parameter (Req, "jcr:primaryType", Jcr_Primary_Type); Swagger.Servers.Get_Query_Parameter (Req, ":name", Name); Swagger.Servers.Get_Path_Parameter (Req, 1, Path); Server.Post_Path (Path, Jcr_Primary_Type, Name, Context); end Post_Path; package API_Post_Path is new Swagger.Servers.Operation (Handler => Post_Path, Method => Swagger.Servers.POST, URI => URI_Prefix & "/{path}/"); -- procedure Post_Query (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Path : Swagger.UString; P_Periodlimit : Swagger.Number; P_1Property : Swagger.UString; P_1Property_Periodvalue : Swagger.UString; Result : Swagger.UString; begin Swagger.Servers.Get_Query_Parameter (Req, "path", Path); Swagger.Servers.Get_Query_Parameter (Req, "p.limit", P_Periodlimit); Swagger.Servers.Get_Query_Parameter (Req, "1_property", P_1Property); Swagger.Servers.Get_Query_Parameter (Req, "1_property.value", P_1Property_Periodvalue); Server.Post_Query (Path, P_Periodlimit, P_1Property, P_1Property_Periodvalue, Result, Context); if Context.Get_Status = 200 then Stream.Start_Document; Swagger.Streams.Serialize (Stream, "", Result); Stream.End_Document; end if; end Post_Query; package API_Post_Query is new Swagger.Servers.Operation (Handler => Post_Query, Method => Swagger.Servers.POST, URI => URI_Prefix & "/bin/querybuilder.json"); -- procedure Post_Tree_Activation (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Ignoredeactivated : Boolean; Onlymodified : Boolean; Path : Swagger.UString; begin Swagger.Servers.Get_Query_Parameter (Req, "ignoredeactivated", Ignoredeactivated); Swagger.Servers.Get_Query_Parameter (Req, "onlymodified", Onlymodified); Swagger.Servers.Get_Query_Parameter (Req, "path", Path); Server.Post_Tree_Activation (Ignoredeactivated, Onlymodified, Path, Context); end Post_Tree_Activation; package API_Post_Tree_Activation is new Swagger.Servers.Operation (Handler => Post_Tree_Activation, Method => Swagger.Servers.POST, URI => URI_Prefix & "/etc/replication/treeactivation.html"); -- procedure Post_Truststore (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Operation : Swagger.Nullable_UString; New_Password : Swagger.Nullable_UString; Re_Password : Swagger.Nullable_UString; Key_Store_Type : Swagger.Nullable_UString; Remove_Alias : Swagger.Nullable_UString; Certificate : Swagger.File_Part_Type; Result : Swagger.UString; begin Swagger.Servers.Get_Query_Parameter (Req, ":operation", Operation); Swagger.Servers.Get_Query_Parameter (Req, "newPassword", New_Password); Swagger.Servers.Get_Query_Parameter (Req, "rePassword", Re_Password); Swagger.Servers.Get_Query_Parameter (Req, "keyStoreType", Key_Store_Type); Swagger.Servers.Get_Query_Parameter (Req, "removeAlias", Remove_Alias); Swagger.Servers.Get_Parameter (Context, "certificate", Certificate); Server.Post_Truststore (Operation, New_Password, Re_Password, Key_Store_Type, Remove_Alias, Certificate, Result, Context); if Context.Get_Status = 200 then Stream.Start_Document; Swagger.Streams.Serialize (Stream, "", Result); Stream.End_Document; end if; end Post_Truststore; package API_Post_Truststore is new Swagger.Servers.Operation (Handler => Post_Truststore, Method => Swagger.Servers.POST, URI => URI_Prefix & "/libs/granite/security/post/truststore"); -- procedure Post_Truststore_PKCS12 (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Truststore_Periodp_12 : Swagger.File_Part_Type; Result : Swagger.UString; begin Swagger.Servers.Get_Parameter (Context, "truststore.p12", Truststore_Periodp_12); Server.Post_Truststore_PKCS12 (Truststore_Periodp_12, Result, Context); if Context.Get_Status = 200 then Stream.Start_Document; Swagger.Streams.Serialize (Stream, "", Result); Stream.End_Document; end if; end Post_Truststore_PKCS12; package API_Post_Truststore_PKCS12 is new Swagger.Servers.Operation (Handler => Post_Truststore_PKCS12, Method => Swagger.Servers.POST, URI => URI_Prefix & "/etc/truststore"); procedure Register (Server : in out Swagger.Servers.Application_Type'Class) is begin Swagger.Servers.Register (Server, API_Get_Aem_Product_Info.Definition); Swagger.Servers.Register (Server, API_Get_Bundle_Info.Definition); Swagger.Servers.Register (Server, API_Get_Config_Mgr.Definition); Swagger.Servers.Register (Server, API_Post_Bundle.Definition); Swagger.Servers.Register (Server, API_Post_Jmx_Repository.Definition); Swagger.Servers.Register (Server, API_Post_Saml_Configuration.Definition); Swagger.Servers.Register (Server, API_Get_Login_Page.Definition); Swagger.Servers.Register (Server, API_Post_Cq_Actions.Definition); Swagger.Servers.Register (Server, API_Get_Crxde_Status.Definition); Swagger.Servers.Register (Server, API_Get_Install_Status.Definition); Swagger.Servers.Register (Server, API_Get_Package_Manager_Servlet.Definition); Swagger.Servers.Register (Server, API_Post_Package_Service.Definition); Swagger.Servers.Register (Server, API_Post_Package_Service_Json.Definition); Swagger.Servers.Register (Server, API_Post_Package_Update.Definition); Swagger.Servers.Register (Server, API_Post_Set_Password.Definition); Swagger.Servers.Register (Server, API_Get_Aem_Health_Check.Definition); Swagger.Servers.Register (Server, API_Post_Config_Aem_Health_Check_Servlet.Definition); Swagger.Servers.Register (Server, API_Post_Config_Aem_Password_Reset.Definition); Swagger.Servers.Register (Server, API_Ssl_Setup.Definition); Swagger.Servers.Register (Server, API_Delete_Agent.Definition); Swagger.Servers.Register (Server, API_Delete_Node.Definition); Swagger.Servers.Register (Server, API_Get_Agent.Definition); Swagger.Servers.Register (Server, API_Get_Agents.Definition); Swagger.Servers.Register (Server, API_Get_Authorizable_Keystore.Definition); Swagger.Servers.Register (Server, API_Get_Keystore.Definition); Swagger.Servers.Register (Server, API_Get_Node.Definition); Swagger.Servers.Register (Server, API_Get_Package.Definition); Swagger.Servers.Register (Server, API_Get_Package_Filter.Definition); Swagger.Servers.Register (Server, API_Get_Query.Definition); Swagger.Servers.Register (Server, API_Get_Truststore.Definition); Swagger.Servers.Register (Server, API_Get_Truststore_Info.Definition); Swagger.Servers.Register (Server, API_Post_Agent.Definition); Swagger.Servers.Register (Server, API_Post_Authorizable_Keystore.Definition); Swagger.Servers.Register (Server, API_Post_Authorizables.Definition); Swagger.Servers.Register (Server, API_Post_Config_Adobe_Granite_Saml_Authentication_Handler.Definition); Swagger.Servers.Register (Server, API_Post_Config_Apache_Felix_Jetty_Based_Http_Service.Definition); Swagger.Servers.Register (Server, API_Post_Config_Apache_Http_Components_Proxy_Configuration.Definition); Swagger.Servers.Register (Server, API_Post_Config_Apache_Sling_Dav_Ex_Servlet.Definition); Swagger.Servers.Register (Server, API_Post_Config_Apache_Sling_Get_Servlet.Definition); Swagger.Servers.Register (Server, API_Post_Config_Apache_Sling_Referrer_Filter.Definition); Swagger.Servers.Register (Server, API_Post_Config_Property.Definition); Swagger.Servers.Register (Server, API_Post_Node.Definition); Swagger.Servers.Register (Server, API_Post_Node_Rw.Definition); Swagger.Servers.Register (Server, API_Post_Path.Definition); Swagger.Servers.Register (Server, API_Post_Query.Definition); Swagger.Servers.Register (Server, API_Post_Tree_Activation.Definition); Swagger.Servers.Register (Server, API_Post_Truststore.Definition); Swagger.Servers.Register (Server, API_Post_Truststore_PKCS12.Definition); end Register; protected body Server is -- procedure Get_Aem_Product_Info (Result : out Swagger.UString_Vectors.Vector; Context : in out Swagger.Servers.Context_Type) is begin Impl.Get_Aem_Product_Info (Result, Context); end Get_Aem_Product_Info; -- procedure Get_Bundle_Info (Name : in Swagger.UString; Result : out .Models.BundleInfo_Type; Context : in out Swagger.Servers.Context_Type) is begin Impl.Get_Bundle_Info (Name, Result, Context); end Get_Bundle_Info; -- procedure Get_Config_Mgr (Result : out Swagger.UString; Context : in out Swagger.Servers.Context_Type) is begin Impl.Get_Config_Mgr (Result, Context); end Get_Config_Mgr; -- procedure Post_Bundle (Name : in Swagger.UString; Action : in Swagger.UString; Context : in out Swagger.Servers.Context_Type) is begin Impl.Post_Bundle (Name, Action, Context); end Post_Bundle; -- procedure Post_Jmx_Repository (Action : in Swagger.UString; Context : in out Swagger.Servers.Context_Type) is begin Impl.Post_Jmx_Repository (Action, Context); end Post_Jmx_Repository; -- procedure Post_Saml_Configuration (Post : in Swagger.Nullable_Boolean; Apply : in Swagger.Nullable_Boolean; Delete : in Swagger.Nullable_Boolean; Action : in Swagger.Nullable_UString; Dollarlocation : in Swagger.Nullable_UString; Path : in Swagger.UString_Vectors.Vector; Service_Periodranking : in Swagger.Nullable_Integer; Idp_Url : in Swagger.Nullable_UString; Idp_Cert_Alias : in Swagger.Nullable_UString; Idp_Http_Redirect : in Swagger.Nullable_Boolean; Service_Provider_Entity_Id : in Swagger.Nullable_UString; Assertion_Consumer_Service_URL : in Swagger.Nullable_UString; Sp_Private_Key_Alias : in Swagger.Nullable_UString; Key_Store_Password : in Swagger.Nullable_UString; Default_Redirect_Url : in Swagger.Nullable_UString; User_IDAttribute : in Swagger.Nullable_UString; Use_Encryption : in Swagger.Nullable_Boolean; Create_User : in Swagger.Nullable_Boolean; Add_Group_Memberships : in Swagger.Nullable_Boolean; Group_Membership_Attribute : in Swagger.Nullable_UString; Default_Groups : in Swagger.UString_Vectors.Vector; Name_Id_Format : in Swagger.Nullable_UString; Synchronize_Attributes : in Swagger.UString_Vectors.Vector; Handle_Logout : in Swagger.Nullable_Boolean; Logout_Url : in Swagger.Nullable_UString; Clock_Tolerance : in Swagger.Nullable_Integer; Digest_Method : in Swagger.Nullable_UString; Signature_Method : in Swagger.Nullable_UString; User_Intermediate_Path : in Swagger.Nullable_UString; Propertylist : in Swagger.UString_Vectors.Vector; Result : out .Models.SamlConfigurationInfo_Type; Context : in out Swagger.Servers.Context_Type) is begin Impl.Post_Saml_Configuration (Post, Apply, Delete, Action, Dollarlocation, Path, Service_Periodranking, Idp_Url, Idp_Cert_Alias, Idp_Http_Redirect, Service_Provider_Entity_Id, Assertion_Consumer_Service_URL, Sp_Private_Key_Alias, Key_Store_Password, Default_Redirect_Url, User_IDAttribute, Use_Encryption, Create_User, Add_Group_Memberships, Group_Membership_Attribute, Default_Groups, Name_Id_Format, Synchronize_Attributes, Handle_Logout, Logout_Url, Clock_Tolerance, Digest_Method, Signature_Method, User_Intermediate_Path, Propertylist, Result, Context); end Post_Saml_Configuration; -- procedure Get_Login_Page (Result : out Swagger.UString; Context : in out Swagger.Servers.Context_Type) is begin Impl.Get_Login_Page (Result, Context); end Get_Login_Page; -- procedure Post_Cq_Actions (Authorizable_Id : in Swagger.UString; Changelog : in Swagger.UString; Context : in out Swagger.Servers.Context_Type) is begin Impl.Post_Cq_Actions (Authorizable_Id, Changelog, Context); end Post_Cq_Actions; -- procedure Get_Crxde_Status (Result : out Swagger.UString; Context : in out Swagger.Servers.Context_Type) is begin Impl.Get_Crxde_Status (Result, Context); end Get_Crxde_Status; -- procedure Get_Install_Status (Result : out .Models.InstallStatus_Type; Context : in out Swagger.Servers.Context_Type) is begin Impl.Get_Install_Status (Result, Context); end Get_Install_Status; -- procedure Get_Package_Manager_Servlet (Context : in out Swagger.Servers.Context_Type) is begin Impl.Get_Package_Manager_Servlet (Context); end Get_Package_Manager_Servlet; -- procedure Post_Package_Service (Cmd : in Swagger.UString; Result : out Swagger.UString; Context : in out Swagger.Servers.Context_Type) is begin Impl.Post_Package_Service (Cmd, Result, Context); end Post_Package_Service; -- procedure Post_Package_Service_Json (Path : in Swagger.UString; Cmd : in Swagger.UString; Group_Name : in Swagger.Nullable_UString; Package_Name : in Swagger.Nullable_UString; Package_Version : in Swagger.Nullable_UString; Charset : in Swagger.Nullable_UString; Force : in Swagger.Nullable_Boolean; Recursive : in Swagger.Nullable_Boolean; P_Package : in Swagger.File_Part_Type; Result : out Swagger.UString; Context : in out Swagger.Servers.Context_Type) is begin Impl.Post_Package_Service_Json (Path, Cmd, Group_Name, Package_Name, Package_Version, Charset, Force, Recursive, P_Package, Result, Context); end Post_Package_Service_Json; -- procedure Post_Package_Update (Group_Name : in Swagger.UString; Package_Name : in Swagger.UString; Version : in Swagger.UString; Path : in Swagger.UString; Filter : in Swagger.Nullable_UString; Charset : in Swagger.Nullable_UString; Result : out Swagger.UString; Context : in out Swagger.Servers.Context_Type) is begin Impl.Post_Package_Update (Group_Name, Package_Name, Version, Path, Filter, Charset, Result, Context); end Post_Package_Update; -- procedure Post_Set_Password (Old : in Swagger.UString; Plain : in Swagger.UString; Verify : in Swagger.UString; Result : out Swagger.UString; Context : in out Swagger.Servers.Context_Type) is begin Impl.Post_Set_Password (Old, Plain, Verify, Result, Context); end Post_Set_Password; -- procedure Get_Aem_Health_Check (Tags : in Swagger.Nullable_UString; Combine_Tags_Or : in Swagger.Nullable_Boolean; Result : out Swagger.UString; Context : in out Swagger.Servers.Context_Type) is begin Impl.Get_Aem_Health_Check (Tags, Combine_Tags_Or, Result, Context); end Get_Aem_Health_Check; -- procedure Post_Config_Aem_Health_Check_Servlet (Bundles_Periodignored : in Swagger.UString_Vectors.Vector; Bundles_Periodignored_At_Type_Hint : in Swagger.Nullable_UString; Context : in out Swagger.Servers.Context_Type) is begin Impl.Post_Config_Aem_Health_Check_Servlet (Bundles_Periodignored, Bundles_Periodignored_At_Type_Hint, Context); end Post_Config_Aem_Health_Check_Servlet; -- procedure Post_Config_Aem_Password_Reset (Pwdreset_Periodauthorizables : in Swagger.UString_Vectors.Vector; Pwdreset_Periodauthorizables_At_Type_Hint : in Swagger.Nullable_UString; Context : in out Swagger.Servers.Context_Type) is begin Impl.Post_Config_Aem_Password_Reset (Pwdreset_Periodauthorizables, Pwdreset_Periodauthorizables_At_Type_Hint, Context); end Post_Config_Aem_Password_Reset; -- procedure Ssl_Setup (Keystore_Password : in Swagger.UString; Keystore_Password_Confirm : in Swagger.UString; Truststore_Password : in Swagger.UString; Truststore_Password_Confirm : in Swagger.UString; Https_Hostname : in Swagger.UString; Https_Port : in Swagger.UString; Privatekey_File : in Swagger.File_Part_Type; Certificate_File : in Swagger.File_Part_Type; Result : out Swagger.UString; Context : in out Swagger.Servers.Context_Type) is begin Impl.Ssl_Setup (Keystore_Password, Keystore_Password_Confirm, Truststore_Password, Truststore_Password_Confirm, Https_Hostname, Https_Port, Privatekey_File, Certificate_File, Result, Context); end Ssl_Setup; -- procedure Delete_Agent (Runmode : in Swagger.UString; Name : in Swagger.UString; Context : in out Swagger.Servers.Context_Type) is begin Impl.Delete_Agent (Runmode, Name, Context); end Delete_Agent; -- procedure Delete_Node (Path : in Swagger.UString; Name : in Swagger.UString; Context : in out Swagger.Servers.Context_Type) is begin Impl.Delete_Node (Path, Name, Context); end Delete_Node; -- procedure Get_Agent (Runmode : in Swagger.UString; Name : in Swagger.UString; Context : in out Swagger.Servers.Context_Type) is begin Impl.Get_Agent (Runmode, Name, Context); end Get_Agent; -- procedure Get_Agents (Runmode : in Swagger.UString; Result : out Swagger.UString; Context : in out Swagger.Servers.Context_Type) is begin Impl.Get_Agents (Runmode, Result, Context); end Get_Agents; -- procedure Get_Authorizable_Keystore (Intermediate_Path : in Swagger.UString; Authorizable_Id : in Swagger.UString; Result : out .Models.KeystoreInfo_Type; Context : in out Swagger.Servers.Context_Type) is begin Impl.Get_Authorizable_Keystore (Intermediate_Path, Authorizable_Id, Result, Context); end Get_Authorizable_Keystore; -- procedure Get_Keystore (Intermediate_Path : in Swagger.UString; Authorizable_Id : in Swagger.UString; Result : out Swagger.Http_Content_Type; Context : in out Swagger.Servers.Context_Type) is begin Impl.Get_Keystore (Intermediate_Path, Authorizable_Id, Result, Context); end Get_Keystore; -- procedure Get_Node (Path : in Swagger.UString; Name : in Swagger.UString; Context : in out Swagger.Servers.Context_Type) is begin Impl.Get_Node (Path, Name, Context); end Get_Node; -- procedure Get_Package (Group : in Swagger.UString; Name : in Swagger.UString; Version : in Swagger.UString; Result : out Swagger.Http_Content_Type; Context : in out Swagger.Servers.Context_Type) is begin Impl.Get_Package (Group, Name, Version, Result, Context); end Get_Package; -- procedure Get_Package_Filter (Group : in Swagger.UString; Name : in Swagger.UString; Version : in Swagger.UString; Result : out Swagger.UString; Context : in out Swagger.Servers.Context_Type) is begin Impl.Get_Package_Filter (Group, Name, Version, Result, Context); end Get_Package_Filter; -- procedure Get_Query (Path : in Swagger.UString; P_Periodlimit : in Swagger.Number; P_1Property : in Swagger.UString; P_1Property_Periodvalue : in Swagger.UString; Result : out Swagger.UString; Context : in out Swagger.Servers.Context_Type) is begin Impl.Get_Query (Path, P_Periodlimit, P_1Property, P_1Property_Periodvalue, Result, Context); end Get_Query; -- procedure Get_Truststore (Result : out Swagger.Http_Content_Type; Context : in out Swagger.Servers.Context_Type) is begin Impl.Get_Truststore (Result, Context); end Get_Truststore; -- procedure Get_Truststore_Info (Result : out .Models.TruststoreInfo_Type; Context : in out Swagger.Servers.Context_Type) is begin Impl.Get_Truststore_Info (Result, Context); end Get_Truststore_Info; -- procedure Post_Agent (Runmode : in Swagger.UString; Name : in Swagger.UString; Jcr_Content_Slashcq_Distribute : in Swagger.Nullable_Boolean; Jcr_Content_Slashcq_Distribute_At_Type_Hint : in Swagger.Nullable_UString; Jcr_Content_Slashcq_Name : in Swagger.Nullable_UString; Jcr_Content_Slashcq_Template : in Swagger.Nullable_UString; Jcr_Content_Slashenabled : in Swagger.Nullable_Boolean; Jcr_Content_Slashjcr_Description : in Swagger.Nullable_UString; Jcr_Content_Slashjcr_Last_Modified : in Swagger.Nullable_UString; Jcr_Content_Slashjcr_Last_Modified_By : in Swagger.Nullable_UString; Jcr_Content_Slashjcr_Mixin_Types : in Swagger.Nullable_UString; Jcr_Content_Slashjcr_Title : in Swagger.Nullable_UString; Jcr_Content_Slashlog_Level : in Swagger.Nullable_UString; Jcr_Content_Slashno_Status_Update : in Swagger.Nullable_Boolean; Jcr_Content_Slashno_Versioning : in Swagger.Nullable_Boolean; Jcr_Content_Slashprotocol_Connect_Timeout : in Swagger.Number; Jcr_Content_Slashprotocol_HTTPConnection_Closed : in Swagger.Nullable_Boolean; Jcr_Content_Slashprotocol_HTTPExpired : in Swagger.Nullable_UString; Jcr_Content_Slashprotocol_HTTPHeaders : in Swagger.UString_Vectors.Vector; Jcr_Content_Slashprotocol_HTTPHeaders_At_Type_Hint : in Swagger.Nullable_UString; Jcr_Content_Slashprotocol_HTTPMethod : in Swagger.Nullable_UString; Jcr_Content_Slashprotocol_HTTPSRelaxed : in Swagger.Nullable_Boolean; Jcr_Content_Slashprotocol_Interface : in Swagger.Nullable_UString; Jcr_Content_Slashprotocol_Socket_Timeout : in Swagger.Number; Jcr_Content_Slashprotocol_Version : in Swagger.Nullable_UString; Jcr_Content_Slashproxy_NTLMDomain : in Swagger.Nullable_UString; Jcr_Content_Slashproxy_NTLMHost : in Swagger.Nullable_UString; Jcr_Content_Slashproxy_Host : in Swagger.Nullable_UString; Jcr_Content_Slashproxy_Password : in Swagger.Nullable_UString; Jcr_Content_Slashproxy_Port : in Swagger.Number; Jcr_Content_Slashproxy_User : in Swagger.Nullable_UString; Jcr_Content_Slashqueue_Batch_Max_Size : in Swagger.Number; Jcr_Content_Slashqueue_Batch_Mode : in Swagger.Nullable_UString; Jcr_Content_Slashqueue_Batch_Wait_Time : in Swagger.Number; Jcr_Content_Slashretry_Delay : in Swagger.Nullable_UString; Jcr_Content_Slashreverse_Replication : in Swagger.Nullable_Boolean; Jcr_Content_Slashserialization_Type : in Swagger.Nullable_UString; Jcr_Content_Slashsling_Resource_Type : in Swagger.Nullable_UString; Jcr_Content_Slashssl : in Swagger.Nullable_UString; Jcr_Content_Slashtransport_NTLMDomain : in Swagger.Nullable_UString; Jcr_Content_Slashtransport_NTLMHost : in Swagger.Nullable_UString; Jcr_Content_Slashtransport_Password : in Swagger.Nullable_UString; Jcr_Content_Slashtransport_Uri : in Swagger.Nullable_UString; Jcr_Content_Slashtransport_User : in Swagger.Nullable_UString; Jcr_Content_Slashtrigger_Distribute : in Swagger.Nullable_Boolean; Jcr_Content_Slashtrigger_Modified : in Swagger.Nullable_Boolean; Jcr_Content_Slashtrigger_On_Off_Time : in Swagger.Nullable_Boolean; Jcr_Content_Slashtrigger_Receive : in Swagger.Nullable_Boolean; Jcr_Content_Slashtrigger_Specific : in Swagger.Nullable_Boolean; Jcr_Content_Slashuser_Id : in Swagger.Nullable_UString; Jcr_Primary_Type : in Swagger.Nullable_UString; Operation : in Swagger.Nullable_UString; Context : in out Swagger.Servers.Context_Type) is begin Impl.Post_Agent (Runmode, Name, Jcr_Content_Slashcq_Distribute, Jcr_Content_Slashcq_Distribute_At_Type_Hint, Jcr_Content_Slashcq_Name, Jcr_Content_Slashcq_Template, Jcr_Content_Slashenabled, Jcr_Content_Slashjcr_Description, Jcr_Content_Slashjcr_Last_Modified, Jcr_Content_Slashjcr_Last_Modified_By, Jcr_Content_Slashjcr_Mixin_Types, Jcr_Content_Slashjcr_Title, Jcr_Content_Slashlog_Level, Jcr_Content_Slashno_Status_Update, Jcr_Content_Slashno_Versioning, Jcr_Content_Slashprotocol_Connect_Timeout, Jcr_Content_Slashprotocol_HTTPConnection_Closed, Jcr_Content_Slashprotocol_HTTPExpired, Jcr_Content_Slashprotocol_HTTPHeaders, Jcr_Content_Slashprotocol_HTTPHeaders_At_Type_Hint, Jcr_Content_Slashprotocol_HTTPMethod, Jcr_Content_Slashprotocol_HTTPSRelaxed, Jcr_Content_Slashprotocol_Interface, Jcr_Content_Slashprotocol_Socket_Timeout, Jcr_Content_Slashprotocol_Version, Jcr_Content_Slashproxy_NTLMDomain, Jcr_Content_Slashproxy_NTLMHost, Jcr_Content_Slashproxy_Host, Jcr_Content_Slashproxy_Password, Jcr_Content_Slashproxy_Port, Jcr_Content_Slashproxy_User, Jcr_Content_Slashqueue_Batch_Max_Size, Jcr_Content_Slashqueue_Batch_Mode, Jcr_Content_Slashqueue_Batch_Wait_Time, Jcr_Content_Slashretry_Delay, Jcr_Content_Slashreverse_Replication, Jcr_Content_Slashserialization_Type, Jcr_Content_Slashsling_Resource_Type, Jcr_Content_Slashssl, Jcr_Content_Slashtransport_NTLMDomain, Jcr_Content_Slashtransport_NTLMHost, Jcr_Content_Slashtransport_Password, Jcr_Content_Slashtransport_Uri, Jcr_Content_Slashtransport_User, Jcr_Content_Slashtrigger_Distribute, Jcr_Content_Slashtrigger_Modified, Jcr_Content_Slashtrigger_On_Off_Time, Jcr_Content_Slashtrigger_Receive, Jcr_Content_Slashtrigger_Specific, Jcr_Content_Slashuser_Id, Jcr_Primary_Type, Operation, Context); end Post_Agent; -- procedure Post_Authorizable_Keystore (Intermediate_Path : in Swagger.UString; Authorizable_Id : in Swagger.UString; Operation : in Swagger.Nullable_UString; Current_Password : in Swagger.Nullable_UString; New_Password : in Swagger.Nullable_UString; Re_Password : in Swagger.Nullable_UString; Key_Password : in Swagger.Nullable_UString; Key_Store_Pass : in Swagger.Nullable_UString; Alias : in Swagger.Nullable_UString; New_Alias : in Swagger.Nullable_UString; Remove_Alias : in Swagger.Nullable_UString; Cert_Chain : in Swagger.File_Part_Type; Pk : in Swagger.File_Part_Type; Key_Store : in Swagger.File_Part_Type; Result : out .Models.KeystoreInfo_Type; Context : in out Swagger.Servers.Context_Type) is begin Impl.Post_Authorizable_Keystore (Intermediate_Path, Authorizable_Id, Operation, Current_Password, New_Password, Re_Password, Key_Password, Key_Store_Pass, Alias, New_Alias, Remove_Alias, Cert_Chain, Pk, Key_Store, Result, Context); end Post_Authorizable_Keystore; -- procedure Post_Authorizables (Authorizable_Id : in Swagger.UString; Intermediate_Path : in Swagger.UString; Create_User : in Swagger.Nullable_UString; Create_Group : in Swagger.Nullable_UString; Rep_Password : in Swagger.Nullable_UString; Profile_Slashgiven_Name : in Swagger.Nullable_UString; Result : out Swagger.UString; Context : in out Swagger.Servers.Context_Type) is begin Impl.Post_Authorizables (Authorizable_Id, Intermediate_Path, Create_User, Create_Group, Rep_Password, Profile_Slashgiven_Name, Result, Context); end Post_Authorizables; -- procedure Post_Config_Adobe_Granite_Saml_Authentication_Handler (Key_Store_Password : in Swagger.Nullable_UString; Key_Store_Password_At_Type_Hint : in Swagger.Nullable_UString; Service_Periodranking : in Swagger.Nullable_Integer; Service_Periodranking_At_Type_Hint : in Swagger.Nullable_UString; Idp_Http_Redirect : in Swagger.Nullable_Boolean; Idp_Http_Redirect_At_Type_Hint : in Swagger.Nullable_UString; Create_User : in Swagger.Nullable_Boolean; Create_User_At_Type_Hint : in Swagger.Nullable_UString; Default_Redirect_Url : in Swagger.Nullable_UString; Default_Redirect_Url_At_Type_Hint : in Swagger.Nullable_UString; User_IDAttribute : in Swagger.Nullable_UString; User_IDAttribute_At_Type_Hint : in Swagger.Nullable_UString; Default_Groups : in Swagger.UString_Vectors.Vector; Default_Groups_At_Type_Hint : in Swagger.Nullable_UString; Idp_Cert_Alias : in Swagger.Nullable_UString; Idp_Cert_Alias_At_Type_Hint : in Swagger.Nullable_UString; Add_Group_Memberships : in Swagger.Nullable_Boolean; Add_Group_Memberships_At_Type_Hint : in Swagger.Nullable_UString; Path : in Swagger.UString_Vectors.Vector; Path_At_Type_Hint : in Swagger.Nullable_UString; Synchronize_Attributes : in Swagger.UString_Vectors.Vector; Synchronize_Attributes_At_Type_Hint : in Swagger.Nullable_UString; Clock_Tolerance : in Swagger.Nullable_Integer; Clock_Tolerance_At_Type_Hint : in Swagger.Nullable_UString; Group_Membership_Attribute : in Swagger.Nullable_UString; Group_Membership_Attribute_At_Type_Hint : in Swagger.Nullable_UString; Idp_Url : in Swagger.Nullable_UString; Idp_Url_At_Type_Hint : in Swagger.Nullable_UString; Logout_Url : in Swagger.Nullable_UString; Logout_Url_At_Type_Hint : in Swagger.Nullable_UString; Service_Provider_Entity_Id : in Swagger.Nullable_UString; Service_Provider_Entity_Id_At_Type_Hint : in Swagger.Nullable_UString; Assertion_Consumer_Service_URL : in Swagger.Nullable_UString; Assertion_Consumer_Service_URLAt_Type_Hint : in Swagger.Nullable_UString; Handle_Logout : in Swagger.Nullable_Boolean; Handle_Logout_At_Type_Hint : in Swagger.Nullable_UString; Sp_Private_Key_Alias : in Swagger.Nullable_UString; Sp_Private_Key_Alias_At_Type_Hint : in Swagger.Nullable_UString; Use_Encryption : in Swagger.Nullable_Boolean; Use_Encryption_At_Type_Hint : in Swagger.Nullable_UString; Name_Id_Format : in Swagger.Nullable_UString; Name_Id_Format_At_Type_Hint : in Swagger.Nullable_UString; Digest_Method : in Swagger.Nullable_UString; Digest_Method_At_Type_Hint : in Swagger.Nullable_UString; Signature_Method : in Swagger.Nullable_UString; Signature_Method_At_Type_Hint : in Swagger.Nullable_UString; User_Intermediate_Path : in Swagger.Nullable_UString; User_Intermediate_Path_At_Type_Hint : in Swagger.Nullable_UString; Context : in out Swagger.Servers.Context_Type) is begin Impl.Post_Config_Adobe_Granite_Saml_Authentication_Handler (Key_Store_Password, Key_Store_Password_At_Type_Hint, Service_Periodranking, Service_Periodranking_At_Type_Hint, Idp_Http_Redirect, Idp_Http_Redirect_At_Type_Hint, Create_User, Create_User_At_Type_Hint, Default_Redirect_Url, Default_Redirect_Url_At_Type_Hint, User_IDAttribute, User_IDAttribute_At_Type_Hint, Default_Groups, Default_Groups_At_Type_Hint, Idp_Cert_Alias, Idp_Cert_Alias_At_Type_Hint, Add_Group_Memberships, Add_Group_Memberships_At_Type_Hint, Path, Path_At_Type_Hint, Synchronize_Attributes, Synchronize_Attributes_At_Type_Hint, Clock_Tolerance, Clock_Tolerance_At_Type_Hint, Group_Membership_Attribute, Group_Membership_Attribute_At_Type_Hint, Idp_Url, Idp_Url_At_Type_Hint, Logout_Url, Logout_Url_At_Type_Hint, Service_Provider_Entity_Id, Service_Provider_Entity_Id_At_Type_Hint, Assertion_Consumer_Service_URL, Assertion_Consumer_Service_URLAt_Type_Hint, Handle_Logout, Handle_Logout_At_Type_Hint, Sp_Private_Key_Alias, Sp_Private_Key_Alias_At_Type_Hint, Use_Encryption, Use_Encryption_At_Type_Hint, Name_Id_Format, Name_Id_Format_At_Type_Hint, Digest_Method, Digest_Method_At_Type_Hint, Signature_Method, Signature_Method_At_Type_Hint, User_Intermediate_Path, User_Intermediate_Path_At_Type_Hint, Context); end Post_Config_Adobe_Granite_Saml_Authentication_Handler; -- procedure Post_Config_Apache_Felix_Jetty_Based_Http_Service (Org_Periodapache_Periodfelix_Periodhttps_Periodnio : in Swagger.Nullable_Boolean; Org_Periodapache_Periodfelix_Periodhttps_Periodnio_At_Type_Hint : in Swagger.Nullable_UString; Org_Periodapache_Periodfelix_Periodhttps_Periodkeystore : in Swagger.Nullable_UString; Org_Periodapache_Periodfelix_Periodhttps_Periodkeystore_At_Type_Hint : in Swagger.Nullable_UString; Org_Periodapache_Periodfelix_Periodhttps_Periodkeystore_Periodpassword : in Swagger.Nullable_UString; Org_Periodapache_Periodfelix_Periodhttps_Periodkeystore_Periodpassword_At_Type_Hint : in Swagger.Nullable_UString; Org_Periodapache_Periodfelix_Periodhttps_Periodkeystore_Periodkey : in Swagger.Nullable_UString; Org_Periodapache_Periodfelix_Periodhttps_Periodkeystore_Periodkey_At_Type_Hint : in Swagger.Nullable_UString; Org_Periodapache_Periodfelix_Periodhttps_Periodkeystore_Periodkey_Periodpassword : in Swagger.Nullable_UString; Org_Periodapache_Periodfelix_Periodhttps_Periodkeystore_Periodkey_Periodpassword_At_Type_Hint : in Swagger.Nullable_UString; Org_Periodapache_Periodfelix_Periodhttps_Periodtruststore : in Swagger.Nullable_UString; Org_Periodapache_Periodfelix_Periodhttps_Periodtruststore_At_Type_Hint : in Swagger.Nullable_UString; Org_Periodapache_Periodfelix_Periodhttps_Periodtruststore_Periodpassword : in Swagger.Nullable_UString; Org_Periodapache_Periodfelix_Periodhttps_Periodtruststore_Periodpassword_At_Type_Hint : in Swagger.Nullable_UString; Org_Periodapache_Periodfelix_Periodhttps_Periodclientcertificate : in Swagger.Nullable_UString; Org_Periodapache_Periodfelix_Periodhttps_Periodclientcertificate_At_Type_Hint : in Swagger.Nullable_UString; Org_Periodapache_Periodfelix_Periodhttps_Periodenable : in Swagger.Nullable_Boolean; Org_Periodapache_Periodfelix_Periodhttps_Periodenable_At_Type_Hint : in Swagger.Nullable_UString; Org_Periodosgi_Periodservice_Periodhttp_Periodport_Periodsecure : in Swagger.Nullable_UString; Org_Periodosgi_Periodservice_Periodhttp_Periodport_Periodsecure_At_Type_Hint : in Swagger.Nullable_UString; Context : in out Swagger.Servers.Context_Type) is begin Impl.Post_Config_Apache_Felix_Jetty_Based_Http_Service (Org_Periodapache_Periodfelix_Periodhttps_Periodnio, Org_Periodapache_Periodfelix_Periodhttps_Periodnio_At_Type_Hint, Org_Periodapache_Periodfelix_Periodhttps_Periodkeystore, Org_Periodapache_Periodfelix_Periodhttps_Periodkeystore_At_Type_Hint, Org_Periodapache_Periodfelix_Periodhttps_Periodkeystore_Periodpassword, Org_Periodapache_Periodfelix_Periodhttps_Periodkeystore_Periodpassword_At_Type_Hint, Org_Periodapache_Periodfelix_Periodhttps_Periodkeystore_Periodkey, Org_Periodapache_Periodfelix_Periodhttps_Periodkeystore_Periodkey_At_Type_Hint, Org_Periodapache_Periodfelix_Periodhttps_Periodkeystore_Periodkey_Periodpassword, Org_Periodapache_Periodfelix_Periodhttps_Periodkeystore_Periodkey_Periodpassword_At_Type_Hint, Org_Periodapache_Periodfelix_Periodhttps_Periodtruststore, Org_Periodapache_Periodfelix_Periodhttps_Periodtruststore_At_Type_Hint, Org_Periodapache_Periodfelix_Periodhttps_Periodtruststore_Periodpassword, Org_Periodapache_Periodfelix_Periodhttps_Periodtruststore_Periodpassword_At_Type_Hint, Org_Periodapache_Periodfelix_Periodhttps_Periodclientcertificate, Org_Periodapache_Periodfelix_Periodhttps_Periodclientcertificate_At_Type_Hint, Org_Periodapache_Periodfelix_Periodhttps_Periodenable, Org_Periodapache_Periodfelix_Periodhttps_Periodenable_At_Type_Hint, Org_Periodosgi_Periodservice_Periodhttp_Periodport_Periodsecure, Org_Periodosgi_Periodservice_Periodhttp_Periodport_Periodsecure_At_Type_Hint, Context); end Post_Config_Apache_Felix_Jetty_Based_Http_Service; -- procedure Post_Config_Apache_Http_Components_Proxy_Configuration (Proxy_Periodhost : in Swagger.Nullable_UString; Proxy_Periodhost_At_Type_Hint : in Swagger.Nullable_UString; Proxy_Periodport : in Swagger.Nullable_Integer; Proxy_Periodport_At_Type_Hint : in Swagger.Nullable_UString; Proxy_Periodexceptions : in Swagger.UString_Vectors.Vector; Proxy_Periodexceptions_At_Type_Hint : in Swagger.Nullable_UString; Proxy_Periodenabled : in Swagger.Nullable_Boolean; Proxy_Periodenabled_At_Type_Hint : in Swagger.Nullable_UString; Proxy_Perioduser : in Swagger.Nullable_UString; Proxy_Perioduser_At_Type_Hint : in Swagger.Nullable_UString; Proxy_Periodpassword : in Swagger.Nullable_UString; Proxy_Periodpassword_At_Type_Hint : in Swagger.Nullable_UString; Context : in out Swagger.Servers.Context_Type) is begin Impl.Post_Config_Apache_Http_Components_Proxy_Configuration (Proxy_Periodhost, Proxy_Periodhost_At_Type_Hint, Proxy_Periodport, Proxy_Periodport_At_Type_Hint, Proxy_Periodexceptions, Proxy_Periodexceptions_At_Type_Hint, Proxy_Periodenabled, Proxy_Periodenabled_At_Type_Hint, Proxy_Perioduser, Proxy_Perioduser_At_Type_Hint, Proxy_Periodpassword, Proxy_Periodpassword_At_Type_Hint, Context); end Post_Config_Apache_Http_Components_Proxy_Configuration; -- procedure Post_Config_Apache_Sling_Dav_Ex_Servlet (Alias : in Swagger.Nullable_UString; Alias_At_Type_Hint : in Swagger.Nullable_UString; Dav_Periodcreate_Absolute_Uri : in Swagger.Nullable_Boolean; Dav_Periodcreate_Absolute_Uri_At_Type_Hint : in Swagger.Nullable_UString; Context : in out Swagger.Servers.Context_Type) is begin Impl.Post_Config_Apache_Sling_Dav_Ex_Servlet (Alias, Alias_At_Type_Hint, Dav_Periodcreate_Absolute_Uri, Dav_Periodcreate_Absolute_Uri_At_Type_Hint, Context); end Post_Config_Apache_Sling_Dav_Ex_Servlet; -- procedure Post_Config_Apache_Sling_Get_Servlet (Json_Periodmaximumresults : in Swagger.Nullable_UString; Json_Periodmaximumresults_At_Type_Hint : in Swagger.Nullable_UString; Enable_Periodhtml : in Swagger.Nullable_Boolean; Enable_Periodhtml_At_Type_Hint : in Swagger.Nullable_UString; Enable_Periodtxt : in Swagger.Nullable_Boolean; Enable_Periodtxt_At_Type_Hint : in Swagger.Nullable_UString; Enable_Periodxml : in Swagger.Nullable_Boolean; Enable_Periodxml_At_Type_Hint : in Swagger.Nullable_UString; Context : in out Swagger.Servers.Context_Type) is begin Impl.Post_Config_Apache_Sling_Get_Servlet (Json_Periodmaximumresults, Json_Periodmaximumresults_At_Type_Hint, Enable_Periodhtml, Enable_Periodhtml_At_Type_Hint, Enable_Periodtxt, Enable_Periodtxt_At_Type_Hint, Enable_Periodxml, Enable_Periodxml_At_Type_Hint, Context); end Post_Config_Apache_Sling_Get_Servlet; -- procedure Post_Config_Apache_Sling_Referrer_Filter (Allow_Periodempty : in Swagger.Nullable_Boolean; Allow_Periodempty_At_Type_Hint : in Swagger.Nullable_UString; Allow_Periodhosts : in Swagger.Nullable_UString; Allow_Periodhosts_At_Type_Hint : in Swagger.Nullable_UString; Allow_Periodhosts_Periodregexp : in Swagger.Nullable_UString; Allow_Periodhosts_Periodregexp_At_Type_Hint : in Swagger.Nullable_UString; Filter_Periodmethods : in Swagger.Nullable_UString; Filter_Periodmethods_At_Type_Hint : in Swagger.Nullable_UString; Context : in out Swagger.Servers.Context_Type) is begin Impl.Post_Config_Apache_Sling_Referrer_Filter (Allow_Periodempty, Allow_Periodempty_At_Type_Hint, Allow_Periodhosts, Allow_Periodhosts_At_Type_Hint, Allow_Periodhosts_Periodregexp, Allow_Periodhosts_Periodregexp_At_Type_Hint, Filter_Periodmethods, Filter_Periodmethods_At_Type_Hint, Context); end Post_Config_Apache_Sling_Referrer_Filter; -- procedure Post_Config_Property (Config_Node_Name : in Swagger.UString; Context : in out Swagger.Servers.Context_Type) is begin Impl.Post_Config_Property (Config_Node_Name, Context); end Post_Config_Property; -- procedure Post_Node (Path : in Swagger.UString; Name : in Swagger.UString; Operation : in Swagger.Nullable_UString; Delete_Authorizable : in Swagger.Nullable_UString; File : in Swagger.File_Part_Type; Context : in out Swagger.Servers.Context_Type) is begin Impl.Post_Node (Path, Name, Operation, Delete_Authorizable, File, Context); end Post_Node; -- procedure Post_Node_Rw (Path : in Swagger.UString; Name : in Swagger.UString; Add_Members : in Swagger.Nullable_UString; Context : in out Swagger.Servers.Context_Type) is begin Impl.Post_Node_Rw (Path, Name, Add_Members, Context); end Post_Node_Rw; -- procedure Post_Path (Path : in Swagger.UString; Jcr_Primary_Type : in Swagger.UString; Name : in Swagger.UString; Context : in out Swagger.Servers.Context_Type) is begin Impl.Post_Path (Path, Jcr_Primary_Type, Name, Context); end Post_Path; -- procedure Post_Query (Path : in Swagger.UString; P_Periodlimit : in Swagger.Number; P_1Property : in Swagger.UString; P_1Property_Periodvalue : in Swagger.UString; Result : out Swagger.UString; Context : in out Swagger.Servers.Context_Type) is begin Impl.Post_Query (Path, P_Periodlimit, P_1Property, P_1Property_Periodvalue, Result, Context); end Post_Query; -- procedure Post_Tree_Activation (Ignoredeactivated : in Boolean; Onlymodified : in Boolean; Path : in Swagger.UString; Context : in out Swagger.Servers.Context_Type) is begin Impl.Post_Tree_Activation (Ignoredeactivated, Onlymodified, Path, Context); end Post_Tree_Activation; -- procedure Post_Truststore (Operation : in Swagger.Nullable_UString; New_Password : in Swagger.Nullable_UString; Re_Password : in Swagger.Nullable_UString; Key_Store_Type : in Swagger.Nullable_UString; Remove_Alias : in Swagger.Nullable_UString; Certificate : in Swagger.File_Part_Type; Result : out Swagger.UString; Context : in out Swagger.Servers.Context_Type) is begin Impl.Post_Truststore (Operation, New_Password, Re_Password, Key_Store_Type, Remove_Alias, Certificate, Result, Context); end Post_Truststore; -- procedure Post_Truststore_PKCS12 (Truststore_Periodp_12 : in Swagger.File_Part_Type; Result : out Swagger.UString; Context : in out Swagger.Servers.Context_Type) is begin Impl.Post_Truststore_PKCS12 (Truststore_Periodp_12, Result, Context); end Post_Truststore_PKCS12; end Server; end Shared_Instance; end .Skeletons;
51.624602
203
0.66245
50e51e8960b679887b29af7e4d2eb831942d2348
9,265
ads
Ada
arch/ARM/STM32/svd/stm32l4x5/stm32_svd-opamp.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/stm32l4x5/stm32_svd-opamp.ads
morbos/Ada_Drivers_Library
a4ab26799be60997c38735f4056160c4af597ef7
[ "BSD-3-Clause" ]
null
null
null
arch/ARM/STM32/svd/stm32l4x5/stm32_svd-opamp.ads
morbos/Ada_Drivers_Library
a4ab26799be60997c38735f4056160c4af597ef7
[ "BSD-3-Clause" ]
null
null
null
-- This spec has been automatically generated from STM32L4x5.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package STM32_SVD.OPAMP is pragma Preelaborate; --------------- -- Registers -- --------------- subtype OPAMP1_CSR_OPAMODE_Field is HAL.UInt2; subtype OPAMP1_CSR_PGA_GAIN_Field is HAL.UInt2; subtype OPAMP1_CSR_VM_SEL_Field is HAL.UInt2; -- OPAMP1 control/status register type OPAMP1_CSR_Register is record -- Operational amplifier Enable OPAEN : Boolean := False; -- Operational amplifier Low Power Mode OPALPM : Boolean := False; -- Operational amplifier PGA mode OPAMODE : OPAMP1_CSR_OPAMODE_Field := 16#0#; -- Operational amplifier Programmable amplifier gain value PGA_GAIN : OPAMP1_CSR_PGA_GAIN_Field := 16#0#; -- unspecified Reserved_6_7 : HAL.UInt2 := 16#0#; -- Inverting input selection VM_SEL : OPAMP1_CSR_VM_SEL_Field := 16#0#; -- Non inverted input selection VP_SEL : Boolean := False; -- unspecified Reserved_11_11 : HAL.Bit := 16#0#; -- Calibration mode enabled CALON : Boolean := False; -- Calibration selection CALSEL : Boolean := False; -- allows to switch from AOP offset trimmed values to AOP offset USERTRIM : Boolean := False; -- Operational amplifier calibration output CALOUT : Boolean := False; -- unspecified Reserved_16_30 : HAL.UInt15 := 16#0#; -- Operational amplifier power supply range for stability OPA_RANGE : Boolean := False; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for OPAMP1_CSR_Register use record OPAEN at 0 range 0 .. 0; OPALPM at 0 range 1 .. 1; OPAMODE at 0 range 2 .. 3; PGA_GAIN at 0 range 4 .. 5; Reserved_6_7 at 0 range 6 .. 7; VM_SEL at 0 range 8 .. 9; VP_SEL at 0 range 10 .. 10; Reserved_11_11 at 0 range 11 .. 11; CALON at 0 range 12 .. 12; CALSEL at 0 range 13 .. 13; USERTRIM at 0 range 14 .. 14; CALOUT at 0 range 15 .. 15; Reserved_16_30 at 0 range 16 .. 30; OPA_RANGE at 0 range 31 .. 31; end record; subtype OPAMP1_OTR_TRIMOFFSETN_Field is HAL.UInt5; subtype OPAMP1_OTR_TRIMOFFSETP_Field is HAL.UInt5; -- OPAMP1 offset trimming register in normal mode type OPAMP1_OTR_Register is record -- Trim for NMOS differential pairs TRIMOFFSETN : OPAMP1_OTR_TRIMOFFSETN_Field := 16#0#; -- unspecified Reserved_5_7 : HAL.UInt3 := 16#0#; -- Trim for PMOS differential pairs TRIMOFFSETP : OPAMP1_OTR_TRIMOFFSETP_Field := 16#0#; -- unspecified Reserved_13_31 : HAL.UInt19 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for OPAMP1_OTR_Register use record TRIMOFFSETN at 0 range 0 .. 4; Reserved_5_7 at 0 range 5 .. 7; TRIMOFFSETP at 0 range 8 .. 12; Reserved_13_31 at 0 range 13 .. 31; end record; subtype OPAMP1_LPOTR_TRIMLPOFFSETN_Field is HAL.UInt5; subtype OPAMP1_LPOTR_TRIMLPOFFSETP_Field is HAL.UInt5; -- OPAMP1 offset trimming register in low-power mode type OPAMP1_LPOTR_Register is record -- Trim for NMOS differential pairs TRIMLPOFFSETN : OPAMP1_LPOTR_TRIMLPOFFSETN_Field := 16#0#; -- unspecified Reserved_5_7 : HAL.UInt3 := 16#0#; -- Trim for PMOS differential pairs TRIMLPOFFSETP : OPAMP1_LPOTR_TRIMLPOFFSETP_Field := 16#0#; -- unspecified Reserved_13_31 : HAL.UInt19 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for OPAMP1_LPOTR_Register use record TRIMLPOFFSETN at 0 range 0 .. 4; Reserved_5_7 at 0 range 5 .. 7; TRIMLPOFFSETP at 0 range 8 .. 12; Reserved_13_31 at 0 range 13 .. 31; end record; subtype OPAMP2_CSR_OPAMODE_Field is HAL.UInt2; subtype OPAMP2_CSR_PGA_GAIN_Field is HAL.UInt2; subtype OPAMP2_CSR_VM_SEL_Field is HAL.UInt2; -- OPAMP2 control/status register type OPAMP2_CSR_Register is record -- Operational amplifier Enable OPAEN : Boolean := False; -- Operational amplifier Low Power Mode OPALPM : Boolean := False; -- Operational amplifier PGA mode OPAMODE : OPAMP2_CSR_OPAMODE_Field := 16#0#; -- Operational amplifier Programmable amplifier gain value PGA_GAIN : OPAMP2_CSR_PGA_GAIN_Field := 16#0#; -- unspecified Reserved_6_7 : HAL.UInt2 := 16#0#; -- Inverting input selection VM_SEL : OPAMP2_CSR_VM_SEL_Field := 16#0#; -- Non inverted input selection VP_SEL : Boolean := False; -- unspecified Reserved_11_11 : HAL.Bit := 16#0#; -- Calibration mode enabled CALON : Boolean := False; -- Calibration selection CALSEL : Boolean := False; -- allows to switch from AOP offset trimmed values to AOP offset USERTRIM : Boolean := False; -- Operational amplifier calibration output CALOUT : Boolean := False; -- unspecified Reserved_16_31 : HAL.UInt16 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for OPAMP2_CSR_Register use record OPAEN at 0 range 0 .. 0; OPALPM at 0 range 1 .. 1; OPAMODE at 0 range 2 .. 3; PGA_GAIN at 0 range 4 .. 5; Reserved_6_7 at 0 range 6 .. 7; VM_SEL at 0 range 8 .. 9; VP_SEL at 0 range 10 .. 10; Reserved_11_11 at 0 range 11 .. 11; CALON at 0 range 12 .. 12; CALSEL at 0 range 13 .. 13; USERTRIM at 0 range 14 .. 14; CALOUT at 0 range 15 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; subtype OPAMP2_OTR_TRIMOFFSETN_Field is HAL.UInt5; subtype OPAMP2_OTR_TRIMOFFSETP_Field is HAL.UInt5; -- OPAMP2 offset trimming register in normal mode type OPAMP2_OTR_Register is record -- Trim for NMOS differential pairs TRIMOFFSETN : OPAMP2_OTR_TRIMOFFSETN_Field := 16#0#; -- unspecified Reserved_5_7 : HAL.UInt3 := 16#0#; -- Trim for PMOS differential pairs TRIMOFFSETP : OPAMP2_OTR_TRIMOFFSETP_Field := 16#0#; -- unspecified Reserved_13_31 : HAL.UInt19 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for OPAMP2_OTR_Register use record TRIMOFFSETN at 0 range 0 .. 4; Reserved_5_7 at 0 range 5 .. 7; TRIMOFFSETP at 0 range 8 .. 12; Reserved_13_31 at 0 range 13 .. 31; end record; subtype OPAMP2_LPOTR_TRIMLPOFFSETN_Field is HAL.UInt5; subtype OPAMP2_LPOTR_TRIMLPOFFSETP_Field is HAL.UInt5; -- OPAMP2 offset trimming register in low-power mode type OPAMP2_LPOTR_Register is record -- Trim for NMOS differential pairs TRIMLPOFFSETN : OPAMP2_LPOTR_TRIMLPOFFSETN_Field := 16#0#; -- unspecified Reserved_5_7 : HAL.UInt3 := 16#0#; -- Trim for PMOS differential pairs TRIMLPOFFSETP : OPAMP2_LPOTR_TRIMLPOFFSETP_Field := 16#0#; -- unspecified Reserved_13_31 : HAL.UInt19 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for OPAMP2_LPOTR_Register use record TRIMLPOFFSETN at 0 range 0 .. 4; Reserved_5_7 at 0 range 5 .. 7; TRIMLPOFFSETP at 0 range 8 .. 12; Reserved_13_31 at 0 range 13 .. 31; end record; ----------------- -- Peripherals -- ----------------- -- Operational amplifiers type OPAMP_Peripheral is record -- OPAMP1 control/status register OPAMP1_CSR : aliased OPAMP1_CSR_Register; -- OPAMP1 offset trimming register in normal mode OPAMP1_OTR : aliased OPAMP1_OTR_Register; -- OPAMP1 offset trimming register in low-power mode OPAMP1_LPOTR : aliased OPAMP1_LPOTR_Register; -- OPAMP2 control/status register OPAMP2_CSR : aliased OPAMP2_CSR_Register; -- OPAMP2 offset trimming register in normal mode OPAMP2_OTR : aliased OPAMP2_OTR_Register; -- OPAMP2 offset trimming register in low-power mode OPAMP2_LPOTR : aliased OPAMP2_LPOTR_Register; end record with Volatile; for OPAMP_Peripheral use record OPAMP1_CSR at 16#0# range 0 .. 31; OPAMP1_OTR at 16#4# range 0 .. 31; OPAMP1_LPOTR at 16#8# range 0 .. 31; OPAMP2_CSR at 16#10# range 0 .. 31; OPAMP2_OTR at 16#14# range 0 .. 31; OPAMP2_LPOTR at 16#18# range 0 .. 31; end record; -- Operational amplifiers OPAMP_Periph : aliased OPAMP_Peripheral with Import, Address => System'To_Address (16#40007800#); end STM32_SVD.OPAMP;
36.333333
71
0.627847
a1ef10ae7b5328706e15ce56e07f31d83bbbcbdc
1,935
ads
Ada
src/main/resources/project-templates/microbit_example/src/nrf51_svd.ads
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/microbit_example/src/nrf51_svd.ads
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/microbit_example/src/nrf51_svd.ads
georgemackayshore/Ada-IntelliJ
581f87237a610b3142aed20358b955bdca807213
[ "Apache-2.0" ]
4
2020-04-14T15:02:37.000Z
2022-03-10T20:35:54.000Z
-- Copyright (c) 2013, Nordic Semiconductor ASA -- 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 Nordic Semiconductor ASA 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 spec has been automatically generated from nrf51.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with System; -- nRF51 reference description for radio MCU with ARM 32-bit Cortex-M0 -- Microcontroller at 16MHz CPU clock package NRF51_SVD is pragma Preelaborate; end NRF51_SVD;
43.977273
82
0.769509
5069613cc00490343826006d5019a57e1e19f528
3,914
ads
Ada
source/amf/mof/cmof/amf-internals-tables-cmof_reflection.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-internals-tables-cmof_reflection.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-internals-tables-cmof_reflection.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
4
2017-07-18T07:11:05.000Z
2020-06-21T03:02:25.000Z
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Ada Modeling Framework -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2010-2012, Vadim Godunko <[email protected]> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ -- This file is generated, don't edit it. ------------------------------------------------------------------------------ with League.Holders; package AMF.Internals.Tables.CMOF_Reflection is function Get (Self : AMF.Internals.AMF_Element; Property : CMOF_Element) return League.Holders.Holder; function Get_Meta_Class (Self : AMF.Internals.AMF_Element) return CMOF_Element; procedure Set (Self : AMF.Internals.AMF_Element; Property : CMOF_Element; Value : League.Holders.Holder); end AMF.Internals.Tables.CMOF_Reflection;
62.126984
78
0.423097
a1739097c0018b27ce7cea4f1a14953ac9b271a4
2,828
ada
Ada
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c6/c64105a.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/c64105a.ada
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
null
null
null
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c6/c64105a.ada
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
2
2020-07-27T00:22:36.000Z
2021-04-01T09:41:02.000Z
-- C64105A.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 CONSTRAINT_ERROR IS NOT RAISED AT THE TIME OF CALL WHEN -- THE VALUE OF AN ACTUAL OUT SCALAR PARAMETER DOES NOT SATISFY THE -- RANGE CONSTRAINTS OF THE FORMAL PARAMETER. -- DAS 1/29/81 -- CPP 8/6/84 WITH REPORT; PROCEDURE C64105A IS USE REPORT; SUBTYPE SUBINT1 IS INTEGER RANGE -10..10; SUBTYPE SUBINT2 IS INTEGER RANGE -20..20; I10 : SUBINT1 := 10; I20 : SUBINT2 := 20; PROCEDURE P1 (I : OUT SUBINT1) IS BEGIN I := SUBINT1'FIRST; EXCEPTION WHEN OTHERS => FAILED ("EXCEPTION RAISED IN PROCEDURE P1"); END P1; BEGIN TEST ("C64105A", "CHECK THAT CONSTRAINT_ERROR IS NOT RAISED" & " AT THE TIME OF CALL WHEN THE VALUE OF AN" & " ACTUAL OUT SCALAR PARAMETER DOES NOT" & " SATISFY THE RANGE CONSTRAINTS OF THE FORMAL" & " PARAMETER"); DECLARE BEGIN P1 (SUBINT1(I20)); IF I20 /= IDENT_INT(-10) THEN FAILED ("OUT PARAM DID NOT GET CORRECT VALUE - 1"); END IF; EXCEPTION WHEN OTHERS => FAILED ("EXCEPTION RAISED ON CALL TO P1 - 1"); END; DECLARE BEGIN I20 := IDENT_INT(20); P1 (I20); IF I20 /= IDENT_INT(-10) THEN FAILED ("OUT PARAM DID NOT GET CORRECT VALUE - 2"); END IF; EXCEPTION WHEN OTHERS => FAILED ("EXCEPTION RAISED ON CALL TO P1 - 2"); END; RESULT; END C64105A;
33.270588
79
0.600424
0650a1c797bce165d791f5db25a4a14d36770dd6
18,576
adb
Ada
source/amf/uml/amf-internals-uml_information_flows.adb
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
24
2016-11-29T06:59:41.000Z
2021-08-30T11:55:16.000Z
source/amf/uml/amf-internals-uml_information_flows.adb
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
2
2019-01-16T05:15:20.000Z
2019-02-03T10:03:32.000Z
source/amf/uml/amf-internals-uml_information_flows.adb
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
4
2017-07-18T07:11:05.000Z
2020-06-21T03:02:25.000Z
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Ada Modeling Framework -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2011-2012, Vadim Godunko <[email protected]> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ with AMF.Elements; with AMF.Internals.Element_Collections; with AMF.Internals.Helpers; with AMF.Internals.Tables.UML_Attributes; with AMF.Visitors.UML_Iterators; with AMF.Visitors.UML_Visitors; with League.Strings.Internals; with Matreshka.Internals.Strings; package body AMF.Internals.UML_Information_Flows is ------------------- -- Enter_Element -- ------------------- overriding procedure Enter_Element (Self : not null access constant UML_Information_Flow_Proxy; Visitor : in out AMF.Visitors.Abstract_Visitor'Class; Control : in out AMF.Visitors.Traverse_Control) is begin if Visitor in AMF.Visitors.UML_Visitors.UML_Visitor'Class then AMF.Visitors.UML_Visitors.UML_Visitor'Class (Visitor).Enter_Information_Flow (AMF.UML.Information_Flows.UML_Information_Flow_Access (Self), Control); end if; end Enter_Element; ------------------- -- Leave_Element -- ------------------- overriding procedure Leave_Element (Self : not null access constant UML_Information_Flow_Proxy; Visitor : in out AMF.Visitors.Abstract_Visitor'Class; Control : in out AMF.Visitors.Traverse_Control) is begin if Visitor in AMF.Visitors.UML_Visitors.UML_Visitor'Class then AMF.Visitors.UML_Visitors.UML_Visitor'Class (Visitor).Leave_Information_Flow (AMF.UML.Information_Flows.UML_Information_Flow_Access (Self), Control); end if; end Leave_Element; ------------------- -- Visit_Element -- ------------------- overriding procedure Visit_Element (Self : not null access constant UML_Information_Flow_Proxy; Iterator : in out AMF.Visitors.Abstract_Iterator'Class; Visitor : in out AMF.Visitors.Abstract_Visitor'Class; Control : in out AMF.Visitors.Traverse_Control) is begin if Iterator in AMF.Visitors.UML_Iterators.UML_Iterator'Class then AMF.Visitors.UML_Iterators.UML_Iterator'Class (Iterator).Visit_Information_Flow (Visitor, AMF.UML.Information_Flows.UML_Information_Flow_Access (Self), Control); end if; end Visit_Element; ------------------ -- Get_Conveyed -- ------------------ overriding function Get_Conveyed (Self : not null access constant UML_Information_Flow_Proxy) return AMF.UML.Classifiers.Collections.Set_Of_UML_Classifier is begin return AMF.UML.Classifiers.Collections.Wrap (AMF.Internals.Element_Collections.Wrap (AMF.Internals.Tables.UML_Attributes.Internal_Get_Conveyed (Self.Element))); end Get_Conveyed; ---------------------------- -- Get_Information_Source -- ---------------------------- overriding function Get_Information_Source (Self : not null access constant UML_Information_Flow_Proxy) return AMF.UML.Named_Elements.Collections.Set_Of_UML_Named_Element is begin return AMF.UML.Named_Elements.Collections.Wrap (AMF.Internals.Element_Collections.Wrap (AMF.Internals.Tables.UML_Attributes.Internal_Get_Information_Source (Self.Element))); end Get_Information_Source; ---------------------------- -- Get_Information_Target -- ---------------------------- overriding function Get_Information_Target (Self : not null access constant UML_Information_Flow_Proxy) return AMF.UML.Named_Elements.Collections.Set_Of_UML_Named_Element is begin return AMF.UML.Named_Elements.Collections.Wrap (AMF.Internals.Element_Collections.Wrap (AMF.Internals.Tables.UML_Attributes.Internal_Get_Information_Target (Self.Element))); end Get_Information_Target; --------------------- -- Get_Realization -- --------------------- overriding function Get_Realization (Self : not null access constant UML_Information_Flow_Proxy) return AMF.UML.Relationships.Collections.Set_Of_UML_Relationship is begin return AMF.UML.Relationships.Collections.Wrap (AMF.Internals.Element_Collections.Wrap (AMF.Internals.Tables.UML_Attributes.Internal_Get_Realization (Self.Element))); end Get_Realization; --------------------------------- -- Get_Realizing_Activity_Edge -- --------------------------------- overriding function Get_Realizing_Activity_Edge (Self : not null access constant UML_Information_Flow_Proxy) return AMF.UML.Activity_Edges.Collections.Set_Of_UML_Activity_Edge is begin return AMF.UML.Activity_Edges.Collections.Wrap (AMF.Internals.Element_Collections.Wrap (AMF.Internals.Tables.UML_Attributes.Internal_Get_Realizing_Activity_Edge (Self.Element))); end Get_Realizing_Activity_Edge; ----------------------------- -- Get_Realizing_Connector -- ----------------------------- overriding function Get_Realizing_Connector (Self : not null access constant UML_Information_Flow_Proxy) return AMF.UML.Connectors.Collections.Set_Of_UML_Connector is begin return AMF.UML.Connectors.Collections.Wrap (AMF.Internals.Element_Collections.Wrap (AMF.Internals.Tables.UML_Attributes.Internal_Get_Realizing_Connector (Self.Element))); end Get_Realizing_Connector; --------------------------- -- Get_Realizing_Message -- --------------------------- overriding function Get_Realizing_Message (Self : not null access constant UML_Information_Flow_Proxy) return AMF.UML.Messages.Collections.Set_Of_UML_Message is begin return AMF.UML.Messages.Collections.Wrap (AMF.Internals.Element_Collections.Wrap (AMF.Internals.Tables.UML_Attributes.Internal_Get_Realizing_Message (Self.Element))); end Get_Realizing_Message; ---------------- -- Get_Source -- ---------------- overriding function Get_Source (Self : not null access constant UML_Information_Flow_Proxy) return AMF.UML.Elements.Collections.Set_Of_UML_Element is begin return AMF.UML.Elements.Collections.Wrap (AMF.Internals.Element_Collections.Wrap (AMF.Internals.Tables.UML_Attributes.Internal_Get_Source (Self.Element))); end Get_Source; ---------------- -- Get_Target -- ---------------- overriding function Get_Target (Self : not null access constant UML_Information_Flow_Proxy) return AMF.UML.Elements.Collections.Set_Of_UML_Element is begin return AMF.UML.Elements.Collections.Wrap (AMF.Internals.Element_Collections.Wrap (AMF.Internals.Tables.UML_Attributes.Internal_Get_Target (Self.Element))); end Get_Target; ------------------------- -- Get_Related_Element -- ------------------------- overriding function Get_Related_Element (Self : not null access constant UML_Information_Flow_Proxy) return AMF.UML.Elements.Collections.Set_Of_UML_Element is begin return AMF.UML.Elements.Collections.Wrap (AMF.Internals.Element_Collections.Wrap (AMF.Internals.Tables.UML_Attributes.Internal_Get_Related_Element (Self.Element))); end Get_Related_Element; --------------------------- -- Get_Client_Dependency -- --------------------------- overriding function Get_Client_Dependency (Self : not null access constant UML_Information_Flow_Proxy) return AMF.UML.Dependencies.Collections.Set_Of_UML_Dependency is begin return AMF.UML.Dependencies.Collections.Wrap (AMF.Internals.Element_Collections.Wrap (AMF.Internals.Tables.UML_Attributes.Internal_Get_Client_Dependency (Self.Element))); end Get_Client_Dependency; ------------------------- -- Get_Name_Expression -- ------------------------- overriding function Get_Name_Expression (Self : not null access constant UML_Information_Flow_Proxy) return AMF.UML.String_Expressions.UML_String_Expression_Access is begin return AMF.UML.String_Expressions.UML_String_Expression_Access (AMF.Internals.Helpers.To_Element (AMF.Internals.Tables.UML_Attributes.Internal_Get_Name_Expression (Self.Element))); end Get_Name_Expression; ------------------------- -- Set_Name_Expression -- ------------------------- overriding procedure Set_Name_Expression (Self : not null access UML_Information_Flow_Proxy; To : AMF.UML.String_Expressions.UML_String_Expression_Access) is begin AMF.Internals.Tables.UML_Attributes.Internal_Set_Name_Expression (Self.Element, AMF.Internals.Helpers.To_Element (AMF.Elements.Element_Access (To))); end Set_Name_Expression; ------------------- -- Get_Namespace -- ------------------- overriding function Get_Namespace (Self : not null access constant UML_Information_Flow_Proxy) return AMF.UML.Namespaces.UML_Namespace_Access is begin return AMF.UML.Namespaces.UML_Namespace_Access (AMF.Internals.Helpers.To_Element (AMF.Internals.Tables.UML_Attributes.Internal_Get_Namespace (Self.Element))); end Get_Namespace; ------------------------ -- Get_Qualified_Name -- ------------------------ overriding function Get_Qualified_Name (Self : not null access constant UML_Information_Flow_Proxy) return AMF.Optional_String is begin declare use type Matreshka.Internals.Strings.Shared_String_Access; Aux : constant Matreshka.Internals.Strings.Shared_String_Access := AMF.Internals.Tables.UML_Attributes.Internal_Get_Qualified_Name (Self.Element); begin if Aux = null then return (Is_Empty => True); else return (False, League.Strings.Internals.Create (Aux)); end if; end; end Get_Qualified_Name; ----------------------------------- -- Get_Owning_Template_Parameter -- ----------------------------------- overriding function Get_Owning_Template_Parameter (Self : not null access constant UML_Information_Flow_Proxy) return AMF.UML.Template_Parameters.UML_Template_Parameter_Access is begin return AMF.UML.Template_Parameters.UML_Template_Parameter_Access (AMF.Internals.Helpers.To_Element (AMF.Internals.Tables.UML_Attributes.Internal_Get_Owning_Template_Parameter (Self.Element))); end Get_Owning_Template_Parameter; ----------------------------------- -- Set_Owning_Template_Parameter -- ----------------------------------- overriding procedure Set_Owning_Template_Parameter (Self : not null access UML_Information_Flow_Proxy; To : AMF.UML.Template_Parameters.UML_Template_Parameter_Access) is begin AMF.Internals.Tables.UML_Attributes.Internal_Set_Owning_Template_Parameter (Self.Element, AMF.Internals.Helpers.To_Element (AMF.Elements.Element_Access (To))); end Set_Owning_Template_Parameter; ---------------------------- -- Get_Template_Parameter -- ---------------------------- overriding function Get_Template_Parameter (Self : not null access constant UML_Information_Flow_Proxy) return AMF.UML.Template_Parameters.UML_Template_Parameter_Access is begin return AMF.UML.Template_Parameters.UML_Template_Parameter_Access (AMF.Internals.Helpers.To_Element (AMF.Internals.Tables.UML_Attributes.Internal_Get_Template_Parameter (Self.Element))); end Get_Template_Parameter; ---------------------------- -- Set_Template_Parameter -- ---------------------------- overriding procedure Set_Template_Parameter (Self : not null access UML_Information_Flow_Proxy; To : AMF.UML.Template_Parameters.UML_Template_Parameter_Access) is begin AMF.Internals.Tables.UML_Attributes.Internal_Set_Template_Parameter (Self.Element, AMF.Internals.Helpers.To_Element (AMF.Elements.Element_Access (To))); end Set_Template_Parameter; ------------------------- -- All_Owning_Packages -- ------------------------- overriding function All_Owning_Packages (Self : not null access constant UML_Information_Flow_Proxy) return AMF.UML.Packages.Collections.Set_Of_UML_Package is begin -- Generated stub: replace with real body! pragma Compile_Time_Warning (Standard.True, "All_Owning_Packages unimplemented"); raise Program_Error with "Unimplemented procedure UML_Information_Flow_Proxy.All_Owning_Packages"; return All_Owning_Packages (Self); end All_Owning_Packages; ----------------------------- -- Is_Distinguishable_From -- ----------------------------- overriding function Is_Distinguishable_From (Self : not null access constant UML_Information_Flow_Proxy; N : AMF.UML.Named_Elements.UML_Named_Element_Access; Ns : AMF.UML.Namespaces.UML_Namespace_Access) return Boolean is begin -- Generated stub: replace with real body! pragma Compile_Time_Warning (Standard.True, "Is_Distinguishable_From unimplemented"); raise Program_Error with "Unimplemented procedure UML_Information_Flow_Proxy.Is_Distinguishable_From"; return Is_Distinguishable_From (Self, N, Ns); end Is_Distinguishable_From; --------------- -- Namespace -- --------------- overriding function Namespace (Self : not null access constant UML_Information_Flow_Proxy) return AMF.UML.Namespaces.UML_Namespace_Access is begin -- Generated stub: replace with real body! pragma Compile_Time_Warning (Standard.True, "Namespace unimplemented"); raise Program_Error with "Unimplemented procedure UML_Information_Flow_Proxy.Namespace"; return Namespace (Self); end Namespace; ------------------------ -- Is_Compatible_With -- ------------------------ overriding function Is_Compatible_With (Self : not null access constant UML_Information_Flow_Proxy; P : AMF.UML.Parameterable_Elements.UML_Parameterable_Element_Access) return Boolean is begin -- Generated stub: replace with real body! pragma Compile_Time_Warning (Standard.True, "Is_Compatible_With unimplemented"); raise Program_Error with "Unimplemented procedure UML_Information_Flow_Proxy.Is_Compatible_With"; return Is_Compatible_With (Self, P); end Is_Compatible_With; --------------------------- -- Is_Template_Parameter -- --------------------------- overriding function Is_Template_Parameter (Self : not null access constant UML_Information_Flow_Proxy) return Boolean is begin -- Generated stub: replace with real body! pragma Compile_Time_Warning (Standard.True, "Is_Template_Parameter unimplemented"); raise Program_Error with "Unimplemented procedure UML_Information_Flow_Proxy.Is_Template_Parameter"; return Is_Template_Parameter (Self); end Is_Template_Parameter; end AMF.Internals.UML_Information_Flows;
39.272727
108
0.610465
23e95747c71013c9e1f8e5cf212a19d5ad8e6409
4,587
ads
Ada
src/clic-tty.ads
reznikmm/clic
bdad50254ccf1063067044f7440dea62f3f2d242
[ "MIT" ]
9
2021-08-30T16:11:30.000Z
2021-11-06T22:41:17.000Z
src/clic-tty.ads
reznikmm/clic
bdad50254ccf1063067044f7440dea62f3f2d242
[ "MIT" ]
8
2021-09-05T09:20:31.000Z
2022-03-09T10:07:52.000Z
src/clic-tty.ads
reznikmm/clic
bdad50254ccf1063067044f7440dea62f3f2d242
[ "MIT" ]
2
2021-09-16T14:17:20.000Z
2021-09-21T09:11:23.000Z
with ANSI; package CLIC.TTY with Preelaborate is -- Color/Formatting related subprograms. These won't have any -- effect if a redirection of output is detected, or if global -- flag Simple_Logging.Is_TTY is false. -- Re-expose for clients package ANSI renames Standard.ANSI; function Is_TTY return Boolean; procedure Force_Disable_TTY with Post => not Is_TTY; -- Disable TTY support even if availabe -------------------- -- Color enabling -- -------------------- function Color_Enabled return Boolean; procedure Disable_Color; -- Disables color/formatting output even when TTY is capable procedure Enable_Color (Force : Boolean := False); -- Prepares colors for the logging messages. Unless Force, will do nothing -- if a console redirection is detected. function Format (Text : String; Fore : ANSI.Colors := ANSI.Default; Back : ANSI.Colors := ANSI.Default; Style : ANSI.Styles := ANSI.Default) return String; -- Wrap text with the appropriate ANSI sequences. Following text will be -- unaffected. Default colors are interpreted as no change of color (will -- result in no color sequences), not as setting the default color (which -- is always set after a color change). ------------------------ -- Predefined formats -- ------------------------ function Info (Text : String := "") return String; -- Prepends Text with a Emph ("🛈") or "Note: " if no tty color enabled function Success (Text : String := "") return String; -- Prepends Text (in normal formatting) with a green check mark, or a -- simple Success: text if no tty or color enabled. function OK (Text : String) return String; -- Bold Light_Green function Emph (Text : String) return String; -- Something to highlight not negatively, bold cyan function Error (Text : String) return String; -- Bold Red function Warn (Text : String) return String; -- Bold Yellow function Bold (Text : String) return String; function Dim (Text : String) return String; function Italic (Text : String) return String; function Underline (Text : String) return String; function Description (Text : String) return String; -- Not bold cyan for crate descriptions function Terminal (Text : String) return String; -- For showing commands that the user can run; mimics old amber displays. function URL (Text : String) return String; function Version (Text : String) return String; -- For versions/version sets, bold magenta private function Info (Text : String := "") return String is (if Color_Enabled and then Is_TTY then Emph ("ⓘ") & " " & Text else "Note: " & Text); function Success (Text : String := "") return String is (if Color_Enabled and then Is_TTY then OK ("✓") & " " & Text else "Success: " & Text); function OK (Text : String) return String is (Format (Text, Fore => ANSI.Light_Green, Style => ANSI.Bright)); function Emph (Text : String) return String is (Format (Text, Fore => ANSI.Cyan, Style => ANSI.Bright)); function Error (Text : String) return String is (Format (Text, Fore => ANSI.Red, Style => ANSI.Bright)); function Warn (Text : String) return String is (Format (Text, Fore => ANSI.Yellow, Style => ANSI.Bright)); function Bold (Text : String) return String is (Format (Text, Style => ANSI.Bright)); function Dim (Text : String) return String is (Format (Text, Style => ANSI.Dim)); function Italic (Text : String) return String is (Format (Text, Style => ANSI.Italic)); function Underline (Text : String) return String is (Format (Text, Style => ANSI.Underline)); function Name (Text : String) return String is (Bold (Text)); function Description (Text : String) return String is (Format (Text, Fore => ANSI.Light_Cyan)); function Terminal (Text : String) return String is (if Color_Enabled and then Is_TTY then ANSI.Color_Wrap (Text, ANSI.Palette_Fg (5, 3, 0)) else Text); function URL (Text : String) return String renames Version; function Version (Text : String) return String is (Format (Text, Fore => ANSI.Magenta, Style => ANSI.Bright)); end CLIC.TTY;
29.980392
78
0.614999
1c5d3cf62d13ade24172ba66ea276be4610408d4
50,121
adb
Ada
gcc-gcc-7_3_0-release/gcc/ada/s-stratt-xdr.adb
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
7
2020-05-02T17:34:05.000Z
2021-10-17T10:15:18.000Z
gcc-gcc-7_3_0-release/gcc/ada/s-stratt-xdr.adb
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
null
null
null
gcc-gcc-7_3_0-release/gcc/ada/s-stratt-xdr.adb
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
2
2020-07-27T00:22:36.000Z
2021-04-01T09:41:02.000Z
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- S Y S T E M . S T R E A M _ A T T R I B U T E S -- -- -- -- B o d y -- -- -- -- Copyright (C) 1996-2016, Free Software Foundation, Inc. -- -- -- -- GARLIC 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 file is an alternate version of s-stratt.adb based on the XDR -- standard. It is especially useful for exchanging streams between two -- different systems with different basic type representations and endianness. pragma Warnings (Off, "*not allowed in compiler unit"); -- This body is used only when rebuilding the runtime library, not when -- building the compiler, so it's OK to depend on features that would -- otherwise break bootstrap (e.g. IF-expressions). with Ada.IO_Exceptions; with Ada.Streams; use Ada.Streams; with Ada.Unchecked_Conversion; package body System.Stream_Attributes is pragma Suppress (Range_Check); pragma Suppress (Overflow_Check); use UST; Data_Error : exception renames Ada.IO_Exceptions.End_Error; -- Exception raised if insufficient data read (End_Error is mandated by -- AI95-00132). SU : constant := System.Storage_Unit; -- The code in this body assumes that SU = 8 BB : constant := 2 ** SU; -- Byte base BL : constant := 2 ** SU - 1; -- Byte last BS : constant := 2 ** (SU - 1); -- Byte sign US : constant := Unsigned'Size; -- Unsigned size UB : constant := (US - 1) / SU + 1; -- Unsigned byte UL : constant := 2 ** US - 1; -- Unsigned last subtype SE is Ada.Streams.Stream_Element; subtype SEA is Ada.Streams.Stream_Element_Array; subtype SEO is Ada.Streams.Stream_Element_Offset; generic function UC renames Ada.Unchecked_Conversion; type Field_Type is record E_Size : Integer; -- Exponent bit size E_Bias : Integer; -- Exponent bias F_Size : Integer; -- Fraction bit size E_Last : Integer; -- Max exponent value F_Mask : SE; -- Mask to apply on first fraction byte E_Bytes : SEO; -- N. of exponent bytes completely used F_Bytes : SEO; -- N. of fraction bytes completely used F_Bits : Integer; -- N. of bits used on first fraction word end record; type Precision is (Single, Double, Quadruple); Fields : constant array (Precision) of Field_Type := ( -- Single precision (E_Size => 8, E_Bias => 127, F_Size => 23, E_Last => 2 ** 8 - 1, F_Mask => 16#7F#, -- 2 ** 7 - 1, E_Bytes => 2, F_Bytes => 3, F_Bits => 23 mod US), -- Double precision (E_Size => 11, E_Bias => 1023, F_Size => 52, E_Last => 2 ** 11 - 1, F_Mask => 16#0F#, -- 2 ** 4 - 1, E_Bytes => 2, F_Bytes => 7, F_Bits => 52 mod US), -- Quadruple precision (E_Size => 15, E_Bias => 16383, F_Size => 112, E_Last => 2 ** 8 - 1, F_Mask => 16#FF#, -- 2 ** 8 - 1, E_Bytes => 2, F_Bytes => 14, F_Bits => 112 mod US)); -- The representation of all items requires a multiple of four bytes -- (or 32 bits) of data. The bytes are numbered 0 through n-1. The bytes -- are read or written to some byte stream such that byte m always -- precedes byte m+1. If the n bytes needed to contain the data are not -- a multiple of four, then the n bytes are followed by enough (0 to 3) -- residual zero bytes, r, to make the total byte count a multiple of 4. -- An XDR signed integer is a 32-bit datum that encodes an integer -- in the range [-2147483648,2147483647]. The integer is represented -- in two's complement notation. The most and least significant bytes -- are 0 and 3, respectively. Integers are declared as follows: -- (MSB) (LSB) -- +-------+-------+-------+-------+ -- |byte 0 |byte 1 |byte 2 |byte 3 | -- +-------+-------+-------+-------+ -- <------------32 bits------------> SSI_L : constant := 1; SI_L : constant := 2; I_L : constant := 4; LI_L : constant := 8; LLI_L : constant := 8; subtype XDR_S_SSI is SEA (1 .. SSI_L); subtype XDR_S_SI is SEA (1 .. SI_L); subtype XDR_S_I is SEA (1 .. I_L); subtype XDR_S_LI is SEA (1 .. LI_L); subtype XDR_S_LLI is SEA (1 .. LLI_L); function Short_Short_Integer_To_XDR_S_SSI is new Ada.Unchecked_Conversion (Short_Short_Integer, XDR_S_SSI); function XDR_S_SSI_To_Short_Short_Integer is new Ada.Unchecked_Conversion (XDR_S_SSI, Short_Short_Integer); function Short_Integer_To_XDR_S_SI is new Ada.Unchecked_Conversion (Short_Integer, XDR_S_SI); function XDR_S_SI_To_Short_Integer is new Ada.Unchecked_Conversion (XDR_S_SI, Short_Integer); function Integer_To_XDR_S_I is new Ada.Unchecked_Conversion (Integer, XDR_S_I); function XDR_S_I_To_Integer is new Ada.Unchecked_Conversion (XDR_S_I, Integer); function Long_Long_Integer_To_XDR_S_LI is new Ada.Unchecked_Conversion (Long_Long_Integer, XDR_S_LI); function XDR_S_LI_To_Long_Long_Integer is new Ada.Unchecked_Conversion (XDR_S_LI, Long_Long_Integer); function Long_Long_Integer_To_XDR_S_LLI is new Ada.Unchecked_Conversion (Long_Long_Integer, XDR_S_LLI); function XDR_S_LLI_To_Long_Long_Integer is new Ada.Unchecked_Conversion (XDR_S_LLI, Long_Long_Integer); -- An XDR unsigned integer is a 32-bit datum that encodes a nonnegative -- integer in the range [0,4294967295]. It is represented by an unsigned -- binary number whose most and least significant bytes are 0 and 3, -- respectively. An unsigned integer is declared as follows: -- (MSB) (LSB) -- +-------+-------+-------+-------+ -- |byte 0 |byte 1 |byte 2 |byte 3 | -- +-------+-------+-------+-------+ -- <------------32 bits------------> SSU_L : constant := 1; SU_L : constant := 2; U_L : constant := 4; LU_L : constant := 8; LLU_L : constant := 8; subtype XDR_S_SSU is SEA (1 .. SSU_L); subtype XDR_S_SU is SEA (1 .. SU_L); subtype XDR_S_U is SEA (1 .. U_L); subtype XDR_S_LU is SEA (1 .. LU_L); subtype XDR_S_LLU is SEA (1 .. LLU_L); type XDR_SSU is mod BB ** SSU_L; type XDR_SU is mod BB ** SU_L; type XDR_U is mod BB ** U_L; function Short_Unsigned_To_XDR_S_SU is new Ada.Unchecked_Conversion (Short_Unsigned, XDR_S_SU); function XDR_S_SU_To_Short_Unsigned is new Ada.Unchecked_Conversion (XDR_S_SU, Short_Unsigned); function Unsigned_To_XDR_S_U is new Ada.Unchecked_Conversion (Unsigned, XDR_S_U); function XDR_S_U_To_Unsigned is new Ada.Unchecked_Conversion (XDR_S_U, Unsigned); function Long_Long_Unsigned_To_XDR_S_LU is new Ada.Unchecked_Conversion (Long_Long_Unsigned, XDR_S_LU); function XDR_S_LU_To_Long_Long_Unsigned is new Ada.Unchecked_Conversion (XDR_S_LU, Long_Long_Unsigned); function Long_Long_Unsigned_To_XDR_S_LLU is new Ada.Unchecked_Conversion (Long_Long_Unsigned, XDR_S_LLU); function XDR_S_LLU_To_Long_Long_Unsigned is new Ada.Unchecked_Conversion (XDR_S_LLU, Long_Long_Unsigned); -- The standard defines the floating-point data type "float" (32 bits -- or 4 bytes). The encoding used is the IEEE standard for normalized -- single-precision floating-point numbers. -- The standard defines the encoding used for the double-precision -- floating-point data type "double" (64 bits or 8 bytes). The encoding -- used is the IEEE standard for normalized double-precision floating-point -- numbers. SF_L : constant := 4; -- Single precision F_L : constant := 4; -- Single precision LF_L : constant := 8; -- Double precision LLF_L : constant := 16; -- Quadruple precision TM_L : constant := 8; subtype XDR_S_TM is SEA (1 .. TM_L); type XDR_TM is mod BB ** TM_L; type XDR_SA is mod 2 ** Standard'Address_Size; function To_XDR_SA is new UC (System.Address, XDR_SA); function To_XDR_SA is new UC (XDR_SA, System.Address); -- Enumerations have the same representation as signed integers. -- Enumerations are handy for describing subsets of the integers. -- Booleans are important enough and occur frequently enough to warrant -- their own explicit type in the standard. Booleans are declared as -- an enumeration, with FALSE = 0 and TRUE = 1. -- The standard defines a string of n (numbered 0 through n-1) ASCII -- bytes to be the number n encoded as an unsigned integer (as described -- above), and followed by the n bytes of the string. Byte m of the string -- always precedes byte m+1 of the string, and byte 0 of the string always -- follows the string's length. If n is not a multiple of four, then the -- n bytes are followed by enough (0 to 3) residual zero bytes, r, to make -- the total byte count a multiple of four. -- To fit with XDR string, do not consider character as an enumeration -- type. C_L : constant := 1; subtype XDR_S_C is SEA (1 .. C_L); -- Consider Wide_Character as an enumeration type WC_L : constant := 4; subtype XDR_S_WC is SEA (1 .. WC_L); type XDR_WC is mod BB ** WC_L; -- Consider Wide_Wide_Character as an enumeration type WWC_L : constant := 8; subtype XDR_S_WWC is SEA (1 .. WWC_L); type XDR_WWC is mod BB ** WWC_L; -- Optimization: if we already have the correct Bit_Order, then some -- computations can be avoided since the source and the target will be -- identical anyway. They will be replaced by direct unchecked -- conversions. Optimize_Integers : constant Boolean := Default_Bit_Order = High_Order_First; ----------------- -- Block_IO_OK -- ----------------- -- We must inhibit Block_IO, because in XDR mode, each element is output -- according to XDR requirements, which is not at all the same as writing -- the whole array in one block. function Block_IO_OK return Boolean is begin return False; end Block_IO_OK; ---------- -- I_AD -- ---------- function I_AD (Stream : not null access RST) return Fat_Pointer is FP : Fat_Pointer; begin FP.P1 := I_AS (Stream).P1; FP.P2 := I_AS (Stream).P1; return FP; end I_AD; ---------- -- I_AS -- ---------- function I_AS (Stream : not null access RST) return Thin_Pointer is S : XDR_S_TM; L : SEO; U : XDR_TM := 0; begin Ada.Streams.Read (Stream.all, S, L); if L /= S'Last then raise Data_Error; else for N in S'Range loop U := U * BB + XDR_TM (S (N)); end loop; return (P1 => To_XDR_SA (XDR_SA (U))); end if; end I_AS; --------- -- I_B -- --------- function I_B (Stream : not null access RST) return Boolean is begin case I_SSU (Stream) is when 0 => return False; when 1 => return True; when others => raise Data_Error; end case; end I_B; --------- -- I_C -- --------- function I_C (Stream : not null access RST) return Character is S : XDR_S_C; L : SEO; begin Ada.Streams.Read (Stream.all, S, L); if L /= S'Last then raise Data_Error; else -- Use Ada requirements on Character representation clause return Character'Val (S (1)); end if; end I_C; --------- -- I_F -- --------- function I_F (Stream : not null access RST) return Float is I : constant Precision := Single; E_Size : Integer renames Fields (I).E_Size; E_Bias : Integer renames Fields (I).E_Bias; E_Last : Integer renames Fields (I).E_Last; F_Mask : SE renames Fields (I).F_Mask; E_Bytes : SEO renames Fields (I).E_Bytes; F_Bytes : SEO renames Fields (I).F_Bytes; F_Size : Integer renames Fields (I).F_Size; Is_Positive : Boolean; Exponent : Long_Unsigned; Fraction : Long_Unsigned; Result : Float; S : SEA (1 .. F_L); L : SEO; begin Ada.Streams.Read (Stream.all, S, L); if L /= S'Last then raise Data_Error; end if; -- Extract Fraction, Sign and Exponent Fraction := Long_Unsigned (S (F_L + 1 - F_Bytes) and F_Mask); for N in F_L + 2 - F_Bytes .. F_L loop Fraction := Fraction * BB + Long_Unsigned (S (N)); end loop; Result := Float'Scaling (Float (Fraction), -F_Size); if BS <= S (1) then Is_Positive := False; Exponent := Long_Unsigned (S (1) - BS); else Is_Positive := True; Exponent := Long_Unsigned (S (1)); end if; for N in 2 .. E_Bytes loop Exponent := Exponent * BB + Long_Unsigned (S (N)); end loop; Exponent := Shift_Right (Exponent, Integer (E_Bytes) * SU - E_Size - 1); -- NaN or Infinities if Integer (Exponent) = E_Last then raise Constraint_Error; elsif Exponent = 0 then -- Signed zeros if Fraction = 0 then null; -- Denormalized float else Result := Float'Scaling (Result, 1 - E_Bias); end if; -- Normalized float else Result := Float'Scaling (1.0 + Result, Integer (Exponent) - E_Bias); end if; if not Is_Positive then Result := -Result; end if; return Result; end I_F; --------- -- I_I -- --------- function I_I (Stream : not null access RST) return Integer is S : XDR_S_I; L : SEO; U : XDR_U := 0; begin Ada.Streams.Read (Stream.all, S, L); if L /= S'Last then raise Data_Error; elsif Optimize_Integers then return XDR_S_I_To_Integer (S); else for N in S'Range loop U := U * BB + XDR_U (S (N)); end loop; -- Test sign and apply two complement notation if S (1) < BL then return Integer (U); else return Integer (-((XDR_U'Last xor U) + 1)); end if; end if; end I_I; ---------- -- I_LF -- ---------- function I_LF (Stream : not null access RST) return Long_Float is I : constant Precision := Double; E_Size : Integer renames Fields (I).E_Size; E_Bias : Integer renames Fields (I).E_Bias; E_Last : Integer renames Fields (I).E_Last; F_Mask : SE renames Fields (I).F_Mask; E_Bytes : SEO renames Fields (I).E_Bytes; F_Bytes : SEO renames Fields (I).F_Bytes; F_Size : Integer renames Fields (I).F_Size; Is_Positive : Boolean; Exponent : Long_Unsigned; Fraction : Long_Long_Unsigned; Result : Long_Float; S : SEA (1 .. LF_L); L : SEO; begin Ada.Streams.Read (Stream.all, S, L); if L /= S'Last then raise Data_Error; end if; -- Extract Fraction, Sign and Exponent Fraction := Long_Long_Unsigned (S (LF_L + 1 - F_Bytes) and F_Mask); for N in LF_L + 2 - F_Bytes .. LF_L loop Fraction := Fraction * BB + Long_Long_Unsigned (S (N)); end loop; Result := Long_Float'Scaling (Long_Float (Fraction), -F_Size); if BS <= S (1) then Is_Positive := False; Exponent := Long_Unsigned (S (1) - BS); else Is_Positive := True; Exponent := Long_Unsigned (S (1)); end if; for N in 2 .. E_Bytes loop Exponent := Exponent * BB + Long_Unsigned (S (N)); end loop; Exponent := Shift_Right (Exponent, Integer (E_Bytes) * SU - E_Size - 1); -- NaN or Infinities if Integer (Exponent) = E_Last then raise Constraint_Error; elsif Exponent = 0 then -- Signed zeros if Fraction = 0 then null; -- Denormalized float else Result := Long_Float'Scaling (Result, 1 - E_Bias); end if; -- Normalized float else Result := Long_Float'Scaling (1.0 + Result, Integer (Exponent) - E_Bias); end if; if not Is_Positive then Result := -Result; end if; return Result; end I_LF; ---------- -- I_LI -- ---------- function I_LI (Stream : not null access RST) return Long_Integer is S : XDR_S_LI; L : SEO; U : Unsigned := 0; X : Long_Unsigned := 0; begin Ada.Streams.Read (Stream.all, S, L); if L /= S'Last then raise Data_Error; elsif Optimize_Integers then return Long_Integer (XDR_S_LI_To_Long_Long_Integer (S)); else -- Compute using machine unsigned -- rather than long_long_unsigned for N in S'Range loop U := U * BB + Unsigned (S (N)); -- We have filled an unsigned if N mod UB = 0 then X := Shift_Left (X, US) + Long_Unsigned (U); U := 0; end if; end loop; -- Test sign and apply two complement notation if S (1) < BL then return Long_Integer (X); else return Long_Integer (-((Long_Unsigned'Last xor X) + 1)); end if; end if; end I_LI; ----------- -- I_LLF -- ----------- function I_LLF (Stream : not null access RST) return Long_Long_Float is I : constant Precision := Quadruple; E_Size : Integer renames Fields (I).E_Size; E_Bias : Integer renames Fields (I).E_Bias; E_Last : Integer renames Fields (I).E_Last; E_Bytes : SEO renames Fields (I).E_Bytes; F_Bytes : SEO renames Fields (I).F_Bytes; F_Size : Integer renames Fields (I).F_Size; Is_Positive : Boolean; Exponent : Long_Unsigned; Fraction_1 : Long_Long_Unsigned := 0; Fraction_2 : Long_Long_Unsigned := 0; Result : Long_Long_Float; HF : constant Natural := F_Size / 2; S : SEA (1 .. LLF_L); L : SEO; begin Ada.Streams.Read (Stream.all, S, L); if L /= S'Last then raise Data_Error; end if; -- Extract Fraction, Sign and Exponent for I in LLF_L - F_Bytes + 1 .. LLF_L - 7 loop Fraction_1 := Fraction_1 * BB + Long_Long_Unsigned (S (I)); end loop; for I in SEO (LLF_L - 6) .. SEO (LLF_L) loop Fraction_2 := Fraction_2 * BB + Long_Long_Unsigned (S (I)); end loop; Result := Long_Long_Float'Scaling (Long_Long_Float (Fraction_2), -HF); Result := Long_Long_Float (Fraction_1) + Result; Result := Long_Long_Float'Scaling (Result, HF - F_Size); if BS <= S (1) then Is_Positive := False; Exponent := Long_Unsigned (S (1) - BS); else Is_Positive := True; Exponent := Long_Unsigned (S (1)); end if; for N in 2 .. E_Bytes loop Exponent := Exponent * BB + Long_Unsigned (S (N)); end loop; Exponent := Shift_Right (Exponent, Integer (E_Bytes) * SU - E_Size - 1); -- NaN or Infinities if Integer (Exponent) = E_Last then raise Constraint_Error; elsif Exponent = 0 then -- Signed zeros if Fraction_1 = 0 and then Fraction_2 = 0 then null; -- Denormalized float else Result := Long_Long_Float'Scaling (Result, 1 - E_Bias); end if; -- Normalized float else Result := Long_Long_Float'Scaling (1.0 + Result, Integer (Exponent) - E_Bias); end if; if not Is_Positive then Result := -Result; end if; return Result; end I_LLF; ----------- -- I_LLI -- ----------- function I_LLI (Stream : not null access RST) return Long_Long_Integer is S : XDR_S_LLI; L : SEO; U : Unsigned := 0; X : Long_Long_Unsigned := 0; begin Ada.Streams.Read (Stream.all, S, L); if L /= S'Last then raise Data_Error; elsif Optimize_Integers then return XDR_S_LLI_To_Long_Long_Integer (S); else -- Compute using machine unsigned for computing -- rather than long_long_unsigned. for N in S'Range loop U := U * BB + Unsigned (S (N)); -- We have filled an unsigned if N mod UB = 0 then X := Shift_Left (X, US) + Long_Long_Unsigned (U); U := 0; end if; end loop; -- Test sign and apply two complement notation if S (1) < BL then return Long_Long_Integer (X); else return Long_Long_Integer (-((Long_Long_Unsigned'Last xor X) + 1)); end if; end if; end I_LLI; ----------- -- I_LLU -- ----------- function I_LLU (Stream : not null access RST) return Long_Long_Unsigned is S : XDR_S_LLU; L : SEO; U : Unsigned := 0; X : Long_Long_Unsigned := 0; begin Ada.Streams.Read (Stream.all, S, L); if L /= S'Last then raise Data_Error; elsif Optimize_Integers then return XDR_S_LLU_To_Long_Long_Unsigned (S); else -- Compute using machine unsigned -- rather than long_long_unsigned. for N in S'Range loop U := U * BB + Unsigned (S (N)); -- We have filled an unsigned if N mod UB = 0 then X := Shift_Left (X, US) + Long_Long_Unsigned (U); U := 0; end if; end loop; return X; end if; end I_LLU; ---------- -- I_LU -- ---------- function I_LU (Stream : not null access RST) return Long_Unsigned is S : XDR_S_LU; L : SEO; U : Unsigned := 0; X : Long_Unsigned := 0; begin Ada.Streams.Read (Stream.all, S, L); if L /= S'Last then raise Data_Error; elsif Optimize_Integers then return Long_Unsigned (XDR_S_LU_To_Long_Long_Unsigned (S)); else -- Compute using machine unsigned -- rather than long_unsigned. for N in S'Range loop U := U * BB + Unsigned (S (N)); -- We have filled an unsigned if N mod UB = 0 then X := Shift_Left (X, US) + Long_Unsigned (U); U := 0; end if; end loop; return X; end if; end I_LU; ---------- -- I_SF -- ---------- function I_SF (Stream : not null access RST) return Short_Float is I : constant Precision := Single; E_Size : Integer renames Fields (I).E_Size; E_Bias : Integer renames Fields (I).E_Bias; E_Last : Integer renames Fields (I).E_Last; F_Mask : SE renames Fields (I).F_Mask; E_Bytes : SEO renames Fields (I).E_Bytes; F_Bytes : SEO renames Fields (I).F_Bytes; F_Size : Integer renames Fields (I).F_Size; Exponent : Long_Unsigned; Fraction : Long_Unsigned; Is_Positive : Boolean; Result : Short_Float; S : SEA (1 .. SF_L); L : SEO; begin Ada.Streams.Read (Stream.all, S, L); if L /= S'Last then raise Data_Error; end if; -- Extract Fraction, Sign and Exponent Fraction := Long_Unsigned (S (SF_L + 1 - F_Bytes) and F_Mask); for N in SF_L + 2 - F_Bytes .. SF_L loop Fraction := Fraction * BB + Long_Unsigned (S (N)); end loop; Result := Short_Float'Scaling (Short_Float (Fraction), -F_Size); if BS <= S (1) then Is_Positive := False; Exponent := Long_Unsigned (S (1) - BS); else Is_Positive := True; Exponent := Long_Unsigned (S (1)); end if; for N in 2 .. E_Bytes loop Exponent := Exponent * BB + Long_Unsigned (S (N)); end loop; Exponent := Shift_Right (Exponent, Integer (E_Bytes) * SU - E_Size - 1); -- NaN or Infinities if Integer (Exponent) = E_Last then raise Constraint_Error; elsif Exponent = 0 then -- Signed zeros if Fraction = 0 then null; -- Denormalized float else Result := Short_Float'Scaling (Result, 1 - E_Bias); end if; -- Normalized float else Result := Short_Float'Scaling (1.0 + Result, Integer (Exponent) - E_Bias); end if; if not Is_Positive then Result := -Result; end if; return Result; end I_SF; ---------- -- I_SI -- ---------- function I_SI (Stream : not null access RST) return Short_Integer is S : XDR_S_SI; L : SEO; U : XDR_SU := 0; begin Ada.Streams.Read (Stream.all, S, L); if L /= S'Last then raise Data_Error; elsif Optimize_Integers then return XDR_S_SI_To_Short_Integer (S); else for N in S'Range loop U := U * BB + XDR_SU (S (N)); end loop; -- Test sign and apply two complement notation if S (1) < BL then return Short_Integer (U); else return Short_Integer (-((XDR_SU'Last xor U) + 1)); end if; end if; end I_SI; ----------- -- I_SSI -- ----------- function I_SSI (Stream : not null access RST) return Short_Short_Integer is S : XDR_S_SSI; L : SEO; U : XDR_SSU; begin Ada.Streams.Read (Stream.all, S, L); if L /= S'Last then raise Data_Error; elsif Optimize_Integers then return XDR_S_SSI_To_Short_Short_Integer (S); else U := XDR_SSU (S (1)); -- Test sign and apply two complement notation if S (1) < BL then return Short_Short_Integer (U); else return Short_Short_Integer (-((XDR_SSU'Last xor U) + 1)); end if; end if; end I_SSI; ----------- -- I_SSU -- ----------- function I_SSU (Stream : not null access RST) return Short_Short_Unsigned is S : XDR_S_SSU; L : SEO; U : XDR_SSU := 0; begin Ada.Streams.Read (Stream.all, S, L); if L /= S'Last then raise Data_Error; else U := XDR_SSU (S (1)); return Short_Short_Unsigned (U); end if; end I_SSU; ---------- -- I_SU -- ---------- function I_SU (Stream : not null access RST) return Short_Unsigned is S : XDR_S_SU; L : SEO; U : XDR_SU := 0; begin Ada.Streams.Read (Stream.all, S, L); if L /= S'Last then raise Data_Error; elsif Optimize_Integers then return XDR_S_SU_To_Short_Unsigned (S); else for N in S'Range loop U := U * BB + XDR_SU (S (N)); end loop; return Short_Unsigned (U); end if; end I_SU; --------- -- I_U -- --------- function I_U (Stream : not null access RST) return Unsigned is S : XDR_S_U; L : SEO; U : XDR_U := 0; begin Ada.Streams.Read (Stream.all, S, L); if L /= S'Last then raise Data_Error; elsif Optimize_Integers then return XDR_S_U_To_Unsigned (S); else for N in S'Range loop U := U * BB + XDR_U (S (N)); end loop; return Unsigned (U); end if; end I_U; ---------- -- I_WC -- ---------- function I_WC (Stream : not null access RST) return Wide_Character is S : XDR_S_WC; L : SEO; U : XDR_WC := 0; begin Ada.Streams.Read (Stream.all, S, L); if L /= S'Last then raise Data_Error; else for N in S'Range loop U := U * BB + XDR_WC (S (N)); end loop; -- Use Ada requirements on Wide_Character representation clause return Wide_Character'Val (U); end if; end I_WC; ----------- -- I_WWC -- ----------- function I_WWC (Stream : not null access RST) return Wide_Wide_Character is S : XDR_S_WWC; L : SEO; U : XDR_WWC := 0; begin Ada.Streams.Read (Stream.all, S, L); if L /= S'Last then raise Data_Error; else for N in S'Range loop U := U * BB + XDR_WWC (S (N)); end loop; -- Use Ada requirements on Wide_Wide_Character representation clause return Wide_Wide_Character'Val (U); end if; end I_WWC; ---------- -- W_AD -- ---------- procedure W_AD (Stream : not null access RST; Item : Fat_Pointer) is S : XDR_S_TM; U : XDR_TM; begin U := XDR_TM (To_XDR_SA (Item.P1)); for N in reverse S'Range loop S (N) := SE (U mod BB); U := U / BB; end loop; Ada.Streams.Write (Stream.all, S); U := XDR_TM (To_XDR_SA (Item.P2)); for N in reverse S'Range loop S (N) := SE (U mod BB); U := U / BB; end loop; Ada.Streams.Write (Stream.all, S); if U /= 0 then raise Data_Error; end if; end W_AD; ---------- -- W_AS -- ---------- procedure W_AS (Stream : not null access RST; Item : Thin_Pointer) is S : XDR_S_TM; U : XDR_TM := XDR_TM (To_XDR_SA (Item.P1)); begin for N in reverse S'Range loop S (N) := SE (U mod BB); U := U / BB; end loop; Ada.Streams.Write (Stream.all, S); if U /= 0 then raise Data_Error; end if; end W_AS; --------- -- W_B -- --------- procedure W_B (Stream : not null access RST; Item : Boolean) is begin if Item then W_SSU (Stream, 1); else W_SSU (Stream, 0); end if; end W_B; --------- -- W_C -- --------- procedure W_C (Stream : not null access RST; Item : Character) is S : XDR_S_C; pragma Assert (C_L = 1); begin -- Use Ada requirements on Character representation clause S (1) := SE (Character'Pos (Item)); Ada.Streams.Write (Stream.all, S); end W_C; --------- -- W_F -- --------- procedure W_F (Stream : not null access RST; Item : Float) is I : constant Precision := Single; E_Size : Integer renames Fields (I).E_Size; E_Bias : Integer renames Fields (I).E_Bias; E_Bytes : SEO renames Fields (I).E_Bytes; F_Bytes : SEO renames Fields (I).F_Bytes; F_Size : Integer renames Fields (I).F_Size; F_Mask : SE renames Fields (I).F_Mask; Exponent : Long_Unsigned; Fraction : Long_Unsigned; Is_Positive : Boolean; E : Integer; F : Float; S : SEA (1 .. F_L) := (others => 0); begin if not Item'Valid then raise Constraint_Error; end if; -- Compute Sign Is_Positive := (0.0 <= Item); F := abs (Item); -- Signed zero if F = 0.0 then Exponent := 0; Fraction := 0; else E := Float'Exponent (F) - 1; -- Denormalized float if E <= -E_Bias then F := Float'Scaling (F, F_Size + E_Bias - 1); E := -E_Bias; else F := Float'Scaling (Float'Fraction (F), F_Size + 1); end if; -- Compute Exponent and Fraction Exponent := Long_Unsigned (E + E_Bias); Fraction := Long_Unsigned (F * 2.0) / 2; end if; -- Store Fraction for I in reverse F_L - F_Bytes + 1 .. F_L loop S (I) := SE (Fraction mod BB); Fraction := Fraction / BB; end loop; -- Remove implicit bit S (F_L - F_Bytes + 1) := S (F_L - F_Bytes + 1) and F_Mask; -- Store Exponent (not always at the beginning of a byte) Exponent := Shift_Left (Exponent, Integer (E_Bytes) * SU - E_Size - 1); for N in reverse 1 .. E_Bytes loop S (N) := SE (Exponent mod BB) + S (N); Exponent := Exponent / BB; end loop; -- Store Sign if not Is_Positive then S (1) := S (1) + BS; end if; Ada.Streams.Write (Stream.all, S); end W_F; --------- -- W_I -- --------- procedure W_I (Stream : not null access RST; Item : Integer) is S : XDR_S_I; U : XDR_U; begin if Optimize_Integers then S := Integer_To_XDR_S_I (Item); else -- Test sign and apply two complement notation U := (if Item < 0 then XDR_U'Last xor XDR_U (-(Item + 1)) else XDR_U (Item)); for N in reverse S'Range loop S (N) := SE (U mod BB); U := U / BB; end loop; if U /= 0 then raise Data_Error; end if; end if; Ada.Streams.Write (Stream.all, S); end W_I; ---------- -- W_LF -- ---------- procedure W_LF (Stream : not null access RST; Item : Long_Float) is I : constant Precision := Double; E_Size : Integer renames Fields (I).E_Size; E_Bias : Integer renames Fields (I).E_Bias; E_Bytes : SEO renames Fields (I).E_Bytes; F_Bytes : SEO renames Fields (I).F_Bytes; F_Size : Integer renames Fields (I).F_Size; F_Mask : SE renames Fields (I).F_Mask; Exponent : Long_Unsigned; Fraction : Long_Long_Unsigned; Is_Positive : Boolean; E : Integer; F : Long_Float; S : SEA (1 .. LF_L) := (others => 0); begin if not Item'Valid then raise Constraint_Error; end if; -- Compute Sign Is_Positive := (0.0 <= Item); F := abs (Item); -- Signed zero if F = 0.0 then Exponent := 0; Fraction := 0; else E := Long_Float'Exponent (F) - 1; -- Denormalized float if E <= -E_Bias then E := -E_Bias; F := Long_Float'Scaling (F, F_Size + E_Bias - 1); else F := Long_Float'Scaling (F, F_Size - E); end if; -- Compute Exponent and Fraction Exponent := Long_Unsigned (E + E_Bias); Fraction := Long_Long_Unsigned (F * 2.0) / 2; end if; -- Store Fraction for I in reverse LF_L - F_Bytes + 1 .. LF_L loop S (I) := SE (Fraction mod BB); Fraction := Fraction / BB; end loop; -- Remove implicit bit S (LF_L - F_Bytes + 1) := S (LF_L - F_Bytes + 1) and F_Mask; -- Store Exponent (not always at the beginning of a byte) Exponent := Shift_Left (Exponent, Integer (E_Bytes) * SU - E_Size - 1); for N in reverse 1 .. E_Bytes loop S (N) := SE (Exponent mod BB) + S (N); Exponent := Exponent / BB; end loop; -- Store Sign if not Is_Positive then S (1) := S (1) + BS; end if; Ada.Streams.Write (Stream.all, S); end W_LF; ---------- -- W_LI -- ---------- procedure W_LI (Stream : not null access RST; Item : Long_Integer) is S : XDR_S_LI; U : Unsigned; X : Long_Unsigned; begin if Optimize_Integers then S := Long_Long_Integer_To_XDR_S_LI (Long_Long_Integer (Item)); else -- Test sign and apply two complement notation if Item < 0 then X := Long_Unsigned'Last xor Long_Unsigned (-(Item + 1)); else X := Long_Unsigned (Item); end if; -- Compute using machine unsigned rather than long_unsigned for N in reverse S'Range loop -- We have filled an unsigned if (LU_L - N) mod UB = 0 then U := Unsigned (X and UL); X := Shift_Right (X, US); end if; S (N) := SE (U mod BB); U := U / BB; end loop; if U /= 0 then raise Data_Error; end if; end if; Ada.Streams.Write (Stream.all, S); end W_LI; ----------- -- W_LLF -- ----------- procedure W_LLF (Stream : not null access RST; Item : Long_Long_Float) is I : constant Precision := Quadruple; E_Size : Integer renames Fields (I).E_Size; E_Bias : Integer renames Fields (I).E_Bias; E_Bytes : SEO renames Fields (I).E_Bytes; F_Bytes : SEO renames Fields (I).F_Bytes; F_Size : Integer renames Fields (I).F_Size; HFS : constant Integer := F_Size / 2; Exponent : Long_Unsigned; Fraction_1 : Long_Long_Unsigned; Fraction_2 : Long_Long_Unsigned; Is_Positive : Boolean; E : Integer; F : Long_Long_Float := Item; S : SEA (1 .. LLF_L) := (others => 0); begin if not Item'Valid then raise Constraint_Error; end if; -- Compute Sign Is_Positive := (0.0 <= Item); if F < 0.0 then F := -Item; end if; -- Signed zero if F = 0.0 then Exponent := 0; Fraction_1 := 0; Fraction_2 := 0; else E := Long_Long_Float'Exponent (F) - 1; -- Denormalized float if E <= -E_Bias then F := Long_Long_Float'Scaling (F, E_Bias - 1); E := -E_Bias; else F := Long_Long_Float'Scaling (Long_Long_Float'Fraction (F), 1); end if; -- Compute Exponent and Fraction Exponent := Long_Unsigned (E + E_Bias); F := Long_Long_Float'Scaling (F, F_Size - HFS); Fraction_1 := Long_Long_Unsigned (Long_Long_Float'Floor (F)); F := F - Long_Long_Float (Fraction_1); F := Long_Long_Float'Scaling (F, HFS); Fraction_2 := Long_Long_Unsigned (Long_Long_Float'Floor (F)); end if; -- Store Fraction_1 for I in reverse LLF_L - F_Bytes + 1 .. LLF_L - 7 loop S (I) := SE (Fraction_1 mod BB); Fraction_1 := Fraction_1 / BB; end loop; -- Store Fraction_2 for I in reverse LLF_L - 6 .. LLF_L loop S (SEO (I)) := SE (Fraction_2 mod BB); Fraction_2 := Fraction_2 / BB; end loop; -- Store Exponent (not always at the beginning of a byte) Exponent := Shift_Left (Exponent, Integer (E_Bytes) * SU - E_Size - 1); for N in reverse 1 .. E_Bytes loop S (N) := SE (Exponent mod BB) + S (N); Exponent := Exponent / BB; end loop; -- Store Sign if not Is_Positive then S (1) := S (1) + BS; end if; Ada.Streams.Write (Stream.all, S); end W_LLF; ----------- -- W_LLI -- ----------- procedure W_LLI (Stream : not null access RST; Item : Long_Long_Integer) is S : XDR_S_LLI; U : Unsigned; X : Long_Long_Unsigned; begin if Optimize_Integers then S := Long_Long_Integer_To_XDR_S_LLI (Item); else -- Test sign and apply two complement notation if Item < 0 then X := Long_Long_Unsigned'Last xor Long_Long_Unsigned (-(Item + 1)); else X := Long_Long_Unsigned (Item); end if; -- Compute using machine unsigned rather than long_long_unsigned for N in reverse S'Range loop -- We have filled an unsigned if (LLU_L - N) mod UB = 0 then U := Unsigned (X and UL); X := Shift_Right (X, US); end if; S (N) := SE (U mod BB); U := U / BB; end loop; if U /= 0 then raise Data_Error; end if; end if; Ada.Streams.Write (Stream.all, S); end W_LLI; ----------- -- W_LLU -- ----------- procedure W_LLU (Stream : not null access RST; Item : Long_Long_Unsigned) is S : XDR_S_LLU; U : Unsigned; X : Long_Long_Unsigned := Item; begin if Optimize_Integers then S := Long_Long_Unsigned_To_XDR_S_LLU (Item); else -- Compute using machine unsigned rather than long_long_unsigned for N in reverse S'Range loop -- We have filled an unsigned if (LLU_L - N) mod UB = 0 then U := Unsigned (X and UL); X := Shift_Right (X, US); end if; S (N) := SE (U mod BB); U := U / BB; end loop; if U /= 0 then raise Data_Error; end if; end if; Ada.Streams.Write (Stream.all, S); end W_LLU; ---------- -- W_LU -- ---------- procedure W_LU (Stream : not null access RST; Item : Long_Unsigned) is S : XDR_S_LU; U : Unsigned; X : Long_Unsigned := Item; begin if Optimize_Integers then S := Long_Long_Unsigned_To_XDR_S_LU (Long_Long_Unsigned (Item)); else -- Compute using machine unsigned rather than long_unsigned for N in reverse S'Range loop -- We have filled an unsigned if (LU_L - N) mod UB = 0 then U := Unsigned (X and UL); X := Shift_Right (X, US); end if; S (N) := SE (U mod BB); U := U / BB; end loop; if U /= 0 then raise Data_Error; end if; end if; Ada.Streams.Write (Stream.all, S); end W_LU; ---------- -- W_SF -- ---------- procedure W_SF (Stream : not null access RST; Item : Short_Float) is I : constant Precision := Single; E_Size : Integer renames Fields (I).E_Size; E_Bias : Integer renames Fields (I).E_Bias; E_Bytes : SEO renames Fields (I).E_Bytes; F_Bytes : SEO renames Fields (I).F_Bytes; F_Size : Integer renames Fields (I).F_Size; F_Mask : SE renames Fields (I).F_Mask; Exponent : Long_Unsigned; Fraction : Long_Unsigned; Is_Positive : Boolean; E : Integer; F : Short_Float; S : SEA (1 .. SF_L) := (others => 0); begin if not Item'Valid then raise Constraint_Error; end if; -- Compute Sign Is_Positive := (0.0 <= Item); F := abs (Item); -- Signed zero if F = 0.0 then Exponent := 0; Fraction := 0; else E := Short_Float'Exponent (F) - 1; -- Denormalized float if E <= -E_Bias then E := -E_Bias; F := Short_Float'Scaling (F, F_Size + E_Bias - 1); else F := Short_Float'Scaling (F, F_Size - E); end if; -- Compute Exponent and Fraction Exponent := Long_Unsigned (E + E_Bias); Fraction := Long_Unsigned (F * 2.0) / 2; end if; -- Store Fraction for I in reverse SF_L - F_Bytes + 1 .. SF_L loop S (I) := SE (Fraction mod BB); Fraction := Fraction / BB; end loop; -- Remove implicit bit S (SF_L - F_Bytes + 1) := S (SF_L - F_Bytes + 1) and F_Mask; -- Store Exponent (not always at the beginning of a byte) Exponent := Shift_Left (Exponent, Integer (E_Bytes) * SU - E_Size - 1); for N in reverse 1 .. E_Bytes loop S (N) := SE (Exponent mod BB) + S (N); Exponent := Exponent / BB; end loop; -- Store Sign if not Is_Positive then S (1) := S (1) + BS; end if; Ada.Streams.Write (Stream.all, S); end W_SF; ---------- -- W_SI -- ---------- procedure W_SI (Stream : not null access RST; Item : Short_Integer) is S : XDR_S_SI; U : XDR_SU; begin if Optimize_Integers then S := Short_Integer_To_XDR_S_SI (Item); else -- Test sign and apply two complement's notation U := (if Item < 0 then XDR_SU'Last xor XDR_SU (-(Item + 1)) else XDR_SU (Item)); for N in reverse S'Range loop S (N) := SE (U mod BB); U := U / BB; end loop; if U /= 0 then raise Data_Error; end if; end if; Ada.Streams.Write (Stream.all, S); end W_SI; ----------- -- W_SSI -- ----------- procedure W_SSI (Stream : not null access RST; Item : Short_Short_Integer) is S : XDR_S_SSI; U : XDR_SSU; begin if Optimize_Integers then S := Short_Short_Integer_To_XDR_S_SSI (Item); else -- Test sign and apply two complement's notation U := (if Item < 0 then XDR_SSU'Last xor XDR_SSU (-(Item + 1)) else XDR_SSU (Item)); S (1) := SE (U); end if; Ada.Streams.Write (Stream.all, S); end W_SSI; ----------- -- W_SSU -- ----------- procedure W_SSU (Stream : not null access RST; Item : Short_Short_Unsigned) is U : constant XDR_SSU := XDR_SSU (Item); S : XDR_S_SSU; begin S (1) := SE (U); Ada.Streams.Write (Stream.all, S); end W_SSU; ---------- -- W_SU -- ---------- procedure W_SU (Stream : not null access RST; Item : Short_Unsigned) is S : XDR_S_SU; U : XDR_SU := XDR_SU (Item); begin if Optimize_Integers then S := Short_Unsigned_To_XDR_S_SU (Item); else for N in reverse S'Range loop S (N) := SE (U mod BB); U := U / BB; end loop; if U /= 0 then raise Data_Error; end if; end if; Ada.Streams.Write (Stream.all, S); end W_SU; --------- -- W_U -- --------- procedure W_U (Stream : not null access RST; Item : Unsigned) is S : XDR_S_U; U : XDR_U := XDR_U (Item); begin if Optimize_Integers then S := Unsigned_To_XDR_S_U (Item); else for N in reverse S'Range loop S (N) := SE (U mod BB); U := U / BB; end loop; if U /= 0 then raise Data_Error; end if; end if; Ada.Streams.Write (Stream.all, S); end W_U; ---------- -- W_WC -- ---------- procedure W_WC (Stream : not null access RST; Item : Wide_Character) is S : XDR_S_WC; U : XDR_WC; begin -- Use Ada requirements on Wide_Character representation clause U := XDR_WC (Wide_Character'Pos (Item)); for N in reverse S'Range loop S (N) := SE (U mod BB); U := U / BB; end loop; Ada.Streams.Write (Stream.all, S); if U /= 0 then raise Data_Error; end if; end W_WC; ----------- -- W_WWC -- ----------- procedure W_WWC (Stream : not null access RST; Item : Wide_Wide_Character) is S : XDR_S_WWC; U : XDR_WWC; begin -- Use Ada requirements on Wide_Wide_Character representation clause U := XDR_WWC (Wide_Wide_Character'Pos (Item)); for N in reverse S'Range loop S (N) := SE (U mod BB); U := U / BB; end loop; Ada.Streams.Write (Stream.all, S); if U /= 0 then raise Data_Error; end if; end W_WWC; end System.Stream_Attributes;
26.351735
79
0.527244
06f0af72d3464164448b3fba5bbf0e702d172451
8,179
adb
Ada
examples/STM32F4_DISCO/filesystem/src/main.adb
morbos/Ada_Drivers_Library
a4ab26799be60997c38735f4056160c4af597ef7
[ "BSD-3-Clause" ]
2
2018-05-16T03:56:39.000Z
2019-07-31T13:53:56.000Z
examples/STM32F4_DISCO/filesystem/src/main.adb
morbos/Ada_Drivers_Library
a4ab26799be60997c38735f4056160c4af597ef7
[ "BSD-3-Clause" ]
null
null
null
examples/STM32F4_DISCO/filesystem/src/main.adb
morbos/Ada_Drivers_Library
a4ab26799be60997c38735f4056160c4af597ef7
[ "BSD-3-Clause" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015-2016, AdaCore -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions are -- -- met: -- -- 1. Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- 2. Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in -- -- the documentation and/or other materials provided with the -- -- distribution. -- -- 3. Neither the name of the copyright holder nor the names of its -- -- contributors may be used to endorse or promote products derived -- -- from this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -- -- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -- -- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -- -- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -- -- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -- -- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ with HAL; use HAL; with Virtual_File_System; use Virtual_File_System; with HAL.Filesystem; use HAL.Filesystem; with Semihosting; with Semihosting.Filesystem; use Semihosting.Filesystem; with File_Block_Drivers; use File_Block_Drivers; with Partitions; use Partitions; procedure Main is procedure List_Dir (FS : in out FS_Driver'Class; Path : Pathname); -- List files in directory procedure List_Partitions (FS : in out FS_Driver'Class; Path_To_Disk_Image : Pathname); -- List partition in a disk file -------------- -- List_Dir -- -------------- procedure List_Dir (FS : in out FS_Driver'Class; Path : Pathname) is Status : Status_Kind; DH : Any_Directory_Handle; begin Status := FS.Open_Directory (Path, DH); if Status /= Status_Ok then Semihosting.Log_Line ("Open Directory '" & Path & "' Error: " & Status'Img); else declare Ent : Directory_Entry; Index : Positive := 1; begin Semihosting.Log_Line ("Listing '" & Path & "' content:"); loop Status := DH.Read_Entry (Index, Ent); if Status = Status_Ok then Semihosting.Log_Line (" - '" & DH.Entry_Name (Index) & "'"); Semihosting.Log_Line (" Kind: " & Ent.Entry_Type'Img); else exit; end if; Index := Index + 1; end loop; end; end if; end List_Dir; --------------------- -- List_Partitions -- --------------------- procedure List_Partitions (FS : in out FS_Driver'Class; Path_To_Disk_Image : Pathname) is File : Any_File_Handle; begin if FS.Open (Path_To_Disk_Image, Read_Only, File) /= Status_Ok then Semihosting.Log_Line ("Cannot open disk image '" & Path_To_Disk_Image & "'"); return; end if; declare Disk : aliased File_Block_Driver (File); Nbr : Natural; P_Entry : Partition_Entry; begin Nbr := Number_Of_Partitions (Disk'Unchecked_Access); Semihosting.Log_Line ("Disk '" & Path_To_Disk_Image & "' has " & Nbr'Img & " parition(s)"); for Id in 1 .. Nbr loop if Get_Partition_Entry (Disk'Unchecked_Access, Id, P_Entry) /= Status_Ok then Semihosting.Log_Line ("Cannot read partition :" & Id'Img); else Semihosting.Log_Line (" - partition :" & Id'Img); Semihosting.Log_Line (" Status:" & P_Entry.Status'Img); Semihosting.Log_Line (" Kind: " & P_Entry.Kind'Img); Semihosting.Log_Line (" LBA: " & P_Entry.First_Sector_LBA'Img); Semihosting.Log_Line (" Number of sectors: " & P_Entry.Number_Of_Sectors'Img); end if; end loop; end; end List_Partitions; My_VFS : VFS; My_VFS2 : aliased VFS; My_VFS3 : aliased VFS; My_SHFS : aliased SHFS; Status : Status_Kind; FH : Any_File_Handle; Data : UInt8_Array (1 .. 10); begin -- Mount My_VFS2 in My_VFS Status := My_VFS.Mount (Path => "vfs2", Filesystem => My_VFS2'Unchecked_Access); if Status /= Status_Ok then Semihosting.Log_Line ("Mount Error: " & Status'Img); end if; -- Mount My_VFS3 in My_VFS2 Status := My_VFS2.Mount (Path => "vfs3", Filesystem => My_VFS3'Unchecked_Access); if Status /= Status_Ok then Semihosting.Log_Line ("Mount Error: " & Status'Img); end if; -- Mount semi-hosting filesystem in My_VFS Status := My_VFS.Mount (Path => "host", Filesystem => My_SHFS'Unchecked_Access); if Status /= Status_Ok then Semihosting.Log_Line ("Mount Error: " & Status'Img); end if; -- List all partitions of a disk image on the host List_Partitions (My_VFS, "/host/tmp/disk_8_partitions.img"); -- Try to unlink a file that doesn't exist in My_VFS2 Status := My_VFS.Unlink ("/vfs2/no_file"); if Status /= Status_Ok then Semihosting.Log_Line ("Unlink Error: " & Status'Img); end if; -- Try to unlink a file that doesn't exist in My_VFS3 Status := My_VFS.Unlink ("/vfs2/vfs3/no_file"); if Status /= Status_Ok then Semihosting.Log_Line ("Unlink Error: " & Status'Img); end if; -- Open a file on the host Status := My_VFS.Open ("/host/tmp/test.shfs", Read_Only, FH); if Status /= Status_Ok then Semihosting.Log_Line ("Open Error: " & Status'Img); end if; -- Read the first 10 characters Status := FH.Read (Data); if Status /= Status_Ok then Semihosting.Log_Line ("Read Error: " & Status'Img); end if; for C of Data loop Semihosting.Log (Character'Val (Integer (C))); end loop; Semihosting.Log_New_Line; -- Move file cursor Status := FH.Seek (10); if Status /= Status_Ok then Semihosting.Log_Line ("Seek Error: " & Status'Img); end if; -- Read 10 characters again Status := FH.Read (Data); if Status /= Status_Ok then Semihosting.Log_Line ("Read Error: " & Status'Img); end if; for C of Data loop Semihosting.Log (Character'Val (Integer (C))); end loop; Semihosting.Log_New_Line; Status := FH.Close; if Status /= Status_Ok then Semihosting.Log_Line ("Close Error: " & Status'Img); end if; -- Test directory listing List_Dir (My_VFS, "/"); List_Dir (My_VFS, "/vfs2"); List_Dir (My_VFS, "/vfs2/"); end Main;
38.399061
98
0.5497
31ef28e1254d80bab02ed20a852236845aa4fa15
521
adb
Ada
Ada/src/Problem_25.adb
Tim-Tom/project-euler
177e0043ee93409742ec596c4379251f681b4275
[ "Unlicense" ]
null
null
null
Ada/src/Problem_25.adb
Tim-Tom/project-euler
177e0043ee93409742ec596c4379251f681b4275
[ "Unlicense" ]
null
null
null
Ada/src/Problem_25.adb
Tim-Tom/project-euler
177e0043ee93409742ec596c4379251f681b4275
[ "Unlicense" ]
null
null
null
with Ada.Text_IO; with BigInteger; use BigInteger; package body Problem_25 is package IO renames Ada.Text_IO; procedure Solve is term : Positive := 3; n : BigInt := BigInteger.Create(2); n_1 : BigInt := BigInteger.Create(1); n_2 : BigInt := BigInteger.Create(1); begin while Magnitude(n) < 1_000 loop term := term + 1; n_2 := n_1; n_1 := n; n := n_1 + n_2; end loop; IO.Put_Line(Positive'Image(term)); end Solve; end Problem_25;
26.05
43
0.585413
06fc86b8a883e62483b3f5804cc6a1651507cfce
91,950
adb
Ada
final-project/repositories/Deep_Learning_Inference_Accelerator_with_CNNIOT/MSOC_final-main/finalconv_hls/solution1/.autopilot/db/conv_read.sched.adb
bol-edu/2020-fall-ntu
5e009875dec5a3bbcebd1b3fae327990371d1b6a
[ "MIT" ]
7
2021-02-10T17:59:48.000Z
2021-09-27T15:02:56.000Z
final-project/repositories/Deep_Learning_Inference_Accelerator_with_CNNIOT/MSOC_final-main/finalconv_hls/solution1/.autopilot/db/conv_read.sched.adb
bol-edu/2020-fall-ntu
5e009875dec5a3bbcebd1b3fae327990371d1b6a
[ "MIT" ]
null
null
null
final-project/repositories/Deep_Learning_Inference_Accelerator_with_CNNIOT/MSOC_final-main/finalconv_hls/solution1/.autopilot/db/conv_read.sched.adb
bol-edu/2020-fall-ntu
5e009875dec5a3bbcebd1b3fae327990371d1b6a
[ "MIT" ]
1
2022-03-22T01:46:01.000Z
2022-03-22T01:46:01.000Z
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <!DOCTYPE boost_serialization> <boost_serialization signature="serialization::archive" version="15"> <syndb class_id="0" tracking_level="0" version="0"> <userIPLatency>-1</userIPLatency> <userIPName></userIPName> <cdfg class_id="1" tracking_level="1" version="0" object_id="_0"> <name>conv_read</name> <ret_bitwidth>32</ret_bitwidth> <ports class_id="2" tracking_level="0" version="0"> <count>9</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>cofm</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>cofm</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>512</bitwidth> </Value> <direction>2</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>ofm_buff0_0</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>ofm_buff0[0]</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>32</bitwidth> </Value> <direction>0</direction> <if_type>1</if_type> <array_size>32</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>ofm_buff0_1</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>ofm_buff0[1]</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>32</bitwidth> </Value> <direction>0</direction> <if_type>1</if_type> <array_size>32</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>ofm_buff0_2</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>ofm_buff0[2]</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>32</bitwidth> </Value> <direction>0</direction> <if_type>1</if_type> <array_size>32</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>ofm_buff0_3</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>ofm_buff0[3]</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>32</bitwidth> </Value> <direction>0</direction> <if_type>1</if_type> <array_size>32</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>ofm_buff0_4</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>ofm_buff0[4]</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>32</bitwidth> </Value> <direction>0</direction> <if_type>1</if_type> <array_size>32</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>ofm_buff0_5</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>ofm_buff0[5]</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>32</bitwidth> </Value> <direction>0</direction> <if_type>1</if_type> <array_size>32</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>cofm_counter_read</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>cofm_counter</originalName> <rtlName></rtlName> <coreName></coreName> </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="_9"> <Value> <Obj> <type>1</type> <id>9</id> <name>enable</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>enable</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>1</bitwidth> </Value> <direction>0</direction> <if_type>0</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> </ports> <nodes class_id="8" tracking_level="0" version="0"> <count>36</count> <item_version>0</item_version> <item class_id="9" tracking_level="1" version="0" object_id="_10"> <Value> <Obj> <type>0</type> <id>11</id> <name>enable_read</name> <fileName>finalconv_Jan19.cpp</fileName> <fileDirectory>D:\Course\mSOC\final</fileDirectory> <lineNumber>229</lineNumber> <contextFuncName>conv_read</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item class_id="10" tracking_level="0" version="0"> <first>D:\Course\mSOC\final</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>finalconv_Jan19.cpp</first> <second>conv_read</second> </first> <second>229</second> </item> </second> </item> </inlineStackInfo> <originalName>enable</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>1</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>58</item> <item>59</item> </oprand_edges> <opcode>read</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>1</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_11"> <Value> <Obj> <type>0</type> <id>12</id> <name>cofm_counter_read_1</name> <fileName>finalconv_Jan19.cpp</fileName> <fileDirectory>D:\Course\mSOC\final</fileDirectory> <lineNumber>229</lineNumber> <contextFuncName>conv_read</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>D:\Course\mSOC\final</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>finalconv_Jan19.cpp</first> <second>conv_read</second> </first> <second>229</second> </item> </second> </item> </inlineStackInfo> <originalName>cofm_counter</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>61</item> <item>62</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="9" object_id="_12"> <Value> <Obj> <type>0</type> <id>13</id> <name>_ln231</name> <fileName>finalconv_Jan19.cpp</fileName> <fileDirectory>D:\Course\mSOC\final</fileDirectory> <lineNumber>231</lineNumber> <contextFuncName>conv_read</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>D:\Course\mSOC\final</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>finalconv_Jan19.cpp</first> <second>conv_read</second> </first> <second>231</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>63</item> <item>64</item> <item>65</item> </oprand_edges> <opcode>br</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.76</m_delay> <m_topoIndex>3</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_13"> <Value> <Obj> <type>0</type> <id>15</id> <name>add_ln233</name> <fileName>finalconv_Jan19.cpp</fileName> <fileDirectory>D:\Course\mSOC\final</fileDirectory> <lineNumber>233</lineNumber> <contextFuncName>conv_read</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>D:\Course\mSOC\final</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>finalconv_Jan19.cpp</first> <second>conv_read</second> </first> <second>233</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>66</item> <item>68</item> </oprand_edges> <opcode>add</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>2.55</m_delay> <m_topoIndex>4</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_14"> <Value> <Obj> <type>0</type> <id>16</id> <name>_ln233</name> <fileName>finalconv_Jan19.cpp</fileName> <fileDirectory>D:\Course\mSOC\final</fileDirectory> <lineNumber>233</lineNumber> <contextFuncName>conv_read</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>D:\Course\mSOC\final</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>finalconv_Jan19.cpp</first> <second>conv_read</second> </first> <second>233</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>69</item> </oprand_edges> <opcode>br</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.76</m_delay> <m_topoIndex>5</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_15"> <Value> <Obj> <type>0</type> <id>18</id> <name>j_0</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>j</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>6</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>70</item> <item>71</item> <item>73</item> <item>74</item> </oprand_edges> <opcode>phi</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>6</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_16"> <Value> <Obj> <type>0</type> <id>19</id> <name>icmp_ln233</name> <fileName>finalconv_Jan19.cpp</fileName> <fileDirectory>D:\Course\mSOC\final</fileDirectory> <lineNumber>233</lineNumber> <contextFuncName>conv_read</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>D:\Course\mSOC\final</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>finalconv_Jan19.cpp</first> <second>conv_read</second> </first> <second>233</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>75</item> <item>77</item> </oprand_edges> <opcode>icmp</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.42</m_delay> <m_topoIndex>7</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_17"> <Value> <Obj> <type>0</type> <id>21</id> <name>j</name> <fileName>finalconv_Jan19.cpp</fileName> <fileDirectory>D:\Course\mSOC\final</fileDirectory> <lineNumber>233</lineNumber> <contextFuncName>conv_read</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>D:\Course\mSOC\final</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>finalconv_Jan19.cpp</first> <second>conv_read</second> </first> <second>233</second> </item> </second> </item> </inlineStackInfo> <originalName>j</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>6</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>78</item> <item>80</item> </oprand_edges> <opcode>add</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.82</m_delay> <m_topoIndex>8</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_18"> <Value> <Obj> <type>0</type> <id>22</id> <name>_ln233</name> <fileName>finalconv_Jan19.cpp</fileName> <fileDirectory>D:\Course\mSOC\final</fileDirectory> <lineNumber>233</lineNumber> <contextFuncName>conv_read</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>D:\Course\mSOC\final</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>finalconv_Jan19.cpp</first> <second>conv_read</second> </first> <second>233</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>81</item> <item>82</item> <item>83</item> </oprand_edges> <opcode>br</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>9</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_19"> <Value> <Obj> <type>0</type> <id>26</id> <name>zext_ln236</name> <fileName>finalconv_Jan19.cpp</fileName> <fileDirectory>D:\Course\mSOC\final</fileDirectory> <lineNumber>236</lineNumber> <contextFuncName>conv_read</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>D:\Course\mSOC\final</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>finalconv_Jan19.cpp</first> <second>conv_read</second> </first> <second>236</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>84</item> </oprand_edges> <opcode>zext</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>10</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_20"> <Value> <Obj> <type>0</type> <id>27</id> <name>ofm_buff0_0_addr</name> <fileName>finalconv_Jan19.cpp</fileName> <fileDirectory>D:\Course\mSOC\final</fileDirectory> <lineNumber>236</lineNumber> <contextFuncName>conv_read</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>D:\Course\mSOC\final</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>finalconv_Jan19.cpp</first> <second>conv_read</second> </first> <second>236</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>5</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>85</item> <item>87</item> <item>88</item> </oprand_edges> <opcode>getelementptr</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>11</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_21"> <Value> <Obj> <type>0</type> <id>28</id> <name>ofm_buff0_0_load</name> <fileName>finalconv_Jan19.cpp</fileName> <fileDirectory>D:\Course\mSOC\final</fileDirectory> <lineNumber>236</lineNumber> <contextFuncName>conv_read</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>D:\Course\mSOC\final</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>finalconv_Jan19.cpp</first> <second>conv_read</second> </first> <second>236</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>89</item> </oprand_edges> <opcode>load</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>3.25</m_delay> <m_topoIndex>12</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_22"> <Value> <Obj> <type>0</type> <id>29</id> <name>bitcast_ln236</name> <fileName>finalconv_Jan19.cpp</fileName> <fileDirectory>D:\Course\mSOC\final</fileDirectory> <lineNumber>236</lineNumber> <contextFuncName>conv_read</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>D:\Course\mSOC\final</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>finalconv_Jan19.cpp</first> <second>conv_read</second> </first> <second>236</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>90</item> </oprand_edges> <opcode>bitcast</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>23</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_23"> <Value> <Obj> <type>0</type> <id>30</id> <name>cofm_read</name> <fileName>finalconv_Jan19.cpp</fileName> <fileDirectory>D:\Course\mSOC\final</fileDirectory> <lineNumber>236</lineNumber> <contextFuncName>conv_read</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>D:\Course\mSOC\final</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>finalconv_Jan19.cpp</first> <second>conv_read</second> </first> <second>236</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>512</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>92</item> <item>93</item> </oprand_edges> <opcode>read</opcode> <m_Display>1</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>1</m_isLCDNode> <m_isStartOfPath>1</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>24</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_24"> <Value> <Obj> <type>0</type> <id>31</id> <name>ofm_buff0_1_addr</name> <fileName>finalconv_Jan19.cpp</fileName> <fileDirectory>D:\Course\mSOC\final</fileDirectory> <lineNumber>237</lineNumber> <contextFuncName>conv_read</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>D:\Course\mSOC\final</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>finalconv_Jan19.cpp</first> <second>conv_read</second> </first> <second>237</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>5</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>94</item> <item>95</item> <item>96</item> </oprand_edges> <opcode>getelementptr</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>13</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_25"> <Value> <Obj> <type>0</type> <id>32</id> <name>ofm_buff0_1_load</name> <fileName>finalconv_Jan19.cpp</fileName> <fileDirectory>D:\Course\mSOC\final</fileDirectory> <lineNumber>237</lineNumber> <contextFuncName>conv_read</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>D:\Course\mSOC\final</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>finalconv_Jan19.cpp</first> <second>conv_read</second> </first> <second>237</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>97</item> </oprand_edges> <opcode>load</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>3.25</m_delay> <m_topoIndex>14</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_26"> <Value> <Obj> <type>0</type> <id>33</id> <name>bitcast_ln237</name> <fileName>finalconv_Jan19.cpp</fileName> <fileDirectory>D:\Course\mSOC\final</fileDirectory> <lineNumber>237</lineNumber> <contextFuncName>conv_read</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>D:\Course\mSOC\final</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>finalconv_Jan19.cpp</first> <second>conv_read</second> </first> <second>237</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>98</item> </oprand_edges> <opcode>bitcast</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>25</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_27"> <Value> <Obj> <type>0</type> <id>34</id> <name>ofm_buff0_2_addr</name> <fileName>finalconv_Jan19.cpp</fileName> <fileDirectory>D:\Course\mSOC\final</fileDirectory> <lineNumber>238</lineNumber> <contextFuncName>conv_read</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>D:\Course\mSOC\final</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>finalconv_Jan19.cpp</first> <second>conv_read</second> </first> <second>238</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>5</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>99</item> <item>100</item> <item>101</item> </oprand_edges> <opcode>getelementptr</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>15</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_28"> <Value> <Obj> <type>0</type> <id>35</id> <name>ofm_buff0_2_load</name> <fileName>finalconv_Jan19.cpp</fileName> <fileDirectory>D:\Course\mSOC\final</fileDirectory> <lineNumber>238</lineNumber> <contextFuncName>conv_read</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>D:\Course\mSOC\final</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>finalconv_Jan19.cpp</first> <second>conv_read</second> </first> <second>238</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>102</item> </oprand_edges> <opcode>load</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>3.25</m_delay> <m_topoIndex>16</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_29"> <Value> <Obj> <type>0</type> <id>36</id> <name>bitcast_ln238</name> <fileName>finalconv_Jan19.cpp</fileName> <fileDirectory>D:\Course\mSOC\final</fileDirectory> <lineNumber>238</lineNumber> <contextFuncName>conv_read</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>D:\Course\mSOC\final</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>finalconv_Jan19.cpp</first> <second>conv_read</second> </first> <second>238</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>103</item> </oprand_edges> <opcode>bitcast</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>26</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_30"> <Value> <Obj> <type>0</type> <id>37</id> <name>ofm_buff0_3_addr</name> <fileName>finalconv_Jan19.cpp</fileName> <fileDirectory>D:\Course\mSOC\final</fileDirectory> <lineNumber>239</lineNumber> <contextFuncName>conv_read</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>D:\Course\mSOC\final</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>finalconv_Jan19.cpp</first> <second>conv_read</second> </first> <second>239</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>5</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>104</item> <item>105</item> <item>106</item> </oprand_edges> <opcode>getelementptr</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>17</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_31"> <Value> <Obj> <type>0</type> <id>38</id> <name>ofm_buff0_3_load</name> <fileName>finalconv_Jan19.cpp</fileName> <fileDirectory>D:\Course\mSOC\final</fileDirectory> <lineNumber>239</lineNumber> <contextFuncName>conv_read</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>D:\Course\mSOC\final</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>finalconv_Jan19.cpp</first> <second>conv_read</second> </first> <second>239</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>107</item> </oprand_edges> <opcode>load</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>3.25</m_delay> <m_topoIndex>18</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_32"> <Value> <Obj> <type>0</type> <id>39</id> <name>bitcast_ln239</name> <fileName>finalconv_Jan19.cpp</fileName> <fileDirectory>D:\Course\mSOC\final</fileDirectory> <lineNumber>239</lineNumber> <contextFuncName>conv_read</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>D:\Course\mSOC\final</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>finalconv_Jan19.cpp</first> <second>conv_read</second> </first> <second>239</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>108</item> </oprand_edges> <opcode>bitcast</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>27</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_33"> <Value> <Obj> <type>0</type> <id>40</id> <name>ofm_buff0_4_addr</name> <fileName>finalconv_Jan19.cpp</fileName> <fileDirectory>D:\Course\mSOC\final</fileDirectory> <lineNumber>240</lineNumber> <contextFuncName>conv_read</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>D:\Course\mSOC\final</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>finalconv_Jan19.cpp</first> <second>conv_read</second> </first> <second>240</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>5</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>109</item> <item>110</item> <item>111</item> </oprand_edges> <opcode>getelementptr</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>19</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_34"> <Value> <Obj> <type>0</type> <id>41</id> <name>ofm_buff0_4_load</name> <fileName>finalconv_Jan19.cpp</fileName> <fileDirectory>D:\Course\mSOC\final</fileDirectory> <lineNumber>240</lineNumber> <contextFuncName>conv_read</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>D:\Course\mSOC\final</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>finalconv_Jan19.cpp</first> <second>conv_read</second> </first> <second>240</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>112</item> </oprand_edges> <opcode>load</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>3.25</m_delay> <m_topoIndex>20</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_35"> <Value> <Obj> <type>0</type> <id>42</id> <name>bitcast_ln240</name> <fileName>finalconv_Jan19.cpp</fileName> <fileDirectory>D:\Course\mSOC\final</fileDirectory> <lineNumber>240</lineNumber> <contextFuncName>conv_read</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>D:\Course\mSOC\final</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>finalconv_Jan19.cpp</first> <second>conv_read</second> </first> <second>240</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>113</item> </oprand_edges> <opcode>bitcast</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>28</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_36"> <Value> <Obj> <type>0</type> <id>43</id> <name>ofm_buff0_5_addr</name> <fileName>finalconv_Jan19.cpp</fileName> <fileDirectory>D:\Course\mSOC\final</fileDirectory> <lineNumber>241</lineNumber> <contextFuncName>conv_read</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>D:\Course\mSOC\final</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>finalconv_Jan19.cpp</first> <second>conv_read</second> </first> <second>241</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>5</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>114</item> <item>115</item> <item>116</item> </oprand_edges> <opcode>getelementptr</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>21</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_37"> <Value> <Obj> <type>0</type> <id>44</id> <name>ofm_buff0_5_load</name> <fileName>finalconv_Jan19.cpp</fileName> <fileDirectory>D:\Course\mSOC\final</fileDirectory> <lineNumber>241</lineNumber> <contextFuncName>conv_read</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>D:\Course\mSOC\final</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>finalconv_Jan19.cpp</first> <second>conv_read</second> </first> <second>241</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>117</item> </oprand_edges> <opcode>load</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>3.25</m_delay> <m_topoIndex>22</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_38"> <Value> <Obj> <type>0</type> <id>45</id> <name>bitcast_ln241</name> <fileName>finalconv_Jan19.cpp</fileName> <fileDirectory>D:\Course\mSOC\final</fileDirectory> <lineNumber>241</lineNumber> <contextFuncName>conv_read</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>D:\Course\mSOC\final</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>finalconv_Jan19.cpp</first> <second>conv_read</second> </first> <second>241</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>118</item> </oprand_edges> <opcode>bitcast</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>29</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_39"> <Value> <Obj> <type>0</type> <id>46</id> <name>tmp_s</name> <fileName>finalconv_Jan19.cpp</fileName> <fileDirectory>D:\Course\mSOC\final</fileDirectory> <lineNumber>241</lineNumber> <contextFuncName>conv_read</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>D:\Course\mSOC\final</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>finalconv_Jan19.cpp</first> <second>conv_read</second> </first> <second>241</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>192</bitwidth> </Value> <oprand_edges> <count>7</count> <item_version>0</item_version> <item>120</item> <item>121</item> <item>122</item> <item>123</item> <item>124</item> <item>125</item> <item>126</item> </oprand_edges> <opcode>bitconcatenate</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>30</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_40"> <Value> <Obj> <type>0</type> <id>47</id> <name>cofm_b5_addr1516_par</name> <fileName>finalconv_Jan19.cpp</fileName> <fileDirectory>D:\Course\mSOC\final</fileDirectory> <lineNumber>241</lineNumber> <contextFuncName>conv_read</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>D:\Course\mSOC\final</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>finalconv_Jan19.cpp</first> <second>conv_read</second> </first> <second>241</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>512</bitwidth> </Value> <oprand_edges> <count>5</count> <item_version>0</item_version> <item>128</item> <item>129</item> <item>130</item> <item>132</item> <item>134</item> </oprand_edges> <opcode>partset</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>31</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_41"> <Value> <Obj> <type>0</type> <id>48</id> <name>cofm_write_ln241</name> <fileName>finalconv_Jan19.cpp</fileName> <fileDirectory>D:\Course\mSOC\final</fileDirectory> <lineNumber>241</lineNumber> <contextFuncName>conv_read</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>D:\Course\mSOC\final</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>finalconv_Jan19.cpp</first> <second>conv_read</second> </first> <second>241</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>5</count> <item_version>0</item_version> <item>136</item> <item>137</item> <item>138</item> <item>201</item> <item>2147483647</item> </oprand_edges> <opcode>write</opcode> <m_Display>1</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>1</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>32</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_42"> <Value> <Obj> <type>0</type> <id>50</id> <name>_ln233</name> <fileName>finalconv_Jan19.cpp</fileName> <fileDirectory>D:\Course\mSOC\final</fileDirectory> <lineNumber>233</lineNumber> <contextFuncName>conv_read</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>D:\Course\mSOC\final</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>finalconv_Jan19.cpp</first> <second>conv_read</second> </first> <second>233</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>139</item> </oprand_edges> <opcode>br</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>33</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_43"> <Value> <Obj> <type>0</type> <id>52</id> <name>_ln0</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>140</item> </oprand_edges> <opcode>br</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.76</m_delay> <m_topoIndex>34</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_44"> <Value> <Obj> <type>0</type> <id>54</id> <name>cofm_counter_1</name> <fileName>finalconv_Jan19.cpp</fileName> <fileDirectory>D:\Course\mSOC\final</fileDirectory> <lineNumber>229</lineNumber> <contextFuncName>conv_read</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>D:\Course\mSOC\final</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>finalconv_Jan19.cpp</first> <second>conv_read</second> </first> <second>229</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>141</item> <item>142</item> <item>143</item> <item>144</item> </oprand_edges> <opcode>phi</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>35</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_45"> <Value> <Obj> <type>0</type> <id>55</id> <name>_ln256</name> <fileName>finalconv_Jan19.cpp</fileName> <fileDirectory>D:\Course\mSOC\final</fileDirectory> <lineNumber>256</lineNumber> <contextFuncName>conv_read</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>D:\Course\mSOC\final</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>finalconv_Jan19.cpp</first> <second>conv_read</second> </first> <second>256</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>145</item> </oprand_edges> <opcode>ret</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>36</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> </nodes> <consts class_id="15" tracking_level="0" version="0"> <count>7</count> <item_version>0</item_version> <item class_id="16" tracking_level="1" version="0" object_id="_46"> <Value> <Obj> <type>2</type> <id>67</id> <name>empty</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>32</bitwidth> </Value> <const_type>0</const_type> <content>32</content> </item> <item class_id_reference="16" object_id="_47"> <Value> <Obj> <type>2</type> <id>72</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>6</bitwidth> </Value> <const_type>0</const_type> <content>0</content> </item> <item class_id_reference="16" object_id="_48"> <Value> <Obj> <type>2</type> <id>76</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>6</bitwidth> </Value> <const_type>0</const_type> <content>32</content> </item> <item class_id_reference="16" object_id="_49"> <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>6</bitwidth> </Value> <const_type>0</const_type> <content>1</content> </item> <item class_id_reference="16" object_id="_50"> <Value> <Obj> <type>2</type> <id>86</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="_51"> <Value> <Obj> <type>2</type> <id>131</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="_52"> <Value> <Obj> <type>2</type> <id>133</id> <name>empty</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>32</bitwidth> </Value> <const_type>0</const_type> <content>191</content> </item> </consts> <blocks class_id="17" tracking_level="0" version="0"> <count>6</count> <item_version>0</item_version> <item class_id="18" tracking_level="1" version="0" object_id="_53"> <Obj> <type>3</type> <id>14</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>11</item> <item>12</item> <item>13</item> </node_objs> </item> <item class_id_reference="18" object_id="_54"> <Obj> <type>3</type> <id>17</id> <name>.preheader.preheader</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <node_objs> <count>2</count> <item_version>0</item_version> <item>15</item> <item>16</item> </node_objs> </item> <item class_id_reference="18" object_id="_55"> <Obj> <type>3</type> <id>23</id> <name>.preheader</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <node_objs> <count>4</count> <item_version>0</item_version> <item>18</item> <item>19</item> <item>21</item> <item>22</item> </node_objs> </item> <item class_id_reference="18" object_id="_56"> <Obj> <type>3</type> <id>51</id> <name>hls_label_8</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>24</count> <item_version>0</item_version> <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>50</item> </node_objs> </item> <item class_id_reference="18" object_id="_57"> <Obj> <type>3</type> <id>53</id> <name>.loopexit.loopexit</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>52</item> </node_objs> </item> <item class_id_reference="18" object_id="_58"> <Obj> <type>3</type> <id>56</id> <name>.loopexit</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <node_objs> <count>2</count> <item_version>0</item_version> <item>54</item> <item>55</item> </node_objs> </item> </blocks> <edges class_id="19" tracking_level="0" version="0"> <count>79</count> <item_version>0</item_version> <item class_id="20" tracking_level="1" version="0" object_id="_59"> <id>59</id> <edge_type>1</edge_type> <source_obj>9</source_obj> <sink_obj>11</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_60"> <id>62</id> <edge_type>1</edge_type> <source_obj>8</source_obj> <sink_obj>12</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_61"> <id>63</id> <edge_type>1</edge_type> <source_obj>11</source_obj> <sink_obj>13</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_62"> <id>64</id> <edge_type>2</edge_type> <source_obj>56</source_obj> <sink_obj>13</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_63"> <id>65</id> <edge_type>2</edge_type> <source_obj>17</source_obj> <sink_obj>13</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_64"> <id>66</id> <edge_type>1</edge_type> <source_obj>12</source_obj> <sink_obj>15</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_65"> <id>68</id> <edge_type>1</edge_type> <source_obj>67</source_obj> <sink_obj>15</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_66"> <id>69</id> <edge_type>2</edge_type> <source_obj>23</source_obj> <sink_obj>16</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_67"> <id>70</id> <edge_type>1</edge_type> <source_obj>21</source_obj> <sink_obj>18</sink_obj> <is_back_edge>1</is_back_edge> </item> <item class_id_reference="20" object_id="_68"> <id>71</id> <edge_type>2</edge_type> <source_obj>51</source_obj> <sink_obj>18</sink_obj> <is_back_edge>1</is_back_edge> </item> <item class_id_reference="20" object_id="_69"> <id>73</id> <edge_type>1</edge_type> <source_obj>72</source_obj> <sink_obj>18</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_70"> <id>74</id> <edge_type>2</edge_type> <source_obj>17</source_obj> <sink_obj>18</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_71"> <id>75</id> <edge_type>1</edge_type> <source_obj>18</source_obj> <sink_obj>19</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_72"> <id>77</id> <edge_type>1</edge_type> <source_obj>76</source_obj> <sink_obj>19</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_73"> <id>78</id> <edge_type>1</edge_type> <source_obj>18</source_obj> <sink_obj>21</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_74"> <id>80</id> <edge_type>1</edge_type> <source_obj>79</source_obj> <sink_obj>21</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_75"> <id>81</id> <edge_type>1</edge_type> <source_obj>19</source_obj> <sink_obj>22</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_76"> <id>82</id> <edge_type>2</edge_type> <source_obj>51</source_obj> <sink_obj>22</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_77"> <id>83</id> <edge_type>2</edge_type> <source_obj>53</source_obj> <sink_obj>22</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_78"> <id>84</id> <edge_type>1</edge_type> <source_obj>18</source_obj> <sink_obj>26</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_79"> <id>85</id> <edge_type>1</edge_type> <source_obj>2</source_obj> <sink_obj>27</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_80"> <id>87</id> <edge_type>1</edge_type> <source_obj>86</source_obj> <sink_obj>27</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_81"> <id>88</id> <edge_type>1</edge_type> <source_obj>26</source_obj> <sink_obj>27</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_82"> <id>89</id> <edge_type>1</edge_type> <source_obj>27</source_obj> <sink_obj>28</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_83"> <id>90</id> <edge_type>1</edge_type> <source_obj>28</source_obj> <sink_obj>29</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_84"> <id>93</id> <edge_type>1</edge_type> <source_obj>1</source_obj> <sink_obj>30</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_85"> <id>94</id> <edge_type>1</edge_type> <source_obj>3</source_obj> <sink_obj>31</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_86"> <id>95</id> <edge_type>1</edge_type> <source_obj>86</source_obj> <sink_obj>31</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_87"> <id>96</id> <edge_type>1</edge_type> <source_obj>26</source_obj> <sink_obj>31</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_88"> <id>97</id> <edge_type>1</edge_type> <source_obj>31</source_obj> <sink_obj>32</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_89"> <id>98</id> <edge_type>1</edge_type> <source_obj>32</source_obj> <sink_obj>33</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_90"> <id>99</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="20" object_id="_91"> <id>100</id> <edge_type>1</edge_type> <source_obj>86</source_obj> <sink_obj>34</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_92"> <id>101</id> <edge_type>1</edge_type> <source_obj>26</source_obj> <sink_obj>34</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_93"> <id>102</id> <edge_type>1</edge_type> <source_obj>34</source_obj> <sink_obj>35</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_94"> <id>103</id> <edge_type>1</edge_type> <source_obj>35</source_obj> <sink_obj>36</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_95"> <id>104</id> <edge_type>1</edge_type> <source_obj>5</source_obj> <sink_obj>37</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_96"> <id>105</id> <edge_type>1</edge_type> <source_obj>86</source_obj> <sink_obj>37</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_97"> <id>106</id> <edge_type>1</edge_type> <source_obj>26</source_obj> <sink_obj>37</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_98"> <id>107</id> <edge_type>1</edge_type> <source_obj>37</source_obj> <sink_obj>38</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_99"> <id>108</id> <edge_type>1</edge_type> <source_obj>38</source_obj> <sink_obj>39</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_100"> <id>109</id> <edge_type>1</edge_type> <source_obj>6</source_obj> <sink_obj>40</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_101"> <id>110</id> <edge_type>1</edge_type> <source_obj>86</source_obj> <sink_obj>40</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_102"> <id>111</id> <edge_type>1</edge_type> <source_obj>26</source_obj> <sink_obj>40</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_103"> <id>112</id> <edge_type>1</edge_type> <source_obj>40</source_obj> <sink_obj>41</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_104"> <id>113</id> <edge_type>1</edge_type> <source_obj>41</source_obj> <sink_obj>42</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_105"> <id>114</id> <edge_type>1</edge_type> <source_obj>7</source_obj> <sink_obj>43</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_106"> <id>115</id> <edge_type>1</edge_type> <source_obj>86</source_obj> <sink_obj>43</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_107"> <id>116</id> <edge_type>1</edge_type> <source_obj>26</source_obj> <sink_obj>43</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_108"> <id>117</id> <edge_type>1</edge_type> <source_obj>43</source_obj> <sink_obj>44</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_109"> <id>118</id> <edge_type>1</edge_type> <source_obj>44</source_obj> <sink_obj>45</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_110"> <id>121</id> <edge_type>1</edge_type> <source_obj>45</source_obj> <sink_obj>46</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_111"> <id>122</id> <edge_type>1</edge_type> <source_obj>42</source_obj> <sink_obj>46</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_112"> <id>123</id> <edge_type>1</edge_type> <source_obj>39</source_obj> <sink_obj>46</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_113"> <id>124</id> <edge_type>1</edge_type> <source_obj>36</source_obj> <sink_obj>46</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_114"> <id>125</id> <edge_type>1</edge_type> <source_obj>33</source_obj> <sink_obj>46</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_115"> <id>126</id> <edge_type>1</edge_type> <source_obj>29</source_obj> <sink_obj>46</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_116"> <id>129</id> <edge_type>1</edge_type> <source_obj>30</source_obj> <sink_obj>47</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_117"> <id>130</id> <edge_type>1</edge_type> <source_obj>46</source_obj> <sink_obj>47</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_118"> <id>132</id> <edge_type>1</edge_type> <source_obj>131</source_obj> <sink_obj>47</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_119"> <id>134</id> <edge_type>1</edge_type> <source_obj>133</source_obj> <sink_obj>47</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_120"> <id>137</id> <edge_type>1</edge_type> <source_obj>1</source_obj> <sink_obj>48</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_121"> <id>138</id> <edge_type>1</edge_type> <source_obj>47</source_obj> <sink_obj>48</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_122"> <id>139</id> <edge_type>2</edge_type> <source_obj>23</source_obj> <sink_obj>50</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_123"> <id>140</id> <edge_type>2</edge_type> <source_obj>56</source_obj> <sink_obj>52</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_124"> <id>141</id> <edge_type>1</edge_type> <source_obj>12</source_obj> <sink_obj>54</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_125"> <id>142</id> <edge_type>2</edge_type> <source_obj>14</source_obj> <sink_obj>54</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_126"> <id>143</id> <edge_type>1</edge_type> <source_obj>15</source_obj> <sink_obj>54</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_127"> <id>144</id> <edge_type>2</edge_type> <source_obj>53</source_obj> <sink_obj>54</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_128"> <id>145</id> <edge_type>1</edge_type> <source_obj>54</source_obj> <sink_obj>55</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_129"> <id>194</id> <edge_type>2</edge_type> <source_obj>14</source_obj> <sink_obj>17</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_130"> <id>195</id> <edge_type>2</edge_type> <source_obj>14</source_obj> <sink_obj>56</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_131"> <id>196</id> <edge_type>2</edge_type> <source_obj>17</source_obj> <sink_obj>23</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_132"> <id>197</id> <edge_type>2</edge_type> <source_obj>23</source_obj> <sink_obj>53</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_133"> <id>198</id> <edge_type>2</edge_type> <source_obj>23</source_obj> <sink_obj>51</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_134"> <id>199</id> <edge_type>2</edge_type> <source_obj>51</source_obj> <sink_obj>23</sink_obj> <is_back_edge>1</is_back_edge> </item> <item class_id_reference="20" object_id="_135"> <id>200</id> <edge_type>2</edge_type> <source_obj>53</source_obj> <sink_obj>56</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_136"> <id>201</id> <edge_type>4</edge_type> <source_obj>30</source_obj> <sink_obj>48</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_137"> <id>2147483647</id> <edge_type>1</edge_type> <source_obj>48</source_obj> <sink_obj>30</sink_obj> <is_back_edge>1</is_back_edge> </item> </edges> </cdfg> <cdfg_regions class_id="21" tracking_level="0" version="0"> <count>5</count> <item_version>0</item_version> <item class_id="22" tracking_level="1" version="0" object_id="_138"> <mId>1</mId> <mTag>conv_read</mTag> <mType>0</mType> <sub_regions> <count>4</count> <item_version>0</item_version> <item>2</item> <item>3</item> <item>4</item> <item>5</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>1</mMinLatency> <mMaxLatency>67</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"></mDfPipe> </item> <item class_id_reference="22" object_id="_139"> <mId>2</mId> <mTag>Entry</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>14</item> <item>17</item> </basic_blocks> <mII>-1</mII> <mDepth>-1</mDepth> <mMinTripCount>-1</mMinTripCount> <mMaxTripCount>-1</mMaxTripCount> <mMinLatency>0</mMinLatency> <mMaxLatency>0</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"></mDfPipe> </item> <item class_id_reference="22" object_id="_140"> <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>23</item> <item>51</item> </basic_blocks> <mII>2</mII> <mDepth>3</mDepth> <mMinTripCount>32</mMinTripCount> <mMaxTripCount>32</mMaxTripCount> <mMinLatency>64</mMinLatency> <mMaxLatency>64</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"></mDfPipe> </item> <item class_id_reference="22" object_id="_141"> <mId>4</mId> <mTag>Region 1</mTag> <mType>0</mType> <sub_regions> <count>0</count> <item_version>0</item_version> </sub_regions> <basic_blocks> <count>1</count> <item_version>0</item_version> <item>53</item> </basic_blocks> <mII>-1</mII> <mDepth>-1</mDepth> <mMinTripCount>-1</mMinTripCount> <mMaxTripCount>-1</mMaxTripCount> <mMinLatency>0</mMinLatency> <mMaxLatency>0</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"></mDfPipe> </item> <item class_id_reference="22" object_id="_142"> <mId>5</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>56</item> </basic_blocks> <mII>-1</mII> <mDepth>-1</mDepth> <mMinTripCount>-1</mMinTripCount> <mMaxTripCount>-1</mMaxTripCount> <mMinLatency>0</mMinLatency> <mMaxLatency>0</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"></mDfPipe> </item> </cdfg_regions> <fsm class_id="-1"></fsm> <res class_id="-1"></res> <node_label_latency class_id="26" tracking_level="0" version="0"> <count>36</count> <item_version>0</item_version> <item class_id="27" tracking_level="0" version="0"> <first>11</first> <second class_id="28" tracking_level="0" version="0"> <first>0</first> <second>0</second> </second> </item> <item> <first>12</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>13</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>15</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>16</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>18</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>19</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>21</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>22</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>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>1</second> </second> </item> <item> <first>29</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>30</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>31</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>32</first> <second> <first>1</first> <second>1</second> </second> </item> <item> <first>33</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>34</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>35</first> <second> <first>1</first> <second>1</second> </second> </item> <item> <first>36</first> <second> <first>2</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>1</second> </second> </item> <item> <first>39</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>40</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>41</first> <second> <first>1</first> <second>1</second> </second> </item> <item> <first>42</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>43</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>44</first> <second> <first>1</first> <second>1</second> </second> </item> <item> <first>45</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>46</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>47</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>48</first> <second> <first>3</first> <second>0</second> </second> </item> <item> <first>50</first> <second> <first>3</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>5</first> <second>0</second> </second> </item> <item> <first>55</first> <second> <first>5</first> <second>0</second> </second> </item> </node_label_latency> <bblk_ent_exit class_id="29" tracking_level="0" version="0"> <count>6</count> <item_version>0</item_version> <item class_id="30" tracking_level="0" version="0"> <first>14</first> <second class_id="31" tracking_level="0" version="0"> <first>0</first> <second>0</second> </second> </item> <item> <first>17</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>23</first> <second> <first>1</first> <second>1</second> </second> </item> <item> <first>51</first> <second> <first>1</first> <second>3</second> </second> </item> <item> <first>53</first> <second> <first>2</first> <second>2</second> </second> </item> <item> <first>56</first> <second> <first>3</first> <second>3</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="_143"> <region_name>Loop 1</region_name> <basic_blocks> <count>2</count> <item_version>0</item_version> <item>23</item> <item>51</item> </basic_blocks> <nodes> <count>0</count> <item_version>0</item_version> </nodes> <anchor_node>-1</anchor_node> <region_type>8</region_type> <interval>2</interval> <pipe_depth>3</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>
26.996477
70
0.603252
069430734864c21c7351938ce5f092a56bf339dc
2,843
adb
Ada
src/004/dynamic_test.adb
xeenta/learning-ada
bd3edf0c9e8b8eff814ffd89b040f488b80a7d5b
[ "MIT" ]
null
null
null
src/004/dynamic_test.adb
xeenta/learning-ada
bd3edf0c9e8b8eff814ffd89b040f488b80a7d5b
[ "MIT" ]
null
null
null
src/004/dynamic_test.adb
xeenta/learning-ada
bd3edf0c9e8b8eff814ffd89b040f488b80a7d5b
[ "MIT" ]
null
null
null
with Ada.Text_IO; use Ada.Text_IO; with Ada.Strings.Unbounded; with Ada.Calendar; use Ada.Calendar; procedure Dynamic_Test is subtype Odd_Number is Integer with Dynamic_Predicate => Odd_Number mod 2 /= 0; A_Number : Odd_Number := 1; -- despite the procedure name, I've used this source to test -- Static_Precidate too. -- This is taken from the manual type Animal is (Bear, Cat, Dog, Horse, Wolf, Rabbit); subtype Pet is Animal with Static_Predicate => Pet in Cat | Dog | Horse; -- gcc 4.9.2 won't compile this, even in Ada 2012 mode: then I am -- using an older version. subtype Pet2 is Animal with Static_Predicate => (case Pet2 is when Cat | Dog | Horse | Rabbit => True, when Bear | Wolf => False); My_Pet : constant Pet := Dog; My_Petty : constant Pet2 := Rabbit; package SU renames Ada.Strings.Unbounded; subtype U_String is SU.Unbounded_String; function Us (S : String) return U_String renames SU.To_Unbounded_String; type Person is record Name : U_String; Surname : U_String; Birthday : Time; Deathday : Time; Alive : Boolean; Married : Boolean; end record with Dynamic_Predicate => Person.Alive or else Person.Birthday < Person.Deathday; Aldo : Person := ( Name => Us ("Al"), Surname => Us ("Pachinko"), Birthday => Time_Of (2018, 1, 20), Deathday => Time_Of (2017, 1, 20), Alive => True, Married => False ); Copy_Of_Aldo : Person; procedure Massage_Person (A_Person : in Person) is begin Put_Line ("Entering massage box"); Put_Line ("Massaging Mr/Ms " & SU.To_String (A_Person.Surname)); end Massage_Person; begin A_Number := A_Number + 2; Put_Line (Integer'Image (A_Number)); -- buying a new pet... breaks the static_predicate --My_Pet := Bear; Put_Line (Pet'Image (My_Pet)); Put_Line (Pet2'Image (My_Petty)); Put_Line ("Playing with Al"); Aldo.Alive := False; -- comment/uncomment lines according to what you want to try. -- Aldo.Deathday := Time_Of (2019, 1, 19); Massage_Person (Aldo); -- checking dynamic pred --Copy_Of_Aldo := Aldo; Put_Line ("END...?"); Aldo.Alive := True; if Aldo.Alive then Put_Line ("Al is alive!"); end if; --Aldo := (Name => Us ("Aldebaran"), -- Surname => Us ("Pax"), -- Birthday => Aldo.Birthday, -- Deathday => Aldo.Deathday, -- Alive => False, -- Married => True); --Aldo.Alive := True; Put_Line ("Real END"); end Dynamic_Test;
30.902174
75
0.569821
4d4b80dbec764eb2ab4562ecaf1732ad2c5afc9a
5,986
adb
Ada
source/xml/sax/xml-sax-simple_readers-analyzer.adb
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
24
2016-11-29T06:59:41.000Z
2021-08-30T11:55:16.000Z
source/xml/sax/xml-sax-simple_readers-analyzer.adb
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
2
2019-01-16T05:15:20.000Z
2019-02-03T10:03:32.000Z
source/xml/sax/xml-sax-simple_readers-analyzer.adb
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
4
2017-07-18T07:11:05.000Z
2020-06-21T03:02:25.000Z
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- XML Processor -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2010-2017, 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 XML.SAX.Simple_Readers.Callbacks; package body XML.SAX.Simple_Readers.Analyzer is use Matreshka.Internals.XML; use Matreshka.Internals.XML.Element_Tables; use Matreshka.Internals.XML.Entity_Tables; --------------------------------------- -- Analyze_Document_Type_Declaration -- --------------------------------------- procedure Analyze_Document_Type_Declaration (Self : in out Simple_Reader'Class) is Current : Entity_Identifier; Current_Element : Element_Identifier; begin if Self.Validation.Enabled then Current := First_Entity (Self.Entities); while Current /= No_Entity loop -- [XML 4.2.2 VC: Notation Declared] -- -- "The Name MUST match the declared name of a notation." -- -- Check whether entity is unparsed and its notation is declared. if Is_External_Unparsed_General_Entity (Self.Entities, Current) and then Symbol_Tables.Notation (Self.Symbols, Notation (Self.Entities, Current)) = No_Notation then Callbacks.Call_Error (Self, League.Strings.To_Universal_String ("[XML 4.2.2 VC: Notation Declared]" & " notation name must match the declared name of a" & " notation")); end if; Next_Entity (Self.Entities, Current); end loop; end if; -- [XML 3.3] Attribute List Declaration -- -- "The Name in the AttlistDecl rule is the type of an element. At user -- option, an XML processor MAY issue a warning if attributes are -- declared for an element type not itself declared, but this is not an -- error. The Name in the AttDef rule is the name of the attribute." -- -- Check whether element is not declared and has declared attributes. Current_Element := First_Element (Self.Elements); while Current_Element /= No_Element loop if not Is_Declared (Self.Elements, Current_Element) and Is_Attributes_Declared (Self.Elements, Current_Element) then Callbacks.Call_Warning (Self, League.Strings.To_Universal_String ("[XML 3.3]" & " attribute list declaration for element type not itself" & " declared")); end if; Next_Element (Self.Elements, Current_Element); end loop; end Analyze_Document_Type_Declaration; end XML.SAX.Simple_Readers.Analyzer;
50.728814
78
0.474942
128a6744223b38986d10ec9f616f4c81525af5ac
5,457
adb
Ada
4-high/gel/source/joint/gel-cone_twist_joint.adb
charlie5/lace
e9b7dc751d500ff3f559617a6fc3089ace9dc134
[ "0BSD" ]
20
2015-11-04T09:23:59.000Z
2022-01-14T10:21:42.000Z
4-high/gel/source/joint/gel-cone_twist_joint.adb
charlie5/lace-alire
9ace9682cf4daac7adb9f980c2868d6225b8111c
[ "0BSD" ]
2
2015-11-04T17:05:56.000Z
2015-12-08T03:16:13.000Z
4-high/gel/source/joint/gel-cone_twist_joint.adb
charlie5/lace-alire
9ace9682cf4daac7adb9f980c2868d6225b8111c
[ "0BSD" ]
1
2015-12-07T12:53:52.000Z
2015-12-07T12:53:52.000Z
with physics.Object; package body gel.cone_twist_Joint is procedure define (Self : access Item; in_Space : in std_physics.Space.view; Sprite_A, Sprite_B : access gel.Sprite.item'Class; Frame_A, Frame_B : in Matrix_4x4) is A_Frame : aliased constant Matrix_4x4 := Frame_A; B_Frame : aliased constant Matrix_4x4 := Frame_B; type Joint_cast is access all gel.Joint.item; sprite_A_Solid, sprite_B_Solid : std_physics.Object.view; begin if Sprite_A /= null then sprite_A_Solid := standard.physics.Object.view (Sprite_A.Solid); end if; if Sprite_B /= null then sprite_B_Solid := standard.physics.Object.view (Sprite_B.Solid); end if; Joint.define (Joint_cast (Self), Sprite_A, Sprite_B); -- Define base class. Self.Physics := in_Space.new_DoF6_Joint (sprite_A_Solid, sprite_B_Solid, A_Frame, B_Frame); end define; procedure define (Self : access Item; in_Space : in std_physics.Space.view; Sprite_A, Sprite_B : access gel.Sprite.item'Class; pivot_Anchor : in Vector_3; pivot_Axis : in Matrix_3x3) is use linear_Algebra_3D; pivot_in_A : constant Vector_3 := pivot_Anchor - Sprite_A.Site; pivot_in_B : constant Vector_3 := pivot_Anchor - Sprite_B.Site; Frame_A : constant Matrix_4x4 := to_transform_Matrix (pivot_Axis, pivot_in_A); Frame_B : constant Matrix_4x4 := to_transform_Matrix (pivot_Axis, pivot_in_B); begin Self.define (in_Space, Sprite_A, Sprite_B, Frame_A, Frame_B); end define; overriding procedure destroy (Self : in out Item) is begin raise Error with "TODO"; end destroy; -------------- --- Attributes -- overriding function Frame_A (Self : in Item) return Matrix_4x4 is begin return Self.Physics.Frame_A; end Frame_A; overriding function Frame_B (Self : in Item) return Matrix_4x4 is begin return Self.Physics.Frame_B; end Frame_B; overriding procedure Frame_A_is (Self : in out Item; Now : in Matrix_4x4) is begin Self.Physics.Frame_A_is (Now); end Frame_A_is; overriding procedure Frame_B_is (Self : in out Item; Now : in Matrix_4x4) is begin Self.Physics.Frame_B_is (Now); end Frame_B_is; overriding function Physics (Self : in Item) return gel.Joint.Physics_view is begin return joint.Physics_view (Self.Physics); end Physics; overriding function Degrees_of_freedom (Self : in Item) return joint.Degree_of_freedom is pragma unreferenced (Self); begin return 6; end Degrees_of_freedom; -- Bounds - limits the range of motion for a Degree of freedom. -- overriding function is_Bound (Self : in Item; for_Degree : in joint.Degree_of_freedom) return Boolean is begin if for_Degree in Sway .. Surge then return False; end if; return Self.Physics.is_Limited (for_Degree); end is_Bound; overriding function low_Bound (Self : access Item; for_Degree : in joint.Degree_of_freedom) return Real is begin case for_Degree is when Sway .. Surge => raise Error with "Unhandled Degree of freedom:" & for_Degree'Image; when Pitch .. Roll => return Self.Physics.lower_Limit (for_Degree); end case; end low_Bound; overriding procedure low_Bound_is (Self : access Item; for_Degree : in joint.Degree_of_freedom; Now : in Real) is begin Self.Physics.lower_Limit_is (Now, for_Degree); end low_Bound_is; overriding function high_Bound (Self : access Item; for_Degree : in joint.Degree_of_freedom) return Real is begin case for_Degree is when Sway .. Surge => raise Error with "Unhandled Degree of freedom:" & for_Degree'Image; when Pitch .. Roll => return Self.Physics.upper_Limit (for_Degree); end case; end high_Bound; overriding procedure high_Bound_is (Self : access Item; for_Degree : in joint.Degree_of_freedom; Now : in Real) is begin Self.Physics.upper_Limit_is (Now, for_Degree); end high_Bound_is; ---------- --- Extent -- overriding function Extent (Self : in Item; for_Degree : in joint.Degree_of_freedom) return Real is begin if for_Degree in Sway .. Surge then raise Error with "Unhandled Degree of freedom:" & for_Degree'Image; end if; return Self.Physics.Extent (for_Degree); end Extent; ------------------ --- Motor Velocity -- overriding procedure Velocity_is (Self : in Item; for_Degree : in joint.Degree_of_freedom; Now : in Real) is begin Self.Physics.Velocity_is (Now, for_Degree); end Velocity_is; end gel.cone_twist_Joint;
25.985714
107
0.588419
31fd9533f951724fc38e43acc8d2d8b0b56ffc9a
18,894
adb
Ada
source/amf/ocl/amf-internals-ocl_variables.adb
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
24
2016-11-29T06:59:41.000Z
2021-08-30T11:55:16.000Z
source/amf/ocl/amf-internals-ocl_variables.adb
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
2
2019-01-16T05:15:20.000Z
2019-02-03T10:03:32.000Z
source/amf/ocl/amf-internals-ocl_variables.adb
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
4
2017-07-18T07:11:05.000Z
2020-06-21T03:02:25.000Z
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Ada Modeling Framework -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2012, Vadim Godunko <[email protected]> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ -- This file is generated, don't edit it. ------------------------------------------------------------------------------ with AMF.Elements; with AMF.Internals.Element_Collections; with AMF.Internals.Helpers; with AMF.Internals.Tables.OCL_Attributes; with AMF.OCL.Ocl_Expressions; with AMF.UML.Comments.Collections; with AMF.UML.Dependencies.Collections; with AMF.UML.Elements.Collections; with AMF.UML.Named_Elements; with AMF.UML.Namespaces.Collections; with AMF.UML.Packages.Collections; with AMF.UML.Parameters; with AMF.UML.String_Expressions; with AMF.UML.Types; with AMF.Visitors.OCL_Iterators; with AMF.Visitors.OCL_Visitors; with League.Strings.Internals; with Matreshka.Internals.Strings; package body AMF.Internals.OCL_Variables is ------------------------- -- Get_Init_Expression -- ------------------------- overriding function Get_Init_Expression (Self : not null access constant OCL_Variable_Proxy) return AMF.OCL.Ocl_Expressions.OCL_Ocl_Expression_Access is begin return AMF.OCL.Ocl_Expressions.OCL_Ocl_Expression_Access (AMF.Internals.Helpers.To_Element (AMF.Internals.Tables.OCL_Attributes.Internal_Get_Init_Expression (Self.Element))); end Get_Init_Expression; ------------------------- -- Set_Init_Expression -- ------------------------- overriding procedure Set_Init_Expression (Self : not null access OCL_Variable_Proxy; To : AMF.OCL.Ocl_Expressions.OCL_Ocl_Expression_Access) is begin AMF.Internals.Tables.OCL_Attributes.Internal_Set_Init_Expression (Self.Element, AMF.Internals.Helpers.To_Element (AMF.Elements.Element_Access (To))); end Set_Init_Expression; ------------------------------- -- Get_Represented_Parameter -- ------------------------------- overriding function Get_Represented_Parameter (Self : not null access constant OCL_Variable_Proxy) return AMF.UML.Parameters.UML_Parameter_Access is begin return AMF.UML.Parameters.UML_Parameter_Access (AMF.Internals.Helpers.To_Element (AMF.Internals.Tables.OCL_Attributes.Internal_Get_Represented_Parameter (Self.Element))); end Get_Represented_Parameter; ------------------------------- -- Set_Represented_Parameter -- ------------------------------- overriding procedure Set_Represented_Parameter (Self : not null access OCL_Variable_Proxy; To : AMF.UML.Parameters.UML_Parameter_Access) is begin AMF.Internals.Tables.OCL_Attributes.Internal_Set_Represented_Parameter (Self.Element, AMF.Internals.Helpers.To_Element (AMF.Elements.Element_Access (To))); end Set_Represented_Parameter; -------------- -- Get_Type -- -------------- overriding function Get_Type (Self : not null access constant OCL_Variable_Proxy) return AMF.UML.Types.UML_Type_Access is begin return AMF.UML.Types.UML_Type_Access (AMF.Internals.Helpers.To_Element (AMF.Internals.Tables.OCL_Attributes.Internal_Get_Type (Self.Element))); end Get_Type; -------------- -- Set_Type -- -------------- overriding procedure Set_Type (Self : not null access OCL_Variable_Proxy; To : AMF.UML.Types.UML_Type_Access) is begin AMF.Internals.Tables.OCL_Attributes.Internal_Set_Type (Self.Element, AMF.Internals.Helpers.To_Element (AMF.Elements.Element_Access (To))); end Set_Type; --------------------------- -- Get_Client_Dependency -- --------------------------- overriding function Get_Client_Dependency (Self : not null access constant OCL_Variable_Proxy) return AMF.UML.Dependencies.Collections.Set_Of_UML_Dependency is begin return AMF.UML.Dependencies.Collections.Wrap (AMF.Internals.Element_Collections.Wrap (AMF.Internals.Tables.OCL_Attributes.Internal_Get_Client_Dependency (Self.Element))); end Get_Client_Dependency; -------------- -- Get_Name -- -------------- overriding function Get_Name (Self : not null access constant OCL_Variable_Proxy) return AMF.Optional_String is begin declare use type Matreshka.Internals.Strings.Shared_String_Access; Aux : constant Matreshka.Internals.Strings.Shared_String_Access := AMF.Internals.Tables.OCL_Attributes.Internal_Get_Name (Self.Element); begin if Aux = null then return (Is_Empty => True); else return (False, League.Strings.Internals.Create (Aux)); end if; end; end Get_Name; -------------- -- Set_Name -- -------------- overriding procedure Set_Name (Self : not null access OCL_Variable_Proxy; To : AMF.Optional_String) is begin if To.Is_Empty then AMF.Internals.Tables.OCL_Attributes.Internal_Set_Name (Self.Element, null); else AMF.Internals.Tables.OCL_Attributes.Internal_Set_Name (Self.Element, League.Strings.Internals.Internal (To.Value)); end if; end Set_Name; ------------------------- -- Get_Name_Expression -- ------------------------- overriding function Get_Name_Expression (Self : not null access constant OCL_Variable_Proxy) return AMF.UML.String_Expressions.UML_String_Expression_Access is begin return AMF.UML.String_Expressions.UML_String_Expression_Access (AMF.Internals.Helpers.To_Element (AMF.Internals.Tables.OCL_Attributes.Internal_Get_Name_Expression (Self.Element))); end Get_Name_Expression; ------------------------- -- Set_Name_Expression -- ------------------------- overriding procedure Set_Name_Expression (Self : not null access OCL_Variable_Proxy; To : AMF.UML.String_Expressions.UML_String_Expression_Access) is begin AMF.Internals.Tables.OCL_Attributes.Internal_Set_Name_Expression (Self.Element, AMF.Internals.Helpers.To_Element (AMF.Elements.Element_Access (To))); end Set_Name_Expression; ------------------- -- Get_Namespace -- ------------------- overriding function Get_Namespace (Self : not null access constant OCL_Variable_Proxy) return AMF.UML.Namespaces.UML_Namespace_Access is begin return AMF.UML.Namespaces.UML_Namespace_Access (AMF.Internals.Helpers.To_Element (AMF.Internals.Tables.OCL_Attributes.Internal_Get_Namespace (Self.Element))); end Get_Namespace; ------------------------ -- Get_Qualified_Name -- ------------------------ overriding function Get_Qualified_Name (Self : not null access constant OCL_Variable_Proxy) return AMF.Optional_String is begin declare use type Matreshka.Internals.Strings.Shared_String_Access; Aux : constant Matreshka.Internals.Strings.Shared_String_Access := AMF.Internals.Tables.OCL_Attributes.Internal_Get_Qualified_Name (Self.Element); begin if Aux = null then return (Is_Empty => True); else return (False, League.Strings.Internals.Create (Aux)); end if; end; end Get_Qualified_Name; -------------------- -- Get_Visibility -- -------------------- overriding function Get_Visibility (Self : not null access constant OCL_Variable_Proxy) return AMF.UML.Optional_UML_Visibility_Kind is begin return AMF.Internals.Tables.OCL_Attributes.Internal_Get_Visibility (Self.Element); end Get_Visibility; -------------------- -- Set_Visibility -- -------------------- overriding procedure Set_Visibility (Self : not null access OCL_Variable_Proxy; To : AMF.UML.Optional_UML_Visibility_Kind) is begin AMF.Internals.Tables.OCL_Attributes.Internal_Set_Visibility (Self.Element, To); end Set_Visibility; ----------------------- -- Get_Owned_Comment -- ----------------------- overriding function Get_Owned_Comment (Self : not null access constant OCL_Variable_Proxy) return AMF.UML.Comments.Collections.Set_Of_UML_Comment is begin return AMF.UML.Comments.Collections.Wrap (AMF.Internals.Element_Collections.Wrap (AMF.Internals.Tables.OCL_Attributes.Internal_Get_Owned_Comment (Self.Element))); end Get_Owned_Comment; ----------------------- -- Get_Owned_Element -- ----------------------- overriding function Get_Owned_Element (Self : not null access constant OCL_Variable_Proxy) return AMF.UML.Elements.Collections.Set_Of_UML_Element is begin return AMF.UML.Elements.Collections.Wrap (AMF.Internals.Element_Collections.Wrap (AMF.Internals.Tables.OCL_Attributes.Internal_Get_Owned_Element (Self.Element))); end Get_Owned_Element; --------------- -- Get_Owner -- --------------- overriding function Get_Owner (Self : not null access constant OCL_Variable_Proxy) return AMF.UML.Elements.UML_Element_Access is begin return AMF.UML.Elements.UML_Element_Access (AMF.Internals.Helpers.To_Element (AMF.Internals.Tables.OCL_Attributes.Internal_Get_Owner (Self.Element))); end Get_Owner; -------------------- -- All_Namespaces -- -------------------- overriding function All_Namespaces (Self : not null access constant OCL_Variable_Proxy) return AMF.UML.Namespaces.Collections.Ordered_Set_Of_UML_Namespace is begin -- Generated stub: replace with real body! pragma Compile_Time_Warning (Standard.True, "All_Namespaces unimplemented"); raise Program_Error with "Unimplemented procedure OCL_Variable_Proxy.All_Namespaces"; return All_Namespaces (Self); end All_Namespaces; ------------------------- -- All_Owning_Packages -- ------------------------- overriding function All_Owning_Packages (Self : not null access constant OCL_Variable_Proxy) return AMF.UML.Packages.Collections.Set_Of_UML_Package is begin -- Generated stub: replace with real body! pragma Compile_Time_Warning (Standard.True, "All_Owning_Packages unimplemented"); raise Program_Error with "Unimplemented procedure OCL_Variable_Proxy.All_Owning_Packages"; return All_Owning_Packages (Self); end All_Owning_Packages; ----------------------------- -- Is_Distinguishable_From -- ----------------------------- overriding function Is_Distinguishable_From (Self : not null access constant OCL_Variable_Proxy; N : AMF.UML.Named_Elements.UML_Named_Element_Access; Ns : AMF.UML.Namespaces.UML_Namespace_Access) return Boolean is begin -- Generated stub: replace with real body! pragma Compile_Time_Warning (Standard.True, "Is_Distinguishable_From unimplemented"); raise Program_Error with "Unimplemented procedure OCL_Variable_Proxy.Is_Distinguishable_From"; return Is_Distinguishable_From (Self, N, Ns); end Is_Distinguishable_From; --------------- -- Namespace -- --------------- overriding function Namespace (Self : not null access constant OCL_Variable_Proxy) return AMF.UML.Namespaces.UML_Namespace_Access is begin -- Generated stub: replace with real body! pragma Compile_Time_Warning (Standard.True, "Namespace unimplemented"); raise Program_Error with "Unimplemented procedure OCL_Variable_Proxy.Namespace"; return Namespace (Self); end Namespace; -------------------- -- Qualified_Name -- -------------------- overriding function Qualified_Name (Self : not null access constant OCL_Variable_Proxy) return League.Strings.Universal_String is begin -- Generated stub: replace with real body! pragma Compile_Time_Warning (Standard.True, "Qualified_Name unimplemented"); raise Program_Error with "Unimplemented procedure OCL_Variable_Proxy.Qualified_Name"; return Qualified_Name (Self); end Qualified_Name; --------------- -- Separator -- --------------- overriding function Separator (Self : not null access constant OCL_Variable_Proxy) return League.Strings.Universal_String is begin -- Generated stub: replace with real body! pragma Compile_Time_Warning (Standard.True, "Separator unimplemented"); raise Program_Error with "Unimplemented procedure OCL_Variable_Proxy.Separator"; return Separator (Self); end Separator; ------------------------ -- All_Owned_Elements -- ------------------------ overriding function All_Owned_Elements (Self : not null access constant OCL_Variable_Proxy) return AMF.UML.Elements.Collections.Set_Of_UML_Element is begin -- Generated stub: replace with real body! pragma Compile_Time_Warning (Standard.True, "All_Owned_Elements unimplemented"); raise Program_Error with "Unimplemented procedure OCL_Variable_Proxy.All_Owned_Elements"; return All_Owned_Elements (Self); end All_Owned_Elements; ------------------- -- Must_Be_Owned -- ------------------- overriding function Must_Be_Owned (Self : not null access constant OCL_Variable_Proxy) return Boolean is begin -- Generated stub: replace with real body! pragma Compile_Time_Warning (Standard.True, "Must_Be_Owned unimplemented"); raise Program_Error with "Unimplemented procedure OCL_Variable_Proxy.Must_Be_Owned"; return Must_Be_Owned (Self); end Must_Be_Owned; ------------------- -- Enter_Element -- ------------------- overriding procedure Enter_Element (Self : not null access constant OCL_Variable_Proxy; Visitor : in out AMF.Visitors.Abstract_Visitor'Class; Control : in out AMF.Visitors.Traverse_Control) is begin if Visitor in AMF.Visitors.OCL_Visitors.OCL_Visitor'Class then AMF.Visitors.OCL_Visitors.OCL_Visitor'Class (Visitor).Enter_Variable (AMF.OCL.Variables.OCL_Variable_Access (Self), Control); end if; end Enter_Element; ------------------- -- Leave_Element -- ------------------- overriding procedure Leave_Element (Self : not null access constant OCL_Variable_Proxy; Visitor : in out AMF.Visitors.Abstract_Visitor'Class; Control : in out AMF.Visitors.Traverse_Control) is begin if Visitor in AMF.Visitors.OCL_Visitors.OCL_Visitor'Class then AMF.Visitors.OCL_Visitors.OCL_Visitor'Class (Visitor).Leave_Variable (AMF.OCL.Variables.OCL_Variable_Access (Self), Control); end if; end Leave_Element; ------------------- -- Visit_Element -- ------------------- overriding procedure Visit_Element (Self : not null access constant OCL_Variable_Proxy; Iterator : in out AMF.Visitors.Abstract_Iterator'Class; Visitor : in out AMF.Visitors.Abstract_Visitor'Class; Control : in out AMF.Visitors.Traverse_Control) is begin if Iterator in AMF.Visitors.OCL_Iterators.OCL_Iterator'Class then AMF.Visitors.OCL_Iterators.OCL_Iterator'Class (Iterator).Visit_Variable (Visitor, AMF.OCL.Variables.OCL_Variable_Access (Self), Control); end if; end Visit_Element; end AMF.Internals.OCL_Variables;
36.474903
100
0.601037
4d0f4420d8cbe8f074369ea1cb1d2f60f20bf49f
5,844
adb
Ada
src/gnat/butil.adb
Letractively/ada-gen
d06d03821057f9177f2350e32dd09e467df08612
[ "Apache-2.0" ]
null
null
null
src/gnat/butil.adb
Letractively/ada-gen
d06d03821057f9177f2350e32dd09e467df08612
[ "Apache-2.0" ]
null
null
null
src/gnat/butil.adb
Letractively/ada-gen
d06d03821057f9177f2350e32dd09e467df08612
[ "Apache-2.0" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- B U T I L -- -- -- -- B o d y -- -- -- -- Copyright (C) 1992-2007, 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 Output; use Output; with Targparm; use Targparm; package body Butil is ---------------------- -- Is_Internal_Unit -- ---------------------- -- Note: the reason we do not use the Fname package for this function -- is that it would drag too much junk into the binder. function Is_Internal_Unit return Boolean is begin return Is_Predefined_Unit or else (Name_Len > 4 and then (Name_Buffer (1 .. 5) = "gnat%" or else Name_Buffer (1 .. 5) = "gnat.")) or else (OpenVMS_On_Target and then Name_Len > 3 and then (Name_Buffer (1 .. 4) = "dec%" or else Name_Buffer (1 .. 4) = "dec.")); end Is_Internal_Unit; ------------------------ -- Is_Predefined_Unit -- ------------------------ -- Note: the reason we do not use the Fname package for this function -- is that it would drag too much junk into the binder. function Is_Predefined_Unit return Boolean is begin return (Name_Len > 3 and then Name_Buffer (1 .. 4) = "ada.") or else (Name_Len > 6 and then Name_Buffer (1 .. 7) = "system.") or else (Name_Len > 10 and then Name_Buffer (1 .. 11) = "interfaces.") or else (Name_Len > 3 and then Name_Buffer (1 .. 4) = "ada%") or else (Name_Len > 8 and then Name_Buffer (1 .. 9) = "calendar%") or else (Name_Len > 9 and then Name_Buffer (1 .. 10) = "direct_io%") or else (Name_Len > 10 and then Name_Buffer (1 .. 11) = "interfaces%") or else (Name_Len > 13 and then Name_Buffer (1 .. 14) = "io_exceptions%") or else (Name_Len > 12 and then Name_Buffer (1 .. 13) = "machine_code%") or else (Name_Len > 13 and then Name_Buffer (1 .. 14) = "sequential_io%") or else (Name_Len > 6 and then Name_Buffer (1 .. 7) = "system%") or else (Name_Len > 7 and then Name_Buffer (1 .. 8) = "text_io%") or else (Name_Len > 20 and then Name_Buffer (1 .. 21) = "unchecked_conversion%") or else (Name_Len > 22 and then Name_Buffer (1 .. 23) = "unchecked_deallocation%") or else (Name_Len > 4 and then Name_Buffer (1 .. 5) = "gnat%") or else (Name_Len > 4 and then Name_Buffer (1 .. 5) = "gnat."); end Is_Predefined_Unit; ---------------- -- Uname_Less -- ---------------- function Uname_Less (U1, U2 : Unit_Name_Type) return Boolean is begin Get_Name_String (U1); declare U1_Name : constant String (1 .. Name_Len) := Name_Buffer (1 .. Name_Len); Min_Length : Natural; begin Get_Name_String (U2); if Name_Len < U1_Name'Last then Min_Length := Name_Len; else Min_Length := U1_Name'Last; end if; for I in 1 .. Min_Length loop if U1_Name (I) > Name_Buffer (I) then return False; elsif U1_Name (I) < Name_Buffer (I) then return True; end if; end loop; return U1_Name'Last < Name_Len; end; end Uname_Less; --------------------- -- Write_Unit_Name -- --------------------- procedure Write_Unit_Name (U : Unit_Name_Type) is begin Get_Name_String (U); Write_Str (Name_Buffer (1 .. Name_Len - 2)); if Name_Buffer (Name_Len) = 's' then Write_Str (" (spec)"); else Write_Str (" (body)"); end if; Name_Len := Name_Len + 5; end Write_Unit_Name; end Butil;
35.418182
78
0.446612
4dbe613fb0a7bfe251442dcb9e032b2a2cafcf03
1,768
ads
Ada
source/adam-block.ads
charlie5/aIDE
fab406dbcd9b72a4cb215ffebb05166c788d6365
[ "MIT" ]
3
2017-04-29T14:25:22.000Z
2017-09-29T10:15:28.000Z
source/adam-block.ads
charlie5/aIDE
fab406dbcd9b72a4cb215ffebb05166c788d6365
[ "MIT" ]
null
null
null
source/adam-block.ads
charlie5/aIDE
fab406dbcd9b72a4cb215ffebb05166c788d6365
[ "MIT" ]
null
null
null
with AdaM.Entity, AdaM.exception_Handler, Ada.Streams; package AdaM.Block is type Item is new Entity.Item with private; type View is access all Item'Class; procedure View_write (Stream : not null access Ada.Streams.Root_Stream_Type'Class; Self : in View); procedure View_read (Stream : not null access Ada.Streams.Root_Stream_Type'Class; Self : out View); -- Forge -- function new_Block (Name : in String := "") return Block.view; procedure free (Self : in out Block.view); procedure destruct (Self : in out Item); -- Attributes -- overriding function Id (Self : access Item) return AdaM.Id; overriding function Name (Self : in Item) return Identifier; overriding function to_Source (Self : in Item) return text_Vectors.Vector; function my_Declarations (Self : access Item) return Entity.Entities_View; function my_Statements (Self : access Item) return Entity.Entities_View; function my_Handlers (Self : access Item) return Entity.Entities_View; procedure add (Self : in out Item; the_Handler : in exception_Handler.view); procedure rid (Self : in out Item; the_Handler : in exception_Handler.view); private type Item is new Entity.Item with record Name : Text; my_Declarations : aliased AdaM.Entity.Entities; my_Statements : aliased AdaM.Entity.Entities; my_Handlers : aliased AdaM.Entity.Entities; end record; -- Streams -- for View'write use View_write; for View'read use View_read; end AdaM.Block;
26
93
0.618778
a13e806b57de9b8bdcca9a557f3613edd1f46861
4,068
ads
Ada
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-thread.ads
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-thread.ads
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-thread.ads
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- S Y S T E M . T H R E A D S -- -- -- -- S p e c -- -- -- -- Copyright (C) 1992-2020, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ -- This package provides facilities to register a thread to the runtime, -- and allocate its task specific datas. -- This package is currently implemented for: -- VxWorks AE653 rts-cert -- VxWorks AE653 rts-full (not rts-kernel) with Ada.Exceptions; with Ada.Unchecked_Conversion; with Interfaces.C; with System.Secondary_Stack; with System.Soft_Links; package System.Threads is package SST renames System.Secondary_Stack; type ATSD is limited private; -- Type of the Ada thread specific data. It contains datas needed -- by the GNAT runtime. type ATSD_Access is access ATSD; function From_Address is new Ada.Unchecked_Conversion (Address, ATSD_Access); subtype STATUS is Interfaces.C.int; -- Equivalent of the C type STATUS type t_id is new Interfaces.C.long; subtype Thread_Id is t_id; function Register (T : Thread_Id) return STATUS; -- Create the task specific data necessary for Ada language support -------------------------- -- Thread Body Handling -- -------------------------- -- The subprograms in this section are called from the process body -- wrapper in the APEX process registration package. procedure Thread_Body_Enter (Sec_Stack_Ptr : SST.SS_Stack_Ptr; Process_ATSD_Address : System.Address); -- Enter thread body, see above for details procedure Thread_Body_Leave; -- Leave thread body (normally), see above for details procedure Thread_Body_Exceptional_Exit (EO : Ada.Exceptions.Exception_Occurrence); -- Leave thread body (abnormally on exception), see above for details private type ATSD is new System.Soft_Links.TSD; end System.Threads;
43.741935
78
0.508358
06142d8be6cd4ca37afe0acbf657510875b5db88
32,639
adb
Ada
src/vl53l1x.adb
simonjwright/VL53L1X
f03fb8659c752f17977c3d5b0e384dcab57cbfae
[ "BSD-3-Clause" ]
null
null
null
src/vl53l1x.adb
simonjwright/VL53L1X
f03fb8659c752f17977c3d5b0e384dcab57cbfae
[ "BSD-3-Clause" ]
null
null
null
src/vl53l1x.adb
simonjwright/VL53L1X
f03fb8659c752f17977c3d5b0e384dcab57cbfae
[ "BSD-3-Clause" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2022, Simon Wright <[email protected]> -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions are -- -- met: -- -- 1. Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- 2. Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in -- -- the documentation and/or other materials provided with the -- -- distribution. -- -- 3. Neither the name of 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 STSW-IMG009, issue 3.5.1/UM2150 Rev 4. -- -- -- COPYRIGHT(c) 2021 STMicroelectronics -- ------------------------------------------------------------------------------ with Ada.Unchecked_Conversion; with System; with HAL; package body VL53L1X is package Registers is pragma Style_Checks (Off); pragma Warnings (Off, "is not referenced"); -- These values are copied from those derived from vl53l1x_api.h, -- except that the encoding of the C double-underscore as "_u_" -- has been replaced by a single underscore. VL53L1X_IMPLEMENTATION_VER_MAJOR : constant := 3; VL53L1X_IMPLEMENTATION_VER_MINOR : constant := 5; VL53L1X_IMPLEMENTATION_VER_SUB : constant := 1; VL53L1X_IMPLEMENTATION_VER_REVISION : constant := 8#000#; SOFT_RESET : constant := 16#0000#; VL53L1_I2C_SLAVE_DEVICE_ADDRESS : constant := 16#0001#; VL53L1_VHV_CONFIG_TIMEOUT_MACROP_LOOP_BOUND : constant := 16#0008#; ALGO_CROSSTALK_COMPENSATION_PLANE_OFFSET_KCPS : constant := 16#0016#; ALGO_CROSSTALK_COMPENSATION_X_PLANE_GRADIENT_KCPS : constant := 16#0018#; ALGO_CROSSTALK_COMPENSATION_Y_PLANE_GRADIENT_KCPS : constant := 16#001A#; ALGO_PART_TO_PART_RANGE_OFFSET_MM : constant := 16#001E#; MM_CONFIG_INNER_OFFSET_MM : constant := 16#0020#; MM_CONFIG_OUTER_OFFSET_MM : constant := 16#0022#; GPIO_HV_MUX_CTRL : constant := 16#0030#; GPIO_TIO_HV_STATUS : constant := 16#0031#; SYSTEM_INTERRUPT_CONFIG_GPIO : constant := 16#0046#; PHASECAL_CONFIG_TIMEOUT_MACROP : constant := 16#004B#; RANGE_CONFIG_TIMEOUT_MACROP_A_HI : constant := 16#005E#; RANGE_CONFIG_VCSEL_PERIOD_A : constant := 16#0060#; RANGE_CONFIG_VCSEL_PERIOD_B : constant := 16#0063#; RANGE_CONFIG_TIMEOUT_MACROP_B_HI : constant := 16#0061#; RANGE_CONFIG_TIMEOUT_MACROP_B_LO : constant := 16#0062#; RANGE_CONFIG_SIGMA_THRESH : constant := 16#0064#; RANGE_CONFIG_MIN_COUNT_RATE_RTN_LIMIT_MCPS : constant := 16#0066#; RANGE_CONFIG_VALID_PHASE_HIGH : constant := 16#0069#; VL53L1_SYSTEM_INTERMEASUREMENT_PERIOD : constant := 16#006C#; SYSTEM_THRESH_HIGH : constant := 16#0072#; SYSTEM_THRESH_LOW : constant := 16#0074#; SD_CONFIG_WOI_SD0 : constant := 16#0078#; SD_CONFIG_INITIAL_PHASE_SD0 : constant := 16#007A#; ROI_CONFIG_USER_ROI_CENTRE_SPAD : constant := 16#007F#; ROI_CONFIG_USER_ROI_REQUESTED_GLOBAL_XY_SIZE : constant := 16#0080#; SYSTEM_SEQUENCE_CONFIG : constant := 16#0081#; VL53L1_SYSTEM_GROUPED_PARAMETER_HOLD : constant := 16#0082#; SYSTEM_INTERRUPT_CLEAR : constant := 16#0086#; SYSTEM_MODE_START : constant := 16#0087#; VL53L1_RESULT_RANGE_STATUS : constant := 16#0089#; VL53L1_RESULT_DSS_ACTUAL_EFFECTIVE_SPADS_SD0 : constant := 16#008C#; RESULT_AMBIENT_COUNT_RATE_MCPS_SD : constant := 16#0090#; VL53L1_RESULT_FINAL_CROSSTALK_CORRECTED_RANGE_MM_SD0 : constant := 16#0096#; VL53L1_RESULT_PEAK_SIGNAL_COUNT_RATE_CROSSTALK_CORRECTED_MCPS_SD0 : constant := 16#0098#; VL53L1_RESULT_OSC_CALIBRATE_VAL : constant := 16#00DE#; VL53L1_FIRMWARE_SYSTEM_STATUS : constant := 16#00E5#; VL53L1_IDENTIFICATION_MODEL_ID : constant := 16#010F#; VL53L1_ROI_CONFIG_MODE_ROI_CENTRE_SPAD : constant := 16#013E#; pragma Warnings (On, "is not referenced"); pragma Style_Checks (On); end Registers; use Registers; -- Scaling factor used in Get/Set_Inter_Measurement_Time. PLL_Factor : constant := 1.0466; -- Low-level device access procedures. procedure Read (This : in out VL53L1X_Ranging_Sensor; Index : HAL.UInt16; Data : out HAL.I2C.I2C_Data); procedure Read (This : in out VL53L1X_Ranging_Sensor; Index : HAL.UInt16; Data : out HAL.UInt16); procedure Read (This : in out VL53L1X_Ranging_Sensor; Index : HAL.UInt16; Data : out HAL.UInt32); procedure Write (This : in out VL53L1X_Ranging_Sensor; Index : HAL.UInt16; Data : HAL.I2C.I2C_Data); procedure Write (This : in out VL53L1X_Ranging_Sensor; Index : HAL.UInt16; Data : HAL.UInt16); procedure Write (This : in out VL53L1X_Ranging_Sensor; Index : HAL.UInt16; Data : HAL.UInt32); -- The VL53L1X is a big-endian device. Register addresses are two -- bytes wide. The data is mainly (arrays of) single bytes, but -- some is two bytes wide, some 4. subtype Two_Byte_Array is HAL.UInt8_Array (1 .. 2); function To_Device (Value : HAL.UInt16) return Two_Byte_Array; function From_Device (Value : Two_Byte_Array) return HAL.UInt16; subtype Four_Byte_Array is HAL.UInt8_Array (1 .. 4); function To_Device (Value : HAL.UInt32) return Four_Byte_Array; function From_Device (Value : Four_Byte_Array) return HAL.UInt32; ----------------- -- Boot_Device -- ----------------- procedure Boot_Device (This : in out VL53L1X_Ranging_Sensor; Loop_Interval_Ms : Positive := 10; Status : out Boot_Status) is I2C_Status : HAL.I2C.I2C_Status; use all type HAL.I2C.I2C_Status; begin -- Allow the VL53L1X to do its internal initialization. This.Timing.Delay_Milliseconds (100); Get_Device_Status : for J in 1 .. 10 loop -- We're going to do a low-level read using HAL.I2C -- directly, because we don't want to raise an exception if -- there's a failure. HAL.I2C.Master_Transmit (This => This.Port.all, Addr => This.I2C_Address, Data => To_Device (HAL.UInt16'(VL53L1_FIRMWARE_SYSTEM_STATUS)), Status => I2C_Status); exit Get_Device_Status when I2C_Status /= Ok; declare Buffer : HAL.UInt8_Array (1 .. 1); use type HAL.UInt8; begin HAL.I2C.Master_Receive (This => This.Port.all, Addr => This.I2C_Address, Data => Buffer, Status => I2C_Status); if I2C_Status = Ok and then Buffer (1) = 3 then -- '3' is undocumented; UM2150 says 1. This.State := Booted; exit Get_Device_Status; end if; end; This.Timing.Delay_Milliseconds (Loop_Interval_Ms); end loop Get_Device_Status; Status := (case I2C_Status is when Ok => Ok, when Err_Error => I2C_Error, when Err_Timeout => I2C_Timeout, when Busy => I2C_Busy); end Boot_Device; ------------------------ -- Set_Device_Address -- ------------------------ procedure Set_Device_Address (This : in out VL53L1X_Ranging_Sensor; Addr : HAL.I2C.I2C_Address) is use all type HAL.UInt8; begin Write (This, Index => VL53L1_I2C_SLAVE_DEVICE_ADDRESS, Data => (1 => Shift_Right (HAL.UInt8 (Addr), 1))); This.I2C_Address := Addr; end Set_Device_Address; ----------------- -- Sensor_Init -- ----------------- procedure Sensor_Init (This : in out VL53L1X_Ranging_Sensor) is pragma Style_Checks (Off); -- the continuation comment lines VL51L1X_DEFAULT_CONFIGURATION : constant HAL.I2C.I2C_Data (16#2d# .. 16#87#) := ( 16#00#, -- 0x2d : set bit 2 and 5 to 1 for fast plus mode -- (1MHz I2C), else don't touch 16#00#, -- 0x2e : bit 0 if I2C pulled up at 1.8V, else set bit -- 0 to 1 (pull up at AVDD) 16#00#, -- 0x2f : bit 0 if GPIO pulled up at 1.8V, else set -- bit 0 to 1 (pull up at AVDD) 16#01#, -- 0x30 : set bit 4 to 0 for active high interrupt and -- 1 for active low (bits 3:0 must be 0x1), use -- SetInterruptPolarity() 16#02#, -- 0x31 : bit 1 = interrupt depending on the polarity, -- use CheckForDataReady() 16#00#, -- 0x32 : not user-modifiable 16#02#, -- 0x33 : not user-modifiable 16#08#, -- 0x34 : not user-modifiable 16#00#, -- 0x35 : not user-modifiable 16#08#, -- 0x36 : not user-modifiable 16#10#, -- 0x37 : not user-modifiable 16#01#, -- 0x38 : not user-modifiable 16#01#, -- 0x39 : not user-modifiable 16#00#, -- 0x3a : not user-modifiable 16#00#, -- 0x3b : not user-modifiable 16#00#, -- 0x3c : not user-modifiable 16#00#, -- 0x3d : not user-modifiable 16#ff#, -- 0x3e : not user-modifiable 16#00#, -- 0x3f : not user-modifiable 16#0F#, -- 0x40 : not user-modifiable 16#00#, -- 0x41 : not user-modifiable 16#00#, -- 0x42 : not user-modifiable 16#00#, -- 0x43 : not user-modifiable 16#00#, -- 0x44 : not user-modifiable 16#00#, -- 0x45 : not user-modifiable 16#20#, -- 0x46 : interrupt configuration 0->level low -- detection, 1-> level high, 2-> Out of window, 3->In -- window, 0x20-> New sample ready , TBC 16#0b#, -- 0x47 : not user-modifiable 16#00#, -- 0x48 : not user-modifiable 16#00#, -- 0x49 : not user-modifiable 16#02#, -- 0x4a : not user-modifiable 16#0a#, -- 0x4b : not user-modifiable 16#21#, -- 0x4c : not user-modifiable 16#00#, -- 0x4d : not user-modifiable 16#00#, -- 0x4e : not user-modifiable 16#05#, -- 0x4f : not user-modifiable 16#00#, -- 0x50 : not user-modifiable 16#00#, -- 0x51 : not user-modifiable 16#00#, -- 0x52 : not user-modifiable 16#00#, -- 0x53 : not user-modifiable 16#c8#, -- 0x54 : not user-modifiable 16#00#, -- 0x55 : not user-modifiable 16#00#, -- 0x56 : not user-modifiable 16#38#, -- 0x57 : not user-modifiable 16#ff#, -- 0x58 : not user-modifiable 16#01#, -- 0x59 : not user-modifiable 16#00#, -- 0x5a : not user-modifiable 16#08#, -- 0x5b : not user-modifiable 16#00#, -- 0x5c : not user-modifiable 16#00#, -- 0x5d : not user-modifiable 16#01#, -- 0x5e : not user-modifiable 16#cc#, -- 0x5f : not user-modifiable 16#0f#, -- 0x60 : not user-modifiable 16#01#, -- 0x61 : not user-modifiable 16#f1#, -- 0x62 : not user-modifiable 16#0d#, -- 0x63 : not user-modifiable 16#01#, -- 0x64 : Sigma threshold MSB (mm in 14.2 format for -- MSB+LSB), use SetSigmaThreshold(), default value 90 -- mm 16#68#, -- 0x65 : Sigma threshold LSB 16#00#, -- 0x66 : Min count Rate MSB (MCPS in 9.7 format for -- MSB+LSB), use SetSignalThreshold() 16#80#, -- 0x67 : Min count Rate LSB 16#08#, -- 0x68 : not user-modifiable 16#b8#, -- 0x69 : not user-modifiable 16#00#, -- 0x6a : not user-modifiable 16#00#, -- 0x6b : not user-modifiable 16#00#, -- 0x6c : Intermeasurement period MSB, 32 bits -- register, use SetIntermeasurementInMs() 16#00#, -- 0x6d : Intermeasurement period 16#0f#, -- 0x6e : Intermeasurement period 16#89#, -- 0x6f : Intermeasurement period LSB 16#00#, -- 0x70 : not user-modifiable 16#00#, -- 0x71 : not user-modifiable 16#00#, -- 0x72 : distance threshold high MSB (in mm, -- MSB+LSB), use SetD:tanceThreshold() 16#00#, -- 0x73 : distance threshold high LSB 16#00#, -- 0x74 : distance threshold low MSB ( in mm, -- MSB+LSB), use SetD:tanceThreshold() 16#00#, -- 0x75 : distance threshold low LSB 16#00#, -- 0x76 : not user-modifiable 16#01#, -- 0x77 : not user-modifiable 16#0f#, -- 0x78 : not user-modifiable 16#0d#, -- 0x79 : not user-modifiable 16#0e#, -- 0x7a : not user-modifiable 16#0e#, -- 0x7b : not user-modifiable 16#00#, -- 0x7c : not user-modifiable 16#00#, -- 0x7d : not user-modifiable 16#02#, -- 0x7e : not user-modifiable 16#c7#, -- 0x7f : ROI center, use SetROI() 16#ff#, -- 0x80 : XY ROI (X=Width, Y=Height), use SetROI() 16#9B#, -- 0x81 : not user-modifiable 16#00#, -- 0x82 : not user-modifiable 16#00#, -- 0x83 : not user-modifiable 16#00#, -- 0x84 : not user-modifiable 16#01#, -- 0x85 : not user-modifiable 16#00#, -- 0x86 : clear interrupt, use ClearInterrupt() 16#00# -- 0x87 : start ranging, use StartRanging() or -- StopRanging(), If you want an automatic start after -- VL53L1X_init() call, put 0x40 in location 0x87 ); pragma Style_Checks (On); begin Write (This, Index => HAL.UInt16 (VL51L1X_DEFAULT_CONFIGURATION'First), Data => VL51L1X_DEFAULT_CONFIGURATION); This.State := Initialized; -- needed here to do the first measurement. -- Discard the first measurement. Start_Ranging (This); Wait_For_Measurement (This); Clear_Interrupt (This); Stop_Ranging (This); -- I think this is to do with temperature? Write (This, Index => VL53L1_VHV_CONFIG_TIMEOUT_MACROP_LOOP_BOUND, Data => (1 => 16#09#)); Write (This, Index => 16#0b#, Data => (1 => 16#00#)); end Sensor_Init; ----------------------- -- Get_Distance_Mode -- ----------------------- function Get_Distance_Mode (This : in out VL53L1X_Ranging_Sensor) return Distance_Mode is Buffer : HAL.I2C.I2C_Data (1 .. 1); begin Read (This, Index => PHASECAL_CONFIG_TIMEOUT_MACROP, Data => Buffer); return (case Buffer (1) is when 16#14# => Short, when 16#0a# => Long, when others => raise VL53L1X_Error with "invalid distance mode value"); end Get_Distance_Mode; ----------------------- -- Set_Distance_Mode -- ----------------------- procedure Set_Distance_Mode (This : in out VL53L1X_Ranging_Sensor; Mode : Distance_Mode := Long) is Budget : constant Measurement_Budget := Get_Measurement_Budget (This); begin case Mode is when Short => Write (This, Index => PHASECAL_CONFIG_TIMEOUT_MACROP, Data => (1 => 16#14#)); Write (This, Index => RANGE_CONFIG_VCSEL_PERIOD_A, Data => (1 => 16#07#)); Write (This, Index => RANGE_CONFIG_VCSEL_PERIOD_B, Data => (1 => 16#05#)); Write (This, Index => RANGE_CONFIG_VALID_PHASE_HIGH, Data => (1 => 16#38#)); Write (This, Index => SD_CONFIG_WOI_SD0, Data => HAL.UInt16'(16#0705#)); Write (This, Index => SD_CONFIG_INITIAL_PHASE_SD0, Data => HAL.UInt16'(16#0606#)); when Long => Write (This, Index => PHASECAL_CONFIG_TIMEOUT_MACROP, Data => (1 => 16#0a#)); Write (This, Index => RANGE_CONFIG_VCSEL_PERIOD_A, Data => (1 => 16#0f#)); Write (This, Index => RANGE_CONFIG_VCSEL_PERIOD_B, Data => (1 => 16#0d#)); Write (This, Index => RANGE_CONFIG_VALID_PHASE_HIGH, Data => (1 => 16#b8#)); Write (This, Index => SD_CONFIG_WOI_SD0, Data => HAL.UInt16'(16#0f0d#)); Write (This, Index => SD_CONFIG_INITIAL_PHASE_SD0, Data => HAL.UInt16'(16#0e0e#)); end case; Set_Measurement_Budget (This, Budget); end Set_Distance_Mode; -------------------------------- -- Get_Inter_Measurement_Time -- -------------------------------- function Get_Inter_Measurement_Time (This : in out VL53L1X_Ranging_Sensor) return Milliseconds is Tmp : HAL.UInt32; Raw_Interval : Float; Clock_PLL : HAL.UInt16; use all type HAL.UInt16; begin Read (This, Index => VL53L1_SYSTEM_INTERMEASUREMENT_PERIOD, Data => Tmp); Raw_Interval := Float (Tmp); Read (This, Index => VL53L1_RESULT_OSC_CALIBRATE_VAL, Data => Clock_PLL); return Natural (Raw_Interval / (Float (Clock_PLL and 16#03ff#) * PLL_Factor)); end Get_Inter_Measurement_Time; ---------------------------- -- Get_Measurement_Budget -- ---------------------------- function Get_Measurement_Budget (This : in out VL53L1X_Ranging_Sensor) return Measurement_Budget is Raw : HAL.UInt16; begin Read (This, Index => RANGE_CONFIG_TIMEOUT_MACROP_A_HI, Data => Raw); return (case Raw is when 16#001d# => 15, when 16#0051# | 16#001e# => 20, when 16#00d6# | 16#0060# => 33, when 16#01ae# | 16#00ad# => 50, when 16#02e1# | 16#01cc# => 100, when 16#03e1# | 16#02d9# => 200, when 16#0591# | 16#048f# => 500, when others => raise VL53L1X_Error with "invalid measurement budget" & Raw'Image); end Get_Measurement_Budget; -------------------------------- -- Set_Inter_Measurement_Time -- -------------------------------- procedure Set_Inter_Measurement_Time (This : in out VL53L1X_Ranging_Sensor; Interval : Milliseconds) is Clock_PLL : HAL.UInt16; Raw_Interval : HAL.UInt32; use all type HAL.UInt16; begin Read (This, Index => VL53L1_RESULT_OSC_CALIBRATE_VAL, Data => Clock_PLL); Raw_Interval := HAL.UInt32 (Float (Clock_PLL and 16#03ff#) * Float (Interval) * PLL_Factor); Write (This, Index => VL53L1_SYSTEM_INTERMEASUREMENT_PERIOD, Data => Raw_Interval); end Set_Inter_Measurement_Time; ---------------------------- -- Set_Measurement_Budget -- ---------------------------- procedure Set_Measurement_Budget (This : in out VL53L1X_Ranging_Sensor; Budget : Measurement_Budget := 100) is -- The next two declarations make it easier to implement the -- limitation that the measurement budget can't be 15 in -- Long distance mode. subtype Measurement_Budget_For_Long is Measurement_Budget range 20 .. 500; Long_Measurement_Budget_Ms : constant Measurement_Budget_For_Long := Measurement_Budget_For_Long (Budget); begin case Get_Distance_Mode (This) is when Short => Write (This, Index => RANGE_CONFIG_TIMEOUT_MACROP_A_HI, Data => HAL.UInt16'(case Budget is when 15 => 16#001d#, when 20 => 16#0051#, when 33 => 16#00d6#, when 50 => 16#01ae#, when 100 => 16#02e1#, when 200 => 16#03e1#, when 500 => 16#0591#)); Write (This, Index => RANGE_CONFIG_TIMEOUT_MACROP_B_HI, Data => HAL.UInt16'(case Budget is when 15 => 16#0027#, when 20 => 16#006e#, when 33 => 16#006e#, when 50 => 16#01e8#, when 100 => 16#0388#, when 200 => 16#0496#, when 500 => 16#05c1#)); when Long => Write (This, Index => RANGE_CONFIG_TIMEOUT_MACROP_A_HI, Data => HAL.UInt16'(case Long_Measurement_Budget_Ms is when 20 => 16#001e#, when 33 => 16#0060#, when 50 => 16#00ad#, when 100 => 16#01cc#, when 200 => 16#02d9#, when 500 => 16#048f#)); Write (This, Index => RANGE_CONFIG_TIMEOUT_MACROP_B_HI, Data => HAL.UInt16'(case Long_Measurement_Budget_Ms is when 20 => 16#0022#, when 33 => 16#006e#, when 50 => 16#00c6#, when 100 => 16#01ea#, when 200 => 16#02f8#, when 500 => 16#04a4#)); end case; end Set_Measurement_Budget; ------------------- -- Start_Ranging -- ------------------- procedure Start_Ranging (This : in out VL53L1X_Ranging_Sensor) is begin Write (This, Index => SYSTEM_MODE_START, Data => (1 => 16#40#)); This.State := Ranging; end Start_Ranging; -------------------------- -- Wait_For_Measurement -- -------------------------- procedure Wait_For_Measurement (This : in out VL53L1X_Ranging_Sensor; Loop_Interval_Ms : Positive := 10) is begin loop exit when Is_Measurement_Ready (This); This.Timing.Delay_Milliseconds (Loop_Interval_Ms); end loop; end Wait_For_Measurement; -------------------------- -- Is_Measurement_Ready -- -------------------------- function Is_Measurement_Ready (This : in out VL53L1X_Ranging_Sensor) return Boolean is -- We need to compare the data status and the interrupt -- polarity; haven't provided any interface to interrupt -- polarity yet, so do it hre. Buffer : HAL.I2C.I2C_Data (1 .. 1); Polarity : Boolean; Availability : Boolean; use type HAL.UInt8; begin Read (This, Index => GPIO_HV_MUX_CTRL, Data => Buffer); Polarity := (Buffer (1) and 16#10#) = 0; Read (This, Index => GPIO_TIO_HV_STATUS, Data => Buffer); Availability := (Buffer (1) and 16#01#) = 1; return Availability = Polarity; end Is_Measurement_Ready; --------------------- -- Get_Measurement -- --------------------- function Get_Measurement (This : in out VL53L1X_Ranging_Sensor) return Measurement is Buffer : HAL.I2C.I2C_Data (0 .. 16); use all type HAL.UInt8; Status : Ranging_Status; begin Read (This, Index => VL53L1_RESULT_RANGE_STATUS, Data => Buffer); Buffer (0) := Buffer (0) and 16#1f#; Status := (case Buffer (0) is when 4 => Signal_Failure, when 5 => Out_Of_Bounds, when 6 => Sigma_Failure, when 7 => Wraparound, when 9 => Ok, when others => raise VL53L1X_Error with "invalid status " & Buffer (0)'Image); return Result : Measurement (Status => Status) do if Status = Ok then Result.Distance := Millimetres (HAL.UInt16'(From_Device (Buffer (13 .. 14)))); end if; end return; end Get_Measurement; ------------------------------- -- Clear_Interrupt -- ------------------------------- procedure Clear_Interrupt (This : in out VL53L1X_Ranging_Sensor) is begin Write (This, Index => SYSTEM_INTERRUPT_CLEAR, Data => (1 => 16#01#)); end Clear_Interrupt; ------------------ -- Stop_Ranging -- ------------------ procedure Stop_Ranging (This : in out VL53L1X_Ranging_Sensor) is begin Write (This, Index => SYSTEM_MODE_START, Data => (1 => 16#00#)); This.State := Initialized; end Stop_Ranging; -- Local stuff. ---------- -- Read -- ---------- procedure Read (This : in out VL53L1X_Ranging_Sensor; Index : HAL.UInt16; Data : out HAL.I2C.I2C_Data) is I2C_Status : HAL.I2C.I2C_Status; use all type HAL.I2C.I2C_Status; begin HAL.I2C.Master_Transmit (This => This.Port.all, Addr => This.I2C_Address, Data => To_Device (Index), Status => I2C_Status); if I2C_Status /= Ok then raise VL53L1X_Error with "I2C write error during read: " & I2C_Status'Image; end if; HAL.I2C.Master_Receive (This => This.Port.all, Addr => This.I2C_Address, Data => Data, Status => I2C_Status); if I2C_Status /= Ok then raise VL53L1X_Error with "I2C read error: " & I2C_Status'Image; end if; end Read; procedure Read (This : in out VL53L1X_Ranging_Sensor; Index : HAL.UInt16; Data : out HAL.UInt16) is Buffer : HAL.I2C.I2C_Data (1 .. 2); begin Read (This, Index => Index, Data => Buffer); Data := From_Device (Buffer); end Read; procedure Read (This : in out VL53L1X_Ranging_Sensor; Index : HAL.UInt16; Data : out HAL.UInt32) is Buffer : HAL.I2C.I2C_Data (1 .. 4); begin Read (This, Index => Index, Data => Buffer); Data := From_Device (Buffer); end Read; ----------- -- Write -- ----------- procedure Write (This : in out VL53L1X_Ranging_Sensor; Index : HAL.UInt16; Data : HAL.I2C.I2C_Data) is use type HAL.I2C.I2C_Data; Buffer : constant HAL.I2C.I2C_Data (1 .. Data'Length + 2) := To_Device (Index) & Data; I2C_Status : HAL.I2C.I2C_Status; use all type HAL.I2C.I2C_Status; begin HAL.I2C.Master_Transmit (This => This.Port.all, Addr => This.I2C_Address, Data => Buffer, Status => I2C_Status); if I2C_Status /= Ok then raise VL53L1X_Error with "I2C write error: " & I2C_Status'Image; end if; end Write; procedure Write (This : in out VL53L1X_Ranging_Sensor; Index : HAL.UInt16; Data : HAL.UInt16) is begin Write (This, Index => Index, Data => To_Device (Data)); end Write; procedure Write (This : in out VL53L1X_Ranging_Sensor; Index : HAL.UInt16; Data : HAL.UInt32) is begin Write (This, Index => Index, Data => To_Device (Data)); end Write; --------------- -- To_Device -- --------------- function To_Device (Value : HAL.UInt16) return Two_Byte_Array is As_Bytes : Two_Byte_Array with Address => Value'Address; begin case System.Default_Bit_Order is when System.High_Order_First => return As_Bytes; when System.Low_Order_First => return (1 => As_Bytes (2), 2 => As_Bytes (1)); end case; end To_Device; function To_Device (Value : HAL.UInt32) return Four_Byte_Array is As_Bytes : Four_Byte_Array with Address => Value'Address; begin case System.Default_Bit_Order is when System.High_Order_First => return As_Bytes; when System.Low_Order_First => return (1 => As_Bytes (4), 2 => As_Bytes (3), 3 => As_Bytes (2), 4 => As_Bytes (1)); end case; end To_Device; ----------------- -- From_Device -- ----------------- function From_Device (Value : Two_Byte_Array) return HAL.UInt16 is function Convert is new Ada.Unchecked_Conversion (Two_Byte_Array, HAL.UInt16); begin case System.Default_Bit_Order is when System.High_Order_First => return Convert (Value); when System.Low_Order_First => return Convert ((1 => Value (2), 2 => Value (1))); end case; end From_Device; function From_Device (Value : Four_Byte_Array) return HAL.UInt32 is function Convert is new Ada.Unchecked_Conversion (Four_Byte_Array, HAL.UInt32); begin case System.Default_Bit_Order is when System.High_Order_First => return Convert (Value); when System.Low_Order_First => return Convert ((1 => Value (4), 2 => Value (3), 3 => Value (2), 4 => Value (1))); end case; end From_Device; end VL53L1X;
38.534829
95
0.518306
31422581cfa758fc801232e2681942800f5bf6dd
2,234
ads
Ada
src/API/protypo-api-consumers-file_writer.ads
fintatarta/protypo
c0c2bca17bc766ab95acc99b7422485388a10cb4
[ "MIT" ]
null
null
null
src/API/protypo-api-consumers-file_writer.ads
fintatarta/protypo
c0c2bca17bc766ab95acc99b7422485388a10cb4
[ "MIT" ]
4
2019-10-09T11:16:38.000Z
2019-10-09T11:20:38.000Z
src/API/protypo-api-consumers-file_writer.ads
fintatarta/protypo
c0c2bca17bc766ab95acc99b7422485388a10cb4
[ "MIT" ]
null
null
null
with Ada.Finalization; with Ada.Text_Io; -- -- ## What is this? -- -- A _file writer_ implements the `Consumer_Interface` that just -- writes the received strings to an external file (that can also be -- standard output or standard error). -- -- A writer needs to be associated to an external file when it -- is created. This can be done with the function `Open`. Special -- constant to write to standard output/error are provided. -- package Protypo.Api.Consumers.File_Writer is type Writer (<>) is new Ada.Finalization.Limited_Controlled and Consumer_Interface with private; overriding procedure Process (Consumer : in out Writer; Parameter : String); Standard_Output_Special_Name : constant String; Standard_Error_Special_Name : constant String; function Open (Target : String) return Consumer_Access; procedure Close (Consumer : in out Writer); private type Target_Class is (Stderr, Stdout, File); type Target_Name (Class : Target_Class; Length : Natural) is record case Class is when Stderr | Stdout => null; when File => Name : String (1 .. Length); end case; end record; function Open (Target : Target_Name) return Consumer_Access; Standard_Output_Special_Name : constant String := "."; Standard_Error_Special_Name : constant String := ".."; function To_Target (X : String) return Target_Name is (if X = Standard_Output_Special_Name then Target_Name'(Class => Stdout, Length => 0) elsif X = Standard_Error_Special_Name then Target_Name'(Class => Stderr, Length => 0) else Target_Name'(Class => File, Length => X'Length, Name => X)); function Open (Target : String) return Consumer_Access is (Open (To_Target (Target))); type Writer is new Ada.Finalization.Limited_Controlled and Consumer_Interface with record Target : Target_Class; Open : Boolean; Output : Ada.Text_Io.File_Type; end record; overriding procedure Finalize (Obj : in out Writer); end Protypo.Api.Consumers.File_Writer;
29.012987
68
0.651746
1270f0ddf1a978c38453e832fe67e1c24a151769
45,663
adb
Ada
Acceleration/memcached/hls/memcachedPipeline_prj/solution1/.autopilot/db/dispatch.sched.adb
pratik0509/HLSx_Xilinx_edit
14bdbcdb3107aa225e46a0bfe7d4a2a426e9e1ca
[ "BSD-3-Clause" ]
null
null
null
Acceleration/memcached/hls/memcachedPipeline_prj/solution1/.autopilot/db/dispatch.sched.adb
pratik0509/HLSx_Xilinx_edit
14bdbcdb3107aa225e46a0bfe7d4a2a426e9e1ca
[ "BSD-3-Clause" ]
null
null
null
Acceleration/memcached/hls/memcachedPipeline_prj/solution1/.autopilot/db/dispatch.sched.adb
pratik0509/HLSx_Xilinx_edit
14bdbcdb3107aa225e46a0bfe7d4a2a426e9e1ca
[ "BSD-3-Clause" ]
1
2018-11-13T17:59:49.000Z
2018-11-13T17:59:49.000Z
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <!DOCTYPE boost_serialization> <boost_serialization signature="serialization::archive" version="15"> <syndb class_id="0" tracking_level="0" version="0"> <userIPLatency>-1</userIPLatency> <userIPName></userIPName> <cdfg class_id="1" tracking_level="1" version="0" object_id="_0"> <name>dispatch</name> <ret_bitwidth>0</ret_bitwidth> <ports class_id="2" tracking_level="0" version="0"> <count>3</count> <item_version>0</item_version> <item class_id="3" tracking_level="1" version="0" object_id="_1"> <Value class_id="4" tracking_level="0" version="0"> <Obj class_id="5" tracking_level="0" version="0"> <type>1</type> <id>1</id> <name>memRdCmd_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo class_id="6" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>memRdCmd.V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>40</bitwidth> </Value> <direction>1</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>demux2getPath_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>45</bitwidth> </Value> <direction>0</direction> <if_type>3</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_3"> <Value> <Obj> <type>1</type> <id>3</id> <name>disp2rec_V_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>12</bitwidth> </Value> <direction>1</direction> <if_type>3</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> </ports> <nodes class_id="8" tracking_level="0" version="0"> <count>17</count> <item_version>0</item_version> <item class_id="9" tracking_level="1" version="0" object_id="_4"> <Value> <Obj> <type>0</type> <id>8</id> <name>tmp</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>1</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>29</item> <item>30</item> <item>32</item> </oprand_edges> <opcode>nbreadreq</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_delay>0.00</m_delay> </item> <item class_id_reference="9" object_id="_5"> <Value> <Obj> <type>0</type> <id>9</id> <name></name> <fileName>sources/valueStore/valueStore.cpp</fileName> <fileDirectory>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</fileDirectory> <lineNumber>468</lineNumber> <contextFuncName>dispatch</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item class_id="11" tracking_level="0" version="0"> <first>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</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>sources/valueStore/valueStore.cpp</first> <second>dispatch</second> </first> <second>468</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>33</item> <item>34</item> <item>35</item> </oprand_edges> <opcode>br</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_delay>0.00</m_delay> </item> <item class_id_reference="9" object_id="_6"> <Value> <Obj> <type>0</type> <id>11</id> <name>tmp4</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>tmp4</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>45</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>37</item> <item>38</item> <item>168</item> </oprand_edges> <opcode>read</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_delay>2.39</m_delay> </item> <item class_id_reference="9" object_id="_7"> <Value> <Obj> <type>0</type> <id>12</id> <name>getCtrlWord_address_s</name> <fileName>sources/valueStore/../globals.h</fileName> <fileDirectory>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</fileDirectory> <lineNumber>143</lineNumber> <contextFuncName>operator=</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>/home/pratik0509/xillinx/Vivado/2018.2/common/technology/autopilot/hls_stream.h</first> <second>read</second> </first> <second>127</second> </item> <item> <first> <first>sources/valueStore/../globals.h</first> <second>operator=</second> </first> <second>143</second> </item> <item> <first> <first>sources/valueStore/valueStore.cpp</first> <second>dispatch</second> </first> <second>470</second> </item> </second> </item> </inlineStackInfo> <originalName>getCtrlWord.address.V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>39</item> </oprand_edges> <opcode>trunc</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_delay>0.00</m_delay> </item> <item class_id_reference="9" object_id="_8"> <Value> <Obj> <type>0</type> <id>13</id> <name>tmp_length_V_load_ne</name> <fileName>sources/valueStore/../globals.h</fileName> <fileDirectory>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</fileDirectory> <lineNumber>143</lineNumber> <contextFuncName>operator=</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</first> <second> <count>3</count> <item_version>0</item_version> <item> <first> <first>/home/pratik0509/xillinx/Vivado/2018.2/common/technology/autopilot/hls_stream.h</first> <second>read</second> </first> <second>127</second> </item> <item> <first> <first>sources/valueStore/../globals.h</first> <second>operator=</second> </first> <second>143</second> </item> <item> <first> <first>sources/valueStore/valueStore.cpp</first> <second>dispatch</second> </first> <second>470</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>13</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>41</item> <item>42</item> <item>44</item> <item>46</item> </oprand_edges> <opcode>partselect</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_delay>0.00</m_delay> </item> <item class_id_reference="9" object_id="_9"> <Value> <Obj> <type>0</type> <id>14</id> <name>tmp_s</name> <fileName>sources/valueStore/valueStore.cpp</fileName> <fileDirectory>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</fileDirectory> <lineNumber>471</lineNumber> <contextFuncName>dispatch</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>sources/valueStore/valueStore.cpp</first> <second>dispatch</second> </first> <second>471</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>7</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>48</item> <item>49</item> <item>51</item> <item>52</item> </oprand_edges> <opcode>partselect</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_delay>0.00</m_delay> </item> <item class_id_reference="9" object_id="_10"> <Value> <Obj> <type>0</type> <id>15</id> <name>tmp_192_i</name> <fileName>sources/valueStore/valueStore.cpp</fileName> <fileDirectory>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</fileDirectory> <lineNumber>471</lineNumber> <contextFuncName>dispatch</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>sources/valueStore/valueStore.cpp</first> <second>dispatch</second> </first> <second>471</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>53</item> </oprand_edges> <opcode>zext</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_delay>0.00</m_delay> </item> <item class_id_reference="9" object_id="_11"> <Value> <Obj> <type>0</type> <id>16</id> <name>op2_assign</name> <fileName>sources/valueStore/valueStore.cpp</fileName> <fileDirectory>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</fileDirectory> <lineNumber>472</lineNumber> <contextFuncName>dispatch</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>sources/valueStore/valueStore.cpp</first> <second>dispatch</second> </first> <second>472</second> </item> </second> </item> </inlineStackInfo> <originalName>op2</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>13</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>55</item> <item>56</item> <item>58</item> </oprand_edges> <opcode>bitconcatenate</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_delay>0.00</m_delay> </item> <item class_id_reference="9" object_id="_12"> <Value> <Obj> <type>0</type> <id>17</id> <name>tmp_195_i</name> <fileName>sources/valueStore/valueStore.cpp</fileName> <fileDirectory>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</fileDirectory> <lineNumber>472</lineNumber> <contextFuncName>dispatch</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>sources/valueStore/valueStore.cpp</first> <second>dispatch</second> </first> <second>472</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>59</item> <item>60</item> </oprand_edges> <opcode>icmp</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_delay>1.06</m_delay> </item> <item class_id_reference="9" object_id="_13"> <Value> <Obj> <type>0</type> <id>18</id> <name>tmp_196_i</name> <fileName>sources/valueStore/valueStore.cpp</fileName> <fileDirectory>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</fileDirectory> <lineNumber>473</lineNumber> <contextFuncName>dispatch</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>sources/valueStore/valueStore.cpp</first> <second>dispatch</second> </first> <second>473</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>62</item> <item>63</item> </oprand_edges> <opcode>add</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_delay>1.27</m_delay> </item> <item class_id_reference="9" object_id="_14"> <Value> <Obj> <type>0</type> <id>19</id> <name>tmp_count_V</name> <fileName>sources/valueStore/valueStore.cpp</fileName> <fileDirectory>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</fileDirectory> <lineNumber>472</lineNumber> <contextFuncName>dispatch</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>sources/valueStore/valueStore.cpp</first> <second>dispatch</second> </first> <second>472</second> </item> </second> </item> </inlineStackInfo> <originalName>val</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>64</item> <item>65</item> <item>66</item> </oprand_edges> <opcode>select</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_delay>0.37</m_delay> </item> <item class_id_reference="9" object_id="_15"> <Value> <Obj> <type>0</type> <id>20</id> <name>tmp_1</name> <fileName>sources/valueStore/valueStore.cpp</fileName> <fileDirectory>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</fileDirectory> <lineNumber>475</lineNumber> <contextFuncName>dispatch</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>sources/valueStore/valueStore.cpp</first> <second>dispatch</second> </first> <second>475</second> </item> </second> </item> </inlineStackInfo> <originalName>tmp.1</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>40</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>68</item> <item>69</item> <item>70</item> </oprand_edges> <opcode>bitconcatenate</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_delay>0.00</m_delay> </item> <item class_id_reference="9" object_id="_16"> <Value> <Obj> <type>0</type> <id>21</id> <name></name> <fileName>sources/valueStore/valueStore.cpp</fileName> <fileDirectory>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</fileDirectory> <lineNumber>475</lineNumber> <contextFuncName>dispatch</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>sources/valueStore/valueStore.cpp</first> <second>dispatch</second> </first> <second>475</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>72</item> <item>73</item> <item>74</item> </oprand_edges> <opcode>write</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_delay>0.00</m_delay> </item> <item class_id_reference="9" object_id="_17"> <Value> <Obj> <type>0</type> <id>22</id> <name>tmp_V</name> <fileName>sources/valueStore/valueStore.cpp</fileName> <fileDirectory>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</fileDirectory> <lineNumber>476</lineNumber> <contextFuncName>dispatch</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>sources/valueStore/valueStore.cpp</first> <second>dispatch</second> </first> <second>476</second> </item> </second> </item> </inlineStackInfo> <originalName>tmp.V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>12</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>76</item> <item>77</item> <item>78</item> <item>80</item> </oprand_edges> <opcode>partselect</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_delay>0.00</m_delay> </item> <item class_id_reference="9" object_id="_18"> <Value> <Obj> <type>0</type> <id>23</id> <name></name> <fileName>sources/valueStore/valueStore.cpp</fileName> <fileDirectory>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</fileDirectory> <lineNumber>476</lineNumber> <contextFuncName>dispatch</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>sources/valueStore/valueStore.cpp</first> <second>dispatch</second> </first> <second>476</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>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_delay>2.39</m_delay> </item> <item class_id_reference="9" object_id="_19"> <Value> <Obj> <type>0</type> <id>24</id> <name></name> <fileName>sources/valueStore/valueStore.cpp</fileName> <fileDirectory>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</fileDirectory> <lineNumber>477</lineNumber> <contextFuncName>dispatch</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>sources/valueStore/valueStore.cpp</first> <second>dispatch</second> </first> <second>477</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>85</item> </oprand_edges> <opcode>br</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_delay>0.00</m_delay> </item> <item class_id_reference="9" object_id="_20"> <Value> <Obj> <type>0</type> <id>26</id> <name></name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>0</count> <item_version>0</item_version> </oprand_edges> <opcode>ret</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_delay>0.00</m_delay> </item> </nodes> <consts class_id="15" tracking_level="0" version="0"> <count>7</count> <item_version>0</item_version> <item class_id="16" tracking_level="1" version="0" object_id="_21"> <Value> <Obj> <type>2</type> <id>31</id> <name>empty</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>32</bitwidth> </Value> <const_type>0</const_type> <content>1</content> </item> <item class_id_reference="16" object_id="_22"> <Value> <Obj> <type>2</type> <id>43</id> <name>empty</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>32</bitwidth> </Value> <const_type>0</const_type> <content>32</content> </item> <item class_id_reference="16" object_id="_23"> <Value> <Obj> <type>2</type> <id>45</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>44</content> </item> <item class_id_reference="16" object_id="_24"> <Value> <Obj> <type>2</type> <id>50</id> <name>empty</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>32</bitwidth> </Value> <const_type>0</const_type> <content>38</content> </item> <item class_id_reference="16" object_id="_25"> <Value> <Obj> <type>2</type> <id>57</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>6</bitwidth> </Value> <const_type>0</const_type> <content>0</content> </item> <item class_id_reference="16" object_id="_26"> <Value> <Obj> <type>2</type> <id>61</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>8</bitwidth> </Value> <const_type>0</const_type> <content>1</content> </item> <item class_id_reference="16" object_id="_27"> <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>32</bitwidth> </Value> <const_type>0</const_type> <content>43</content> </item> </consts> <blocks class_id="17" tracking_level="0" version="0"> <count>3</count> <item_version>0</item_version> <item class_id="18" tracking_level="1" version="0" object_id="_28"> <Obj> <type>3</type> <id>10</id> <name>entry</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <node_objs> <count>2</count> <item_version>0</item_version> <item>8</item> <item>9</item> </node_objs> </item> <item class_id_reference="18" object_id="_29"> <Obj> <type>3</type> <id>25</id> <name>._crit_edge2.i</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <node_objs> <count>14</count> <item_version>0</item_version> <item>11</item> <item>12</item> <item>13</item> <item>14</item> <item>15</item> <item>16</item> <item>17</item> <item>18</item> <item>19</item> <item>20</item> <item>21</item> <item>22</item> <item>23</item> <item>24</item> </node_objs> </item> <item class_id_reference="18" object_id="_30"> <Obj> <type>3</type> <id>27</id> <name>dispatch.exit</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <node_objs> <count>1</count> <item_version>0</item_version> <item>26</item> </node_objs> </item> </blocks> <edges class_id="19" tracking_level="0" version="0"> <count>37</count> <item_version>0</item_version> <item class_id="20" tracking_level="1" version="0" object_id="_31"> <id>30</id> <edge_type>1</edge_type> <source_obj>2</source_obj> <sink_obj>8</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_32"> <id>32</id> <edge_type>1</edge_type> <source_obj>31</source_obj> <sink_obj>8</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_33"> <id>33</id> <edge_type>1</edge_type> <source_obj>8</source_obj> <sink_obj>9</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_34"> <id>34</id> <edge_type>2</edge_type> <source_obj>27</source_obj> <sink_obj>9</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_35"> <id>35</id> <edge_type>2</edge_type> <source_obj>25</source_obj> <sink_obj>9</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_36"> <id>38</id> <edge_type>1</edge_type> <source_obj>2</source_obj> <sink_obj>11</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_37"> <id>39</id> <edge_type>1</edge_type> <source_obj>11</source_obj> <sink_obj>12</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_38"> <id>42</id> <edge_type>1</edge_type> <source_obj>11</source_obj> <sink_obj>13</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_39"> <id>44</id> <edge_type>1</edge_type> <source_obj>43</source_obj> <sink_obj>13</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_40"> <id>46</id> <edge_type>1</edge_type> <source_obj>45</source_obj> <sink_obj>13</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_41"> <id>49</id> <edge_type>1</edge_type> <source_obj>11</source_obj> <sink_obj>14</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_42"> <id>51</id> <edge_type>1</edge_type> <source_obj>50</source_obj> <sink_obj>14</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_43"> <id>52</id> <edge_type>1</edge_type> <source_obj>45</source_obj> <sink_obj>14</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_44"> <id>53</id> <edge_type>1</edge_type> <source_obj>14</source_obj> <sink_obj>15</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_45"> <id>56</id> <edge_type>1</edge_type> <source_obj>14</source_obj> <sink_obj>16</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_46"> <id>58</id> <edge_type>1</edge_type> <source_obj>57</source_obj> <sink_obj>16</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_47"> <id>59</id> <edge_type>1</edge_type> <source_obj>13</source_obj> <sink_obj>17</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_48"> <id>60</id> <edge_type>1</edge_type> <source_obj>16</source_obj> <sink_obj>17</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_49"> <id>62</id> <edge_type>1</edge_type> <source_obj>61</source_obj> <sink_obj>18</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_50"> <id>63</id> <edge_type>1</edge_type> <source_obj>15</source_obj> <sink_obj>18</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_51"> <id>64</id> <edge_type>1</edge_type> <source_obj>17</source_obj> <sink_obj>19</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_52"> <id>65</id> <edge_type>1</edge_type> <source_obj>18</source_obj> <sink_obj>19</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_53"> <id>66</id> <edge_type>1</edge_type> <source_obj>15</source_obj> <sink_obj>19</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_54"> <id>69</id> <edge_type>1</edge_type> <source_obj>19</source_obj> <sink_obj>20</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_55"> <id>70</id> <edge_type>1</edge_type> <source_obj>12</source_obj> <sink_obj>20</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_56"> <id>73</id> <edge_type>1</edge_type> <source_obj>1</source_obj> <sink_obj>21</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_57"> <id>74</id> <edge_type>1</edge_type> <source_obj>20</source_obj> <sink_obj>21</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_58"> <id>77</id> <edge_type>1</edge_type> <source_obj>11</source_obj> <sink_obj>22</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_59"> <id>78</id> <edge_type>1</edge_type> <source_obj>43</source_obj> <sink_obj>22</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_60"> <id>80</id> <edge_type>1</edge_type> <source_obj>79</source_obj> <sink_obj>22</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_61"> <id>83</id> <edge_type>1</edge_type> <source_obj>3</source_obj> <sink_obj>23</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_62"> <id>84</id> <edge_type>1</edge_type> <source_obj>22</source_obj> <sink_obj>23</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_63"> <id>85</id> <edge_type>2</edge_type> <source_obj>27</source_obj> <sink_obj>24</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_64"> <id>165</id> <edge_type>2</edge_type> <source_obj>10</source_obj> <sink_obj>25</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_65"> <id>166</id> <edge_type>2</edge_type> <source_obj>10</source_obj> <sink_obj>27</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_66"> <id>167</id> <edge_type>2</edge_type> <source_obj>25</source_obj> <sink_obj>27</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_67"> <id>168</id> <edge_type>4</edge_type> <source_obj>8</source_obj> <sink_obj>11</sink_obj> <is_back_edge>0</is_back_edge> </item> </edges> </cdfg> <cdfg_regions class_id="21" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="22" tracking_level="1" version="0" object_id="_68"> <mId>1</mId> <mTag>dispatch</mTag> <mType>0</mType> <sub_regions> <count>0</count> <item_version>0</item_version> </sub_regions> <basic_blocks> <count>3</count> <item_version>0</item_version> <item>10</item> <item>25</item> <item>27</item> </basic_blocks> <mII>1</mII> <mDepth>3</mDepth> <mMinTripCount>-1</mMinTripCount> <mMaxTripCount>-1</mMaxTripCount> <mMinLatency>2</mMinLatency> <mMaxLatency>2</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>17</count> <item_version>0</item_version> <item class_id="27" tracking_level="0" version="0"> <first>8</first> <second class_id="28" tracking_level="0" version="0"> <first>0</first> <second>0</second> </second> </item> <item> <first>9</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>11</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>12</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>13</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>14</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>15</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>16</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>17</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>18</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>19</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>20</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>21</first> <second> <first>1</first> <second>1</second> </second> </item> <item> <first>22</first> <second> <first>0</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>2</first> <second>0</second> </second> </item> <item> <first>26</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>3</count> <item_version>0</item_version> <item class_id="30" tracking_level="0" version="0"> <first>10</first> <second class_id="31" tracking_level="0" version="0"> <first>0</first> <second>2</second> </second> </item> <item> <first>25</first> <second> <first>0</first> <second>2</second> </second> </item> <item> <first>27</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="_69"> <region_name>dispatch</region_name> <basic_blocks> <count>3</count> <item_version>0</item_version> <item>10</item> <item>25</item> <item>27</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>3</pipe_depth> </item> </regions> <dp_fu_nodes class_id="34" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </dp_fu_nodes> <dp_fu_nodes_expression class_id="35" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </dp_fu_nodes_expression> <dp_fu_nodes_module> <count>0</count> <item_version>0</item_version> </dp_fu_nodes_module> <dp_fu_nodes_io> <count>0</count> <item_version>0</item_version> </dp_fu_nodes_io> <return_ports> <count>0</count> <item_version>0</item_version> </return_ports> <dp_mem_port_nodes class_id="36" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </dp_mem_port_nodes> <dp_reg_nodes> <count>0</count> <item_version>0</item_version> </dp_reg_nodes> <dp_regname_nodes> <count>0</count> <item_version>0</item_version> </dp_regname_nodes> <dp_reg_phi> <count>0</count> <item_version>0</item_version> </dp_reg_phi> <dp_regname_phi> <count>0</count> <item_version>0</item_version> </dp_regname_phi> <dp_port_io_nodes class_id="37" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </dp_port_io_nodes> <port2core class_id="38" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </port2core> <node2core> <count>0</count> <item_version>0</item_version> </node2core> </syndb> </boost_serialization>
27.674545
105
0.607976
31feab65e35444854344057e94b89c0b3a7f9d82
6,836
ads
Ada
src/server/hyperion-rest-skeletons.ads
stcarrez/hyperion
166b10135521ee6553affc1b79f0bee3a9c7ea43
[ "Apache-2.0" ]
null
null
null
src/server/hyperion-rest-skeletons.ads
stcarrez/hyperion
166b10135521ee6553affc1b79f0bee3a9c7ea43
[ "Apache-2.0" ]
null
null
null
src/server/hyperion-rest-skeletons.ads
stcarrez/hyperion
166b10135521ee6553affc1b79f0bee3a9c7ea43
[ "Apache-2.0" ]
null
null
null
-- Hyperion API -- Hyperion Monitoring API The monitoring agent is first registered so that the server knows it as well as its security key. Each host are then registered by a monitoring agent. -- -- The version of the OpenAPI document: 1.0.0 -- Contact: [email protected] -- -- NOTE: This package is auto generated by OpenAPI-Generator 4.1.0-SNAPSHOT. -- https://openapi-generator.tech -- Do not edit the class manually. with Swagger.Servers; with Hyperion.Rest.Models; with Security.Permissions; package Hyperion.Rest.Skeletons is use Hyperion.Rest.Models; type Server_Type is limited interface; -- Register a new monitoring agent package ACL_Agent_Register is new Security.Permissions.Definition ("agent:register"); -- Register and create a host package ACL_Create_Host is new Security.Permissions.Definition ("create:host"); -- Update a new host package ACL_Write_Host is new Security.Permissions.Definition ("write:host"); -- Read a host information package ACL_Host_Read is new Security.Permissions.Definition ("host:read"); -- Register a monitoring agent -- Register a new monitoring agent in the system procedure Register_Agent (Server : in out Server_Type; Name : in Swagger.UString; Ip : in Swagger.UString; Agent_Key : in Swagger.UString; Result : out Hyperion.Rest.Models.Agent_Type; Context : in out Swagger.Servers.Context_Type) is abstract; -- Get information about the host datasets -- The datasets describes and gives access to the monitored data. procedure Get_Datasets (Server : in out Server_Type; Host_Id : in Swagger.Long; Result : out Hyperion.Rest.Models.Dataset_Type_Vectors.Vector; Context : in out Swagger.Servers.Context_Type) is abstract; -- Get information about the host -- Provide information about the host procedure Get_Host (Server : in out Server_Type; Host_Id : in Swagger.Long; Result : out Hyperion.Rest.Models.Host_Type; Context : in out Swagger.Servers.Context_Type) is abstract; -- Create a host -- Register a new host in the monitoring system procedure Create_Host (Server : in out Server_Type; Name : in Swagger.UString; Ip : in Swagger.UString; Host_Key : in Swagger.UString; Agent_Key : in Swagger.UString; Agent_Id : in Integer; Result : out Hyperion.Rest.Models.Host_Type; Context : in out Swagger.Servers.Context_Type) is abstract; generic type Implementation_Type is limited new Server_Type with private; URI_Prefix : String := ""; package Skeleton is procedure Register (Server : in out Swagger.Servers.Application_Type'Class); -- Register a monitoring agent procedure Register_Agent (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type); -- Get information about the host datasets procedure Get_Datasets (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type); -- Get information about the host procedure Get_Host (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type); -- Create a host procedure Create_Host (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type); end Skeleton; generic type Implementation_Type is limited new Server_Type with private; URI_Prefix : String := ""; package Shared_Instance is procedure Register (Server : in out Swagger.Servers.Application_Type'Class); -- Register a monitoring agent procedure Register_Agent (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type); -- Get information about the host datasets procedure Get_Datasets (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type); -- Get information about the host procedure Get_Host (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type); -- Create a host procedure Create_Host (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type); private protected Server is -- Register a monitoring agent procedure Register_Agent (Name : in Swagger.UString; Ip : in Swagger.UString; Agent_Key : in Swagger.UString; Result : out Hyperion.Rest.Models.Agent_Type; Context : in out Swagger.Servers.Context_Type); -- Get information about the host datasets procedure Get_Datasets (Host_Id : in Swagger.Long; Result : out Hyperion.Rest.Models.Dataset_Type_Vectors.Vector; Context : in out Swagger.Servers.Context_Type); -- Get information about the host procedure Get_Host (Host_Id : in Swagger.Long; Result : out Hyperion.Rest.Models.Host_Type; Context : in out Swagger.Servers.Context_Type); -- Create a host procedure Create_Host (Name : in Swagger.UString; Ip : in Swagger.UString; Host_Key : in Swagger.UString; Agent_Key : in Swagger.UString; Agent_Id : in Integer; Result : out Hyperion.Rest.Models.Host_Type; Context : in out Swagger.Servers.Context_Type); private Impl : Implementation_Type; end Server; end Shared_Instance; end Hyperion.Rest.Skeletons;
35.978947
180
0.659596
311997d4c99d1acbad62db1eabcd09d5bea17e97
11,925
ads
Ada
llvm-gcc-4.2-2.9/gcc/ada/exp_tss.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/exp_tss.ads
vidkidz/crossbridge
ba0bf94aee0ce6cf7eb5be882382e52bc57ba396
[ "MIT" ]
null
null
null
llvm-gcc-4.2-2.9/gcc/ada/exp_tss.ads
vidkidz/crossbridge
ba0bf94aee0ce6cf7eb5be882382e52bc57ba396
[ "MIT" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- E X P _ T S S -- -- -- -- S p e c -- -- -- -- Copyright (C) 1992-2005, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 2, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -- -- for more details. You should have received a copy of the GNU General -- -- Public License distributed with GNAT; see file COPYING. If not, write -- -- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, -- -- Boston, MA 02110-1301, USA. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ -- Type Support Subprogram (TSS) handling with Types; use Types; package Exp_Tss is -- A type support subprogram (TSS) is an internally generated function or -- procedure that is associated with a particular type. Examples are the -- implicit initialization procedure, and subprograms for the Input and -- Output attributes. -- A given TSS is either generated once at the point of the declaration of -- the type, or it is generated as needed in clients, but only one copy is -- required in any one generated object file. The choice between these two -- possibilities is made on a TSS-by-TSS basis depending on the estimation -- of how likely the TSS is to be used. Initialization procedures fall in -- the first category, for example, since it is likely that any declared -- type will be used in a context requiring initialization, but the stream -- attributes use the second approach, since it is more likely that they -- will not be used at all, or will only be used in one client in any case. ------------------------- -- Current Limitations -- ------------------------- -- In the current version of this package, only the case of generating a -- TSS at the point of declaration of the type is accomodated. A clear -- improvement would be to follow through with the full implementation -- as described above, and also accomodate the requirement of generating -- only one copy in a given object file. -- For now, we deal with the local case by generating duplicate versions -- of the TSS routine, which is clearly rather inefficient in space usage. -- This is done by using Make_TSS_Name_Local to generate unique names -- for the different instances of TSS routines in a given scope. ---------------- -- TSS Naming -- ---------------- -- A TSS is identified by its Chars name. The name has the form typXY or -- typ_<serial>XY, where typ is the type name, and XY are two characters -- that identify the particular TSS routine. A unique serial number is -- included for the case where several local instances of the same TSS -- must be generated (see discussion under Make_TSS_Name_Local). -- The following codes are used to denote TSSs: -- Note: When making additions to this list, update the list in snames.adb type TSS_Name_Type is new String (1 .. 2); subtype TNT is TSS_Name_Type; TSS_Deep_Adjust : constant TNT := "DA"; -- Deep Adjust TSS_Deep_Finalize : constant TNT := "DF"; -- Deep Finalize TSS_Deep_Initialize : constant TNT := "DI"; -- Deep Initialize TSS_Composite_Equality : constant TNT := "EQ"; -- Composite Equality TSS_From_Any : constant TNT := "FA"; -- PolyORB/DSA From_Any TSS_Init_Proc : constant TNT := "IP"; -- Initialization Procedure TSS_RAS_Access : constant TNT := "RA"; -- RAS type access TSS_RAS_Dereference : constant TNT := "RD"; -- RAS type deference TSS_Rep_To_Pos : constant TNT := "RP"; -- Rep to Pos conversion TSS_Slice_Assign : constant TNT := "SA"; -- Slice assignment TSS_Stream_Input : constant TNT := "SI"; -- Stream Input attribute TSS_Stream_Output : constant TNT := "SO"; -- Stream Output attribute TSS_Stream_Read : constant TNT := "SR"; -- Stream Read attribute TSS_Stream_Write : constant TNT := "SW"; -- Stream Write attribute TSS_To_Any : constant TNT := "TA"; -- PolyORB/DSA To_Any TSS_TypeCode : constant TNT := "TC"; -- PolyORB/DSA TypeCode -- The array below contains all valid TSS names TSS_Names : constant array (Natural range <>) of TSS_Name_Type := (TSS_Deep_Adjust, TSS_Deep_Finalize, TSS_Deep_Initialize, TSS_Composite_Equality, TSS_From_Any, TSS_Init_Proc, TSS_RAS_Access, TSS_RAS_Dereference, TSS_Rep_To_Pos, TSS_Slice_Assign, TSS_Stream_Input, TSS_Stream_Output, TSS_Stream_Read, TSS_Stream_Write, TSS_To_Any, TSS_TypeCode); TSS_Null : constant TNT := " "; -- Dummy entry used to indicated that this is not really a TSS function Get_TSS_Name (E : Entity_Id) return TSS_Name_Type; -- Given an entity, if it is a TSS, then return the corresponding TSS -- name type, otherwise return TSS_Null. function Make_TSS_Name (Typ : Entity_Id; Nam : TSS_Name_Type) return Name_Id; -- Construct the name as described above for the given TSS routine -- identified by Nam for the type identified by Typ. function Make_TSS_Name_Local (Typ : Entity_Id; Nam : TSS_Name_Type) return Name_Id; -- Similar to the above call, but a string of the form _nnn is inserted -- before the TSS code suffix, where nnn is a unique serial number. This -- is used when multiple instances of the same TSS routine may be -- generated in the same scope (see also discussion above of current -- limitations). function Make_Init_Proc_Name (Typ : Entity_Id) return Name_Id; -- Version for init procs, same as Make_TSS_Name (Typ, TSS_Init_Proc) function Is_TSS (E : Entity_Id; Nam : TSS_Name_Type) return Boolean; -- Determines if given entity (E) is the name of a TSS identified by Nam function Is_TSS (N : Name_Id; Nam : TSS_Name_Type) return Boolean; -- Same test applied directly to a Name_Id value function Is_Init_Proc (E : Entity_Id) return Boolean; -- Version for init procs, same as Is_TSS (E, TSS_Init_Proc); ----------------------------------------- -- TSS Data structures and Subprograms -- ----------------------------------------- -- The TSS's for a given type are stored in an element list associated with -- the type, and referenced from the TSS_Elist field of the N_Freeze_Entity -- node associated with the type (all types that need TSS's always need to -- be explicitly frozen, so the N_Freeze_Entity node always exists). function TSS (Typ : Entity_Id; Nam : TSS_Name_Type) return Entity_Id; -- Finds the TSS with the given name associated with the given type -- If no such TSS exists, then Empty is returned; function TSS (Typ : Entity_Id; Nam : Name_Id) return Entity_Id; -- Finds the TSS with the given name associated with the given type. If -- no such TSS exists, then Empty is returned. function Same_TSS (E1, E2 : Entity_Id) return Boolean; -- Returns True if E1 and E2 are the same kind of TSS, even if the names -- are different (i.e. if the names of E1 and E2 end with two upper case -- letters that are the same). procedure Set_TSS (Typ : Entity_Id; TSS : Entity_Id); -- This procedure is used to install a newly created TSS. The second -- argument is the entity for such a new TSS. This entity is placed in -- the TSS list for the type given as the first argument, replacing an -- old entry of the same name if one was present. The tree for the body -- of this TSS, which is not analyzed yet, is placed in the actions field -- of the freeze node for the type. All such bodies are inserted into the -- main tree and analyzed at the point at which the freeze node itself is -- is expanded. procedure Copy_TSS (TSS : Entity_Id; Typ : Entity_Id); -- Given an existing TSS for another type (which is already installed, -- analyzed and expanded), install it as the corresponding TSS for Typ. -- Note that this just copies a reference, not the tree. This can also -- be used to initially install a TSS in the case where the subprogram -- for the TSS has already been created and its declaration processed. function Init_Proc (Typ : Entity_Id) return Entity_Id; pragma Inline (Init_Proc); -- Obtains the _init TSS entry for the given type. This function call is -- equivalent to TSS (Typ, Name_uInit). The _init TSS is the procedure -- used to initialize otherwise uninitialized instances of a type. If -- there is no _init TSS, then the type requires no initialization. Note -- that subtypes and implicit types never have an _init TSS since subtype -- objects are always initialized using the initialization procedure for -- the corresponding base type (see Base_Init_Proc function). A special -- case arises for concurrent types. Such types do not themselves have an -- init proc TSS, but initialization is required. The init proc used is -- the one fot the corresponding record type (see Base_Init_Proc). function Base_Init_Proc (Typ : Entity_Id) return Entity_Id; -- Obtains the _Init TSS entry from the base type of the entity, and also -- deals with going indirect through the Corresponding_Record_Type field -- for concurrent objects (which are initialized with the initialization -- routine for the corresponding record type). Returns Empty if there is -- no _Init TSS entry for the base type. procedure Set_Init_Proc (Typ : Entity_Id; Init : Entity_Id); pragma Inline (Set_Init_Proc); -- The second argument is the _init TSS to be established for the type -- given as the first argument. Equivalent to Set_TSS (Typ, Init). function Has_Non_Null_Base_Init_Proc (Typ : Entity_Id) return Boolean; -- Returns true if the given type has a defined Base_Init_Proc and -- this init proc is not a null init proc (null init procs occur as -- a result of the processing for Initialize_Scalars. This function -- is used to test for the presence of an init proc in cases where -- a null init proc is considered equivalent to no init proc. function Find_Inherited_TSS (Typ : Entity_Id; Nam : TSS_Name_Type) return Entity_Id; -- Returns the TSS of name Nam of Typ, or of its closest ancestor defining -- such a TSS. Empty is returned is neither Typ nor any of its ancestors -- have such a TSS. end Exp_Tss;
51.847826
79
0.636981
fb1fe82b508c3712d43faba0b31e651e4ff9b2b2
6,175
ads
Ada
source/streams/a-ststio.ads
ytomino/drake
4e4bdcd8b8e23a11a29b31d3a8861fdf60090ea2
[ "MIT" ]
33
2015-04-04T09:19:36.000Z
2021-11-10T05:33:34.000Z
source/streams/a-ststio.ads
ytomino/drake
4e4bdcd8b8e23a11a29b31d3a8861fdf60090ea2
[ "MIT" ]
8
2017-11-14T13:05:07.000Z
2018-08-09T15:28:49.000Z
source/streams/a-ststio.ads
ytomino/drake
4e4bdcd8b8e23a11a29b31d3a8861fdf60090ea2
[ "MIT" ]
9
2015-02-03T17:09:53.000Z
2021-11-12T01:16:05.000Z
pragma License (Unrestricted); with Ada.IO_Exceptions; with Ada.IO_Modes; private with Ada.Finalization; private with Ada.Streams.Naked_Stream_IO; package Ada.Streams.Stream_IO is pragma Preelaborate; type Stream_Access is access all Root_Stream_Type'Class; for Stream_Access'Storage_Size use 0; type File_Type is limited private; pragma Preelaborable_Initialization (File_Type); -- AI12-0102-1 -- Similar to Text_IO in AI12-0054-2: -- subtype Open_File_Type is File_Type -- with -- Dynamic_Predicate => Is_Open (Open_File_Type), -- Predicate_Failure => raise Status_Error with "File not open"; -- subtype Input_File_Type is Open_File_Type -- with -- Dynamic_Predicate => Is_Readable (Input_File_Type), -- Predicate_Failure => -- raise Mode_Error with -- "Cannot read file: " & Name (Input_File_Type); -- subtype Output_File_Type is Open_File_Type -- with -- Dynamic_Predicate => Mode (Output_File_Type) /= In_File, -- Predicate_Failure => -- raise Mode_Error with -- "Cannot write file: " & Name (Output_File_Type); -- type File_Mode is (In_File, Out_File, Append_File); type File_Mode is new IO_Modes.File_Mode; -- for conversion -- modified -- Count is essentially same as Stream_Element_Count. -- type Count is range 0 .. implementation-defined; subtype Count is Stream_Element_Count; subtype Positive_Count is Count range 1 .. Count'Last; -- Index into file, in stream elements -- modified procedure Create ( File : in out File_Type; Mode : File_Mode := Out_File; Name : String := ""; Form : String); -- removed default procedure Create ( File : in out File_Type; Mode : File_Mode := Out_File; Name : String := ""; Shared : IO_Modes.File_Shared_Spec := IO_Modes.By_Mode; Wait : Boolean := False; Overwrite : Boolean := True); -- extended function Create ( Mode : File_Mode := Out_File; Name : String := ""; Shared : IO_Modes.File_Shared_Spec := IO_Modes.By_Mode; Wait : Boolean := False; Overwrite : Boolean := True) return File_Type; -- modified procedure Open ( File : in out File_Type; Mode : File_Mode; Name : String; Form : String); -- removed default procedure Open ( File : in out File_Type; Mode : File_Mode; Name : String; Shared : IO_Modes.File_Shared_Spec := IO_Modes.By_Mode; Wait : Boolean := False; Overwrite : Boolean := True); -- extended function Open ( Mode : File_Mode; Name : String; Shared : IO_Modes.File_Shared_Spec := IO_Modes.By_Mode; Wait : Boolean := False; Overwrite : Boolean := True) return File_Type; procedure Close (File : in out File_Type); procedure Delete (File : in out File_Type); procedure Reset (File : in out File_Type; Mode : File_Mode); procedure Reset (File : in out File_Type); function Mode ( File : File_Type) -- Open_File_Type return File_Mode; function Name ( File : File_Type) -- Open_File_Type return String; function Form ( File : File_Type) -- Open_File_Type return String; pragma Inline (Mode); pragma Inline (Name); function Is_Open (File : File_Type) return Boolean; function End_Of_File ( File : File_Type) -- Open_File_Type return Boolean; pragma Inline (Is_Open); pragma Inline (End_Of_File); function Stream ( File : File_Type) -- Open_File_Type return Stream_Access; -- Return stream access for use with T'Input and T'Output pragma Inline (Stream); -- Read array of stream elements from file procedure Read ( File : File_Type; -- Input_File_Type Item : out Stream_Element_Array; Last : out Stream_Element_Offset; From : Positive_Count); procedure Read ( File : File_Type; -- Input_File_Type Item : out Stream_Element_Array; Last : out Stream_Element_Offset); -- Write array of stream elements into file procedure Write ( File : File_Type; -- Output_File_Type Item : Stream_Element_Array; To : Positive_Count); procedure Write ( File : File_Type; -- Output_File_Type Item : Stream_Element_Array); -- Operations on position within file procedure Set_Index ( File : File_Type; -- Open_File_Type To : Positive_Count); function Index ( File : File_Type) -- Open_File_Type return Positive_Count; function Size ( File : File_Type) -- Open_File_Type return Count; pragma Inline (Index); pragma Inline (Size); procedure Set_Mode (File : in out File_Type; Mode : File_Mode); procedure Flush ( File : File_Type); -- Output_File_Type -- exceptions Status_Error : exception renames IO_Exceptions.Status_Error; Mode_Error : exception renames IO_Exceptions.Mode_Error; Name_Error : exception renames IO_Exceptions.Name_Error; Use_Error : exception renames IO_Exceptions.Use_Error; Device_Error : exception renames IO_Exceptions.Device_Error; End_Error : exception renames IO_Exceptions.End_Error; Data_Error : exception renames IO_Exceptions.Data_Error; private -- "Dynamic_Predicate => Mode (File) = In_File" is unsuitable for -- Input_File_Type, because Mode (File) returns Append_File for that -- opened as Inout_File by Direct_IO or Storage_Mapped_IO. function Is_Readable (File : File_Type) return Boolean; package Controlled is type File_Type is limited private; function Reference (File : Stream_IO.File_Type) return not null access Naked_Stream_IO.Non_Controlled_File_Type; pragma Inline (Reference); private type File_Type is limited new Finalization.Limited_Controlled with record Stream : aliased Naked_Stream_IO.Non_Controlled_File_Type; end record; overriding procedure Finalize (Object : in out File_Type); end Controlled; type File_Type is new Controlled.File_Type; end Ada.Streams.Stream_IO;
30.269608
79
0.672065
10931cc7d25c78dc95a3a0ed6b1ccc856aea3f27
20,261
adb
Ada
gcc-gcc-7_3_0-release/gcc/ada/g-dynhta.adb
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
7
2020-05-02T17:34:05.000Z
2021-10-17T10:15:18.000Z
gcc-gcc-7_3_0-release/gcc/ada/g-dynhta.adb
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
null
null
null
gcc-gcc-7_3_0-release/gcc/ada/g-dynhta.adb
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
2
2020-07-27T00:22:36.000Z
2021-04-01T09:41:02.000Z
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- G N A T . D Y N A M I C _ H T A B L E S -- -- -- -- B o d y -- -- -- -- Copyright (C) 2002-2016, AdaCore -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ with Ada.Unchecked_Deallocation; package body GNAT.Dynamic_HTables is ------------------- -- Static_HTable -- ------------------- package body Static_HTable is type Table_Type is array (Header_Num) of Elmt_Ptr; type Instance_Data is record Table : Table_Type; Iterator_Index : Header_Num; Iterator_Ptr : Elmt_Ptr; Iterator_Started : Boolean := False; end record; function Get_Non_Null (T : Instance) return Elmt_Ptr; -- Returns Null_Ptr if Iterator_Started is False or if the Table is -- empty. Returns Iterator_Ptr if non null, or the next non null -- element in table if any. --------- -- Get -- --------- function Get (T : Instance; K : Key) return Elmt_Ptr is Elmt : Elmt_Ptr; begin if T = null then return Null_Ptr; end if; Elmt := T.Table (Hash (K)); loop if Elmt = Null_Ptr then return Null_Ptr; elsif Equal (Get_Key (Elmt), K) then return Elmt; else Elmt := Next (Elmt); end if; end loop; end Get; --------------- -- Get_First -- --------------- function Get_First (T : Instance) return Elmt_Ptr is begin if T = null then return Null_Ptr; end if; T.Iterator_Started := True; T.Iterator_Index := T.Table'First; T.Iterator_Ptr := T.Table (T.Iterator_Index); return Get_Non_Null (T); end Get_First; -------------- -- Get_Next -- -------------- function Get_Next (T : Instance) return Elmt_Ptr is begin if T = null or else not T.Iterator_Started then return Null_Ptr; end if; T.Iterator_Ptr := Next (T.Iterator_Ptr); return Get_Non_Null (T); end Get_Next; ------------------ -- Get_Non_Null -- ------------------ function Get_Non_Null (T : Instance) return Elmt_Ptr is begin if T = null then return Null_Ptr; end if; while T.Iterator_Ptr = Null_Ptr loop if T.Iterator_Index = T.Table'Last then T.Iterator_Started := False; return Null_Ptr; end if; T.Iterator_Index := T.Iterator_Index + 1; T.Iterator_Ptr := T.Table (T.Iterator_Index); end loop; return T.Iterator_Ptr; end Get_Non_Null; ------------ -- Remove -- ------------ procedure Remove (T : Instance; K : Key) is Index : constant Header_Num := Hash (K); Elmt : Elmt_Ptr; Next_Elmt : Elmt_Ptr; begin if T = null then return; end if; Elmt := T.Table (Index); if Elmt = Null_Ptr then return; elsif Equal (Get_Key (Elmt), K) then T.Table (Index) := Next (Elmt); else loop Next_Elmt := Next (Elmt); if Next_Elmt = Null_Ptr then return; elsif Equal (Get_Key (Next_Elmt), K) then Set_Next (Elmt, Next (Next_Elmt)); return; else Elmt := Next_Elmt; end if; end loop; end if; end Remove; ----------- -- Reset -- ----------- procedure Reset (T : in out Instance) is procedure Free is new Ada.Unchecked_Deallocation (Instance_Data, Instance); begin if T = null then return; end if; for J in T.Table'Range loop T.Table (J) := Null_Ptr; end loop; Free (T); end Reset; --------- -- Set -- --------- procedure Set (T : in out Instance; E : Elmt_Ptr) is Index : Header_Num; begin if T = null then T := new Instance_Data; end if; Index := Hash (Get_Key (E)); Set_Next (E, T.Table (Index)); T.Table (Index) := E; end Set; end Static_HTable; ------------------- -- Simple_HTable -- ------------------- package body Simple_HTable is procedure Free is new Ada.Unchecked_Deallocation (Element_Wrapper, Elmt_Ptr); --------- -- Get -- --------- function Get (T : Instance; K : Key) return Element is Tmp : Elmt_Ptr; begin if T = Nil then return No_Element; end if; Tmp := Tab.Get (Tab.Instance (T), K); if Tmp = null then return No_Element; else return Tmp.E; end if; end Get; --------------- -- Get_First -- --------------- function Get_First (T : Instance) return Element is Tmp : constant Elmt_Ptr := Tab.Get_First (Tab.Instance (T)); begin if Tmp = null then return No_Element; else return Tmp.E; end if; end Get_First; ------------- -- Get_Key -- ------------- function Get_Key (E : Elmt_Ptr) return Key is begin return E.K; end Get_Key; -------------- -- Get_Next -- -------------- function Get_Next (T : Instance) return Element is Tmp : constant Elmt_Ptr := Tab.Get_Next (Tab.Instance (T)); begin if Tmp = null then return No_Element; else return Tmp.E; end if; end Get_Next; ---------- -- Next -- ---------- function Next (E : Elmt_Ptr) return Elmt_Ptr is begin return E.Next; end Next; ------------ -- Remove -- ------------ procedure Remove (T : Instance; K : Key) is Tmp : Elmt_Ptr; begin Tmp := Tab.Get (Tab.Instance (T), K); if Tmp /= null then Tab.Remove (Tab.Instance (T), K); Free (Tmp); end if; end Remove; ----------- -- Reset -- ----------- procedure Reset (T : in out Instance) is E1, E2 : Elmt_Ptr; begin E1 := Tab.Get_First (Tab.Instance (T)); while E1 /= null loop E2 := Tab.Get_Next (Tab.Instance (T)); Free (E1); E1 := E2; end loop; Tab.Reset (Tab.Instance (T)); end Reset; --------- -- Set -- --------- procedure Set (T : in out Instance; K : Key; E : Element) is Tmp : constant Elmt_Ptr := Tab.Get (Tab.Instance (T), K); begin if Tmp = null then Tab.Set (Tab.Instance (T), new Element_Wrapper'(K, E, null)); else Tmp.E := E; end if; end Set; -------------- -- Set_Next -- -------------- procedure Set_Next (E : Elmt_Ptr; Next : Elmt_Ptr) is begin E.Next := Next; end Set_Next; end Simple_HTable; ------------------------ -- Load_Factor_HTable -- ------------------------ package body Load_Factor_HTable is Min_Size_Increase : constant := 5; -- The minimum increase expressed as number of buckets. This value is -- used to determine the new size of small tables and/or small growth -- percentages. procedure Attach (Elmt : not null Element_Ptr; Chain : not null Element_Ptr); -- Prepend an element to a bucket chain. Elmt is inserted after the -- dummy head of Chain. function Create_Buckets (Size : Positive) return Buckets_Array_Ptr; -- Allocate and initialize a new set of buckets. The buckets are created -- in the range Range_Type'First .. Range_Type'First + Size - 1. procedure Detach (Elmt : not null Element_Ptr); -- Remove an element from an arbitrary bucket chain function Find (Key : Key_Type; Chain : not null Element_Ptr) return Element_Ptr; -- Try to locate the element which contains a particular key within a -- bucket chain. If no such element exists, return No_Element. procedure Free is new Ada.Unchecked_Deallocation (Buckets_Array, Buckets_Array_Ptr); procedure Free is new Ada.Unchecked_Deallocation (Element, Element_Ptr); function Is_Empty_Chain (Chain : not null Element_Ptr) return Boolean; -- Determine whether a bucket chain contains only one element, namely -- the dummy head. ------------ -- Attach -- ------------ procedure Attach (Elmt : not null Element_Ptr; Chain : not null Element_Ptr) is begin Chain.Next.Prev := Elmt; Elmt.Next := Chain.Next; Chain.Next := Elmt; Elmt.Prev := Chain; end Attach; -------------------- -- Create_Buckets -- -------------------- function Create_Buckets (Size : Positive) return Buckets_Array_Ptr is Low_Bound : constant Range_Type := Range_Type'First; Buckets : Buckets_Array_Ptr; begin Buckets := new Buckets_Array (Low_Bound .. Low_Bound + Range_Type (Size) - 1); -- Ensure that the dummy head of each bucket chain points to itself -- in both directions. for Index in Buckets'Range loop declare Bucket : Element renames Buckets (Index); begin Bucket.Prev := Bucket'Unchecked_Access; Bucket.Next := Bucket'Unchecked_Access; end; end loop; return Buckets; end Create_Buckets; ------------------ -- Current_Size -- ------------------ function Current_Size (T : Table) return Positive is begin -- The table should have been properly initialized during object -- elaboration. if T.Buckets = null then raise Program_Error; -- The size of the table is determined by the number of buckets else return T.Buckets'Length; end if; end Current_Size; ------------ -- Detach -- ------------ procedure Detach (Elmt : not null Element_Ptr) is begin if Elmt.Prev /= null and Elmt.Next /= null then Elmt.Prev.Next := Elmt.Next; Elmt.Next.Prev := Elmt.Prev; Elmt.Prev := null; Elmt.Next := null; end if; end Detach; -------------- -- Finalize -- -------------- procedure Finalize (T : in out Table) is Bucket : Element_Ptr; Elmt : Element_Ptr; begin -- Inspect the buckets and deallocate bucket chains for Index in T.Buckets'Range loop Bucket := T.Buckets (Index)'Unchecked_Access; -- The current bucket chain contains an element other than the -- dummy head. while not Is_Empty_Chain (Bucket) loop -- Skip the dummy head, remove and deallocate the element Elmt := Bucket.Next; Detach (Elmt); Free (Elmt); end loop; end loop; -- Deallocate the buckets Free (T.Buckets); end Finalize; ---------- -- Find -- ---------- function Find (Key : Key_Type; Chain : not null Element_Ptr) return Element_Ptr is Elmt : Element_Ptr; begin -- Skip the dummy head, inspect the bucket chain for an element whose -- key matches the requested key. Since each bucket chain is circular -- the search must stop once the dummy head is encountered. Elmt := Chain.Next; while Elmt /= Chain loop if Equal (Elmt.Key, Key) then return Elmt; end if; Elmt := Elmt.Next; end loop; return No_Element; end Find; --------- -- Get -- --------- function Get (T : Table; Key : Key_Type) return Value_Type is Bucket : Element_Ptr; Elmt : Element_Ptr; begin -- Obtain the bucket chain where the (key, value) pair should reside -- by calculating the proper hash location. Bucket := T.Buckets (Hash (Key, Current_Size (T)))'Unchecked_Access; -- Try to find an element whose key matches the requested key Elmt := Find (Key, Bucket); -- The hash table does not contain a matching (key, value) pair if Elmt = No_Element then return No_Value; else return Elmt.Val; end if; end Get; ---------------- -- Initialize -- ---------------- procedure Initialize (T : in out Table) is begin pragma Assert (T.Buckets = null); T.Buckets := Create_Buckets (Initial_Size); T.Element_Count := 0; end Initialize; -------------------- -- Is_Empty_Chain -- -------------------- function Is_Empty_Chain (Chain : not null Element_Ptr) return Boolean is begin return Chain.Next = Chain and Chain.Prev = Chain; end Is_Empty_Chain; ------------ -- Remove -- ------------ procedure Remove (T : in out Table; Key : Key_Type) is Bucket : Element_Ptr; Elmt : Element_Ptr; begin -- Obtain the bucket chain where the (key, value) pair should reside -- by calculating the proper hash location. Bucket := T.Buckets (Hash (Key, Current_Size (T)))'Unchecked_Access; -- Try to find an element whose key matches the requested key Elmt := Find (Key, Bucket); -- Remove and deallocate the (key, value) pair if Elmt /= No_Element then Detach (Elmt); Free (Elmt); end if; end Remove; --------- -- Set -- --------- procedure Set (T : in out Table; Key : Key_Type; Val : Value_Type) is Curr_Size : constant Positive := Current_Size (T); procedure Grow; -- Grow the table to a new size according to the desired percentage -- and relocate all existing elements to the new buckets. ---------- -- Grow -- ---------- procedure Grow is Buckets : Buckets_Array_Ptr; Elmt : Element_Ptr; Hash_Loc : Range_Type; Old_Bucket : Element_Ptr; Old_Buckets : Buckets_Array_Ptr := T.Buckets; Size : Positive; begin -- Calculate the new size and allocate a new set of buckets. Note -- that a table with a small size or a small growth percentage may -- not always grow (for example, 10 buckets and 3% increase). In -- that case, enforce a minimum increase. Size := Positive'Max (Curr_Size * ((100 + Growth_Percentage) / 100), Min_Size_Increase); Buckets := Create_Buckets (Size); -- Inspect the old buckets and transfer all elements by rehashing -- all (key, value) pairs in the new buckets. for Index in Old_Buckets'Range loop Old_Bucket := Old_Buckets (Index)'Unchecked_Access; -- The current bucket chain contains an element other than the -- dummy head. while not Is_Empty_Chain (Old_Bucket) loop -- Skip the dummy head and find the new hash location Elmt := Old_Bucket.Next; Hash_Loc := Hash (Elmt.Key, Size); -- Remove the element from the old buckets and insert it -- into the new buckets. Note that there is no need to check -- for duplicates because the hash table did not have any to -- begin with. Detach (Elmt); Attach (Elmt => Elmt, Chain => Buckets (Hash_Loc)'Unchecked_Access); end loop; end loop; -- Associate the new buckets with the table and reclaim the -- storage occupied by the old buckets. T.Buckets := Buckets; Free (Old_Buckets); end Grow; -- Local variables subtype LLF is Long_Long_Float; Count : Natural renames T.Element_Count; Bucket : Element_Ptr; Hash_Loc : Range_Type; -- Start of processing for Set begin -- Find the bucket where the (key, value) pair should be inserted by -- computing the proper hash location. Hash_Loc := Hash (Key, Curr_Size); Bucket := T.Buckets (Hash_Loc)'Unchecked_Access; -- Ensure that the key is not already present in the bucket in order -- to avoid duplicates. if Find (Key, Bucket) = No_Element then Attach (Elmt => new Element'(Key, Val, null, null), Chain => Bucket); Count := Count + 1; -- Multiple insertions may cause long bucket chains and decrease -- the performance of basic operations. If this is the case, grow -- the table and rehash all existing elements. if (LLF (Count) / LLF (Curr_Size)) > LLF (Load_Factor) then Grow; end if; end if; end Set; end Load_Factor_HTable; end GNAT.Dynamic_HTables;
28.496484
79
0.486353
1d271ba5cd91ce4c49937d2b75d0c3179d86160d
559
adb
Ada
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/named_test.adb
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
7
2020-05-02T17:34:05.000Z
2021-10-17T10:15:18.000Z
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/named_test.adb
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
null
null
null
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/named_test.adb
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
2
2020-07-27T00:22:36.000Z
2021-04-01T09:41:02.000Z
-- { dg-do run } with Text_IO; use Text_IO; procedure Named_Test is type Base is tagged limited record Flag : boolean; Value : integer; end record; -- function Build (X : Integer; Y : Integer) return Base is begin return Result : Base do Result.Flag := (X = Y); Result.Value := X * Y; end return; end; -- type Table is array (1..1) of Base; It : Table := (1 => Build ( Y => 17, X => 11)); begin if It (1).Flag or else It (1).Value /= 187 then raise Program_Error; end if; end;
20.703704
59
0.563506
063f4cc4afd2098134146c7aa598e66eca857d12
2,434
ads
Ada
src/natools-static_hash_maps-s_expressions.ads
faelys/natools
947c004e6f69ca144942c6af40e102d089223cf8
[ "0BSD" ]
null
null
null
src/natools-static_hash_maps-s_expressions.ads
faelys/natools
947c004e6f69ca144942c6af40e102d089223cf8
[ "0BSD" ]
null
null
null
src/natools-static_hash_maps-s_expressions.ads
faelys/natools
947c004e6f69ca144942c6af40e102d089223cf8
[ "0BSD" ]
null
null
null
------------------------------------------------------------------------------ -- Copyright (c) 2014, 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.Static_Hash_Maps.S_Expressions provides subprograms to read -- -- S-expression descriptions of static hash maps and feed it to -- -- Natools.Static_Hash_Maps. -- ------------------------------------------------------------------------------ with Natools.S_Expressions.Lockable; package Natools.Static_Hash_Maps.S_Expressions is package Sx renames Natools.S_Expressions; procedure Generate_Packages (Input : in out Sx.Lockable.Descriptor'Class; Description : in String := ""); -- Generate all hash map packages described in Input procedure Generate_Package (Input : in out Sx.Lockable.Descriptor'Class; Description : in String := ""); -- Generate the package described by Input private type Package_Command is (Private_Child, Public_Child, Pure_Package, Preelaborate_Package, Test_Function, Extra_Declarations); type Map_Command is (Hash_Package, Definite_Elements, Indefinite_Elements, Nodes, Function_Name, Not_Found); end Natools.Static_Hash_Maps.S_Expressions;
41.965517
78
0.542728
068da27d1e58c1501cd4123dc2705d0637b5ac2e
4,351
ads
Ada
source/nodes/program-nodes-case_expressions.ads
reznikmm/gela
20134f1d154fb763812e73860c6f4b04f353df79
[ "MIT" ]
null
null
null
source/nodes/program-nodes-case_expressions.ads
reznikmm/gela
20134f1d154fb763812e73860c6f4b04f353df79
[ "MIT" ]
null
null
null
source/nodes/program-nodes-case_expressions.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.Lexical_Elements; with Program.Elements.Expressions; with Program.Elements.Case_Expression_Paths; with Program.Elements.Case_Expressions; with Program.Element_Visitors; package Program.Nodes.Case_Expressions is pragma Preelaborate; type Case_Expression is new Program.Nodes.Node and Program.Elements.Case_Expressions.Case_Expression and Program.Elements.Case_Expressions.Case_Expression_Text with private; function Create (Case_Token : not null Program.Lexical_Elements .Lexical_Element_Access; Selecting_Expression : not null Program.Elements.Expressions .Expression_Access; Is_Token : not null Program.Lexical_Elements .Lexical_Element_Access; Paths : not null Program.Elements.Case_Expression_Paths .Case_Expression_Path_Vector_Access) return Case_Expression; type Implicit_Case_Expression is new Program.Nodes.Node and Program.Elements.Case_Expressions.Case_Expression with private; function Create (Selecting_Expression : not null Program.Elements.Expressions .Expression_Access; Paths : not null Program.Elements.Case_Expression_Paths .Case_Expression_Path_Vector_Access; Is_Part_Of_Implicit : Boolean := False; Is_Part_Of_Inherited : Boolean := False; Is_Part_Of_Instance : Boolean := False) return Implicit_Case_Expression with Pre => Is_Part_Of_Implicit or Is_Part_Of_Inherited or Is_Part_Of_Instance; private type Base_Case_Expression is abstract new Program.Nodes.Node and Program.Elements.Case_Expressions.Case_Expression with record Selecting_Expression : not null Program.Elements.Expressions .Expression_Access; Paths : not null Program.Elements.Case_Expression_Paths .Case_Expression_Path_Vector_Access; end record; procedure Initialize (Self : in out Base_Case_Expression'Class); overriding procedure Visit (Self : not null access Base_Case_Expression; Visitor : in out Program.Element_Visitors.Element_Visitor'Class); overriding function Selecting_Expression (Self : Base_Case_Expression) return not null Program.Elements.Expressions.Expression_Access; overriding function Paths (Self : Base_Case_Expression) return not null Program.Elements.Case_Expression_Paths .Case_Expression_Path_Vector_Access; overriding function Is_Case_Expression (Self : Base_Case_Expression) return Boolean; overriding function Is_Expression (Self : Base_Case_Expression) return Boolean; type Case_Expression is new Base_Case_Expression and Program.Elements.Case_Expressions.Case_Expression_Text with record Case_Token : not null Program.Lexical_Elements.Lexical_Element_Access; Is_Token : not null Program.Lexical_Elements.Lexical_Element_Access; end record; overriding function To_Case_Expression_Text (Self : in out Case_Expression) return Program.Elements.Case_Expressions.Case_Expression_Text_Access; overriding function Case_Token (Self : Case_Expression) return not null Program.Lexical_Elements.Lexical_Element_Access; overriding function Is_Token (Self : Case_Expression) return not null Program.Lexical_Elements.Lexical_Element_Access; type Implicit_Case_Expression is new Base_Case_Expression with record Is_Part_Of_Implicit : Boolean; Is_Part_Of_Inherited : Boolean; Is_Part_Of_Instance : Boolean; end record; overriding function To_Case_Expression_Text (Self : in out Implicit_Case_Expression) return Program.Elements.Case_Expressions.Case_Expression_Text_Access; overriding function Is_Part_Of_Implicit (Self : Implicit_Case_Expression) return Boolean; overriding function Is_Part_Of_Inherited (Self : Implicit_Case_Expression) return Boolean; overriding function Is_Part_Of_Instance (Self : Implicit_Case_Expression) return Boolean; end Program.Nodes.Case_Expressions;
33.728682
78
0.732705
1d2702a1e519ad806ea7d6c37d5815aa4a9bd6a5
949
adb
Ada
contrib/gnu/gdb/dist/gdb/testsuite/gdb.ada/display_nested/foo.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/display_nested/foo.adb
TheSledgeHammer/2.11BSD
fe61f0b9aaa273783cd027c7b5ec77e95ead2153
[ "BSD-3-Clause" ]
null
null
null
contrib/gnu/gdb/dist/gdb/testsuite/gdb.ada/display_nested/foo.adb
TheSledgeHammer/2.11BSD
fe61f0b9aaa273783cd027c7b5ec77e95ead2153
[ "BSD-3-Clause" ]
null
null
null
-- Copyright 2019-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 Pack; use Pack; procedure Foo is S : String := "test string"; I : Natural := S'First; begin declare procedure Nested is begin Do_Nothing (S); -- BREAK end Nested; begin Nested; end; end Foo;
30.612903
73
0.702845
fb22164073815fc074e90d2dd95926df65307b34
5,262
ada
Ada
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c5/c54a42e.ada
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
7
2020-05-02T17:34:05.000Z
2021-10-17T10:15:18.000Z
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c5/c54a42e.ada
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
null
null
null
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c5/c54a42e.ada
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
2
2020-07-27T00:22:36.000Z
2021-04-01T09:41:02.000Z
-- C54A42E.ADA -- Grant of Unlimited Rights -- -- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687, -- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained -- unlimited rights in the software and documentation contained herein. -- Unlimited rights are defined in DFAR 252.227-7013(a)(19). By making -- this public release, the Government intends to confer upon all -- recipients unlimited rights equal to those held by the Government. -- These rights include rights to use, duplicate, release or disclose the -- released technical data and computer software in whole or in part, in -- any manner and for any purpose whatsoever, and to have or permit others -- to do so. -- -- DISCLAIMER -- -- ALL MATERIALS OR INFORMATION HEREIN RELEASED, MADE AVAILABLE OR -- DISCLOSED ARE AS IS. THE GOVERNMENT MAKES NO EXPRESS OR IMPLIED -- WARRANTY AS TO ANY MATTER WHATSOEVER, INCLUDING THE CONDITIONS OF THE -- SOFTWARE, DOCUMENTATION OR OTHER INFORMATION RELEASED, MADE AVAILABLE -- OR DISCLOSED, OR THE OWNERSHIP, MERCHANTABILITY, OR FITNESS FOR A -- PARTICULAR PURPOSE OF SAID MATERIAL. --* -- CHECK THAT A CASE_STATEMENT CORRECTLY HANDLES A SMALL RANGE OF -- POTENTIAL VALUES OF TYPE INTEGER, SITUATED FAR FROM 0 AND -- GROUPED INTO A SMALL NUMBER OF ALTERNATIVES. -- (OPTIMIZATION TEST -- BIASED JUMP TABLE.) -- RM 03/26/81 WITH REPORT; PROCEDURE C54A42E IS USE REPORT ; BEGIN TEST( "C54A42E" , "TEST THAT A CASE_STATEMENT HANDLES CORRECTLY" & " A SMALL, FAR RANGE OF POTENTIAL VALUES OF" & " TYPE INTEGER" ); DECLARE NUMBER : CONSTANT := 4001 ; LITEXPR : CONSTANT := NUMBER + 5 ; STATCON : CONSTANT INTEGER RANGE 4000..4010 := 4009 ; DYNVAR : INTEGER RANGE 4000..4010 := IDENT_INT( 4010 ); DYNCON : CONSTANT INTEGER RANGE 4000..4010 := IDENT_INT( 4002 ); BEGIN CASE INTEGER'(4000) IS WHEN 4001 | 4004 => FAILED("WRONG ALTERNATIVE F1"); WHEN 4009 | 4002 => FAILED("WRONG ALTERNATIVE F2"); WHEN 4005 => FAILED("WRONG ALTERNATIVE F3"); WHEN 4003 | 4007..4008 => FAILED("WRONG ALTERNATIVE F4"); WHEN 4006 => FAILED("WRONG ALTERNATIVE F5"); WHEN OTHERS => NULL ; END CASE; CASE IDENT_INT(NUMBER) IS WHEN 4001 | 4004 => NULL ; WHEN 4009 | 4002 => FAILED("WRONG ALTERNATIVE G2"); WHEN 4005 => FAILED("WRONG ALTERNATIVE G3"); WHEN 4003 | 4007..4008 => FAILED("WRONG ALTERNATIVE G4"); WHEN 4006 => FAILED("WRONG ALTERNATIVE G5"); WHEN OTHERS => FAILED("WRONG ALTERNATIVE G6"); END CASE; CASE IDENT_INT(LITEXPR) IS WHEN 4001 | 4004 => FAILED("WRONG ALTERNATIVE H1"); WHEN 4009 | 4002 => FAILED("WRONG ALTERNATIVE H2"); WHEN 4005 => FAILED("WRONG ALTERNATIVE H3"); WHEN 4003 | 4007..4008 => FAILED("WRONG ALTERNATIVE H4"); WHEN 4006 => NULL ; WHEN OTHERS => FAILED("WRONG ALTERNATIVE H6"); END CASE; CASE STATCON IS WHEN 4001 | 4004 => FAILED("WRONG ALTERNATIVE I1"); WHEN 4009 | 4002 => NULL ; WHEN 4005 => FAILED("WRONG ALTERNATIVE I3"); WHEN 4003 | 4007..4008 => FAILED("WRONG ALTERNATIVE I4"); WHEN 4006 => FAILED("WRONG ALTERNATIVE I5"); WHEN OTHERS => FAILED("WRONG ALTERNATIVE I6"); END CASE; CASE DYNVAR IS WHEN 4001 | 4004 => FAILED("WRONG ALTERNATIVE J1"); WHEN 4009 | 4002 => FAILED("WRONG ALTERNATIVE J2"); WHEN 4005 => FAILED("WRONG ALTERNATIVE J3"); WHEN 4003 | 4007..4008 => FAILED("WRONG ALTERNATIVE J4"); WHEN 4006 => FAILED("WRONG ALTERNATIVE J5"); WHEN OTHERS => NULL ; END CASE; CASE DYNCON IS WHEN 4001 | 4004 => FAILED("WRONG ALTERNATIVE K1"); WHEN 4009 | 4002 => NULL ; WHEN 4005 => FAILED("WRONG ALTERNATIVE K3"); WHEN 4003 | 4007..4008 => FAILED("WRONG ALTERNATIVE K4"); WHEN 4006 => FAILED("WRONG ALTERNATIVE K5"); WHEN OTHERS => FAILED("WRONG ALTERNATIVE K6"); END CASE; END ; RESULT ; END C54A42E ;
41.761905
79
0.50171
1d7f9232a0980d63ff088afc9fbafc305e17e3b8
17,305
adb
Ada
json/src/json-types.adb
onox/json-ada
2800de3000500ac3815a593d58baded61bf462fa
[ "Apache-2.0" ]
28
2016-07-30T23:00:19.000Z
2021-09-24T01:48:18.000Z
json/src/json-types.adb
onox/json-ada
2800de3000500ac3815a593d58baded61bf462fa
[ "Apache-2.0" ]
9
2018-01-14T15:18:34.000Z
2021-09-23T14:37:22.000Z
json/src/json-types.adb
onox/json-ada
2800de3000500ac3815a593d58baded61bf462fa
[ "Apache-2.0" ]
4
2018-11-11T03:11:01.000Z
2021-09-23T02:17:03.000Z
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2016 onox <[email protected]> -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in writing, software -- distributed under the License is distributed on an "AS IS" BASIS, -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. with Ada.Characters.Handling; with Ada.Characters.Latin_1; with Ada.Strings.Bounded; with Ada.Strings.Unbounded; package body JSON.Types is package SU renames Ada.Strings.Unbounded; function "+" (Text : String) return SU.Unbounded_String renames SU.To_Unbounded_String; function "+" (Text : SU.Unbounded_String) return String renames SU.To_String; function Unescape (Text : String) return String is -- Add 1 so that the length is always positive package SB is new Ada.Strings.Bounded.Generic_Bounded_Length (Max => Text'Length + 1); Value : SB.Bounded_String; Escaped : Boolean := False; use Ada.Characters.Latin_1; begin for C of Text loop if Escaped then case C is when '"' | '\' | '/' => SB.Append (Value, C); when 'b' => SB.Append (Value, BS); when 'f' => SB.Append (Value, FF); when 'n' => SB.Append (Value, LF); when 'r' => SB.Append (Value, CR); when 't' => SB.Append (Value, HT); when others => raise Program_Error; end case; elsif C = '"' then raise Program_Error; elsif C /= '\' then if Ada.Characters.Handling.Is_Control (C) then raise Program_Error; end if; SB.Append (Value, C); end if; Escaped := not Escaped and C = '\'; end loop; return SB.To_String (Value); end Unescape; ----------------------------------------------------------------------------- -- Memory allocator -- ----------------------------------------------------------------------------- function Create_Array (Object : Memory_Allocator; Depth : Positive) return Array_Offset is begin if Depth > Object.Maximum_Depth then raise Constraint_Error with "Maximum depth (" & Object.Maximum_Depth'Image & ") exceeded"; end if; return Array_Offset (Object.Array_Levels (Depth).Length); end Create_Array; function Create_Object (Object : Memory_Allocator; Depth : Positive) return Array_Offset is begin if Depth > Object.Maximum_Depth then raise Constraint_Error with "Maximum depth (" & Object.Maximum_Depth'Image & ") exceeded"; end if; return Array_Offset (Object.Object_Levels (Depth).Length); end Create_Object; ----------------------------------------------------------------------------- -- Constructors -- ----------------------------------------------------------------------------- function Create_String (Stream : Streams.Stream_Ptr; Offset, Length : Streams.AS.Stream_Element_Offset) return JSON_Value is begin return (Kind => String_Kind, Stream => Stream, String_Offset => Offset, String_Length => Length); end Create_String; function Create_Integer (Value : Integer_Type) return JSON_Value is begin return (Kind => Integer_Kind, Integer_Value => Value); end Create_Integer; function Create_Float (Value : Float_Type) return JSON_Value is begin return (Kind => Float_Kind, Float_Value => Value); end Create_Float; function Create_Boolean (Value : Boolean) return JSON_Value is begin return (Kind => Boolean_Kind, Boolean_Value => Value); end Create_Boolean; function Create_Null return JSON_Value is begin return (Kind => Null_Kind); end Create_Null; function Create_Array (Allocator : Memory_Allocator_Ptr; Depth : Positive) return JSON_Value is begin return (Kind => Array_Kind, Allocator => Allocator, Depth => Depth, Offset => Create_Array (Allocator.all, Depth), Length => 0); end Create_Array; function Create_Object (Allocator : Memory_Allocator_Ptr; Depth : Positive) return JSON_Value is begin return (Kind => Object_Kind, Allocator => Allocator, Depth => Depth, Offset => Create_Object (Allocator.all, Depth), Length => 0); end Create_Object; ----------------------------------------------------------------------------- -- Value -- ----------------------------------------------------------------------------- function "=" (Left : String; Right : JSON_Value) return Boolean is (if Right.Kind = String_Kind then Right.Stream.Is_Equal_String (Right.String_Offset, Right.String_Length, Left) else False); function Value (Object : JSON_Value) return String is begin if Object.Kind = String_Kind then return Unescape (Object.Stream.Get_String (Object.String_Offset, Object.String_Length)); else raise Invalid_Type_Error with "Value not a string"; end if; end Value; function Value (Object : JSON_Value) return Boolean is begin if Object.Kind = Boolean_Kind then return Object.Boolean_Value; else raise Invalid_Type_Error with "Value not a boolean"; end if; end Value; function Value (Object : JSON_Value) return Integer_Type is begin if Object.Kind = Integer_Kind then return Object.Integer_Value; else raise Invalid_Type_Error with "Value not a integer"; end if; end Value; function Value (Object : JSON_Value) return Float_Type is begin if Object.Kind = Float_Kind then return Object.Float_Value; elsif Object.Kind = Integer_Kind then return Float_Type (Object.Integer_Value); else raise Invalid_Type_Error with "Value not a float"; end if; end Value; ----------------------------------------------------------------------------- function Length (Object : JSON_Value) return Natural is begin if Object.Kind in Array_Kind | Object_Kind then return Object.Length; else raise Invalid_Type_Error with "Value not an object or array"; end if; end Length; function Contains (Object : JSON_Value; Key : String) return Boolean is begin if Object.Kind = Object_Kind then for Index in 1 .. Object.Length loop declare Pair : Key_Value_Pair renames Object.Allocator.Object_Levels (Object.Depth).Element (Object.Offset + Index); begin if Key = Pair.Key then return True; end if; end; end loop; return False; else raise Invalid_Type_Error with "Value not an object"; end if; end Contains; function Get (Object : JSON_Value; Index : Positive) return JSON_Value is begin if Object.Kind = Array_Kind then return Object.Allocator.Array_Levels (Object.Depth).Element (Object.Offset + Index).Value; else raise Invalid_Type_Error with "Value not an array"; end if; exception when Constraint_Error => raise Constraint_Error with "JSON array has no element at index" & Index'Image; end Get; function Get (Object : JSON_Value; Key : String) return JSON_Value is begin if Object.Kind = Object_Kind then for Index in 1 .. Object.Length loop declare Pair : constant Key_Value_Pair := Object.Allocator.Object_Levels (Object.Depth).Element (Object.Offset + Index); begin if Key = Pair.Key then return Pair.Element; end if; end; end loop; raise Constraint_Error with "JSON object has no key '" & Key & "'"; else raise Invalid_Type_Error with "Value not an object"; end if; end Get; procedure Append (Object : in out JSON_Value; Value : JSON_Value) is begin if Object.Kind = Array_Kind then declare Length : constant Natural := Natural (Object.Allocator.Array_Levels (Object.Depth).Length); begin -- Assert that Object is the last array in a particular level -- so that its elements form a continuous array pragma Assert (Length = Object.Offset + Object.Length); end; Object.Allocator.Array_Levels (Object.Depth).Append (Array_Value'(Kind => Value.Kind, Value => Value)); Object.Length := Object.Length + 1; else raise Invalid_Type_Error with "Value not an array"; end if; end Append; procedure Insert (Object : in out JSON_Value; Key : JSON_Value; Value : JSON_Value; Check_Duplicate_Keys : Boolean) is begin if Object.Kind = Object_Kind then if Check_Duplicate_Keys and then Object.Contains (Key.Value) then raise Constraint_Error with "JSON object already has key '" & Key.Value & "'"; end if; declare Length : constant Natural := Natural (Object.Allocator.Object_Levels (Object.Depth).Length); begin -- Assert that Object is the last object in a particular level -- so that its key-value pairs form a continuous array pragma Assert (Length = Object.Offset + Object.Length); end; pragma Assert (Key.Kind = String_Kind); Object.Allocator.Object_Levels (Object.Depth).Append (Key_Value_Pair'(Kind => Value.Kind, Key => Key, Element => Value)); Object.Length := Object.Length + 1; else raise Invalid_Type_Error with "Value not an object"; end if; end Insert; ----------------------------------------------------------------------------- function Constant_Reference (Object : JSON_Value; Index : Positive) return JSON_Value renames Get; function Constant_Reference (Object : JSON_Value; Key : String) return JSON_Value renames Get; function Constant_Reference (Object : aliased JSON_Value; Position : Cursor) return JSON_Value is begin case Position.Kind is when Array_Kind => return Object.Allocator.Array_Levels (Position.Data.Depth).Element (Position.Data.Offset + Position.Index).Value; when Object_Kind => return Object.Allocator.Object_Levels (Position.Data.Depth).Element (Position.Data.Offset + Position.Index).Key; end case; end Constant_Reference; function Has_Element (Position : Cursor) return Boolean is (Position.Index <= Position.Data.Length); overriding function First (Object : Iterator) return Cursor is begin return (Kind => Object.Kind, Data => Object.Data, Index => 1); end First; overriding function Next (Object : Iterator; Position : Cursor) return Cursor is begin return (Kind => Position.Kind, Data => Position.Data, Index => Position.Index + 1); end Next; function Iterate (Object : JSON_Value) return Value_Iterator_Interfaces.Forward_Iterator'Class is begin if Object.Kind in Array_Kind | Object_Kind then return Iterator'(Kind => Object.Kind, Data => Object); else raise Program_Error with "Can only iterate over an array or object"; end if; end Iterate; ----------------------------------------------------------------------------- -- Helpers -- ----------------------------------------------------------------------------- function Get_Array_Or_Empty (Object : JSON_Value; Key : String) return JSON_Value is begin if Object.Contains (Key) then return Object.Get (Key); else return (Kind => Array_Kind, Allocator => Object.Allocator, Depth => Object.Allocator.Array_Levels'First, Offset => 0, Length => 0); end if; end Get_Array_Or_Empty; function Get_Object_Or_Empty (Object : JSON_Value; Key : String) return JSON_Value is begin if Object.Contains (Key) then return Object.Get (Key); else return (Kind => Object_Kind, Allocator => Object.Allocator, Depth => Object.Allocator.Object_Levels'First, Offset => 0, Length => 0); end if; end Get_Object_Or_Empty; function Get (Object : JSON_Value; Key : String; Default : Integer_Type) return JSON_Value is begin if Object.Contains (Key) then return Object.Get (Key); else return Create_Integer (Default); end if; end Get; function Get (Object : JSON_Value; Key : String; Default : Float_Type) return JSON_Value is begin if Object.Contains (Key) then return Object.Get (Key); else return Create_Float (Default); end if; end Get; function Get (Object : JSON_Value; Key : String; Default : Boolean) return JSON_Value is begin if Object.Contains (Key) then return Object.Get (Key); else return Create_Boolean (Default); end if; end Get; ----------------------------------------------------------------------------- -- Image - ----------------------------------------------------------------------------- function Image_String (Object : JSON_Value) return String is Text : String renames Object.Stream.Get_String (Object.String_Offset, Object.String_Length); begin -- A string backed by a stream is always escaped. The tokenizer -- will verify that the string does not contain unexpected characters return '"' & Text & '"'; end Image_String; function Image_Integer (Object : JSON_Value) return String is Result : constant String := Integer_Type'Image (Object.Integer_Value); begin if Object.Integer_Value < 0 then return Result; else return Result (2 .. Result'Last); end if; end Image_Integer; function Image_Float (Object : JSON_Value) return String is Result : constant String := Float_Type'Image (Object.Float_Value); begin if Object.Float_Value < 0.0 then return Result; else return Result (2 .. Result'Last); end if; end Image_Float; function Image_Boolean (Object : JSON_Value) return String is (if Object.Boolean_Value then "true" else "false"); function Image_Null (Object : JSON_Value) return String is ("null"); function Image_Array (Object : JSON_Value) return String is Index : Natural := 0; Result : SU.Unbounded_String := +"["; begin for Element of Object loop Index := Index + 1; if Index > 1 then SU.Append (Result, ","); end if; SU.Append (Result, Element.Image); end loop; SU.Append (Result, "]"); return +Result; end Image_Array; function Image_Object (Object : JSON_Value) return String is Index : Natural := 0; Result : SU.Unbounded_String := +"{"; begin for Key of Object loop Index := Index + 1; if Index > 1 then SU.Append (Result, ','); end if; SU.Append (Result, '"' & Key.Value & '"'); SU.Append (Result, ':'); SU.Append (Result, Object.Get (Key.Value).Image); end loop; SU.Append (Result, '}'); return +Result; end Image_Object; function Image (Object : JSON_Value) return String is begin case Object.Kind is when Array_Kind => return Image_Array (Object); when Object_Kind => return Image_Object (Object); when String_Kind => return Image_String (Object); when Integer_Kind => return Image_Integer (Object); when Float_Kind => return Image_Float (Object); when Boolean_Kind => return Image_Boolean (Object); when Null_Kind => return Image_Null (Object); end case; end Image; end JSON.Types;
33.151341
92
0.56423