CombinedText
stringlengths
4
3.42M
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- X R _ T A B L S -- -- -- -- S p e c -- -- -- -- Copyright (C) 1998-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. 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. -- -- -- ------------------------------------------------------------------------------ -- We need comment here saying what this package is??? with GNAT.OS_Lib; package Xr_Tabls is ------------------- -- Project files -- ------------------- function ALI_File_Name (Ada_File_Name : String) return String; -- Returns the ali file name corresponding to Ada_File_Name procedure Create_Project_File (Name : String); -- Open and parse a new project file. If the file Name could not be -- opened or is not a valid project file, then a project file associated -- with the standard default directories is returned function Next_Obj_Dir return String; -- Returns the next directory to visit to find related ali files -- If there are no more such directories, returns a null string. function Current_Obj_Dir return String; -- Returns the obj_dir which was returned by the last Next_Obj_Dir call procedure Reset_Obj_Dir; -- Reset the iterator for Obj_Dir ------------ -- Tables -- ------------ type Declaration_Reference is private; Empty_Declaration : constant Declaration_Reference; type Declaration_Array is array (Natural range <>) of Declaration_Reference; type Declaration_Array_Access is access Declaration_Array; type File_Reference is private; Empty_File : constant File_Reference; type Reference is private; Empty_Reference : constant Reference; type Reference_Array is array (Natural range <>) of Reference; type Reference_Array_Access is access Reference_Array; procedure Free (Arr : in out Reference_Array_Access); function Add_Declaration (File_Ref : File_Reference; Symbol : String; Line : Natural; Column : Natural; Decl_Type : Character; Is_Parameter : Boolean := False; Remove_Only : Boolean := False; Symbol_Match : Boolean := True) return Declaration_Reference; -- Add a new declaration in the table and return the index to it. Decl_Type -- is the type of the entity Any previous instance of this entity in the -- htable is removed. If Remove_Only is True, then any previous instance is -- removed, but the new entity is never inserted. Symbol_Match should be -- set to False if the name of the symbol doesn't match the pattern from -- the command line. In that case, the entity will not be output by -- gnatfind. If Symbol_Match is True, the entity will only be output if -- the file name itself matches. Is_Parameter should be set to True if -- the entity is known to be a subprogram parameter. procedure Add_Parent (Declaration : in out Declaration_Reference; Symbol : String; Line : Natural; Column : Natural; File_Ref : File_Reference); -- The parent declaration (Symbol in file File_Ref at position Line and -- Column) information is added to Declaration. function Add_To_Xref_File (File_Name : String; Visited : Boolean := True; Emit_Warning : Boolean := False; Gnatchop_File : String := ""; Gnatchop_Offset : Integer := 0) return File_Reference; -- Add a new reference to a file in the table. Ref is used to return the -- index in the table where this file is stored. Visited is the value which -- will be used in the table (if True, the file will not be returned by -- Next_Unvisited_File). If Emit_Warning is True and the ali file does -- not exist or does not have cross-referencing information, then a -- warning will be emitted. Gnatchop_File is the name of the file that -- File_Name was extracted from through a call to "gnatchop -r" (using -- pragma Source_Reference). Gnatchop_Offset should be the index of the -- first line of File_Name within the Gnatchop_File. procedure Add_Line (File : File_Reference; Line : Natural; Column : Natural); -- Add a new reference in a file, which the user has provided on the -- command line. This is used for an optimized matching algorithm. procedure Add_Reference (Declaration : Declaration_Reference; File_Ref : File_Reference; Line : Natural; Column : Natural; Ref_Type : Character; Labels_As_Ref : Boolean); -- Add a new reference (Ref_Type = 'r'), body (Ref_Type = 'b') or -- modification (Ref_Type = 'm') to an entity. If Labels_As_Ref is True, -- then the references to the entity after the end statements ("end Foo") -- are counted as actual references. This means that the entity will never -- be reported as unreferenced (for instance in the case of gnatxref -u). function Get_Declarations (Sorted : Boolean := True) return Declaration_Array_Access; -- Return a sorted list of all the declarations in the application. -- Freeing this array is the responsibility of the caller, however it -- shouldn't free the actual contents of the array, which are pointers -- to internal data function References_Count (Decl : Declaration_Reference; Get_Reads : Boolean := False; Get_Writes : Boolean := False; Get_Bodies : Boolean := False) return Natural; -- Return the number of references in Decl for the categories specified -- by the Get_* parameters (read-only accesses, write accesses and bodies) function Get_References (Decl : Declaration_Reference; Get_Reads : Boolean := False; Get_Writes : Boolean := False; Get_Bodies : Boolean := False) return Reference_Array_Access; -- Return a sorted list of all references to the entity in decl. The -- parameters Get_* are used to specify what kind of references should be -- merged and returned (read-only accesses, write accesses and bodies). function Get_Column (Decl : Declaration_Reference) return String; function Get_Column (Ref : Reference) return String; function Get_Declaration (File_Ref : File_Reference; Line : Natural; Column : Natural) return Declaration_Reference; -- Returns reference to the declaration found in file File_Ref at the -- given Line and Column function Get_Parent (Decl : Declaration_Reference) return Declaration_Reference; -- Returns reference to Decl's parent declaration function Get_Emit_Warning (File : File_Reference) return Boolean; -- Returns the Emit_Warning field of the structure function Get_Gnatchop_File (File : File_Reference; With_Dir : Boolean := False) return String; function Get_Gnatchop_File (Ref : Reference; With_Dir : Boolean := False) return String; function Get_Gnatchop_File (Decl : Declaration_Reference; With_Dir : Boolean := False) return String; -- Return the name of the file that File was extracted from through a -- call to "gnatchop -r". The file name for File is returned if File -- was not extracted from such a file. The directory will be given only -- if With_Dir is True. function Get_File (Decl : Declaration_Reference; With_Dir : Boolean := False) return String; pragma Inline (Get_File); -- Extract column number or file name from reference function Get_File (Ref : Reference; With_Dir : Boolean := False) return String; pragma Inline (Get_File); function Get_File (File : File_Reference; With_Dir : Boolean := False; Strip : Natural := 0) return String; -- Returns the file name (and its directory if With_Dir is True or the user -- has used the -f switch on the command line. If Strip is not 0, then the -- last Strip-th "-..." substrings are removed first. For instance, with -- Strip=2, a file name "parent-child1-child2-child3.ali" would be returned -- as "parent-child1.ali". This is used when looking for the ALI file to -- use for a package, since for separates with have to use the parent's -- ALI. The null string is returned if there is no such parent unit. -- -- Note that this version of Get_File is not inlined function Get_File_Ref (Ref : Reference) return File_Reference; function Get_Line (Decl : Declaration_Reference) return String; function Get_Line (Ref : Reference) return String; function Get_Symbol (Decl : Declaration_Reference) return String; function Get_Type (Decl : Declaration_Reference) return Character; function Is_Parameter (Decl : Declaration_Reference) return Boolean; -- Functions that return the contents of a declaration function Get_Source_Line (Ref : Reference) return String; function Get_Source_Line (Decl : Declaration_Reference) return String; -- Return the source line associated with the reference procedure Grep_Source_Files; -- Parse all the source files which have at least one reference, and grep -- the appropriate source lines so that we'll be able to display them. This -- function should be called once all the .ali files have been parsed, and -- only if the appropriate user switch -- has been used (gnatfind -s). -- -- Note: To save memory, the strings for the source lines are shared. Thus -- it is no longer possible to free the references, or we would free the -- same chunk multiple times. It doesn't matter, though, since this is only -- called once, prior to exiting gnatfind. function Longest_File_Name return Natural; -- Returns the longest file name found function Match (Decl : Declaration_Reference) return Boolean; -- Return True if the declaration matches function Match (File : File_Reference; Line : Natural; Column : Natural) return Boolean; -- Returns True if File:Line:Column was given on the command line -- by the user function Next_Unvisited_File return File_Reference; -- Returns the next unvisited library file in the list If there is no more -- unvisited file, return Empty_File. Two calls to this subprogram will -- return different files. procedure Set_Default_Match (Value : Boolean); -- Set the default value for match in declarations. -- This is used so that if no file was provided in the -- command line, then every file match procedure Reset_Directory (File : File_Reference); -- Reset the cached directory for file. Next time Get_File is called, the -- directory will be recomputed. procedure Set_Unvisited (File_Ref : File_Reference); -- Set File_Ref as unvisited. So Next_Unvisited_File will return it procedure Read_File (File_Name : String; Contents : out GNAT.OS_Lib.String_Access); -- Reads File_Name into the newly allocated string Contents. Types.EOF -- character will be added to the returned Contents to simplify parsing. -- Name_Error is raised if the file was not found. End_Error is raised if -- the file could not be read correctly. For most systems correct reading -- means that the number of bytes read is equal to the file size. private type Project_File (Src_Dir_Length, Obj_Dir_Length : Natural) is record Src_Dir : String (1 .. Src_Dir_Length); Src_Dir_Index : Integer; Obj_Dir : String (1 .. Obj_Dir_Length); Obj_Dir_Index : Integer; Last_Obj_Dir_Start : Natural; end record; type Project_File_Ptr is access all Project_File; -- This is actually a list of all the directories to be searched, -- either for source files or for library files type Ref_In_File; type Ref_In_File_Ptr is access all Ref_In_File; type Ref_In_File is record Line : Natural; Column : Natural; Next : Ref_In_File_Ptr := null; end record; type File_Record; type File_Reference is access all File_Record; Empty_File : constant File_Reference := null; type Cst_String_Access is access constant String; procedure Free (Str : in out Cst_String_Access); type File_Record is record File : Cst_String_Access; Dir : GNAT.OS_Lib.String_Access; Lines : Ref_In_File_Ptr := null; Visited : Boolean := False; Emit_Warning : Boolean := False; Gnatchop_File : GNAT.OS_Lib.String_Access := null; Gnatchop_Offset : Integer := 0; Next : File_Reference := null; end record; -- Holds a reference to a source file, that was referenced in at least one -- ALI file. Gnatchop_File will contain the name of the file that File was -- extracted From. Gnatchop_Offset contains the index of the first line of -- File within Gnatchop_File. These two fields are used to properly support -- gnatchop files and pragma Source_Reference. -- -- Lines is used for files that were given on the command line, to -- memorize the lines and columns that the user specified. type Reference_Record; type Reference is access all Reference_Record; Empty_Reference : constant Reference := null; type Reference_Record is record File : File_Reference; Line : Natural; Column : Natural; Source_Line : Cst_String_Access; Next : Reference := null; end record; -- File is a reference to the Ada source file -- Source_Line is the Line as it appears in the source file. This -- field is only used when the switch is set on the command line of -- gnatfind. type Declaration_Record; type Declaration_Reference is access all Declaration_Record; Empty_Declaration : constant Declaration_Reference := null; type Declaration_Record (Symbol_Length : Natural) is record Key : Cst_String_Access; Symbol : String (1 .. Symbol_Length); Decl : Reference; Is_Parameter : Boolean := False; -- True if entity is subprog param Decl_Type : Character; Body_Ref : Reference := null; Ref_Ref : Reference := null; Modif_Ref : Reference := null; Match : Boolean := False; Par_Symbol : Declaration_Reference := null; Next : Declaration_Reference := null; end record; -- The lists of referenced (Body_Ref, Ref_Ref and Modif_Ref) are -- kept unsorted until the results needs to be printed. This saves -- lots of time while the internal tables are created. pragma Inline (Get_Column); pragma Inline (Get_Emit_Warning); pragma Inline (Get_File_Ref); pragma Inline (Get_Line); pragma Inline (Get_Symbol); pragma Inline (Get_Type); pragma Inline (Longest_File_Name); end Xr_Tabls;
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Ada Modeling Framework -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2011-2012, Vadim Godunko <vgodunko@gmail.com> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ -- This file is generated, don't edit it. ------------------------------------------------------------------------------ with AMF.Elements.Generic_Hash; function AMF.UML.Behaviored_Classifiers.Hash is new AMF.Elements.Generic_Hash (UML_Behaviored_Classifier, UML_Behaviored_Classifier_Access);
package pointer_variable_bounds_q is type A_SIZE_TYPE is new INTEGER range 0 .. 65536; function A_MAX_COMPS return A_SIZE_TYPE; end pointer_variable_bounds_q;
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- -- -- This package is about Ada Visibility Rules as they defined in the Reference -- Manual (Section 8). -- -- The package provides Context type. The user populates context by creating -- named entities and declarative regions. The user also queries the context -- to find the view corresponding to given symbol (identifier, operator or -- character literal). -- -- View provides access to defining name nodes, entity kind and properties. private with Ada.Containers.Vectors; with Program.Elements.Defining_Names; with Program.Symbols; package Program.Visibility is pragma Preelaborate; subtype Defining_Name is Program.Elements.Defining_Names.Defining_Name_Access; -- Defining name AST node subtype Symbol is Program.Symbols.Symbol; -- A representation of an identifier, operator or character literal function Standard return Symbol renames Program.Symbols.Standard; -- Symbol of Standard Ada package type View_Kind is (Enumeration_Type_View, Signed_Integer_Type_View, Modular_Type_View, Float_Point_Type_View, Array_Type_View, Implicit_Type_View, Enumeration_Literal_View, Character_Literal_View, Subtype_View, Exception_View, Package_View); -- Kind of entity view subtype Type_View_Kind is View_Kind range Enumeration_Type_View .. Implicit_Type_View; -- Kind of type view type View (Kind : View_Kind := Package_View) is private; -- An information about a program entity type View_Array is array (Positive range <>) of View; -- Array of views function Name (Self : View) return Defining_Name; -- Get defining name of the entity function Has_Region (Self : View) return Boolean; -- Check if given entity could contain nested declarative region function Enumeration_Type (Self : View) return View with Pre => Self.Kind in Enumeration_Literal_View | Character_Literal_View; -- Return enumeration type for given enumeration or character literal function Enumeration_Literals (Self : View) return View_Array with Pre => Self.Kind = Enumeration_Type_View; -- Return enumeration or character literals for given enumeration type function Is_Character_Type (Self : View) return Boolean with Pre => Self.Kind = Enumeration_Type_View; -- If given enumeration type is a character type function Subtype_Mark (Self : View) return View with Pre => Self.Kind = Subtype_View; -- Return type of subtype declaration function Has_Constraint (Self : View) return Boolean with Pre => Self.Kind = Subtype_View; -- If given subtype has a constraint function Indexes (Self : View) return View_Array with Pre => Self.Kind = Array_Type_View; -- Return index types for given array type function Component (Self : View) return View with Pre => Self.Kind = Array_Type_View; -- Return component type for given array type function Immediate_Visible (Self : View; Symbol : Program.Visibility.Symbol) return View_Array with Pre => Has_Region (Self); -- Return array of views for immediate visible names with given symbol type Snapshot is tagged limited private; -- Snapshot keeps state of a context. We save snapshots for private -- and public parts of entities. type Snapshot_Access is access all Snapshot'Class with Storage_Size => 0; type Context is tagged limited private; -- A context keeps map from symbol to its view. It also tracks set of -- snapshots. not overriding procedure Create_Empty_Context (Self : aliased in out Context); -- Initialize a context to empty state before loading Standard package not overriding function Create_Snapshot (Self : aliased in out Context) return Snapshot_Access; -- Store state of the context into a snapshot not overriding procedure Restore_Snapshot (Self : in out Context; Snapshot : not null Snapshot_Access); -- Restore snapshot. For example before leaving a package, restore -- the snapshot of its public part. not overriding procedure Enter_Snapshot (Self : in out Context; Snapshot : not null Snapshot_Access); -- Take topmost element of the snapshot and enter its declarative region. -- Use-case example: -- -- declare -- package P is -- type T is private; -- procedure Proc (X : T); -- private --> Public_Snap := Create_Snapshot; -- type T is new Integer; -- end P; --> Private_Snap := Create_Snapshot; -- -- --> Restore_Snapshot (Public_Snap); Leave_Declaration; -- V : P.T; -- package body P is --> Enter_Snapshot (Private_Snap); -- -- not overriding procedure Start_Private_Part -- (Self : in out Context; -- Snapshot : not null Snapshot_Access); -- Make private declarations visible. Current "point of view" should be -- in a public part of a library unit. Snapshot should be taken from the -- parent of the current unit. -- Use-case example: -- -- package P is -- type T is private; -- private --> Public_Snap := Create_Snapshot; -- type T is new Integer; -- end P; --> Private_Snap := Create_Snapshot; -- -- --> Restore_Snapshot (Public_Snap); Leave_Declaration; -- package P.Q is --> Create_Package (P.Q) -- V : T; -- private --> Start_Private_Part (Private_Snap); -- --> Now we see that T is integer and its oprerations like "+", "/" -- not overriding procedure Create_Implicit_Type (Self : in out Context; Symbol : Program.Visibility.Symbol; Name : Defining_Name); -- Add an implicit type view to the context. not overriding procedure Create_Enumeration_Type (Self : in out Context; Symbol : Program.Visibility.Symbol; Name : Defining_Name); -- Add an enumeration type view to the context. not overriding procedure Create_Enumeration_Literal (Self : in out Context; Symbol : Program.Visibility.Symbol; Name : Defining_Name; Enumeration_Type : View) with Pre => Enumeration_Type.Kind = Enumeration_Type_View; -- Add an enumeration literal view to the context. not overriding procedure Create_Character_Literal (Self : in out Context; Symbol : Program.Visibility.Symbol; Name : Defining_Name; Enumeration_Type : View) with Pre => Enumeration_Type.Kind = Enumeration_Type_View; -- Add a character literal view to the context. type Meta_Character_Literal_Kind is (Meta_Character, Meta_Wide_Character, Meta_Wide_Wide_Character); -- Meta character literal matches any character name in its class. -- We use them to avoid a million of defining names in the context. not overriding procedure Create_Character_Literal (Self : in out Context; Symbol : Program.Visibility.Symbol; Name : Defining_Name; Meta_Character : Meta_Character_Literal_Kind; Enumeration_Type : View) with Pre => Enumeration_Type.Kind = Enumeration_Type_View; -- Add a meta character literal view to the context. not overriding procedure Create_Signed_Integer_Type (Self : in out Context; Symbol : Program.Visibility.Symbol; Name : Defining_Name); -- Add a signed integer type view to the context. not overriding procedure Create_Modular_Type (Self : in out Context; Symbol : Program.Visibility.Symbol; Name : Defining_Name); -- Add a unsigned integer type view to the context. not overriding procedure Create_Float_Point_Type (Self : in out Context; Symbol : Program.Visibility.Symbol; Name : Defining_Name); -- Add a float point type view to the context. not overriding procedure Create_Array_Type (Self : in out Context; Symbol : Program.Visibility.Symbol; Name : Defining_Name; Indexes : View_Array; Component : View) with Pre => Component.Kind in Type_View_Kind; -- Add an array type view to the context. not overriding procedure Create_Subtype (Self : in out Context; Symbol : Program.Visibility.Symbol; Name : Defining_Name; Subtype_Mark : View; Has_Constraint : Boolean) with Pre => Subtype_Mark.Kind in Type_View_Kind; -- Add a subtype view to the context. not overriding procedure Create_Package (Self : in out Context; Symbol : Program.Visibility.Symbol; Name : Defining_Name); -- Add an empty package view to the context not overriding procedure Create_Exception (Self : in out Context; Symbol : Program.Visibility.Symbol; Name : Defining_Name); -- Add an exception view to the context. not overriding procedure Leave_Declarative_Region (Self : in out Context); -- Leave current declarative region the context. not overriding function Immediate_Visible (Self : aliased Context; Symbol : Program.Visibility.Symbol) return View_Array; -- Return array of views for immediate visible names with given symbol not overriding function Latest_View (Self : aliased Context) return View; -- View that was added to the context private type Item_Offset is range 0 .. 2 ** 31 - 1; -- kind of pointer to an Item. Zero means no value subtype Item_Offset_Positive is Item_Offset range 1 .. Item_Offset'Last; type Entity_Identifier is mod 2 ** 32; package Item_Offset_Vectors is new Ada.Containers.Vectors (Index_Type => Positive, Element_Type => Item_Offset_Positive); subtype Has_Region_Kind is View_Kind range Package_View .. Package_View; type Item (Kind : View_Kind := Package_View) is record Symbol : Program.Visibility.Symbol; Name : Defining_Name; Entity_Id : Entity_Identifier; -- The index of the item from which we copied this item case Kind is when Has_Region_Kind => Region : Item_Offset_Vectors.Vector; -- If Item has nested region, this is an indexes of its elements when others => case Kind is when Enumeration_Type_View => Is_Character_Type : Boolean; Enumeration_Literals : Item_Offset_Vectors.Vector; -- indexes of its enumeration literals when Enumeration_Literal_View => Enumeration_Type : Item_Offset_Positive; when Character_Literal_View => Character_Type : Item_Offset_Positive; when Subtype_View => Subtype_Mark : Item_Offset_Positive; Has_Constraint : Boolean; when Array_Type_View => Indexes : Item_Offset_Vectors.Vector; Component : Item_Offset_Positive; when others => null; end case; end case; end record; type Region is record Enclosing_Item : Item_Offset_Positive; -- Item, that represents a declarative region end record; package Region_Vectors is new Ada.Containers.Vectors (Index_Type => Positive, Element_Type => Region); package Item_Vectors is new Ada.Containers.Vectors (Index_Type => Item_Offset_Positive, Element_Type => Item); type Snapshot is tagged limited record Stack : Region_Vectors.Vector; -- Context is a stack of regions Data : Item_Vectors.Vector; end record; type Context is tagged limited record Last_Entity : Entity_Identifier := 0; -- Unique entity counter Data : Item_Vectors.Vector; -- All items are stored here Stack : Region_Vectors.Vector; -- Context is a stack of regions end record; type View (Kind : View_Kind := Package_View) is record Env : access constant Context; Index : Item_Offset_Positive; end record; end Program.Visibility;
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Ada Modeling Framework -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2012, Vadim Godunko <vgodunko@gmail.com> -- -- 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. ------------------------------------------------------------------------------ limited with AMF.UML.Call_Operation_Actions; package AMF.Utp.Start_Timer_Actions is pragma Preelaborate; type Utp_Start_Timer_Action is limited interface; type Utp_Start_Timer_Action_Access is access all Utp_Start_Timer_Action'Class; for Utp_Start_Timer_Action_Access'Storage_Size use 0; not overriding function Get_Base_Call_Operation_Action (Self : not null access constant Utp_Start_Timer_Action) return AMF.UML.Call_Operation_Actions.UML_Call_Operation_Action_Access is abstract; -- Getter of StartTimerAction::base_CallOperationAction. -- not overriding procedure Set_Base_Call_Operation_Action (Self : not null access Utp_Start_Timer_Action; To : AMF.UML.Call_Operation_Actions.UML_Call_Operation_Action_Access) is abstract; -- Setter of StartTimerAction::base_CallOperationAction. -- end AMF.Utp.Start_Timer_Actions;
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- G N A T . D I R E C T O R Y _ O P E R A T I O N S -- -- -- -- S p e c -- -- -- -- Copyright (C) 1998-2020, AdaCore -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ -- Directory operations -- This package provides routines for manipulating directories. A directory -- can be treated as a file, using open and close routines, and a scanning -- routine is provided for iterating through the entries in a directory. -- See also child package GNAT.Directory_Operations.Iteration with System; with Ada.Strings.Maps; package GNAT.Directory_Operations is subtype Dir_Name_Str is String; -- A subtype used in this package to represent string values that are -- directory names. A directory name is a prefix for files that appear -- with in the directory. This means that for UNIX systems, the string -- includes a final '/', and for DOS-like systems, it includes a final -- '\' character. It can also include drive letters if the operating -- system provides for this. The final '/' or '\' in a Dir_Name_Str is -- optional when passed as a procedure or function in parameter. type Dir_Type is limited private; -- A value used to reference a directory. Conceptually this value includes -- the identity of the directory, and a sequential position within it. Null_Dir : constant Dir_Type; -- Represent the value for an uninitialized or closed directory Directory_Error : exception; -- Exception raised if the directory cannot be opened, read, closed, -- created or if it is not possible to change the current execution -- environment directory. Dir_Separator : constant Character; -- Running system default directory separator -------------------------------- -- Basic Directory operations -- -------------------------------- procedure Change_Dir (Dir_Name : Dir_Name_Str); -- Changes the working directory of the current execution environment -- to the directory named by Dir_Name. Raises Directory_Error if Dir_Name -- does not exist. procedure Make_Dir (Dir_Name : Dir_Name_Str); -- Create a new directory named Dir_Name. Raises Directory_Error if -- Dir_Name cannot be created. procedure Remove_Dir (Dir_Name : Dir_Name_Str; Recursive : Boolean := False); -- Remove the directory named Dir_Name. If Recursive is set to True, then -- Remove_Dir removes all the subdirectories and files that are in -- Dir_Name. Raises Directory_Error if Dir_Name cannot be removed. function Get_Current_Dir return Dir_Name_Str; -- Returns the current working directory for the execution environment procedure Get_Current_Dir (Dir : out Dir_Name_Str; Last : out Natural); -- Returns the current working directory for the execution environment -- The name is returned in Dir_Name. Last is the index in Dir_Name such -- that Dir_Name (Last) is the last character written. If Dir_Name is -- too small for the directory name, the name will be truncated before -- being copied to Dir_Name. ------------------------- -- Pathname Operations -- ------------------------- subtype Path_Name is String; -- All routines using Path_Name handle both styles (UNIX and DOS) of -- directory separators (either slash or back slash). function Dir_Name (Path : Path_Name) return Dir_Name_Str; -- Returns directory name for Path. This is similar to the UNIX dirname -- command. Everything after the last directory separator is removed. If -- there is no directory separator the current working directory is -- returned. Note that the contents of Path is case-sensitive on -- systems that have case-sensitive file names (like Unix), and -- non-case-sensitive on systems where the file system is also non- -- case-sensitive (such as Windows). function Base_Name (Path : Path_Name; Suffix : String := "") return String; -- Any directory prefix is removed. A directory prefix is defined as -- text up to and including the last directory separator character in -- the input string. In addition if Path ends with the string given for -- Suffix, then it is also removed. Note that Suffix here can be an -- arbitrary string (it is not required to be a file extension). This -- is equivalent to the UNIX basename command. The following rule is -- always true: -- -- 'Path' and 'Dir_Name (Path) & Dir_Separator & Base_Name (Path)' -- represent the same file. -- -- The comparison of Suffix is case-insensitive on systems like Windows -- where the file search is case-insensitive (e.g. on such systems, -- Base_Name ("/Users/AdaCore/BB12.patch", ".Patch") returns "BB12"). -- -- Note that the index bounds of the result match the corresponding indexes -- in the Path string (you cannot assume that the lower bound of the -- returned string is one). function File_Extension (Path : Path_Name) return String; -- Return the file extension. This is defined as the string after the -- last dot, including the dot itself. For example, if the file name -- is "file1.xyz.adq", then the returned value would be ".adq". If no -- dot is present in the file name, or the last character of the file -- name is a dot, then the null string is returned. function File_Name (Path : Path_Name) return String; -- Returns the file name and the file extension if present. It removes all -- path information. This is equivalent to Base_Name with default Extension -- value. type Path_Style is (UNIX, DOS, System_Default); function Format_Pathname (Path : Path_Name; Style : Path_Style := System_Default) return Path_Name; -- Removes all double directory separator and converts all '\' to '/' if -- Style is UNIX and converts all '/' to '\' if Style is set to DOS. This -- function will help to provide a consistent naming scheme running for -- different environments. If style is set to System_Default the routine -- will use the default directory separator on the running environment. -- -- The Style argument indicates the syntax to be used for path names: -- -- DOS -- Use '\' as the directory separator (default on Windows) -- -- UNIX -- Use '/' as the directory separator (default on all other systems) -- -- System_Default -- Use the default style for the current system type Environment_Style is (UNIX, DOS, Both, System_Default); function Expand_Path (Path : Path_Name; Mode : Environment_Style := System_Default) return Path_Name; -- Returns Path with environment variables replaced by the current -- environment variable value. For example, $HOME/mydir will be replaced -- by /home/joe/mydir if $HOME environment variable is set to /home/joe and -- Mode is UNIX. If an environment variable does not exist the variable -- will be replaced by the empty string. Two dollar or percent signs are -- replaced by a single dollar/percent sign. Note that a variable must -- start with a letter. -- -- The Mode argument indicates the recognized syntax for environment -- variables as follows: -- -- UNIX -- Environment variables use $ as prefix and can use curly brackets -- as in ${HOME}/mydir. If there is no closing curly bracket for an -- opening one then no translation is done, so for example ${VAR/toto -- is returned as ${VAR/toto. The use of {} brackets is required if -- the environment variable name contains other than alphanumeric -- characters. -- -- DOS -- Environment variables uses % as prefix and suffix (e.g. %HOME%/dir). -- The name DOS refer to "DOS-like" environment. This includes all -- Windows systems. -- -- Both -- Recognize both forms described above. -- -- System_Default -- Uses either DOS on Windows, and UNIX on all other systems, depending -- on the running environment. --------------- -- Iterators -- --------------- procedure Open (Dir : out Dir_Type; Dir_Name : Dir_Name_Str); -- Opens the directory named by Dir_Name and returns a Dir_Type value -- that refers to this directory, and is positioned at the first entry. -- Raises Directory_Error if Dir_Name cannot be accessed. In that case -- Dir will be set to Null_Dir. procedure Close (Dir : in out Dir_Type); -- Closes the directory stream referred to by Dir. After calling Close -- Is_Open will return False. Dir will be set to Null_Dir. -- Raises Directory_Error if Dir has not be opened (Dir = Null_Dir). function Is_Open (Dir : Dir_Type) return Boolean; -- Returns True if Dir is open, or False otherwise procedure Read (Dir : Dir_Type; Str : out String; Last : out Natural); -- Reads the next entry from the directory and sets Str to the name -- of that entry. Last is the index in Str such that Str (Last) is the -- last character written. Last is 0 when there are no more files in the -- directory. If Str is too small for the file name, the file name will -- be truncated before being copied to Str. The list of files returned -- includes directories in systems providing a hierarchical directory -- structure, including . (the current directory) and .. (the parent -- directory) in systems providing these entries. The directory is -- returned in target-OS form. Raises Directory_Error if Dir has not -- be opened (Dir = Null_Dir). function Read_Is_Thread_Safe return Boolean; -- Indicates if procedure Read is thread safe. On systems where the -- target system supports this functionality, Read is thread safe, -- and this function returns True (e.g. this will be the case on any -- UNIX or UNIX-like system providing a correct implementation of the -- function readdir_r). If the system cannot provide a thread safe -- implementation of Read, then this function returns False. private type Dir_Type_Value is new System.Address; -- Low-level address directory structure as returned by opendir in C type Dir_Type is access Dir_Type_Value; Null_Dir : constant Dir_Type := null; pragma Import (C, Dir_Separator, "__gnat_dir_separator"); Dir_Seps : constant Ada.Strings.Maps.Character_Set := Ada.Strings.Maps.To_Set ("/\"); -- UNIX and DOS style directory separators end GNAT.Directory_Operations;
with ACO.Messages; with ACO.OD; with ACO.States; private with ACO.Log; private with Interfaces; package ACO.Protocols.Error_Control is EC_Id : constant ACO.Messages.Function_Code := 16#E#; type EC (Id : ACO.Messages.Node_Nr; Od : not null access ACO.OD.Object_Dictionary'Class) is abstract new Protocol with private; overriding function Is_Valid (This : in out EC; Msg : in ACO.Messages.Message) return Boolean; procedure Message_Received (This : in out EC; Msg : in ACO.Messages.Message) with Pre => This.Is_Valid (Msg); private package EC_Commands is use Interfaces; use ACO.States; use type ACO.Messages.Node_Nr; use type ACO.Messages.Function_Code; type EC_State is new Interfaces.Unsigned_8; Bootup : constant := 0; Stop : constant := 4; Op : constant := 5; Pre_Op : constant := 127; To_EC_State : constant array (ACO.States.State) of EC_State := (Unknown_State | Initializing => Bootup, Pre_Operational => Pre_Op, Operational => Op, Stopped => Stop); function Get_EC_State (Msg : ACO.Messages.Message) return EC_State is (EC_State (Msg.Data (0))); function To_State (S : EC_State) return ACO.States.State is (case S is when Bootup => Initializing, when Pre_Op => Pre_Operational, when Op => Operational, when Stop => Stopped, when others => Unknown_State); function Get_State (Msg : ACO.Messages.Message) return ACO.States.State is (To_State (Get_EC_State (Msg))); function Is_Valid_Command (Msg : ACO.Messages.Message; Id : ACO.Messages.Node_Nr) return Boolean is (ACO.Messages.Func_Code (Msg) = EC_Id and then ACO.Messages.Node_Id (Msg) = Id and then Msg.Length = EC_State'Size / 8); function Is_Bootup (S : EC_State) return Boolean is (S = Bootup); function Is_Bootup (Msg : ACO.Messages.Message) return Boolean is (Get_EC_State (Msg) = Bootup); end EC_Commands; type EC (Id : ACO.Messages.Node_Nr; Od : not null access ACO.OD.Object_Dictionary'Class) is abstract new Protocol (Od) with null record; procedure On_Heartbeat (This : in out EC; Id : in ACO.Messages.Node_Nr; Hbt_State : in EC_Commands.EC_State) is null; procedure EC_Log (This : in out EC; Level : in ACO.Log.Log_Level; Message : in String); end ACO.Protocols.Error_Control;
<!DOCTYPE html> <!--[if IE]><![endif]--> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <title>Class CalenderBasedReminderTransition </title> <meta name="viewport" content="width=device-width"> <meta name="title" content="Class CalenderBasedReminderTransition "> <meta name="generator" content="docfx 2.51.0.0"> <link rel="shortcut icon" href="../favicon.ico"> <link rel="stylesheet" href="../styles/docfx.vendor.css"> <link rel="stylesheet" href="../styles/docfx.css"> <link rel="stylesheet" href="../styles/main.css"> <meta property="docfx:navrel" content="../toc.html"> <meta property="docfx:tocrel" content="toc.html"> </head> <body data-spy="scroll" data-target="#affix" data-offset="120"> <div id="wrapper"> <header> <nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="../index.html"> <img id="logo" class="svg" src="../logo.svg" alt=""> </a> </div> <div class="collapse navbar-collapse" id="navbar"> <form class="navbar-form navbar-right" role="search" id="search"> <div class="form-group"> <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off"> </div> </form> </div> </div> </nav> <div class="subnav navbar navbar-default"> <div class="container hide-when-search" id="breadcrumb"> <ul class="breadcrumb"> <li></li> </ul> </div> </div> </header> <div role="main" class="container body-content hide-when-search"> <div class="sidenav hide-when-search"> <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a> <div class="sidetoggle collapse" id="sidetoggle"> <div id="sidetoc"></div> </div> </div> <div class="article row grid-right"> <div class="col-md-10"> <article class="content wrap" id="_content" data-uid="alps_.net_api.CalenderBasedReminderTransition"> <h1 id="alps__net_api_CalenderBasedReminderTransition" data-uid="alps_.net_api.CalenderBasedReminderTransition" class="text-break">Class CalenderBasedReminderTransition </h1> <div class="markdown level0 summary"><p sourcefile="obj/api/alps_.net_api.CalenderBasedReminderTransition.yml" sourcestartlinenumber="2" sourceendlinenumber="2">Class that represents an CalenderBasedReminderTransition</p> </div> <div class="markdown level0 conceptual"></div> <div class="inheritance"> <h5>Inheritance</h5> <div class="level0"><span class="xref">System.Object</span></div> <div class="level1"><a class="xref" href="alps_.net_api.PASSProcessModelElement.html">PASSProcessModelElement</a></div> <div class="level2"><a class="xref" href="alps_.net_api.BehaviorDescriptionComponent.html">BehaviorDescriptionComponent</a></div> <div class="level3"><a class="xref" href="alps_.net_api.Transition.html">Transition</a></div> <div class="level4"><a class="xref" href="alps_.net_api.TimeTransition.html">TimeTransition</a></div> <div class="level5"><a class="xref" href="alps_.net_api.ReminderTransition.html">ReminderTransition</a></div> <div class="level6"><span class="xref">CalenderBasedReminderTransition</span></div> </div> <div classs="implements"> <h5>Implements</h5> <div><a class="xref" href="alps_.net_api.ICalenderBasedReminderTransition.html">ICalenderBasedReminderTransition</a></div> <div><a class="xref" href="alps_.net_api.IReminderTransition.html">IReminderTransition</a></div> <div><a class="xref" href="alps_.net_api.ITimeTransition.html">ITimeTransition</a></div> <div><a class="xref" href="alps_.net_api.ITransition.html">ITransition</a></div> <div><a class="xref" href="alps_.net_api.IBehaviorDescriptionComponent.html">IBehaviorDescriptionComponent</a></div> <div><a class="xref" href="alps_.net_api.IPASSProcessModellElement.html">IPASSProcessModellElement</a></div> <div><a class="xref" href="alps_.net_api.IOwlThing.html">IOwlThing</a></div> </div> <div class="inheritedMembers"> <h5>Inherited Members</h5> <div> <a class="xref" href="alps_.net_api.ReminderTransition.html#alps__net_api_ReminderTransition_className">ReminderTransition.className</a> </div> <div> <a class="xref" href="alps_.net_api.Transition.html#alps__net_api_Transition_setBelongsToAction_alps__net_api_IAction_">Transition.setBelongsToAction(IAction)</a> </div> <div> <a class="xref" href="alps_.net_api.Transition.html#alps__net_api_Transition_setSourceState_alps__net_api_IState_">Transition.setSourceState(IState)</a> </div> <div> <a class="xref" href="alps_.net_api.Transition.html#alps__net_api_Transition_setTargetState_alps__net_api_IState_">Transition.setTargetState(IState)</a> </div> <div> <a class="xref" href="alps_.net_api.Transition.html#alps__net_api_Transition_setTransitionCondition_alps__net_api_ITransitionCondition_">Transition.setTransitionCondition(ITransitionCondition)</a> </div> <div> <a class="xref" href="alps_.net_api.Transition.html#alps__net_api_Transition_getBelongsToAction">Transition.getBelongsToAction()</a> </div> <div> <a class="xref" href="alps_.net_api.Transition.html#alps__net_api_Transition_getSourceState">Transition.getSourceState()</a> </div> <div> <a class="xref" href="alps_.net_api.Transition.html#alps__net_api_Transition_getTargetState">Transition.getTargetState()</a> </div> <div> <a class="xref" href="alps_.net_api.Transition.html#alps__net_api_Transition_getTransitionCondition">Transition.getTransitionCondition()</a> </div> <div> <a class="xref" href="alps_.net_api.Transition.html#alps__net_api_Transition_getTmpBelonstToAction">Transition.getTmpBelonstToAction()</a> </div> <div> <a class="xref" href="alps_.net_api.Transition.html#alps__net_api_Transition_getTmpSourceState">Transition.getTmpSourceState()</a> </div> <div> <a class="xref" href="alps_.net_api.Transition.html#alps__net_api_Transition_getTmpTargetState">Transition.getTmpTargetState()</a> </div> <div> <a class="xref" href="alps_.net_api.Transition.html#alps__net_api_Transition_getTmpTransitionCondition">Transition.getTmpTransitionCondition()</a> </div> <div> <a class="xref" href="alps_.net_api.Transition.html#alps__net_api_Transition_createInstance_System_Collections_Generic_List_System_String__System_Collections_Generic_List_System_String__">Transition.createInstance(List&lt;String&gt;, List&lt;String&gt;)</a> </div> <div> <a class="xref" href="alps_.net_api.BehaviorDescriptionComponent.html#alps__net_api_BehaviorDescriptionComponent_setBelongsToSubjectBehavior_alps__net_api_ISubjectBehavior_">BehaviorDescriptionComponent.setBelongsToSubjectBehavior(ISubjectBehavior)</a> </div> <div> <a class="xref" href="alps_.net_api.BehaviorDescriptionComponent.html#alps__net_api_BehaviorDescriptionComponent_getSubjectBehavior">BehaviorDescriptionComponent.getSubjectBehavior()</a> </div> <div> <a class="xref" href="alps_.net_api.PASSProcessModelElement.html#alps__net_api_PASSProcessModelElement_setAdditionalAttribute_System_Collections_Generic_List_System_String__">PASSProcessModelElement.setAdditionalAttribute(List&lt;String&gt;)</a> </div> <div> <a class="xref" href="alps_.net_api.PASSProcessModelElement.html#alps__net_api_PASSProcessModelElement_getAdditionalAttribute">PASSProcessModelElement.getAdditionalAttribute()</a> </div> <div> <a class="xref" href="alps_.net_api.PASSProcessModelElement.html#alps__net_api_PASSProcessModelElement_setModelComponentID_System_String_">PASSProcessModelElement.setModelComponentID(String)</a> </div> <div> <a class="xref" href="alps_.net_api.PASSProcessModelElement.html#alps__net_api_PASSProcessModelElement_getModelComponentID">PASSProcessModelElement.getModelComponentID()</a> </div> <div> <a class="xref" href="alps_.net_api.PASSProcessModelElement.html#alps__net_api_PASSProcessModelElement_setModelComponentLabel_System_Collections_Generic_List_System_String__">PASSProcessModelElement.setModelComponentLabel(List&lt;String&gt;)</a> </div> <div> <a class="xref" href="alps_.net_api.PASSProcessModelElement.html#alps__net_api_PASSProcessModelElement_getModelComponentLabel">PASSProcessModelElement.getModelComponentLabel()</a> </div> <div> <a class="xref" href="alps_.net_api.PASSProcessModelElement.html#alps__net_api_PASSProcessModelElement_setComment_System_String_">PASSProcessModelElement.setComment(String)</a> </div> <div> <a class="xref" href="alps_.net_api.PASSProcessModelElement.html#alps__net_api_PASSProcessModelElement_getComment">PASSProcessModelElement.getComment()</a> </div> <div> <a class="xref" href="alps_.net_api.PASSProcessModelElement.html#alps__net_api_PASSProcessModelElement_setAdditionalAttributeType_System_Collections_Generic_List_System_String__">PASSProcessModelElement.setAdditionalAttributeType(List&lt;String&gt;)</a> </div> <div> <a class="xref" href="alps_.net_api.PASSProcessModelElement.html#alps__net_api_PASSProcessModelElement_getAdditionalAttributeType">PASSProcessModelElement.getAdditionalAttributeType()</a> </div> <div> <a class="xref" href="alps_.net_api.PASSProcessModelElement.html#alps__net_api_PASSProcessModelElement_emptyAdditionalAttribute">PASSProcessModelElement.emptyAdditionalAttribute()</a> </div> <div> <a class="xref" href="alps_.net_api.PASSProcessModelElement.html#alps__net_api_PASSProcessModelElement_createInstance_System_Collections_Generic_List_System_String__System_String_System_Collections_Generic_List_System_String__System_String_">PASSProcessModelElement.createInstance(List&lt;String&gt;, String, List&lt;String&gt;, String)</a> </div> <div> <span class="xref">System.Object.ToString()</span> </div> <div> <span class="xref">System.Object.Equals(System.Object)</span> </div> <div> <span class="xref">System.Object.Equals(System.Object, System.Object)</span> </div> <div> <span class="xref">System.Object.ReferenceEquals(System.Object, System.Object)</span> </div> <div> <span class="xref">System.Object.GetHashCode()</span> </div> <div> <span class="xref">System.Object.GetType()</span> </div> <div> <span class="xref">System.Object.MemberwiseClone()</span> </div> </div> <h6><strong>Namespace</strong>: <a class="xref" href="alps_.net_api.html">alps_.net_api</a></h6> <h6><strong>Assembly</strong>: alps.net_api.dll</h6> <h5 id="alps__net_api_CalenderBasedReminderTransition_syntax">Syntax</h5> <div class="codewrapper"> <pre><code class="lang-csharp hljs">public class CalenderBasedReminderTransition : ReminderTransition, ICalenderBasedReminderTransition, IReminderTransition, ITimeTransition, ITransition, IBehaviorDescriptionComponent, IPASSProcessModellElement, IOwlThing</code></pre> </div> <h3 id="constructors">Constructors </h3> <a id="alps__net_api_CalenderBasedReminderTransition__ctor_" data-uid="alps_.net_api.CalenderBasedReminderTransition.#ctor*"></a> <h4 id="alps__net_api_CalenderBasedReminderTransition__ctor" data-uid="alps_.net_api.CalenderBasedReminderTransition.#ctor">CalenderBasedReminderTransition()</h4> <div class="markdown level1 summary"><p sourcefile="obj/api/alps_.net_api.CalenderBasedReminderTransition.yml" sourcestartlinenumber="2" sourceendlinenumber="2">Constructor that creates an empty instance of the Calender Based Reminder Transition class</p> </div> <div class="markdown level1 conceptual"></div> <h5 class="decalaration">Declaration</h5> <div class="codewrapper"> <pre><code class="lang-csharp hljs">public CalenderBasedReminderTransition()</code></pre> </div> <a id="alps__net_api_CalenderBasedReminderTransition__ctor_" data-uid="alps_.net_api.CalenderBasedReminderTransition.#ctor*"></a> <h4 id="alps__net_api_CalenderBasedReminderTransition__ctor_System_Collections_Generic_List_System_String__System_String_System_Collections_Generic_List_System_String__System_String_alps__net_api_SubjectBehavior_alps__net_api_Action_alps__net_api_State_alps__net_api_State_alps__net_api_TransitionCondition_" data-uid="alps_.net_api.CalenderBasedReminderTransition.#ctor(System.Collections.Generic.List{System.String},System.String,System.Collections.Generic.List{System.String},System.String,alps_.net_api.SubjectBehavior,alps_.net_api.Action,alps_.net_api.State,alps_.net_api.State,alps_.net_api.TransitionCondition)">CalenderBasedReminderTransition(List&lt;String&gt;, String, List&lt;String&gt;, String, SubjectBehavior, Action, State, State, TransitionCondition)</h4> <div class="markdown level1 summary"><p sourcefile="obj/api/alps_.net_api.CalenderBasedReminderTransition.yml" sourcestartlinenumber="2" sourceendlinenumber="2">Constructor that creates an fully specified instance of the Calender Based Reminder Transition class</p> </div> <div class="markdown level1 conceptual"></div> <h5 class="decalaration">Declaration</h5> <div class="codewrapper"> <pre><code class="lang-csharp hljs">public CalenderBasedReminderTransition(List&lt;string&gt; additionalAttribute, string modelComponentID, List&lt;string&gt; modelComponentLabel, string comment, SubjectBehavior subjectBehavior, Action belongsToaction, State sourceState, State targetState, TransitionCondition transitionCondition)</code></pre> </div> <h5 class="parameters">Parameters</h5> <table class="table table-bordered table-striped table-condensed"> <thead> <tr> <th>Type</th> <th>Name</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><span class="xref">System.Collections.Generic.List</span>&lt;<span class="xref">System.String</span>&gt;</td> <td><span class="parametername">additionalAttribute</span></td> <td></td> </tr> <tr> <td><span class="xref">System.String</span></td> <td><span class="parametername">modelComponentID</span></td> <td></td> </tr> <tr> <td><span class="xref">System.Collections.Generic.List</span>&lt;<span class="xref">System.String</span>&gt;</td> <td><span class="parametername">modelComponentLabel</span></td> <td></td> </tr> <tr> <td><span class="xref">System.String</span></td> <td><span class="parametername">comment</span></td> <td></td> </tr> <tr> <td><a class="xref" href="alps_.net_api.SubjectBehavior.html">SubjectBehavior</a></td> <td><span class="parametername">subjectBehavior</span></td> <td></td> </tr> <tr> <td><a class="xref" href="alps_.net_api.Action.html">Action</a></td> <td><span class="parametername">belongsToaction</span></td> <td></td> </tr> <tr> <td><a class="xref" href="alps_.net_api.State.html">State</a></td> <td><span class="parametername">sourceState</span></td> <td></td> </tr> <tr> <td><a class="xref" href="alps_.net_api.State.html">State</a></td> <td><span class="parametername">targetState</span></td> <td></td> </tr> <tr> <td><a class="xref" href="alps_.net_api.TransitionCondition.html">TransitionCondition</a></td> <td><span class="parametername">transitionCondition</span></td> <td></td> </tr> </tbody> </table> <h3 id="methods">Methods </h3> <a id="alps__net_api_CalenderBasedReminderTransition_factoryMethod_" data-uid="alps_.net_api.CalenderBasedReminderTransition.factoryMethod*"></a> <h4 id="alps__net_api_CalenderBasedReminderTransition_factoryMethod" data-uid="alps_.net_api.CalenderBasedReminderTransition.factoryMethod">factoryMethod()</h4> <div class="markdown level1 summary"><p sourcefile="obj/api/alps_.net_api.CalenderBasedReminderTransition.yml" sourcestartlinenumber="2" sourceendlinenumber="2">Factory method that creates and returns an empty instance of the Calender Based Reminder Transition class</p> </div> <div class="markdown level1 conceptual"></div> <h5 class="decalaration">Declaration</h5> <div class="codewrapper"> <pre><code class="lang-csharp hljs">public CalenderBasedReminderTransition factoryMethod()</code></pre> </div> <h5 class="returns">Returns</h5> <table class="table table-bordered table-striped table-condensed"> <thead> <tr> <th>Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><a class="xref" href="alps_.net_api.CalenderBasedReminderTransition.html">CalenderBasedReminderTransition</a></td> <td><p sourcefile="obj/api/alps_.net_api.CalenderBasedReminderTransition.yml" sourcestartlinenumber="1" sourceendlinenumber="1">An empty instance of the Calender Based Reminder Transition class</p> </td> </tr> </tbody> </table> <h3 id="implements">Implements</h3> <div> <a class="xref" href="alps_.net_api.ICalenderBasedReminderTransition.html">ICalenderBasedReminderTransition</a> </div> <div> <a class="xref" href="alps_.net_api.IReminderTransition.html">IReminderTransition</a> </div> <div> <a class="xref" href="alps_.net_api.ITimeTransition.html">ITimeTransition</a> </div> <div> <a class="xref" href="alps_.net_api.ITransition.html">ITransition</a> </div> <div> <a class="xref" href="alps_.net_api.IBehaviorDescriptionComponent.html">IBehaviorDescriptionComponent</a> </div> <div> <a class="xref" href="alps_.net_api.IPASSProcessModellElement.html">IPASSProcessModellElement</a> </div> <div> <a class="xref" href="alps_.net_api.IOwlThing.html">IOwlThing</a> </div> </article> </div> <div class="hidden-sm col-md-2" role="complementary"> <div class="sideaffix"> <div class="contribution"> <ul class="nav"> </ul> </div> <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix"> <!-- <p><a class="back-to-top" href="#top">Back to top</a><p> --> </nav> </div> </div> </div> </div> <footer> <div class="grad-bottom"></div> <div class="footer"> <div class="container"> <span class="pull-right"> <a href="#top">Back to top</a> </span> <span>Generated by <strong>DocFX</strong></span> </div> </div> </footer> </div> <script type="text/javascript" src="../styles/docfx.vendor.js"></script> <script type="text/javascript" src="../styles/docfx.js"></script> <script type="text/javascript" src="../styles/main.js"></script> </body> </html>
with Ada.Unchecked_Conversion; package body Memory_Set is ------------ -- memset -- ------------ function Memset (M : Address; C : int; Size : size_t) return Address is subtype Mem_Array is char_array (size_t); type Mem_Ptr is access Mem_Array; function To_Memptr is new Ada.Unchecked_Conversion (Address, Mem_Ptr); Dest : constant Mem_Ptr := To_Memptr (M); begin if Size > 0 then for J in 0 .. Size - 1 loop Dest (J) := char'Val (C); end loop; end if; return M; end Memset; end Memory_Set;
-- This spec has been automatically generated from FE310.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package FE310_SVD.CLINT is pragma Preelaborate; --------------- -- Registers -- --------------- ----------------- -- Peripherals -- ----------------- -- Core Local Interruptor. type CLINT_Peripheral is record -- Machine Software Interrupt Pending Register. MSIP : aliased HAL.UInt32; -- Machine Timer Compare Register Low. MTIMECMP_LO : aliased HAL.UInt32; -- Machine Timer Compare Register High. MTIMECMP_HI : aliased HAL.UInt32; -- Machine Timer Register Low. MTIME_LO : aliased HAL.UInt32; -- Machine Timer Register High. MTIME_HI : aliased HAL.UInt32; end record with Volatile; for CLINT_Peripheral use record MSIP at 16#0# range 0 .. 31; MTIMECMP_LO at 16#4000# range 0 .. 31; MTIMECMP_HI at 16#4004# range 0 .. 31; MTIME_LO at 16#BFF8# range 0 .. 31; MTIME_HI at 16#BFFC# range 0 .. 31; end record; -- Core Local Interruptor. CLINT_Periph : aliased CLINT_Peripheral with Import, Address => System'To_Address (16#2000000#); end FE310_SVD.CLINT;
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Ada Modeling Framework -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2011-2012, Vadim Godunko <vgodunko@gmail.com> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ -- This file is generated, don't edit it. ------------------------------------------------------------------------------ with AMF.Generic_Collections; package AMF.UML.Structural_Feature_Actions.Collections is pragma Preelaborate; package UML_Structural_Feature_Action_Collections is new AMF.Generic_Collections (UML_Structural_Feature_Action, UML_Structural_Feature_Action_Access); type Set_Of_UML_Structural_Feature_Action is new UML_Structural_Feature_Action_Collections.Set with null record; Empty_Set_Of_UML_Structural_Feature_Action : constant Set_Of_UML_Structural_Feature_Action; type Ordered_Set_Of_UML_Structural_Feature_Action is new UML_Structural_Feature_Action_Collections.Ordered_Set with null record; Empty_Ordered_Set_Of_UML_Structural_Feature_Action : constant Ordered_Set_Of_UML_Structural_Feature_Action; type Bag_Of_UML_Structural_Feature_Action is new UML_Structural_Feature_Action_Collections.Bag with null record; Empty_Bag_Of_UML_Structural_Feature_Action : constant Bag_Of_UML_Structural_Feature_Action; type Sequence_Of_UML_Structural_Feature_Action is new UML_Structural_Feature_Action_Collections.Sequence with null record; Empty_Sequence_Of_UML_Structural_Feature_Action : constant Sequence_Of_UML_Structural_Feature_Action; private Empty_Set_Of_UML_Structural_Feature_Action : constant Set_Of_UML_Structural_Feature_Action := (UML_Structural_Feature_Action_Collections.Set with null record); Empty_Ordered_Set_Of_UML_Structural_Feature_Action : constant Ordered_Set_Of_UML_Structural_Feature_Action := (UML_Structural_Feature_Action_Collections.Ordered_Set with null record); Empty_Bag_Of_UML_Structural_Feature_Action : constant Bag_Of_UML_Structural_Feature_Action := (UML_Structural_Feature_Action_Collections.Bag with null record); Empty_Sequence_Of_UML_Structural_Feature_Action : constant Sequence_Of_UML_Structural_Feature_Action := (UML_Structural_Feature_Action_Collections.Sequence with null record); end AMF.UML.Structural_Feature_Actions.Collections;
-------------------------------------------------------------------------------------------------------------------- -- 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.Inputs.Mice.Cursors -------------------------------------------------------------------------------------------------------------------- with Ada.Finalization; package SDL.Inputs.Mice.Cursors is -- Don't confuse this package with any type of Ada iterator, this is for visual mouse cursors. type Cursor is new Ada.Finalization.Limited_Controlled with private; overriding procedure Finalize (Self : in out Cursor); type System_Cursors is (Arrow, I_Beam, Wait, Cross_Hair, Wait_Arrow, Size_NWSE, Size_NESW, Size_WE, size_NS, Size_All, No, Hand) with Convention => C; -- SDL_CreateColorCursor -- SDL_CreateCursor procedure Create_System_Cursor (Self : in out Cursor; Cursor_Name : System_Cursors); procedure Get_Cursor (Self : in out Cursor); procedure Set_Cursor (Self : in Cursor); private type Cursor is new Ada.Finalization.Limited_Controlled with record Internal : SDL.C_Pointers.Cursor_Pointer := null; Owns : Boolean := True; end record; end SDL.Inputs.Mice.Cursors;
-- Abstract : -- -- Subprograms common to Output_Elisp and Output_Ada_Emacs -- -- Copyright (C) 2012, 2013, 2015, 2017, 2018, 2019 Free Software Foundation, Inc. -- -- The WisiToken package is free software; you can redistribute it -- and/or modify it under terms of the GNU General Public License as -- published by the Free Software Foundation; either version 3, or -- (at your option) any later version. This library is distributed in -- the hope that it will be useful, but WITHOUT ANY WARRANTY; without -- even the implied warranty of MERCHANTABILITY or FITNESS FOR A -- PARTICULAR PURPOSE. -- -- As a special exception under Section 7 of GPL version 3, you are granted -- additional permissions described in the GCC Runtime Library Exception, -- version 3.1, as published by the Free Software Foundation. pragma License (Modified_GPL); package WisiToken.BNF.Output_Elisp_Common is function Find_Elisp_ID (List : in WisiToken.BNF.String_Lists.List; Elisp_Name : in String) return Integer; function Elisp_Name_To_Ada (Elisp_Name : in String; Append_ID : in Boolean; Trim : in Integer) return String; -- Drop Trim chars from beginning of Elisp_Name, capitalize. procedure Indent_Keyword_Table (Output_File_Root : in String; Label : in String; Keywords : in String_Pair_Lists.List; Image : access function (Name : in Ada.Strings.Unbounded.Unbounded_String) return String); procedure Indent_Token_Table (Output_File_Root : in String; Label : in String; Tokens : in Token_Lists.List; Image : access function (Name : in Ada.Strings.Unbounded.Unbounded_String) return String); procedure Indent_Name_Table (Output_File_Root : in String; Label : in String; Names : in String_Lists.List); procedure Indent_Repair_Image (Output_File_Root : in String; Label : in String; Tokens : in WisiToken.BNF.Tokens); end WisiToken.BNF.Output_Elisp_Common;
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Ada Modeling Framework -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2011-2012, Vadim Godunko <vgodunko@gmail.com> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ -- This file is generated, don't edit it. ------------------------------------------------------------------------------ package body AMF.Internals.Tables.UMLDI_Metamodel is -------------------- -- MM_UMLDI_UMLDI -- -------------------- function MM_UMLDI_UMLDI return AMF.Internals.CMOF_Element is begin return Base + 96; end MM_UMLDI_UMLDI; -------------------------------------------------------------- -- MC_UMLDI_UML_Association_Or_Connector_Or_Link_Shape_Kind -- -------------------------------------------------------------- function MC_UMLDI_UML_Association_Or_Connector_Or_Link_Shape_Kind return AMF.Internals.CMOF_Element is begin return Base + 272; end MC_UMLDI_UML_Association_Or_Connector_Or_Link_Shape_Kind; ---------------------------------------------- -- MC_UMLDI_UML_Inherited_State_Border_Kind -- ---------------------------------------------- function MC_UMLDI_UML_Inherited_State_Border_Kind return AMF.Internals.CMOF_Element is begin return Base + 275; end MC_UMLDI_UML_Inherited_State_Border_Kind; ------------------------------------------- -- MC_UMLDI_UML_Interaction_Diagram_Kind -- ------------------------------------------- function MC_UMLDI_UML_Interaction_Diagram_Kind return AMF.Internals.CMOF_Element is begin return Base + 281; end MC_UMLDI_UML_Interaction_Diagram_Kind; ----------------------------------------------- -- MC_UMLDI_UML_Interaction_Table_Label_Kind -- ----------------------------------------------- function MC_UMLDI_UML_Interaction_Table_Label_Kind return AMF.Internals.CMOF_Element is begin return Base + 293; end MC_UMLDI_UML_Interaction_Table_Label_Kind; --------------------------------------------- -- MC_UMLDI_UML_Navigability_Notation_Kind -- --------------------------------------------- function MC_UMLDI_UML_Navigability_Notation_Kind return AMF.Internals.CMOF_Element is begin return Base + 309; end MC_UMLDI_UML_Navigability_Notation_Kind; ----------------------------------- -- MC_UMLDI_UML_Activity_Diagram -- ----------------------------------- function MC_UMLDI_UML_Activity_Diagram return AMF.Internals.CMOF_Element is begin return Base + 1; end MC_UMLDI_UML_Activity_Diagram; ---------------------------------------- -- MC_UMLDI_UML_Association_End_Label -- ---------------------------------------- function MC_UMLDI_UML_Association_End_Label return AMF.Internals.CMOF_Element is begin return Base + 2; end MC_UMLDI_UML_Association_End_Label; --------------------------------------------------------- -- MC_UMLDI_UML_Association_Or_Connector_Or_Link_Shape -- --------------------------------------------------------- function MC_UMLDI_UML_Association_Or_Connector_Or_Link_Shape return AMF.Internals.CMOF_Element is begin return Base + 3; end MC_UMLDI_UML_Association_Or_Connector_Or_Link_Shape; ----------------------------------- -- MC_UMLDI_UML_Behavior_Diagram -- ----------------------------------- function MC_UMLDI_UML_Behavior_Diagram return AMF.Internals.CMOF_Element is begin return Base + 4; end MC_UMLDI_UML_Behavior_Diagram; -------------------------------- -- MC_UMLDI_UML_Class_Diagram -- -------------------------------- function MC_UMLDI_UML_Class_Diagram return AMF.Internals.CMOF_Element is begin return Base + 5; end MC_UMLDI_UML_Class_Diagram; ------------------------------------------------------- -- MC_UMLDI_UML_Class_Or_Composite_Structure_Diagram -- ------------------------------------------------------- function MC_UMLDI_UML_Class_Or_Composite_Structure_Diagram return AMF.Internals.CMOF_Element is begin return Base + 6; end MC_UMLDI_UML_Class_Or_Composite_Structure_Diagram; ----------------------------------- -- MC_UMLDI_UML_Classifier_Shape -- ----------------------------------- function MC_UMLDI_UML_Classifier_Shape return AMF.Internals.CMOF_Element is begin return Base + 7; end MC_UMLDI_UML_Classifier_Shape; ------------------------------ -- MC_UMLDI_UML_Compartment -- ------------------------------ function MC_UMLDI_UML_Compartment return AMF.Internals.CMOF_Element is begin return Base + 8; end MC_UMLDI_UML_Compartment; ---------------------------------------- -- MC_UMLDI_UML_Compartmentable_Shape -- ---------------------------------------- function MC_UMLDI_UML_Compartmentable_Shape return AMF.Internals.CMOF_Element is begin return Base + 9; end MC_UMLDI_UML_Compartmentable_Shape; ------------------------------------ -- MC_UMLDI_UML_Component_Diagram -- ------------------------------------ function MC_UMLDI_UML_Component_Diagram return AMF.Internals.CMOF_Element is begin return Base + 10; end MC_UMLDI_UML_Component_Diagram; ---------------------------------------------- -- MC_UMLDI_UML_Composite_Structure_Diagram -- ---------------------------------------------- function MC_UMLDI_UML_Composite_Structure_Diagram return AMF.Internals.CMOF_Element is begin return Base + 11; end MC_UMLDI_UML_Composite_Structure_Diagram; ------------------------------------- -- MC_UMLDI_UML_Deployment_Diagram -- ------------------------------------- function MC_UMLDI_UML_Deployment_Diagram return AMF.Internals.CMOF_Element is begin return Base + 12; end MC_UMLDI_UML_Deployment_Diagram; -------------------------- -- MC_UMLDI_UML_Diagram -- -------------------------- function MC_UMLDI_UML_Diagram return AMF.Internals.CMOF_Element is begin return Base + 13; end MC_UMLDI_UML_Diagram; ---------------------------------- -- MC_UMLDI_UML_Diagram_Element -- ---------------------------------- function MC_UMLDI_UML_Diagram_Element return AMF.Internals.CMOF_Element is begin return Base + 14; end MC_UMLDI_UML_Diagram_Element; ----------------------- -- MC_UMLDI_UML_Edge -- ----------------------- function MC_UMLDI_UML_Edge return AMF.Internals.CMOF_Element is begin return Base + 15; end MC_UMLDI_UML_Edge; -------------------------------------- -- MC_UMLDI_UML_Interaction_Diagram -- -------------------------------------- function MC_UMLDI_UML_Interaction_Diagram return AMF.Internals.CMOF_Element is begin return Base + 16; end MC_UMLDI_UML_Interaction_Diagram; ------------------------------------------ -- MC_UMLDI_UML_Interaction_Table_Label -- ------------------------------------------ function MC_UMLDI_UML_Interaction_Table_Label return AMF.Internals.CMOF_Element is begin return Base + 17; end MC_UMLDI_UML_Interaction_Table_Label; -------------------------------- -- MC_UMLDI_UML_Keyword_Label -- -------------------------------- function MC_UMLDI_UML_Keyword_Label return AMF.Internals.CMOF_Element is begin return Base + 18; end MC_UMLDI_UML_Keyword_Label; ------------------------ -- MC_UMLDI_UML_Label -- ------------------------ function MC_UMLDI_UML_Label return AMF.Internals.CMOF_Element is begin return Base + 19; end MC_UMLDI_UML_Label; ------------------------------------- -- MC_UMLDI_UML_Multiplicity_Label -- ------------------------------------- function MC_UMLDI_UML_Multiplicity_Label return AMF.Internals.CMOF_Element is begin return Base + 20; end MC_UMLDI_UML_Multiplicity_Label; ----------------------------- -- MC_UMLDI_UML_Name_Label -- ----------------------------- function MC_UMLDI_UML_Name_Label return AMF.Internals.CMOF_Element is begin return Base + 21; end MC_UMLDI_UML_Name_Label; --------------------------------- -- MC_UMLDI_UML_Object_Diagram -- --------------------------------- function MC_UMLDI_UML_Object_Diagram return AMF.Internals.CMOF_Element is begin return Base + 22; end MC_UMLDI_UML_Object_Diagram; ---------------------------------- -- MC_UMLDI_UML_Package_Diagram -- ---------------------------------- function MC_UMLDI_UML_Package_Diagram return AMF.Internals.CMOF_Element is begin return Base + 23; end MC_UMLDI_UML_Package_Diagram; ---------------------------------- -- MC_UMLDI_UML_Profile_Diagram -- ---------------------------------- function MC_UMLDI_UML_Profile_Diagram return AMF.Internals.CMOF_Element is begin return Base + 24; end MC_UMLDI_UML_Profile_Diagram; ---------------------------------- -- MC_UMLDI_UML_Redefines_Label -- ---------------------------------- function MC_UMLDI_UML_Redefines_Label return AMF.Internals.CMOF_Element is begin return Base + 25; end MC_UMLDI_UML_Redefines_Label; ------------------------ -- MC_UMLDI_UML_Shape -- ------------------------ function MC_UMLDI_UML_Shape return AMF.Internals.CMOF_Element is begin return Base + 26; end MC_UMLDI_UML_Shape; ---------------------------------------- -- MC_UMLDI_UML_State_Machine_Diagram -- ---------------------------------------- function MC_UMLDI_UML_State_Machine_Diagram return AMF.Internals.CMOF_Element is begin return Base + 27; end MC_UMLDI_UML_State_Machine_Diagram; ------------------------------ -- MC_UMLDI_UML_State_Shape -- ------------------------------ function MC_UMLDI_UML_State_Shape return AMF.Internals.CMOF_Element is begin return Base + 28; end MC_UMLDI_UML_State_Shape; -------------------------------------------------- -- MC_UMLDI_UML_Stereotype_Property_Value_Label -- -------------------------------------------------- function MC_UMLDI_UML_Stereotype_Property_Value_Label return AMF.Internals.CMOF_Element is begin return Base + 29; end MC_UMLDI_UML_Stereotype_Property_Value_Label; ------------------------------------ -- MC_UMLDI_UML_Structure_Diagram -- ------------------------------------ function MC_UMLDI_UML_Structure_Diagram return AMF.Internals.CMOF_Element is begin return Base + 30; end MC_UMLDI_UML_Structure_Diagram; ------------------------ -- MC_UMLDI_UML_Style -- ------------------------ function MC_UMLDI_UML_Style return AMF.Internals.CMOF_Element is begin return Base + 31; end MC_UMLDI_UML_Style; -------------------------------------- -- MC_UMLDI_UML_Typed_Element_Label -- -------------------------------------- function MC_UMLDI_UML_Typed_Element_Label return AMF.Internals.CMOF_Element is begin return Base + 32; end MC_UMLDI_UML_Typed_Element_Label; ----------------------------------- -- MC_UMLDI_UML_Use_Case_Diagram -- ----------------------------------- function MC_UMLDI_UML_Use_Case_Diagram return AMF.Internals.CMOF_Element is begin return Base + 33; end MC_UMLDI_UML_Use_Case_Diagram; ----------------------------------------------------- -- MP_UMLDI_UML_Activity_Diagram_Is_Activity_Frame -- ----------------------------------------------------- function MP_UMLDI_UML_Activity_Diagram_Is_Activity_Frame return AMF.Internals.CMOF_Element is begin return Base + 39; end MP_UMLDI_UML_Activity_Diagram_Is_Activity_Frame; ----------------------------------------------------------------------- -- MP_UMLDI_UML_Activity_Diagram_Model_Element_A_Uml_Diagram_Element -- ----------------------------------------------------------------------- function MP_UMLDI_UML_Activity_Diagram_Model_Element_A_Uml_Diagram_Element return AMF.Internals.CMOF_Element is begin return Base + 40; end MP_UMLDI_UML_Activity_Diagram_Model_Element_A_Uml_Diagram_Element; ---------------------------------------------------------------------------- -- MP_UMLDI_UML_Association_End_Label_Model_Element_A_Uml_Diagram_Element -- ---------------------------------------------------------------------------- function MP_UMLDI_UML_Association_End_Label_Model_Element_A_Uml_Diagram_Element return AMF.Internals.CMOF_Element is begin return Base + 41; end MP_UMLDI_UML_Association_End_Label_Model_Element_A_Uml_Diagram_Element; -------------------------------------------------------------- -- MP_UMLDI_UML_Association_Or_Connector_Or_Link_Shape_Kind -- -------------------------------------------------------------- function MP_UMLDI_UML_Association_Or_Connector_Or_Link_Shape_Kind return AMF.Internals.CMOF_Element is begin return Base + 42; end MP_UMLDI_UML_Association_Or_Connector_Or_Link_Shape_Kind; ----------------------------------------------------------------------- -- MP_UMLDI_UML_Behavior_Diagram_Model_Element_A_Uml_Diagram_Element -- ----------------------------------------------------------------------- function MP_UMLDI_UML_Behavior_Diagram_Model_Element_A_Uml_Diagram_Element return AMF.Internals.CMOF_Element is begin return Base + 43; end MP_UMLDI_UML_Behavior_Diagram_Model_Element_A_Uml_Diagram_Element; -------------------------------------------------------------------------------- -- MP_UMLDI_UML_Class_Or_Composite_Structure_Diagram_Is_Association_Dot_Shown -- -------------------------------------------------------------------------------- function MP_UMLDI_UML_Class_Or_Composite_Structure_Diagram_Is_Association_Dot_Shown return AMF.Internals.CMOF_Element is begin return Base + 44; end MP_UMLDI_UML_Class_Or_Composite_Structure_Diagram_Is_Association_Dot_Shown; ----------------------------------------------------------------------------- -- MP_UMLDI_UML_Class_Or_Composite_Structure_Diagram_Navigability_Notation -- ----------------------------------------------------------------------------- function MP_UMLDI_UML_Class_Or_Composite_Structure_Diagram_Navigability_Notation return AMF.Internals.CMOF_Element is begin return Base + 45; end MP_UMLDI_UML_Class_Or_Composite_Structure_Diagram_Navigability_Notation; --------------------------------------------------------------------------------- -- MP_UMLDI_UML_Class_Or_Composite_Structure_Diagram_Non_Navigability_Notation -- --------------------------------------------------------------------------------- function MP_UMLDI_UML_Class_Or_Composite_Structure_Diagram_Non_Navigability_Notation return AMF.Internals.CMOF_Element is begin return Base + 46; end MP_UMLDI_UML_Class_Or_Composite_Structure_Diagram_Non_Navigability_Notation; --------------------------------------------------- -- MP_UMLDI_UML_Classifier_Shape_Is_Double_Sided -- --------------------------------------------------- function MP_UMLDI_UML_Classifier_Shape_Is_Double_Sided return AMF.Internals.CMOF_Element is begin return Base + 47; end MP_UMLDI_UML_Classifier_Shape_Is_Double_Sided; ------------------------------------------------------------ -- MP_UMLDI_UML_Classifier_Shape_Is_Indent_For_Visibility -- ------------------------------------------------------------ function MP_UMLDI_UML_Classifier_Shape_Is_Indent_For_Visibility return AMF.Internals.CMOF_Element is begin return Base + 48; end MP_UMLDI_UML_Classifier_Shape_Is_Indent_For_Visibility; ----------------------------------------------------------------------- -- MP_UMLDI_UML_Classifier_Shape_Model_Element_A_Uml_Diagram_Element -- ----------------------------------------------------------------------- function MP_UMLDI_UML_Classifier_Shape_Model_Element_A_Uml_Diagram_Element return AMF.Internals.CMOF_Element is begin return Base + 49; end MP_UMLDI_UML_Classifier_Shape_Model_Element_A_Uml_Diagram_Element; -------------------------------------------------------------------------- -- MP_UMLDI_UML_Compartment_Element_In_Compartment_A_Owning_Compartment -- -------------------------------------------------------------------------- function MP_UMLDI_UML_Compartment_Element_In_Compartment_A_Owning_Compartment return AMF.Internals.CMOF_Element is begin return Base + 34; end MP_UMLDI_UML_Compartment_Element_In_Compartment_A_Owning_Compartment; -------------------------------------------------------------------------- -- MP_UMLDI_UML_Compartmentable_Shape_Compartment_A_Compartmented_Shape -- -------------------------------------------------------------------------- function MP_UMLDI_UML_Compartmentable_Shape_Compartment_A_Compartmented_Shape return AMF.Internals.CMOF_Element is begin return Base + 35; end MP_UMLDI_UML_Compartmentable_Shape_Compartment_A_Compartmented_Shape; --------------------------------------------------- -- MP_UMLDI_UML_Diagram_Heading_A_Headed_Diagram -- --------------------------------------------------- function MP_UMLDI_UML_Diagram_Heading_A_Headed_Diagram return AMF.Internals.CMOF_Element is begin return Base + 50; end MP_UMLDI_UML_Diagram_Heading_A_Headed_Diagram; ----------------------------------- -- MP_UMLDI_UML_Diagram_Is_Frame -- ----------------------------------- function MP_UMLDI_UML_Diagram_Is_Frame return AMF.Internals.CMOF_Element is begin return Base + 51; end MP_UMLDI_UML_Diagram_Is_Frame; --------------------------------- -- MP_UMLDI_UML_Diagram_Is_Iso -- --------------------------------- function MP_UMLDI_UML_Diagram_Is_Iso return AMF.Internals.CMOF_Element is begin return Base + 52; end MP_UMLDI_UML_Diagram_Is_Iso; ------------------------------------------ -- MP_UMLDI_UML_Diagram_Element_Is_Icon -- ------------------------------------------ function MP_UMLDI_UML_Diagram_Element_Is_Icon return AMF.Internals.CMOF_Element is begin return Base + 53; end MP_UMLDI_UML_Diagram_Element_Is_Icon; --------------------------------------------------------------- -- MP_UMLDI_UML_Diagram_Element_Local_Style_A_Styled_Element -- --------------------------------------------------------------- function MP_UMLDI_UML_Diagram_Element_Local_Style_A_Styled_Element return AMF.Internals.CMOF_Element is begin return Base + 54; end MP_UMLDI_UML_Diagram_Element_Local_Style_A_Styled_Element; ---------------------------------------------------------------------- -- MP_UMLDI_UML_Diagram_Element_Model_Element_A_Uml_Diagram_Element -- ---------------------------------------------------------------------- function MP_UMLDI_UML_Diagram_Element_Model_Element_A_Uml_Diagram_Element return AMF.Internals.CMOF_Element is begin return Base + 36; end MP_UMLDI_UML_Diagram_Element_Model_Element_A_Uml_Diagram_Element; ----------------------------------------------------------------------------------- -- MP_UMLDI_UML_Diagram_Element_Owned_Element_UML_Diagram_Element_Owning_Element -- ----------------------------------------------------------------------------------- function MP_UMLDI_UML_Diagram_Element_Owned_Element_UML_Diagram_Element_Owning_Element return AMF.Internals.CMOF_Element is begin return Base + 37; end MP_UMLDI_UML_Diagram_Element_Owned_Element_UML_Diagram_Element_Owning_Element; ----------------------------------------------------------------------------------- -- MP_UMLDI_UML_Diagram_Element_Owning_Element_UML_Diagram_Element_Owned_Element -- ----------------------------------------------------------------------------------- function MP_UMLDI_UML_Diagram_Element_Owning_Element_UML_Diagram_Element_Owned_Element return AMF.Internals.CMOF_Element is begin return Base + 55; end MP_UMLDI_UML_Diagram_Element_Owning_Element_UML_Diagram_Element_Owned_Element; ---------------------------------------------------------------- -- MP_UMLDI_UML_Diagram_Element_Shared_Style_A_Styled_Element -- ---------------------------------------------------------------- function MP_UMLDI_UML_Diagram_Element_Shared_Style_A_Styled_Element return AMF.Internals.CMOF_Element is begin return Base + 56; end MP_UMLDI_UML_Diagram_Element_Shared_Style_A_Styled_Element; -------------------------------------------- -- MP_UMLDI_UML_Edge_Source_A_Source_Edge -- -------------------------------------------- function MP_UMLDI_UML_Edge_Source_A_Source_Edge return AMF.Internals.CMOF_Element is begin return Base + 57; end MP_UMLDI_UML_Edge_Source_A_Source_Edge; -------------------------------------------- -- MP_UMLDI_UML_Edge_Target_A_Target_Edge -- -------------------------------------------- function MP_UMLDI_UML_Edge_Target_A_Target_Edge return AMF.Internals.CMOF_Element is begin return Base + 58; end MP_UMLDI_UML_Edge_Target_A_Target_Edge; ------------------------------------------- -- MP_UMLDI_UML_Interaction_Diagram_Kind -- ------------------------------------------- function MP_UMLDI_UML_Interaction_Diagram_Kind return AMF.Internals.CMOF_Element is begin return Base + 59; end MP_UMLDI_UML_Interaction_Diagram_Kind; -------------------------------------------------------------------------- -- MP_UMLDI_UML_Interaction_Diagram_Model_Element_A_Uml_Diagram_Element -- -------------------------------------------------------------------------- function MP_UMLDI_UML_Interaction_Diagram_Model_Element_A_Uml_Diagram_Element return AMF.Internals.CMOF_Element is begin return Base + 60; end MP_UMLDI_UML_Interaction_Diagram_Model_Element_A_Uml_Diagram_Element; ----------------------------------------------- -- MP_UMLDI_UML_Interaction_Table_Label_Kind -- ----------------------------------------------- function MP_UMLDI_UML_Interaction_Table_Label_Kind return AMF.Internals.CMOF_Element is begin return Base + 61; end MP_UMLDI_UML_Interaction_Table_Label_Kind; ----------------------------- -- MP_UMLDI_UML_Label_Text -- ----------------------------- function MP_UMLDI_UML_Label_Text return AMF.Internals.CMOF_Element is begin return Base + 62; end MP_UMLDI_UML_Label_Text; ------------------------------------------------------------------------- -- MP_UMLDI_UML_Multiplicity_Label_Model_Element_A_Uml_Diagram_Element -- ------------------------------------------------------------------------- function MP_UMLDI_UML_Multiplicity_Label_Model_Element_A_Uml_Diagram_Element return AMF.Internals.CMOF_Element is begin return Base + 63; end MP_UMLDI_UML_Multiplicity_Label_Model_Element_A_Uml_Diagram_Element; ---------------------------------------------------------------- -- MP_UMLDI_UML_Name_Label_Mode_Element_A_Uml_Diagram_Element -- ---------------------------------------------------------------- function MP_UMLDI_UML_Name_Label_Mode_Element_A_Uml_Diagram_Element return AMF.Internals.CMOF_Element is begin return Base + 64; end MP_UMLDI_UML_Name_Label_Mode_Element_A_Uml_Diagram_Element; ---------------------------------------------------------------------- -- MP_UMLDI_UML_Redefines_Label_Model_Element_A_Uml_Diagram_Element -- ---------------------------------------------------------------------- function MP_UMLDI_UML_Redefines_Label_Model_Element_A_Uml_Diagram_Element return AMF.Internals.CMOF_Element is begin return Base + 65; end MP_UMLDI_UML_Redefines_Label_Model_Element_A_Uml_Diagram_Element; --------------------------------------------------------------- -- MP_UMLDI_UML_State_Machine_Diagram_Inherited_State_Border -- --------------------------------------------------------------- function MP_UMLDI_UML_State_Machine_Diagram_Inherited_State_Border return AMF.Internals.CMOF_Element is begin return Base + 66; end MP_UMLDI_UML_State_Machine_Diagram_Inherited_State_Border; --------------------------------------------------------------- -- MP_UMLDI_UML_State_Machine_Diagram_Is_Collapse_State_Icon -- --------------------------------------------------------------- function MP_UMLDI_UML_State_Machine_Diagram_Is_Collapse_State_Icon return AMF.Internals.CMOF_Element is begin return Base + 67; end MP_UMLDI_UML_State_Machine_Diagram_Is_Collapse_State_Icon; --------------------------------------------------------------- -- MP_UMLDI_UML_State_Machine_Diagram_Is_Transition_Oriented -- --------------------------------------------------------------- function MP_UMLDI_UML_State_Machine_Diagram_Is_Transition_Oriented return AMF.Internals.CMOF_Element is begin return Base + 68; end MP_UMLDI_UML_State_Machine_Diagram_Is_Transition_Oriented; ---------------------------------------------------------------------------- -- MP_UMLDI_UML_State_Machine_Diagram_Model_Element_A_Uml_Diagram_Element -- ---------------------------------------------------------------------------- function MP_UMLDI_UML_State_Machine_Diagram_Model_Element_A_Uml_Diagram_Element return AMF.Internals.CMOF_Element is begin return Base + 69; end MP_UMLDI_UML_State_Machine_Diagram_Model_Element_A_Uml_Diagram_Element; ---------------------------------------- -- MP_UMLDI_UML_State_Shape_Is_Tabbed -- ---------------------------------------- function MP_UMLDI_UML_State_Shape_Is_Tabbed return AMF.Internals.CMOF_Element is begin return Base + 70; end MP_UMLDI_UML_State_Shape_Is_Tabbed; ------------------------------------------------------------------ -- MP_UMLDI_UML_State_Shape_Model_Element_A_Uml_Diagram_Element -- ------------------------------------------------------------------ function MP_UMLDI_UML_State_Shape_Model_Element_A_Uml_Diagram_Element return AMF.Internals.CMOF_Element is begin return Base + 38; end MP_UMLDI_UML_State_Shape_Model_Element_A_Uml_Diagram_Element; -------------------------------------------------------------------------------------- -- MP_UMLDI_UML_Stereotype_Property_Value_Label_Model_Element_A_Uml_Diagram_Element -- -------------------------------------------------------------------------------------- function MP_UMLDI_UML_Stereotype_Property_Value_Label_Model_Element_A_Uml_Diagram_Element return AMF.Internals.CMOF_Element is begin return Base + 71; end MP_UMLDI_UML_Stereotype_Property_Value_Label_Model_Element_A_Uml_Diagram_Element; ------------------------------------------------------------------------------------------------------- -- MP_UMLDI_UML_Stereotype_Property_Value_Label_Stereotyped_Element_A_Label_Showing_Stereotype_Value -- ------------------------------------------------------------------------------------------------------- function MP_UMLDI_UML_Stereotype_Property_Value_Label_Stereotyped_Element_A_Label_Showing_Stereotype_Value return AMF.Internals.CMOF_Element is begin return Base + 72; end MP_UMLDI_UML_Stereotype_Property_Value_Label_Stereotyped_Element_A_Label_Showing_Stereotype_Value; ---------------------------------- -- MP_UMLDI_UML_Style_Font_Name -- ---------------------------------- function MP_UMLDI_UML_Style_Font_Name return AMF.Internals.CMOF_Element is begin return Base + 73; end MP_UMLDI_UML_Style_Font_Name; ---------------------------------- -- MP_UMLDI_UML_Style_Font_Size -- ---------------------------------- function MP_UMLDI_UML_Style_Font_Size return AMF.Internals.CMOF_Element is begin return Base + 74; end MP_UMLDI_UML_Style_Font_Size; ----------------------------------------------------------------------- -- MP_UMLDI_A_Uml_Diagram_Element_UML_Activity_Diagram_Model_Element -- ----------------------------------------------------------------------- function MP_UMLDI_A_Uml_Diagram_Element_UML_Activity_Diagram_Model_Element return AMF.Internals.CMOF_Element is begin return Base + 97; end MP_UMLDI_A_Uml_Diagram_Element_UML_Activity_Diagram_Model_Element; ---------------------------------------------------------------------------- -- MP_UMLDI_A_Uml_Diagram_Element_UML_Association_End_Label_Model_Element -- ---------------------------------------------------------------------------- function MP_UMLDI_A_Uml_Diagram_Element_UML_Association_End_Label_Model_Element return AMF.Internals.CMOF_Element is begin return Base + 98; end MP_UMLDI_A_Uml_Diagram_Element_UML_Association_End_Label_Model_Element; ----------------------------------------------------------------------- -- MP_UMLDI_A_Uml_Diagram_Element_UML_Behavior_Diagram_Model_Element -- ----------------------------------------------------------------------- function MP_UMLDI_A_Uml_Diagram_Element_UML_Behavior_Diagram_Model_Element return AMF.Internals.CMOF_Element is begin return Base + 99; end MP_UMLDI_A_Uml_Diagram_Element_UML_Behavior_Diagram_Model_Element; ----------------------------------------------------------------------- -- MP_UMLDI_A_Uml_Diagram_Element_UML_Classifier_Shape_Model_Element -- ----------------------------------------------------------------------- function MP_UMLDI_A_Uml_Diagram_Element_UML_Classifier_Shape_Model_Element return AMF.Internals.CMOF_Element is begin return Base + 100; end MP_UMLDI_A_Uml_Diagram_Element_UML_Classifier_Shape_Model_Element; -------------------------------------------------------------------------- -- MP_UMLDI_A_Owning_Compartment_UML_Compartment_Element_In_Compartment -- -------------------------------------------------------------------------- function MP_UMLDI_A_Owning_Compartment_UML_Compartment_Element_In_Compartment return AMF.Internals.CMOF_Element is begin return Base + 101; end MP_UMLDI_A_Owning_Compartment_UML_Compartment_Element_In_Compartment; -------------------------------------------------------------------------- -- MP_UMLDI_A_Compartmented_Shape_UML_Compartmentable_Shape_Compartment -- -------------------------------------------------------------------------- function MP_UMLDI_A_Compartmented_Shape_UML_Compartmentable_Shape_Compartment return AMF.Internals.CMOF_Element is begin return Base + 103; end MP_UMLDI_A_Compartmented_Shape_UML_Compartmentable_Shape_Compartment; --------------------------------------------------------------- -- MP_UMLDI_A_Styled_Element_UML_Diagram_Element_Local_Style -- --------------------------------------------------------------- function MP_UMLDI_A_Styled_Element_UML_Diagram_Element_Local_Style return AMF.Internals.CMOF_Element is begin return Base + 104; end MP_UMLDI_A_Styled_Element_UML_Diagram_Element_Local_Style; ---------------------------------------------------------------------- -- MP_UMLDI_A_Uml_Diagram_Element_UML_Diagram_Element_Model_Element -- ---------------------------------------------------------------------- function MP_UMLDI_A_Uml_Diagram_Element_UML_Diagram_Element_Model_Element return AMF.Internals.CMOF_Element is begin return Base + 105; end MP_UMLDI_A_Uml_Diagram_Element_UML_Diagram_Element_Model_Element; ---------------------------------------------------------------- -- MP_UMLDI_A_Styled_Element_UML_Diagram_Element_Shared_Style -- ---------------------------------------------------------------- function MP_UMLDI_A_Styled_Element_UML_Diagram_Element_Shared_Style return AMF.Internals.CMOF_Element is begin return Base + 106; end MP_UMLDI_A_Styled_Element_UML_Diagram_Element_Shared_Style; --------------------------------------------------- -- MP_UMLDI_A_Headed_Diagram_UML_Diagram_Heading -- --------------------------------------------------- function MP_UMLDI_A_Headed_Diagram_UML_Diagram_Heading return AMF.Internals.CMOF_Element is begin return Base + 107; end MP_UMLDI_A_Headed_Diagram_UML_Diagram_Heading; -------------------------------------------- -- MP_UMLDI_A_Source_Edge_UML_Edge_Source -- -------------------------------------------- function MP_UMLDI_A_Source_Edge_UML_Edge_Source return AMF.Internals.CMOF_Element is begin return Base + 108; end MP_UMLDI_A_Source_Edge_UML_Edge_Source; -------------------------------------------- -- MP_UMLDI_A_Target_Edge_UML_Edge_Target -- -------------------------------------------- function MP_UMLDI_A_Target_Edge_UML_Edge_Target return AMF.Internals.CMOF_Element is begin return Base + 109; end MP_UMLDI_A_Target_Edge_UML_Edge_Target; -------------------------------------------------------------------------- -- MP_UMLDI_A_Uml_Diagram_Element_UML_Interaction_Diagram_Model_Element -- -------------------------------------------------------------------------- function MP_UMLDI_A_Uml_Diagram_Element_UML_Interaction_Diagram_Model_Element return AMF.Internals.CMOF_Element is begin return Base + 110; end MP_UMLDI_A_Uml_Diagram_Element_UML_Interaction_Diagram_Model_Element; ------------------------------------------------------------------------- -- MP_UMLDI_A_Uml_Diagram_Element_UML_Multiplicity_Label_Model_Element -- ------------------------------------------------------------------------- function MP_UMLDI_A_Uml_Diagram_Element_UML_Multiplicity_Label_Model_Element return AMF.Internals.CMOF_Element is begin return Base + 111; end MP_UMLDI_A_Uml_Diagram_Element_UML_Multiplicity_Label_Model_Element; ---------------------------------------------------------------- -- MP_UMLDI_A_Uml_Diagram_Element_UML_Name_Label_Mode_Element -- ---------------------------------------------------------------- function MP_UMLDI_A_Uml_Diagram_Element_UML_Name_Label_Mode_Element return AMF.Internals.CMOF_Element is begin return Base + 112; end MP_UMLDI_A_Uml_Diagram_Element_UML_Name_Label_Mode_Element; ---------------------------------------------------------------------- -- MP_UMLDI_A_Uml_Diagram_Element_UML_Redefines_Label_Model_Element -- ---------------------------------------------------------------------- function MP_UMLDI_A_Uml_Diagram_Element_UML_Redefines_Label_Model_Element return AMF.Internals.CMOF_Element is begin return Base + 113; end MP_UMLDI_A_Uml_Diagram_Element_UML_Redefines_Label_Model_Element; ---------------------------------------------------------------------------- -- MP_UMLDI_A_Uml_Diagram_Element_UML_State_Machine_Diagram_Model_Element -- ---------------------------------------------------------------------------- function MP_UMLDI_A_Uml_Diagram_Element_UML_State_Machine_Diagram_Model_Element return AMF.Internals.CMOF_Element is begin return Base + 114; end MP_UMLDI_A_Uml_Diagram_Element_UML_State_Machine_Diagram_Model_Element; ------------------------------------------------------------------ -- MP_UMLDI_A_Uml_Diagram_Element_UML_State_Shape_Model_Element -- ------------------------------------------------------------------ function MP_UMLDI_A_Uml_Diagram_Element_UML_State_Shape_Model_Element return AMF.Internals.CMOF_Element is begin return Base + 115; end MP_UMLDI_A_Uml_Diagram_Element_UML_State_Shape_Model_Element; -------------------------------------------------------------------------------------- -- MP_UMLDI_A_Uml_Diagram_Element_UML_Stereotype_Property_Value_Label_Model_Element -- -------------------------------------------------------------------------------------- function MP_UMLDI_A_Uml_Diagram_Element_UML_Stereotype_Property_Value_Label_Model_Element return AMF.Internals.CMOF_Element is begin return Base + 116; end MP_UMLDI_A_Uml_Diagram_Element_UML_Stereotype_Property_Value_Label_Model_Element; ------------------------------------------------------------------------------------------------------- -- MP_UMLDI_A_Label_Showing_Stereotype_Value_UML_Stereotype_Property_Value_Label_Stereotyped_Element -- ------------------------------------------------------------------------------------------------------- function MP_UMLDI_A_Label_Showing_Stereotype_Value_UML_Stereotype_Property_Value_Label_Stereotyped_Element return AMF.Internals.CMOF_Element is begin return Base + 117; end MP_UMLDI_A_Label_Showing_Stereotype_Value_UML_Stereotype_Property_Value_Label_Stereotyped_Element; --------------------------------------------------------------------- -- MA_UMLDI_UML_Activity_Diagram_Model_Element_Uml_Diagram_Element -- --------------------------------------------------------------------- function MA_UMLDI_UML_Activity_Diagram_Model_Element_Uml_Diagram_Element return AMF.Internals.CMOF_Element is begin return Base + 75; end MA_UMLDI_UML_Activity_Diagram_Model_Element_Uml_Diagram_Element; -------------------------------------------------------------------------- -- MA_UMLDI_UML_Association_End_Label_Model_Element_Uml_Diagram_Element -- -------------------------------------------------------------------------- function MA_UMLDI_UML_Association_End_Label_Model_Element_Uml_Diagram_Element return AMF.Internals.CMOF_Element is begin return Base + 76; end MA_UMLDI_UML_Association_End_Label_Model_Element_Uml_Diagram_Element; --------------------------------------------------------------------- -- MA_UMLDI_UML_Behavior_Diagram_Model_Element_Uml_Diagram_Element -- --------------------------------------------------------------------- function MA_UMLDI_UML_Behavior_Diagram_Model_Element_Uml_Diagram_Element return AMF.Internals.CMOF_Element is begin return Base + 77; end MA_UMLDI_UML_Behavior_Diagram_Model_Element_Uml_Diagram_Element; --------------------------------------------------------------------- -- MA_UMLDI_UML_Classifier_Shape_Model_Element_Uml_Diagram_Element -- --------------------------------------------------------------------- function MA_UMLDI_UML_Classifier_Shape_Model_Element_Uml_Diagram_Element return AMF.Internals.CMOF_Element is begin return Base + 78; end MA_UMLDI_UML_Classifier_Shape_Model_Element_Uml_Diagram_Element; ------------------------------------------------------------------------ -- MA_UMLDI_UML_Compartment_Element_In_Compartment_Owning_Compartment -- ------------------------------------------------------------------------ function MA_UMLDI_UML_Compartment_Element_In_Compartment_Owning_Compartment return AMF.Internals.CMOF_Element is begin return Base + 79; end MA_UMLDI_UML_Compartment_Element_In_Compartment_Owning_Compartment; ------------------------------------------------------------------------ -- MA_UMLDI_UML_Compartmentable_Shape_Compartment_Compartmented_Shape -- ------------------------------------------------------------------------ function MA_UMLDI_UML_Compartmentable_Shape_Compartment_Compartmented_Shape return AMF.Internals.CMOF_Element is begin return Base + 80; end MA_UMLDI_UML_Compartmentable_Shape_Compartment_Compartmented_Shape; ------------------------------------------------------------- -- MA_UMLDI_UML_Diagram_Element_Local_Style_Styled_Element -- ------------------------------------------------------------- function MA_UMLDI_UML_Diagram_Element_Local_Style_Styled_Element return AMF.Internals.CMOF_Element is begin return Base + 81; end MA_UMLDI_UML_Diagram_Element_Local_Style_Styled_Element; -------------------------------------------------------------------- -- MA_UMLDI_UML_Diagram_Element_Model_Element_Uml_Diagram_Element -- -------------------------------------------------------------------- function MA_UMLDI_UML_Diagram_Element_Model_Element_Uml_Diagram_Element return AMF.Internals.CMOF_Element is begin return Base + 82; end MA_UMLDI_UML_Diagram_Element_Model_Element_Uml_Diagram_Element; --------------------------------------------------------------- -- MA_UMLDI_UML_Diagram_Element_Owned_Element_Owning_Element -- --------------------------------------------------------------- function MA_UMLDI_UML_Diagram_Element_Owned_Element_Owning_Element return AMF.Internals.CMOF_Element is begin return Base + 83; end MA_UMLDI_UML_Diagram_Element_Owned_Element_Owning_Element; -------------------------------------------------------------- -- MA_UMLDI_UML_Diagram_Element_Shared_Style_Styled_Element -- -------------------------------------------------------------- function MA_UMLDI_UML_Diagram_Element_Shared_Style_Styled_Element return AMF.Internals.CMOF_Element is begin return Base + 84; end MA_UMLDI_UML_Diagram_Element_Shared_Style_Styled_Element; ------------------------------------------------- -- MA_UMLDI_UML_Diagram_Heading_Headed_Diagram -- ------------------------------------------------- function MA_UMLDI_UML_Diagram_Heading_Headed_Diagram return AMF.Internals.CMOF_Element is begin return Base + 85; end MA_UMLDI_UML_Diagram_Heading_Headed_Diagram; ------------------------------------------ -- MA_UMLDI_UML_Edge_Source_Source_Edge -- ------------------------------------------ function MA_UMLDI_UML_Edge_Source_Source_Edge return AMF.Internals.CMOF_Element is begin return Base + 86; end MA_UMLDI_UML_Edge_Source_Source_Edge; ------------------------------------------ -- MA_UMLDI_UML_Edge_Target_Target_Edge -- ------------------------------------------ function MA_UMLDI_UML_Edge_Target_Target_Edge return AMF.Internals.CMOF_Element is begin return Base + 87; end MA_UMLDI_UML_Edge_Target_Target_Edge; ------------------------------------------------------------------------ -- MA_UMLDI_UML_Interaction_Diagram_Model_Element_Uml_Diagram_Element -- ------------------------------------------------------------------------ function MA_UMLDI_UML_Interaction_Diagram_Model_Element_Uml_Diagram_Element return AMF.Internals.CMOF_Element is begin return Base + 88; end MA_UMLDI_UML_Interaction_Diagram_Model_Element_Uml_Diagram_Element; ----------------------------------------------------------------------- -- MA_UMLDI_UML_Multiplicity_Label_Model_Element_Uml_Diagram_Element -- ----------------------------------------------------------------------- function MA_UMLDI_UML_Multiplicity_Label_Model_Element_Uml_Diagram_Element return AMF.Internals.CMOF_Element is begin return Base + 89; end MA_UMLDI_UML_Multiplicity_Label_Model_Element_Uml_Diagram_Element; -------------------------------------------------------------- -- MA_UMLDI_UML_Name_Label_Mode_Element_Uml_Diagram_Element -- -------------------------------------------------------------- function MA_UMLDI_UML_Name_Label_Mode_Element_Uml_Diagram_Element return AMF.Internals.CMOF_Element is begin return Base + 90; end MA_UMLDI_UML_Name_Label_Mode_Element_Uml_Diagram_Element; -------------------------------------------------------------------- -- MA_UMLDI_UML_Redefines_Label_Model_Element_Uml_Diagram_Element -- -------------------------------------------------------------------- function MA_UMLDI_UML_Redefines_Label_Model_Element_Uml_Diagram_Element return AMF.Internals.CMOF_Element is begin return Base + 91; end MA_UMLDI_UML_Redefines_Label_Model_Element_Uml_Diagram_Element; -------------------------------------------------------------------------- -- MA_UMLDI_UML_State_Machine_Diagram_Model_Element_Uml_Diagram_Element -- -------------------------------------------------------------------------- function MA_UMLDI_UML_State_Machine_Diagram_Model_Element_Uml_Diagram_Element return AMF.Internals.CMOF_Element is begin return Base + 92; end MA_UMLDI_UML_State_Machine_Diagram_Model_Element_Uml_Diagram_Element; ---------------------------------------------------------------- -- MA_UMLDI_UML_State_Shape_Model_Element_Uml_Diagram_Element -- ---------------------------------------------------------------- function MA_UMLDI_UML_State_Shape_Model_Element_Uml_Diagram_Element return AMF.Internals.CMOF_Element is begin return Base + 93; end MA_UMLDI_UML_State_Shape_Model_Element_Uml_Diagram_Element; ------------------------------------------------------------------------------------ -- MA_UMLDI_UML_Stereotype_Property_Value_Label_Model_Element_Uml_Diagram_Element -- ------------------------------------------------------------------------------------ function MA_UMLDI_UML_Stereotype_Property_Value_Label_Model_Element_Uml_Diagram_Element return AMF.Internals.CMOF_Element is begin return Base + 94; end MA_UMLDI_UML_Stereotype_Property_Value_Label_Model_Element_Uml_Diagram_Element; ----------------------------------------------------------------------------------------------------- -- MA_UMLDI_UML_Stereotype_Property_Value_Label_Stereotyped_Element_Label_Showing_Stereotype_Value -- ----------------------------------------------------------------------------------------------------- function MA_UMLDI_UML_Stereotype_Property_Value_Label_Stereotyped_Element_Label_Showing_Stereotype_Value return AMF.Internals.CMOF_Element is begin return Base + 95; end MA_UMLDI_UML_Stereotype_Property_Value_Label_Stereotyped_Element_Label_Showing_Stereotype_Value; -------------- -- MB_UMLDI -- -------------- function MB_UMLDI return AMF.Internals.AMF_Element is begin return Base; end MB_UMLDI; -------------- -- MB_UMLDI -- -------------- function ML_UMLDI return AMF.Internals.AMF_Element is begin return Base + 319; end ML_UMLDI; end AMF.Internals.Tables.UMLDI_Metamodel;
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- S Y S T E M -- -- -- -- S p e c -- -- (PikeOS 5 PPC Version) -- -- -- -- Copyright (C) 2016-2020, Free Software Foundation, Inc. -- -- -- -- This specification is derived from the Ada Reference Manual for use with -- -- GNAT. The copyright notice above, and the license provisions that follow -- -- apply solely to the contents of the part following the private keyword. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ -- This is a ZFP version of this package for PPC PikeOS 5 targets pragma Restrictions (No_Exception_Propagation); -- Only local exception handling is supported in this profile pragma Restrictions (No_Exception_Registration); -- Disable exception name registration. This capability is not used because -- it is only required by exception stream attributes which are not supported -- in this run time. pragma Restrictions (No_Implicit_Dynamic_Code); -- Pointers to nested subprograms are not allowed in this run time, in order -- to prevent the compiler from building "trampolines". pragma Restrictions (No_Finalization); -- Controlled types are not supported in this run time pragma Restrictions (No_Tasking); -- Tasking is not supported in this run time pragma Discard_Names; -- Disable explicitly the generation of names associated with entities in -- order to reduce the amount of storage used. These names are not used anyway -- (attributes such as 'Image and 'Value are not supported in this run time). package System is pragma Pure; -- Note that we take advantage of the implementation permission to make -- this unit Pure instead of Preelaborable (see RM 13.7.1(15)). In Ada -- 2005, this is Pure in any case (AI-362). pragma No_Elaboration_Code_All; -- Allow the use of that restriction in units that WITH this unit type Name is (SYSTEM_NAME_GNAT); System_Name : constant Name := SYSTEM_NAME_GNAT; -- System-Dependent Named Numbers Min_Int : constant := -2 ** (Standard'Max_Integer_Size - 1); Max_Int : constant := 2 ** (Standard'Max_Integer_Size - 1) - 1; Max_Binary_Modulus : constant := 2 ** Standard'Max_Integer_Size; Max_Nonbinary_Modulus : constant := 2 ** Integer'Size - 1; Max_Base_Digits : constant := Long_Long_Float'Digits; Max_Digits : constant := Long_Long_Float'Digits; Max_Mantissa : constant := Standard'Max_Integer_Size - 1; Fine_Delta : constant := 2.0 ** (-Max_Mantissa); Tick : constant := 0.0; -- Storage-related Declarations type Address is private; pragma Preelaborable_Initialization (Address); Null_Address : constant Address; Storage_Unit : constant := 8; Word_Size : constant := Standard'Word_Size; Memory_Size : constant := 2 ** Word_Size; -- Address comparison function "<" (Left, Right : Address) return Boolean; function "<=" (Left, Right : Address) return Boolean; function ">" (Left, Right : Address) return Boolean; function ">=" (Left, Right : Address) return Boolean; function "=" (Left, Right : Address) return Boolean; pragma Import (Intrinsic, "<"); pragma Import (Intrinsic, "<="); pragma Import (Intrinsic, ">"); pragma Import (Intrinsic, ">="); pragma Import (Intrinsic, "="); -- Other System-Dependent Declarations type Bit_Order is (High_Order_First, Low_Order_First); Default_Bit_Order : constant Bit_Order := High_Order_First; pragma Warnings (Off, Default_Bit_Order); -- kill constant condition warning -- Priority-related Declarations (RM D.1) -- For simplicity there is a 1-1 correspondence between Ada and PikeOS -- priorities. PikeOS priority 0 is reserved by the idle thread, so not -- available to Ada. -- PikeOS priorities are 0 .. 255 -- Priorities greather than 245 are reserved to the system software (PSSW) -- This implementation reserves priorities 224-239 to interrupts -- Priorities 240-245 are reserved to HM and PikeOS exception handlers Max_Priority : constant Positive := 223; Max_Interrupt_Priority : constant Positive := 239; subtype Any_Priority is Integer range 1 .. Max_Interrupt_Priority; subtype Priority is Any_Priority range Any_Priority'First .. Max_Priority; subtype Interrupt_Priority is Any_Priority range Priority'Last + 1 .. Any_Priority'Last; Default_Priority : constant Priority := (Priority'First + Priority'Last) / 2; private type Address is mod Memory_Size; Null_Address : constant Address := 0; -------------------------------------- -- System Implementation Parameters -- -------------------------------------- -- These parameters provide information about the target that is used -- by the compiler. They are in the private part of System, where they -- can be accessed using the special circuitry in the Targparm unit -- whose source should be consulted for more detailed descriptions -- of the individual switch values. Atomic_Sync_Default : constant Boolean := False; Backend_Divide_Checks : constant Boolean := False; Backend_Overflow_Checks : constant Boolean := True; Command_Line_Args : constant Boolean := False; Configurable_Run_Time : constant Boolean := True; Denorm : constant Boolean := True; Duration_32_Bits : constant Boolean := True; Exit_Status_Supported : constant Boolean := True; Fractional_Fixed_Ops : constant Boolean := False; Frontend_Layout : constant Boolean := False; Machine_Overflows : constant Boolean := False; Machine_Rounds : constant Boolean := True; Preallocated_Stacks : constant Boolean := False; Signed_Zeros : constant Boolean := True; Stack_Check_Default : constant Boolean := False; Stack_Check_Probes : constant Boolean := False; Stack_Check_Limits : constant Boolean := False; Support_Aggregates : constant Boolean := True; Support_Composite_Assign : constant Boolean := True; Support_Composite_Compare : constant Boolean := True; Support_Long_Shifts : constant Boolean := True; Always_Compatible_Rep : constant Boolean := True; Suppress_Standard_Library : constant Boolean := True; Use_Ada_Main_Program_Name : constant Boolean := False; Frontend_Exceptions : constant Boolean := False; ZCX_By_Default : constant Boolean := True; -- The linker switches ordering comes from a project -- generated with Codeo or pikeos-cloneproject. pragma Linker_Options ("-u_p4_entry" & ASCII.NUL & "-u__cxx_local_dtors" & ASCII.NUL & "-nostdlib" & ASCII.NUL & "-T../ld/ppc-pikeos5.ld" & ASCII.NUL & "-T../ld/memory.ld" & ASCII.NUL & "-lp4ext" & ASCII.NUL & "-lgnat" & ASCII.NUL & "-lvm" & ASCII.NUL & "-lstand" & ASCII.NUL & "-lp4" & ASCII.NUL & "-lgcc"); end System;
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <!DOCTYPE boost_serialization> <boost_serialization signature="serialization::archive" version="15"> <syndb class_id="0" tracking_level="0" version="0"> <userIPLatency>-1</userIPLatency> <userIPName/> <cdfg class_id="1" tracking_level="1" version="0" object_id="_0"> <name>xfExtractPixels_1_1_0_s</name> <ret_bitwidth>8</ret_bitwidth> <ports class_id="2" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="3" tracking_level="1" version="0" object_id="_1"> <Value class_id="4" tracking_level="0" version="0"> <Obj class_id="5" tracking_level="0" version="0"> <type>1</type> <id>1</id> <name>p_read1</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <contextNormFuncName/> <inlineStackInfo class_id="6" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>v.V</originalName> <rtlName/> <control/> <opType/> <implIndex/> <coreName/> <coreId>3581160624</coreId> </Obj> <bitwidth>8</bitwidth> </Value> <direction>0</direction> <if_type>0</if_type> <array_size>0</array_size> <bit_vecs class_id="7" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> </ports> <nodes class_id="8" tracking_level="0" version="0"> <count>2</count> <item_version>0</item_version> <item class_id="9" tracking_level="1" version="0" object_id="_2"> <Value> <Obj> <type>0</type> <id>2</id> <name>p_read</name> <fileName>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/common/xf_utility.hpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>57</lineNumber> <contextFuncName>xfExtractPixels&amp;lt;1, 1, 0&amp;gt;</contextFuncName> <contextNormFuncName>xfExtractPixels_1_1_0_s</contextNormFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item class_id="10" tracking_level="0" version="0"> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</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>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/common/xf_utility.hpp</first> <second>xfExtractPixels&amp;lt;1, 1, 0&amp;gt;</second> </first> <second>57</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <control/> <opType/> <implIndex/> <coreName/> <coreId>0</coreId> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>6</item> <item>7</item> </oprand_edges> <opcode>read</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>1</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_3"> <Value> <Obj> <type>0</type> <id>3</id> <name>_ln69</name> <fileName>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/common/xf_utility.hpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>xfExtractPixels&amp;lt;1, 1, 0&amp;gt;</contextFuncName> <contextNormFuncName>xfExtractPixels_1_1_0_s</contextNormFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/common/xf_utility.hpp</first> <second>xfExtractPixels&amp;lt;1, 1, 0&amp;gt;</second> </first> <second>69</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <control/> <opType/> <implIndex/> <coreName/> <coreId>0</coreId> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>8</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>2</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> </nodes> <consts class_id="15" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </consts> <blocks class_id="16" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="17" tracking_level="1" version="0" object_id="_4"> <Obj> <type>3</type> <id>4</id> <name>xfExtractPixels&lt;1, 1, 0&gt;</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <contextNormFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <control/> <opType/> <implIndex/> <coreName/> <coreId>1768189039</coreId> </Obj> <node_objs> <count>2</count> <item_version>0</item_version> <item>2</item> <item>3</item> </node_objs> </item> </blocks> <edges class_id="18" tracking_level="0" version="0"> <count>2</count> <item_version>0</item_version> <item class_id="19" tracking_level="1" version="0" object_id="_5"> <id>7</id> <edge_type>1</edge_type> <source_obj>1</source_obj> <sink_obj>2</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="19" object_id="_6"> <id>8</id> <edge_type>1</edge_type> <source_obj>2</source_obj> <sink_obj>3</sink_obj> <is_back_edge>0</is_back_edge> </item> </edges> </cdfg> <cdfg_regions class_id="20" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="21" tracking_level="1" version="0" object_id="_7"> <mId>1</mId> <mTag>xfExtractPixels&lt;1, 1, 0&gt;</mTag> <mNormTag>xfExtractPixels_1_1_0_s</mNormTag> <mType>0</mType> <sub_regions> <count>0</count> <item_version>0</item_version> </sub_regions> <basic_blocks> <count>1</count> <item_version>0</item_version> <item>4</item> </basic_blocks> <mII>1</mII> <mDepth>1</mDepth> <mMinTripCount>-1</mMinTripCount> <mMaxTripCount>-1</mMaxTripCount> <mMinLatency>0</mMinLatency> <mMaxLatency>0</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"/> </item> </cdfg_regions> <fsm class_id="23" tracking_level="1" version="0" object_id="_8"> <states class_id="24" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="25" tracking_level="1" version="0" object_id="_9"> <id>1</id> <operations class_id="26" tracking_level="0" version="0"> <count>2</count> <item_version>0</item_version> <item class_id="27" tracking_level="1" version="0" object_id="_10"> <id>2</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="27" object_id="_11"> <id>3</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> </states> <transitions class_id="28" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </transitions> </fsm> <res class_id="29" tracking_level="1" version="0" object_id="_12"> <dp_component_resource class_id="30" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </dp_component_resource> <dp_expression_resource> <count>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_dsp_resource> <count>0</count> <item_version>0</item_version> </dp_dsp_resource> <dp_component_map class_id="31" 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="32" tracking_level="0" version="0"> <count>2</count> <item_version>0</item_version> <item class_id="33" tracking_level="0" version="0"> <first>2</first> <second class_id="34" tracking_level="0" version="0"> <first>0</first> <second>0</second> </second> </item> <item> <first>3</first> <second> <first>0</first> <second>0</second> </second> </item> </node_label_latency> <bblk_ent_exit class_id="35" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="36" tracking_level="0" version="0"> <first>4</first> <second class_id="37" tracking_level="0" version="0"> <first>0</first> <second>0</second> </second> </item> </bblk_ent_exit> <regions class_id="38" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="39" tracking_level="1" version="0" object_id="_13"> <region_name>xfExtractPixels&lt;1, 1, 0&gt;</region_name> <basic_blocks> <count>1</count> <item_version>0</item_version> <item>4</item> </basic_blocks> <nodes> <count>0</count> <item_version>0</item_version> </nodes> <anchor_node>-1</anchor_node> <region_type>8</region_type> <interval>1</interval> <pipe_depth>1</pipe_depth> </item> </regions> <dp_fu_nodes class_id="40" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="41" tracking_level="0" version="0"> <first>4</first> <second> <count>1</count> <item_version>0</item_version> <item>2</item> </second> </item> </dp_fu_nodes> <dp_fu_nodes_expression class_id="43" 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>1</count> <item_version>0</item_version> <item class_id="44" tracking_level="0" version="0"> <first>p_read_read_fu_4</first> <second> <count>1</count> <item_version>0</item_version> <item>2</item> </second> </item> </dp_fu_nodes_io> <return_ports> <count>1</count> <item_version>0</item_version> <item> <first>ap_return</first> <second> <count>1</count> <item_version>0</item_version> <item>3</item> </second> </item> </return_ports> <dp_mem_port_nodes class_id="45" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </dp_mem_port_nodes> <dp_reg_nodes> <count>0</count> <item_version>0</item_version> </dp_reg_nodes> <dp_regname_nodes> <count>0</count> <item_version>0</item_version> </dp_regname_nodes> <dp_reg_phi> <count>0</count> <item_version>0</item_version> </dp_reg_phi> <dp_regname_phi> <count>0</count> <item_version>0</item_version> </dp_regname_phi> <dp_port_io_nodes class_id="46" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="47" tracking_level="0" version="0"> <first>p_read1</first> <second> <count>1</count> <item_version>0</item_version> <item> <first>read</first> <second> <count>1</count> <item_version>0</item_version> <item>2</item> </second> </item> </second> </item> </dp_port_io_nodes> <port2core> <count>0</count> <item_version>0</item_version> </port2core> <node2core> <count>0</count> <item_version>0</item_version> </node2core> </syndb> </boost_serialization>
with Ada.Text_IO; use Ada.Text_IO; with Ada.Containers; use Ada.Containers; with Ada.Characters; use Ada.Characters; with PIN; with PasswordDatabase; package body PasswordManager with SPARK_Mode is -- Initiates the Password Manager procedure Init(Pin_Input : in String; Manager_Information : out Information) is begin -- Sets the Master Pin and Password Manager state to Locked -- also initates the database Manager_Information.Master_Pin := PIN.From_String(Pin_Input); Manager_Information.Is_Locked := True; PasswordDatabase.Init(Manager_Information.Master_Database); end; -- Determines current lock status of Password Manager function Lock_Status(Manager_Information: in Information) return Boolean is begin if(Manager_Information.Is_Locked = True) then return True; end if; return False; end; -- Only executes Unlock_Manager if the current state is unlocked procedure Execute_Unlock(Manager_Information : in out Information; Pin_Input : in PIN.PIN) is begin if (PIN."="(Manager_Information.Master_Pin,Pin_Input) and Manager_Information.Is_Locked) then Unlock_Manager(Manager_Information, Pin_Input); end if; end; -- Changes Password Manager State to Unlocked procedure Unlock_Manager(Manager_Information : in out Information; Pin_Input : in PIN.PIN) is begin -- Password Manager is unlocked Manager_Information.Is_Locked := False; end; -- Only executes Lock_Manager if the current state is unlocked procedure Execute_Lock(Manager_Information : in out Information; Pin_Input : in PIN.PIN) is begin if (Manager_Information.Is_Locked= False) then Lock_Manager(Manager_Information, Pin_Input); end if; end; -- Changes Password Manager State to Locked procedure Lock_Manager(Manager_Information : in out Information; Pin_Input : in PIN.PIN) is begin -- Password Manager is set to locked and MasterPin is set to -- Pin supplied by user Manager_Information.Master_Pin := Pin_Input; Manager_Information.Is_Locked := True; end; -- Only executes Get Command if requirements are met procedure Execute_Get_Command(Manager_Information : in Information; Input_Url : in PasswordDatabase.URL) is begin -- If Password Manager is unlocked and Database contains entry -- for the Url then call Put Command if (PasswordDatabase.Has_Password_For (Manager_Information.Master_Database,Input_Url) and Manager_Information.Is_Locked = False) then Get_Database(Manager_Information, Input_Url); end if; end; -- Carries out Get Command procedure Get_Database(Manager_Information : in Information; Input_Url : in PasswordDatabase.URL) is begin -- Returns associated password Put_Line (PasswordDatabase.To_String (PasswordDatabase.Get (Manager_Information.Master_Database,Input_Url))); end; -- Only executes Put Command if requirements are met procedure Execute_Put_Command(Manager_Information : in out Information; Input_Url : in PasswordDatabase.URL; Input_Pwd : in PasswordDatabase.Password) is begin -- If Password Manager is unlocked and entries are -- within maximum entry range then store entry to Database if (Manager_Information.Is_Locked = False and StoredDatabaseLength(Manager_Information) < PasswordDatabase.Max_Entries) then Put_Database(Manager_Information, Input_Url, Input_Pwd); end if; end; -- Carries out Put Command procedure Put_Database(Manager_Information : in out Information; Input_Url : in PasswordDatabase.URL; Input_Pwd : in PasswordDatabase.Password) is begin -- Put associated entry into database PasswordDatabase.Put(Manager_Information.Master_Database, Input_Url, Input_Pwd); end; -- Only executes Rem Command if requirements are met procedure Execute_Rem_Command(Manager_Information : in out Information; Input_Url : in PasswordDatabase.URL) is begin -- If Password Manager is unlocked and Database contains entry -- for the Url then call Rem Command if (PasswordDatabase.Has_Password_For (Manager_Information.Master_Database, Input_Url) and Manager_Information.Is_Locked = False) then Rem_Database(Manager_Information, Input_Url); end if; end; -- Carries out Rem Command procedure Rem_Database(Manager_Information : in out Information; Input_Url : in PasswordDatabase.URL) is begin -- Remove the associated entry PasswordDatabase.Remove(Manager_Information.Master_Database, Input_Url); end; end PasswordManager;
------------------------------------------------------------------------------ -- -- -- ASIS-for-GNAT IMPLEMENTATION COMPONENTS -- -- -- -- A S I S . E L E M E N T S -- -- -- -- B o d y -- -- -- -- Copyright (C) 1995-2012, Free Software Foundation, Inc. -- -- -- -- ASIS-for-GNAT is free software; you can redistribute it and/or modify it -- -- under terms of the GNU General Public License as published by the Free -- -- Software Foundation; either version 2, or (at your option) any later -- -- version. ASIS-for-GNAT is distributed in the hope that it will be use- -- -- ful, but WITHOUT ANY WARRANTY; without even the implied warranty of MER- -- -- CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General -- -- Public License for more details. You should have received a copy of the -- -- GNU General Public License distributed with ASIS-for-GNAT; see file -- -- COPYING. If not, write to the Free Software Foundation, 51 Franklin -- -- Street, Fifth Floor, Boston, MA 02110-1301, USA. -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- ASIS-for-GNAT was originally developed by the ASIS-for-GNAT team at the -- -- Software Engineering Laboratory of the Swiss Federal Institute of -- -- Technology (LGL-EPFL) in Lausanne, Switzerland, in cooperation with the -- -- Scientific Research Computer Center of Moscow State University (SRCC -- -- MSU), Russia, with funding partially provided by grants from the Swiss -- -- National Science Foundation and the Swiss Academy of Engineering -- -- Sciences. ASIS-for-GNAT is now maintained by AdaCore -- -- (http://www.adacore.com). -- -- -- ------------------------------------------------------------------------------ with Ada.Characters.Handling; use Ada.Characters.Handling; with Ada.Unchecked_Conversion; with Interfaces; use Interfaces; with GNAT.HTable; with Asis.Clauses; with Asis.Compilation_Units; with Asis.Declarations; use Asis.Declarations; with Asis.Definitions; with Asis.Errors; use Asis.Errors; with Asis.Exceptions; use Asis.Exceptions; with Asis.Extensions; with Asis.Limited_Views; use Asis.Limited_Views; with Asis.Statements; with Asis.Set_Get; use Asis.Set_Get; with A4G.A_Output; use A4G.A_Output; with A4G.A_Sem; use A4G.A_Sem; with A4G.A_Sinput; use A4G.A_Sinput; with A4G.A_Types; with A4G.Asis_Tables; use A4G.Asis_Tables; with A4G.Contt; use A4G.Contt; with A4G.Contt.UT; use A4G.Contt.UT; with A4G.Encl_El; use A4G.Encl_El; with A4G.Knd_Conv; use A4G.Knd_Conv; with A4G.Mapping; use A4G.Mapping; with A4G.Vcheck; use A4G.Vcheck; with Atree; use Atree; with Einfo; use Einfo; with Namet; use Namet; with Nlists; use Nlists; with Sinfo; use Sinfo; with Sinput; use Sinput; with Snames; use Snames; with Stand; use Stand; package body Asis.Elements is function "=" (Left, Right : Element) return Boolean renames Asis.Set_Get."="; Package_Name : constant String := "Asis.Elements."; ------------------------------------------------------------------------------ --------------------------- -- ASIS 2005 Draft stuff -- --------------------------- ---------------------------- -- Access_Definition_Kind -- ---------------------------- function Access_Definition_Kind (Definition : Asis.Definition) return Asis.Access_Definition_Kinds is begin Check_Validity (Definition, Package_Name & "Access_Definition_Kind"); return Access_Definition_Kind_From_Internal (Int_Kind (Definition)); end Access_Definition_Kind; -------------------- -- Interface_Kind -- -------------------- function Interface_Kind (Definition : Asis.Definition) return Asis.Interface_Kinds is begin Check_Validity (Definition, Package_Name & "Interface_Kind"); return Interface_Kind_From_Internal (Int_Kind (Definition)); end Interface_Kind; ------------------------ -- Is_Not_Null_Return -- ------------------------ function Is_Not_Null_Return (Element : Asis.Element) return Boolean is Arg_Kind : constant Internal_Element_Kinds := Int_Kind (Element); Arg_Node : Node_Id := Node (Element); Result : Boolean := False; begin Check_Validity (Element, Package_Name & "Is_Not_Null_Return"); case Arg_Kind is when A_Function_Declaration | A_Function_Body_Declaration | A_Function_Renaming_Declaration | A_Function_Body_Stub | A_Generic_Function_Declaration | A_Formal_Function_Declaration => Arg_Node := Specification (Arg_Node); Result := Null_Exclusion_Present (Arg_Node); when An_Access_To_Function | An_Access_To_Protected_Function | An_Anonymous_Access_To_Function | An_Anonymous_Access_To_Protected_Function => Result := Null_Exclusion_Present (Arg_Node); when others => null; end case; return Result; end Is_Not_Null_Return; ------------------------ -- Is_Prefix_Notation -- ------------------------ function Is_Prefix_Notation (Call : Asis.Element) return Boolean is Arg_Kind : constant Internal_Element_Kinds := Int_Kind (Call); Arg_Node : constant Node_Id := R_Node (Call); Result : Boolean := False; begin Check_Validity (Call, Package_Name & "Is_Prefix_Notation"); if Arg_Kind = A_Procedure_Call_Statement then if Is_Rewrite_Substitution (Arg_Node) and then Nkind (Original_Node (Arg_Node)) = Nkind (Arg_Node) and then Nkind (Sinfo.Name (Arg_Node)) = N_Identifier and then Nkind (Sinfo.Name (Original_Node (Arg_Node))) = N_Selected_Component then Result := True; end if; elsif Arg_Kind = A_Function_Call and then Is_Rewrite_Substitution (Arg_Node) then -- If prefix notation is used for a function call, the corresponding -- A_Function_Call element is based on the rewritten node and the -- original node is not used at all if Node (Call) = Arg_Node then Result := Is_Rewritten_Function_Prefix_Notation (Arg_Node); elsif Nkind (Arg_Node) = N_Explicit_Dereference then -- This is a case of *implicit* dereference :( Result := Is_Rewritten_Impl_Deref_Function_Prefix_Notation (Node (Call)); end if; end if; return Result; end Is_Prefix_Notation; ----------------------------------- -- From ARG ASIS 2005 definition -- ----------------------------------- ------------------ -- Has_Abstract -- ------------------ function Has_Abstract (Element : Asis.Element) return Boolean is Arg_Kind : constant Internal_Element_Kinds := Int_Kind (Element); Arg_Node : Node_Id; Result : Boolean := False; begin Check_Validity (Element, Package_Name & "Has_Abstract"); case Arg_Kind is when An_Ordinary_Type_Declaration => Arg_Node := Sinfo.Type_Definition (Node (Element)); when A_Formal_Procedure_Declaration | A_Formal_Function_Declaration | A_Function_Declaration | A_Private_Type_Declaration | A_Private_Extension_Declaration | A_Procedure_Declaration | A_Private_Extension_Definition | A_Tagged_Private_Type_Definition | Internal_Type_Kinds | A_Formal_Tagged_Private_Type_Definition | A_Formal_Derived_Type_Definition => Arg_Node := Node (Element); when others => return False; end case; Result := Nkind (Arg_Node) = N_Abstract_Subprogram_Declaration or else Nkind (Arg_Node) = N_Formal_Abstract_Subprogram_Declaration or else Abstract_Present (Arg_Node); return Result; exception when Ex : others => Report_ASIS_Bug (Query_Name => Package_Name & "Has_Abstract", Ex => Ex, Arg_Element => Element); end Has_Abstract; ----------------- -- Has_Aliased -- ----------------- function Has_Aliased (Element : Asis.Element) return Boolean is Arg_Kind : constant Internal_Element_Kinds := Int_Kind (Element); Result : Boolean := False; begin Check_Validity (Element, Package_Name & "Has_Aliased"); case Arg_Kind is when A_Constant_Declaration | A_Deferred_Constant_Declaration | A_Return_Variable_Specification | A_Return_Constant_Specification | A_Variable_Declaration | A_Component_Definition | A_Parameter_Specification => Result := Aliased_Present (Node (Element)); when others => return False; end case; return Result; exception when Ex : others => Report_ASIS_Bug (Query_Name => Package_Name & "Has_Aliased", Ex => Ex, Arg_Element => Element); end Has_Aliased; ----------------- -- Has_Limited -- ----------------- function Has_Limited (Element : Asis.Element) return Boolean is Arg_Kind : constant Internal_Element_Kinds := Int_Kind (Element); Arg_Node : Node_Id; Result : Boolean := False; begin Check_Validity (Element, Package_Name & "Has_Limited"); case Arg_Kind is when A_With_Clause | A_Private_Type_Declaration | A_Private_Extension_Declaration | Internal_Type_Kinds | A_Private_Type_Definition | A_Tagged_Private_Type_Definition | A_Private_Extension_Definition | A_Formal_Private_Type_Definition | A_Formal_Tagged_Private_Type_Definition | A_Formal_Derived_Type_Definition => Arg_Node := Node (Element); when An_Ordinary_Type_Declaration => Arg_Node := Sinfo.Type_Definition (Node (Element)); when others => return False; end case; Result := Limited_Present (Arg_Node); return Result; exception when Ex : others => Report_ASIS_Bug (Query_Name => Package_Name & "Has_Limited", Ex => Ex, Arg_Element => Element); end Has_Limited; ----------------- -- Has_Private -- ----------------- function Has_Private (Element : Asis.Element) return Boolean is Arg_Kind : constant Internal_Element_Kinds := Int_Kind (Element); begin Check_Validity (Element, Package_Name & "Has_Private"); -- There is no case when a type definition element may contain PRIVATE case Arg_Kind is when A_With_Clause => return Private_Present (Node (Element)); when A_Private_Extension_Declaration | A_Private_Type_Declaration | A_Private_Type_Definition | A_Tagged_Private_Type_Definition | A_Private_Extension_Definition | A_Formal_Private_Type_Definition | A_Formal_Tagged_Private_Type_Definition => return True; when others => return False; end case; exception when Ex : others => Report_ASIS_Bug (Query_Name => Package_Name & "Has_Private", Ex => Ex, Arg_Element => Element); end Has_Private; ------------------- -- Has_Protected -- ------------------- function Has_Protected (Element : Asis.Element) return Boolean is Arg_Kind : constant Internal_Element_Kinds := Int_Kind (Element); begin Check_Validity (Element, Package_Name & "Has_Protected"); -- If our interpretation is correct, there is nothing to compute here, -- and the result is completely defined by the argument kind case Arg_Kind is when A_Protected_Definition | A_Protected_Body_Declaration | A_Protected_Type_Declaration | A_Single_Protected_Declaration | A_Protected_Body_Stub | A_Protected_Interface | A_Formal_Protected_Interface => return True; when others => return False; end case; exception when Ex : others => Report_ASIS_Bug (Query_Name => Package_Name & "Has_Protected", Ex => Ex, Arg_Element => Element); end Has_Protected; ----------------- -- Has_Reverse -- ----------------- function Has_Reverse (Element : Asis.Element) return Boolean is Arg_Kind : constant Internal_Element_Kinds := Int_Kind (Element); Arg_Node : Node_Id; Result : Boolean := False; begin Check_Validity (Element, Package_Name & "Has_Reverse"); case Arg_Kind is when A_Loop_Parameter_Specification | A_Generalized_Iterator_Specification | An_Element_Iterator_Specification => Arg_Node := Node (Element); Result := Reverse_Present (Arg_Node); when others => null; end case; return Result; exception when Ex : others => Report_ASIS_Bug (Query_Name => Package_Name & "Has_Reverse", Ex => Ex, Arg_Element => Element); end Has_Reverse; ---------------------- -- Has_Synchronized -- ---------------------- function Has_Synchronized (Element : Asis.Element) return Boolean is Arg_Kind : constant Internal_Element_Kinds := Int_Kind (Element); Result : Boolean := False; begin Check_Validity (Element, Package_Name & "Has_Synchronized"); case Arg_Kind is when A_Synchronized_Interface | A_Formal_Synchronized_Interface => Result := True; when A_Private_Extension_Definition | A_Formal_Derived_Type_Definition => Result := Synchronized_Present (R_Node (Element)); when others => null; end case; return Result; exception when Ex : others => Report_ASIS_Bug (Query_Name => Package_Name & "Has_Synchronized", Ex => Ex, Arg_Element => Element); end Has_Synchronized; ---------------- -- Has_Tagged -- ---------------- function Has_Tagged (Element : Asis.Element) return Boolean is Arg_Kind : constant Internal_Element_Kinds := Int_Kind (Element); Result : Boolean := False; begin Check_Validity (Element, Package_Name & "Has_Tagged"); case Arg_Kind is when A_Tagged_Incomplete_Type_Declaration | A_Tagged_Private_Type_Definition | A_Tagged_Record_Type_Definition | A_Formal_Tagged_Private_Type_Definition => Result := True; when A_Formal_Incomplete_Type_Declaration => Result := Tagged_Present (Sinfo.Formal_Type_Definition (Node (Element))); when others => null; end case; return Result; exception when Ex : others => Report_ASIS_Bug (Query_Name => Package_Name & "Has_Tagged", Ex => Ex, Arg_Element => Element); end Has_Tagged; --------------- -- Has_Task -- --------------- function Has_Task (Element : Asis.Element) return Boolean is Arg_Kind : constant Internal_Element_Kinds := Int_Kind (Element); Result : Boolean := False; begin Check_Validity (Element, Package_Name & "Has_Task"); case Arg_Kind is when A_Task_Definition | A_Task_Type_Declaration | A_Single_Task_Declaration | A_Task_Body_Declaration | A_Task_Body_Stub | A_Task_Interface | A_Formal_Task_Interface => Result := True; when others => null; end case; return Result; exception when Ex : others => Report_ASIS_Bug (Query_Name => Package_Name & "Has_Task", Ex => Ex, Arg_Element => Element); end Has_Task; ------------------------ -- Has_Null_Exclusion -- ------------------------ function Has_Null_Exclusion (Element : Asis.Element) return Boolean is Arg_Kind : constant Internal_Element_Kinds := Int_Kind (Element); Arg_Node : Node_Id; begin Check_Validity (Element, Package_Name & "Has_Null_Exclusion"); case Arg_Kind is when Internal_Access_Definition_Kinds | Internal_Access_Type_Kinds | A_Parameter_Specification => Arg_Node := Node (Element); when A_Discriminant_Specification => Arg_Node := Node (Element); if not Null_Exclusion_Present (Arg_Node) then Arg_Node := Discriminant_Type (Arg_Node); if Nkind (Arg_Node) /= N_Access_Definition then return False; end if; end if; when An_Object_Renaming_Declaration | A_Formal_Object_Declaration => Arg_Node := Node (Element); if not Null_Exclusion_Present (Arg_Node) and then Present (Access_Definition (Arg_Node)) then Arg_Node := Access_Definition (Arg_Node); end if; when A_Subtype_Indication => Arg_Node := Parent (Node (Element)); when others => return False; end case; return Null_Exclusion_Present (Arg_Node); exception when Ex : others => Report_ASIS_Bug (Query_Name => Package_Name & "Has_Null_Exclusion", Ex => Ex, Arg_Element => Element); end Has_Null_Exclusion; ------------------------------------------------------------------------------ function Unit_Declaration (Compilation_Unit : Asis.Compilation_Unit) return Asis.Declaration is Unit_Kind : Asis.Unit_Kinds; Unit_Declaration_Node : Node_Id; Special_Case : Special_Cases := Not_A_Special_Case; begin Check_Validity (Compilation_Unit, Package_Name & "Unit_Declaration"); Reset_Context (Encl_Cont_Id (Compilation_Unit)); Unit_Kind := Kind (Compilation_Unit); if Unit_Kind = Not_A_Unit then Raise_ASIS_Inappropriate_Compilation_Unit (Package_Name & "Unit_Declaration"); end if; if Unit_Kind = A_Nonexistent_Declaration or else Unit_Kind = A_Nonexistent_Body or else Unit_Kind = An_Unknown_Unit or else Unit_Kind = A_Configuration_Compilation then return Nil_Element; end if; if Is_Standard (Compilation_Unit) then Special_Case := Explicit_From_Standard; Unit_Declaration_Node := Standard_Package_Node; else Unit_Declaration_Node := Unit (Top (Compilation_Unit)); end if; if Has_Limited_View_Only (Compilation_Unit) then Special_Case := From_Limited_View; end if; if Unit_Kind = A_Procedure_Body_Subunit or else Unit_Kind = A_Function_Body_Subunit or else Unit_Kind = A_Package_Body_Subunit or else Unit_Kind = A_Task_Body_Subunit or else Unit_Kind = A_Protected_Body_Subunit then -- one step down the tree is required. No Asis Element can correspond -- to the N_Subunit Node Unit_Declaration_Node := Proper_Body (Unit_Declaration_Node); end if; return Node_To_Element_New (Node => Unit_Declaration_Node, Spec_Case => Special_Case, In_Unit => Compilation_Unit); exception when ASIS_Inappropriate_Compilation_Unit => raise; when ASIS_Failed => if Status_Indicator = Unhandled_Exception_Error then Add_Call_Information (Outer_Call => Package_Name & "Unit_Declaration"); end if; raise; when Ex : others => Report_ASIS_Bug (Query_Name => Package_Name & "Unit_Declaration", Ex => Ex, Arg_CU => Compilation_Unit); end Unit_Declaration; ----------------------------------------------------------------------------- function Enclosing_Compilation_Unit (Element : Asis.Element) return Asis.Compilation_Unit is Arg_Kind : constant Internal_Element_Kinds := Int_Kind (Element); begin Check_Validity (Element, Package_Name & "Enclosing_Compilation_Unit"); if Arg_Kind = Not_An_Element then Raise_ASIS_Inappropriate_Element (Package_Name & "Enclosing_Compilation_Unit", Wrong_Kind => Arg_Kind); end if; return Encl_Unit (Element); exception when ASIS_Inappropriate_Element => raise; when ASIS_Failed => if Status_Indicator = Unhandled_Exception_Error then Add_Call_Information (Argument => Element, Outer_Call => Package_Name & "Enclosing_Compilation_Unit"); end if; raise; when Ex : others => Report_ASIS_Bug (Query_Name => Package_Name & "Enclosing_Compilation_Unit", Ex => Ex, Arg_Element => Element); end Enclosing_Compilation_Unit; ----------------------------------------------------------------------------- function Context_Clause_Elements (Compilation_Unit : Asis.Compilation_Unit; Include_Pragmas : Boolean := False) return Asis.Context_Clause_List is Unit_Kind : Asis.Unit_Kinds; -- Compilation_Unit kind List_Before : List_Id; begin Check_Validity (Compilation_Unit, Package_Name & "Context_Clause_Elements"); Unit_Kind := Kind (Compilation_Unit); if Unit_Kind = Not_A_Unit then Raise_ASIS_Inappropriate_Compilation_Unit (Package_Name & "Context_Clause_Elements"); end if; if Is_Standard (Compilation_Unit) or else Unit_Kind = A_Nonexistent_Declaration or else Unit_Kind = A_Nonexistent_Body or else Unit_Kind = An_Unknown_Unit or else Unit_Kind = A_Configuration_Compilation or else Has_Limited_View_Only (Compilation_Unit) then -- The last part of the condition comes from the GNAT compilation -- model. But it seems that it should be in the definition of -- this query in the ASIS Standard return Nil_Element_List; end if; List_Before := Context_Items (Top (Compilation_Unit)); return N_To_E_List_New (List => List_Before, Include_Pragmas => Include_Pragmas, In_Unit => Compilation_Unit); exception when ASIS_Inappropriate_Compilation_Unit => raise; when ASIS_Failed => if Status_Indicator = Unhandled_Exception_Error then Add_Call_Information (Outer_Call => Package_Name & "Context_Clause_Elements", Bool_Par => Include_Pragmas); end if; raise; when Ex : others => Report_ASIS_Bug (Query_Name => Package_Name & "Context_Clause_Elements", Ex => Ex, Arg_CU => Compilation_Unit, Bool_Par_ON => Include_Pragmas); end Context_Clause_Elements; ------------------------------------------------------------------------------ function Configuration_Pragmas (The_Context : Asis.Context) return Asis.Pragma_Element_List is begin Check_Validity (The_Context, Package_Name & "Configuration_Pragmas"); -- In the GNAT environment, "a list of pragmas that apply to all future -- compilation_unit elements compiled into The_Context" is defined by -- the -gnatA and -gnatec options used when calling the compiler and -- by the content of configuration file(s) at the moment of the compiler -- call. These things cannot be detected from the set of tree files -- making up the Context, so the only thing we can do is to return -- Nil_Element_List return Nil_Element_List; exception when ASIS_Inappropriate_Context => raise; when ASIS_Failed => if Status_Indicator = Unhandled_Exception_Error then Add_Call_Information (Outer_Call => Package_Name & "Configuration_Pragmas"); end if; raise; when Ex : others => Report_ASIS_Bug (Query_Name => Package_Name & "Configuration_Pragmas", Ex => Ex); end Configuration_Pragmas; ----------------------------------------------------------------------------- function Compilation_Pragmas (Compilation_Unit : Asis.Compilation_Unit) return Asis.Pragma_Element_List is Unit_Kind : Asis.Unit_Kinds; Config_Prgms : List_Id := No_List; List_Before : List_Id; Next_Pragma : Node_Id; List_After : List_Id; begin Check_Validity (Compilation_Unit, Package_Name & "Compilation_Pragmas"); Unit_Kind := Kind (Compilation_Unit); if Unit_Kind = Not_A_Unit then Raise_ASIS_Inappropriate_Compilation_Unit (Package_Name & "Compilation_Pragmas"); end if; if Is_Standard (Compilation_Unit) or else Unit_Kind = A_Nonexistent_Declaration or else Unit_Kind = A_Nonexistent_Body or else Unit_Kind = An_Unknown_Unit or else Unit_Kind = A_Configuration_Compilation or else Has_Limited_View_Only (Compilation_Unit) then -- The last part of the condition is GNAT-specific return Nil_Element_List; end if; Reset_Context (Encl_Cont_Id (Compilation_Unit)); -- For the GNAT compilation model, we consider that configuration -- pragmas from the configuration file(s) are applied to the main unit -- of the compilation only. So if some unit belonging to the Context -- is compiled only as a supporter of some other units, but not on -- their own, the result of Compilation_Pragmas applied to this unit -- does not include any configuration pragmas from the configuration -- file(s). if Asis.Extensions.Is_Main_Unit_In_Tree (Compilation_Unit) then Reset_Main_Tree (Compilation_Unit); Config_Prgms := Config_Pragmas (Aux_Decls_Node (Top (Compilation_Unit))); end if; List_Before := Context_Items (Top (Compilation_Unit)); List_After := Pragmas_After (Aux_Decls_Node (Top (Compilation_Unit))); Set_Element_List (List => Config_Prgms, Include_Pragmas => True, Node_Knd => N_Pragma, Special_Case => Configuration_File_Pragma, In_Unit => Compilation_Unit, Append => False); -- The middle part - pragmas from the context clause - we have to -- compose by hands, because we can add to the result only the -- configuration pragmas if Present (List_Before) then Next_Pragma := First (List_Before); Next_Pragma := Get_Next_Configuration_Pragma (Next_Pragma); while Present (Next_Pragma) loop Internal_Asis_Element_Table.Append (Node_To_Element_New (Node => Next_Pragma, In_Unit => Compilation_Unit)); Next_Pragma := Get_Next_Configuration_Pragma (Next (Next_Pragma)); end loop; end if; Set_Element_List (List => List_After, Include_Pragmas => True, Node_Knd => N_Pragma, In_Unit => Compilation_Unit, Append => True); return Asis.Pragma_Element_List (Internal_Asis_Element_Table.Table (1 .. Internal_Asis_Element_Table.Last)); exception when ASIS_Inappropriate_Compilation_Unit => raise; when ASIS_Failed => if Status_Indicator = Unhandled_Exception_Error then Add_Call_Information (Outer_Call => Package_Name & "Compilation_Pragmas"); end if; raise; when Ex : others => Report_ASIS_Bug (Query_Name => Package_Name & "Compilation_Pragmas", Ex => Ex, Arg_CU => Compilation_Unit); end Compilation_Pragmas; ------------------------------------------------------------------------------ function Element_Kind (Element : Asis.Element) return Asis.Element_Kinds is begin Check_Validity (Element, Package_Name & "Element_Kind"); return Kind (Element); end Element_Kind; ----------------------------------------------------------------------------- function Pragma_Kind (Pragma_Element : Asis.Pragma_Element) return Asis.Pragma_Kinds is begin Check_Validity (Pragma_Element, Package_Name & "Pragma_Kind"); return Pragma_Kind_From_Internal (Int_Kind (Pragma_Element)); end Pragma_Kind; ----------------------------------------------------------------------------- function Defining_Name_Kind (Defining_Name : Asis.Defining_Name) return Asis.Defining_Name_Kinds is begin Check_Validity (Defining_Name, Package_Name & "Defining_Name_Kind"); return Defining_Name_Kind_From_Internal (Int_Kind (Defining_Name)); end Defining_Name_Kind; ----------------------------------------------------------------------------- function Declaration_Kind (Declaration : Asis.Declaration) return Asis.Declaration_Kinds is begin Check_Validity (Declaration, Package_Name & "Declaration_Kind"); return Declaration_Kind_From_Internal (Int_Kind (Declaration)); end Declaration_Kind; ---------------- -- Trait_Kind -- ---------------- function Trait_Kind (Element : Asis.Element) return Asis.Trait_Kinds is -- Trait-related flag values: Is_Abstract : Boolean; Is_Limited : Boolean; Is_Aliased : Boolean; Is_Private : Boolean; Arg_Node : Node_Id; Result : Asis.Trait_Kinds := An_Ordinary_Trait; begin Check_Validity (Element, Package_Name & "Trait_Kind"); -- ASIS_Element_Kinds.Trait_Kinds literals and GNAT tree flags mapping: -- -- (This nice piece of documentation is for ASIS/Ada 95 only, we have not -- extended it for Ada 2005) -- -- type Trait_Kinds is ( -- -- Not_A_Trait, --> Unexpected element, its node always has no -- -- corresponding flags and its kind does not belong -- -- to the Node Kinds for which A_Private_Trait could -- -- be determined -- -- An_Ordinary_Trait, --> all flags are set off, and the node kind -- does not belong to the Node Kinds for which -- A_Private_Trait could be determined -- -- An_Aliased_Trait, --> Aliased_Present set ON -- -- An_Access_Definition_Trait, --> no special flag, could be defined -- -- on the base of the presence of -- -- the N_Access_Definition node as the -- -- child node of the argument node -- -- A_Reverse_Trait, --> Reverse_Present set ON -- -- A_Private_Trait, --> except the case of -- A_Formal_Derived_Type_Definition, -- -- no special flag is presented in the corresponding -- -- node, the A_Private_Trait could be defined -- -- on the base of Node Kinds and setting other -- -- flags OFF; -- -- for A_Formal_Derived_Type_Definition - -- -- Private_Present set ON -- -- A_Limited_Trait, --> Limited_Present set ON and corresponding node -- -- does not belong to the Node Kinds for which -- -- A_Private_Trait could be defined -- -- A_Limited_Private_Trait, --> Limited_Present set ON and corresponding -- -- node belongs to the Node Kinds for which -- -- A_Private_Trait could be defined -- -- An_Abstract_Trait, --> For types: Abstract_Present set ON and -- -- corresponding node does not belong to the -- -- Node Kinds for which A_Private_Trait could be -- -- defined; -- -- For subprograms: no special flag, could be -- -- defined on the base of the Node Kind of the -- -- argument node -- -- An_Abstract_Private_Trait, --> except the case of -- -- A_Formal_Derived_Type_Definition, -- -- Abstract_Present set ON and corresponding -- -- node belongs to the Node Kinds for which -- -- A_Private_Trait could be defined; -- -- for A_Formal_Derived_Type_Definition - -- -- Abstract_Present set ON and -- -- Private_Present set ON -- -- An_Abstract_Limited_Trait, --> Abstract_Present set ON, -- -- Limited_Present set ON -- -- and corresponding node does not belong -- -- to the Node Kinds for which -- -- A_Private_Trait could be defined -- -- An_Abstract_Limited_Private_Trait); --> Abstract_Present set ON, -- -- Limited_Present set ON and -- -- corresponding node belongs -- -- to Node Kinds for which -- -- A_Private_Trait could be defined -- ---------------------------------------------------------------------------- -- Expected Argument_Kinds: -> Corresponding tree Nodes: -- Possible Trait values: --> Provided trait-related flags and -- combination of their values -- corresponding to the Trait value ---------------------------------------------------------------------------- -- -- Expected Declaration_Kinds: -- ========================== -- -- A_Private_Type_Declaration -> N_Private_Type_Declaration (*1*) -- A_Private_Trait --> Abstract_Present = OFF -- Limited_Present = OFF -- -- A_Limited_Private_Trait --> Abstract_Present = OFF -- Limited_Present = ON -- -- An_Abstract_Private_Trait --> Abstract_Present = ON -- Limited_Present = OFF -- -- An_Abstract_Limited_Private_Trait --> Abstract_Present = ON -- Limited_Present = ON ----------------------------------------------- -- A_Private_Extension_Declaration -> N_Private_Extension_Declaration (*2*) -- A_Private_Trait --> Abstract_Present = OFF -- -- An_Abstract_Private_Trait --> Abstract_Present = ON ----------------------------------------------- -- A_Variable_Declaration -> N_Object_Declaration (*3*) -- An_Ordinary_Trait --> Aliased_Present = OFF -- -- An_Aliased_Trait --> Aliased_Present = ON ----------------------------------------------- -- A_Constant_Declaration -> N_Object_Declaration (*3*) -- An_Ordinary_Trait --> Aliased_Present = OFF -- -- An_Aliased_Trait --> Aliased_Present = ON ----------------------------------------------- -- A_Deferred_Constant_Declaration -> N_Object_Declaration (*3*) -- An_Ordinary_Trait --> Aliased_Present = OFF -- -- An_Aliased_Trait --> Aliased_Present = ON ----------------------------------------------- -- A_Discriminant_Specification -> N_Discriminant_Specification (*4*) -- Has no trait-related flags -- -- An_Ordinary_Trait --> Nkind(Discriminant_Type(Definition.Node)) -- /= N_Access_Definition -- An_Access_Definition_Trait--> Nkind(Discriminant_Type(Definition.Node)) -- = N_Access_Definition ----------------------------------------------- -- A_Loop_Parameter_Specification -> N_Loop_Parameter_Specification (*5*) -- A_Generalized_Iterator_Specification -> N_Iterator_Specification (*5*) -- An_Element_Iterator_Specification -> N_Iterator_Specification (*5*) -- -- An_Ordinary_Trait --> Reverse_Present = OFF -- -- A_Reverse_Trait --> Reverse_Present = ON ----------------------------------------------- -- A_Procedure_Declaration -> N_Subprogram_Declaration (*6*) -- An_Ordinary_Trait --> No flag needed to determine the trait -- -> N_Abstract_Subprogram_Declaration -- An_Abstract_Trait --> No flag needed to determine the trait ----------------------------------------------- -- A_Function_Declaration -> N_Subprogram_Declaration (*6*) -- An_Ordinary_Trait --> No flag needed to determine the trait -- -> N_Abstract_Subprogram_Declaration -- An_Abstract_Trait --> No flag needed to determine the trait ----------------------------------------------- -- A_Parameter_Specification -> N_Parameter_Specification (*4*) -- Has no trait-related flags -- -- An_Ordinary_Trait --> Nkind(Parameter_Type(Definition.Node)) -- /= N_Access_Definition -- An_Access_Definition_Trait --> Nkind(Parameter_Type(Definition.Node)) -- = N_Access_Definition ----------------------------------------------- -- -- Expected Definition_Kinds: -- ========================= -- -- A_Component_Definition -> N_Subtype_Indication (*10*) -- N_Identifier -- N_Expanded_Name -- An_Ordinary_Trait --> Aliased_Present set OFF in the PARENT node -- An_Aliased_Trait --> Aliased_Present set ON in the PARENT nod -- -- A_Private_Type_Definition -> N_Private_Type_Declaration (*1*) -- The situation is just the same as for A_Private_Type_Declaration ----------------------------------------------- -- A_Tagged_Private_Type_Definition-> N_Private_Type_Declaration (*1*) -- The situation is just the same as for A_Private_Type_Declaration ----------------------------------------------- -- A_Private_Extension_Definition -> N_Private_Extension_Declaration (*2*) -- The situation is just the same as for N_Private_Extension_Declaration ----------------------------------------------- -- -- Expected Type_Kinds: -- =================== -- ----------------------------------------------- -- A_Derived_Type_Definition -> N_Derived_Type_Definition (*7*) -- An_Ordinary_Trait --> Abstract_Present = OFF -- -- An_Abstract_Trait --> Abstract_Present = ON ----------------------------------------------- -- A_Derived_Record_Extension_Definition -> N_Derived_Type_Definition (*7*) -- An_Ordinary_Trait --> Abstract_Present = OFF -- -- An_Abstract_Trait --> Abstract_Present = ON ----------------------------------------------- -- A_Record_Type_Definition -> N_Record_Definition (*8*) -- An_Ordinary_Trait --> Abstract_Present = OFF -- Limited_Present = OFF -- -- An_Abstract_Trait --> Abstract_Present = ON -- Limited_Present = OFF -- -- A_Limited_Trait --> Abstract_Present = OFF -- Limited_Present = ON -- -- An_Abstract_Limited_Trait --> Abstract_Present = ON -- Limited_Present = ON ----------------------------------------------- -- A_Tagged_Record_Type_Definition -> N_Record_Definition (*8*) -- An_Ordinary_Trait --> Abstract_Present = OFF -- Limited_Present = OFF -- -- An_Abstract_Trait --> Abstract_Present = ON -- Limited_Present = OFF -- -- A_Limited_Trait --> Abstract_Present = OFF -- Limited_Present = ON -- -- An_Abstract_Limited_Trait --> Abstract_Present = ON -- Limited_Present = ON ----------------------------------------------- -- -- Expected Formal_Type_Kinds: -- ========================== -- -- A_Formal_Private_Type_Definition -> N_Formal_Private_Type_Definition -- (*1*) -- The situation is just the same as for A_Private_Type_Declaration ----------------------------------------------- -- A_Formal_Tagged_Private_Type_Definition -> -- N_Formal_Private_Type_Definition (*1*) -- -- The situation is just the same as for A_Private_Type_Declaration ----------------------------------------------- -- A_Formal_Derived_Type_Definition -> N_Formal_Derived_Type_Definition(*9*) -- An_Ordinary_Trait --> Abstract_Present = OFF -- Private_Present = OFF -- -- An_Abstract_Trait --> Abstract_Present = ON -- Private_Present = OFF -- -- A_Private_Trait --> Abstract_Present = OFF -- Private_Present = ON -- -- An_Abstract_Private_Trait --> Abstract_Present = ON -- Private_Present = ON ------------------------------------------------------------------------------ Arg_Node := Node (Element); case Int_Kind (Element) is -- expected argument: when -- (*1*) A_Private_Type_Declaration | A_Private_Type_Definition | A_Tagged_Private_Type_Definition | A_Formal_Private_Type_Definition | A_Formal_Tagged_Private_Type_Definition => Is_Abstract := Abstract_Present (Arg_Node); Is_Limited := Limited_Present (Arg_Node); if Is_Abstract and Is_Limited then Result := An_Abstract_Limited_Private_Trait; elsif Is_Abstract then Result := An_Abstract_Private_Trait; elsif Is_Limited then Result := A_Limited_Private_Trait; else Result := A_Private_Trait; end if; when -- (*2*) A_Private_Extension_Declaration | A_Private_Extension_Definition => Is_Abstract := Abstract_Present (Arg_Node); if Is_Abstract then Result := An_Abstract_Private_Trait; else Result := A_Private_Trait; end if; when -- (*3*) A_Variable_Declaration | A_Constant_Declaration | A_Deferred_Constant_Declaration => Is_Aliased := Aliased_Present (Arg_Node); if Is_Aliased then Result := An_Aliased_Trait; end if; when -- (*4*) A_Discriminant_Specification | A_Parameter_Specification => -- --|A2005 start if Null_Exclusion_Present (Arg_Node) then Result := A_Null_Exclusion_Trait; elsif Int_Kind (Element) = A_Parameter_Specification and then Aliased_Present (Arg_Node) then Result := An_Aliased_Trait; end if; -- --|A2005 end when -- (*5*) A_Loop_Parameter_Specification | A_Generalized_Iterator_Specification | An_Element_Iterator_Specification => if Reverse_Present (Arg_Node) then Result := A_Reverse_Trait; end if; when -- (*6*) A_Procedure_Declaration | A_Function_Declaration => if Nkind (Arg_Node) = N_Abstract_Subprogram_Declaration then Result := An_Abstract_Trait; end if; -- --|A2005 start when A_Formal_Procedure_Declaration | A_Formal_Function_Declaration => if Nkind (Arg_Node) = N_Formal_Abstract_Subprogram_Declaration then Result := An_Abstract_Trait; end if; -- --|A2005 end when -- (*7*) A_Derived_Type_Definition | A_Derived_Record_Extension_Definition => if Abstract_Present (Arg_Node) then Result := An_Abstract_Trait; end if; when -- (*8*) A_Record_Type_Definition | A_Tagged_Record_Type_Definition => Is_Abstract := Abstract_Present (Arg_Node); Is_Limited := Limited_Present (Arg_Node); if Is_Abstract and Is_Limited then Result := An_Abstract_Limited_Trait; elsif Is_Abstract then Result := An_Abstract_Trait; elsif Is_Limited then Result := A_Limited_Trait; end if; when -- (*9*) A_Formal_Derived_Type_Definition => Is_Abstract := Abstract_Present (Arg_Node); Is_Limited := Limited_Present (Arg_Node); Is_Private := Private_Present (Arg_Node); if Is_Abstract and Is_Limited and Is_Private then Result := An_Abstract_Limited_Private_Trait; elsif Is_Abstract and Is_Limited then Result := An_Abstract_Limited_Trait; elsif Is_Abstract and Is_Private then Result := An_Abstract_Private_Trait; elsif Is_Limited and Is_Private then Result := A_Limited_Private_Trait; elsif Is_Abstract then Result := An_Abstract_Trait; elsif Is_Limited then Result := A_Limited_Trait; elsif Is_Private then Result := A_Private_Trait; end if; when -- (*10*) A_Component_Definition => if Aliased_Present (R_Node (Element)) then Result := An_Aliased_Trait; end if; -- --|A2005 start when A_With_Clause => Is_Limited := Limited_Present (Arg_Node); Is_Private := Private_Present (Arg_Node); if Is_Limited then if Is_Private then Result := A_Limited_Private_Trait; else Result := A_Limited_Trait; end if; elsif Is_Private then Result := A_Private_Trait; end if; when Internal_Access_Type_Kinds => if Null_Exclusion_Present (Arg_Node) then Result := A_Null_Exclusion_Trait; end if; when Internal_Access_Definition_Kinds => if Present (Sinfo.Access_To_Subprogram_Definition (Arg_Node)) then Arg_Node := Sinfo.Access_To_Subprogram_Definition (Arg_Node); end if; if Null_Exclusion_Present (Arg_Node) then Result := A_Null_Exclusion_Trait; end if; when A_Subtype_Indication => Arg_Node := Parent (Arg_Node); if Null_Exclusion_Present (Arg_Node) then Result := A_Null_Exclusion_Trait; end if; -- --|A2005 end when others => -- unexpected argument: Result := Not_A_Trait; end case; return Result; exception when ASIS_Inappropriate_Element => raise; when ASIS_Failed => if Status_Indicator = Unhandled_Exception_Error then Add_Call_Information (Argument => Element, Outer_Call => Package_Name & "Trait_Kind"); end if; raise; when Ex : others => Report_ASIS_Bug (Query_Name => Package_Name & "Trait_Kind", Ex => Ex, Arg_Element => Element); end Trait_Kind; ------------------------------------------------------------------------------ function Declaration_Origin (Declaration : Asis.Declaration) return Asis.Declaration_Origins is begin -- The implementation may require revising when the semantic queries -- and implicit elements are implemented. Check_Validity (Declaration, Package_Name & "Declaration_Origin"); if Int_Kind (Declaration) not in Internal_Declaration_Kinds then return Not_A_Declaration_Origin; elsif not Is_From_Implicit (Declaration) then return An_Explicit_Declaration; elsif Is_From_Inherited (Declaration) then return An_Implicit_Inherited_Declaration; else return An_Implicit_Predefined_Declaration; end if; end Declaration_Origin; ----------------------------------------------------------------------------- function Mode_Kind (Declaration : Asis.Declaration) return Asis.Mode_Kinds is Arg_Kind : constant Internal_Element_Kinds := Int_Kind (Declaration); Arg_Node : Node_Id; begin Check_Validity (Declaration, Package_Name & "Mode_Kind"); if not (Arg_Kind = A_Parameter_Specification or else Arg_Kind = A_Formal_Object_Declaration) then return Not_A_Mode; end if; Arg_Node := Node (Declaration); if In_Present (Arg_Node) and then Out_Present (Arg_Node) then return An_In_Out_Mode; elsif In_Present (Arg_Node) then return An_In_Mode; elsif Out_Present (Arg_Node) then return An_Out_Mode; else return A_Default_In_Mode; end if; exception when ASIS_Inappropriate_Element => raise; when ASIS_Failed => if Status_Indicator = Unhandled_Exception_Error then Add_Call_Information (Argument => Declaration, Outer_Call => Package_Name & "Mode_Kind"); end if; raise; when Ex : others => Report_ASIS_Bug (Query_Name => Package_Name & "Mode_Kind", Ex => Ex, Arg_Element => Declaration); end Mode_Kind; ----------------------------------------------------------------------------- function Default_Kind (Declaration : Asis.Generic_Formal_Parameter) return Asis.Subprogram_Default_Kinds is Arg_Kind : constant Internal_Element_Kinds := Int_Kind (Declaration); Arg_Node : Node_Id; begin Check_Validity (Declaration, Package_Name & "Default_Kind"); Arg_Node := Node (Declaration); if not (Arg_Kind = A_Formal_Procedure_Declaration or else Arg_Kind = A_Formal_Function_Declaration) then return Not_A_Default; elsif Box_Present (Arg_Node) then return A_Box_Default; elsif Present (Default_Name (Arg_Node)) then return A_Name_Default; elsif Nkind (Specification (Arg_Node)) = N_Procedure_Specification and then Null_Present (Specification (Arg_Node)) then return A_Null_Default; else return A_Nil_Default; end if; exception when ASIS_Inappropriate_Element => raise; when ASIS_Failed => if Status_Indicator = Unhandled_Exception_Error then Add_Call_Information (Argument => Declaration, Outer_Call => Package_Name & "Default_Kind"); end if; raise; when Ex : others => Report_ASIS_Bug (Query_Name => Package_Name & "Default_Kind", Ex => Ex, Arg_Element => Declaration); end Default_Kind; ----------------------------------------------------------------------------- function Definition_Kind (Definition : Asis.Definition) return Asis.Definition_Kinds is begin Check_Validity (Definition, Package_Name & "Definition_Kind"); return Definition_Kind_From_Internal (Int_Kind (Definition)); end Definition_Kind; ----------------------------------------------------------------------------- function Type_Kind (Definition : Asis.Type_Definition) return Asis.Type_Kinds is begin Check_Validity (Definition, Package_Name & "Type_Kind"); return Type_Kind_From_Internal (Int_Kind (Definition)); end Type_Kind; ----------------------------------------------------------------------------- function Formal_Type_Kind (Definition : Asis.Type_Definition) return Asis.Formal_Type_Kinds is begin Check_Validity (Definition, Package_Name & "Formal_Type_Kind"); return Formal_Type_Kind_From_Internal (Int_Kind (Definition)); end Formal_Type_Kind; ----------------------------------------------------------------------------- function Access_Type_Kind (Definition : Asis.Type_Definition) return Asis.Access_Type_Kinds is begin Check_Validity (Definition, Package_Name & "Access_Type_Kind"); return Access_Type_Kind_From_Internal (Int_Kind (Definition)); end Access_Type_Kind; ----------------------------------------------------------------------------- function Root_Type_Kind (Definition : Asis.Type_Definition) return Asis.Root_Type_Kinds is begin Check_Validity (Definition, Package_Name & "Root_Type_Kind"); return Root_Type_Kind_From_Internal (Int_Kind (Definition)); end Root_Type_Kind; ----------------------------------------------------------------------------- function Constraint_Kind (Definition : Asis.Definition) return Asis.Constraint_Kinds is begin Check_Validity (Definition, Package_Name & "Constraint_Kind"); return Constraint_Kind_From_Internal (Int_Kind (Definition)); end Constraint_Kind; ----------------------------------------------------------------------------- function Discrete_Range_Kind (Definition : Asis.Definition) return Asis.Discrete_Range_Kinds is begin Check_Validity (Definition, "Discrete_Range_Kind.Expression_Kind"); return Discrete_Range_Kind_From_Internal (Int_Kind (Definition)); end Discrete_Range_Kind; ----------------------------------------------------------------------------- function Expression_Kind (Expression : Asis.Expression) return Asis.Expression_Kinds is begin Check_Validity (Expression, Package_Name & "Expression_Kind"); return Expression_Kind_From_Internal (Int_Kind (Expression)); end Expression_Kind; ----------------------------------------------------------------------------- function Operator_Kind (Element : Asis.Element) return Asis.Operator_Kinds is begin Check_Validity (Element, Package_Name & "Operator_Kind"); return Operator_Kind_From_Internal (Int_Kind (Element)); end Operator_Kind; ----------------------------------------------------------------------------- function Attribute_Kind (Expression : Asis.Expression) return Asis.Attribute_Kinds is begin Check_Validity (Expression, Package_Name & "Attribute_Kind"); return Attribute_Kind_From_Internal (Int_Kind (Expression)); end Attribute_Kind; ----------------------------------------------------------------------------- function Association_Kind (Association : Asis.Association) return Asis.Association_Kinds is begin Check_Validity (Association, Package_Name & "Association_Kind"); return Association_Kind_From_Internal (Int_Kind (Association)); end Association_Kind; ----------------------------------------------------------------------------- function Statement_Kind (Statement : Asis.Statement) return Asis.Statement_Kinds is begin Check_Validity (Statement, Package_Name & "Statement_Kind"); return Statement_Kind_From_Internal (Int_Kind (Statement)); end Statement_Kind; ----------------------------------------------------------------------------- function Path_Kind (Path : Asis.Path) return Asis.Path_Kinds is begin Check_Validity (Path, Package_Name & "Clause_Kind"); return Path_Kind_From_Internal (Int_Kind (Path)); end Path_Kind; ----------------------------------------------------------------------------- function Clause_Kind (Clause : Asis.Clause) return Asis.Clause_Kinds is begin Check_Validity (Clause, Package_Name & "Clause_Kind"); return Clause_Kind_From_Internal (Int_Kind (Clause)); end Clause_Kind; ----------------------------------------------------------------------------- function Representation_Clause_Kind (Clause : Asis.Clause) return Asis.Representation_Clause_Kinds is begin Check_Validity (Clause, Package_Name & "Representation_Clause_Kind"); return Representation_Clause_Kind_From_Internal (Int_Kind (Clause)); end Representation_Clause_Kind; ----------------------------------------------------------------------------- function Is_Nil (Right : Asis.Element) return Boolean is begin return Right = Asis.Nil_Element; end Is_Nil; ----------------------------------------------------------------------------- function Is_Nil (Right : Asis.Element_List) return Boolean is begin return Right'Length = 0; end Is_Nil; ----------------------------------------------------------------------------- function Is_Equal (Left : Asis.Element; Right : Asis.Element) return Boolean is C_Left : Context_Id; C_Right : Context_Id; U_Left : Unit_Id; U_Right : Unit_Id; CU_Left : Compilation_Unit; CU_Right : Compilation_Unit; N_Left : Node_Id; N_Right : Node_Id; Result : Boolean := False; begin Check_Validity (Left, Package_Name & "Is_Equal"); Check_Validity (Right, Package_Name & "Is_Equal"); -- To minimize the performance penalties, we are trying to filter -- out simple cases first. These are (more or less) simple cases -- when the function should return False -- First, checking the case when one of the arguments is Nil_Element if Int_Kind (Left) = Not_An_Element or else Int_Kind (Right) = Not_An_Element then return (Int_Kind (Left) = Int_Kind (Right)); end if; -- Then, we are checking if the basic properties of the argument are -- the same if not (Special_Case (Left) = Special_Case (Right) and then Int_Kind (Left) = Int_Kind (Right) and then Character_Code (Left) = Character_Code (Right) and then Is_From_Implicit (Left) = Is_From_Implicit (Right) and then Is_From_Inherited (Left) = Is_From_Inherited (Right) and then Is_From_Instance (Left) = Is_From_Instance (Right) and then Normalization_Case (Left) = Normalization_Case (Right) and then Parenth_Count (Left) = Parenth_Count (Right)) then return False; end if; -- Now, checking that arguments are from the same Ada unit C_Left := Encl_Cont_Id (Left); U_Left := Encl_Unit_Id (Left); C_Right := Encl_Cont_Id (Right); U_Right := Encl_Unit_Id (Right); if C_Left = C_Right then if U_Left /= U_Right then return False; end if; else -- This case is a bit more complicated: we have to compare names -- and time stamps of enclosed units if U_Left = Standard_Id or else U_Right = Standard_Id then if U_Left /= U_Right then return False; end if; else if Time_Stamp (C_Left, U_Left) /= Time_Stamp (C_Right, U_Right) then return False; end if; -- Here we have to compare unit names. Let's check unit kind -- and class first CU_Left := Encl_Unit (Left); CU_Right := Encl_Unit (Right); if not (Kind (CU_Left) = Kind (CU_Right) and then Class (CU_Left) = Class (CU_Right)) then return False; end if; -- And now - unit names. This case does not seem to be -- encountered very often, so we simply use Unit_Full_Name -- query to avoid manual Context switching: if Asis.Compilation_Units.Unit_Full_Name (CU_Left) /= Asis.Compilation_Units.Unit_Full_Name (CU_Right) then return False; end if; end if; end if; -- And if we are here, we are in the following situation: both Left -- and Right are non-nil Elements, they have all their properties -- the same and they are from the same Compilation_Unit. -- And now we have to check if they represents the same construct. if U_Left = Standard_Id or else (C_Left = C_Right and then Encl_Tree (Left) = Encl_Tree (Right)) then -- In Standard, we may just compare the node values. -- In the same tree we may do the same return R_Node (Left) = R_Node (Right); end if; -- In case of configuration pragmas and components thereof we are very -- conservative - two elements can be equal only if there are from -- the same tree. The reason for this is that in ASIS we have no -- means to control that the content of the configuration files -- is the same in different trees. if Special_Case (Left) = Configuration_File_Pragma then return Encl_Tree (Left) = Encl_Tree (Right) and then R_Node (Left) = R_Node (Right); end if; -- And if we are here, we have to compare Elements obtained from -- different trees if not Is_From_Instance (Left) then -- May be, we have to use source-trace-based approach for -- all cases....???? return Rel_Sloc (Left) = Rel_Sloc (Right); end if; -- If we are here, we have to compare node traces. Reset_Context (C_Left); N_Left := R_Node (Left); Create_Node_Trace (N_Left); Reset_Context (C_Right); N_Right := R_Node (Right); Result := True; for J in Node_Trace.First .. Node_Trace.Last loop if No (N_Right) or else not Is_Equal (N_Right, Node_Trace.Table (J)) then Result := False; exit; end if; N_Right := A4G.Asis_Tables.Enclosing_Scope (N_Right); end loop; return Result; exception when ASIS_Inappropriate_Element => raise; when ASIS_Failed => if Status_Indicator = Unhandled_Exception_Error then Add_Call_Information (Outer_Call => Package_Name & "Is_Equal"); end if; raise; when Ex : others => Report_ASIS_Bug (Query_Name => Package_Name & "Is_Equal", Ex => Ex, Arg_Element => Left, Arg_Element_2 => Right); end Is_Equal; ----------------------------------------------------------------------------- function Is_Identical (Left : Asis.Element; Right : Asis.Element) return Boolean is C_Left : Context_Id; C_Right : Context_Id; begin Check_Validity (Left, Package_Name & "Is_Identical"); Check_Validity (Right, Package_Name & "Is_Identical"); C_Left := Encl_Cont_Id (Left); C_Right := Encl_Cont_Id (Right); if C_Left /= C_Right then return False; else return Is_Equal (Left, Right); end if; exception when ASIS_Inappropriate_Element => raise; when ASIS_Failed => if Status_Indicator = Unhandled_Exception_Error then Add_Call_Information (Outer_Call => Package_Name & "Is_Identical"); end if; raise; when Ex : others => Report_ASIS_Bug (Query_Name => Package_Name & "Is_Identical", Ex => Ex, Arg_Element => Left, Arg_Element_2 => Right); end Is_Identical; ------------------------------------------------------------------------------ -- The general principle of the implementation -- of the Is_Part_Of_... functions: -- -- These functions simply returns the corresponding flag value from the -- Element passed as their argument. All necessary work should be done -- during the creation of the Element when these flags are set -- -- All of them (as well as the function Declaration_Origin above) will -- require revisiting during semantic queries implementation ------------------------------------------------------------------------------ function Is_Part_Of_Implicit (Element : Asis.Element) return Boolean is begin Check_Validity (Element, Package_Name & "Is_Part_Of_Implicit"); return Is_From_Implicit (Element) or else Normalization_Case (Element) in Normalized_Association; -- for normalized associations Is_Part_Of_Implicit is not set ON ??? -- unless the association is from some enclosing implicit construct. ??? end Is_Part_Of_Implicit; ----------------------------------------------------------------------------- function Is_Part_Of_Inherited (Element : Asis.Element) return Boolean is begin Check_Validity (Element, Package_Name & "Is_Part_Of_Inherited"); return Is_From_Inherited (Element); end Is_Part_Of_Inherited; ----------------------------------------------------------------------------- function Is_Part_Of_Instance (Element : Asis.Element) return Boolean is begin Check_Validity (Element, Package_Name & "Is_Part_Of_Instance"); return Is_From_Instance (Element); end Is_Part_Of_Instance; ----------------------------------------------------------------------------- function Enclosing_Element (Element : Asis.Element) return Asis.Element is Argument_Kind : constant Internal_Element_Kinds := Int_Kind (Element); Arg_Spec_Case : constant Special_Cases := Special_Case (Element); begin Check_Validity (Element, Package_Name & "Enclosing_Element"); if Argument_Kind = Not_An_Element then Raise_ASIS_Inappropriate_Element (Diagnosis => Package_Name & "Enclosing_Element", Wrong_Kind => Argument_Kind); end if; -- if the argument is an expanded generic declaration we have -- to return the corresponding instantiation: if Arg_Spec_Case in Expanded_Spec then return Corresponding_Instantiation (Element); end if; -- if the argument is from an expanded generic declaration, -- we have to be careful when coming from some top-level component -- of the expanded declaration to the declaration itself - we -- need to set the Special_Case field properly if Is_From_Instance (Element) and then not Is_From_Implicit (Element) then if Arg_Spec_Case in Dummy_Base_Attribute_Designator .. Dummy_Class_Attribute_Prefix then declare Result : Asis.Element := Element; begin Set_Special_Case (Result, Not_A_Special_Case); if Arg_Spec_Case = Dummy_Class_Attribute_Designator or else Arg_Spec_Case = Dummy_Class_Attribute_Prefix then Set_Int_Kind (Result, A_Class_Attribute); elsif Arg_Spec_Case = Dummy_Base_Attribute_Designator or else Arg_Spec_Case = Dummy_Base_Attribute_Prefix then Set_Int_Kind (Result, A_Base_Attribute); end if; return Result; end; else return Enclosing_For_Explicit_Instance_Component (Element); end if; end if; if not (Is_From_Implicit (Element) or else Is_From_Inherited (Element)) or else -- 'floating' labels in Ada 2012 Statement_Kind (Element) = A_Null_Statement then return Enclosing_Element_For_Explicit (Element); elsif Is_From_Limited_View (Element) then return Enclosing_Element_For_Limited_View (Element); else return Enclosing_Element_For_Implicit (Element); end if; exception when ASIS_Inappropriate_Element => raise; when ASIS_Failed => if Status_Indicator = Unhandled_Exception_Error then Add_Call_Information (Argument => Element, Outer_Call => Package_Name & "Enclosing_Element"); end if; raise; when Ex : others => Report_ASIS_Bug (Query_Name => Package_Name & "Enclosing_Element", Ex => Ex, Arg_Element => Element); end Enclosing_Element; ------------------------------------------------------------------------------ function Enclosing_Element (Element : Asis.Element; Expected_Enclosing_Element : Asis.Element) return Asis.Element is begin Check_Validity (Element, Package_Name & "Enclosing_Element (the Element parameter)"); Check_Validity (Expected_Enclosing_Element, Package_Name & "Enclosing_Element (the Expected_Enclosing_Element parameter)"); return Enclosing_Element (Element); exception when ASIS_Inappropriate_Element => raise; when ASIS_Failed => if Status_Indicator = Unhandled_Exception_Error then Add_Call_Information (Argument => Element, Outer_Call => Package_Name & "Enclosing_Element"); end if; raise; when Ex : others => Report_ASIS_Bug (Query_Name => Package_Name & "Enclosing_Element", Ex => Ex, Arg_Element => Element, Arg_Element_2 => Expected_Enclosing_Element); end Enclosing_Element; ----------------------------------------------------------------------------- function Pragmas (The_Element : Asis.Element) return Asis.Pragma_Element_List is -- This implementation is based on the following statement in the function -- documentation: -- -- This interface returns exactly those pragmas that would be returned by the -- various interfaces, that accept these same argument kinds, and that -- return Declaration_Lists and Statement_Lists, where the inclusion of -- Pragmas is controlled by an Include_Pragmas parameter. -- -- The general idea of the implementation is straightforward - to get -- the "full" Element_List by the call of the corresponding interface -- with Include_Pragmas => True, and then select only A_Pragma elements -- from this intermediate result. -- -- Some loss of effectiveness could be considered as the disadvantage of -- this approach, but its advantages are: -- -- - it saves implementation efforts; -- - it allows to check whether the documentation fragment cited above -- is really correct; -- - it saves the debugging efforts on the first prototyping stage -- (there is no need for the special debugging of this function -- if other ASIS interfaces used for its implementation work correctly); -- - it is more convenient for incremental development -- - it yields the vendor-independent implementation of this function Context_Internal_Kind : Internal_Element_Kinds; function Extract_Pragmas (List : Asis.Element_List) return Asis.Pragma_Element_List; -- function extracts Elements of A_Pragma kind from its -- List parameter and returns the new List constructed from these -- Pragma Elements (in their order of appearance) as its result function Extract_Pragmas (List : Asis.Element_List) return Asis.Pragma_Element_List is Pragma_List : Asis.Pragma_Element_List (List'Range); Pragma_List_Actual_Lenght : Asis.ASIS_Integer := 0; begin for I in List'Range loop if Element_Kind (List (I)) = A_Pragma then Pragma_List_Actual_Lenght := Pragma_List_Actual_Lenght + 1; Pragma_List (Pragma_List_Actual_Lenght) := List (I); end if; end loop; return Pragma_List (1 .. Pragma_List_Actual_Lenght); end Extract_Pragmas; begin -- Pragmas Check_Validity (The_Element, Package_Name & "Pragmas"); Context_Internal_Kind := Int_Kind (The_Element); if not -- Appropriate Element_Kinds: (Context_Internal_Kind in Internal_Statement_Path_Kinds or else Context_Internal_Kind = An_Exception_Handler -- Appropriate Declaration_Kinds: or else Context_Internal_Kind = A_Procedure_Body_Declaration or else Context_Internal_Kind = A_Function_Body_Declaration or else Context_Internal_Kind = A_Package_Declaration or else Context_Internal_Kind = A_Package_Body_Declaration or else Context_Internal_Kind = A_Task_Body_Declaration or else Context_Internal_Kind = A_Protected_Body_Declaration or else Context_Internal_Kind = An_Entry_Body_Declaration or else Context_Internal_Kind = A_Generic_Procedure_Declaration or else Context_Internal_Kind = A_Generic_Function_Declaration or else Context_Internal_Kind = A_Generic_Package_Declaration -- Appropriate Definition_Kinds: or else Context_Internal_Kind = A_Record_Definition or else Context_Internal_Kind = A_Variant_Part or else Context_Internal_Kind = A_Variant or else Context_Internal_Kind = A_Task_Definition or else Context_Internal_Kind = A_Protected_Definition -- Appropriate Statement_Kinds: or else Context_Internal_Kind = A_Loop_Statement or else Context_Internal_Kind = A_While_Loop_Statement or else Context_Internal_Kind = A_For_Loop_Statement or else Context_Internal_Kind = A_Block_Statement or else Context_Internal_Kind = An_Accept_Statement -- Representation_Clause_Kinds: or else Context_Internal_Kind = A_Record_Representation_Clause) then Raise_ASIS_Inappropriate_Element (Diagnosis => Package_Name & "Pragmas", Wrong_Kind => Context_Internal_Kind); end if; case Context_Internal_Kind is -- Appropriate Element_Kinds: when Internal_Path_Kinds => -- A_Path: (pragmas from the statement list) return Extract_Pragmas ( Asis.Statements.Sequence_Of_Statements ( Path => The_Element, Include_Pragmas => True)); when An_Exception_Handler => -- (pragmas from the statement list) return Extract_Pragmas ( Asis.Statements.Handler_Statements ( Handler => The_Element, Include_Pragmas => True)); -- Appropriate Declaration_Kinds: when A_Procedure_Body_Declaration -- (pragmas from decl region | A_Function_Body_Declaration -- + statements) | A_Package_Body_Declaration -- !! SEE OPEN_PROBLEMS.1 BELOW | A_Task_Body_Declaration | An_Entry_Body_Declaration => return (Extract_Pragmas ( Asis.Declarations.Body_Declarative_Items ( Declaration => The_Element, Include_Pragmas => True)) & Extract_Pragmas ( Asis.Declarations.Body_Statements ( Declaration => The_Element, Include_Pragmas => True))); when A_Package_Declaration => -- (pragmas from visible + private decl regions) return (Extract_Pragmas ( Asis.Declarations.Visible_Part_Declarative_Items ( Declaration => The_Element, Include_Pragmas => True)) & Extract_Pragmas ( Asis.Declarations.Private_Part_Declarative_Items ( Declaration => The_Element, Include_Pragmas => True))); when A_Protected_Body_Declaration => -- (pragmas from decl region) return Extract_Pragmas ( Asis.Declarations.Protected_Operation_Items ( Declaration => The_Element, Include_Pragmas => True)); when A_Generic_Procedure_Declaration | A_Generic_Function_Declaration => -- (pragmas from formal decl region return Extract_Pragmas ( Asis.Declarations.Generic_Formal_Part ( Declaration => The_Element, Include_Pragmas => True)); when A_Generic_Package_Declaration => -- (pragmas from formal + visible + private decl regions) return (Extract_Pragmas ( Asis.Declarations.Generic_Formal_Part ( Declaration => The_Element, Include_Pragmas => True)) & Extract_Pragmas ( Asis.Declarations.Visible_Part_Declarative_Items ( Declaration => The_Element, Include_Pragmas => True)) & Extract_Pragmas ( Asis.Declarations.Private_Part_Declarative_Items ( Declaration => The_Element, Include_Pragmas => True))); -- Appropriate Definition_Kinds: when A_Record_Definition | A_Variant => -- (pragmas from the component list) return Extract_Pragmas ( Asis.Definitions.Record_Components ( Definition => The_Element, Include_Pragmas => True)); when A_Variant_Part => -- (pragmas from between variants) return Extract_Pragmas ( Asis.Definitions.Variants ( Variant_Part => The_Element, Include_Pragmas => True)); when A_Task_Definition | A_Protected_Definition => -- (pragmas from visible + private decl regions) return (Extract_Pragmas ( Asis.Definitions.Visible_Part_Items ( Definition => The_Element, Include_Pragmas => True)) & Extract_Pragmas ( Asis.Definitions.Private_Part_Items ( Definition => The_Element, Include_Pragmas => True))); -- Appropriate Statement_Kinds: when A_Loop_Statement | A_While_Loop_Statement | A_For_Loop_Statement => -- (pragmas from statement list) return Extract_Pragmas ( Asis.Statements.Loop_Statements ( Statement => The_Element, Include_Pragmas => True)); when A_Block_Statement => -- (pragmas from decl region + statements) return (Extract_Pragmas ( Asis.Statements.Block_Declarative_Items ( Statement => The_Element, Include_Pragmas => True)) & Extract_Pragmas ( Asis.Statements.Block_Statements ( Statement => The_Element, Include_Pragmas => True))); when An_Accept_Statement => -- (pragmas from statement list+ pragma immediately preceding -- the first exception handler, if any) -- !! SEE OPEN_PROBLEMS.2 BELOW return (Extract_Pragmas ( Asis.Statements.Accept_Body_Statements ( Statement => The_Element, Include_Pragmas => True)) & Extract_Pragmas ( Asis.Statements.Accept_Body_Exception_Handlers ( Statement => The_Element, Include_Pragmas => True))); -- Appropriate Representation_Clause_Kinds: when A_Record_Representation_Clause => -- (pragmas from component specifications) return Extract_Pragmas ( Asis.Clauses.Component_Clauses ( Clause => The_Element, Include_Pragmas => True)); when others => -- Should never been reached !!! raise Internal_Implementation_Error; end case; exception when ASIS_Inappropriate_Element => Add_Call_Information (Outer_Call => Package_Name & "Pragmas"); raise; when ASIS_Failed => if Status_Indicator = Unhandled_Exception_Error then Add_Call_Information (Argument => The_Element, Outer_Call => Package_Name & "Pragmas"); end if; raise; when Ex : others => Report_ASIS_Bug (Query_Name => Package_Name & "Pragmas", Ex => Ex, Arg_Element => The_Element); end Pragmas; ------------------------------------------------------------------------------ -- PARTIALLY IMPLEMENTED --------------------------- -- Corresponding_Pragmas -- --------------------------- function Corresponding_Pragmas (Element : Asis.Element) return Asis.Pragma_Element_List is Next_Rep_Node : Node_Id; Next_Pragma_Node : Node_Id := Empty; Arg_Node : Node_Id; begin Check_Validity (Element, Package_Name & "Corresponding_Pragmas"); if not (Element_Kind (Element) = A_Declaration or else Element_Kind (Element) = A_Statement) then Raise_ASIS_Inappropriate_Element (Diagnosis => Package_Name & "Corresponding_Pragmas", Wrong_Kind => Int_Kind (Element)); end if; -- At the moment, this is a partial implementation: -- - for A_Statement argument Nil_Element_List is always returned; -- - for A_Declaration argument that represents -- - for A_Declaration argument that corresponds to a unit declaration -- from the compilation unit or to the proper body of subunit, nothing -- is returned. -- - implicit inherited declarations are not properly processed -- - the result list contains representation pragmas only if Element_Kind (Element) = A_Statement then return Nil_Element_List; else Asis_Element_Table.Init; case Declaration_Kind (Element) is when A_Procedure_Declaration | A_Function_Declaration | A_Procedure_Body_Declaration | A_Function_Body_Declaration | A_Procedure_Renaming_Declaration | A_Function_Renaming_Declaration | An_Entry_Declaration | A_Procedure_Body_Stub | A_Function_Body_Stub | A_Procedure_Instantiation | A_Function_Instantiation => -- Overloadable entities, pragmas are not chained. -- At the moment we can process only explicit stuff. -- First, collect Pre- and Postcondition pragmas, if any. Arg_Node := R_Node (Element); case Declaration_Kind (Element) is when A_Procedure_Declaration | A_Function_Declaration => if Is_List_Member (Arg_Node) then Next_Pragma_Node := Next (Arg_Node); else -- Spec of a library-level subprogram Next_Pragma_Node := Aux_Decls_Node (Parent (Arg_Node)); if Present (Pragmas_After (Next_Pragma_Node)) then Next_Pragma_Node := First (Pragmas_After (Next_Pragma_Node)); else Next_Pragma_Node := Empty; end if; end if; when A_Procedure_Body_Declaration | A_Function_Body_Declaration => Next_Pragma_Node := First (Sinfo.Declarations (Arg_Node)); while Present (Next_Pragma_Node) and then not Comes_From_Source (Original_Node (Next_Pragma_Node)) loop Next_Pragma_Node := Next (Next_Pragma_Node); end loop; when others => null; end case; while Present (Next_Pragma_Node) and then Nkind (Next_Pragma_Node) = N_Pragma loop if Comes_From_Source (Original_Node (Next_Pragma_Node)) and then (Pragma_Name (Original_Node (Next_Pragma_Node)) in Name_Postcondition .. Name_Precondition) -- SCz -- or else -- Pragma_Name (Original_Node (Next_Pragma_Node)) = -- Name_Test_Case -- or else -- Pragma_Name (Original_Node (Next_Pragma_Node)) = -- Name_Contract_Case) then Asis_Element_Table.Append (Node_To_Element_New (Starting_Element => Element, Node => Next_Pragma_Node)); end if; Next_Pragma_Node := Next (Next_Pragma_Node); while Present (Next_Pragma_Node) and then not Comes_From_Source (Original_Node (Next_Pragma_Node)) loop Next_Pragma_Node := Next (Next_Pragma_Node); end loop; end loop; -- Now - general processing of all the other pragmas that can be -- semantically associated with the argument if not Is_Part_Of_Implicit (Element) and then Enclosing_Element (Element) /= Nil_Element then case Nkind (Arg_Node) is when N_Subprogram_Declaration | N_Abstract_Subprogram_Declaration | N_Subprogram_Body | N_Subprogram_Renaming_Declaration | N_Subprogram_Body_Stub => Arg_Node := Defining_Unit_Name (Specification (Arg_Node)); when N_Entry_Declaration => Arg_Node := Defining_Identifier (Arg_Node); when N_Procedure_Instantiation | N_Function_Instantiation => Arg_Node := Defining_Unit_Name (Arg_Node); when others => pragma Assert (False); null; end case; Next_Rep_Node := R_Node (Element); Next_Rep_Node := Next (Next_Rep_Node); while Present (Next_Rep_Node) loop if Nkind (Next_Rep_Node) = N_Pragma and then Is_Applied_To (Next_Rep_Node, Arg_Node) then Asis_Element_Table.Append (Node_To_Element_New (Starting_Element => Element, Node => Next_Rep_Node)); end if; Next_Rep_Node := Next (Next_Rep_Node); end loop; -- In case if the argument declaration is in the visible part -- of the package spec, traverse the private part: Next_Rep_Node := Parent (R_Node (Element)); if Nkind (Next_Rep_Node) = N_Package_Specification and then List_Containing (R_Node (Element)) = Visible_Declarations (Next_Rep_Node) then Next_Rep_Node := First (Private_Declarations (Next_Rep_Node)); while Present (Next_Rep_Node) loop if Nkind (Next_Rep_Node) = N_Pragma and then Is_Applied_To (Next_Rep_Node, Arg_Node) then Asis_Element_Table.Append (Node_To_Element_New (Starting_Element => Element, Node => Next_Rep_Node)); end if; Next_Rep_Node := Next (Next_Rep_Node); end loop; end if; end if; when others => -- Non-overloadable entity. This implementation is not good, -- but we have to deal with an error in query definition - -- the query should actually be applied to an entity, but not -- to a declaration that can define more than one entity. declare Decl_Names : constant Element_List := Names (Element); Next_Name : Asis.Element; begin for J in Decl_Names'Range loop Next_Name := Decl_Names (J); if Defining_Name_Kind (Next_Name) = A_Defining_Expanded_Name then Next_Name := Defining_Selector (Next_Name); end if; Next_Rep_Node := First_Rep_Item (R_Node (Next_Name)); while Present (Next_Rep_Node) loop if Nkind (Next_Rep_Node) = N_Pragma then Asis_Element_Table.Append (Node_To_Element_New (Starting_Element => Element, Node => Next_Rep_Node)); end if; Next_Rep_Node := Next_Rep_Item (Next_Rep_Node); end loop; end loop; end; end case; return Asis.Pragma_Element_List (Asis_Element_Table.Table (1 .. Asis_Element_Table.Last)); end if; exception when ASIS_Inappropriate_Element => raise; when ASIS_Failed => if Status_Indicator = Unhandled_Exception_Error then Add_Call_Information (Argument => Element, Outer_Call => Package_Name & "Corresponding_Pragmas"); end if; raise; when Ex : others => Report_ASIS_Bug (Query_Name => Package_Name & "Corresponding_Pragmas", Ex => Ex, Arg_Element => Element); end Corresponding_Pragmas; ----------------------------------------------------------------------------- function Pragma_Name_Image (Pragma_Element : Asis.Pragma_Element) return Wide_String is Arg_Kind : constant Internal_Element_Kinds := Int_Kind (Pragma_Element); Arg_Node : Node_Id; Image_Start : Source_Ptr; Image_End : Source_Ptr; begin Check_Validity (Pragma_Element, Package_Name & "Pragma_Name_Image"); if Arg_Kind not in Internal_Pragma_Kinds then Raise_ASIS_Inappropriate_Element (Diagnosis => Package_Name & "Pragma_Name_Image", Wrong_Kind => Arg_Kind); end if; Arg_Node := Node (Pragma_Element); Image_Start := Next_Identifier (Sloc (Arg_Node) + 5); Image_End := Get_Word_End (P => Image_Start, In_Word => In_Identifier'Access); return Get_Wide_Word (Image_Start, Image_End); exception when ASIS_Inappropriate_Element => raise; when ASIS_Failed => if Status_Indicator = Unhandled_Exception_Error then Add_Call_Information (Argument => Pragma_Element, Outer_Call => Package_Name & "Pragma_Name_Image"); end if; raise; when Ex : others => Report_ASIS_Bug (Query_Name => Package_Name & "Pragma_Name_Image", Ex => Ex, Arg_Element => Pragma_Element); end Pragma_Name_Image; ----------------------------------------------------------------------------- function Pragma_Argument_Associations (Pragma_Element : Asis.Pragma_Element) return Asis.Association_List is Arg_Kind : constant Internal_Element_Kinds := Int_Kind (Pragma_Element); Arg_Node : Node_Id; begin Check_Validity (Pragma_Element, Package_Name & "Pragma_Argument_Associations"); if Arg_Kind not in Internal_Pragma_Kinds then Raise_ASIS_Inappropriate_Element (Diagnosis => Package_Name & "Pragma_Argument_Associations", Wrong_Kind => Arg_Kind); end if; Arg_Node := Node (Pragma_Element); return N_To_E_List_New (List => Pragma_Argument_Associations (Arg_Node), Internal_Kind => A_Pragma_Argument_Association, Starting_Element => Pragma_Element); exception when ASIS_Inappropriate_Element => raise; when ASIS_Failed => if Status_Indicator = Unhandled_Exception_Error then Add_Call_Information (Argument => Pragma_Element, Outer_Call => Package_Name & "Pragma_Argument_Associations"); end if; raise; when Ex : others => Report_ASIS_Bug (Query_Name => Package_Name & "Pragma_Argument_Associations", Ex => Ex, Arg_Element => Pragma_Element); end Pragma_Argument_Associations; ----------------------------------------------------------------------------- function Debug_Image (Element : Asis.Element) return Wide_String is LT : String renames A4G.A_Types.ASIS_Line_Terminator; begin Check_Validity (Element, Package_Name & "Debug_Image"); Debug_String (Element); return To_Wide_String ( LT & "Element Debug_Image:" & LT & Debug_Buffer (1 .. Debug_Buffer_Len)); exception when ASIS_Inappropriate_Element => raise; when ASIS_Failed => if Status_Indicator = Unhandled_Exception_Error then Add_Call_Information (Argument => Element, Outer_Call => Package_Name & "Debug_Image"); end if; raise; when Ex : others => Report_ASIS_Bug (Query_Name => Package_Name & "Debug_Image", Ex => Ex, Arg_Element => Element); end Debug_Image; ----------------------------------------------------------------------------- -- The following constants are used in the computation of hash values for -- Elements which are not from Standard: Line_Pos : constant Natural := 6; Bit_Pos : constant Natural := 1; Impl_Pos : Natural renames Bit_Pos; Inh_Pos : Natural renames Bit_Pos; Inst_Pos : Natural renames Bit_Pos; Kind_Pos : constant Natural := 8; Col_Pos : constant Natural := 4; Name_Pos : constant Natural := 9; Spec_Pos : constant Natural := 2; Max_Names : constant Unsigned_32 := 2 ** Name_Pos; Max_Cols : constant Unsigned_32 := 2 ** Col_Pos; Max_Kinds : constant Unsigned_32 := 2 ** Kind_Pos; Max_Lines : constant Unsigned_32 := 2 ** Line_Pos; Max_Specs : constant Unsigned_32 := 2 ** Spec_Pos; subtype Unit_Name_Hash_Range is Integer range 0 .. Integer (Max_Names) - 1; function Ada_Name_Hash is new GNAT.HTable.Hash (Unit_Name_Hash_Range); function Hash (Element : Asis.Element) return Asis.ASIS_Integer is N : Node_Id; S : Source_Ptr; L : Physical_Line_Number; C : Column_Number; Result : Unsigned_32 := 0; function Get_Ada_Name return String; -- Returns Ada name of the Element's enclosing unit appended with 'S' if -- the unit is a spec unit and with 'B' if it is a body unit. Returns -- null string for Nil_Element function Get_Ada_Name return String is CU : Asis.Compilation_Unit; Spec_Or_Body : Character := 'B'; begin if Is_Nil (Element) then return ""; else CU := Enclosing_Compilation_Unit (Element); if Asis.Compilation_Units.Unit_Kind (CU) in A_Procedure .. A_Generic_Package_Renaming then Spec_Or_Body := 'S'; end if; return To_String (Asis.Compilation_Units.Unit_Full_Name (CU)) & Spec_Or_Body; end if; end Get_Ada_Name; function To_ASIS_Integer is new Ada.Unchecked_Conversion (Source => Unsigned_32, Target => Asis.ASIS_Integer); begin Check_Validity (Element, Package_Name & "Hash"); -- The hash value for Elements is first created as 32-bit unsigned -- integer and then converted into ASIS_Integer -- -- Different approaches are used to create this 32-bit unsigned -- integer value for Elements which are and which are not from the -- predefined Standard package. -- -- For Elements from Standard: -- - If Element represents the An_Enumeration_Literal_Specification -- or A_Defining_Character_Literal from types Character or -- Standard_Character, the corresponding character code is used -- as hash value -- - otherwise the Node Id of the Element is used as hash value; -- -- For Elements which are not from Standard the 32 bits are first -- filled in by the following information: -- -- 0 .. 8 - the hash value computed from the Ada name of enclosing -- unit -- 9 - Is_Part_Of_Implicit -- 10 .. 13 - column in the source file computed from the Sloc of -- Element's Node reference -- 14 - Is_Part_Of_Inherited -- 15 .. 22 - Internal kind (converted to 'Pos value) -- 23 - Is_Part_Of_Instance -- 24 .. 29 - line in the source file computed from the Sloc of -- Element's Node reference -- 30 .. 31 - Special_Case (converted to 'Pos value) -- -- All the values are reduced modulo the corresponding values to fit -- the corresponding range. In case of extended generic code, line -- and column are computed as the sum of all the lines and columns -- in the chain of the source references corresponding to the -- instantiation -- -- After creating such a value, it is rotated right by the number of -- the lines computed from Sloc of Element's Node reference if Encl_Unit_Id (Element) = Standard_Id then if Character_Code (Element) /= 0 then Result := Result + (Unsigned_32 (Character_Code (Element))); else N := Node_Value (Element); Result := Unsigned_32 (N); end if; elsif not Is_Nil (Element) then N := Node (Element); S := Sloc (N); L := Get_Physical_Line_Number (Sloc (N)); C := Get_Column_Number (Sloc (N)); S := Instantiation_Location (S); while S /= No_Location loop L := L + Get_Physical_Line_Number (Sloc (N)); C := C + Get_Column_Number (Sloc (N)); S := Instantiation_Location (S); end loop; -- Special Case: Result := Result + (Unsigned_32 ( Special_Cases'Pos (Special_Case (Element))) mod Max_Specs); Result := Shift_Left (Result, Line_Pos); -- Line: Result := Result + (Unsigned_32 (L) mod Max_Lines); Result := Shift_Left (Result, Inst_Pos); -- Is_Part_Of_Instance if Is_From_Instance (Element) then Result := Result + 1; end if; Result := Shift_Left (Result, Kind_Pos); -- Internal kind: Result := Result + (Internal_Element_Kinds'Pos (Int_Kind (Element)) mod Max_Kinds); Result := Shift_Left (Result, Inh_Pos); -- Is_Part_Of_Inherited if Is_From_Inherited (Element) then Result := Result + 1; end if; Result := Shift_Left (Result, Col_Pos); -- Column: Result := Result + (Unsigned_32 (C) mod Max_Cols); Result := Shift_Left (Result, Impl_Pos); -- Is_Part_Of_Implicit: if Is_From_Implicit (Element) then Result := Result + 1; end if; Result := Shift_Left (Result, Name_Pos); -- Hash value computed from the name of enclosed unit: Result := Result + Unsigned_32 (Ada_Name_Hash (Get_Ada_Name)); -- And now, rotating Result Result := Rotate_Right (Result, Natural (L)); end if; return To_ASIS_Integer (Result); exception when ASIS_Inappropriate_Element => raise; when ASIS_Failed => if Status_Indicator = Unhandled_Exception_Error then Add_Call_Information (Argument => Element, Outer_Call => Package_Name & "Hash"); end if; raise; when Ex : others => Report_ASIS_Bug (Query_Name => Package_Name & "Hash", Ex => Ex, Arg_Element => Element); end Hash; ----------------------------------------------------------------------------- ------------------------------------------------------------------------------ -- Processing of the Ada extensions that most likely will be included in -- -- Ada 2015 and that are already implemented in GNAT -- ------------------------------------------------------------------------------ end Asis.Elements;
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- G N A T . S O U R C E _ I N F O -- -- -- -- S p e c -- -- -- -- Copyright (C) 2000-2021, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- -- -- -- -- -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ -- This package provides some useful utility subprograms that provide access -- to source code information known at compile time. These subprograms are -- intrinsic operations that provide information known to the compiler in -- a form that can be embedded into the source program for identification -- and logging purposes. For example, an exception handler can print out -- the name of the source file in which the exception is handled. package GNAT.Source_Info is pragma Preelaborate; -- Note that this unit is Preelaborate, but not Pure, that's because the -- functions here such as Line are clearly not pure functions, and normally -- we mark intrinsic functions in a Pure unit as Pure, even though they are -- imported. -- -- Historical note: this used to be Pure, but that was when we marked all -- intrinsics as not Pure, even in Pure units, so no problems arose. function File return String with Import, Convention => Intrinsic; -- Return the name of the current file, not including the path information. -- The result is considered to be a static string constant. function Line return Positive with Import, Convention => Intrinsic; -- Return the current input line number. The result is considered to be a -- static expression. function Source_Location return String with Import, Convention => Intrinsic; -- Return a string literal of the form "name:line", where name is the -- current source file name without path information, and line is the -- current line number. In the event that instantiations are involved, -- additional suffixes of the same form are appended after the separating -- string " instantiated at ". The result is considered to be a static -- string constant. function Enclosing_Entity return String with Import, Convention => Intrinsic; -- Return the name of the current subprogram, package, task, entry or -- protected subprogram. The string is in exactly the form used for the -- declaration of the entity (casing and encoding conventions), and is -- considered to be a static string constant. The name is fully qualified -- using periods where possible (this is not always possible, notably in -- the case of entities appearing in unnamed block statements.) -- -- Note: if this function is used at the outer level of a generic package, -- the string returned will be the name of the instance, not the generic -- package itself. This is useful in identifying and logging information -- from within generic templates. function Compilation_ISO_Date return String with Import, Convention => Intrinsic; -- Returns date of compilation as a static string "yyyy-mm-dd". function Compilation_Date return String with Import, Convention => Intrinsic; -- Returns date of compilation as a static string "mmm dd yyyy". This is -- in local time form, and is exactly compatible with C macro __DATE__. function Compilation_Time return String with Import, Convention => Intrinsic; -- Returns GMT time of compilation as a static string "hh:mm:ss". This is -- in local time form, and is exactly compatible with C macro __TIME__. end GNAT.Source_Info;
with Ada.Task_Identification; use Ada.Task_Identification; with Ada.Containers.Hashed_Sets; use Ada.Containers; -- Author : Wenjun Yang -- u_id : u6251843 package Vehicle_Task_Type is task type Vehicle_Task is entry Identify (Set_Vehicle_No : Positive; Local_Task_Id : out Task_Id); end Vehicle_Task; -- Hash function used for the following HashSet and HashMap in veicle_task_type.adb file. function ID_Hashed (id : Positive) return Hash_Type is (Hash_Type (id)); -- Define a HashSet to store the live and dead vehicles' number for every drone. package My_Set is new Ada.Containers.Hashed_Sets (Element_Type => Positive, Hash => ID_Hashed, Equivalent_Elements => "="); use My_Set; -- Discuss the use of subtype with Yiluo Wei (u6227375) -- Define a subtype of My_Set, the type of live and dead vehicles' number set (Two sets). subtype No_Set is My_Set.Set; end Vehicle_Task_Type;
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- package body Program.Nodes.Generic_Procedure_Declarations is function Create (Generic_Token : not null Program.Lexical_Elements .Lexical_Element_Access; Formal_Parameters : Program.Element_Vectors.Element_Vector_Access; Procedure_Token : not null Program.Lexical_Elements .Lexical_Element_Access; Name : not null Program.Elements.Defining_Names .Defining_Name_Access; Left_Bracket_Token : Program.Lexical_Elements.Lexical_Element_Access; Parameters : Program.Elements.Parameter_Specifications .Parameter_Specification_Vector_Access; Right_Bracket_Token : Program.Lexical_Elements.Lexical_Element_Access; With_Token : Program.Lexical_Elements.Lexical_Element_Access; Aspects : Program.Elements.Aspect_Specifications .Aspect_Specification_Vector_Access; Semicolon_Token : not null Program.Lexical_Elements .Lexical_Element_Access) return Generic_Procedure_Declaration is begin return Result : Generic_Procedure_Declaration := (Generic_Token => Generic_Token, Formal_Parameters => Formal_Parameters, Procedure_Token => Procedure_Token, Name => Name, Left_Bracket_Token => Left_Bracket_Token, Parameters => Parameters, Right_Bracket_Token => Right_Bracket_Token, With_Token => With_Token, Aspects => Aspects, Semicolon_Token => Semicolon_Token, Enclosing_Element => null) do Initialize (Result); end return; end Create; function Create (Formal_Parameters : Program.Element_Vectors.Element_Vector_Access; Name : not null Program.Elements.Defining_Names .Defining_Name_Access; Parameters : Program.Elements.Parameter_Specifications .Parameter_Specification_Vector_Access; Aspects : Program.Elements.Aspect_Specifications .Aspect_Specification_Vector_Access; Is_Part_Of_Implicit : Boolean := False; Is_Part_Of_Inherited : Boolean := False; Is_Part_Of_Instance : Boolean := False) return Implicit_Generic_Procedure_Declaration is begin return Result : Implicit_Generic_Procedure_Declaration := (Formal_Parameters => Formal_Parameters, Name => Name, Parameters => Parameters, Aspects => Aspects, Is_Part_Of_Implicit => Is_Part_Of_Implicit, Is_Part_Of_Inherited => Is_Part_Of_Inherited, Is_Part_Of_Instance => Is_Part_Of_Instance, Enclosing_Element => null) do Initialize (Result); end return; end Create; overriding function Formal_Parameters (Self : Base_Generic_Procedure_Declaration) return Program.Element_Vectors.Element_Vector_Access is begin return Self.Formal_Parameters; end Formal_Parameters; overriding function Name (Self : Base_Generic_Procedure_Declaration) return not null Program.Elements.Defining_Names.Defining_Name_Access is begin return Self.Name; end Name; overriding function Parameters (Self : Base_Generic_Procedure_Declaration) return Program.Elements.Parameter_Specifications .Parameter_Specification_Vector_Access is begin return Self.Parameters; end Parameters; overriding function Aspects (Self : Base_Generic_Procedure_Declaration) return Program.Elements.Aspect_Specifications .Aspect_Specification_Vector_Access is begin return Self.Aspects; end Aspects; overriding function Generic_Token (Self : Generic_Procedure_Declaration) return not null Program.Lexical_Elements.Lexical_Element_Access is begin return Self.Generic_Token; end Generic_Token; overriding function Procedure_Token (Self : Generic_Procedure_Declaration) return not null Program.Lexical_Elements.Lexical_Element_Access is begin return Self.Procedure_Token; end Procedure_Token; overriding function Left_Bracket_Token (Self : Generic_Procedure_Declaration) return Program.Lexical_Elements.Lexical_Element_Access is begin return Self.Left_Bracket_Token; end Left_Bracket_Token; overriding function Right_Bracket_Token (Self : Generic_Procedure_Declaration) return Program.Lexical_Elements.Lexical_Element_Access is begin return Self.Right_Bracket_Token; end Right_Bracket_Token; overriding function With_Token (Self : Generic_Procedure_Declaration) return Program.Lexical_Elements.Lexical_Element_Access is begin return Self.With_Token; end With_Token; overriding function Semicolon_Token (Self : Generic_Procedure_Declaration) return not null Program.Lexical_Elements.Lexical_Element_Access is begin return Self.Semicolon_Token; end Semicolon_Token; overriding function Is_Part_Of_Implicit (Self : Implicit_Generic_Procedure_Declaration) return Boolean is begin return Self.Is_Part_Of_Implicit; end Is_Part_Of_Implicit; overriding function Is_Part_Of_Inherited (Self : Implicit_Generic_Procedure_Declaration) return Boolean is begin return Self.Is_Part_Of_Inherited; end Is_Part_Of_Inherited; overriding function Is_Part_Of_Instance (Self : Implicit_Generic_Procedure_Declaration) return Boolean is begin return Self.Is_Part_Of_Instance; end Is_Part_Of_Instance; procedure Initialize (Self : aliased in out Base_Generic_Procedure_Declaration'Class) is begin for Item in Self.Formal_Parameters.Each_Element loop Set_Enclosing_Element (Item.Element, Self'Unchecked_Access); end loop; Set_Enclosing_Element (Self.Name, Self'Unchecked_Access); for Item in Self.Parameters.Each_Element loop Set_Enclosing_Element (Item.Element, Self'Unchecked_Access); end loop; for Item in Self.Aspects.Each_Element loop Set_Enclosing_Element (Item.Element, Self'Unchecked_Access); end loop; null; end Initialize; overriding function Is_Generic_Procedure_Declaration_Element (Self : Base_Generic_Procedure_Declaration) return Boolean is pragma Unreferenced (Self); begin return True; end Is_Generic_Procedure_Declaration_Element; overriding function Is_Declaration_Element (Self : Base_Generic_Procedure_Declaration) return Boolean is pragma Unreferenced (Self); begin return True; end Is_Declaration_Element; overriding procedure Visit (Self : not null access Base_Generic_Procedure_Declaration; Visitor : in out Program.Element_Visitors.Element_Visitor'Class) is begin Visitor.Generic_Procedure_Declaration (Self); end Visit; overriding function To_Generic_Procedure_Declaration_Text (Self : aliased in out Generic_Procedure_Declaration) return Program.Elements.Generic_Procedure_Declarations .Generic_Procedure_Declaration_Text_Access is begin return Self'Unchecked_Access; end To_Generic_Procedure_Declaration_Text; overriding function To_Generic_Procedure_Declaration_Text (Self : aliased in out Implicit_Generic_Procedure_Declaration) return Program.Elements.Generic_Procedure_Declarations .Generic_Procedure_Declaration_Text_Access is pragma Unreferenced (Self); begin return null; end To_Generic_Procedure_Declaration_Text; end Program.Nodes.Generic_Procedure_Declarations;
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- A D A . E X E C U T I O N _ T I M E -- -- -- -- B o d y -- -- -- -- Copyright (C) 2007-2020, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ -- This is the Windows native version of this package with Ada.Task_Identification; use Ada.Task_Identification; with Ada.Unchecked_Conversion; with System.OS_Interface; use System.OS_Interface; with System.Task_Primitives.Operations; use System.Task_Primitives.Operations; with System.Tasking; use System.Tasking; with System.Win32; use System.Win32; package body Ada.Execution_Time with SPARK_Mode => Off is --------- -- "+" -- --------- function "+" (Left : CPU_Time; Right : Ada.Real_Time.Time_Span) return CPU_Time is use type Ada.Real_Time.Time; begin return CPU_Time (Ada.Real_Time.Time (Left) + Right); end "+"; function "+" (Left : Ada.Real_Time.Time_Span; Right : CPU_Time) return CPU_Time is use type Ada.Real_Time.Time; begin return CPU_Time (Left + Ada.Real_Time.Time (Right)); end "+"; --------- -- "-" -- --------- function "-" (Left : CPU_Time; Right : Ada.Real_Time.Time_Span) return CPU_Time is use type Ada.Real_Time.Time; begin return CPU_Time (Ada.Real_Time.Time (Left) - Right); end "-"; function "-" (Left : CPU_Time; Right : CPU_Time) return Ada.Real_Time.Time_Span is use type Ada.Real_Time.Time; begin return (Ada.Real_Time.Time (Left) - Ada.Real_Time.Time (Right)); end "-"; ----------- -- Clock -- ----------- function Clock (T : Ada.Task_Identification.Task_Id := Ada.Task_Identification.Current_Task) return CPU_Time is Hundreds_Nano_In_Sec : constant Long_Long_Float := 1.0E7; function To_Time is new Ada.Unchecked_Conversion (Duration, Ada.Real_Time.Time); function To_Task_Id is new Ada.Unchecked_Conversion (Ada.Task_Identification.Task_Id, System.Tasking.Task_Id); C_Time : aliased Long_Long_Integer; E_Time : aliased Long_Long_Integer; K_Time : aliased Long_Long_Integer; U_Time : aliased Long_Long_Integer; Res : BOOL; begin if T = Ada.Task_Identification.Null_Task_Id then raise Program_Error; end if; Res := GetThreadTimes (HANDLE (Get_Thread_Id (To_Task_Id (T))), C_Time'Access, E_Time'Access, K_Time'Access, U_Time'Access); if Res = System.Win32.FALSE then raise Program_Error; end if; return CPU_Time (To_Time (Duration ((Long_Long_Float (K_Time) / Hundreds_Nano_In_Sec) + (Long_Long_Float (U_Time) / Hundreds_Nano_In_Sec)))); end Clock; -------------------------- -- Clock_For_Interrupts -- -------------------------- function Clock_For_Interrupts return CPU_Time is begin -- According to AI 0170-1, D.14(18.1/3), if Interrupt_Clocks_Supported -- is set to False the function raises Program_Error. raise Program_Error; return CPU_Time_First; end Clock_For_Interrupts; ----------- -- Split -- ----------- procedure Split (T : CPU_Time; SC : out Ada.Real_Time.Seconds_Count; TS : out Ada.Real_Time.Time_Span) is begin Ada.Real_Time.Split (Ada.Real_Time.Time (T), SC, TS); end Split; ------------- -- Time_Of -- ------------- function Time_Of (SC : Ada.Real_Time.Seconds_Count; TS : Ada.Real_Time.Time_Span := Ada.Real_Time.Time_Span_Zero) return CPU_Time is begin return CPU_Time (Ada.Real_Time.Time_Of (SC, TS)); end Time_Of; end Ada.Execution_Time;
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- package body Program.Nodes.Record_Definitions is function Create (Record_Token : not null Program.Lexical_Elements.Lexical_Element_Access; Components : not null Program.Element_Vectors.Element_Vector_Access; End_Token : not null Program.Lexical_Elements.Lexical_Element_Access; Record_Token_2 : not null Program.Lexical_Elements.Lexical_Element_Access) return Record_Definition is begin return Result : Record_Definition := (Record_Token => Record_Token, Components => Components, End_Token => End_Token, Record_Token_2 => Record_Token_2, Enclosing_Element => null) do Initialize (Result); end return; end Create; function Create (Components : not null Program.Element_Vectors .Element_Vector_Access; Is_Part_Of_Implicit : Boolean := False; Is_Part_Of_Inherited : Boolean := False; Is_Part_Of_Instance : Boolean := False) return Implicit_Record_Definition is begin return Result : Implicit_Record_Definition := (Components => Components, Is_Part_Of_Implicit => Is_Part_Of_Implicit, Is_Part_Of_Inherited => Is_Part_Of_Inherited, Is_Part_Of_Instance => Is_Part_Of_Instance, Enclosing_Element => null) do Initialize (Result); end return; end Create; overriding function Components (Self : Base_Record_Definition) return not null Program.Element_Vectors.Element_Vector_Access is begin return Self.Components; end Components; overriding function Record_Token (Self : Record_Definition) return not null Program.Lexical_Elements.Lexical_Element_Access is begin return Self.Record_Token; end Record_Token; overriding function End_Token (Self : Record_Definition) return not null Program.Lexical_Elements.Lexical_Element_Access is begin return Self.End_Token; end End_Token; overriding function Record_Token_2 (Self : Record_Definition) return not null Program.Lexical_Elements.Lexical_Element_Access is begin return Self.Record_Token_2; end Record_Token_2; overriding function Is_Part_Of_Implicit (Self : Implicit_Record_Definition) return Boolean is begin return Self.Is_Part_Of_Implicit; end Is_Part_Of_Implicit; overriding function Is_Part_Of_Inherited (Self : Implicit_Record_Definition) return Boolean is begin return Self.Is_Part_Of_Inherited; end Is_Part_Of_Inherited; overriding function Is_Part_Of_Instance (Self : Implicit_Record_Definition) return Boolean is begin return Self.Is_Part_Of_Instance; end Is_Part_Of_Instance; procedure Initialize (Self : aliased in out Base_Record_Definition'Class) is begin for Item in Self.Components.Each_Element loop Set_Enclosing_Element (Item.Element, Self'Unchecked_Access); end loop; null; end Initialize; overriding function Is_Record_Definition_Element (Self : Base_Record_Definition) return Boolean is pragma Unreferenced (Self); begin return True; end Is_Record_Definition_Element; overriding function Is_Definition_Element (Self : Base_Record_Definition) return Boolean is pragma Unreferenced (Self); begin return True; end Is_Definition_Element; overriding procedure Visit (Self : not null access Base_Record_Definition; Visitor : in out Program.Element_Visitors.Element_Visitor'Class) is begin Visitor.Record_Definition (Self); end Visit; overriding function To_Record_Definition_Text (Self : aliased in out Record_Definition) return Program.Elements.Record_Definitions .Record_Definition_Text_Access is begin return Self'Unchecked_Access; end To_Record_Definition_Text; overriding function To_Record_Definition_Text (Self : aliased in out Implicit_Record_Definition) return Program.Elements.Record_Definitions .Record_Definition_Text_Access is pragma Unreferenced (Self); begin return null; end To_Record_Definition_Text; end Program.Nodes.Record_Definitions;
-- This file is generated by SWIG. Please do *not* modify by hand. -- with festival.FT_ff_pref_func; with festival.Pointers; with interfaces.c; with interfaces.c.strings; with speech_tools_c; with speech_tools_c.Pointers; with interfaces.C; package festival.Binding is function festival_socket_client (host : in interfaces.c.strings.chars_ptr; port : in interfaces.c.int) return interfaces.c.int; function festival_start_server (port : in interfaces.c.int) return interfaces.c.int; procedure festival_initialize (load_init_files : in interfaces.c.int; heap_size : in interfaces.c.int); procedure festival_init_lang (language : in speech_tools_c.Pointers.EST_String_Pointer); function festival_eval_command (expr : in speech_tools_c.Pointers.EST_String_Pointer) return interfaces.c.int; function festival_load_file (fname : in speech_tools_c.Pointers.EST_String_Pointer) return interfaces.c.int; function festival_say_file (fname : in speech_tools_c.Pointers.EST_String_Pointer) return interfaces.c.int; function festival_say_text (text : in speech_tools_c.Pointers.EST_String_Pointer) return interfaces.c.int; function festival_text_to_wave (text : in speech_tools_c.Pointers.EST_String_Pointer; wave : in speech_tools_c.Pointers.EST_Wave_Pointer) return interfaces.c.int; procedure festival_repl (interactive : in interfaces.c.int); procedure festival_server_mode ; procedure festival_wait_for_spooler ; procedure festival_tidy_up ; procedure festival_def_nff (name : in speech_tools_c.Pointers.EST_String_Pointer; sname : in speech_tools_c.Pointers.EST_String_Pointer; func : in speech_tools_c.EST_Item_featfunc; doc : in interfaces.c.strings.chars_ptr); procedure festival_def_ff_pref (pref : in speech_tools_c.Pointers.EST_String_Pointer; sname : in speech_tools_c.Pointers.EST_String_Pointer; func : in festival.FT_ff_pref_func.Item; doc : in interfaces.c.strings.chars_ptr); function ffeature (s : in speech_tools_c.Pointers.EST_Item_Pointer; name : in speech_tools_c.Pointers.EST_String_Pointer) return speech_tools_c.EST_Val; procedure proclaim_module (name : in speech_tools_c.Pointers.EST_String_Pointer; banner_copyright : in speech_tools_c.Pointers.EST_String_Pointer; description : in festival.Pointers.ModuleDescription_Pointer); procedure proclaim_module (name : in speech_tools_c.Pointers.EST_String_Pointer; banner_copyright : in speech_tools_c.Pointers.EST_String_Pointer); procedure proclaim_module (name : in speech_tools_c.Pointers.EST_String_Pointer; description : in festival.Pointers.ModuleDescription_Pointer); procedure proclaim_module (name : in speech_tools_c.Pointers.EST_String_Pointer); function wagon_predict (s : in speech_tools_c.Pointers.EST_Item_Pointer; tree : in speech_tools_c.LISP) return speech_tools_c.EST_Val; function wagon_pd (s : in speech_tools_c.Pointers.EST_Item_Pointer; tree : in speech_tools_c.LISP) return speech_tools_c.LISP; function lr_predict (s : in speech_tools_c.Pointers.EST_Item_Pointer; lr_model : in speech_tools_c.LISP) return speech_tools_c.EST_Val; function get_ngram (name : in speech_tools_c.Pointers.EST_String_Pointer; filename : in speech_tools_c.Pointers.EST_String_Pointer) return speech_tools_c.Pointers.EST_Ngrammar_Pointer; function get_ngram (name : in speech_tools_c.Pointers.EST_String_Pointer) return speech_tools_c.Pointers.EST_Ngrammar_Pointer; function get_wfst (name : in speech_tools_c.Pointers.EST_String_Pointer; filename : in speech_tools_c.Pointers.EST_String_Pointer) return speech_tools_c.Pointers.EST_WFST_Pointer; function get_wfst (name : in speech_tools_c.Pointers.EST_String_Pointer) return speech_tools_c.Pointers.EST_WFST_Pointer; function lisp_wfst_transduce (wfstname : in speech_tools_c.LISP; input : in speech_tools_c.LISP) return speech_tools_c.LISP; function map_pos (posmap : in speech_tools_c.LISP; pos : in speech_tools_c.Pointers.EST_String_Pointer) return speech_tools_c.EST_String; function map_pos (posmap : in speech_tools_c.LISP; pos : in speech_tools_c.LISP) return speech_tools_c.LISP; procedure utt_cleanup (u : in speech_tools_c.Pointers.EST_Utterance_Pointer); function utt_iform (utt : in speech_tools_c.Pointers.EST_Utterance_Pointer) return speech_tools_c.LISP; procedure add_item_features (s : in speech_tools_c.Pointers.EST_Item_Pointer; features : in speech_tools_c.LISP); procedure festival_init_modules ; function ft_get_param (pname : in speech_tools_c.Pointers.EST_String_Pointer) return speech_tools_c.LISP; procedure set_festival_libdir (To : in interfaces.c.strings.chars_ptr); private pragma Import (C, festival_socket_client, "Ada_festival_socket_client"); pragma Import (C, festival_start_server, "Ada_festival_start_server"); pragma Import (C, festival_initialize, "Ada_festival_initialize"); pragma Import (C, festival_init_lang, "Ada_festival_init_lang"); pragma Import (C, festival_eval_command, "Ada_festival_eval_command"); pragma Import (C, festival_load_file, "Ada_festival_load_file"); pragma Import (C, festival_say_file, "Ada_festival_say_file"); pragma Import (C, festival_say_text, "Ada_festival_say_text"); pragma Import (C, festival_text_to_wave, "Ada_festival_text_to_wave"); pragma Import (C, festival_repl, "Ada_festival_repl"); pragma Import (C, festival_server_mode, "Ada_festival_server_mode"); pragma Import (C, festival_wait_for_spooler, "Ada_festival_wait_for_spooler"); pragma Import (C, festival_tidy_up, "Ada_festival_tidy_up"); pragma Import (C, festival_def_nff, "Ada_festival_def_nff"); pragma Import (C, festival_def_ff_pref, "Ada_festival_def_ff_pref"); pragma Import (C, ffeature, "Ada_ffeature"); procedure proclaim_module_v1 (name : in speech_tools_c.Pointers.EST_String_Pointer; banner_copyright : in speech_tools_c.Pointers.EST_String_Pointer; description : in festival.Pointers.ModuleDescription_Pointer); procedure proclaim_module (name : in speech_tools_c.Pointers.EST_String_Pointer; banner_copyright : in speech_tools_c.Pointers.EST_String_Pointer; description : in festival.Pointers.ModuleDescription_Pointer) renames proclaim_module_v1; pragma Import (C, proclaim_module_v1, "Ada_proclaim_module__SWIG_0"); procedure proclaim_module_v2 (name : in speech_tools_c.Pointers.EST_String_Pointer; banner_copyright : in speech_tools_c.Pointers.EST_String_Pointer); procedure proclaim_module (name : in speech_tools_c.Pointers.EST_String_Pointer; banner_copyright : in speech_tools_c.Pointers.EST_String_Pointer) renames proclaim_module_v2; pragma Import (C, proclaim_module_v2, "Ada_proclaim_module__SWIG_1"); procedure proclaim_module_v3 (name : in speech_tools_c.Pointers.EST_String_Pointer; description : in festival.Pointers.ModuleDescription_Pointer); procedure proclaim_module (name : in speech_tools_c.Pointers.EST_String_Pointer; description : in festival.Pointers.ModuleDescription_Pointer) renames proclaim_module_v3; pragma Import (C, proclaim_module_v3, "Ada_proclaim_module__SWIG_2"); procedure proclaim_module_v4 (name : in speech_tools_c.Pointers.EST_String_Pointer); procedure proclaim_module (name : in speech_tools_c.Pointers.EST_String_Pointer) renames proclaim_module_v4; pragma Import (C, proclaim_module_v4, "Ada_proclaim_module__SWIG_3"); pragma Import (C, wagon_predict, "Ada_wagon_predict"); pragma Import (C, wagon_pd, "Ada_wagon_pd"); pragma Import (C, lr_predict, "Ada_lr_predict"); function get_ngram_v1 (name : in speech_tools_c.Pointers.EST_String_Pointer; filename : in speech_tools_c.Pointers.EST_String_Pointer) return speech_tools_c.Pointers.EST_Ngrammar_Pointer; function get_ngram (name : in speech_tools_c.Pointers.EST_String_Pointer; filename : in speech_tools_c.Pointers.EST_String_Pointer) return speech_tools_c.Pointers.EST_Ngrammar_Pointer renames get_ngram_v1; pragma Import (C, get_ngram_v1, "Ada_get_ngram__SWIG_0"); function get_ngram_v2 (name : in speech_tools_c.Pointers.EST_String_Pointer) return speech_tools_c.Pointers.EST_Ngrammar_Pointer; function get_ngram (name : in speech_tools_c.Pointers.EST_String_Pointer) return speech_tools_c.Pointers.EST_Ngrammar_Pointer renames get_ngram_v2; pragma Import (C, get_ngram_v2, "Ada_get_ngram__SWIG_1"); function get_wfst_v1 (name : in speech_tools_c.Pointers.EST_String_Pointer; filename : in speech_tools_c.Pointers.EST_String_Pointer) return speech_tools_c.Pointers.EST_WFST_Pointer; function get_wfst (name : in speech_tools_c.Pointers.EST_String_Pointer; filename : in speech_tools_c.Pointers.EST_String_Pointer) return speech_tools_c.Pointers.EST_WFST_Pointer renames get_wfst_v1; pragma Import (C, get_wfst_v1, "Ada_get_wfst__SWIG_0"); function get_wfst_v2 (name : in speech_tools_c.Pointers.EST_String_Pointer) return speech_tools_c.Pointers.EST_WFST_Pointer; function get_wfst (name : in speech_tools_c.Pointers.EST_String_Pointer) return speech_tools_c.Pointers.EST_WFST_Pointer renames get_wfst_v2; pragma Import (C, get_wfst_v2, "Ada_get_wfst__SWIG_1"); pragma Import (C, lisp_wfst_transduce, "Ada_lisp_wfst_transduce"); function map_pos_v1 (posmap : in speech_tools_c.LISP; pos : in speech_tools_c.Pointers.EST_String_Pointer) return speech_tools_c.EST_String; function map_pos (posmap : in speech_tools_c.LISP; pos : in speech_tools_c.Pointers.EST_String_Pointer) return speech_tools_c.EST_String renames map_pos_v1; pragma Import (C, map_pos_v1, "Ada_map_pos__SWIG_0"); function map_pos_v2 (posmap : in speech_tools_c.LISP; pos : in speech_tools_c.LISP) return speech_tools_c.LISP; function map_pos (posmap : in speech_tools_c.LISP; pos : in speech_tools_c.LISP) return speech_tools_c.LISP renames map_pos_v2; pragma Import (C, map_pos_v2, "Ada_map_pos__SWIG_1"); pragma Import (C, utt_cleanup, "Ada_utt_cleanup"); pragma Import (C, utt_iform, "Ada_utt_iform"); pragma Import (C, add_item_features, "Ada_add_item_features"); pragma Import (C, festival_init_modules, "Ada_festival_init_modules"); pragma Import (C, ft_get_param, "Ada_ft_get_param"); pragma Import (C, set_festival_libdir, "Ada_set_festival_libdir"); end festival.Binding;
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- G N A T . A L T I V E C . V E C T O R _ T Y P E S -- -- -- -- S p e c -- -- -- -- Copyright (C) 2004-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, 59 Temple Place - Suite 330, Boston, -- -- MA 02111-1307, USA. -- -- -- -- As a special exception, if other files instantiate generics from this -- -- unit, or you link this unit with other files to produce an executable, -- -- this unit does not by itself cause the resulting executable to be -- -- covered by the GNU General Public License. This exception does not -- -- however invalidate any other reasons why the executable file might be -- -- covered by the GNU Public License. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ -- This unit exposes the various vector types part of the Ada binding to -- Altivec facilities. with GNAT.Altivec.Low_Level_Vectors; package GNAT.Altivec.Vector_Types is use GNAT.Altivec.Low_Level_Vectors; --------------------------------------------------- -- Vector type declarations [PIM-2.1 Data Types] -- --------------------------------------------------- -- Except for assignments and pointer creation/dereference, operations -- on vectors are only performed via subprograms. The vector types are -- then private, and non-limited since assignments are allowed. -- The Hard/Soft binding type-structure differentiation is achieved in -- Low_Level_Vectors. Each version only exposes private vector types, that -- we just sub-type here. This is fine from the design standpoint and -- reduces the amount of explicit conversion required in various places -- internally. subtype vector_unsigned_char is Low_Level_Vectors.LL_VUC; subtype vector_signed_char is Low_Level_Vectors.LL_VSC; subtype vector_bool_char is Low_Level_Vectors.LL_VBC; subtype vector_unsigned_short is Low_Level_Vectors.LL_VUS; subtype vector_signed_short is Low_Level_Vectors.LL_VSS; subtype vector_bool_short is Low_Level_Vectors.LL_VBS; subtype vector_unsigned_int is Low_Level_Vectors.LL_VUI; subtype vector_signed_int is Low_Level_Vectors.LL_VSI; subtype vector_bool_int is Low_Level_Vectors.LL_VBI; subtype vector_float is Low_Level_Vectors.LL_VF; subtype vector_pixel is Low_Level_Vectors.LL_VP; -- [PIM-2.1] shows groups of declarations with exact same component types, -- e.g. vector unsigned short together with vector unsigned short int. It -- so appears tempting to define subtypes for those matches here. -- -- [PIM-2.1] does not qualify items in those groups as "the same types", -- though, and [PIM-2.4.2 Assignments] reads: "if either the left hand -- side or the right hand side of an expression has a vector type, then -- both sides of the expression must be of the same vector type". -- -- Not so clear what is exactly right, then. We go with subtypes for now -- and can adjust later if need be. subtype vector_unsigned_short_int is vector_unsigned_short; subtype vector_signed_short_int is vector_signed_short; subtype vector_char is vector_signed_char; subtype vector_short is vector_signed_short; subtype vector_int is vector_signed_int; -------------------------------- -- Corresponding access types -- -------------------------------- type vector_unsigned_char_ptr is access all vector_unsigned_char; type vector_signed_char_ptr is access all vector_signed_char; type vector_bool_char_ptr is access all vector_bool_char; type vector_unsigned_short_ptr is access all vector_unsigned_short; type vector_signed_short_ptr is access all vector_signed_short; type vector_bool_short_ptr is access all vector_bool_short; type vector_unsigned_int_ptr is access all vector_unsigned_int; type vector_signed_int_ptr is access all vector_signed_int; type vector_bool_int_ptr is access all vector_bool_int; type vector_float_ptr is access all vector_float; type vector_pixel_ptr is access all vector_pixel; -------------------------------------------------------------------- -- Additional access types, for the sake of some argument passing -- -------------------------------------------------------------------- -- ... because some of the operations expect pointers to possibly -- constant objects. type const_vector_bool_char_ptr is access constant vector_bool_char; type const_vector_signed_char_ptr is access constant vector_signed_char; type const_vector_unsigned_char_ptr is access constant vector_unsigned_char; type const_vector_bool_short_ptr is access constant vector_bool_short; type const_vector_signed_short_ptr is access constant vector_signed_short; type const_vector_unsigned_short_ptr is access constant vector_unsigned_short; type const_vector_bool_int_ptr is access constant vector_bool_int; type const_vector_signed_int_ptr is access constant vector_signed_int; type const_vector_unsigned_int_ptr is access constant vector_unsigned_int; type const_vector_float_ptr is access constant vector_float; type const_vector_pixel_ptr is access constant vector_pixel; ---------------------- -- Useful shortcuts -- ---------------------- subtype VUC is vector_unsigned_char; subtype VSC is vector_signed_char; subtype VBC is vector_bool_char; subtype VUS is vector_unsigned_short; subtype VSS is vector_signed_short; subtype VBS is vector_bool_short; subtype VUI is vector_unsigned_int; subtype VSI is vector_signed_int; subtype VBI is vector_bool_int; subtype VP is vector_pixel; subtype VF is vector_float; end GNAT.Altivec.Vector_Types;
----------------------------------------------------------------------- -- Hyperion.Agents.Models -- Hyperion.Agents.Models ----------------------------------------------------------------------- -- File generated by ada-gen DO NOT MODIFY -- Template used: templates/model/package-body.xhtml -- Ada Generator: https://ada-gen.googlecode.com/svn/trunk Revision 1095 ----------------------------------------------------------------------- -- Copyright (C) 2019 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in writing, software -- distributed under the License is distributed on an "AS IS" BASIS, -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. ----------------------------------------------------------------------- with Ada.Unchecked_Deallocation; with Util.Beans.Objects.Time; package body Hyperion.Agents.Models is use type ADO.Objects.Object_Record_Access; use type ADO.Objects.Object_Ref; pragma Warnings (Off, "formal parameter * is not referenced"); function Agent_Key (Id : in ADO.Identifier) return ADO.Objects.Object_Key is Result : ADO.Objects.Object_Key (Of_Type => ADO.Objects.KEY_INTEGER, Of_Class => AGENT_DEF'Access); begin ADO.Objects.Set_Value (Result, Id); return Result; end Agent_Key; function Agent_Key (Id : in String) return ADO.Objects.Object_Key is Result : ADO.Objects.Object_Key (Of_Type => ADO.Objects.KEY_INTEGER, Of_Class => AGENT_DEF'Access); begin ADO.Objects.Set_Value (Result, Id); return Result; end Agent_Key; function "=" (Left, Right : Agent_Ref'Class) return Boolean is begin return ADO.Objects.Object_Ref'Class (Left) = ADO.Objects.Object_Ref'Class (Right); end "="; procedure Set_Field (Object : in out Agent_Ref'Class; Impl : out Agent_Access) is Result : ADO.Objects.Object_Record_Access; begin Object.Prepare_Modify (Result); Impl := Agent_Impl (Result.all)'Access; end Set_Field; -- Internal method to allocate the Object_Record instance procedure Allocate (Object : in out Agent_Ref) is Impl : Agent_Access; begin Impl := new Agent_Impl; Impl.Create_Date := ADO.DEFAULT_TIME; ADO.Objects.Set_Object (Object, Impl.all'Access); end Allocate; -- ---------------------------------------- -- Data object: Agent -- ---------------------------------------- procedure Set_Id (Object : in out Agent_Ref; Value : in ADO.Identifier) is Impl : Agent_Access; begin Set_Field (Object, Impl); ADO.Objects.Set_Field_Key_Value (Impl.all, 1, Value); end Set_Id; function Get_Id (Object : in Agent_Ref) return ADO.Identifier is Impl : constant Agent_Access := Agent_Impl (Object.Get_Object.all)'Access; begin return Impl.Get_Key_Value; end Get_Id; procedure Set_Hostname (Object : in out Agent_Ref; Value : in String) is Impl : Agent_Access; begin Set_Field (Object, Impl); ADO.Objects.Set_Field_String (Impl.all, 2, Impl.Hostname, Value); end Set_Hostname; procedure Set_Hostname (Object : in out Agent_Ref; Value : in Ada.Strings.Unbounded.Unbounded_String) is Impl : Agent_Access; begin Set_Field (Object, Impl); ADO.Objects.Set_Field_Unbounded_String (Impl.all, 2, Impl.Hostname, Value); end Set_Hostname; function Get_Hostname (Object : in Agent_Ref) return String is begin return Ada.Strings.Unbounded.To_String (Object.Get_Hostname); end Get_Hostname; function Get_Hostname (Object : in Agent_Ref) return Ada.Strings.Unbounded.Unbounded_String is Impl : constant Agent_Access := Agent_Impl (Object.Get_Load_Object.all)'Access; begin return Impl.Hostname; end Get_Hostname; procedure Set_Ip (Object : in out Agent_Ref; Value : in String) is Impl : Agent_Access; begin Set_Field (Object, Impl); ADO.Objects.Set_Field_String (Impl.all, 3, Impl.Ip, Value); end Set_Ip; procedure Set_Ip (Object : in out Agent_Ref; Value : in Ada.Strings.Unbounded.Unbounded_String) is Impl : Agent_Access; begin Set_Field (Object, Impl); ADO.Objects.Set_Field_Unbounded_String (Impl.all, 3, Impl.Ip, Value); end Set_Ip; function Get_Ip (Object : in Agent_Ref) return String is begin return Ada.Strings.Unbounded.To_String (Object.Get_Ip); end Get_Ip; function Get_Ip (Object : in Agent_Ref) return Ada.Strings.Unbounded.Unbounded_String is Impl : constant Agent_Access := Agent_Impl (Object.Get_Load_Object.all)'Access; begin return Impl.Ip; end Get_Ip; procedure Set_Key (Object : in out Agent_Ref; Value : in String) is Impl : Agent_Access; begin Set_Field (Object, Impl); ADO.Objects.Set_Field_String (Impl.all, 4, Impl.Key, Value); end Set_Key; procedure Set_Key (Object : in out Agent_Ref; Value : in Ada.Strings.Unbounded.Unbounded_String) is Impl : Agent_Access; begin Set_Field (Object, Impl); ADO.Objects.Set_Field_Unbounded_String (Impl.all, 4, Impl.Key, Value); end Set_Key; function Get_Key (Object : in Agent_Ref) return String is begin return Ada.Strings.Unbounded.To_String (Object.Get_Key); end Get_Key; function Get_Key (Object : in Agent_Ref) return Ada.Strings.Unbounded.Unbounded_String is Impl : constant Agent_Access := Agent_Impl (Object.Get_Load_Object.all)'Access; begin return Impl.Key; end Get_Key; procedure Set_Create_Date (Object : in out Agent_Ref; Value : in Ada.Calendar.Time) is Impl : Agent_Access; begin Set_Field (Object, Impl); ADO.Objects.Set_Field_Time (Impl.all, 5, Impl.Create_Date, Value); end Set_Create_Date; function Get_Create_Date (Object : in Agent_Ref) return Ada.Calendar.Time is Impl : constant Agent_Access := Agent_Impl (Object.Get_Load_Object.all)'Access; begin return Impl.Create_Date; end Get_Create_Date; -- Copy of the object. procedure Copy (Object : in Agent_Ref; Into : in out Agent_Ref) is Result : Agent_Ref; begin if not Object.Is_Null then declare Impl : constant Agent_Access := Agent_Impl (Object.Get_Load_Object.all)'Access; Copy : constant Agent_Access := new Agent_Impl; begin ADO.Objects.Set_Object (Result, Copy.all'Access); Copy.Copy (Impl.all); Copy.Hostname := Impl.Hostname; Copy.Ip := Impl.Ip; Copy.Key := Impl.Key; Copy.Create_Date := Impl.Create_Date; end; end if; Into := Result; end Copy; procedure Find (Object : in out Agent_Ref; Session : in out ADO.Sessions.Session'Class; Query : in ADO.SQL.Query'Class; Found : out Boolean) is Impl : constant Agent_Access := new Agent_Impl; begin Impl.Find (Session, Query, Found); if Found then ADO.Objects.Set_Object (Object, Impl.all'Access); else ADO.Objects.Set_Object (Object, null); Destroy (Impl); end if; end Find; procedure Load (Object : in out Agent_Ref; Session : in out ADO.Sessions.Session'Class; Id : in ADO.Identifier) is Impl : constant Agent_Access := new Agent_Impl; Found : Boolean; Query : ADO.SQL.Query; begin Query.Bind_Param (Position => 1, Value => Id); Query.Set_Filter ("id = ?"); Impl.Find (Session, Query, Found); if not Found then Destroy (Impl); raise ADO.Objects.NOT_FOUND; end if; ADO.Objects.Set_Object (Object, Impl.all'Access); end Load; procedure Load (Object : in out Agent_Ref; Session : in out ADO.Sessions.Session'Class; Id : in ADO.Identifier; Found : out Boolean) is Impl : constant Agent_Access := new Agent_Impl; Query : ADO.SQL.Query; begin Query.Bind_Param (Position => 1, Value => Id); Query.Set_Filter ("id = ?"); Impl.Find (Session, Query, Found); if not Found then Destroy (Impl); else ADO.Objects.Set_Object (Object, Impl.all'Access); end if; end Load; procedure Save (Object : in out Agent_Ref; Session : in out ADO.Sessions.Master_Session'Class) is Impl : ADO.Objects.Object_Record_Access := Object.Get_Object; begin if Impl = null then Impl := new Agent_Impl; ADO.Objects.Set_Object (Object, Impl); end if; if not ADO.Objects.Is_Created (Impl.all) then Impl.Create (Session); else Impl.Save (Session); end if; end Save; procedure Delete (Object : in out Agent_Ref; Session : in out ADO.Sessions.Master_Session'Class) is Impl : constant ADO.Objects.Object_Record_Access := Object.Get_Object; begin if Impl /= null then Impl.Delete (Session); end if; end Delete; -- -------------------- -- Free the object -- -------------------- procedure Destroy (Object : access Agent_Impl) is type Agent_Impl_Ptr is access all Agent_Impl; procedure Unchecked_Free is new Ada.Unchecked_Deallocation (Agent_Impl, Agent_Impl_Ptr); pragma Warnings (Off, "*redundant conversion*"); Ptr : Agent_Impl_Ptr := Agent_Impl (Object.all)'Access; pragma Warnings (On, "*redundant conversion*"); begin Unchecked_Free (Ptr); end Destroy; procedure Find (Object : in out Agent_Impl; Session : in out ADO.Sessions.Session'Class; Query : in ADO.SQL.Query'Class; Found : out Boolean) is Stmt : ADO.Statements.Query_Statement := Session.Create_Statement (Query, AGENT_DEF'Access); begin Stmt.Execute; if Stmt.Has_Elements then Object.Load (Stmt, Session); Stmt.Next; Found := not Stmt.Has_Elements; else Found := False; end if; end Find; overriding procedure Load (Object : in out Agent_Impl; Session : in out ADO.Sessions.Session'Class) is Found : Boolean; Query : ADO.SQL.Query; Id : constant ADO.Identifier := Object.Get_Key_Value; begin Query.Bind_Param (Position => 1, Value => Id); Query.Set_Filter ("id = ?"); Object.Find (Session, Query, Found); if not Found then raise ADO.Objects.NOT_FOUND; end if; end Load; procedure Save (Object : in out Agent_Impl; Session : in out ADO.Sessions.Master_Session'Class) is Stmt : ADO.Statements.Update_Statement := Session.Create_Statement (AGENT_DEF'Access); begin if Object.Is_Modified (1) then Stmt.Save_Field (Name => COL_0_1_NAME, -- id Value => Object.Get_Key); Object.Clear_Modified (1); end if; if Object.Is_Modified (2) then Stmt.Save_Field (Name => COL_1_1_NAME, -- hostname Value => Object.Hostname); Object.Clear_Modified (2); end if; if Object.Is_Modified (3) then Stmt.Save_Field (Name => COL_2_1_NAME, -- ip Value => Object.Ip); Object.Clear_Modified (3); end if; if Object.Is_Modified (4) then Stmt.Save_Field (Name => COL_3_1_NAME, -- key Value => Object.Key); Object.Clear_Modified (4); end if; if Object.Is_Modified (5) then Stmt.Save_Field (Name => COL_4_1_NAME, -- create_date Value => Object.Create_Date); Object.Clear_Modified (5); end if; if Stmt.Has_Save_Fields then Stmt.Set_Filter (Filter => "id = ?"); Stmt.Add_Param (Value => Object.Get_Key); declare Result : Integer; begin Stmt.Execute (Result); if Result /= 1 then if Result /= 0 then raise ADO.Objects.UPDATE_ERROR; end if; end if; end; end if; end Save; procedure Create (Object : in out Agent_Impl; Session : in out ADO.Sessions.Master_Session'Class) is Query : ADO.Statements.Insert_Statement := Session.Create_Statement (AGENT_DEF'Access); Result : Integer; begin Session.Allocate (Id => Object); Query.Save_Field (Name => COL_0_1_NAME, -- id Value => Object.Get_Key); Query.Save_Field (Name => COL_1_1_NAME, -- hostname Value => Object.Hostname); Query.Save_Field (Name => COL_2_1_NAME, -- ip Value => Object.Ip); Query.Save_Field (Name => COL_3_1_NAME, -- key Value => Object.Key); Query.Save_Field (Name => COL_4_1_NAME, -- create_date Value => Object.Create_Date); Query.Execute (Result); if Result /= 1 then raise ADO.Objects.INSERT_ERROR; end if; ADO.Objects.Set_Created (Object); end Create; procedure Delete (Object : in out Agent_Impl; Session : in out ADO.Sessions.Master_Session'Class) is Stmt : ADO.Statements.Delete_Statement := Session.Create_Statement (AGENT_DEF'Access); begin Stmt.Set_Filter (Filter => "id = ?"); Stmt.Add_Param (Value => Object.Get_Key); Stmt.Execute; end Delete; -- ------------------------------ -- Get the bean attribute identified by the name. -- ------------------------------ overriding function Get_Value (From : in Agent_Ref; Name : in String) return Util.Beans.Objects.Object is Obj : ADO.Objects.Object_Record_Access; Impl : access Agent_Impl; begin if From.Is_Null then return Util.Beans.Objects.Null_Object; end if; Obj := From.Get_Load_Object; Impl := Agent_Impl (Obj.all)'Access; if Name = "id" then return ADO.Objects.To_Object (Impl.Get_Key); elsif Name = "hostname" then return Util.Beans.Objects.To_Object (Impl.Hostname); elsif Name = "ip" then return Util.Beans.Objects.To_Object (Impl.Ip); elsif Name = "key" then return Util.Beans.Objects.To_Object (Impl.Key); elsif Name = "create_date" then return Util.Beans.Objects.Time.To_Object (Impl.Create_Date); end if; return Util.Beans.Objects.Null_Object; end Get_Value; -- ------------------------------ -- Load the object from current iterator position -- ------------------------------ procedure Load (Object : in out Agent_Impl; Stmt : in out ADO.Statements.Query_Statement'Class; Session : in out ADO.Sessions.Session'Class) is pragma Unreferenced (Session); begin Object.Set_Key_Value (Stmt.Get_Identifier (0)); Object.Hostname := Stmt.Get_Unbounded_String (1); Object.Ip := Stmt.Get_Unbounded_String (2); Object.Key := Stmt.Get_Unbounded_String (3); Object.Create_Date := Stmt.Get_Time (4); ADO.Objects.Set_Created (Object); end Load; end Hyperion.Agents.Models;
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Web Framework -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2013, Vadim Godunko <vgodunko@gmail.com> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ with Ada.Streams; with GNAT.Sockets; with FastCGI.Field_Names; with FastCGI.Field_Values; package Matreshka.FastCGI.Descriptors is type Abstract_Descriptor is abstract tagged limited record Socket : GNAT.Sockets.Socket_Type; Request_Id : Matreshka.FastCGI.FCGI_Request_Identifier; Params_Done : Boolean := False; -- FCGI_PARAMS was received completely. Headers_Done : Boolean := False; -- All headers was generated by application and output. Stdout data are -- send directly to the server. Stdout_Data : League.Stream_Element_Vectors.Stream_Element_Vector; Stderr_Data : League.Stream_Element_Vectors.Stream_Element_Vector; -- Vectors to accumulate stdout and stderr data before flushing to -- the server. end record; type Descriptor_Access is access all Abstract_Descriptor'Class; not overriding procedure Internal_Begin_Request (Self : in out Abstract_Descriptor; Socket : GNAT.Sockets.Socket_Type; Request_Id : Matreshka.FastCGI.FCGI_Request_Identifier); procedure Internal_Params (Self : in out Abstract_Descriptor'Class; Buffer : Ada.Streams.Stream_Element_Array); not overriding procedure Internal_Param (Self : in out Abstract_Descriptor; Name : Standard.FastCGI.Field_Names.Field_Name; Value : Standard.FastCGI.Field_Values.Field_Value) is abstract; not overriding procedure Internal_End_Params (Self : in out Abstract_Descriptor) is abstract; not overriding procedure Internal_Stdin (Self : in out Abstract_Descriptor; Buffer : Ada.Streams.Stream_Element_Array) is abstract; procedure Internal_Header (Self : in out Abstract_Descriptor'Class; Name : Standard.FastCGI.Field_Names.Field_Name; Value : Standard.FastCGI.Field_Values.Field_Value); procedure Internal_End_Headers (Self : in out Abstract_Descriptor'Class); procedure Internal_Stdout (Self : in out Abstract_Descriptor'Class; Data : Ada.Streams.Stream_Element_Array); procedure Internal_Stderr (Self : in out Abstract_Descriptor'Class; Data : Ada.Streams.Stream_Element_Array); end Matreshka.FastCGI.Descriptors;
-- This package has been generated automatically by GNATtest. -- Do not edit any part of it, see GNATtest documentation for more details. -- begin read only with Gnattest_Generated; package BasesTypes.Test_Data.Tests is type Test is new GNATtest_Generated.GNATtest_Standard.BasesTypes.Test_Data .Test with null record; procedure Test_Is_Buyable_e4fcaf_447d98(Gnattest_T: in out Test); -- basestypes.ads:110:4:Is_Buyable:Test_Is_Buyable procedure Test_Get_Price_58bb07_c6139c(Gnattest_T: in out Test); -- basestypes.ads:127:4:Get_Price:Test_Get_Price end BasesTypes.Test_Data.Tests; -- end read only
pragma Ada_2012; package body Protypo.Api.Engine_Values.Indefinite_Vector_Wrappers is ------------------ -- Make_Wrapper -- ------------------ function Make_Wrapper (Init : Element_Vectors.Vector) return Handlers.Ambivalent_Interface_Access is Val : Engine_Value_Vectors.Vector; begin for Element of Init loop Val.Append (Create (Element)); end loop; return new Array_Wrapper'(A => Engine_Value_Array_Wrappers.Make_Wrapper (Val)); end Make_Wrapper; --------- -- Set -- --------- procedure Set (Container : in out Array_Wrapper; Index : Index_Type; Value : Element_Type) is begin Container.A.Set (Integer (Index), Create (Value)); end Set; ------------ -- Append -- ------------ procedure Append (Container : in out Array_Wrapper; Value : Element_Type) is begin Container.A.Append (Create (Value)); end Append; end Protypo.Api.Engine_Values.Indefinite_Vector_Wrappers;
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015-2017, AdaCore -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions are -- -- met: -- -- 1. Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- 2. Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in -- -- the documentation and/or other materials provided with the -- -- distribution. -- -- 3. Neither the name of the copyright holder nor the names of its -- -- contributors may be used to endorse or promote products derived -- -- from this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -- -- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -- -- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -- -- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -- -- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -- -- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ with System; use System; with STM32_SVD; use STM32_SVD; with STM32.Device; use STM32.Device; package body STM32.PWM is procedure Compute_Prescalar_And_Period (This : access Timer; Requested_Frequency : Hertz; Prescalar : out UInt32; Period : out UInt32) with Pre => Requested_Frequency > 0; -- Computes the minimum prescaler and thus the maximum resolution for the -- given timer, based on the system clocks and the requested frequency. -- Computes the period required for the requested frequency. function Timer_Period (This : PWM_Modulator) return UInt32 is (Current_Autoreload (This.Generator.all)); procedure Configure_PWM_GPIO (Output : GPIO_Point; PWM_AF : GPIO_Alternate_Function); -- TODO: move these two functions to the STM32.Device packages? function Has_APB2_Frequency (This : Timer) return Boolean; -- timers 1, 8, 9, 10, 11 function Has_APB1_Frequency (This : Timer) return Boolean; -- timers 3, 4, 6, 7, 12, 13, 14 -------------------- -- Set_Duty_Cycle -- -------------------- procedure Set_Duty_Cycle (This : in out PWM_Modulator; Value : Percentage) is Pulse16 : UInt16; Pulse32 : UInt32; begin This.Duty_Cycle := Value; if Value = 0 then Set_Compare_Value (This.Generator.all, This.Channel, UInt16'(0)); else -- for a Value of 0, the computation of Pulse wraps around, so we -- only compute it when not zero if Has_32bit_CC_Values (This.Generator.all) then Pulse32 := UInt32 ((Timer_Period (This) + 1) * UInt32 (Value) / 100) - 1; Set_Compare_Value (This.Generator.all, This.Channel, Pulse32); else Pulse16 := UInt16 ((Timer_Period (This) + 1) * UInt32 (Value) / 100) - 1; Set_Compare_Value (This.Generator.all, This.Channel, Pulse16); end if; end if; end Set_Duty_Cycle; ------------------- -- Set_Duty_Time -- ------------------- procedure Set_Duty_Time (This : in out PWM_Modulator; Value : Microseconds) is Pulse16 : UInt16; Pulse32 : UInt32; Period : constant UInt32 := Timer_Period (This) + 1; uS_Per_Period : constant UInt32 := Microseconds_Per_Period (This); begin if Value = 0 then Set_Compare_Value (This.Generator.all, This.Channel, UInt16'(0)); else -- for a Value of 0, the computation of Pulse wraps around, so we -- only compute it when not zero if Has_32bit_CC_Values (This.Generator.all) then Pulse32 := UInt32 ((Period / uS_Per_Period) * Value) - 1; Set_Compare_Value (This.Generator.all, This.Channel, Pulse32); else Pulse16 := UInt16 ((Period * Value) / uS_Per_Period) - 1; Set_Compare_Value (This.Generator.all, This.Channel, Pulse16); end if; end if; end Set_Duty_Time; ------------------------ -- Current_Duty_Cycle -- ------------------------ function Current_Duty_Cycle (This : PWM_Modulator) return Percentage is begin return This.Duty_Cycle; end Current_Duty_Cycle; ------------------------- -- Configure_PWM_Timer -- ------------------------- procedure Configure_PWM_Timer (Generator : not null access Timer; Frequency : Hertz) is Computed_Prescalar : UInt32; Computed_Period : UInt32; begin Enable_Clock (Generator.all); Compute_Prescalar_And_Period (Generator, Requested_Frequency => Frequency, Prescalar => Computed_Prescalar, Period => Computed_Period); Computed_Period := Computed_Period - 1; Configure (Generator.all, Prescaler => UInt16 (Computed_Prescalar), Period => Computed_Period, Clock_Divisor => Div1, Counter_Mode => Up); Set_Autoreload_Preload (Generator.all, True); if Advanced_Timer (Generator.all) then Enable_Main_Output (Generator.all); end if; Enable (Generator.all); end Configure_PWM_Timer; ------------------------ -- Attach_PWM_Channel -- ------------------------ procedure Attach_PWM_Channel (This : in out PWM_Modulator; Generator : not null access Timer; Channel : Timer_Channel; Point : GPIO_Point; PWM_AF : GPIO_Alternate_Function; Polarity : Timer_Output_Compare_Polarity := High) is begin This.Channel := Channel; This.Generator := Generator; Enable_Clock (Point); Configure_PWM_GPIO (Point, PWM_AF); Configure_Channel_Output (This.Generator.all, Channel => Channel, Mode => PWM1, State => Disable, Pulse => 0, Polarity => Polarity); Set_Compare_Value (This.Generator.all, Channel, UInt16 (0)); Disable_Channel (This.Generator.all, Channel); end Attach_PWM_Channel; ------------------------ -- Attach_PWM_Channel -- ------------------------ procedure Attach_PWM_Channel (This : in out PWM_Modulator; Generator : not null access Timer; Channel : Timer_Channel; Point : GPIO_Point; Complementary_Point : GPIO_Point; PWM_AF : GPIO_Alternate_Function; Polarity : Timer_Output_Compare_Polarity; Idle_State : Timer_Capture_Compare_State; Complementary_Polarity : Timer_Output_Compare_Polarity; Complementary_Idle_State : Timer_Capture_Compare_State) is begin This.Channel := Channel; This.Generator := Generator; Enable_Clock (Point); Enable_Clock (Complementary_Point); Configure_PWM_GPIO (Point, PWM_AF); Configure_PWM_GPIO (Complementary_Point, PWM_AF); Configure_Channel_Output (This.Generator.all, Channel => Channel, Mode => PWM1, State => Disable, Pulse => 0, Polarity => Polarity, Idle_State => Idle_State, Complementary_Polarity => Complementary_Polarity, Complementary_Idle_State => Complementary_Idle_State); Set_Compare_Value (This.Generator.all, Channel, UInt16 (0)); Disable_Channel (This.Generator.all, Channel); end Attach_PWM_Channel; ------------------- -- Enable_Output -- ------------------- procedure Enable_Output (This : in out PWM_Modulator) is begin Enable_Channel (This.Generator.all, This.Channel); end Enable_Output; --------------------------------- -- Enable_Complementary_Output -- --------------------------------- procedure Enable_Complementary_Output (This : in out PWM_Modulator) is begin Enable_Complementary_Channel (This.Generator.all, This.Channel); end Enable_Complementary_Output; -------------------- -- Output_Enabled -- -------------------- function Output_Enabled (This : PWM_Modulator) return Boolean is begin return Channel_Enabled (This.Generator.all, This.Channel); end Output_Enabled; ---------------------------------- -- Complementary_Output_Enabled -- ---------------------------------- function Complementary_Output_Enabled (This : PWM_Modulator) return Boolean is begin return Complementary_Channel_Enabled (This.Generator.all, This.Channel); end Complementary_Output_Enabled; -------------------- -- Disable_Output -- -------------------- procedure Disable_Output (This : in out PWM_Modulator) is begin Disable_Channel (This.Generator.all, This.Channel); end Disable_Output; ---------------------------------- -- Disable_Complementary_Output -- ---------------------------------- procedure Disable_Complementary_Output (This : in out PWM_Modulator) is begin Disable_Complementary_Channel (This.Generator.all, This.Channel); end Disable_Complementary_Output; ------------------ -- Set_Polarity -- ------------------ procedure Set_Polarity (This : in PWM_Modulator; Polarity : in Timer_Output_Compare_Polarity) is begin Set_Output_Polarity (This.Generator.all, This.Channel, Polarity); end Set_Polarity; -------------------------------- -- Set_Complementary_Polarity -- -------------------------------- procedure Set_Complementary_Polarity (This : in PWM_Modulator; Polarity : in Timer_Output_Compare_Polarity) is begin Set_Output_Complementary_Polarity (This.Generator.all, This.Channel, Polarity); end Set_Complementary_Polarity; ------------------------ -- Configure_PWM_GPIO -- ------------------------ procedure Configure_PWM_GPIO (Output : GPIO_Point; PWM_AF : GPIO_Alternate_Function) is begin Output.Configure_IO ((Mode_AF, AF => PWM_AF, Resistors => Floating, AF_Output_Type => Push_Pull, AF_Speed => Speed_100MHz)); end Configure_PWM_GPIO; ---------------------------------- -- Compute_Prescalar_and_Period -- ---------------------------------- procedure Compute_Prescalar_And_Period (This : access Timer; Requested_Frequency : Hertz; Prescalar : out UInt32; Period : out UInt32) is Max_Prescalar : constant := 16#FFFF#; Max_Period : UInt32; Hardware_Frequency : UInt32; Clocks : constant RCC_System_Clocks := System_Clock_Frequencies; CK_CNT : UInt32; begin if Has_APB1_Frequency (This.all) then Hardware_Frequency := Clocks.TIMCLK1; elsif Has_APB2_Frequency (This.all) then Hardware_Frequency := Clocks.TIMCLK2; else raise Unknown_Timer; end if; if Has_32bit_Counter (This.all) then Max_Period := 16#FFFF_FFFF#; else Max_Period := 16#FFFF#; end if; if Requested_Frequency > Hardware_Frequency then raise Invalid_Request with "Freq too high"; end if; Prescalar := 0; loop -- Compute the Counter's clock CK_CNT := Hardware_Frequency / (Prescalar + 1); -- Determine the CK_CNT periods to achieve the requested frequency Period := CK_CNT / Requested_Frequency; exit when not ((Period > Max_Period) and (Prescalar <= Max_Prescalar)); Prescalar := Prescalar + 1; end loop; if Prescalar > Max_Prescalar then raise Invalid_Request with "Freq too low"; end if; end Compute_Prescalar_And_Period; ----------------------------- -- Microseconds_Per_Period -- ----------------------------- function Microseconds_Per_Period (This : PWM_Modulator) return Microseconds is Result : UInt32; Counter_Frequency : UInt32; Platform_Frequency : UInt32; Clocks : constant RCC_System_Clocks := System_Clock_Frequencies; Period : constant UInt32 := Timer_Period (This) + 1; Prescalar : constant UInt16 := Current_Prescaler (This.Generator.all) + 1; begin if Has_APB1_Frequency (This.Generator.all) then Platform_Frequency := Clocks.TIMCLK1; else Platform_Frequency := Clocks.TIMCLK2; end if; Counter_Frequency := (Platform_Frequency / UInt32 (Prescalar)) / Period; Result := 1_000_000 / Counter_Frequency; return Result; end Microseconds_Per_Period; ------------------------ -- Has_APB2_Frequency -- ------------------------ function Has_APB2_Frequency (This : Timer) return Boolean is (This'Address = STM32_SVD.TIM1_Base or This'Address = STM32_SVD.TIM8_Base or This'Address = STM32_SVD.TIM9_Base or This'Address = STM32_SVD.TIM10_Base or This'Address = STM32_SVD.TIM11_Base); ------------------------ -- Has_APB1_Frequency -- ------------------------ function Has_APB1_Frequency (This : Timer) return Boolean is (This'Address = STM32_SVD.TIM2_Base or This'Address = STM32_SVD.TIM3_Base or This'Address = STM32_SVD.TIM4_Base or This'Address = STM32_SVD.TIM5_Base or This'Address = STM32_SVD.TIM6_Base or This'Address = STM32_SVD.TIM7_Base or This'Address = STM32_SVD.TIM12_Base or This'Address = STM32_SVD.TIM13_Base or This'Address = STM32_SVD.TIM14_Base); end STM32.PWM;
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- G N A T . S E C U R E _ H A S H E S . S H A 2 _ 6 4 -- -- -- -- B o d y -- -- -- -- Copyright (C) 2009-2021, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- -- -- -- -- -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ package body GNAT.Secure_Hashes.SHA2_64 is use Interfaces; ------------ -- Sigma0 -- ------------ function Sigma0 (X : Word) return Word is begin return Rotate_Right (X, 28) xor Rotate_Right (X, 34) xor Rotate_Right (X, 39); end Sigma0; ------------ -- Sigma1 -- ------------ function Sigma1 (X : Word) return Word is begin return Rotate_Right (X, 14) xor Rotate_Right (X, 18) xor Rotate_Right (X, 41); end Sigma1; -------- -- S0 -- -------- function S0 (X : Word) return Word is begin return Rotate_Right (X, 1) xor Rotate_Right (X, 8) xor Shift_Right (X, 7); end S0; -------- -- S1 -- -------- function S1 (X : Word) return Word is begin return Rotate_Right (X, 19) xor Rotate_Right (X, 61) xor Shift_Right (X, 6); end S1; end GNAT.Secure_Hashes.SHA2_64;
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Ada Modeling Framework -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2012-2013, Vadim Godunko <vgodunko@gmail.com> -- -- 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.OCL; with AMF.UML; with Matreshka.Internals.Strings; package AMF.Internals.Tables.OCL_Attributes is function Internal_Get_Argument (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Collection_Of_Element; -- MessageExp => MessageExp::argument -- OperationCallExp => OperationCallExp::argument function Internal_Get_Attribute (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Element; procedure Internal_Set_Attribute (Self : AMF.Internals.AMF_Element; To : AMF.Internals.AMF_Element); -- TupleLiteralPart => TupleLiteralPart::attribute function Internal_Get_Attribute (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Collection_Of_Element; -- AnyType => Classifier::attribute -- BagType => Classifier::attribute -- CollectionType => Classifier::attribute -- InvalidType => Classifier::attribute -- MessageType => Classifier::attribute -- OrderedSetType => Classifier::attribute -- SequenceType => Classifier::attribute -- SetType => Classifier::attribute -- TemplateParameterType => Classifier::attribute -- TupleType => Classifier::attribute -- VoidType => Classifier::attribute function Internal_Get_Behavior (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Element; procedure Internal_Set_Behavior (Self : AMF.Internals.AMF_Element; To : AMF.Internals.AMF_Element); -- ExpressionInOcl => OpaqueExpression::behavior function Internal_Get_Body (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Element; procedure Internal_Set_Body (Self : AMF.Internals.AMF_Element; To : AMF.Internals.AMF_Element); -- IterateExp => LoopExp::body -- IteratorExp => LoopExp::body function Internal_Get_Body (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Collection_Of_String; -- ExpressionInOcl => OpaqueExpression::body function Internal_Get_Body_Expression (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Element; procedure Internal_Set_Body_Expression (Self : AMF.Internals.AMF_Element; To : AMF.Internals.AMF_Element); -- ExpressionInOcl => ExpressionInOcl::bodyExpression function Internal_Get_Boolean_Symbol (Self : AMF.Internals.AMF_Element) return Boolean; procedure Internal_Set_Boolean_Symbol (Self : AMF.Internals.AMF_Element; To : Boolean); -- BooleanLiteralExp => BooleanLiteralExp::booleanSymbol function Internal_Get_Called_Operation (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Element; procedure Internal_Set_Called_Operation (Self : AMF.Internals.AMF_Element; To : AMF.Internals.AMF_Element); -- MessageExp => MessageExp::calledOperation function Internal_Get_Client_Dependency (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Collection_Of_Element; -- AnyType => NamedElement::clientDependency -- AssociationClassCallExp => NamedElement::clientDependency -- BagType => NamedElement::clientDependency -- BooleanLiteralExp => NamedElement::clientDependency -- CollectionItem => NamedElement::clientDependency -- CollectionLiteralExp => NamedElement::clientDependency -- CollectionRange => NamedElement::clientDependency -- CollectionType => NamedElement::clientDependency -- EnumLiteralExp => NamedElement::clientDependency -- ExpressionInOcl => NamedElement::clientDependency -- IfExp => NamedElement::clientDependency -- IntegerLiteralExp => NamedElement::clientDependency -- InvalidLiteralExp => NamedElement::clientDependency -- InvalidType => NamedElement::clientDependency -- IterateExp => NamedElement::clientDependency -- IteratorExp => NamedElement::clientDependency -- LetExp => NamedElement::clientDependency -- MessageExp => NamedElement::clientDependency -- MessageType => NamedElement::clientDependency -- NullLiteralExp => NamedElement::clientDependency -- OperationCallExp => NamedElement::clientDependency -- OrderedSetType => NamedElement::clientDependency -- PropertyCallExp => NamedElement::clientDependency -- RealLiteralExp => NamedElement::clientDependency -- SequenceType => NamedElement::clientDependency -- SetType => NamedElement::clientDependency -- StateExp => NamedElement::clientDependency -- StringLiteralExp => NamedElement::clientDependency -- TemplateParameterType => NamedElement::clientDependency -- TupleLiteralExp => NamedElement::clientDependency -- TupleLiteralPart => NamedElement::clientDependency -- TupleType => NamedElement::clientDependency -- TypeExp => NamedElement::clientDependency -- UnlimitedNaturalLiteralExp => NamedElement::clientDependency -- UnspecifiedValueExp => NamedElement::clientDependency -- Variable => NamedElement::clientDependency -- VariableExp => NamedElement::clientDependency -- VoidType => NamedElement::clientDependency function Internal_Get_Collaboration_Use (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Collection_Of_Element; -- AnyType => Classifier::collaborationUse -- BagType => Classifier::collaborationUse -- CollectionType => Classifier::collaborationUse -- InvalidType => Classifier::collaborationUse -- MessageType => Classifier::collaborationUse -- OrderedSetType => Classifier::collaborationUse -- SequenceType => Classifier::collaborationUse -- SetType => Classifier::collaborationUse -- TemplateParameterType => Classifier::collaborationUse -- TupleType => Classifier::collaborationUse -- VoidType => Classifier::collaborationUse function Internal_Get_Condition (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Element; procedure Internal_Set_Condition (Self : AMF.Internals.AMF_Element; To : AMF.Internals.AMF_Element); -- IfExp => IfExp::condition function Internal_Get_Context_Variable (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Element; procedure Internal_Set_Context_Variable (Self : AMF.Internals.AMF_Element; To : AMF.Internals.AMF_Element); -- ExpressionInOcl => ExpressionInOcl::contextVariable function Internal_Get_Element_Import (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Collection_Of_Element; -- AnyType => Namespace::elementImport -- BagType => Namespace::elementImport -- CollectionType => Namespace::elementImport -- InvalidType => Namespace::elementImport -- MessageType => Namespace::elementImport -- OrderedSetType => Namespace::elementImport -- SequenceType => Namespace::elementImport -- SetType => Namespace::elementImport -- TemplateParameterType => Namespace::elementImport -- TupleType => Namespace::elementImport -- VoidType => Namespace::elementImport function Internal_Get_Element_Type (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Element; procedure Internal_Set_Element_Type (Self : AMF.Internals.AMF_Element; To : AMF.Internals.AMF_Element); -- BagType => CollectionType::elementType -- CollectionType => CollectionType::elementType -- OrderedSetType => CollectionType::elementType -- SequenceType => CollectionType::elementType -- SetType => CollectionType::elementType function Internal_Get_Else_Expression (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Element; procedure Internal_Set_Else_Expression (Self : AMF.Internals.AMF_Element; To : AMF.Internals.AMF_Element); -- IfExp => IfExp::elseExpression function Internal_Get_Feature (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Collection_Of_Element; -- AnyType => Classifier::feature -- BagType => Classifier::feature -- CollectionType => Classifier::feature -- InvalidType => Classifier::feature -- MessageType => Classifier::feature -- OrderedSetType => Classifier::feature -- SequenceType => Classifier::feature -- SetType => Classifier::feature -- TemplateParameterType => Classifier::feature -- TupleType => Classifier::feature -- VoidType => Classifier::feature function Internal_Get_First (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Element; procedure Internal_Set_First (Self : AMF.Internals.AMF_Element; To : AMF.Internals.AMF_Element); -- CollectionRange => CollectionRange::first function Internal_Get_General (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Collection_Of_Element; -- AnyType => Classifier::general -- BagType => Classifier::general -- CollectionType => Classifier::general -- InvalidType => Classifier::general -- MessageType => Classifier::general -- OrderedSetType => Classifier::general -- SequenceType => Classifier::general -- SetType => Classifier::general -- TemplateParameterType => Classifier::general -- TupleType => Classifier::general -- VoidType => Classifier::general function Internal_Get_Generalization (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Collection_Of_Element; -- AnyType => Classifier::generalization -- BagType => Classifier::generalization -- CollectionType => Classifier::generalization -- InvalidType => Classifier::generalization -- MessageType => Classifier::generalization -- OrderedSetType => Classifier::generalization -- SequenceType => Classifier::generalization -- SetType => Classifier::generalization -- TemplateParameterType => Classifier::generalization -- TupleType => Classifier::generalization -- VoidType => Classifier::generalization function Internal_Get_Generated_Type (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Element; procedure Internal_Set_Generated_Type (Self : AMF.Internals.AMF_Element; To : AMF.Internals.AMF_Element); -- ExpressionInOcl => ExpressionInOcl::generatedType function Internal_Get_Imported_Member (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Collection_Of_Element; -- AnyType => Namespace::importedMember -- BagType => Namespace::importedMember -- CollectionType => Namespace::importedMember -- InvalidType => Namespace::importedMember -- MessageType => Namespace::importedMember -- OrderedSetType => Namespace::importedMember -- SequenceType => Namespace::importedMember -- SetType => Namespace::importedMember -- TemplateParameterType => Namespace::importedMember -- TupleType => Namespace::importedMember -- VoidType => Namespace::importedMember function Internal_Get_In (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Element; procedure Internal_Set_In (Self : AMF.Internals.AMF_Element; To : AMF.Internals.AMF_Element); -- LetExp => LetExp::in function Internal_Get_Inherited_Member (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Collection_Of_Element; -- AnyType => Classifier::inheritedMember -- BagType => Classifier::inheritedMember -- CollectionType => Classifier::inheritedMember -- InvalidType => Classifier::inheritedMember -- MessageType => Classifier::inheritedMember -- OrderedSetType => Classifier::inheritedMember -- SequenceType => Classifier::inheritedMember -- SetType => Classifier::inheritedMember -- TemplateParameterType => Classifier::inheritedMember -- TupleType => Classifier::inheritedMember -- VoidType => Classifier::inheritedMember function Internal_Get_Init_Expression (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Element; procedure Internal_Set_Init_Expression (Self : AMF.Internals.AMF_Element; To : AMF.Internals.AMF_Element); -- Variable => Variable::initExpression function Internal_Get_Integer_Symbol (Self : AMF.Internals.AMF_Element) return Integer; procedure Internal_Set_Integer_Symbol (Self : AMF.Internals.AMF_Element; To : Integer); -- IntegerLiteralExp => IntegerLiteralExp::integerSymbol function Internal_Get_Is_Abstract (Self : AMF.Internals.AMF_Element) return Boolean; procedure Internal_Set_Is_Abstract (Self : AMF.Internals.AMF_Element; To : Boolean); -- AnyType => Classifier::isAbstract -- BagType => Classifier::isAbstract -- CollectionType => Classifier::isAbstract -- InvalidType => Classifier::isAbstract -- MessageType => Classifier::isAbstract -- OrderedSetType => Classifier::isAbstract -- SequenceType => Classifier::isAbstract -- SetType => Classifier::isAbstract -- TemplateParameterType => Classifier::isAbstract -- TupleType => Classifier::isAbstract -- VoidType => Classifier::isAbstract function Internal_Get_Is_Final_Specialization (Self : AMF.Internals.AMF_Element) return Boolean; procedure Internal_Set_Is_Final_Specialization (Self : AMF.Internals.AMF_Element; To : Boolean); -- AnyType => Classifier::isFinalSpecialization -- BagType => Classifier::isFinalSpecialization -- CollectionType => Classifier::isFinalSpecialization -- InvalidType => Classifier::isFinalSpecialization -- MessageType => Classifier::isFinalSpecialization -- OrderedSetType => Classifier::isFinalSpecialization -- SequenceType => Classifier::isFinalSpecialization -- SetType => Classifier::isFinalSpecialization -- TemplateParameterType => Classifier::isFinalSpecialization -- TupleType => Classifier::isFinalSpecialization -- VoidType => Classifier::isFinalSpecialization function Internal_Get_Is_Leaf (Self : AMF.Internals.AMF_Element) return Boolean; procedure Internal_Set_Is_Leaf (Self : AMF.Internals.AMF_Element; To : Boolean); -- AnyType => RedefinableElement::isLeaf -- BagType => RedefinableElement::isLeaf -- CollectionType => RedefinableElement::isLeaf -- InvalidType => RedefinableElement::isLeaf -- MessageType => RedefinableElement::isLeaf -- OrderedSetType => RedefinableElement::isLeaf -- SequenceType => RedefinableElement::isLeaf -- SetType => RedefinableElement::isLeaf -- TemplateParameterType => RedefinableElement::isLeaf -- TupleType => RedefinableElement::isLeaf -- VoidType => RedefinableElement::isLeaf function Internal_Get_Item (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Element; procedure Internal_Set_Item (Self : AMF.Internals.AMF_Element; To : AMF.Internals.AMF_Element); -- CollectionItem => CollectionItem::item function Internal_Get_Iterator (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Collection_Of_Element; -- IterateExp => LoopExp::iterator -- IteratorExp => LoopExp::iterator function Internal_Get_Kind (Self : AMF.Internals.AMF_Element) return AMF.OCL.OCL_Collection_Kind; procedure Internal_Set_Kind (Self : AMF.Internals.AMF_Element; To : AMF.OCL.OCL_Collection_Kind); -- CollectionLiteralExp => CollectionLiteralExp::kind function Internal_Get_Language (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Collection_Of_String; -- ExpressionInOcl => OpaqueExpression::language function Internal_Get_Last (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Element; procedure Internal_Set_Last (Self : AMF.Internals.AMF_Element; To : AMF.Internals.AMF_Element); -- CollectionRange => CollectionRange::last function Internal_Get_Member (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Collection_Of_Element; -- AnyType => Namespace::member -- BagType => Namespace::member -- CollectionType => Namespace::member -- InvalidType => Namespace::member -- MessageType => Namespace::member -- OrderedSetType => Namespace::member -- SequenceType => Namespace::member -- SetType => Namespace::member -- TemplateParameterType => Namespace::member -- TupleType => Namespace::member -- VoidType => Namespace::member function Internal_Get_Name (Self : AMF.Internals.AMF_Element) return Matreshka.Internals.Strings.Shared_String_Access; procedure Internal_Set_Name (Self : AMF.Internals.AMF_Element; To : Matreshka.Internals.Strings.Shared_String_Access); -- AnyType => NamedElement::name -- AssociationClassCallExp => NamedElement::name -- BagType => NamedElement::name -- BooleanLiteralExp => NamedElement::name -- CollectionItem => NamedElement::name -- CollectionLiteralExp => NamedElement::name -- CollectionRange => NamedElement::name -- CollectionType => NamedElement::name -- EnumLiteralExp => NamedElement::name -- ExpressionInOcl => NamedElement::name -- IfExp => NamedElement::name -- IntegerLiteralExp => NamedElement::name -- InvalidLiteralExp => NamedElement::name -- InvalidType => NamedElement::name -- IterateExp => NamedElement::name -- IteratorExp => NamedElement::name -- LetExp => NamedElement::name -- MessageExp => NamedElement::name -- MessageType => NamedElement::name -- NullLiteralExp => NamedElement::name -- OperationCallExp => NamedElement::name -- OrderedSetType => NamedElement::name -- PropertyCallExp => NamedElement::name -- RealLiteralExp => NamedElement::name -- SequenceType => NamedElement::name -- SetType => NamedElement::name -- StateExp => NamedElement::name -- StringLiteralExp => NamedElement::name -- TemplateParameterType => NamedElement::name -- TupleLiteralExp => NamedElement::name -- TupleLiteralPart => NamedElement::name -- TupleType => NamedElement::name -- TypeExp => NamedElement::name -- UnlimitedNaturalLiteralExp => NamedElement::name -- UnspecifiedValueExp => NamedElement::name -- Variable => NamedElement::name -- VariableExp => NamedElement::name -- VoidType => NamedElement::name function Internal_Get_Name_Expression (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Element; procedure Internal_Set_Name_Expression (Self : AMF.Internals.AMF_Element; To : AMF.Internals.AMF_Element); -- AnyType => NamedElement::nameExpression -- AssociationClassCallExp => NamedElement::nameExpression -- BagType => NamedElement::nameExpression -- BooleanLiteralExp => NamedElement::nameExpression -- CollectionItem => NamedElement::nameExpression -- CollectionLiteralExp => NamedElement::nameExpression -- CollectionRange => NamedElement::nameExpression -- CollectionType => NamedElement::nameExpression -- EnumLiteralExp => NamedElement::nameExpression -- ExpressionInOcl => NamedElement::nameExpression -- IfExp => NamedElement::nameExpression -- IntegerLiteralExp => NamedElement::nameExpression -- InvalidLiteralExp => NamedElement::nameExpression -- InvalidType => NamedElement::nameExpression -- IterateExp => NamedElement::nameExpression -- IteratorExp => NamedElement::nameExpression -- LetExp => NamedElement::nameExpression -- MessageExp => NamedElement::nameExpression -- MessageType => NamedElement::nameExpression -- NullLiteralExp => NamedElement::nameExpression -- OperationCallExp => NamedElement::nameExpression -- OrderedSetType => NamedElement::nameExpression -- PropertyCallExp => NamedElement::nameExpression -- RealLiteralExp => NamedElement::nameExpression -- SequenceType => NamedElement::nameExpression -- SetType => NamedElement::nameExpression -- StateExp => NamedElement::nameExpression -- StringLiteralExp => NamedElement::nameExpression -- TemplateParameterType => NamedElement::nameExpression -- TupleLiteralExp => NamedElement::nameExpression -- TupleLiteralPart => NamedElement::nameExpression -- TupleType => NamedElement::nameExpression -- TypeExp => NamedElement::nameExpression -- UnlimitedNaturalLiteralExp => NamedElement::nameExpression -- UnspecifiedValueExp => NamedElement::nameExpression -- Variable => NamedElement::nameExpression -- VariableExp => NamedElement::nameExpression -- VoidType => NamedElement::nameExpression function Internal_Get_Namespace (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Element; -- AnyType => NamedElement::namespace -- AssociationClassCallExp => NamedElement::namespace -- BagType => NamedElement::namespace -- BooleanLiteralExp => NamedElement::namespace -- CollectionItem => NamedElement::namespace -- CollectionLiteralExp => NamedElement::namespace -- CollectionRange => NamedElement::namespace -- CollectionType => NamedElement::namespace -- EnumLiteralExp => NamedElement::namespace -- ExpressionInOcl => NamedElement::namespace -- IfExp => NamedElement::namespace -- IntegerLiteralExp => NamedElement::namespace -- InvalidLiteralExp => NamedElement::namespace -- InvalidType => NamedElement::namespace -- IterateExp => NamedElement::namespace -- IteratorExp => NamedElement::namespace -- LetExp => NamedElement::namespace -- MessageExp => NamedElement::namespace -- MessageType => NamedElement::namespace -- NullLiteralExp => NamedElement::namespace -- OperationCallExp => NamedElement::namespace -- OrderedSetType => NamedElement::namespace -- PropertyCallExp => NamedElement::namespace -- RealLiteralExp => NamedElement::namespace -- SequenceType => NamedElement::namespace -- SetType => NamedElement::namespace -- StateExp => NamedElement::namespace -- StringLiteralExp => NamedElement::namespace -- TemplateParameterType => NamedElement::namespace -- TupleLiteralExp => NamedElement::namespace -- TupleLiteralPart => NamedElement::namespace -- TupleType => NamedElement::namespace -- TypeExp => NamedElement::namespace -- UnlimitedNaturalLiteralExp => NamedElement::namespace -- UnspecifiedValueExp => NamedElement::namespace -- Variable => NamedElement::namespace -- VariableExp => NamedElement::namespace -- VoidType => NamedElement::namespace function Internal_Get_Navigation_Source (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Element; procedure Internal_Set_Navigation_Source (Self : AMF.Internals.AMF_Element; To : AMF.Internals.AMF_Element); -- AssociationClassCallExp => NavigationCallExp::navigationSource -- PropertyCallExp => NavigationCallExp::navigationSource function Internal_Get_Owned_Attribute (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Collection_Of_Element; -- BagType => DataType::ownedAttribute -- CollectionType => DataType::ownedAttribute -- OrderedSetType => DataType::ownedAttribute -- SequenceType => DataType::ownedAttribute -- SetType => DataType::ownedAttribute -- TupleType => DataType::ownedAttribute function Internal_Get_Owned_Comment (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Collection_Of_Element; -- AnyType => Element::ownedComment -- AssociationClassCallExp => Element::ownedComment -- BagType => Element::ownedComment -- BooleanLiteralExp => Element::ownedComment -- CollectionItem => Element::ownedComment -- CollectionLiteralExp => Element::ownedComment -- CollectionRange => Element::ownedComment -- CollectionType => Element::ownedComment -- EnumLiteralExp => Element::ownedComment -- ExpressionInOcl => Element::ownedComment -- IfExp => Element::ownedComment -- IntegerLiteralExp => Element::ownedComment -- InvalidLiteralExp => Element::ownedComment -- InvalidType => Element::ownedComment -- IterateExp => Element::ownedComment -- IteratorExp => Element::ownedComment -- LetExp => Element::ownedComment -- MessageExp => Element::ownedComment -- MessageType => Element::ownedComment -- NullLiteralExp => Element::ownedComment -- OperationCallExp => Element::ownedComment -- OrderedSetType => Element::ownedComment -- PropertyCallExp => Element::ownedComment -- RealLiteralExp => Element::ownedComment -- SequenceType => Element::ownedComment -- SetType => Element::ownedComment -- StateExp => Element::ownedComment -- StringLiteralExp => Element::ownedComment -- TemplateParameterType => Element::ownedComment -- TupleLiteralExp => Element::ownedComment -- TupleLiteralPart => Element::ownedComment -- TupleType => Element::ownedComment -- TypeExp => Element::ownedComment -- UnlimitedNaturalLiteralExp => Element::ownedComment -- UnspecifiedValueExp => Element::ownedComment -- Variable => Element::ownedComment -- VariableExp => Element::ownedComment -- VoidType => Element::ownedComment function Internal_Get_Owned_Element (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Collection_Of_Element; -- AnyType => Element::ownedElement -- AssociationClassCallExp => Element::ownedElement -- BagType => Element::ownedElement -- BooleanLiteralExp => Element::ownedElement -- CollectionItem => Element::ownedElement -- CollectionLiteralExp => Element::ownedElement -- CollectionRange => Element::ownedElement -- CollectionType => Element::ownedElement -- EnumLiteralExp => Element::ownedElement -- ExpressionInOcl => Element::ownedElement -- IfExp => Element::ownedElement -- IntegerLiteralExp => Element::ownedElement -- InvalidLiteralExp => Element::ownedElement -- InvalidType => Element::ownedElement -- IterateExp => Element::ownedElement -- IteratorExp => Element::ownedElement -- LetExp => Element::ownedElement -- MessageExp => Element::ownedElement -- MessageType => Element::ownedElement -- NullLiteralExp => Element::ownedElement -- OperationCallExp => Element::ownedElement -- OrderedSetType => Element::ownedElement -- PropertyCallExp => Element::ownedElement -- RealLiteralExp => Element::ownedElement -- SequenceType => Element::ownedElement -- SetType => Element::ownedElement -- StateExp => Element::ownedElement -- StringLiteralExp => Element::ownedElement -- TemplateParameterType => Element::ownedElement -- TupleLiteralExp => Element::ownedElement -- TupleLiteralPart => Element::ownedElement -- TupleType => Element::ownedElement -- TypeExp => Element::ownedElement -- UnlimitedNaturalLiteralExp => Element::ownedElement -- UnspecifiedValueExp => Element::ownedElement -- Variable => Element::ownedElement -- VariableExp => Element::ownedElement -- VoidType => Element::ownedElement function Internal_Get_Owned_Member (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Collection_Of_Element; -- AnyType => Namespace::ownedMember -- BagType => Namespace::ownedMember -- CollectionType => Namespace::ownedMember -- InvalidType => Namespace::ownedMember -- MessageType => Namespace::ownedMember -- OrderedSetType => Namespace::ownedMember -- SequenceType => Namespace::ownedMember -- SetType => Namespace::ownedMember -- TemplateParameterType => Namespace::ownedMember -- TupleType => Namespace::ownedMember -- VoidType => Namespace::ownedMember function Internal_Get_Owned_Operation (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Collection_Of_Element; -- BagType => DataType::ownedOperation -- CollectionType => DataType::ownedOperation -- OrderedSetType => DataType::ownedOperation -- SequenceType => DataType::ownedOperation -- SetType => DataType::ownedOperation -- TupleType => DataType::ownedOperation function Internal_Get_Owned_Rule (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Collection_Of_Element; -- AnyType => Namespace::ownedRule -- BagType => Namespace::ownedRule -- CollectionType => Namespace::ownedRule -- InvalidType => Namespace::ownedRule -- MessageType => Namespace::ownedRule -- OrderedSetType => Namespace::ownedRule -- SequenceType => Namespace::ownedRule -- SetType => Namespace::ownedRule -- TemplateParameterType => Namespace::ownedRule -- TupleType => Namespace::ownedRule -- VoidType => Namespace::ownedRule function Internal_Get_Owned_Template_Signature (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Element; procedure Internal_Set_Owned_Template_Signature (Self : AMF.Internals.AMF_Element; To : AMF.Internals.AMF_Element); -- AnyType => Classifier::ownedTemplateSignature -- BagType => Classifier::ownedTemplateSignature -- CollectionType => Classifier::ownedTemplateSignature -- InvalidType => Classifier::ownedTemplateSignature -- MessageType => Classifier::ownedTemplateSignature -- OrderedSetType => Classifier::ownedTemplateSignature -- SequenceType => Classifier::ownedTemplateSignature -- SetType => Classifier::ownedTemplateSignature -- TemplateParameterType => Classifier::ownedTemplateSignature -- TupleType => Classifier::ownedTemplateSignature -- VoidType => Classifier::ownedTemplateSignature function Internal_Get_Owned_Use_Case (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Collection_Of_Element; -- AnyType => Classifier::ownedUseCase -- BagType => Classifier::ownedUseCase -- CollectionType => Classifier::ownedUseCase -- InvalidType => Classifier::ownedUseCase -- MessageType => Classifier::ownedUseCase -- OrderedSetType => Classifier::ownedUseCase -- SequenceType => Classifier::ownedUseCase -- SetType => Classifier::ownedUseCase -- TemplateParameterType => Classifier::ownedUseCase -- TupleType => Classifier::ownedUseCase -- VoidType => Classifier::ownedUseCase function Internal_Get_Owner (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Element; -- AnyType => Element::owner -- AssociationClassCallExp => Element::owner -- BagType => Element::owner -- BooleanLiteralExp => Element::owner -- CollectionItem => Element::owner -- CollectionLiteralExp => Element::owner -- CollectionRange => Element::owner -- CollectionType => Element::owner -- EnumLiteralExp => Element::owner -- ExpressionInOcl => Element::owner -- IfExp => Element::owner -- IntegerLiteralExp => Element::owner -- InvalidLiteralExp => Element::owner -- InvalidType => Element::owner -- IterateExp => Element::owner -- IteratorExp => Element::owner -- LetExp => Element::owner -- MessageExp => Element::owner -- MessageType => Element::owner -- NullLiteralExp => Element::owner -- OperationCallExp => Element::owner -- OrderedSetType => Element::owner -- PropertyCallExp => Element::owner -- RealLiteralExp => Element::owner -- SequenceType => Element::owner -- SetType => Element::owner -- StateExp => Element::owner -- StringLiteralExp => Element::owner -- TemplateParameterType => Element::owner -- TupleLiteralExp => Element::owner -- TupleLiteralPart => Element::owner -- TupleType => Element::owner -- TypeExp => Element::owner -- UnlimitedNaturalLiteralExp => Element::owner -- UnspecifiedValueExp => Element::owner -- Variable => Element::owner -- VariableExp => Element::owner -- VoidType => Element::owner function Internal_Get_Owning_Template_Parameter (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Element; procedure Internal_Set_Owning_Template_Parameter (Self : AMF.Internals.AMF_Element; To : AMF.Internals.AMF_Element); -- AnyType => ParameterableElement::owningTemplateParameter -- BagType => ParameterableElement::owningTemplateParameter -- CollectionType => ParameterableElement::owningTemplateParameter -- ExpressionInOcl => ParameterableElement::owningTemplateParameter -- InvalidType => ParameterableElement::owningTemplateParameter -- MessageType => ParameterableElement::owningTemplateParameter -- OrderedSetType => ParameterableElement::owningTemplateParameter -- SequenceType => ParameterableElement::owningTemplateParameter -- SetType => ParameterableElement::owningTemplateParameter -- TemplateParameterType => ParameterableElement::owningTemplateParameter -- TupleType => ParameterableElement::owningTemplateParameter -- VoidType => ParameterableElement::owningTemplateParameter function Internal_Get_Package (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Element; procedure Internal_Set_Package (Self : AMF.Internals.AMF_Element; To : AMF.Internals.AMF_Element); -- AnyType => Type::package -- BagType => Type::package -- CollectionType => Type::package -- InvalidType => Type::package -- MessageType => Type::package -- OrderedSetType => Type::package -- SequenceType => Type::package -- SetType => Type::package -- TemplateParameterType => Type::package -- TupleType => Type::package -- VoidType => Type::package function Internal_Get_Package_Import (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Collection_Of_Element; -- AnyType => Namespace::packageImport -- BagType => Namespace::packageImport -- CollectionType => Namespace::packageImport -- InvalidType => Namespace::packageImport -- MessageType => Namespace::packageImport -- OrderedSetType => Namespace::packageImport -- SequenceType => Namespace::packageImport -- SetType => Namespace::packageImport -- TemplateParameterType => Namespace::packageImport -- TupleType => Namespace::packageImport -- VoidType => Namespace::packageImport function Internal_Get_Parameter_Variable (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Collection_Of_Element; -- ExpressionInOcl => ExpressionInOcl::parameterVariable function Internal_Get_Part (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Collection_Of_Element; -- CollectionLiteralExp => CollectionLiteralExp::part -- TupleLiteralExp => TupleLiteralExp::part function Internal_Get_Powertype_Extent (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Collection_Of_Element; -- AnyType => Classifier::powertypeExtent -- BagType => Classifier::powertypeExtent -- CollectionType => Classifier::powertypeExtent -- InvalidType => Classifier::powertypeExtent -- MessageType => Classifier::powertypeExtent -- OrderedSetType => Classifier::powertypeExtent -- SequenceType => Classifier::powertypeExtent -- SetType => Classifier::powertypeExtent -- TemplateParameterType => Classifier::powertypeExtent -- TupleType => Classifier::powertypeExtent -- VoidType => Classifier::powertypeExtent function Internal_Get_Qualified_Name (Self : AMF.Internals.AMF_Element) return Matreshka.Internals.Strings.Shared_String_Access; -- AnyType => NamedElement::qualifiedName -- AssociationClassCallExp => NamedElement::qualifiedName -- BagType => NamedElement::qualifiedName -- BooleanLiteralExp => NamedElement::qualifiedName -- CollectionItem => NamedElement::qualifiedName -- CollectionLiteralExp => NamedElement::qualifiedName -- CollectionRange => NamedElement::qualifiedName -- CollectionType => NamedElement::qualifiedName -- EnumLiteralExp => NamedElement::qualifiedName -- ExpressionInOcl => NamedElement::qualifiedName -- IfExp => NamedElement::qualifiedName -- IntegerLiteralExp => NamedElement::qualifiedName -- InvalidLiteralExp => NamedElement::qualifiedName -- InvalidType => NamedElement::qualifiedName -- IterateExp => NamedElement::qualifiedName -- IteratorExp => NamedElement::qualifiedName -- LetExp => NamedElement::qualifiedName -- MessageExp => NamedElement::qualifiedName -- MessageType => NamedElement::qualifiedName -- NullLiteralExp => NamedElement::qualifiedName -- OperationCallExp => NamedElement::qualifiedName -- OrderedSetType => NamedElement::qualifiedName -- PropertyCallExp => NamedElement::qualifiedName -- RealLiteralExp => NamedElement::qualifiedName -- SequenceType => NamedElement::qualifiedName -- SetType => NamedElement::qualifiedName -- StateExp => NamedElement::qualifiedName -- StringLiteralExp => NamedElement::qualifiedName -- TemplateParameterType => NamedElement::qualifiedName -- TupleLiteralExp => NamedElement::qualifiedName -- TupleLiteralPart => NamedElement::qualifiedName -- TupleType => NamedElement::qualifiedName -- TypeExp => NamedElement::qualifiedName -- UnlimitedNaturalLiteralExp => NamedElement::qualifiedName -- UnspecifiedValueExp => NamedElement::qualifiedName -- Variable => NamedElement::qualifiedName -- VariableExp => NamedElement::qualifiedName -- VoidType => NamedElement::qualifiedName function Internal_Get_Qualifier (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Collection_Of_Element; -- AssociationClassCallExp => NavigationCallExp::qualifier -- PropertyCallExp => NavigationCallExp::qualifier function Internal_Get_Real_Symbol (Self : AMF.Internals.AMF_Element) return AMF.Real; procedure Internal_Set_Real_Symbol (Self : AMF.Internals.AMF_Element; To : AMF.Real); -- RealLiteralExp => RealLiteralExp::realSymbol function Internal_Get_Redefined_Classifier (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Collection_Of_Element; -- AnyType => Classifier::redefinedClassifier -- BagType => Classifier::redefinedClassifier -- CollectionType => Classifier::redefinedClassifier -- InvalidType => Classifier::redefinedClassifier -- MessageType => Classifier::redefinedClassifier -- OrderedSetType => Classifier::redefinedClassifier -- SequenceType => Classifier::redefinedClassifier -- SetType => Classifier::redefinedClassifier -- TemplateParameterType => Classifier::redefinedClassifier -- TupleType => Classifier::redefinedClassifier -- VoidType => Classifier::redefinedClassifier function Internal_Get_Redefined_Element (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Collection_Of_Element; -- AnyType => RedefinableElement::redefinedElement -- BagType => RedefinableElement::redefinedElement -- CollectionType => RedefinableElement::redefinedElement -- InvalidType => RedefinableElement::redefinedElement -- MessageType => RedefinableElement::redefinedElement -- OrderedSetType => RedefinableElement::redefinedElement -- SequenceType => RedefinableElement::redefinedElement -- SetType => RedefinableElement::redefinedElement -- TemplateParameterType => RedefinableElement::redefinedElement -- TupleType => RedefinableElement::redefinedElement -- VoidType => RedefinableElement::redefinedElement function Internal_Get_Redefinition_Context (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Collection_Of_Element; -- AnyType => RedefinableElement::redefinitionContext -- BagType => RedefinableElement::redefinitionContext -- CollectionType => RedefinableElement::redefinitionContext -- InvalidType => RedefinableElement::redefinitionContext -- MessageType => RedefinableElement::redefinitionContext -- OrderedSetType => RedefinableElement::redefinitionContext -- SequenceType => RedefinableElement::redefinitionContext -- SetType => RedefinableElement::redefinitionContext -- TemplateParameterType => RedefinableElement::redefinitionContext -- TupleType => RedefinableElement::redefinitionContext -- VoidType => RedefinableElement::redefinitionContext function Internal_Get_Referred_Association_Class (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Element; procedure Internal_Set_Referred_Association_Class (Self : AMF.Internals.AMF_Element; To : AMF.Internals.AMF_Element); -- AssociationClassCallExp => AssociationClassCallExp::referredAssociationClass function Internal_Get_Referred_Enum_Literal (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Element; procedure Internal_Set_Referred_Enum_Literal (Self : AMF.Internals.AMF_Element; To : AMF.Internals.AMF_Element); -- EnumLiteralExp => EnumLiteralExp::referredEnumLiteral function Internal_Get_Referred_Operation (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Element; procedure Internal_Set_Referred_Operation (Self : AMF.Internals.AMF_Element; To : AMF.Internals.AMF_Element); -- MessageType => MessageType::referredOperation -- OperationCallExp => OperationCallExp::referredOperation function Internal_Get_Referred_Property (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Element; procedure Internal_Set_Referred_Property (Self : AMF.Internals.AMF_Element; To : AMF.Internals.AMF_Element); -- PropertyCallExp => PropertyCallExp::referredProperty function Internal_Get_Referred_Signal (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Element; procedure Internal_Set_Referred_Signal (Self : AMF.Internals.AMF_Element; To : AMF.Internals.AMF_Element); -- MessageType => MessageType::referredSignal function Internal_Get_Referred_State (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Element; procedure Internal_Set_Referred_State (Self : AMF.Internals.AMF_Element; To : AMF.Internals.AMF_Element); -- StateExp => StateExp::referredState function Internal_Get_Referred_Type (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Element; procedure Internal_Set_Referred_Type (Self : AMF.Internals.AMF_Element; To : AMF.Internals.AMF_Element); -- TypeExp => TypeExp::referredType function Internal_Get_Referred_Variable (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Element; procedure Internal_Set_Referred_Variable (Self : AMF.Internals.AMF_Element; To : AMF.Internals.AMF_Element); -- VariableExp => VariableExp::referredVariable function Internal_Get_Representation (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Element; procedure Internal_Set_Representation (Self : AMF.Internals.AMF_Element; To : AMF.Internals.AMF_Element); -- AnyType => Classifier::representation -- BagType => Classifier::representation -- CollectionType => Classifier::representation -- InvalidType => Classifier::representation -- MessageType => Classifier::representation -- OrderedSetType => Classifier::representation -- SequenceType => Classifier::representation -- SetType => Classifier::representation -- TemplateParameterType => Classifier::representation -- TupleType => Classifier::representation -- VoidType => Classifier::representation function Internal_Get_Represented_Parameter (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Element; procedure Internal_Set_Represented_Parameter (Self : AMF.Internals.AMF_Element; To : AMF.Internals.AMF_Element); -- Variable => Variable::representedParameter function Internal_Get_Result (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Element; -- ExpressionInOcl => OpaqueExpression::result -- IterateExp => IterateExp::result function Internal_Get_Result_Variable (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Element; procedure Internal_Set_Result_Variable (Self : AMF.Internals.AMF_Element; To : AMF.Internals.AMF_Element); -- ExpressionInOcl => ExpressionInOcl::resultVariable function Internal_Get_Sent_Signal (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Element; procedure Internal_Set_Sent_Signal (Self : AMF.Internals.AMF_Element; To : AMF.Internals.AMF_Element); -- MessageExp => MessageExp::sentSignal function Internal_Get_Source (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Element; procedure Internal_Set_Source (Self : AMF.Internals.AMF_Element; To : AMF.Internals.AMF_Element); -- AssociationClassCallExp => CallExp::source -- IterateExp => CallExp::source -- IteratorExp => CallExp::source -- OperationCallExp => CallExp::source -- PropertyCallExp => CallExp::source function Internal_Get_Specification (Self : AMF.Internals.AMF_Element) return Matreshka.Internals.Strings.Shared_String_Access; procedure Internal_Set_Specification (Self : AMF.Internals.AMF_Element; To : Matreshka.Internals.Strings.Shared_String_Access); -- TemplateParameterType => TemplateParameterType::specification function Internal_Get_String_Symbol (Self : AMF.Internals.AMF_Element) return Matreshka.Internals.Strings.Shared_String_Access; procedure Internal_Set_String_Symbol (Self : AMF.Internals.AMF_Element; To : Matreshka.Internals.Strings.Shared_String_Access); -- StringLiteralExp => StringLiteralExp::stringSymbol function Internal_Get_Substitution (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Collection_Of_Element; -- AnyType => Classifier::substitution -- BagType => Classifier::substitution -- CollectionType => Classifier::substitution -- InvalidType => Classifier::substitution -- MessageType => Classifier::substitution -- OrderedSetType => Classifier::substitution -- SequenceType => Classifier::substitution -- SetType => Classifier::substitution -- TemplateParameterType => Classifier::substitution -- TupleType => Classifier::substitution -- VoidType => Classifier::substitution function Internal_Get_Target (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Element; procedure Internal_Set_Target (Self : AMF.Internals.AMF_Element; To : AMF.Internals.AMF_Element); -- MessageExp => MessageExp::target function Internal_Get_Template_Binding (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Collection_Of_Element; -- AnyType => TemplateableElement::templateBinding -- BagType => TemplateableElement::templateBinding -- CollectionType => TemplateableElement::templateBinding -- InvalidType => TemplateableElement::templateBinding -- MessageType => TemplateableElement::templateBinding -- OrderedSetType => TemplateableElement::templateBinding -- SequenceType => TemplateableElement::templateBinding -- SetType => TemplateableElement::templateBinding -- TemplateParameterType => TemplateableElement::templateBinding -- TupleType => TemplateableElement::templateBinding -- VoidType => TemplateableElement::templateBinding function Internal_Get_Template_Parameter (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Element; procedure Internal_Set_Template_Parameter (Self : AMF.Internals.AMF_Element; To : AMF.Internals.AMF_Element); -- AnyType => Classifier::templateParameter -- BagType => Classifier::templateParameter -- CollectionType => Classifier::templateParameter -- ExpressionInOcl => ParameterableElement::templateParameter -- InvalidType => Classifier::templateParameter -- MessageType => Classifier::templateParameter -- OrderedSetType => Classifier::templateParameter -- SequenceType => Classifier::templateParameter -- SetType => Classifier::templateParameter -- TemplateParameterType => Classifier::templateParameter -- TupleType => Classifier::templateParameter -- VoidType => Classifier::templateParameter function Internal_Get_Then_Expression (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Element; procedure Internal_Set_Then_Expression (Self : AMF.Internals.AMF_Element; To : AMF.Internals.AMF_Element); -- IfExp => IfExp::thenExpression function Internal_Get_Type (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Element; procedure Internal_Set_Type (Self : AMF.Internals.AMF_Element; To : AMF.Internals.AMF_Element); -- AssociationClassCallExp => TypedElement::type -- BooleanLiteralExp => TypedElement::type -- CollectionItem => TypedElement::type -- CollectionLiteralExp => TypedElement::type -- CollectionRange => TypedElement::type -- EnumLiteralExp => TypedElement::type -- ExpressionInOcl => TypedElement::type -- IfExp => TypedElement::type -- IntegerLiteralExp => TypedElement::type -- InvalidLiteralExp => TypedElement::type -- IterateExp => TypedElement::type -- IteratorExp => TypedElement::type -- LetExp => TypedElement::type -- MessageExp => TypedElement::type -- NullLiteralExp => TypedElement::type -- OperationCallExp => TypedElement::type -- PropertyCallExp => TypedElement::type -- RealLiteralExp => TypedElement::type -- StateExp => TypedElement::type -- StringLiteralExp => TypedElement::type -- TupleLiteralExp => TypedElement::type -- TupleLiteralPart => TypedElement::type -- TypeExp => TypedElement::type -- UnlimitedNaturalLiteralExp => TypedElement::type -- UnspecifiedValueExp => TypedElement::type -- Variable => TypedElement::type -- VariableExp => TypedElement::type function Internal_Get_Unlimited_Natural_Symbol (Self : AMF.Internals.AMF_Element) return AMF.Unlimited_Natural; procedure Internal_Set_Unlimited_Natural_Symbol (Self : AMF.Internals.AMF_Element; To : AMF.Unlimited_Natural); -- UnlimitedNaturalLiteralExp => UnlimitedNaturalLiteralExp::unlimitedNaturalSymbol function Internal_Get_Use_Case (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Collection_Of_Element; -- AnyType => Classifier::useCase -- BagType => Classifier::useCase -- CollectionType => Classifier::useCase -- InvalidType => Classifier::useCase -- MessageType => Classifier::useCase -- OrderedSetType => Classifier::useCase -- SequenceType => Classifier::useCase -- SetType => Classifier::useCase -- TemplateParameterType => Classifier::useCase -- TupleType => Classifier::useCase -- VoidType => Classifier::useCase function Internal_Get_Variable (Self : AMF.Internals.AMF_Element) return AMF.Internals.AMF_Element; procedure Internal_Set_Variable (Self : AMF.Internals.AMF_Element; To : AMF.Internals.AMF_Element); -- LetExp => LetExp::variable function Internal_Get_Visibility (Self : AMF.Internals.AMF_Element) return AMF.UML.Optional_UML_Visibility_Kind; procedure Internal_Set_Visibility (Self : AMF.Internals.AMF_Element; To : AMF.UML.Optional_UML_Visibility_Kind); -- AnyType => NamedElement::visibility -- AssociationClassCallExp => NamedElement::visibility -- BagType => NamedElement::visibility -- BooleanLiteralExp => NamedElement::visibility -- CollectionItem => NamedElement::visibility -- CollectionLiteralExp => NamedElement::visibility -- CollectionRange => NamedElement::visibility -- CollectionType => NamedElement::visibility -- EnumLiteralExp => NamedElement::visibility -- ExpressionInOcl => NamedElement::visibility -- IfExp => NamedElement::visibility -- IntegerLiteralExp => NamedElement::visibility -- InvalidLiteralExp => NamedElement::visibility -- InvalidType => NamedElement::visibility -- IterateExp => NamedElement::visibility -- IteratorExp => NamedElement::visibility -- LetExp => NamedElement::visibility -- MessageExp => NamedElement::visibility -- MessageType => NamedElement::visibility -- NullLiteralExp => NamedElement::visibility -- OperationCallExp => NamedElement::visibility -- OrderedSetType => NamedElement::visibility -- PropertyCallExp => NamedElement::visibility -- RealLiteralExp => NamedElement::visibility -- SequenceType => NamedElement::visibility -- SetType => NamedElement::visibility -- StateExp => NamedElement::visibility -- StringLiteralExp => NamedElement::visibility -- TemplateParameterType => NamedElement::visibility -- TupleLiteralExp => NamedElement::visibility -- TupleLiteralPart => NamedElement::visibility -- TupleType => NamedElement::visibility -- TypeExp => NamedElement::visibility -- UnlimitedNaturalLiteralExp => NamedElement::visibility -- UnspecifiedValueExp => NamedElement::visibility -- Variable => NamedElement::visibility -- VariableExp => NamedElement::visibility -- VoidType => NamedElement::visibility end AMF.Internals.Tables.OCL_Attributes;
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2021 onox <denkpadje@gmail.com> -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in writing, software -- distributed under the License is distributed on an "AS IS" BASIS, -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. package Orka.SIMD.SSE2.Integers.Logical is pragma Pure; function And_Not (Left, Right : m128i) return m128i; function "and" (Left, Right : m128i) return m128i; function "or" (Left, Right : m128i) return m128i; function "xor" (Left, Right : m128i) return m128i; end Orka.SIMD.SSE2.Integers.Logical;
------------------------------------------------------------------------------ -- -- -- Ada User Repository Annex (AURA) -- -- ANNEXI-STRAYLINE Reference Implementation -- -- -- -- Command Line Interface -- -- -- -- ------------------------------------------------------------------------ -- -- -- -- Copyright (C) 2020, ANNEXI-STRAYLINE Trans-Human Ltd. -- -- All rights reserved. -- -- -- -- Original Contributors: -- -- * Richard Wai (ANNEXI-STRAYLINE) -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions are -- -- met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in -- -- the documentation and/or other materials provided with the -- -- distribution. -- -- -- -- * Neither the name of the copyright holder nor the names of its -- -- contributors may be used to endorse or promote products derived -- -- from this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A -- -- PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -- -- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -- -- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -- -- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -- -- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -- -- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ with Ada.Directories; with Ada.Streams.Stream_IO; with Ada.Strings.UTF_Encoding.Wide_Wide_Strings; with Registrar.Source_Files; with Unicode.UTF8_Stream_Decoder; with Unicode.Case_Folding.Simple; separate (Configuration) -- Step 2 - we are creating a new configuration unit from the manifest. -- -- This means both that the registry does not contain a unit corresponding to -- the configuration unit, and that the registry does cointain a unit -- corresponding to the manifest. We need to process the entire manifest unit. -- -- The biggest part of this job is replacing the manifest's package name from -- Target.AURA to AURA.Target. We will do text substituation, but we need to -- comply with the Ada standard to 1) allow unicode (utf-8) identifiers, and -- 2) apply case-folding. -- -- The Ada standard requires all content to be in Normalization Form 'C' (202X) -- but we don't need to check for that here as the Ada Lexical Parser will -- pick that out during unit entry procedure Step_2 (Target: in out Subsystem) is use type Registrar.Source_Files.Source_File_Access; -- These are already case folded Manifest_Name: constant Unit_Name := Manifest_Unit_Name (Target); Config_Name : constant Unit_Name := Config_Unit_Name (Target); -- The manifest has to exist before a call to Step_2, so we don't need -- to worry about pulling it out of the registry. Manifest: constant Library_Unit := Reg_Qs.Lookup_Unit (Manifest_Name); -- The basic gyst is: we are reading the manifest as a utf-8 stream, -- looking for Expected_Name, and if we find it (we should at least -- one), we replace that in the output stream with Substitute name. -- Everything else passes through unchanged. Expected_Name: constant Wide_Wide_String := Manifest_Name.To_String; Substitute_Name: constant Wide_Wide_String := Config_Name.To_String; Scan_Buffer : Wide_Wide_String (1 .. Expected_Name'Length); Match_Buffer: Wide_Wide_String (Scan_Buffer'Range); Match_Depth: Positive; procedure Find_And_Replace (In_Stream : not null access Ada.Streams.Root_Stream_Type'Class; Out_Stream: not null access Ada.Streams.Root_Stream_Type'Class) is subtype UTF_8_String is Ada.Strings.UTF_Encoding.UTF_8_String; use type UTF_8_String; package UTF_8 renames Ada.Strings.UTF_Encoding.Wide_Wide_Strings; function Decode_Next (UTF8_Stream: not null access Ada.Streams.Root_Stream_Type'Class := In_Stream) return Wide_Wide_Character renames Unicode.UTF8_Stream_Decoder.Decode_Next; begin Match_Depth := Scan_Buffer'First; loop -- The Scan_Buffer will hold the source while we see if it matches -- the expected name, however to match accoring to the Ada rules, -- we need to first do simple case folding before checking for a -- match. Since we don't want to apply that case folding to the -- source itself, we need to have a parallel case-folded buffer Scan_Buffer(Match_Depth) := Decode_Next; Match_Buffer(Match_Depth) := Unicode.Case_Folding.Simple (Scan_Buffer(Match_Depth)); if Match_Buffer(Match_Depth) = Expected_Name(Match_Depth) then if Match_Depth = Scan_Buffer'Last then -- It is not really worth the effort to check for weird things -- showing up where this naieve replace might mangle the middle -- of something that happens to match. It should be rare enough -- (especially in a manifest) to not often cause a problem. -- -- The Ada compiler will almost certainly spot it later. -- -- If we wanted to check for that, we'd really want to bring -- in the Ada lexical parser since we really should not be -- handling the various rules ourselves and creating redundant -- code. However using the parser would mess up our stream. -- -- We considered possibly "rewriting" the unit via the parser, -- but since the Configuration unit really should be human -- -readable and human-changable, this seemed like the wrong -- approach. -- -- If this really becomes a problem, we can always make -- improvements. UTF_8_String'Write (Out_Stream, UTF_8.Encode (Substitute_Name)); Match_Depth := Scan_Buffer'First; else -- Keep trying Match_Depth := Match_Depth + 1; end if; else -- Flush buffer UTF_8_String'Write (Out_Stream, UTF_8.Encode (Scan_Buffer(Scan_Buffer'First .. Match_Depth))); Match_Depth := Scan_Buffer'First; end if; end loop; exception when Ada.Streams.Stream_IO.End_Error => -- The Ada lexical parser on entry is not used to dig down through the -- whole spec, lets do a little check for funny business while we're -- at it (we shouldn't get here if we were in the middle of the -- Expected_Name) Assert (Check => Match_Depth = Scan_Buffer'First, Message => "Unexpected end of manifest"); return; when others => raise; end Find_And_Replace; procedure Register (Name: in String) is use Ada.Directories; Search : Search_Type; New_Reg: Directory_Entry_Type; begin Start_Search (Search => Search, Directory => Current_Directory, Pattern => Name); Assert (Check => More_Entries (Search), Message => "Error registering configuration unit - cannot find " & "generated file " & Name & '!'); Get_Next_Entry (Search => Search, Directory_Entry => New_Reg); Registrar.Registration.Enter_Unit (New_Reg); End_Search (Search); end Register; begin -- The following could be generic, but the parameters would be pretty -- complex, and the code is so simple, it doesn't seem worth it. -- Spec declare use Ada.Streams.Stream_IO; use Registrar.Source_Files; Spec_Name: constant String := "aura-" & Target.Name.To_UTF8_String & ".ads"; File : File_Type; M_Stream : aliased Source_Stream := Checkout_Read_Stream (Manifest.Spec_File); begin Create (File => File, Mode => Out_File, Name => Spec_Name); Find_And_Replace (In_Stream => M_Stream'Access, Out_Stream => Stream (File)); Close (File); Register (Spec_Name); end; if Manifest.Body_File /= null then -- Body declare use Ada.Streams.Stream_IO; use Registrar.Source_Files; Body_Name: constant String := "aura-" & Target.Name.To_UTF8_String & ".adb"; File : File_Type; M_Stream : aliased Source_Stream := Checkout_Read_Stream (Manifest.Body_File); begin Create (File => File, Mode => Out_File, Name => Body_Name); Find_And_Replace (In_Stream => M_Stream'Access, Out_Stream => Stream (File)); Close (File); Register (Body_Name); end; end if; -- Next is Step 3, but we need to wait for the registrar to register the -- configuration unit before we can process it, so we need to defer -- Step_3 Workers.Disable_Completion_Reports; Configuration_Progress.Increment_Total_Items; Workers.Defer_Order (Order => Step_3a_Deferral'(Tracker => Configuration_Progress'Access, Target => Target), Wait_Tracker => Registrar.Registration.Entry_Progress'Access); end Step_2;
-- This package has been generated automatically by GNATtest. -- Do not edit any part of it, see GNATtest documentation for more details. -- begin read only with Gnattest_Generated; package Messages.Test_Data.Tests.Messages_Container.Test_Data.Tests is type Test is new GNATtest_Generated.GNATtest_Standard.Messages.Test_Data .Tests .Messages_Container .Test_Data .New_Test with null record; end Messages.Test_Data.Tests.Messages_Container.Test_Data.Tests; -- end read only
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- G N A T . C G I -- -- -- -- B o d y -- -- -- -- Copyright (C) 2001-2005, AdaCore -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 2, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -- -- for more details. You should have received a copy of the GNU General -- -- Public License distributed with GNAT; see file COPYING. If not, write -- -- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, -- -- Boston, MA 02110-1301, USA. -- -- -- -- As a special exception, if other files instantiate generics from this -- -- unit, or you link this unit with other files to produce an executable, -- -- this unit does not by itself cause the resulting executable to be -- -- covered by the GNU General Public License. This exception does not -- -- however invalidate any other reasons why the executable file might be -- -- covered by the GNU Public License. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ with Ada.Text_IO; with Ada.Strings.Fixed; with Ada.Characters.Handling; with Ada.Strings.Maps; with GNAT.OS_Lib; with GNAT.Table; package body GNAT.CGI is use Ada; Valid_Environment : Boolean := True; -- This boolean will be set to False if the initialization was not -- completed correctly. It must be set to true there because the -- Initialize routine (called during elaboration) will use some of the -- services exported by this unit. Current_Method : Method_Type; -- This is the current method used to pass CGI parameters Header_Sent : Boolean := False; -- Will be set to True when the header will be sent -- Key/Value table declaration type String_Access is access String; type Key_Value is record Key : String_Access; Value : String_Access; end record; package Key_Value_Table is new Table (Key_Value, Positive, 1, 1, 50); ----------------------- -- Local subprograms -- ----------------------- procedure Check_Environment; pragma Inline (Check_Environment); -- This procedure will raise Data_Error if Valid_Environment is False procedure Initialize; -- Initialize CGI package by reading the runtime environment. This -- procedure is called during elaboration. All exceptions raised during -- this procedure are deferred. -------------------- -- Argument_Count -- -------------------- function Argument_Count return Natural is begin Check_Environment; return Key_Value_Table.Last; end Argument_Count; ----------------------- -- Check_Environment -- ----------------------- procedure Check_Environment is begin if not Valid_Environment then raise Data_Error; end if; end Check_Environment; ------------ -- Decode -- ------------ function Decode (S : String) return String is Result : String (S'Range); K : Positive := S'First; J : Positive := Result'First; begin while K <= S'Last loop if K + 2 <= S'Last and then S (K) = '%' and then Characters.Handling.Is_Hexadecimal_Digit (S (K + 1)) and then Characters.Handling.Is_Hexadecimal_Digit (S (K + 2)) then -- Here we have '%HH' which is an encoded character where 'HH' is -- the character number in hexadecimal. Result (J) := Character'Val (Natural'Value ("16#" & S (K + 1 .. K + 2) & '#')); K := K + 3; else Result (J) := S (K); K := K + 1; end if; J := J + 1; end loop; return Result (Result'First .. J - 1); end Decode; ------------------------- -- For_Every_Parameter -- ------------------------- procedure For_Every_Parameter is Quit : Boolean; begin Check_Environment; for K in 1 .. Key_Value_Table.Last loop Quit := False; Action (Key_Value_Table.Table (K).Key.all, Key_Value_Table.Table (K).Value.all, K, Quit); exit when Quit; end loop; end For_Every_Parameter; ---------------- -- Initialize -- ---------------- procedure Initialize is Request_Method : constant String := Characters.Handling.To_Upper (Metavariable (CGI.Request_Method)); procedure Initialize_GET; -- Read CGI parameters for a GET method. In this case the parameters -- are passed into QUERY_STRING environment variable. procedure Initialize_POST; -- Read CGI parameters for a POST method. In this case the parameters -- are passed with the standard input. The total number of characters -- for the data is passed in CONTENT_LENGTH environment variable. procedure Set_Parameter_Table (Data : String); -- Parse the parameter data and set the parameter table -------------------- -- Initialize_GET -- -------------------- procedure Initialize_GET is Data : constant String := Metavariable (Query_String); begin Current_Method := Get; if Data /= "" then Set_Parameter_Table (Data); end if; end Initialize_GET; --------------------- -- Initialize_POST -- --------------------- procedure Initialize_POST is Content_Length : constant Natural := Natural'Value (Metavariable (CGI.Content_Length)); Data : String (1 .. Content_Length); begin Current_Method := Post; if Content_Length /= 0 then Text_IO.Get (Data); Set_Parameter_Table (Data); end if; end Initialize_POST; ------------------------- -- Set_Parameter_Table -- ------------------------- procedure Set_Parameter_Table (Data : String) is procedure Add_Parameter (K : Positive; P : String); -- Add a single parameter into the table at index K. The parameter -- format is "key=value". Count : constant Positive := 1 + Strings.Fixed.Count (Data, Strings.Maps.To_Set ("&")); -- Count is the number of parameters in the string. Parameters are -- separated by ampersand character. Index : Positive := Data'First; Amp : Natural; ------------------- -- Add_Parameter -- ------------------- procedure Add_Parameter (K : Positive; P : String) is Equal : constant Natural := Strings.Fixed.Index (P, "="); begin if Equal = 0 then raise Data_Error; else Key_Value_Table.Table (K) := Key_Value'(new String'(Decode (P (P'First .. Equal - 1))), new String'(Decode (P (Equal + 1 .. P'Last)))); end if; end Add_Parameter; -- Start of processing for Set_Parameter_Table begin Key_Value_Table.Set_Last (Count); for K in 1 .. Count - 1 loop Amp := Strings.Fixed.Index (Data (Index .. Data'Last), "&"); Add_Parameter (K, Data (Index .. Amp - 1)); Index := Amp + 1; end loop; -- add last parameter Add_Parameter (Count, Data (Index .. Data'Last)); end Set_Parameter_Table; -- Start of processing for Initialize begin if Request_Method = "GET" then Initialize_GET; elsif Request_Method = "POST" then Initialize_POST; else Valid_Environment := False; end if; exception when others => -- If we have an exception during initialization of this unit we -- just declare it invalid. Valid_Environment := False; end Initialize; --------- -- Key -- --------- function Key (Position : Positive) return String is begin Check_Environment; if Position <= Key_Value_Table.Last then return Key_Value_Table.Table (Position).Key.all; else raise Parameter_Not_Found; end if; end Key; ---------------- -- Key_Exists -- ---------------- function Key_Exists (Key : String) return Boolean is begin Check_Environment; for K in 1 .. Key_Value_Table.Last loop if Key_Value_Table.Table (K).Key.all = Key then return True; end if; end loop; return False; end Key_Exists; ------------------ -- Metavariable -- ------------------ function Metavariable (Name : Metavariable_Name; Required : Boolean := False) return String is function Get_Environment (Variable_Name : String) return String; -- Returns the environment variable content --------------------- -- Get_Environment -- --------------------- function Get_Environment (Variable_Name : String) return String is Value : OS_Lib.String_Access := OS_Lib.Getenv (Variable_Name); Result : constant String := Value.all; begin OS_Lib.Free (Value); return Result; end Get_Environment; Result : constant String := Get_Environment (Metavariable_Name'Image (Name)); -- Start of processing for Metavariable begin Check_Environment; if Result = "" and then Required then raise Parameter_Not_Found; else return Result; end if; end Metavariable; ------------------------- -- Metavariable_Exists -- ------------------------- function Metavariable_Exists (Name : Metavariable_Name) return Boolean is begin Check_Environment; if Metavariable (Name) = "" then return False; else return True; end if; end Metavariable_Exists; ------------ -- Method -- ------------ function Method return Method_Type is begin Check_Environment; return Current_Method; end Method; -------- -- Ok -- -------- function Ok return Boolean is begin return Valid_Environment; end Ok; ---------------- -- Put_Header -- ---------------- procedure Put_Header (Header : String := Default_Header; Force : Boolean := False) is begin if Header_Sent = False or else Force then Check_Environment; Text_IO.Put_Line (Header); Text_IO.New_Line; Header_Sent := True; end if; end Put_Header; --------- -- URL -- --------- function URL return String is function Exists_And_Not_80 (Server_Port : String) return String; -- Returns ':' & Server_Port if Server_Port is not "80" and the empty -- string otherwise (80 is the default sever port). ----------------------- -- Exists_And_Not_80 -- ----------------------- function Exists_And_Not_80 (Server_Port : String) return String is begin if Server_Port = "80" then return ""; else return ':' & Server_Port; end if; end Exists_And_Not_80; -- Start of processing for URL begin Check_Environment; return "http://" & Metavariable (Server_Name) & Exists_And_Not_80 (Metavariable (Server_Port)) & Metavariable (Script_Name); end URL; ----------- -- Value -- ----------- function Value (Key : String; Required : Boolean := False) return String is begin Check_Environment; for K in 1 .. Key_Value_Table.Last loop if Key_Value_Table.Table (K).Key.all = Key then return Key_Value_Table.Table (K).Value.all; end if; end loop; if Required then raise Parameter_Not_Found; else return ""; end if; end Value; ----------- -- Value -- ----------- function Value (Position : Positive) return String is begin Check_Environment; if Position <= Key_Value_Table.Last then return Key_Value_Table.Table (Position).Value.all; else raise Parameter_Not_Found; end if; end Value; begin Initialize; end GNAT.CGI;
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2017, AdaCore -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions are -- -- met: -- -- 1. Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- 2. Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in -- -- the documentation and/or other materials provided with the -- -- distribution. -- -- 3. Neither the name of the copyright holder nor the names of its -- -- contributors may be used to endorse or promote products derived -- -- from this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -- -- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -- -- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -- -- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -- -- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -- -- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ with STM32_SVD.SDMMC; -- SVD files for the STM32F4 and STM32F7 have different names for the SDMMC -- device (SDIO or SDMMC). This provides a common name for the SVD package. package SDMMC_SVD renames STM32_SVD.SDMMC;
------------------------------------------------------------------------------ -- -- -- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- S Y S T E M - S T A C K _ U S A G E -- -- -- -- S p e c -- -- -- -- Copyright (C) 2004-2019, Free Software Foundation, Inc. -- -- -- -- GNARL is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNARL was developed by the GNARL team at Florida State University. -- -- Extensive contributions were provided by Ada Core Technologies, Inc. -- -- -- ------------------------------------------------------------------------------ with System; with System.Storage_Elements; with System.Address_To_Access_Conversions; with Interfaces; package System.Stack_Usage is pragma Preelaborate; package SSE renames System.Storage_Elements; subtype Stack_Address is SSE.Integer_Address; -- Address on the stack function To_Stack_Address (Value : System.Address) return Stack_Address renames System.Storage_Elements.To_Integer; Task_Name_Length : constant := 32; -- The maximum length of task name displayed. -- ??? Consider merging this variable with Max_Task_Image_Length. type Task_Result is record Task_Name : String (1 .. Task_Name_Length); Value : Natural; -- Amount of stack used. The value is calculated on the basis of the -- mechanism used by GNAT to allocate it, and it is NOT a precise value. Stack_Size : Natural; -- Size of the stack end record; type Result_Array_Type is array (Positive range <>) of Task_Result; type Stack_Analyzer is private; -- Type of the stack analyzer tool. It is used to fill a portion of the -- stack with Pattern, and to compute the stack used after some execution. -- Usage: -- A typical use of the package is something like: -- A : Stack_Analyzer; -- task T is -- pragma Storage_Size (A_Storage_Size); -- end T; -- [...] -- Bottom_Of_Stack : aliased Integer; -- -- Bottom_Of_Stack'Address will be used as an approximation of -- -- the bottom of stack. A good practise is to avoid allocating -- -- other local variables on this stack, as it would degrade -- -- the quality of this approximation. -- begin -- Initialize_Analyzer (A, -- "Task t", -- A_Storage_Size, -- 0, -- A_Storage_Size - A_Guard, -- To_Stack_Address (Bottom_Of_Stack'Address)); -- Fill_Stack (A); -- Some_User_Code; -- Compute_Result (A); -- Report_Result (A); -- end T; -- Errors: -- -- We are instrumenting the code to measure the stack used by the user -- code. This method has a number of systematic errors, but several methods -- can be used to evaluate or reduce those errors. Here are those errors -- and the strategy that we use to deal with them: -- Bottom offset: -- Description: The procedure used to fill the stack with a given -- pattern will itself have a stack frame. The value of the stack -- pointer in this procedure is, therefore, different from the value -- before the call to the instrumentation procedure. -- Strategy: The user of this package should measure the bottom of stack -- before the call to Fill_Stack and pass it in parameter. The impact -- is very minor unless the stack used is very small, but in this case -- you aren't very interested by the figure. -- Instrumentation threshold at writing: -- Description: The procedure used to fill the stack with a given -- pattern will itself have a stack frame. Therefore, it will -- fill the stack after this stack frame. This part of the stack will -- appear as used in the final measure. -- Strategy: As the user passes the value of the bottom of stack to -- the instrumentation to deal with the bottom offset error, and as -- the instrumentation procedure knows where the pattern filling start -- on the stack, the difference between the two values is the minimum -- stack usage that the method can measure. If, when the results are -- computed, the pattern zone has been left untouched, we conclude -- that the stack usage is inferior to this minimum stack usage. -- Instrumentation threshold at reading: -- Description: The procedure used to read the stack at the end of the -- execution clobbers the stack by allocating its stack frame. If this -- stack frame is bigger than the total stack used by the user code at -- this point, it will increase the measured stack size. -- Strategy: We could augment this stack frame and see if it changes the -- measure. However, this error should be negligible. -- Pattern zone overflow: -- Description: The stack grows outer than the topmost bound of the -- pattern zone. In that case, the topmost region modified in the -- pattern is not the maximum value of the stack pointer during the -- execution. -- Strategy: At the end of the execution, the difference between the -- topmost memory region modified in the pattern zone and the -- topmost bound of the pattern zone can be understood as the -- biggest allocation that the method could have detect, provided -- that there is no "Untouched allocated zone" error and no "Pattern -- usage in user code" error. If no object in the user code is likely -- to have this size, this is not likely to happen. -- Pattern usage in user code: -- Description: The pattern can be found in the object of the user code. -- Therefore, the address space where this object has been allocated -- will appear as untouched. -- Strategy: Choose a pattern that is uncommon. 16#0000_0000# is the -- worst choice; 16#DEAD_BEEF# can be a good one. A good choice is an -- address which is not a multiple of 2, and which is not in the -- target address space. You can also change the pattern to see if it -- changes the measure. Note that this error *very* rarely influence -- the measure of the total stack usage: to have some influence, the -- pattern has to be used in the object that has been allocated on the -- topmost address of the used stack. -- Stack overflow: -- Description: The pattern zone does not fit on the stack. This may -- lead to an erroneous execution. -- Strategy: Specify a storage size that is bigger than the size of the -- pattern. 2 times bigger should be enough. -- Augmentation of the user stack frames: -- Description: The use of instrumentation object or procedure may -- augment the stack frame of the caller. -- Strategy: Do *not* inline the instrumentation procedures. Do *not* -- allocate the Stack_Analyzer object on the stack. -- Untouched allocated zone: -- Description: The user code may allocate objects that it will never -- touch. In that case, the pattern will not be changed. -- Strategy: There are no way to detect this error. Fortunately, this -- error is really rare, and it is most probably a bug in the user -- code, e.g. some uninitialized variable. It is (most of the time) -- harmless: it influences the measure only if the untouched allocated -- zone happens to be located at the topmost value of the stack -- pointer for the whole execution. procedure Initialize (Buffer_Size : Natural); pragma Export (C, Initialize, "__gnat_stack_usage_initialize"); -- Initializes the size of the buffer that stores the results. Only the -- first Buffer_Size results are stored. Any results that do not fit in -- this buffer will be displayed on the fly. procedure Fill_Stack (Analyzer : in out Stack_Analyzer); -- Fill an area of the stack with the pattern Analyzer.Pattern. The size -- of this area is Analyzer.Size. After the call to this procedure, -- the memory will look like that: -- -- Stack growing -- ----------------------------------------------------------------------> -- |<--------------------->|<----------------------------------->| -- | Stack frames to | Memory filled with Analyzer.Pattern | -- | Fill_Stack | | -- ^ | ^ -- Analyzer.Stack_Base | Analyzer.Pattern_Limit -- ^ -- Analyzer.Pattern_Limit +/- Analyzer.Pattern_Size -- procedure Initialize_Analyzer (Analyzer : in out Stack_Analyzer; Task_Name : String; Stack_Size : Natural; Stack_Base : Stack_Address; Pattern_Size : Natural; Pattern : Interfaces.Unsigned_32 := 16#DEAD_BEEF#); -- Should be called before any use of a Stack_Analyzer, to initialize it. -- Max_Pattern_Size is the size of the pattern zone, might be smaller than -- the full stack size Stack_Size in order to take into account e.g. the -- secondary stack and a guard against overflow. The actual size taken -- will be readjusted with data already used at the time the stack is -- actually filled. Is_Enabled : Boolean := False; -- When this flag is true, then stack analysis is enabled procedure Compute_Result (Analyzer : in out Stack_Analyzer); -- Read the pattern zone and deduce the stack usage. It should be called -- from the same frame as Fill_Stack. If Analyzer.Probe is not null, an -- array of Unsigned_32 with Analyzer.Probe elements is allocated on -- Compute_Result's stack frame. Probe can be used to detect the error: -- "instrumentation threshold at reading". See above. After the call -- to this procedure, the memory will look like: -- -- Stack growing -- -----------------------------------------------------------------------> -- |<---------------------->|<-------------->|<--------->|<--------->| -- | Stack frames | Array of | used | Memory | -- | to Compute_Result | Analyzer.Probe | during | filled | -- | | elements | the | with | -- | | | execution | pattern | -- | | | -- |<----------------------------------------------------> | -- Stack used ^ -- Pattern_Limit procedure Report_Result (Analyzer : Stack_Analyzer); -- Store the results of the computation in memory, at the address -- corresponding to the symbol __gnat_stack_usage_results. This is not -- done inside Compute_Result in order to use as less stack as possible -- within a task. procedure Output_Results; -- Print the results computed so far on the standard output. Should be -- called when all tasks are dead. pragma Export (C, Output_Results, "__gnat_stack_usage_output_results"); private package Unsigned_32_Addr is new System.Address_To_Access_Conversions (Interfaces.Unsigned_32); subtype Pattern_Type is Interfaces.Unsigned_32; Bytes_Per_Pattern : constant := Pattern_Type'Object_Size / Storage_Unit; type Stack_Analyzer is record Task_Name : String (1 .. Task_Name_Length); -- Name of the task Stack_Base : Stack_Address; -- Address of the base of the stack, as given by the caller of -- Initialize_Analyzer. Stack_Size : Natural; -- Entire size of the analyzed stack Pattern_Size : Natural; -- Size of the pattern zone Pattern : Pattern_Type; -- Pattern used to recognize untouched memory Pattern_Limit : Stack_Address; -- Bound of the pattern area farthest to the base Topmost_Touched_Mark : Stack_Address; -- Topmost address of the pattern area whose value it is pointing -- at has been modified during execution. If the systematic error are -- compensated, it is the topmost value of the stack pointer during -- the execution. Pattern_Overlay_Address : System.Address; -- Address of the stack abstraction object we overlay over a -- task's real stack, typically a pattern-initialized array. Result_Id : Positive; -- Id of the result. If less than value given to gnatbind -u corresponds -- to the location in the result array of result for the current task. end record; Environment_Task_Analyzer : Stack_Analyzer; Compute_Environment_Task : Boolean; type Result_Array_Ptr is access all Result_Array_Type; Result_Array : Result_Array_Ptr; pragma Export (C, Result_Array, "__gnat_stack_usage_results"); -- Exported in order to have an easy accessible symbol in when debugging Next_Id : Positive := 1; -- Id of the next stack analyzer function Stack_Size (SP_Low : Stack_Address; SP_High : Stack_Address) return Natural; pragma Inline (Stack_Size); -- Return the size of a portion of stack delimited by SP_High and SP_Low -- (), i.e. the difference between SP_High and SP_Low. The storage element -- pointed by SP_Low is not included in the size. Inlined to reduce the -- size of the stack used by the instrumentation code. end System.Stack_Usage;
-------------------------------------------------------------------------------------------------------------------- -- 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.Inputs.Joysticks.Game_Controllers.Makers -------------------------------------------------------------------------------------------------------------------- package SDL.Inputs.Joysticks.Game_Controllers.Makers is pragma Preelaborate; function Create (Device : in Devices) return Game_Controller; procedure Create (Device : in Devices; Actual_Controller : out Game_Controller); end SDL.Inputs.Joysticks.Game_Controllers.Makers;
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- S Y S T E M . G L O B A L _ L O C K S -- -- -- -- S p e c -- -- -- -- Copyright (C) 1999-2006, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 2, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -- -- for more details. You should have received a copy of the GNU General -- -- Public License distributed with GNAT; see file COPYING. If not, write -- -- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, -- -- Boston, MA 02110-1301, USA. -- -- -- -- As a special exception, if other files instantiate generics from this -- -- unit, or you link this unit with other files to produce an executable, -- -- this unit does not by itself cause the resulting executable to be -- -- covered by the GNU General Public License. This exception does not -- -- however invalidate any other reasons why the executable file might be -- -- covered by the GNU Public License. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ -- This package contains the necessary routines to provide -- reliable system wide locking capability. package System.Global_Locks is Lock_Error : exception; -- Exception raised if a request cannot be executed on a lock type Lock_Type is private; -- Such a lock is a global lock between partitions. This lock is -- uniquely defined between the partitions because of its name. Null_Lock : constant Lock_Type; -- This needs comments ??? procedure Create_Lock (Lock : out Lock_Type; Name : String); -- Create or retrieve a global lock for the current partition using -- its Name. procedure Acquire_Lock (Lock : in out Lock_Type); -- If the lock cannot be acquired because someone already owns it, this -- procedure is supposed to wait and retry forever. procedure Release_Lock (Lock : in out Lock_Type); private type Lock_Type is new Natural; Null_Lock : constant Lock_Type := 0; end System.Global_Locks;
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Lexical_Elements; with Program.Elements.Defining_Identifiers; with Program.Element_Visitors; package Program.Nodes.Defining_Identifiers is pragma Preelaborate; type Defining_Identifier is new Program.Nodes.Node and Program.Elements.Defining_Identifiers.Defining_Identifier and Program.Elements.Defining_Identifiers.Defining_Identifier_Text with private; function Create (Identifier_Token : not null Program.Lexical_Elements .Lexical_Element_Access) return Defining_Identifier; type Implicit_Defining_Identifier is new Program.Nodes.Node and Program.Elements.Defining_Identifiers.Defining_Identifier with private; function Create (Is_Part_Of_Implicit : Boolean := False; Is_Part_Of_Inherited : Boolean := False; Is_Part_Of_Instance : Boolean := False) return Implicit_Defining_Identifier with Pre => Is_Part_Of_Implicit or Is_Part_Of_Inherited or Is_Part_Of_Instance; private type Base_Defining_Identifier is abstract new Program.Nodes.Node and Program.Elements.Defining_Identifiers.Defining_Identifier with null record; procedure Initialize (Self : in out Base_Defining_Identifier'Class); overriding procedure Visit (Self : not null access Base_Defining_Identifier; Visitor : in out Program.Element_Visitors.Element_Visitor'Class); overriding function Is_Defining_Identifier (Self : Base_Defining_Identifier) return Boolean; overriding function Is_Defining_Name (Self : Base_Defining_Identifier) return Boolean; type Defining_Identifier is new Base_Defining_Identifier and Program.Elements.Defining_Identifiers.Defining_Identifier_Text with record Identifier_Token : not null Program.Lexical_Elements .Lexical_Element_Access; end record; overriding function To_Defining_Identifier_Text (Self : in out Defining_Identifier) return Program.Elements.Defining_Identifiers .Defining_Identifier_Text_Access; overriding function Identifier_Token (Self : Defining_Identifier) return not null Program.Lexical_Elements.Lexical_Element_Access; overriding function Image (Self : Defining_Identifier) return Text; type Implicit_Defining_Identifier is new Base_Defining_Identifier with record Is_Part_Of_Implicit : Boolean; Is_Part_Of_Inherited : Boolean; Is_Part_Of_Instance : Boolean; end record; overriding function To_Defining_Identifier_Text (Self : in out Implicit_Defining_Identifier) return Program.Elements.Defining_Identifiers .Defining_Identifier_Text_Access; overriding function Is_Part_Of_Implicit (Self : Implicit_Defining_Identifier) return Boolean; overriding function Is_Part_Of_Inherited (Self : Implicit_Defining_Identifier) return Boolean; overriding function Is_Part_Of_Instance (Self : Implicit_Defining_Identifier) return Boolean; overriding function Image (Self : Implicit_Defining_Identifier) return Text; end Program.Nodes.Defining_Identifiers;
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- I N T E R F A C E S . C _ S T R E A M S -- -- -- -- S p e c -- -- -- -- Copyright (C) 1995-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. -- -- -- ------------------------------------------------------------------------------ -- This package is a thin binding to selected functions in the C -- library that provide a complete interface for handling C streams. with System.CRTL; package Interfaces.C_Streams is pragma Preelaborate; subtype chars is System.CRTL.chars; subtype FILEs is System.CRTL.FILEs; subtype int is System.CRTL.int; subtype long is System.CRTL.long; subtype size_t is System.CRTL.size_t; subtype voids is System.Address; NULL_Stream : constant FILEs; -- Value returned (NULL in C) to indicate an fdopen/fopen/tmpfile error ---------------------------------- -- Constants Defined in stdio.h -- ---------------------------------- EOF : constant int; -- Used by a number of routines to indicate error or end of file IOFBF : constant int; IOLBF : constant int; IONBF : constant int; -- Used to indicate buffering mode for setvbuf call L_tmpnam : constant int; -- Maximum length of file name that can be returned by tmpnam SEEK_CUR : constant int; SEEK_END : constant int; SEEK_SET : constant int; -- Used to indicate origin for fseek call function stdin return FILEs; function stdout return FILEs; function stderr return FILEs; -- Streams associated with standard files -------------------------- -- Standard C functions -- -------------------------- -- The functions selected below are ones that are available in DOS, -- OS/2, UNIX and Xenix (but not necessarily in ANSI C). These are -- very thin interfaces which copy exactly the C headers. For more -- documentation on these functions, see the Microsoft C "Run-Time -- Library Reference" (Microsoft Press, 1990, ISBN 1-55615-225-6), -- which includes useful information on system compatibility. procedure clearerr (stream : FILEs) renames System.CRTL.clearerr; function fclose (stream : FILEs) return int renames System.CRTL.fclose; function fdopen (handle : int; mode : chars) return FILEs renames System.CRTL.fdopen; function feof (stream : FILEs) return int; function ferror (stream : FILEs) return int; function fflush (stream : FILEs) return int renames System.CRTL.fflush; function fgetc (stream : FILEs) return int renames System.CRTL.fgetc; function fgets (strng : chars; n : int; stream : FILEs) return chars renames System.CRTL.fgets; function fileno (stream : FILEs) return int; function fopen (filename : chars; Mode : chars) return FILEs renames System.CRTL.fopen; -- Note: to maintain target independence, use text_translation_required, -- a boolean variable defined in a-sysdep.c to deal with the target -- dependent text translation requirement. If this variable is set, -- then b/t should be appended to the standard mode argument to set -- the text translation mode off or on as required. function fputc (C : int; stream : FILEs) return int renames System.CRTL.fputc; function fputs (Strng : chars; Stream : FILEs) return int renames System.CRTL.fputs; function fread (buffer : voids; size : size_t; count : size_t; stream : FILEs) return size_t; function fread (buffer : voids; index : size_t; size : size_t; count : size_t; stream : FILEs) return size_t; -- Same as normal fread, but has a parameter 'index' that indicates -- the starting index for the read within 'buffer' (which must be the -- address of the beginning of a whole array object with an assumed -- zero base). This is needed for systems that do not support taking -- the address of an element within an array. function freopen (filename : chars; mode : chars; stream : FILEs) return FILEs renames System.CRTL.freopen; function fseek (stream : FILEs; offset : long; origin : int) return int renames System.CRTL.fseek; function ftell (stream : FILEs) return long renames System.CRTL.ftell; function fwrite (buffer : voids; size : size_t; count : size_t; stream : FILEs) return size_t; function isatty (handle : int) return int renames System.CRTL.isatty; procedure mktemp (template : chars) renames System.CRTL.mktemp; -- The return value (which is just a pointer to template) is discarded procedure rewind (stream : FILEs) renames System.CRTL.rewind; function setvbuf (stream : FILEs; buffer : chars; mode : int; size : size_t) return int; procedure tmpnam (string : chars) renames System.CRTL.tmpnam; -- The parameter must be a pointer to a string buffer of at least L_tmpnam -- bytes (the call with a null parameter is not supported). The returned -- value, which is just a copy of the input argument, is discarded. function tmpfile return FILEs renames System.CRTL.tmpfile; function ungetc (c : int; stream : FILEs) return int renames System.CRTL.ungetc; function unlink (filename : chars) return int renames System.CRTL.unlink; --------------------- -- Extra functions -- --------------------- -- These functions supply slightly thicker bindings than those above. -- They are derived from functions in the C Run-Time Library, but may -- do a bit more work than just directly calling one of the Library -- functions. function file_exists (name : chars) return int; -- Tests if given name corresponds to an existing file function is_regular_file (handle : int) return int; -- Tests if given handle is for a regular file (result 1) or for a -- non-regular file (pipe or device, result 0). --------------------------------- -- Control of Text/Binary Mode -- --------------------------------- -- If text_translation_required is true, then the following functions may -- be used to dynamically switch a file from binary to text mode or vice -- versa. These functions have no effect if text_translation_required is -- false (i.e. in normal unix mode). Use fileno to get a stream handle. procedure set_binary_mode (handle : int); procedure set_text_mode (handle : int); ---------------------------- -- Full Path Name support -- ---------------------------- procedure full_name (nam : chars; buffer : chars); -- Given a NUL terminated string representing a file name, returns in -- buffer a NUL terminated string representing the full path name for -- the file name. On systems where it is relevant the drive is also part -- of the full path name. It is the responsibility of the caller to -- pass an actual parameter for buffer that is big enough for any full -- path name. Use max_path_len given below as the size of buffer. max_path_len : Integer; -- Maximum length of an allowable full path name on the system, -- including a terminating NUL character. private -- The following functions are specialized in the body depending on the -- operating system. pragma Inline (fread); pragma Inline (fwrite); pragma Inline (setvbuf); pragma Import (C, file_exists, "__gnat_file_exists"); pragma Import (C, is_regular_file, "__gnat_is_regular_file_fd"); pragma Import (C, set_binary_mode, "__gnat_set_binary_mode"); pragma Import (C, set_text_mode, "__gnat_set_text_mode"); pragma Import (C, max_path_len, "__gnat_max_path_len"); pragma Import (C, full_name, "__gnat_full_name"); -- The following may be implemented as macros, and so are supported -- via an interface function in the a-cstrea.c file. pragma Import (C, feof, "__gnat_feof"); pragma Import (C, ferror, "__gnat_ferror"); pragma Import (C, fileno, "__gnat_fileno"); pragma Import (C, EOF, "__gnat_constant_eof"); pragma Import (C, IOFBF, "__gnat_constant_iofbf"); pragma Import (C, IOLBF, "__gnat_constant_iolbf"); pragma Import (C, IONBF, "__gnat_constant_ionbf"); pragma Import (C, SEEK_CUR, "__gnat_constant_seek_cur"); pragma Import (C, SEEK_END, "__gnat_constant_seek_end"); pragma Import (C, SEEK_SET, "__gnat_constant_seek_set"); pragma Import (C, L_tmpnam, "__gnat_constant_l_tmpnam"); pragma Import (C, stderr, "__gnat_constant_stderr"); pragma Import (C, stdin, "__gnat_constant_stdin"); pragma Import (C, stdout, "__gnat_constant_stdout"); NULL_Stream : constant FILEs := System.Null_Address; end Interfaces.C_Streams;
with Tkmrpc.Request; with Tkmrpc.Response; package Tkmrpc.Operation_Handlers.Ike.Nc_Reset is procedure Handle (Req : Request.Data_Type; Res : out Response.Data_Type); -- Handler for the nc_reset operation. end Tkmrpc.Operation_Handlers.Ike.Nc_Reset;
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Web Framework -- -- -- -- Tools Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2015-2018, Vadim Godunko <vgodunko@gmail.com> -- -- 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 Asis; with Engines.Contexts; with League.Strings; package Properties.Declarations.Private_Type is function Initialize (Engine : access Engines.Contexts.Context; Element : Asis.Declaration; Name : Engines.Text_Property) return League.Strings.Universal_String; function Is_Simple_Type (Engine : access Engines.Contexts.Context; Element : Asis.Declaration; Name : Engines.Boolean_Property) return Boolean; function Alignment (Engine : access Engines.Contexts.Context; Element : Asis.Declaration; Name : Engines.Integer_Property) return Integer; end Properties.Declarations.Private_Type;
----------------------------------------------------------------------- -- css-core-selectors -- Core CSS API definition -- Copyright (C) 2017 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in writing, software -- distributed under the License is distributed on an "AS IS" BASIS, -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. ----------------------------------------------------------------------- with Ada.Unchecked_Deallocation; with Ada.Strings.Unbounded; package body CSS.Core.Selectors is use Ada.Strings.Unbounded; -- ------------------------------ -- Compare the two CSS selectors. -- ------------------------------ function "<" (Left, Right : in CSSSelector) return Boolean is begin for I in Left.Sel'Range loop if Left.Sel (I) /= Right.Sel (I) then if Left.Sel (I) = null then return False; end if; if Right.Sel (I) = null then return True; end if; return Left.Sel (I).all < Right.Sel (I).all; end if; end loop; return False; end "<"; -- ------------------------------ -- Compare the two CSS selectors. -- ------------------------------ function "=" (Left, Right : in CSSSelector) return Boolean is begin for I in Left.Sel'Range loop if Left.Sel (I) /= Right.Sel (I) then if Left.Sel (I) = null or else Right.Sel (I) = null then return False; end if; if Left.Sel (I).all /= Right.Sel (I).all then return False; end if; end if; end loop; return True; end "="; -- ------------------------------ -- Build a string representation of the selector sub-tree. -- ------------------------------ procedure To_String (Into : in out Ada.Strings.Unbounded.Unbounded_String; Selector : in Selector_Node_Access) is Node : constant Selector_Node_Access := Selector; begin if Node /= null then case Node.Kind is when SEL_CLASS | SEL_ELEMENT | SEL_IDENT => Append (Into, Node.Value); when SEL_CHILD => Append (Into, ">"); when SEL_NEXT_SIBLING => Append (Into, "+"); when SEL_FOLLOWING_SIBLING => Append (Into, "~"); when SEL_PSEUDO_ELEMENT => Append (Into, "::"); Append (Into, Node.Value); when SEL_PSEUDO_CLASS => Append (Into, ":"); Append (Into, Node.Value); when SEL_HAS_ATTRIBUTE => Append (Into, "["); Append (Into, Node.Value); Append (Into, "]"); when SEL_EQ_ATTRIBUTE => Append (Into, "["); Append (Into, Node.Value); Append (Into, "="); Append (Into, Node.Params.Value); Append (Into, "]"); when SEL_MATCH_ATTRIBUTE => Append (Into, "["); Append (Into, Node.Value); Append (Into, "*="); Append (Into, Node.Params.Value); Append (Into, "]"); when SEL_STARTS_ATTRIBUTE => Append (Into, "["); Append (Into, Node.Value); Append (Into, "^="); Append (Into, Node.Params.Value); Append (Into, "]"); when SEL_ENDS_ATTRIBUTE => Append (Into, "["); Append (Into, Node.Value); Append (Into, "$="); Append (Into, Node.Params.Value); Append (Into, "]"); when SEL_CONTAIN_ATTRIBUTE => Append (Into, "["); Append (Into, Node.Value); Append (Into, "~="); Append (Into, Node.Params.Value); Append (Into, "]"); when SEL_ORMATCH_ATTRIBUTE => Append (Into, "["); Append (Into, Node.Value); Append (Into, "|="); Append (Into, Node.Params.Value); Append (Into, "]"); when SEL_FUNCTION => Append (Into, ":"); Append (Into, Node.Value); Append (Into, "("); -- Append (Into, Node.Params.Value); Append (Into, ")"); when others => null; end case; if Node.Child /= null then To_String (Into, Node.Child); end if; end if; end To_String; procedure To_String (Into : in out Ada.Strings.Unbounded.Unbounded_String; Selector : in CSSSelector) is begin for I in Selector.Sel'Range loop exit when Selector.Sel (I) = null; if I > Selector.Sel'First then Append (Into, " "); end if; To_String (Into, Selector.Sel (I)); end loop; end To_String; -- ------------------------------ -- Get a printable representation of the CSS selector. -- ------------------------------ function To_String (Selector : in CSSSelector) return String is Result : Unbounded_String; begin To_String (Result, Selector); return To_String (Result); end To_String; -- ------------------------------ -- Create a CSS selector of the given type and with the name. -- ------------------------------ function Create (Kind : in Selector_Type; Name : in String) return CSSSelector is Result : CSSSelector; Node : constant Selector_Node_Access := new Selector_Node '(Len => Name'Length, Kind => Kind, Value => Name, Parent => null, Sibling => null, Params => null, Next => null, Child => null); begin Result.Sel (1) := Node; return Result; end Create; -- ------------------------------ -- Create a CSS selector of the given type and with the name. -- ------------------------------ function Create (Kind : in Selector_Type; Name : in String; Value : in String) return CSSSelector is Result : constant CSSSelector := Create (Kind, Name); Node : constant Selector_Node_Access := new Selector_Node '(Len => Value'Length, Kind => SEL_PARAM, Value => Value, Parent => Result.Sel (1), Sibling => null, Params => null, Next => null, Child => null); begin Result.Sel (1).Params := Node; return Result; end Create; -- ------------------------------ -- Get the selector type for the first selector component. -- ------------------------------ function Get_Selector_Type (Selector : in CSSSelector) return Selector_Type is begin if Selector.Sel (1) = null then return SEL_NONE; else return Selector.Sel (1).Kind; end if; end Get_Selector_Type; -- ------------------------------ -- Get the selector value for the first selector component. -- ------------------------------ function Get_Value (Selector : in CSSSelector) return String is begin if Selector.Sel (1) = null then return ""; else return Selector.Sel (1).Value; end if; end Get_Value; -- ------------------------------ -- Append the selector at end of the selector list. -- ------------------------------ procedure Append (Into : in out CSSSelector; Selector : in out CSSSelector) is Last : Selector_Node_Access := null; -- Into.Sel (1); begin for I in Into.Sel'Range loop if Into.Sel (I) = null then Into.Sel (I) := Selector.Sel (1); exit when Last = null; Into.Sel (I).Parent := Last; while Last.Next /= null loop Last := Last.Next; end loop; Last.Next := Selector.Sel (1); exit; end if; Last := Into.Sel (I); end loop; Selector.Sel (1) := null; end Append; -- ------------------------------ -- Append the selector at end of the selector list. -- ------------------------------ procedure Append_Child (Into : in out CSSSelector; Selector : in out CSSSelector) is Sel : Selector_Node_Access := Into.Sel (1); begin while Sel.Child /= null loop Sel := Sel.Child; end loop; Sel.Child := Selector.Sel (1); Sel.Child.Parent := Sel; Selector.Sel (1) := null; end Append_Child; -- ------------------------------ -- Compare the two selectors to order them. -- ------------------------------ function "<" (Left, Right : Selector_Node) return Boolean is begin if Left.Kind < Right.Kind then return True; elsif Left.Kind > Right.Kind then return False; elsif Left.Value /= Right.Value then return Left.Value < Right.Value; elsif Left.Child = Right.Child then return False; elsif Left.Child = null then return False; elsif Right.Child = null then return True; else return Left.Child.all < Right.Child.all; end if; end "<"; -- ------------------------------ -- Compare the two selectors to order them. -- ------------------------------ function "=" (Left, Right : Selector_Node) return Boolean is begin if Left.Kind /= Right.Kind then return False; elsif Left.Value /= Right.Value then return False; elsif Left.Child = Right.Child then return True; elsif Left.Child = null or else Right.Child = null then return False; else return Left.Child.all = Right.Child.all; end if; end "="; -- Iterate over the list of CSS selector components. procedure Iterate (Selector : in CSSSelector; Process : not null access procedure (Sel : in CSSSelector)) is Item : CSSSelector; begin for S of Selector.Sel loop exit when S = null; Item.Sel (1) := S; Process (Item); if S.Child /= null then Item.Sel (1) := S.Child; Iterate (Item, Process); end if; end loop; end Iterate; -- ------------------------------ -- Compare the two selectors for identity. -- ------------------------------ function "<" (Left, Right : Selector_Tree_Node_Access) return Boolean is begin if Left = null then return True; end if; if Right = null then return False; end if; if Left.Kind < Right.Kind then return True; elsif Left.Kind > Right.Kind then return False; else return Left.Selector.Value < Right.Selector.Value; end if; end "<"; -- ------------------------------ -- Compare the two selectors to check if they are equal. -- We only check the first selector. -- ------------------------------ function Compare (Left, Right : Selector_Tree_Node_Access) return Boolean is begin if Left = Right then return True; end if; if Left = null or else Right = null then return False; end if; return Left.Kind = Right.Kind and Left.Selector.Value = Right.Selector.Value; end Compare; -- ------------------------------ -- Release the storage held by the selector sub-tree. -- ------------------------------ procedure Finalize (Selector : in out Selector_Node) is procedure Free is new Ada.Unchecked_Deallocation (Selector_Node, Selector_Node_Access); begin if Selector.Child /= null then Finalize (Selector.Child.all); Free (Selector.Child); end if; if Selector.Next /= null then Finalize (Selector.Next.all); Free (Selector.Next); end if; end Finalize; procedure Finalize (Tree : in out Selector_Tree_Node_Access) is begin if Tree.Child /= null then Finalize (Tree.Child); end if; if Tree.Next /= null then Finalize (Tree.Next); end if; end Finalize; -- Release the selector objects that have been allocated in the tree. overriding procedure Finalize (Tree : in out CSSSelector_Tree) is begin null; end Finalize; -- ------------------------------ -- Append to the list of selectors the new selector component. -- ------------------------------ procedure Append (Into : in out CSSSelector_List; Selector : in out CSSSelector) is begin Into.List.Append (Selector); end Append; -- ------------------------------ -- Return a printable representation of the CSS selector list. -- ------------------------------ function To_String (List : in CSSSelector_List) return String is Result : Unbounded_String; begin for S of List.List loop if Length (Result) > 0 then Append (Result, ", "); end if; To_String (Result, S); end loop; return To_String (Result); end To_String; -- ------------------------------ -- Iterate over the list of CSS selector. -- ------------------------------ procedure Iterate (List : in CSSSelector_List; Process : not null access procedure (Sel : in CSSSelector)) is begin for S of List.List loop Process (S); end loop; end Iterate; end CSS.Core.Selectors;
-- Copyright 2016-2019 NXP -- All rights reserved.SPDX-License-Identifier: BSD-3-Clause -- This spec has been automatically generated from LPC55S6x.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package NXP_SVD.ANACTRL is pragma Preelaborate; --------------- -- Registers -- --------------- -- Flash Power Down status. type ANALOG_CTRL_STATUS_FLASH_PWRDWN_Field is ( -- Flash is not in power down mode. Pwrup, -- Flash is in power down mode. Pwrdwn) with Size => 1; for ANALOG_CTRL_STATUS_FLASH_PWRDWN_Field use (Pwrup => 0, Pwrdwn => 1); -- Flash initialization error status. type ANALOG_CTRL_STATUS_FLASH_INIT_ERROR_Field is ( -- No error. Noerror, -- At least one error occured during flash initialization.. Error) with Size => 1; for ANALOG_CTRL_STATUS_FLASH_INIT_ERROR_Field use (Noerror => 0, Error => 1); -- Analog Macroblock Identity registers, Flash Status registers type ANALOG_CTRL_STATUS_Register is record -- unspecified Reserved_0_11 : HAL.UInt12; -- Read-only. Flash Power Down status. FLASH_PWRDWN : ANALOG_CTRL_STATUS_FLASH_PWRDWN_Field; -- Read-only. Flash initialization error status. FLASH_INIT_ERROR : ANALOG_CTRL_STATUS_FLASH_INIT_ERROR_Field; -- unspecified Reserved_14_31 : HAL.UInt18; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for ANALOG_CTRL_STATUS_Register use record Reserved_0_11 at 0 range 0 .. 11; FLASH_PWRDWN at 0 range 12 .. 12; FLASH_INIT_ERROR at 0 range 13 .. 13; Reserved_14_31 at 0 range 14 .. 31; end record; subtype FREQ_ME_CTRL_CAPVAL_SCALE_Field is HAL.UInt31; -- Frequency Measure function control register type FREQ_ME_CTRL_Register is record -- Frequency measure result /Frequency measur scale CAPVAL_SCALE : FREQ_ME_CTRL_CAPVAL_SCALE_Field := 16#0#; -- Set this bit to one to initiate a frequency measurement cycle. -- Hardware clears this bit when the measurement cycle has completed and -- there is valid capture data in the CAPVAL field (bits 30:0). PROG : Boolean := False; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for FREQ_ME_CTRL_Register use record CAPVAL_SCALE at 0 range 0 .. 30; PROG at 0 range 31 .. 31; end record; -- 12 MHz clock control. type FRO192M_CTRL_ENA_12MHZCLK_Field is ( -- 12 MHz clock is disabled. Disable, -- 12 MHz clock is enabled. Enable) with Size => 1; for FRO192M_CTRL_ENA_12MHZCLK_Field use (Disable => 0, Enable => 1); -- 48 MHz clock control. type FRO192M_CTRL_ENA_48MHZCLK_Field is ( -- 48 MHz clock is enabled. Enable) with Size => 1; for FRO192M_CTRL_ENA_48MHZCLK_Field use (Enable => 1); subtype FRO192M_CTRL_DAC_TRIM_Field is HAL.UInt8; -- 96 MHz clock control. type FRO192M_CTRL_ENA_96MHZCLK_Field is ( -- 96 MHz clock is disabled. Disable, -- 96 MHz clock is enabled. Enable) with Size => 1; for FRO192M_CTRL_ENA_96MHZCLK_Field use (Disable => 0, Enable => 1); -- 192MHz Free Running OScillator (FRO) Control register type FRO192M_CTRL_Register is record -- unspecified Reserved_0_13 : HAL.UInt14 := 16#101A#; -- 12 MHz clock control. ENA_12MHZCLK : FRO192M_CTRL_ENA_12MHZCLK_Field := NXP_SVD.ANACTRL.Enable; -- 48 MHz clock control. ENA_48MHZCLK : FRO192M_CTRL_ENA_48MHZCLK_Field := NXP_SVD.ANACTRL.Enable; -- Frequency trim. DAC_TRIM : FRO192M_CTRL_DAC_TRIM_Field := 16#80#; -- If this bit is set and the USB peripheral is enabled into full speed -- device mode, the USB block will provide FRO clock adjustments to lock -- it to the host clock using the SOF packets. USBCLKADJ : Boolean := False; -- Read-only. If it reads as 1 when reading the DAC_TRIM field and -- USBCLKADJ=1, it should be re-read until it is 0. USBMODCHG : Boolean := False; -- unspecified Reserved_26_29 : HAL.UInt4 := 16#0#; -- 96 MHz clock control. ENA_96MHZCLK : FRO192M_CTRL_ENA_96MHZCLK_Field := NXP_SVD.ANACTRL.Disable; -- unspecified Reserved_31_31 : HAL.Bit := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for FRO192M_CTRL_Register use record Reserved_0_13 at 0 range 0 .. 13; ENA_12MHZCLK at 0 range 14 .. 14; ENA_48MHZCLK at 0 range 15 .. 15; DAC_TRIM at 0 range 16 .. 23; USBCLKADJ at 0 range 24 .. 24; USBMODCHG at 0 range 25 .. 25; Reserved_26_29 at 0 range 26 .. 29; ENA_96MHZCLK at 0 range 30 .. 30; Reserved_31_31 at 0 range 31 .. 31; end record; -- Output clock valid signal. Indicates that CCO clock has settled. type FRO192M_STATUS_CLK_VALID_Field is ( -- No output clock present (None of 12 MHz, 48 MHz or 96 MHz clock is -- available). Noclkout, -- Clock is present (12 MHz, 48 MHz or 96 MHz can be output if they are -- enable respectively by -- FRO192M_CTRL.ENA_12MHZCLK/ENA_48MHZCLK/ENA_96MHZCLK). Clkout) with Size => 1; for FRO192M_STATUS_CLK_VALID_Field use (Noclkout => 0, Clkout => 1); -- 192MHz Free Running OScillator (FRO) Status register type FRO192M_STATUS_Register is record -- Read-only. Output clock valid signal. Indicates that CCO clock has -- settled. CLK_VALID : FRO192M_STATUS_CLK_VALID_Field; -- Read-only. CCO threshold voltage detector output (signal vcco_ok). -- Once the CCO voltage crosses the threshold voltage of a SLVT -- transistor, this output signal will go high. It is also possible to -- observe the clk_valid signal. ATB_VCTRL : Boolean; -- unspecified Reserved_2_31 : HAL.UInt30; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for FRO192M_STATUS_Register use record CLK_VALID at 0 range 0 .. 0; ATB_VCTRL at 0 range 1 .. 1; Reserved_2_31 at 0 range 2 .. 31; end record; -- Bypass enable of XO AC buffer enable in pll and top level. type XO32M_CTRL_ACBUF_PASS_ENABLE_Field is ( -- XO AC buffer bypass is disabled. Disable, -- XO AC buffer bypass is enabled. Enable) with Size => 1; for XO32M_CTRL_ACBUF_PASS_ENABLE_Field use (Disable => 0, Enable => 1); -- Enable High speed Crystal oscillator output to USB HS PLL. type XO32M_CTRL_ENABLE_PLL_USB_OUT_Field is ( -- High speed Crystal oscillator output to USB HS PLL is disabled. Disable, -- High speed Crystal oscillator output to USB HS PLL is enabled. Enable) with Size => 1; for XO32M_CTRL_ENABLE_PLL_USB_OUT_Field use (Disable => 0, Enable => 1); -- Enable XO 32 MHz output to CPU system. type XO32M_CTRL_ENABLE_SYSTEM_CLK_OUT_Field is ( -- High speed Crystal oscillator output to CPU system is disabled. Disable, -- High speed Crystal oscillator output to CPU system is enabled. Enable) with Size => 1; for XO32M_CTRL_ENABLE_SYSTEM_CLK_OUT_Field use (Disable => 0, Enable => 1); -- High speed Crystal Oscillator Control register type XO32M_CTRL_Register is record -- unspecified Reserved_0_21 : HAL.UInt22 := 16#21428A#; -- Bypass enable of XO AC buffer enable in pll and top level. ACBUF_PASS_ENABLE : XO32M_CTRL_ACBUF_PASS_ENABLE_Field := NXP_SVD.ANACTRL.Disable; -- Enable High speed Crystal oscillator output to USB HS PLL. ENABLE_PLL_USB_OUT : XO32M_CTRL_ENABLE_PLL_USB_OUT_Field := NXP_SVD.ANACTRL.Disable; -- Enable XO 32 MHz output to CPU system. ENABLE_SYSTEM_CLK_OUT : XO32M_CTRL_ENABLE_SYSTEM_CLK_OUT_Field := NXP_SVD.ANACTRL.Disable; -- unspecified Reserved_25_31 : HAL.UInt7 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for XO32M_CTRL_Register use record Reserved_0_21 at 0 range 0 .. 21; ACBUF_PASS_ENABLE at 0 range 22 .. 22; ENABLE_PLL_USB_OUT at 0 range 23 .. 23; ENABLE_SYSTEM_CLK_OUT at 0 range 24 .. 24; Reserved_25_31 at 0 range 25 .. 31; end record; -- Indicates XO out frequency statibilty. type XO32M_STATUS_XO_READY_Field is ( -- XO output frequency is not yet stable. Not_Stable, -- XO output frequency is stable. Stable) with Size => 1; for XO32M_STATUS_XO_READY_Field use (Not_Stable => 0, Stable => 1); -- High speed Crystal Oscillator Status register type XO32M_STATUS_Register is record -- Read-only. Indicates XO out frequency statibilty. XO_READY : XO32M_STATUS_XO_READY_Field; -- unspecified Reserved_1_31 : HAL.UInt31; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for XO32M_STATUS_Register use record XO_READY at 0 range 0 .. 0; Reserved_1_31 at 0 range 1 .. 31; end record; -- BOD VBAT interrupt control. type BOD_DCDC_INT_CTRL_BODVBAT_INT_ENABLE_Field is ( -- BOD VBAT interrupt is disabled. Disable, -- BOD VBAT interrupt is enabled. Enable) with Size => 1; for BOD_DCDC_INT_CTRL_BODVBAT_INT_ENABLE_Field use (Disable => 0, Enable => 1); -- BOD CORE interrupt control. type BOD_DCDC_INT_CTRL_BODCORE_INT_ENABLE_Field is ( -- BOD CORE interrupt is disabled. Disable, -- BOD CORE interrupt is enabled. Enable) with Size => 1; for BOD_DCDC_INT_CTRL_BODCORE_INT_ENABLE_Field use (Disable => 0, Enable => 1); -- DCDC interrupt control. type BOD_DCDC_INT_CTRL_DCDC_INT_ENABLE_Field is ( -- DCDC interrupt is disabled. Disable, -- DCDC interrupt is enabled. Enable) with Size => 1; for BOD_DCDC_INT_CTRL_DCDC_INT_ENABLE_Field use (Disable => 0, Enable => 1); -- Brown Out Detectors (BoDs) & DCDC interrupts generation control register type BOD_DCDC_INT_CTRL_Register is record -- BOD VBAT interrupt control. BODVBAT_INT_ENABLE : BOD_DCDC_INT_CTRL_BODVBAT_INT_ENABLE_Field := NXP_SVD.ANACTRL.Disable; -- BOD VBAT interrupt clear.1: Clear the interrupt. Self-cleared bit. BODVBAT_INT_CLEAR : Boolean := False; -- BOD CORE interrupt control. BODCORE_INT_ENABLE : BOD_DCDC_INT_CTRL_BODCORE_INT_ENABLE_Field := NXP_SVD.ANACTRL.Disable; -- BOD CORE interrupt clear.1: Clear the interrupt. Self-cleared bit. BODCORE_INT_CLEAR : Boolean := False; -- DCDC interrupt control. DCDC_INT_ENABLE : BOD_DCDC_INT_CTRL_DCDC_INT_ENABLE_Field := NXP_SVD.ANACTRL.Disable; -- DCDC interrupt clear.1: Clear the interrupt. Self-cleared bit. DCDC_INT_CLEAR : Boolean := False; -- unspecified Reserved_6_31 : HAL.UInt26 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for BOD_DCDC_INT_CTRL_Register use record BODVBAT_INT_ENABLE at 0 range 0 .. 0; BODVBAT_INT_CLEAR at 0 range 1 .. 1; BODCORE_INT_ENABLE at 0 range 2 .. 2; BODCORE_INT_CLEAR at 0 range 3 .. 3; DCDC_INT_ENABLE at 0 range 4 .. 4; DCDC_INT_CLEAR at 0 range 5 .. 5; Reserved_6_31 at 0 range 6 .. 31; end record; -- BOD VBAT Interrupt status before Interrupt Enable. type BOD_DCDC_INT_STATUS_BODVBAT_STATUS_Field is ( -- No interrupt pending.. Not_Pending, -- Interrupt pending.. Pending) with Size => 1; for BOD_DCDC_INT_STATUS_BODVBAT_STATUS_Field use (Not_Pending => 0, Pending => 1); -- BOD VBAT Interrupt status after Interrupt Enable. type BOD_DCDC_INT_STATUS_BODVBAT_INT_STATUS_Field is ( -- No interrupt pending.. Not_Pending, -- Interrupt pending.. Pending) with Size => 1; for BOD_DCDC_INT_STATUS_BODVBAT_INT_STATUS_Field use (Not_Pending => 0, Pending => 1); -- Current value of BOD VBAT power status output. type BOD_DCDC_INT_STATUS_BODVBAT_VAL_Field is ( -- VBAT voltage level is below the threshold. Not_Ok, -- VBAT voltage level is above the threshold. Ok) with Size => 1; for BOD_DCDC_INT_STATUS_BODVBAT_VAL_Field use (Not_Ok => 0, Ok => 1); -- BOD CORE Interrupt status before Interrupt Enable. type BOD_DCDC_INT_STATUS_BODCORE_STATUS_Field is ( -- No interrupt pending.. Not_Pending, -- Interrupt pending.. Pending) with Size => 1; for BOD_DCDC_INT_STATUS_BODCORE_STATUS_Field use (Not_Pending => 0, Pending => 1); -- BOD CORE Interrupt status after Interrupt Enable. type BOD_DCDC_INT_STATUS_BODCORE_INT_STATUS_Field is ( -- No interrupt pending.. Not_Pending, -- Interrupt pending.. Pending) with Size => 1; for BOD_DCDC_INT_STATUS_BODCORE_INT_STATUS_Field use (Not_Pending => 0, Pending => 1); -- Current value of BOD CORE power status output. type BOD_DCDC_INT_STATUS_BODCORE_VAL_Field is ( -- CORE voltage level is below the threshold. Not_Ok, -- CORE voltage level is above the threshold. Ok) with Size => 1; for BOD_DCDC_INT_STATUS_BODCORE_VAL_Field use (Not_Ok => 0, Ok => 1); -- DCDC Interrupt status before Interrupt Enable. type BOD_DCDC_INT_STATUS_DCDC_STATUS_Field is ( -- No interrupt pending.. Not_Pending, -- Interrupt pending.. Pending) with Size => 1; for BOD_DCDC_INT_STATUS_DCDC_STATUS_Field use (Not_Pending => 0, Pending => 1); -- DCDC Interrupt status after Interrupt Enable. type BOD_DCDC_INT_STATUS_DCDC_INT_STATUS_Field is ( -- No interrupt pending.. Not_Pending, -- Interrupt pending.. Pending) with Size => 1; for BOD_DCDC_INT_STATUS_DCDC_INT_STATUS_Field use (Not_Pending => 0, Pending => 1); -- Current value of DCDC power status output. type BOD_DCDC_INT_STATUS_DCDC_VAL_Field is ( -- DCDC output Voltage is below the targeted regulation level. Not_Ok, -- DCDC output Voltage is above the targeted regulation level. Ok) with Size => 1; for BOD_DCDC_INT_STATUS_DCDC_VAL_Field use (Not_Ok => 0, Ok => 1); -- BoDs & DCDC interrupts status register type BOD_DCDC_INT_STATUS_Register is record -- Read-only. BOD VBAT Interrupt status before Interrupt Enable. BODVBAT_STATUS : BOD_DCDC_INT_STATUS_BODVBAT_STATUS_Field; -- Read-only. BOD VBAT Interrupt status after Interrupt Enable. BODVBAT_INT_STATUS : BOD_DCDC_INT_STATUS_BODVBAT_INT_STATUS_Field; -- Read-only. Current value of BOD VBAT power status output. BODVBAT_VAL : BOD_DCDC_INT_STATUS_BODVBAT_VAL_Field; -- Read-only. BOD CORE Interrupt status before Interrupt Enable. BODCORE_STATUS : BOD_DCDC_INT_STATUS_BODCORE_STATUS_Field; -- Read-only. BOD CORE Interrupt status after Interrupt Enable. BODCORE_INT_STATUS : BOD_DCDC_INT_STATUS_BODCORE_INT_STATUS_Field; -- Read-only. Current value of BOD CORE power status output. BODCORE_VAL : BOD_DCDC_INT_STATUS_BODCORE_VAL_Field; -- Read-only. DCDC Interrupt status before Interrupt Enable. DCDC_STATUS : BOD_DCDC_INT_STATUS_DCDC_STATUS_Field; -- Read-only. DCDC Interrupt status after Interrupt Enable. DCDC_INT_STATUS : BOD_DCDC_INT_STATUS_DCDC_INT_STATUS_Field; -- Read-only. Current value of DCDC power status output. DCDC_VAL : BOD_DCDC_INT_STATUS_DCDC_VAL_Field; -- unspecified Reserved_9_31 : HAL.UInt23; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for BOD_DCDC_INT_STATUS_Register use record BODVBAT_STATUS at 0 range 0 .. 0; BODVBAT_INT_STATUS at 0 range 1 .. 1; BODVBAT_VAL at 0 range 2 .. 2; BODCORE_STATUS at 0 range 3 .. 3; BODCORE_INT_STATUS at 0 range 4 .. 4; BODCORE_VAL at 0 range 5 .. 5; DCDC_STATUS at 0 range 6 .. 6; DCDC_INT_STATUS at 0 range 7 .. 7; DCDC_VAL at 0 range 8 .. 8; Reserved_9_31 at 0 range 9 .. 31; end record; -- Select short or long ringo (for all ringos types). type RINGO0_CTRL_SL_Field is ( -- Select short ringo (few elements). Short, -- Select long ringo (many elements). Long) with Size => 1; for RINGO0_CTRL_SL_Field use (Short => 0, Long => 1); -- Ringo frequency output divider. type RINGO0_CTRL_FS_Field is ( -- High frequency output (frequency lower than 100 MHz). Fast, -- Low frequency output (frequency lower than 10 MHz). Slow) with Size => 1; for RINGO0_CTRL_FS_Field use (Fast => 0, Slow => 1); -- PN-Ringos (P-Transistor and N-Transistor processing) control. type RINGO0_CTRL_SWN_SWP_Field is ( -- Normal mode. Normal, -- P-Monitor mode. Measure with weak P transistor. P_Monitor, -- P-Monitor mode. Measure with weak N transistor. N_Monitor, -- Don't use. Forbidden) with Size => 2; for RINGO0_CTRL_SWN_SWP_Field use (Normal => 0, P_Monitor => 1, N_Monitor => 2, Forbidden => 3); -- Ringo module Power control. type RINGO0_CTRL_PD_Field is ( -- The Ringo module is enabled. Powered_On, -- The Ringo module is disabled. Powered_Down) with Size => 1; for RINGO0_CTRL_PD_Field use (Powered_On => 0, Powered_Down => 1); -- First NAND2-based ringo control. type RINGO0_CTRL_E_ND0_Field is ( -- First NAND2-based ringo is disabled. Disable, -- First NAND2-based ringo is enabled. Enable) with Size => 1; for RINGO0_CTRL_E_ND0_Field use (Disable => 0, Enable => 1); -- Second NAND2-based ringo control. type RINGO0_CTRL_E_ND1_Field is ( -- Second NAND2-based ringo is disabled. Disable, -- Second NAND2-based ringo is enabled. Enable) with Size => 1; for RINGO0_CTRL_E_ND1_Field use (Disable => 0, Enable => 1); -- First NOR2-based ringo control. type RINGO0_CTRL_E_NR0_Field is ( -- First NOR2-based ringo is disabled. Disable, -- First NOR2-based ringo is enabled. Enable) with Size => 1; for RINGO0_CTRL_E_NR0_Field use (Disable => 0, Enable => 1); -- Second NOR2-based ringo control. type RINGO0_CTRL_E_NR1_Field is ( -- Second NORD2-based ringo is disabled. Disable, -- Second NORD2-based ringo is enabled. Enable) with Size => 1; for RINGO0_CTRL_E_NR1_Field use (Disable => 0, Enable => 1); -- First Inverter-based ringo control. type RINGO0_CTRL_E_IV0_Field is ( -- First INV-based ringo is disabled. Disable, -- First INV-based ringo is enabled. Enable) with Size => 1; for RINGO0_CTRL_E_IV0_Field use (Disable => 0, Enable => 1); -- Second Inverter-based ringo control. type RINGO0_CTRL_E_IV1_Field is ( -- Second INV-based ringo is disabled. Disable, -- Second INV-based ringo is enabled. Enable) with Size => 1; for RINGO0_CTRL_E_IV1_Field use (Disable => 0, Enable => 1); -- First PN (P-Transistor and N-Transistor processing) monitor control. type RINGO0_CTRL_E_PN0_Field is ( -- First PN-based ringo is disabled. Disable, -- First PN-based ringo is enabled. Enable) with Size => 1; for RINGO0_CTRL_E_PN0_Field use (Disable => 0, Enable => 1); -- Second PN (P-Transistor and N-Transistor processing) monitor control. type RINGO0_CTRL_E_PN1_Field is ( -- Second PN-based ringo is disabled. Disable, -- Second PN-based ringo is enabled. Enable) with Size => 1; for RINGO0_CTRL_E_PN1_Field use (Disable => 0, Enable => 1); subtype RINGO0_CTRL_DIVISOR_Field is HAL.UInt4; -- First Ring Oscillator module control register. type RINGO0_CTRL_Register is record -- Select short or long ringo (for all ringos types). SL : RINGO0_CTRL_SL_Field := NXP_SVD.ANACTRL.Short; -- Ringo frequency output divider. FS : RINGO0_CTRL_FS_Field := NXP_SVD.ANACTRL.Fast; -- PN-Ringos (P-Transistor and N-Transistor processing) control. SWN_SWP : RINGO0_CTRL_SWN_SWP_Field := NXP_SVD.ANACTRL.Normal; -- Ringo module Power control. PD : RINGO0_CTRL_PD_Field := NXP_SVD.ANACTRL.Powered_On; -- First NAND2-based ringo control. E_ND0 : RINGO0_CTRL_E_ND0_Field := NXP_SVD.ANACTRL.Disable; -- Second NAND2-based ringo control. E_ND1 : RINGO0_CTRL_E_ND1_Field := NXP_SVD.ANACTRL.Enable; -- First NOR2-based ringo control. E_NR0 : RINGO0_CTRL_E_NR0_Field := NXP_SVD.ANACTRL.Disable; -- Second NOR2-based ringo control. E_NR1 : RINGO0_CTRL_E_NR1_Field := NXP_SVD.ANACTRL.Disable; -- First Inverter-based ringo control. E_IV0 : RINGO0_CTRL_E_IV0_Field := NXP_SVD.ANACTRL.Disable; -- Second Inverter-based ringo control. E_IV1 : RINGO0_CTRL_E_IV1_Field := NXP_SVD.ANACTRL.Disable; -- First PN (P-Transistor and N-Transistor processing) monitor control. E_PN0 : RINGO0_CTRL_E_PN0_Field := NXP_SVD.ANACTRL.Disable; -- Second PN (P-Transistor and N-Transistor processing) monitor control. E_PN1 : RINGO0_CTRL_E_PN1_Field := NXP_SVD.ANACTRL.Disable; -- unspecified Reserved_13_15 : HAL.UInt3 := 16#0#; -- Ringo out Clock divider value. Frequency Output = Frequency input / -- (DIViSOR+1). (minimum = Frequency input / 16) DIVISOR : RINGO0_CTRL_DIVISOR_Field := 16#0#; -- unspecified Reserved_20_30 : HAL.UInt11 := 16#0#; -- Read-only. Ringo clock out Divider status flag. Set when a change is -- made to the divider value, cleared when the change is complete. DIV_UPDATE_REQ : Boolean := False; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for RINGO0_CTRL_Register use record SL at 0 range 0 .. 0; FS at 0 range 1 .. 1; SWN_SWP at 0 range 2 .. 3; PD at 0 range 4 .. 4; E_ND0 at 0 range 5 .. 5; E_ND1 at 0 range 6 .. 6; E_NR0 at 0 range 7 .. 7; E_NR1 at 0 range 8 .. 8; E_IV0 at 0 range 9 .. 9; E_IV1 at 0 range 10 .. 10; E_PN0 at 0 range 11 .. 11; E_PN1 at 0 range 12 .. 12; Reserved_13_15 at 0 range 13 .. 15; DIVISOR at 0 range 16 .. 19; Reserved_20_30 at 0 range 20 .. 30; DIV_UPDATE_REQ at 0 range 31 .. 31; end record; -- Select short or long ringo (for all ringos types). type RINGO1_CTRL_S_Field is ( -- Select short ringo (few elements). Short, -- Select long ringo (many elements). Long) with Size => 1; for RINGO1_CTRL_S_Field use (Short => 0, Long => 1); -- Ringo frequency output divider. type RINGO1_CTRL_FS_Field is ( -- High frequency output (frequency lower than 100 MHz). Fast, -- Low frequency output (frequency lower than 10 MHz). Slow) with Size => 1; for RINGO1_CTRL_FS_Field use (Fast => 0, Slow => 1); -- Ringo module Power control. type RINGO1_CTRL_PD_Field is ( -- The Ringo module is enabled. Powered_On, -- The Ringo module is disabled. Powered_Down) with Size => 1; for RINGO1_CTRL_PD_Field use (Powered_On => 0, Powered_Down => 1); -- . type RINGO1_CTRL_E_R24_Field is ( -- Ringo is disabled. Disable, -- Ringo is enabled. Enable) with Size => 1; for RINGO1_CTRL_E_R24_Field use (Disable => 0, Enable => 1); -- RINGO1_CTRL_E_R array type RINGO1_CTRL_E_R_Field_Array is array (24 .. 25) of RINGO1_CTRL_E_R24_Field with Component_Size => 1, Size => 2; -- Type definition for RINGO1_CTRL_E_R type RINGO1_CTRL_E_R_Field (As_Array : Boolean := False) is record case As_Array is when False => -- E_R as a value Val : HAL.UInt2; when True => -- E_R as an array Arr : RINGO1_CTRL_E_R_Field_Array; end case; end record with Unchecked_Union, Size => 2; for RINGO1_CTRL_E_R_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- Metal 2 (M2) monitor control. type RINGO1_CTRL_E_M2_Field is ( -- Ringo is disabled. Disable, -- Ringo is enabled. Enable) with Size => 1; for RINGO1_CTRL_E_M2_Field use (Disable => 0, Enable => 1); -- RINGO1_CTRL_E_M array type RINGO1_CTRL_E_M_Field_Array is array (2 .. 5) of RINGO1_CTRL_E_M2_Field with Component_Size => 1, Size => 4; -- Type definition for RINGO1_CTRL_E_M type RINGO1_CTRL_E_M_Field (As_Array : Boolean := False) is record case As_Array is when False => -- E_M as a value Val : HAL.UInt4; when True => -- E_M as an array Arr : RINGO1_CTRL_E_M_Field_Array; end case; end record with Unchecked_Union, Size => 4; for RINGO1_CTRL_E_M_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; subtype RINGO1_CTRL_DIVISOR_Field is HAL.UInt4; -- Second Ring Oscillator module control register. type RINGO1_CTRL_Register is record -- Select short or long ringo (for all ringos types). S : RINGO1_CTRL_S_Field := NXP_SVD.ANACTRL.Short; -- Ringo frequency output divider. FS : RINGO1_CTRL_FS_Field := NXP_SVD.ANACTRL.Fast; -- Ringo module Power control. PD : RINGO1_CTRL_PD_Field := NXP_SVD.ANACTRL.Powered_On; -- . E_R : RINGO1_CTRL_E_R_Field := (As_Array => False, Val => 16#0#); -- Metal 2 (M2) monitor control. E_M : RINGO1_CTRL_E_M_Field := (As_Array => False, Val => 16#0#); -- unspecified Reserved_9_15 : HAL.UInt7 := 16#0#; -- Ringo out Clock divider value. Frequency Output = Frequency input / -- (DIViSOR+1). (minimum = Frequency input / 16) DIVISOR : RINGO1_CTRL_DIVISOR_Field := 16#0#; -- unspecified Reserved_20_30 : HAL.UInt11 := 16#0#; -- Read-only. Ringo clock out Divider status flag. Set when a change is -- made to the divider value, cleared when the change is complete. DIV_UPDATE_REQ : Boolean := False; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for RINGO1_CTRL_Register use record S at 0 range 0 .. 0; FS at 0 range 1 .. 1; PD at 0 range 2 .. 2; E_R at 0 range 3 .. 4; E_M at 0 range 5 .. 8; Reserved_9_15 at 0 range 9 .. 15; DIVISOR at 0 range 16 .. 19; Reserved_20_30 at 0 range 20 .. 30; DIV_UPDATE_REQ at 0 range 31 .. 31; end record; -- Select short or long ringo (for all ringos types). type RINGO2_CTRL_S_Field is ( -- Select short ringo (few elements). Short, -- Select long ringo (many elements). Long) with Size => 1; for RINGO2_CTRL_S_Field use (Short => 0, Long => 1); -- Ringo frequency output divider. type RINGO2_CTRL_FS_Field is ( -- High frequency output (frequency lower than 100 MHz). Fast, -- Low frequency output (frequency lower than 10 MHz). Slow) with Size => 1; for RINGO2_CTRL_FS_Field use (Fast => 0, Slow => 1); -- Ringo module Power control. type RINGO2_CTRL_PD_Field is ( -- The Ringo module is enabled. Powered_On, -- The Ringo module is disabled. Powered_Down) with Size => 1; for RINGO2_CTRL_PD_Field use (Powered_On => 0, Powered_Down => 1); -- . type RINGO2_CTRL_E_R24_Field is ( -- Ringo is disabled. Disable, -- Ringo is enabled. Enable) with Size => 1; for RINGO2_CTRL_E_R24_Field use (Disable => 0, Enable => 1); -- RINGO2_CTRL_E_R array type RINGO2_CTRL_E_R_Field_Array is array (24 .. 25) of RINGO2_CTRL_E_R24_Field with Component_Size => 1, Size => 2; -- Type definition for RINGO2_CTRL_E_R type RINGO2_CTRL_E_R_Field (As_Array : Boolean := False) is record case As_Array is when False => -- E_R as a value Val : HAL.UInt2; when True => -- E_R as an array Arr : RINGO2_CTRL_E_R_Field_Array; end case; end record with Unchecked_Union, Size => 2; for RINGO2_CTRL_E_R_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- Metal 2 (M2) monitor control. type RINGO2_CTRL_E_M2_Field is ( -- Ringo is disabled. Disable, -- Ringo is enabled. Enable) with Size => 1; for RINGO2_CTRL_E_M2_Field use (Disable => 0, Enable => 1); -- RINGO2_CTRL_E_M array type RINGO2_CTRL_E_M_Field_Array is array (2 .. 5) of RINGO2_CTRL_E_M2_Field with Component_Size => 1, Size => 4; -- Type definition for RINGO2_CTRL_E_M type RINGO2_CTRL_E_M_Field (As_Array : Boolean := False) is record case As_Array is when False => -- E_M as a value Val : HAL.UInt4; when True => -- E_M as an array Arr : RINGO2_CTRL_E_M_Field_Array; end case; end record with Unchecked_Union, Size => 4; for RINGO2_CTRL_E_M_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; subtype RINGO2_CTRL_DIVISOR_Field is HAL.UInt4; -- Third Ring Oscillator module control register. type RINGO2_CTRL_Register is record -- Select short or long ringo (for all ringos types). S : RINGO2_CTRL_S_Field := NXP_SVD.ANACTRL.Short; -- Ringo frequency output divider. FS : RINGO2_CTRL_FS_Field := NXP_SVD.ANACTRL.Fast; -- Ringo module Power control. PD : RINGO2_CTRL_PD_Field := NXP_SVD.ANACTRL.Powered_On; -- . E_R : RINGO2_CTRL_E_R_Field := (As_Array => False, Val => 16#0#); -- Metal 2 (M2) monitor control. E_M : RINGO2_CTRL_E_M_Field := (As_Array => False, Val => 16#0#); -- unspecified Reserved_9_15 : HAL.UInt7 := 16#0#; -- Ringo out Clock divider value. Frequency Output = Frequency input / -- (DIViSOR+1). (minimum = Frequency input / 16) DIVISOR : RINGO2_CTRL_DIVISOR_Field := 16#0#; -- unspecified Reserved_20_30 : HAL.UInt11 := 16#0#; -- Read-only. Ringo clock out Divider status flag. Set when a change is -- made to the divider value, cleared when the change is complete. DIV_UPDATE_REQ : Boolean := False; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for RINGO2_CTRL_Register use record S at 0 range 0 .. 0; FS at 0 range 1 .. 1; PD at 0 range 2 .. 2; E_R at 0 range 3 .. 4; E_M at 0 range 5 .. 8; Reserved_9_15 at 0 range 9 .. 15; DIVISOR at 0 range 16 .. 19; Reserved_20_30 at 0 range 20 .. 30; DIV_UPDATE_REQ at 0 range 31 .. 31; end record; -- USB High Speed Phy Control type USBHS_PHY_CTRL_Register is record -- Override value for Vbus if using external detectors. usb_vbusvalid_ext : Boolean := False; -- Override value for ID if using external detectors. usb_id_ext : Boolean := False; -- unspecified Reserved_2_31 : HAL.UInt30 := 16#2#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for USBHS_PHY_CTRL_Register use record usb_vbusvalid_ext at 0 range 0 .. 0; usb_id_ext at 0 range 1 .. 1; Reserved_2_31 at 0 range 2 .. 31; end record; ----------------- -- Peripherals -- ----------------- -- ANALOGCTRL type ANACTRL_Peripheral is record -- Analog Macroblock Identity registers, Flash Status registers ANALOG_CTRL_STATUS : aliased ANALOG_CTRL_STATUS_Register; -- Frequency Measure function control register FREQ_ME_CTRL : aliased FREQ_ME_CTRL_Register; -- 192MHz Free Running OScillator (FRO) Control register FRO192M_CTRL : aliased FRO192M_CTRL_Register; -- 192MHz Free Running OScillator (FRO) Status register FRO192M_STATUS : aliased FRO192M_STATUS_Register; -- High speed Crystal Oscillator Control register XO32M_CTRL : aliased XO32M_CTRL_Register; -- High speed Crystal Oscillator Status register XO32M_STATUS : aliased XO32M_STATUS_Register; -- Brown Out Detectors (BoDs) & DCDC interrupts generation control -- register BOD_DCDC_INT_CTRL : aliased BOD_DCDC_INT_CTRL_Register; -- BoDs & DCDC interrupts status register BOD_DCDC_INT_STATUS : aliased BOD_DCDC_INT_STATUS_Register; -- First Ring Oscillator module control register. RINGO0_CTRL : aliased RINGO0_CTRL_Register; -- Second Ring Oscillator module control register. RINGO1_CTRL : aliased RINGO1_CTRL_Register; -- Third Ring Oscillator module control register. RINGO2_CTRL : aliased RINGO2_CTRL_Register; -- USB High Speed Phy Control USBHS_PHY_CTRL : aliased USBHS_PHY_CTRL_Register; end record with Volatile; for ANACTRL_Peripheral use record ANALOG_CTRL_STATUS at 16#4# range 0 .. 31; FREQ_ME_CTRL at 16#C# range 0 .. 31; FRO192M_CTRL at 16#10# range 0 .. 31; FRO192M_STATUS at 16#14# range 0 .. 31; XO32M_CTRL at 16#20# range 0 .. 31; XO32M_STATUS at 16#24# range 0 .. 31; BOD_DCDC_INT_CTRL at 16#30# range 0 .. 31; BOD_DCDC_INT_STATUS at 16#34# range 0 .. 31; RINGO0_CTRL at 16#40# range 0 .. 31; RINGO1_CTRL at 16#44# range 0 .. 31; RINGO2_CTRL at 16#48# range 0 .. 31; USBHS_PHY_CTRL at 16#100# range 0 .. 31; end record; -- ANALOGCTRL ANACTRL_Periph : aliased ANACTRL_Peripheral with Import, Address => System'To_Address (16#40013000#); end NXP_SVD.ANACTRL;
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- I N T E R F A C E S . C . P O I N T E R S -- -- -- -- S p e c -- -- -- -- Copyright (C) 1993-2019, Free Software Foundation, Inc. -- -- -- -- This specification is derived from the Ada Reference Manual for use with -- -- GNAT. The copyright notice above, and the license provisions that follow -- -- apply solely to the contents of the part following the private keyword. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ with System.Parameters; generic type Index is (<>); type Element is private; type Element_Array is array (Index range <>) of aliased Element; Default_Terminator : Element; package Interfaces.C.Pointers is pragma Preelaborate; type Pointer is access all Element; for Pointer'Size use System.Parameters.ptr_bits; pragma No_Strict_Aliasing (Pointer); -- We turn off any strict aliasing assumptions for the pointer type, -- since it is possible to create "improperly" aliased values. function Value (Ref : Pointer; Terminator : Element := Default_Terminator) return Element_Array; function Value (Ref : Pointer; Length : ptrdiff_t) return Element_Array; Pointer_Error : exception; -------------------------------- -- C-style Pointer Arithmetic -- -------------------------------- function "+" (Left : Pointer; Right : ptrdiff_t) return Pointer; function "+" (Left : ptrdiff_t; Right : Pointer) return Pointer; function "-" (Left : Pointer; Right : ptrdiff_t) return Pointer; function "-" (Left : Pointer; Right : Pointer) return ptrdiff_t; procedure Increment (Ref : in out Pointer); procedure Decrement (Ref : in out Pointer); pragma Convention (Intrinsic, "+"); pragma Convention (Intrinsic, "-"); pragma Convention (Intrinsic, Increment); pragma Convention (Intrinsic, Decrement); function Virtual_Length (Ref : Pointer; Terminator : Element := Default_Terminator) return ptrdiff_t; procedure Copy_Terminated_Array (Source : Pointer; Target : Pointer; Limit : ptrdiff_t := ptrdiff_t'Last; Terminator : Element := Default_Terminator); procedure Copy_Array (Source : Pointer; Target : Pointer; Length : ptrdiff_t); private pragma Inline ("+"); pragma Inline ("-"); pragma Inline (Decrement); pragma Inline (Increment); end Interfaces.C.Pointers;
-- C36202C.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 'LENGTH DOES NOT RAISE AN EXCEPTION -- WHEN APPLIED TO A NULL ARRAY A, EVEN IF A'LAST - A'FIRST -- WOULD RAISE CONSTRAINT_ERROR. -- *** NOTE: This test has been modified since ACVC version 1.11 to -- 9X -- *** remove incompatibilities associated with the transition -- 9X -- *** to Ada 9X. -- 9X -- L.BROWN 07/29/86 -- JRL 03/30/93 REMOVED NUMERIC_ERROR FROM TEST. WITH REPORT; USE REPORT; WITH SYSTEM; USE SYSTEM; PROCEDURE C36202C IS TYPE LRG_INT IS RANGE MIN_INT .. MAX_INT; BEGIN TEST("C36202C", "NO EXCEPTION IS RAISED FOR 'LENGTH "& "WHEN APPLIED TO A NULL ARRAY"); DECLARE TYPE LRG_ARR IS ARRAY (LRG_INT RANGE MAX_INT .. MIN_INT) OF INTEGER; LRG_OBJ : LRG_ARR; BEGIN IF LRG_OBJ'LENGTH /= 0 THEN FAILED("INCORRECT VALUE RETURNED BY 'LENGTH " & "FOR ONE-DIM NULL ARRAY"); END IF; EXCEPTION WHEN CONSTRAINT_ERROR => FAILED("CONSTRAINT_ERROR WAS RAISED " & "FOR ONE-DIM NULL ARRAY"); WHEN OTHERS => FAILED("EXCEPTION RAISED FOR ONE-DIM " & "NULL ARRAY"); END; DECLARE TYPE LRG2_ARR IS ARRAY (LRG_INT RANGE 1 .. 3 , LRG_INT RANGE MAX_INT .. MIN_INT) OF INTEGER; BEGIN IF LRG2_ARR'LENGTH(2) /= 0 THEN FAILED("INCORRECT VALUE RETURNED BY 'LENGTH " & "FOR TWO-DIM NULL ARRAY"); END IF; EXCEPTION WHEN CONSTRAINT_ERROR => FAILED("CONSTRAINT_ERROR WAS RAISED " & "FOR TWO-DIM NULL ARRAY"); WHEN OTHERS => FAILED("EXCEPTION RAISED FOR TWO-DIM " & "NULL ARRAY"); END; RESULT; END C36202C;
-- -- -- package Strings_Edit Copyright (c) Dmitry A. Kazakov -- -- Interface Luebeck -- -- Spring, 2000 -- -- -- -- Last revision : 22:14 08 May 2009 -- -- -- -- This library is free software; you can redistribute it and/or -- -- modify it under the terms of the GNU General Public License as -- -- published by the Free Software Foundation; either version 2 of -- -- the License, or (at your option) any later version. This library -- -- is distributed in the hope that it will be useful, but WITHOUT -- -- ANY WARRANTY; without even the implied warranty of -- -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -- -- General Public License for more details. You should have -- -- received a copy of the GNU General Public License along with -- -- this library; if not, write to the Free Software Foundation, -- -- Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -- -- -- -- 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. -- --____________________________________________________________________-- -- -- The following I/O items are supported by the package: -- -- (o) Integer numbers (generic, package Integer_Edit) -- (o) Floating-point numbers (generic, package Float_Edit) -- (o) Roman numbers (the child package Roman_Edit) -- (o) Strings -- -- The major differences to the standard Image/Value attributes and -- Text_IO procedures. -- -- 1. For numeric types, the base is neither written nor read. For -- instance, output of 23 as hexadecimal gives 17, not 16#17#. -- -- 2. Get procedures do not skip blank characters around input tokens, -- except the cases when the blank charactes is required by the -- syntax. -- -- 3. Get procedures use the current string position pointer, so that -- they can be consequently called advancing the pointer as the tokes -- are recognized. -- -- 4. Numeric get procedures allow to specify the expected value range. -- When the actual value is out of the range then depending on -- procedure parameters, either Constrain_Error is propagated or the -- value is forced to the nearest range boundary. -- -- 5. Put procedures also use the current string position pointer, which -- allows to call them consequently. -- -- 6. The format used for floating-number output is based on the number -- precision, instead of rather typographic approach of Text_IO. The -- precision can be specified either as the number of valid digits of -- the current base (i.e. relative) or as the position of the last -- valid digit (i.e. absolute). For instance, 12.345678 with relative -- precision 3 gives 12.3. With absolute precision -3, it gives -- 12.346. -- -- G E T P R O C E D U R E S -- -- Get procedures are used to scan strings. The first two parameters are -- always Source and Pointer. Source is the string to be scaned. Pointer -- indicates the current position. After successful completion it is -- advanced to the first string position following the recognized item. -- The value of Pointer shall be in the range Source'First .. -- Source'Last+1. The Layout_Error exception is propagated when this -- check fails. The third parameter usually accepts the value. The -- following example shows how to use get procedures: -- -- package Edit_Float is new Strings_Edit.Float_Edit (Float); -- use Edit_Float; -- -- Line : String (1..512); -- A line -- Pointer : Integer; -- Value : Float; -- TabAndSpace : Ada.Strings.Maps.Character_Set := -- To_Set (" " & Ada.Characters.Latin_1.HT); -- begin -- ... -- Pointer := Line'First; -- Get (Line, Pointer, TabAndSpace); -- Skip tabs and spaces -- Get (Line, Pointer, Value); -- Get number -- Get (Line, Pointer, TabAndSpace); -- Skip tabs and spaces -- ... -- -- The numeric Get procedures have additional parameters controlling the -- range of the input value. The parameters First and Last define the -- range of the expected value. The exception Constraint_Error is -- propagated when the value is not in the range. The exception can be -- suppressed using the parameters ToFirst and ToLast, which cause the -- input value to be substituted by the corresponding margin when the -- parameter is True. -- -- V A L U E F U N C T I O N S -- -- Each get procedure returning some value has a corresponding function -- Value. The function Value has the same parameter profile with the -- exception that the parameter Pointer is absent and the value is -- returned via result. Unlike Get the function Value tolerates spaces -- and tabs around the converted value. The whole string should be -- matched, otherwise, the exception Data_Error is propagated. -- -- P U T P R O C E D U R E S -- -- Put procedures place something into the output string Destination. -- The string is written starting from Destination (Pointer). The -- parameter Field defines the output size. When it has the value zero -- then the output size is defined by the output item. Otherwise the -- output is justified within the field and the parameter Justify -- specifies output alignment and the parameter Fill gives the pad -- character. When Field is greater than Destination'Last - Pointer + 1, -- the later is used instead. After successful completion Pointer is -- advanced to the first character following the output or to -- Destination'Last + 1. -- -- I M A G E F U N C T I O N S -- -- Image functions convert a value into string. Unlike standard S'Image -- they do not place an extra space character. -- with Ada.Strings.Maps; use Ada.Strings.Maps; with Ada.Strings; with Ada.Characters.Latin_1; package Strings_Edit is pragma Elaborate_Body (Strings_Edit); MaxSmall : constant := 250; -- Bigger than any possible Figures : constant String := "0123456789ABCDEF"; Blanks : constant String := ' ' & Ada.Characters.Latin_1.HT; SpaceAndTab : constant Character_Set := To_Set (Blanks); subtype Alignment is Ada.Strings.Alignment; Center : Alignment renames Ada.Strings.Center; Left : Alignment renames Ada.Strings.Left; Right : Alignment renames Ada.Strings.Right; subtype NumberBase is Integer range 2..16; -- -- S T R I N G S -- -- Get -- Skip blank characters -- -- Source - The string to be processed -- Pointer - The current position in the string -- Blank - The blank character -- -- This procedure skips the character Blank starting from Source -- (Pointer). Pointer is advanced to the first non-Blank character or -- to Source'Last + 1. -- -- Exceptions : -- -- Layout_Error - Pointer is not in Source'First..Source'Last + 1 -- procedure Get ( Source : String; Pointer : in out Integer; Blank : Character := ' ' ); -- -- Get -- Skip blank characters -- -- Source - The string to be processed -- Pointer - The current position in the string -- Blanks - The set characters to be considered as blank ones -- -- This procedure skips all the characters of the set Blanks starting -- from Source (Pointer). Pointer is advanced to the first non-blank -- character or to Source'Last + 1. -- -- Exceptions : -- -- Layout_Error - Pointer is not in Source'First..Source'Last + 1 -- procedure Get ( Source : String; Pointer : in out Integer; Blanks : Character_Set ); -- -- Put -- Put a character into a string -- -- Destination - The string that accepts the output -- Pointer - The current position in the string -- Value - The character to be put -- Field - The output field -- Justify - Alignment within the field -- Fill - The fill character -- -- This procedure places the specified character (Value parameter) -- into the output string Destination. The string is written starting -- from the Destination (Pointer). -- -- Exceptions: -- -- Layout_Error - Pointer is not in Destination'Range or there is -- no room for the output. -- procedure Put ( Destination : in out String; Pointer : in out Integer; Value : Character; Field : Natural := 0; Justify : Alignment := Left; Fill : Character := ' ' ); -- -- Put -- Put a string into another string -- -- Destination - The string that accepts the output -- Pointer - The current position in the string -- Value - The string to be put -- Field - The output field -- Justify - Alignment within the field -- Fill - The fill character -- -- This procedure places the specified by the Value parameter string -- into the output string Destination. The string is written starting -- from the Destination (Pointer). -- -- Exceptions: -- -- Layout_Error - Pointer is not in Destination'Range or there is -- no room for the output. -- procedure Put ( Destination : in out String; Pointer : in out Integer; Value : String; Field : Natural := 0; Justify : Alignment := Left; Fill : Character := ' ' ); -- -- R O M A N N U M B E R S -- -- Roman_Edit -- Child package for roman numbers -- -- I N T E G E R N U M B E R S -- -- Integer_Edit -- Generic child package for integer numbers -- -- F L O A T I N G - P O I N T N U M B E R S -- -- Float_Edit -- Generic child package for floating-point numbers -- -- P R E F I X T E S T -- -- -- Is_Prefix -- Test if Prefix is a prefix of Text -- -- Prefix - To check -- Source - The string -- [ Pointer ] - To start at -- [ Map ] - Used to convert characters before comparison -- -- Returns : -- -- True if Prefix is a prefix of Source -- function Is_Prefix (Prefix, Source : String) return Boolean; function Is_Prefix ( Prefix, Source : String; Pointer : Integer ) return Boolean; function Is_Prefix ( Prefix, Source : String; Map : Character_Mapping ) return Boolean; function Is_Prefix ( Prefix, Source : String; Pointer : Integer; Map : Character_Mapping ) return Boolean; -- -- T R I M F U N C T I O N S -- -- Trim -- Delete blank characters form string ends -- -- Source - The string to be processed -- Blank - The blank character -- -- This function removes the Blank character from both ends of the -- string and returns the result. -- -- Returns : -- -- The result string -- function Trim ( Source : String; Blank : Character := ' ' ) return String; -- -- Trim -- Delete blank characters form string ends -- -- Source - The string to be processed -- Blanks - The set of blank characters -- -- This function removes any characters of the Blanks set from both -- ends of the string and returns the result. -- -- Returns : -- -- The result string -- function Trim ( Source : String; Blanks : Character_Set ) return String; private pragma Inline (Is_Prefix); -- -- GetDigit -- Get one digit -- -- Symbol - To be decoded -- -- Returns : -- -- [0..15] The decoded digit value -- [16] The Symbol is not a digit -- function GetDigit (Symbol : Character) return Natural; pragma Inline (GetDigit); end Strings_Edit;
----------------------------------------------------------------------- -- gen-commands -- Commands for dynamo -- Copyright (C) 2011, 2012, 2017, 2018 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- 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.Commands.Drivers; with Util.Commands.Parsers; with Gen.Generator; package Gen.Commands is package Drivers is new Util.Commands.Drivers (Context_Type => Gen.Generator.Handler, Config_Parser => Util.Commands.Parsers.No_Parser, Driver_Name => "gen-commands"); subtype Command is Drivers.Command_Type; subtype Command_Access is Drivers.Command_Access; subtype Argument_List is Util.Commands.Argument_List; Driver : Drivers.Driver_Type; -- Print dynamo short usage. procedure Short_Help_Usage; end Gen.Commands;
-- Abstract : -- -- Type and operations for graphs. -- -- References: -- -- [1] Introduction to Algorithms, Thomas H. Cormen, Charles E. -- Leiserson, Ronald L. Rivest, Clifford Stein. -- -- [2] "An Efficient Search Algorithm to Find the Elementary Circuits -- of a Graph", James C. Tiernan, Communications of the ACM Volume 13 -- Number 12 December 1970. -- https://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.516.9454&rep=rep1&type=pdf -- -- [3] "Finding all the Elementary Circuits of a Directed Graph", -- Donald B. Johnson, SIAM J. Comput. Vol 4, No. 1, March 1975. -- https://epubs.siam.org/doi/abs/10.1137/0204007 -- -- [4] "Depth-First Search and Linear Graph Algorithms", Robert -- Tarjan, SIAM J. Comput. Vol. 1, No 2, June 1972. -- https://epubs.siam.org/doi/abs/10.1137/0201010 -- -- Copyright (C) 2017, 2019, 2020 Free Software Foundation All Rights Reserved. -- -- This library is free software; you can redistribute it and/or modify it -- under terms of the GNU General Public License as published by the Free -- Software Foundation; either version 3, or (at your option) any later -- version. This library is distributed in the hope that it will be useful, -- but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHAN- -- TABILITY or FITNESS FOR A PARTICULAR PURPOSE. -- As a special exception under Section 7 of GPL version 3, you are granted -- additional permissions described in the GCC Runtime Library Exception, -- version 3.1, as published by the Free Software Foundation. pragma License (Modified_GPL); with Ada.Containers.Doubly_Linked_Lists; with Ada.Containers.Indefinite_Vectors; with SAL.Ada_Containers.Gen_Doubly_Linked_Lists_Image; with SAL.Gen_Trimmed_Image; with SAL.Gen_Unbounded_Definite_Vectors; generic type Edge_Data is private; Default_Edge_Data : in Edge_Data; type Vertex_Index is range <>; Invalid_Vertex : in Vertex_Index'Base; type Path_Index is range <>; with function Edge_Image (Item : in Edge_Data) return String; package SAL.Gen_Graphs is type Graph is tagged private; procedure Add_Edge (Graph : in out Gen_Graphs.Graph; Vertex_A : in Vertex_Index; Vertex_B : in Vertex_Index; Data : in Edge_Data); -- Adds a directed edge from Vertex_A to Vertex_B. function Count_Nodes (Graph : in Gen_Graphs.Graph) return Ada.Containers.Count_Type; function Count_Edges (Graph : in Gen_Graphs.Graph) return Ada.Containers.Count_Type; function Multigraph (Graph : in Gen_Graphs.Graph) return Boolean; -- If more than one edge is added between two vertices, the graph is -- a multigraph. The edges are given separate identifiers internally. Multigraph_Error : exception; type Base_Edge_ID is range 0 .. Integer'Last; subtype Edge_ID is Base_Edge_ID range 1 .. Base_Edge_ID'Last; Invalid_Edge_ID : constant Base_Edge_ID := 0; -- Edge ids are unique graph-wide, assigned by Add_Edge. type Edge_Item is record ID : Base_Edge_ID := Invalid_Edge_ID; Data : Edge_Data := Default_Edge_Data; end record; function Image (Item : in Edge_Item) return String is (Edge_Image (Item.Data)); package Edge_Lists is new Ada.Containers.Doubly_Linked_Lists (Edge_Item); function "+" (Right : in Edge_Item) return Edge_Lists.List; function Edges (Graph : in Gen_Graphs.Graph; Vertex : in Vertex_Index) return Edge_Lists.List; -- All edges from Vertex, as set by Add_Edge. function Image is new SAL.Ada_Containers.Gen_Doubly_Linked_Lists_Image (Element_Type => Edge_Item, Lists => Edge_Lists, Element_Image => Image); type Path_Item is record Vertex : Vertex_Index'Base := Invalid_Vertex; Edges : Edge_Lists.List; -- Edges describe the edges leading from the previous vertex -- in the path to Vertex. If this is the first vertex in an open -- path, Edges is empty. If it is the first vertex in a -- cycle, the edge are from the last vertex in the cycle. end record; type Path is array (Positive range <>) of Path_Item; function Image (Item : in Path) return String; -- For trace, debugging. package Path_Arrays is new Ada.Containers.Indefinite_Vectors (Path_Index, Path); function "<" (Left, Right : in Path) return Boolean; package Sort_Paths is new Path_Arrays.Generic_Sorting; function Find_Paths (Graph : in out Gen_Graphs.Graph; From : in Vertex_Index; To : in Edge_Data) return Path_Arrays.Vector; -- Return all non-cyclic paths starting at From that lead to a To -- edge, using algorithm [1]. First entry in each item in result is -- From, with first edge. Last entry in result contains edge data for -- To. -- -- Raises Multigraph_Error if Graph is a multigraph. function Find_Cycles_Tiernan (Graph : in Gen_Graphs.Graph) return Path_Arrays.Vector; -- Return all cyclic paths in Graph, using algorithm [2] extended for -- multigraphs. -- -- Time complexity is exponential in the number of nodes. Used in -- unit tests for Find_Cycles, since [2] is easier to -- implement. function Find_Cycles (Graph : in Gen_Graphs.Graph) return Path_Arrays.Vector; -- Return all cyclic paths in Graph, using algorithm [3] extended for -- multigraphs. -- -- Time complexity is linear in the number of nodes and edges. package Vertex_Lists is new Ada.Containers.Doubly_Linked_Lists (Vertex_Index); function Trimmed_Image is new SAL.Gen_Trimmed_Image (Vertex_Index); function Image is new SAL.Ada_Containers.Gen_Doubly_Linked_Lists_Image (Vertex_Index, "=", Vertex_Lists, Trimmed_Image); function Loops (Graph : in Gen_Graphs.Graph) return Vertex_Lists.List; -- List of vertices that have an edge to themselves. package Adjacency_Structures is new SAL.Gen_Unbounded_Definite_Vectors (Vertex_Index, Vertex_Lists.List, Vertex_Lists.Empty_List); -- Graphs with no Edge_ID or Edge_Data; useful as intermediate results. function To_Adjancency (Graph : in Gen_Graphs.Graph) return Adjacency_Structures.Vector; package Component_Lists is new Ada.Containers.Doubly_Linked_Lists (Vertex_Lists.List, Vertex_Lists."="); function Strongly_Connected_Components (Graph : in Adjacency_Structures.Vector; Non_Trivial_Only : in Boolean := False) return Component_Lists.List; -- Find strongly connected components of Graph, using algorithm in [4]. -- If Non_Trivial_Only, don't include single-vertex components. Trace : Integer := 0; -- Some bodies output debug info to Text_IO.Current_Output for -- non-zero values of Trace. private type Edge_Node is record -- Edge is from vertex contaning this Node to Vertex_B ID : Edge_ID; Vertex_B : Vertex_Index; Multigraph : Boolean; -- Same Vertex_B as another edge in same vertex. Data : Edge_Data; end record; package Edge_Node_Lists is new Ada.Containers.Doubly_Linked_Lists (Edge_Node); package Vertex_Arrays is new SAL.Gen_Unbounded_Definite_Vectors (Vertex_Index, Edge_Node_Lists.List, Edge_Node_Lists.Empty_List); type Graph is tagged record Last_Edge_ID : Base_Edge_ID := Invalid_Edge_ID; Multigraph : Boolean := False; Vertices : Vertex_Arrays.Vector; end record; end SAL.Gen_Graphs;
package LR.Synchro.Basique is function Nom_Strategie return String; procedure Demander_Lecture; procedure Demander_Ecriture; procedure Terminer_Lecture; procedure Terminer_Ecriture; end LR.Synchro.Basique;
-- { dg-do compile } with My_Env_Versioned_Value_Set_G; package body Env_Compile_Capacity is generic with package Env_Obj_Set_Instance is new My_Env_Versioned_Value_Set_G(<>); with function Updated_Entity (Value : Env_Obj_Set_Instance.Value_T) return Boolean is <>; with package Entity_Upd_Iteration is new Env_Obj_Set_Instance.Update_G (Updated_Entity); procedure Compile_G; procedure Compile_G is begin null; end; package My_Env_Aerodrome is new My_Env_Versioned_Value_Set_G (Value_T => String); function Updated_Entity (Id : in String) return Boolean is begin return True; end; package Iteration_Aerodrome_Arrival is new My_Env_Aerodrome.Update_G (Updated_Entity); procedure Aerodrome_Arrival is new Compile_G (Env_Obj_Set_Instance => My_Env_Aerodrome, Updated_Entity => Updated_Entity, Entity_Upd_Iteration => Iteration_Aerodrome_Arrival); end Env_Compile_Capacity;
-- 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_glx_get_visual_configs_reply_t is -- Item -- type Item is record response_type : aliased Interfaces.Unsigned_8; pad0 : aliased Interfaces.Unsigned_8; sequence : aliased Interfaces.Unsigned_16; length : aliased Interfaces.Unsigned_32; num_visuals : aliased Interfaces.Unsigned_32; num_properties : aliased Interfaces.Unsigned_32; pad1 : aliased swig.int8_t_Array (0 .. 15); end record; -- Item_Array -- type Item_Array is array (Interfaces.C .size_t range <>) of aliased xcb.xcb_glx_get_visual_configs_reply_t .Item; -- Pointer -- package C_Pointers is new Interfaces.C.Pointers (Index => Interfaces.C.size_t, Element => xcb.xcb_glx_get_visual_configs_reply_t.Item, Element_Array => xcb.xcb_glx_get_visual_configs_reply_t.Item_Array, Default_Terminator => (others => <>)); subtype Pointer is C_Pointers.Pointer; -- Pointer_Array -- type Pointer_Array is array (Interfaces.C .size_t range <>) of aliased xcb.xcb_glx_get_visual_configs_reply_t .Pointer; -- Pointer_Pointer -- package C_Pointer_Pointers is new Interfaces.C.Pointers (Index => Interfaces.C.size_t, Element => xcb.xcb_glx_get_visual_configs_reply_t.Pointer, Element_Array => xcb.xcb_glx_get_visual_configs_reply_t.Pointer_Array, Default_Terminator => null); subtype Pointer_Pointer is C_Pointer_Pointers.Pointer; end xcb.xcb_glx_get_visual_configs_reply_t;
pragma Ada_2012; with Ada.Directories; with Ada.Text_IO; with Ada.Strings.Fixed; with Ada.Characters.Handling; with Generator.Frontmatter; with Generator.Rssfeed; with Generator.Sitemap; with Ada.Text_IO.Text_Streams; with Ada.Streams; with Ada.Streams.Stream_IO; with Ada.Numerics.Discrete_Random; with Progress_Indicators.Spinners; with Version; with Globals; package body Generator is use Ada.Directories; use Ada.Text_IO; use Progress_Indicators.Spinners; package CH renames Ada.Characters.Handling; package CC renames Ada.Characters.Conversions; package DIR renames Ada.Directories; subtype Die is Integer range 1 .. 256; subtype Dice is Integer range 2 * Die'First .. 2 * Die'Last; package Random_Integer is new Ada.Numerics.Discrete_Random (Die); use Random_Integer; function "<" (Left, Right : Document) return Boolean is begin return Left.Basename < Right.Basename; end "<"; function Find (List : Document_Container.List; Name : XString) return Cursor is begin for aDocument in List.Iterate loop if Element (aDocument).Basename = Name then return aDocument; end if; end loop; return No_Element; end Find; ------------------ -- Process_File -- ------------------ procedure Process_File (List : out Document_Container.List; Filepath : String; Targetpath : String; Linkpath : String) is Extension : constant String := CH.To_Upper (DIR.Extension (Filepath)); begin if Extension = "MD" or else Extension = "MARKDOWN" then List.Append ( Generator.Frontmatter.Read (Filepath, Targetpath, Linkpath) ); declare Filein : Ada.Streams.Stream_IO.File_Type; Fileout : Ada.Text_IO.File_Type; begin null; -- Ada.Streams.Stream_IO.Open -- (Filein, Ada.Streams.Stream_IO.In_File, Filepath); -- Ada.Text_IO.Create -- (Fileout, Ada.Text_IO.Out_File,Targetpath); -- Renderer.Set_Output -- (Ada.Text_IO.Text_Streams.Stream(Fileout)); -- Generator.Markdown.To_HTML (Filein); end; elsif Extension = "HTML" or else Extension = "HTM" then List.Append ( Generator.Frontmatter.Read (Filepath, Targetpath, Linkpath) ); elsif Extension = "TMPLT" then List.Append ( Generator.Frontmatter.Read (Filepath, Targetpath, Linkpath) ); else if DIR.Exists (Targetpath) then DIR.Delete_File (Targetpath); end if; Copy_File (Filepath, Targetpath); end if; end Process_File; ----------------------- -- Process_Directory -- ----------------------- procedure Process_Directory (List : out Document_Container.List; Source_Directory : String; Target_Directory : String; LinkpathIn : String) is Linkpath : constant String := Ada.Strings.Fixed.Trim (LinkpathIn, Slash, Slash); Dir : Directory_Entry_Type; Dir_Search : Search_Type; begin if Exists (Source_Directory) then Start_Search (Search => Dir_Search, Directory => Source_Directory, Pattern => "*"); loop Get_Next_Entry (Dir_Search, Dir); if Simple_Name (Dir) /= "." and then Simple_Name (Dir) /= ".." then declare Name : constant String := Simple_Name (Dir); Fullname : constant String := Full_Name (Dir); Targetname : constant String := Compose (Target_Directory, Name); Basename : constant String := Base_Name (Fullname); Process : constant Boolean := Name /= "." and Name /= ".." and Ada.Strings.Fixed.Head (Name, 1) /= "_"; begin if Process then if Debug then Ada.Text_IO.Put_Line (Fullname); end if; if Kind (Dir) = Ordinary_File then Process_File ( List, Fullname, Targetname, Linkpath & "/" & Basename & ".html"); else if not Exists (Targetname) then Create_Directory (Targetname); end if; Process_Directory ( List, Fullname, Targetname, Linkpath & "/" & Name); end if; end if; end; end if; exit when not More_Entries (Dir_Search); end loop; End_Search (Dir_Search); end if; end Process_Directory; function Get_Nav_Links ( Document : Cursor; List : Document_Container.List) return Translate_Set is Set : Translate_Set; P : Cursor := Previous (Document); N : Cursor := Next (Document); begin if P = No_Element then P := Last (List); end if; Insert (Set, Assoc ("previouslink", CC.To_String (To_String (Element (P).Linkpath)))); if N = No_Element then N := First (List); end if; Insert (Set, Assoc ("nextlink", CC.To_String (To_String (Element (N).Linkpath)))); return Set; end Get_Nav_Links; procedure Process_Documents ( List : Document_Container.List; Set : Translate_Set; Layoutfolder : String; Source_Directory : String; Targetpath : String) is begin for Document in List.Iterate loop if Debug then Ada.Text_IO.Put_Line ( CC.To_String ( To_String ( Element (Document).Targetpath)) ); end if; if Length (Element (Document).Layout) > 0 then declare Name : constant String := CC.To_String ( To_String (Element (Document).Layout) ); Base_Name : constant String := DIR.Base_Name (Name); Extension : constant String := DIR.Extension (Name); Layoutfile : constant String := DIR.Compose (Layoutfolder, Base_Name, Extension); Combined_Set : Translate_Set; Filename : constant String := CC.To_String ( To_String (Element (Document).Targetpath) ); begin Insert (Combined_Set, Set); Insert (Combined_Set, Element (Document).T); Insert (Combined_Set, Get_Nav_Links (Document, List)); if DIR.Exists (Layoutfile) then declare F : File_Type; Template : constant String := Templates_Parser.Parse (Layoutfile, Combined_Set); begin if Exists (Filename) then Delete_File (Filename); end if; Create (F, Mode => Out_File, Name => Filename); Put (F, Template); Close (F); end; else Ada.Text_IO.Put_Line ("Layoutfile " & Layoutfile & " does not exist"); end if; end; else Ada.Text_IO.Put_Line ("Layout for " & CC.To_String (To_String ( Element (Document).Filepath)) & " is not defined" ); end if; end loop; end Process_Documents; function Create_Vector ( List : Document_Container.List; Prefix : String) return Translate_Set is Set : Translate_Set; Pagepath : Tag; Pagename : Tag; Pageexcerpt : Tag; begin for Document of List loop declare Name : constant String := Read_From_Set (Document.T, "title"); Base_Name : constant String := CC.To_String (To_String (Document.Basename)); Excerpt : constant String := Read_From_Set (Document.T, "title"); begin Pagepath := Pagepath & Ada.Strings.Fixed.Trim ( CC.To_String (To_String (Document.Linkpath)), Slash, Slash); Pageexcerpt := Pageexcerpt & Excerpt; if Name'Length > 0 then Pagename := Pagename & Name; else Pagename := Pagename & Base_Name; end if; end; end loop; Insert (Set, Assoc (Prefix & "path", Pagepath)); Insert (Set, Assoc (Prefix & "name", Pagename)); Insert (Set, Assoc (Prefix & "excerpt", Pageexcerpt)); return Set; end Create_Vector; function Read_From_Set ( Set : Translate_Set; Token : String) return String is Assoc : constant Association := Get (Set, Token); begin if Assoc /= Null_Association then return Get (Assoc); end if; return ""; end Read_From_Set; ----------- -- Start -- ----------- procedure Start ( Source_Directory : String; Target_Directory : String) is Config_Path : constant String := DIR.Compose (Source_Directory, Globals.Site_Configuration_Name); Layoutfolder : constant String := Compose (Source_Directory, Globals.Layout_Folder_Name); Blog_Source_Directory : constant String := Compose (Source_Directory, Globals.Posts_Source_Folder_Name); Blog_Target_Directory : constant String := Compose (Target_Directory, Globals.Blog_Target_Folder_Name); Documents : Document_Container.List; Posts : Document_Container.List; Set : Translate_Set; Site_Set : Translate_Set; G : Random_Integer.Generator; D : Dice; Indicator : Spinner := Make; Index: Cursor := No_Element; begin Ada.Text_IO.Put (Value (Indicator)); Site_Set := Null_Set; if Exists (Config_Path) then Generator.Frontmatter.Read_Content (Config_Path, Site_Set); else Ada.Text_IO.Put_Line ("No site configuration found at " & Config_Path); end if; -- Copy static files and directories and create List of pages. Process_Directory (Documents, Source_Directory, Target_Directory, ""); Sort (Documents); Index := Find (Documents, To_XString ("index")); if Index /= No_Element then Prepend (Documents, Element (Index)); Delete (Documents, Index); end if; -- Process blog if Exists (Blog_Source_Directory) then -- Copy static files and directories and create List of pages. if not Exists (Blog_Target_Directory) then Create_Directory (Blog_Target_Directory); end if; Process_Directory (Posts, Blog_Source_Directory, Blog_Target_Directory, Globals.Blog_Target_Folder_Name); end if; Sort (Posts); Insert (Set, Create_Vector (Documents, "page")); Insert (Set, Create_Vector (Posts, "post")); Insert (Set, Site_Set); Insert (Set, Assoc ("meta_generator_link", Version.Link)); Insert (Set, Assoc ("meta_generator", Version.Name)); Insert (Set, Assoc ("meta_generator_version", Version.Current)); Reset (G); D := Random (G); Insert (Set, Assoc ("meta_cachebuster", Ada.Strings.Fixed.Trim (D'Image, Ada.Strings.Both))); -- Create RSS feed Insert (Set, Assoc ("atomfeedurl", Generator.Rssfeed.Create (Posts, Target_Directory, Site_Set)) ); -- Create RSS feed Insert (Set, Assoc ("sitemapurl", Generator.Sitemap.Create (Posts, Documents, Target_Directory, Site_Set)) ); -- Process non-static files Process_Documents (Documents, Set, Layoutfolder, Source_Directory, Target_Directory); Process_Documents (Posts, Set, Layoutfolder, Blog_Source_Directory, Blog_Target_Directory); Disable_All; Ada.Text_IO.Put (Value (Indicator)); end Start; end Generator;
M:InitDevice F:G$enter_DefaultMode_from_RESET$0$0({2}DF,SV:S),Z,0,0,0,0,0 S:LInitDevice.enter_DefaultMode_from_RESET$SFRPAGE_save$1$21({1}SC:U),R,0,0,[r7] F:G$VREG_0_enter_DefaultMode_from_RESET$0$0({2}DF,SV:S),Z,0,0,0,0,0 F:G$CLOCK_0_enter_DefaultMode_from_RESET$0$0({2}DF,SV:S),Z,0,0,0,0,0 F:G$PORTS_0_enter_DefaultMode_from_RESET$0$0({2}DF,SV:S),Z,0,0,0,0,0 F:G$PORTS_1_enter_DefaultMode_from_RESET$0$0({2}DF,SV:S),Z,0,0,0,0,0 F:G$PBCFG_0_enter_DefaultMode_from_RESET$0$0({2}DF,SV:S),Z,0,0,0,0,0 F:G$CIP51_0_enter_DefaultMode_from_RESET$0$0({2}DF,SV:S),Z,0,0,0,0,0 F:G$TIMER01_0_enter_DefaultMode_from_RESET$0$0({2}DF,SV:S),Z,0,0,0,0,0 S:LInitDevice.TIMER01_0_enter_DefaultMode_from_RESET$TCON_save$1$35({1}SC:U),R,0,0,[r7] F:G$TIMER16_2_enter_DefaultMode_from_RESET$0$0({2}DF,SV:S),Z,0,0,0,0,0 S:LInitDevice.TIMER16_2_enter_DefaultMode_from_RESET$TMR2CN0_TR2_save$1$37({1}SC:U),R,0,0,[r7] F:G$TIMER16_3_enter_DefaultMode_from_RESET$0$0({2}DF,SV:S),Z,0,0,0,0,0 S:LInitDevice.TIMER16_3_enter_DefaultMode_from_RESET$TMR3CN0_TR3_save$1$39({1}SC:U),R,0,0,[r7] F:G$TIMER_SETUP_0_enter_DefaultMode_from_RESET$0$0({2}DF,SV:S),Z,0,0,0,0,0 F:G$SMBUS_0_enter_DefaultMode_from_RESET$0$0({2}DF,SV:S),Z,0,0,0,0,0 F:G$UART_0_enter_DefaultMode_from_RESET$0$0({2}DF,SV:S),Z,0,0,0,0,0 F:G$INTERRUPT_0_enter_DefaultMode_from_RESET$0$0({2}DF,SV:S),Z,0,0,0,0,0 F:G$PCA_0_enter_DefaultMode_from_RESET$0$0({2}DF,SV:S),Z,0,0,0,0,0 F:G$PCACH_0_enter_DefaultMode_from_RESET$0$0({2}DF,SV:S),Z,0,0,0,0,0 F:G$PCACH_1_enter_DefaultMode_from_RESET$0$0({2}DF,SV:S),Z,0,0,0,0,0 F:G$PCACH_2_enter_DefaultMode_from_RESET$0$0({2}DF,SV:S),Z,0,0,0,0,0 T:FInitDevice$SI_UU32[({0}S:S$u32$0$0({4}SL:U),Z,0,0)({0}S:S$s32$0$0({4}SL:S),Z,0,0)({0}S:S$uu16$0$0({4}DA2d,STSI_UU16:S),Z,0,0)({0}S:S$u16$0$0({4}DA2d,SI:U),Z,0,0)({0}S:S$s16$0$0({4}DA2d,SI:S),Z,0,0)({0}S:S$u8$0$0({4}DA4d,SC:U),Z,0,0)({0}S:S$s8$0$0({4}DA4d,SC:S),Z,0,0)] T:FInitDevice$SI_UU16[({0}S:S$u16$0$0({2}SI:U),Z,0,0)({0}S:S$s16$0$0({2}SI:S),Z,0,0)({0}S:S$u8$0$0({2}DA2d,SC:U),Z,0,0)({0}S:S$s8$0$0({2}DA2d,SC:S),Z,0,0)] T:FInitDevice$SI_GEN_PTR[({0}S:S$u8$0$0({3}DA3d,SC:U),Z,0,0)({0}S:S$gptr$0$0({3}ST__00000000:S),Z,0,0)] T:FInitDevice$__00000000[({0}S:S$memtype$0$0({1}SC:U),Z,0,0)({1}S:S$address$0$0({2}STSI_UU16:S),Z,0,0)] S:G$ACC$0$0({1}SC:U),I,0,0 S:G$ADC0AC$0$0({1}SC:U),I,0,0 S:G$ADC0CF$0$0({1}SC:U),I,0,0 S:G$ADC0CN0$0$0({1}SC:U),I,0,0 S:G$ADC0CN1$0$0({1}SC:U),I,0,0 S:G$ADC0GTH$0$0({1}SC:U),I,0,0 S:G$ADC0GTL$0$0({1}SC:U),I,0,0 S:G$ADC0H$0$0({1}SC:U),I,0,0 S:G$ADC0L$0$0({1}SC:U),I,0,0 S:G$ADC0LTH$0$0({1}SC:U),I,0,0 S:G$ADC0LTL$0$0({1}SC:U),I,0,0 S:G$ADC0MX$0$0({1}SC:U),I,0,0 S:G$ADC0PWR$0$0({1}SC:U),I,0,0 S:G$ADC0TK$0$0({1}SC:U),I,0,0 S:G$B$0$0({1}SC:U),I,0,0 S:G$CKCON0$0$0({1}SC:U),I,0,0 S:G$CKCON1$0$0({1}SC:U),I,0,0 S:G$CLKSEL$0$0({1}SC:U),I,0,0 S:G$CMP0CN0$0$0({1}SC:U),I,0,0 S:G$CMP0CN1$0$0({1}SC:U),I,0,0 S:G$CMP0MD$0$0({1}SC:U),I,0,0 S:G$CMP0MX$0$0({1}SC:U),I,0,0 S:G$CMP1CN0$0$0({1}SC:U),I,0,0 S:G$CMP1CN1$0$0({1}SC:U),I,0,0 S:G$CMP1MD$0$0({1}SC:U),I,0,0 S:G$CMP1MX$0$0({1}SC:U),I,0,0 S:G$CRC0CN0$0$0({1}SC:U),I,0,0 S:G$CRC0CN1$0$0({1}SC:U),I,0,0 S:G$CRC0CNT$0$0({1}SC:U),I,0,0 S:G$CRC0DAT$0$0({1}SC:U),I,0,0 S:G$CRC0FLIP$0$0({1}SC:U),I,0,0 S:G$CRC0IN$0$0({1}SC:U),I,0,0 S:G$CRC0ST$0$0({1}SC:U),I,0,0 S:G$DERIVID$0$0({1}SC:U),I,0,0 S:G$DEVICEID$0$0({1}SC:U),I,0,0 S:G$DPH$0$0({1}SC:U),I,0,0 S:G$DPL$0$0({1}SC:U),I,0,0 S:G$EIE1$0$0({1}SC:U),I,0,0 S:G$EIE2$0$0({1}SC:U),I,0,0 S:G$EIP1$0$0({1}SC:U),I,0,0 S:G$EIP1H$0$0({1}SC:U),I,0,0 S:G$EIP2$0$0({1}SC:U),I,0,0 S:G$EIP2H$0$0({1}SC:U),I,0,0 S:G$EMI0CN$0$0({1}SC:U),I,0,0 S:G$FLKEY$0$0({1}SC:U),I,0,0 S:G$HFO0CAL$0$0({1}SC:U),I,0,0 S:G$HFO1CAL$0$0({1}SC:U),I,0,0 S:G$HFOCN$0$0({1}SC:U),I,0,0 S:G$I2C0CN0$0$0({1}SC:U),I,0,0 S:G$I2C0DIN$0$0({1}SC:U),I,0,0 S:G$I2C0DOUT$0$0({1}SC:U),I,0,0 S:G$I2C0FCN0$0$0({1}SC:U),I,0,0 S:G$I2C0FCN1$0$0({1}SC:U),I,0,0 S:G$I2C0FCT$0$0({1}SC:U),I,0,0 S:G$I2C0SLAD$0$0({1}SC:U),I,0,0 S:G$I2C0STAT$0$0({1}SC:U),I,0,0 S:G$IE$0$0({1}SC:U),I,0,0 S:G$IP$0$0({1}SC:U),I,0,0 S:G$IPH$0$0({1}SC:U),I,0,0 S:G$IT01CF$0$0({1}SC:U),I,0,0 S:G$LFO0CN$0$0({1}SC:U),I,0,0 S:G$P0$0$0({1}SC:U),I,0,0 S:G$P0MASK$0$0({1}SC:U),I,0,0 S:G$P0MAT$0$0({1}SC:U),I,0,0 S:G$P0MDIN$0$0({1}SC:U),I,0,0 S:G$P0MDOUT$0$0({1}SC:U),I,0,0 S:G$P0SKIP$0$0({1}SC:U),I,0,0 S:G$P1$0$0({1}SC:U),I,0,0 S:G$P1MASK$0$0({1}SC:U),I,0,0 S:G$P1MAT$0$0({1}SC:U),I,0,0 S:G$P1MDIN$0$0({1}SC:U),I,0,0 S:G$P1MDOUT$0$0({1}SC:U),I,0,0 S:G$P1SKIP$0$0({1}SC:U),I,0,0 S:G$P2$0$0({1}SC:U),I,0,0 S:G$P2MASK$0$0({1}SC:U),I,0,0 S:G$P2MAT$0$0({1}SC:U),I,0,0 S:G$P2MDIN$0$0({1}SC:U),I,0,0 S:G$P2MDOUT$0$0({1}SC:U),I,0,0 S:G$P2SKIP$0$0({1}SC:U),I,0,0 S:G$P3$0$0({1}SC:U),I,0,0 S:G$P3MDIN$0$0({1}SC:U),I,0,0 S:G$P3MDOUT$0$0({1}SC:U),I,0,0 S:G$PCA0CENT$0$0({1}SC:U),I,0,0 S:G$PCA0CLR$0$0({1}SC:U),I,0,0 S:G$PCA0CN0$0$0({1}SC:U),I,0,0 S:G$PCA0CPH0$0$0({1}SC:U),I,0,0 S:G$PCA0CPH1$0$0({1}SC:U),I,0,0 S:G$PCA0CPH2$0$0({1}SC:U),I,0,0 S:G$PCA0CPL0$0$0({1}SC:U),I,0,0 S:G$PCA0CPL1$0$0({1}SC:U),I,0,0 S:G$PCA0CPL2$0$0({1}SC:U),I,0,0 S:G$PCA0CPM0$0$0({1}SC:U),I,0,0 S:G$PCA0CPM1$0$0({1}SC:U),I,0,0 S:G$PCA0CPM2$0$0({1}SC:U),I,0,0 S:G$PCA0H$0$0({1}SC:U),I,0,0 S:G$PCA0L$0$0({1}SC:U),I,0,0 S:G$PCA0MD$0$0({1}SC:U),I,0,0 S:G$PCA0POL$0$0({1}SC:U),I,0,0 S:G$PCA0PWM$0$0({1}SC:U),I,0,0 S:G$PCON0$0$0({1}SC:U),I,0,0 S:G$PCON1$0$0({1}SC:U),I,0,0 S:G$PFE0CN$0$0({1}SC:U),I,0,0 S:G$PRTDRV$0$0({1}SC:U),I,0,0 S:G$PSCTL$0$0({1}SC:U),I,0,0 S:G$PSW$0$0({1}SC:U),I,0,0 S:G$REF0CN$0$0({1}SC:U),I,0,0 S:G$REG0CN$0$0({1}SC:U),I,0,0 S:G$REG1CN$0$0({1}SC:U),I,0,0 S:G$REVID$0$0({1}SC:U),I,0,0 S:G$RSTSRC$0$0({1}SC:U),I,0,0 S:G$SBCON1$0$0({1}SC:U),I,0,0 S:G$SBRLH1$0$0({1}SC:U),I,0,0 S:G$SBRLL1$0$0({1}SC:U),I,0,0 S:G$SBUF0$0$0({1}SC:U),I,0,0 S:G$SBUF1$0$0({1}SC:U),I,0,0 S:G$SCON0$0$0({1}SC:U),I,0,0 S:G$SCON1$0$0({1}SC:U),I,0,0 S:G$SFRPAGE$0$0({1}SC:U),I,0,0 S:G$SFRPGCN$0$0({1}SC:U),I,0,0 S:G$SFRSTACK$0$0({1}SC:U),I,0,0 S:G$SMB0ADM$0$0({1}SC:U),I,0,0 S:G$SMB0ADR$0$0({1}SC:U),I,0,0 S:G$SMB0CF$0$0({1}SC:U),I,0,0 S:G$SMB0CN0$0$0({1}SC:U),I,0,0 S:G$SMB0DAT$0$0({1}SC:U),I,0,0 S:G$SMB0FCN0$0$0({1}SC:U),I,0,0 S:G$SMB0FCN1$0$0({1}SC:U),I,0,0 S:G$SMB0FCT$0$0({1}SC:U),I,0,0 S:G$SMB0RXLN$0$0({1}SC:U),I,0,0 S:G$SMB0TC$0$0({1}SC:U),I,0,0 S:G$SMOD1$0$0({1}SC:U),I,0,0 S:G$SP$0$0({1}SC:U),I,0,0 S:G$SPI0CFG$0$0({1}SC:U),I,0,0 S:G$SPI0CKR$0$0({1}SC:U),I,0,0 S:G$SPI0CN0$0$0({1}SC:U),I,0,0 S:G$SPI0DAT$0$0({1}SC:U),I,0,0 S:G$SPI0FCN0$0$0({1}SC:U),I,0,0 S:G$SPI0FCN1$0$0({1}SC:U),I,0,0 S:G$SPI0FCT$0$0({1}SC:U),I,0,0 S:G$TCON$0$0({1}SC:U),I,0,0 S:G$TH0$0$0({1}SC:U),I,0,0 S:G$TH1$0$0({1}SC:U),I,0,0 S:G$TL0$0$0({1}SC:U),I,0,0 S:G$TL1$0$0({1}SC:U),I,0,0 S:G$TMOD$0$0({1}SC:U),I,0,0 S:G$TMR2CN0$0$0({1}SC:U),I,0,0 S:G$TMR2CN1$0$0({1}SC:U),I,0,0 S:G$TMR2H$0$0({1}SC:U),I,0,0 S:G$TMR2L$0$0({1}SC:U),I,0,0 S:G$TMR2RLH$0$0({1}SC:U),I,0,0 S:G$TMR2RLL$0$0({1}SC:U),I,0,0 S:G$TMR3CN0$0$0({1}SC:U),I,0,0 S:G$TMR3CN1$0$0({1}SC:U),I,0,0 S:G$TMR3H$0$0({1}SC:U),I,0,0 S:G$TMR3L$0$0({1}SC:U),I,0,0 S:G$TMR3RLH$0$0({1}SC:U),I,0,0 S:G$TMR3RLL$0$0({1}SC:U),I,0,0 S:G$TMR4CN0$0$0({1}SC:U),I,0,0 S:G$TMR4CN1$0$0({1}SC:U),I,0,0 S:G$TMR4H$0$0({1}SC:U),I,0,0 S:G$TMR4L$0$0({1}SC:U),I,0,0 S:G$TMR4RLH$0$0({1}SC:U),I,0,0 S:G$TMR4RLL$0$0({1}SC:U),I,0,0 S:G$UART1FCN0$0$0({1}SC:U),I,0,0 S:G$UART1FCN1$0$0({1}SC:U),I,0,0 S:G$UART1FCT$0$0({1}SC:U),I,0,0 S:G$UART1LIN$0$0({1}SC:U),I,0,0 S:G$USB0ADR$0$0({1}SC:U),I,0,0 S:G$USB0AEC$0$0({1}SC:U),I,0,0 S:G$USB0CDCF$0$0({1}SC:U),I,0,0 S:G$USB0CDCN$0$0({1}SC:U),I,0,0 S:G$USB0CDSTA$0$0({1}SC:U),I,0,0 S:G$USB0CF$0$0({1}SC:U),I,0,0 S:G$USB0DAT$0$0({1}SC:U),I,0,0 S:G$USB0XCN$0$0({1}SC:U),I,0,0 S:G$VDM0CN$0$0({1}SC:U),I,0,0 S:G$WDTCN$0$0({1}SC:U),I,0,0 S:G$XBR0$0$0({1}SC:U),I,0,0 S:G$XBR1$0$0({1}SC:U),I,0,0 S:G$XBR2$0$0({1}SC:U),I,0,0 S:G$ADC0GT$0$0({2}SI:U),I,0,0 S:G$ADC0$0$0({2}SI:U),I,0,0 S:G$ADC0LT$0$0({2}SI:U),I,0,0 S:G$DP$0$0({2}SI:U),I,0,0 S:G$PCA0CP0$0$0({2}SI:U),I,0,0 S:G$PCA0CP1$0$0({2}SI:U),I,0,0 S:G$PCA0CP2$0$0({2}SI:U),I,0,0 S:G$PCA0$0$0({2}SI:U),I,0,0 S:G$SBRL1$0$0({2}SI:U),I,0,0 S:G$TMR2$0$0({2}SI:U),I,0,0 S:G$TMR2RL$0$0({2}SI:U),I,0,0 S:G$TMR3$0$0({2}SI:U),I,0,0 S:G$TMR3RL$0$0({2}SI:U),I,0,0 S:G$TMR4$0$0({2}SI:U),I,0,0 S:G$TMR4RL$0$0({2}SI:U),I,0,0 S:G$_XPAGE$0$0({1}SC:U),I,0,0 S:G$ACC_ACC0$0$0({1}SX:U),J,0,0 S:G$ACC_ACC1$0$0({1}SX:U),J,0,0 S:G$ACC_ACC2$0$0({1}SX:U),J,0,0 S:G$ACC_ACC3$0$0({1}SX:U),J,0,0 S:G$ACC_ACC4$0$0({1}SX:U),J,0,0 S:G$ACC_ACC5$0$0({1}SX:U),J,0,0 S:G$ACC_ACC6$0$0({1}SX:U),J,0,0 S:G$ACC_ACC7$0$0({1}SX:U),J,0,0 S:G$ADC0CN0_ADCM0$0$0({1}SX:U),J,0,0 S:G$ADC0CN0_ADCM1$0$0({1}SX:U),J,0,0 S:G$ADC0CN0_ADCM2$0$0({1}SX:U),J,0,0 S:G$ADC0CN0_ADWINT$0$0({1}SX:U),J,0,0 S:G$ADC0CN0_ADBUSY$0$0({1}SX:U),J,0,0 S:G$ADC0CN0_ADINT$0$0({1}SX:U),J,0,0 S:G$ADC0CN0_ADBMEN$0$0({1}SX:U),J,0,0 S:G$ADC0CN0_ADEN$0$0({1}SX:U),J,0,0 S:G$B_B0$0$0({1}SX:U),J,0,0 S:G$B_B1$0$0({1}SX:U),J,0,0 S:G$B_B2$0$0({1}SX:U),J,0,0 S:G$B_B3$0$0({1}SX:U),J,0,0 S:G$B_B4$0$0({1}SX:U),J,0,0 S:G$B_B5$0$0({1}SX:U),J,0,0 S:G$B_B6$0$0({1}SX:U),J,0,0 S:G$B_B7$0$0({1}SX:U),J,0,0 S:G$IE_EX0$0$0({1}SX:U),J,0,0 S:G$IE_ET0$0$0({1}SX:U),J,0,0 S:G$IE_EX1$0$0({1}SX:U),J,0,0 S:G$IE_ET1$0$0({1}SX:U),J,0,0 S:G$IE_ES0$0$0({1}SX:U),J,0,0 S:G$IE_ET2$0$0({1}SX:U),J,0,0 S:G$IE_ESPI0$0$0({1}SX:U),J,0,0 S:G$IE_EA$0$0({1}SX:U),J,0,0 S:G$IP_PX0$0$0({1}SX:U),J,0,0 S:G$IP_PT0$0$0({1}SX:U),J,0,0 S:G$IP_PX1$0$0({1}SX:U),J,0,0 S:G$IP_PT1$0$0({1}SX:U),J,0,0 S:G$IP_PS0$0$0({1}SX:U),J,0,0 S:G$IP_PT2$0$0({1}SX:U),J,0,0 S:G$IP_PSPI0$0$0({1}SX:U),J,0,0 S:G$P0_B0$0$0({1}SX:U),J,0,0 S:G$P0_B1$0$0({1}SX:U),J,0,0 S:G$P0_B2$0$0({1}SX:U),J,0,0 S:G$P0_B3$0$0({1}SX:U),J,0,0 S:G$P0_B4$0$0({1}SX:U),J,0,0 S:G$P0_B5$0$0({1}SX:U),J,0,0 S:G$P0_B6$0$0({1}SX:U),J,0,0 S:G$P0_B7$0$0({1}SX:U),J,0,0 S:G$P1_B0$0$0({1}SX:U),J,0,0 S:G$P1_B1$0$0({1}SX:U),J,0,0 S:G$P1_B2$0$0({1}SX:U),J,0,0 S:G$P1_B3$0$0({1}SX:U),J,0,0 S:G$P1_B4$0$0({1}SX:U),J,0,0 S:G$P1_B5$0$0({1}SX:U),J,0,0 S:G$P1_B6$0$0({1}SX:U),J,0,0 S:G$P1_B7$0$0({1}SX:U),J,0,0 S:G$P2_B0$0$0({1}SX:U),J,0,0 S:G$P2_B1$0$0({1}SX:U),J,0,0 S:G$P2_B2$0$0({1}SX:U),J,0,0 S:G$P2_B3$0$0({1}SX:U),J,0,0 S:G$P3_B0$0$0({1}SX:U),J,0,0 S:G$P3_B1$0$0({1}SX:U),J,0,0 S:G$PCA0CN0_CCF0$0$0({1}SX:U),J,0,0 S:G$PCA0CN0_CCF1$0$0({1}SX:U),J,0,0 S:G$PCA0CN0_CCF2$0$0({1}SX:U),J,0,0 S:G$PCA0CN0_CR$0$0({1}SX:U),J,0,0 S:G$PCA0CN0_CF$0$0({1}SX:U),J,0,0 S:G$PSW_PARITY$0$0({1}SX:U),J,0,0 S:G$PSW_F1$0$0({1}SX:U),J,0,0 S:G$PSW_OV$0$0({1}SX:U),J,0,0 S:G$PSW_RS0$0$0({1}SX:U),J,0,0 S:G$PSW_RS1$0$0({1}SX:U),J,0,0 S:G$PSW_F0$0$0({1}SX:U),J,0,0 S:G$PSW_AC$0$0({1}SX:U),J,0,0 S:G$PSW_CY$0$0({1}SX:U),J,0,0 S:G$SCON0_RI$0$0({1}SX:U),J,0,0 S:G$SCON0_TI$0$0({1}SX:U),J,0,0 S:G$SCON0_RB8$0$0({1}SX:U),J,0,0 S:G$SCON0_TB8$0$0({1}SX:U),J,0,0 S:G$SCON0_REN$0$0({1}SX:U),J,0,0 S:G$SCON0_MCE$0$0({1}SX:U),J,0,0 S:G$SCON0_SMODE$0$0({1}SX:U),J,0,0 S:G$SCON1_RI$0$0({1}SX:U),J,0,0 S:G$SCON1_TI$0$0({1}SX:U),J,0,0 S:G$SCON1_RBX$0$0({1}SX:U),J,0,0 S:G$SCON1_TBX$0$0({1}SX:U),J,0,0 S:G$SCON1_REN$0$0({1}SX:U),J,0,0 S:G$SCON1_PERR$0$0({1}SX:U),J,0,0 S:G$SCON1_OVR$0$0({1}SX:U),J,0,0 S:G$SMB0CN0_SI$0$0({1}SX:U),J,0,0 S:G$SMB0CN0_ACK$0$0({1}SX:U),J,0,0 S:G$SMB0CN0_ARBLOST$0$0({1}SX:U),J,0,0 S:G$SMB0CN0_ACKRQ$0$0({1}SX:U),J,0,0 S:G$SMB0CN0_STO$0$0({1}SX:U),J,0,0 S:G$SMB0CN0_STA$0$0({1}SX:U),J,0,0 S:G$SMB0CN0_TXMODE$0$0({1}SX:U),J,0,0 S:G$SMB0CN0_MASTER$0$0({1}SX:U),J,0,0 S:G$SPI0CN0_SPIEN$0$0({1}SX:U),J,0,0 S:G$SPI0CN0_TXNF$0$0({1}SX:U),J,0,0 S:G$SPI0CN0_NSSMD0$0$0({1}SX:U),J,0,0 S:G$SPI0CN0_NSSMD1$0$0({1}SX:U),J,0,0 S:G$SPI0CN0_RXOVRN$0$0({1}SX:U),J,0,0 S:G$SPI0CN0_MODF$0$0({1}SX:U),J,0,0 S:G$SPI0CN0_WCOL$0$0({1}SX:U),J,0,0 S:G$SPI0CN0_SPIF$0$0({1}SX:U),J,0,0 S:G$TCON_IT0$0$0({1}SX:U),J,0,0 S:G$TCON_IE0$0$0({1}SX:U),J,0,0 S:G$TCON_IT1$0$0({1}SX:U),J,0,0 S:G$TCON_IE1$0$0({1}SX:U),J,0,0 S:G$TCON_TR0$0$0({1}SX:U),J,0,0 S:G$TCON_TF0$0$0({1}SX:U),J,0,0 S:G$TCON_TR1$0$0({1}SX:U),J,0,0 S:G$TCON_TF1$0$0({1}SX:U),J,0,0 S:G$TMR2CN0_T2XCLK0$0$0({1}SX:U),J,0,0 S:G$TMR2CN0_T2XCLK1$0$0({1}SX:U),J,0,0 S:G$TMR2CN0_TR2$0$0({1}SX:U),J,0,0 S:G$TMR2CN0_T2SPLIT$0$0({1}SX:U),J,0,0 S:G$TMR2CN0_TF2CEN$0$0({1}SX:U),J,0,0 S:G$TMR2CN0_TF2LEN$0$0({1}SX:U),J,0,0 S:G$TMR2CN0_TF2L$0$0({1}SX:U),J,0,0 S:G$TMR2CN0_TF2H$0$0({1}SX:U),J,0,0 S:G$TMR4CN0_T4XCLK0$0$0({1}SX:U),J,0,0 S:G$TMR4CN0_T4XCLK1$0$0({1}SX:U),J,0,0 S:G$TMR4CN0_TR4$0$0({1}SX:U),J,0,0 S:G$TMR4CN0_T4SPLIT$0$0({1}SX:U),J,0,0 S:G$TMR4CN0_TF4CEN$0$0({1}SX:U),J,0,0 S:G$TMR4CN0_TF4LEN$0$0({1}SX:U),J,0,0 S:G$TMR4CN0_TF4L$0$0({1}SX:U),J,0,0 S:G$TMR4CN0_TF4H$0$0({1}SX:U),J,0,0 S:G$UART1FCN1_RIE$0$0({1}SX:U),J,0,0 S:G$UART1FCN1_RXTO0$0$0({1}SX:U),J,0,0 S:G$UART1FCN1_RXTO1$0$0({1}SX:U),J,0,0 S:G$UART1FCN1_RFRQ$0$0({1}SX:U),J,0,0 S:G$UART1FCN1_TIE$0$0({1}SX:U),J,0,0 S:G$UART1FCN1_TXHOLD$0$0({1}SX:U),J,0,0 S:G$UART1FCN1_TXNF$0$0({1}SX:U),J,0,0 S:G$UART1FCN1_TFRQ$0$0({1}SX:U),J,0,0 S:G$HFOSC_0_enter_DefaultMode_from_RESET$0$0({2}DF,SV:S),C,0,0
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- G N A T . T A B L E -- -- -- -- S p e c -- -- -- -- Copyright (C) 1998-2010, AdaCore -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- -- -- -- -- -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ -- Resizable one dimensional array support -- This package provides an implementation of dynamically resizable one -- dimensional arrays. The idea is to mimic the normal Ada semantics for -- arrays as closely as possible with the one additional capability of -- dynamically modifying the value of the Last attribute. -- This package provides a facility similar to that of GNAT.Dynamic_Tables, -- except that this package declares a single instance of the table type, -- while an instantiation of GNAT.Dynamic_Tables creates a type that can be -- used to define dynamic instances of the table. -- Note that this interface should remain synchronized with those in -- GNAT.Dynamic_Tables and the GNAT compiler source unit Table to keep -- as much coherency as possible between these three related units. generic type Table_Component_Type is private; type Table_Index_Type is range <>; Table_Low_Bound : Table_Index_Type; Table_Initial : Positive; Table_Increment : Natural; package GNAT.Table is pragma Elaborate_Body; -- Table_Component_Type and Table_Index_Type specify the type of the -- array, Table_Low_Bound is the lower bound. Index_type must be an -- integer type. The effect is roughly to declare: -- Table : array (Table_Index_Type range Table_Low_Bound .. <>) -- of Table_Component_Type; -- Note: since the upper bound can be one less than the lower -- bound for an empty array, the table index type must be able -- to cover this range, e.g. if the lower bound is 1, then the -- Table_Index_Type should be Natural rather than Positive. -- Table_Component_Type may be any Ada type, except that controlled -- types are not supported. Note however that default initialization -- will NOT occur for array components. -- The Table_Initial values controls the allocation of the table when -- it is first allocated, either by default, or by an explicit Init call. -- The Table_Increment value controls the amount of increase, if the -- table has to be increased in size. The value given is a percentage -- value (e.g. 100 = increase table size by 100%, i.e. double it). -- The Last and Set_Last subprograms provide control over the current -- logical allocation. They are quite efficient, so they can be used -- freely (expensive reallocation occurs only at major granularity -- chunks controlled by the allocation parameters). -- Note: we do not make the table components aliased, since this would -- restrict the use of table for discriminated types. If it is necessary -- to take the access of a table element, use Unrestricted_Access. -- WARNING: On HPPA, the virtual addressing approach used in this unit -- is incompatible with the indexing instructions on the HPPA. So when -- using this unit, compile your application with -mdisable-indexing. -- WARNING: If the table is reallocated, then the address of all its -- components will change. So do not capture the address of an element -- and then use the address later after the table may be reallocated. -- One tricky case of this is passing an element of the table to a -- subprogram by reference where the table gets reallocated during -- the execution of the subprogram. The best rule to follow is never -- to pass a table element as a parameter except for the case of IN -- mode parameters with scalar values. type Table_Type is array (Table_Index_Type range <>) of Table_Component_Type; subtype Big_Table_Type is Table_Type (Table_Low_Bound .. Table_Index_Type'Last); -- We work with pointers to a bogus array type that is constrained -- with the maximum possible range bound. This means that the pointer -- is a thin pointer, which is more efficient. Since subscript checks -- in any case must be on the logical, rather than physical bounds, -- safety is not compromised by this approach. These types should never -- be used by the client. type Table_Ptr is access all Big_Table_Type; for Table_Ptr'Storage_Size use 0; -- The table is actually represented as a pointer to allow reallocation. -- This type should never be used by the client. Table : aliased Table_Ptr := null; -- The table itself. The lower bound is the value of Low_Bound. -- Logically the upper bound is the current value of Last (although -- the actual size of the allocated table may be larger than this). -- The program may only access and modify Table entries in the range -- First .. Last. Locked : Boolean := False; -- Table expansion is permitted only if this switch is set to False. A -- client may set Locked to True, in which case any attempt to expand -- the table will cause an assertion failure. Note that while a table -- is locked, its address in memory remains fixed and unchanging. procedure Init; -- This procedure allocates a new table of size Initial (freeing any -- previously allocated larger table). It is not necessary to call -- Init when a table is first instantiated (since the instantiation does -- the same initialization steps). However, it is harmless to do so, and -- Init is convenient in reestablishing a table for new use. function Last return Table_Index_Type; pragma Inline (Last); -- Returns the current value of the last used entry in the table, which -- can then be used as a subscript for Table. Note that the only way to -- modify Last is to call the Set_Last procedure. Last must always be -- used to determine the logically last entry. procedure Release; -- Storage is allocated in chunks according to the values given in the -- Initial and Increment parameters. A call to Release releases all -- storage that is allocated, but is not logically part of the current -- array value. Current array values are not affected by this call. procedure Free; -- Free all allocated memory for the table. A call to Init is required -- before any use of this table after calling Free. First : constant Table_Index_Type := Table_Low_Bound; -- Export First as synonym for Low_Bound (parallel with use of Last) procedure Set_Last (New_Val : Table_Index_Type); pragma Inline (Set_Last); -- This procedure sets Last to the indicated value. If necessary the -- table is reallocated to accommodate the new value (i.e. on return -- the allocated table has an upper bound of at least Last). If Set_Last -- reduces the size of the table, then logically entries are removed -- from the table. If Set_Last increases the size of the table, then -- new entries are logically added to the table. procedure Increment_Last; pragma Inline (Increment_Last); -- Adds 1 to Last (same as Set_Last (Last + 1) procedure Decrement_Last; pragma Inline (Decrement_Last); -- Subtracts 1 from Last (same as Set_Last (Last - 1) procedure Append (New_Val : Table_Component_Type); pragma Inline (Append); -- Equivalent to: -- x.Increment_Last; -- x.Table (x.Last) := New_Val; -- i.e. the table size is increased by one, and the given new item -- stored in the newly created table element. procedure Append_All (New_Vals : Table_Type); -- Appends all components of New_Vals procedure Set_Item (Index : Table_Index_Type; Item : Table_Component_Type); pragma Inline (Set_Item); -- Put Item in the table at position Index. The table is expanded if the -- current table length is less than Index and in that case Last is set to -- Index. Item will replace any value already present in the table at this -- position. function Allocate (Num : Integer := 1) return Table_Index_Type; pragma Inline (Allocate); -- Adds Num to Last, and returns the old value of Last + 1. Note that -- this function has the possible side effect of reallocating the table. -- This means that a reference X.Table (X.Allocate) is incorrect, since -- the call to X.Allocate may modify the results of calling X.Table. end GNAT.Table;
------------------------------------------------------------------------------ -- Copyright (c) 2016, 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.Smaz.Tools.GNAT gather tools to handle Smaz diction aries that -- -- depend so heavily on GNAT that they cannot be considered portable. -- ------------------------------------------------------------------------------ package Natools.Smaz.Tools.GNAT is procedure Build_Perfect_Hash (List : in String_Lists.List; Package_Name : in String) with Pre => (for all S of List => S'First = 1); -- Generate a static hash function that can be used with a dictionary -- built from List, using GNAT.Perfect_Hash_Generators. -- The precondition reflects an assumption made by -- GNAT.Perfect_Hash_Generators but not enforced, -- which leads to nasty bugs. end Natools.Smaz.Tools.GNAT;
----------------------------------------------------------------------- -- nodes-facelets -- Facelets composition nodes -- Copyright (C) 2009, 2010, 2011, 2012, 2013 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- 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. ----------------------------------------------------------------------- -- The <b>ASF.Views.Nodes.Facelets</b> package defines some pre-defined -- tags for composing a view. -- -- xmlns:ui="http://java.sun.com/jsf/facelets" -- -- The following Facelets core elements are defined: -- <ui:include src="..."/> -- <ui:decorate view="..."/> -- <ui:define name="..."/> -- <ui:insert name="..."/> -- <ui:param name="..." value="..."/> -- <ui:composition .../> -- with Ada.Strings.Hash; with ASF.Factory; with Ada.Containers.Indefinite_Hashed_Maps; package ASF.Views.Nodes.Facelets is -- Tag factory for nodes defined in this package. function Definition return ASF.Factory.Factory_Bindings_Access; -- ------------------------------ -- 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_Access; 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_Access; 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_Access; 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_Access; 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_Access; 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_Access; 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_Access; 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_Access; 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;
------------------------------------------------------------------------------ -- -- -- 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. -- -- -- ------------------------------------------------------------------------------ -- A demonstration of a higher-level USART interface, using non-blocking I/O. -- The file declares the main procedure for the demonstration. with Last_Chance_Handler; pragma Unreferenced (Last_Chance_Handler); -- The "last chance handler" is the user-defined routine that is called when -- an exception is propagated. We need it in the executable, therefore it -- must be somewhere in the closure of the context clauses. with Peripherals_Nonblocking; use Peripherals_Nonblocking; with Serial_IO.Nonblocking; use Serial_IO.Nonblocking; with Message_Buffers; use Message_Buffers; procedure Demo_Serial_Port_Nonblocking is Incoming : aliased Message (Physical_Size => 1024); -- arbitrary size procedure Send (This : String); procedure Send (This : String) is Outgoing : aliased Message (Physical_Size => 1024); -- arbitrary size begin Set (Outgoing, To => This); Put (COM, Outgoing'Unchecked_Access); Await_Transmission_Complete (Outgoing); -- We must await xmit completion because Put does not wait end Send; begin Initialize (COM); Configure (COM, Baud_Rate => 115_200); Send ("Enter text, terminated by CR."); Set_Terminator (Incoming, To => ASCII.CR); loop Get (COM, Incoming'Unchecked_Access); Await_Reception_Complete (Incoming); -- We must await reception completion because Get does not wait Send ("Received : " & Content (Incoming)); end loop; end Demo_Serial_Port_Nonblocking;
-- 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/>. package body Pck is procedure Do_Nothing (C : in out Circle) is begin null; end Do_Nothing; end Pck;
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- S Y S T E M . P A C K _ 1 9 -- -- -- -- 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 = 19 package System.Pack_19 is pragma Preelaborate; Bits : constant := 19; type Bits_19 is mod 2 ** Bits; for Bits_19'Size use Bits; -- In all subprograms below, Rev_SSO is set True if the array has the -- non-default scalar storage order. function Get_19 (Arr : System.Address; N : Natural; Rev_SSO : Boolean) return Bits_19 with Inline; -- Arr is the address of the packed array, N is the zero-based -- subscript. This element is extracted and returned. procedure Set_19 (Arr : System.Address; N : Natural; E : Bits_19; 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_19;
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- S Y S T E M . F A T _ L L F -- -- -- -- S p e c -- -- -- -- Copyright (C) 1992-2009, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ -- This package contains an instantiation of the floating-point attribute -- runtime routines for the type Long_Long_Float. with System.Fat_Gen; package System.Fat_LLF is pragma Pure; -- Note the only entity from this package that is accessed by Rtsfind -- is the name of the package instantiation. Entities within this package -- (i.e. the individual floating-point attribute routines) are accessed -- by name using selected notation. package Attr_Long_Long_Float is new System.Fat_Gen (Long_Long_Float); end System.Fat_LLF;
-- A35402A.ADA -- Grant of Unlimited Rights -- -- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687, -- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained -- unlimited rights in the software and documentation contained herein. -- Unlimited rights are defined in DFAR 252.227-7013(a)(19). By making -- this public release, the Government intends to confer upon all -- recipients unlimited rights equal to those held by the Government. -- These rights include rights to use, duplicate, release or disclose the -- released technical data and computer software in whole or in part, in -- any manner and for any purpose whatsoever, and to have or permit others -- to do so. -- -- DISCLAIMER -- -- ALL MATERIALS OR INFORMATION HEREIN RELEASED, MADE AVAILABLE OR -- DISCLOSED ARE AS IS. THE GOVERNMENT MAKES NO EXPRESS OR IMPLIED -- WARRANTY AS TO ANY MATTER WHATSOEVER, INCLUDING THE CONDITIONS OF THE -- SOFTWARE, DOCUMENTATION OR OTHER INFORMATION RELEASED, MADE AVAILABLE -- OR DISCLOSED, OR THE OWNERSHIP, MERCHANTABILITY, OR FITNESS FOR A -- PARTICULAR PURPOSE OF SAID MATERIAL. --* -- CHECK THAT THE BOUNDS OF AN INTEGER TYPE DEFINITION NEED NOT -- HAVE THE SAME INTEGER TYPE. -- RJW 2/20/86 WITH REPORT; USE REPORT; PROCEDURE A35402A IS BEGIN TEST ( "A35402A", "CHECK THAT THE BOUNDS OF AN INTEGER " & "TYPE DEFINITION NEED NOT HAVE THE SAME " & "INTEGER TYPE" ); DECLARE TYPE INT1 IS RANGE 1 .. 10; TYPE INT2 IS RANGE 2 .. 8; TYPE INT3 IS NEW INTEGER; I : CONSTANT INTEGER := 5; I1 : CONSTANT INT1 := 5; I2 : CONSTANT INT2 := 5; I3 : CONSTANT INT3 := 5; TYPE INTRANGE1 IS RANGE I .. I1; -- OK. TYPE INTRANGE2 IS RANGE I1 .. I2; -- OK. TYPE INTRANGE3 IS RANGE I2 .. I3; -- OK. TYPE INTRANGE4 IS RANGE I3 .. I; -- OK. BEGIN NULL; END; RESULT; END A35402A;
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- A D A . D Y N A M I C _ P R I O R I T I E S -- -- -- -- S p e c -- -- -- -- This specification is derived from the Ada Reference Manual for use with -- -- GNAT. In accordance with the copyright of that document, you can freely -- -- copy and modify this specification, provided that if you redistribute a -- -- modified version, any changes that you have made are clearly indicated. -- -- -- ------------------------------------------------------------------------------ with System; with Ada.Task_Identification; package Ada.Dynamic_Priorities is pragma Preelaborate_05; -- In accordance with Ada 2005 AI-362 procedure Set_Priority (Priority : System.Any_Priority; T : Ada.Task_Identification.Task_Id := Ada.Task_Identification.Current_Task); function Get_Priority (T : Ada.Task_Identification.Task_Id := Ada.Task_Identification.Current_Task) return System.Any_Priority; end Ada.Dynamic_Priorities;
-- This spec has been automatically generated from STM32L4x6.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with System; -- STM32L4x6 package STM32_SVD is pragma Preelaborate; -------------------- -- Base addresses -- -------------------- DAC_Base : constant System.Address := System'To_Address (16#40007400#); DMA1_Base : constant System.Address := System'To_Address (16#40020000#); DMA2_Base : constant System.Address := System'To_Address (16#40020400#); CRC_Base : constant System.Address := System'To_Address (16#40023000#); LCD_Base : constant System.Address := System'To_Address (16#40002400#); TSC_Base : constant System.Address := System'To_Address (16#40024000#); IWDG_Base : constant System.Address := System'To_Address (16#40003000#); WWDG_Base : constant System.Address := System'To_Address (16#40002C00#); COMP_Base : constant System.Address := System'To_Address (16#40010200#); FIREWALL_Base : constant System.Address := System'To_Address (16#40011C00#); I2C1_Base : constant System.Address := System'To_Address (16#40005400#); I2C2_Base : constant System.Address := System'To_Address (16#40005800#); I2C3_Base : constant System.Address := System'To_Address (16#40005C00#); I2C4_Base : constant System.Address := System'To_Address (16#40008400#); FLASH_Base : constant System.Address := System'To_Address (16#40022000#); DBGMCU_Base : constant System.Address := System'To_Address (16#E0042000#); QUADSPI_Base : constant System.Address := System'To_Address (16#A0001000#); RCC_Base : constant System.Address := System'To_Address (16#40021000#); PWR_Base : constant System.Address := System'To_Address (16#40007000#); SYSCFG_Base : constant System.Address := System'To_Address (16#40010000#); DFSDM1_Base : constant System.Address := System'To_Address (16#40016000#); RNG_Base : constant System.Address := System'To_Address (16#50060800#); AES_Base : constant System.Address := System'To_Address (16#50060000#); ADC_Base : constant System.Address := System'To_Address (16#50040000#); ADC_Common_Base : constant System.Address := System'To_Address (16#50040300#); GPIOA_Base : constant System.Address := System'To_Address (16#48000000#); GPIOB_Base : constant System.Address := System'To_Address (16#48000400#); GPIOC_Base : constant System.Address := System'To_Address (16#48000800#); GPIOD_Base : constant System.Address := System'To_Address (16#48000C00#); GPIOE_Base : constant System.Address := System'To_Address (16#48001000#); GPIOF_Base : constant System.Address := System'To_Address (16#48001400#); GPIOG_Base : constant System.Address := System'To_Address (16#48001800#); GPIOH_Base : constant System.Address := System'To_Address (16#48001C00#); GPIOI_Base : constant System.Address := System'To_Address (16#48002000#); SAI1_Base : constant System.Address := System'To_Address (16#40015400#); SAI2_Base : constant System.Address := System'To_Address (16#40015800#); TIM2_Base : constant System.Address := System'To_Address (16#40000000#); TIM3_Base : constant System.Address := System'To_Address (16#40000400#); TIM4_Base : constant System.Address := System'To_Address (16#40000800#); TIM5_Base : constant System.Address := System'To_Address (16#40000C00#); TIM15_Base : constant System.Address := System'To_Address (16#40014000#); TIM16_Base : constant System.Address := System'To_Address (16#40014400#); TIM17_Base : constant System.Address := System'To_Address (16#40014800#); TIM1_Base : constant System.Address := System'To_Address (16#40012C00#); TIM8_Base : constant System.Address := System'To_Address (16#40013400#); TIM6_Base : constant System.Address := System'To_Address (16#40001000#); TIM7_Base : constant System.Address := System'To_Address (16#40001400#); LPTIM1_Base : constant System.Address := System'To_Address (16#40007C00#); LPTIM2_Base : constant System.Address := System'To_Address (16#40009400#); USART1_Base : constant System.Address := System'To_Address (16#40013800#); USART2_Base : constant System.Address := System'To_Address (16#40004400#); USART3_Base : constant System.Address := System'To_Address (16#40004800#); UART4_Base : constant System.Address := System'To_Address (16#40004C00#); UART5_Base : constant System.Address := System'To_Address (16#40005000#); LPUART1_Base : constant System.Address := System'To_Address (16#40008000#); SPI1_Base : constant System.Address := System'To_Address (16#40013000#); SPI2_Base : constant System.Address := System'To_Address (16#40003800#); SPI3_Base : constant System.Address := System'To_Address (16#40003C00#); SDMMC1_Base : constant System.Address := System'To_Address (16#40012800#); EXTI_Base : constant System.Address := System'To_Address (16#40010400#); VREFBUF_Base : constant System.Address := System'To_Address (16#40010030#); CAN1_Base : constant System.Address := System'To_Address (16#40006400#); CAN2_Base : constant System.Address := System'To_Address (16#40006800#); RTC_Base : constant System.Address := System'To_Address (16#40002800#); OTG_FS_GLOBAL_Base : constant System.Address := System'To_Address (16#50000000#); OTG_FS_HOST_Base : constant System.Address := System'To_Address (16#50000400#); OTG_FS_DEVICE_Base : constant System.Address := System'To_Address (16#50000800#); OTG_FS_PWRCLK_Base : constant System.Address := System'To_Address (16#50000E00#); SWPMI1_Base : constant System.Address := System'To_Address (16#40008800#); OPAMP_Base : constant System.Address := System'To_Address (16#40007800#); FMC_Base : constant System.Address := System'To_Address (16#A0000000#); NVIC_Base : constant System.Address := System'To_Address (16#E000E000#); CRS_Base : constant System.Address := System'To_Address (16#40006000#); DCMI_Base : constant System.Address := System'To_Address (16#50050000#); HASH_Base : constant System.Address := System'To_Address (16#50060400#); DMA2D_Base : constant System.Address := System'To_Address (16#4002B000#); end STM32_SVD;
------------------------------------------------------------------------------- -- Fichier : foret.adb -- Auteur : MOUDDENE Hamza & CAZES Noa -- Objectif : Implantation du module Foret -- Crée : Jeudi Déc 12 2019 -------------------------------------------------------------------------------- with Ada.Text_IO; use Ada.Text_IO; package body Foret is ----------------------------------Constuctor-------------------------------- -- Initialiser Forest. Forest est vide. procedure Initialize_Forest (F : out Forest) is begin Initialiser (F); end Initialize_Forest; -- Ajouter un Arbre dans la Forest. procedure Add_To_Forest (F : in out Forest; Ab : in T_ABG) is begin Ajouter (F, Ab); end Add_To_Forest; ---------------------------------------------------------------------------- -- Vérifier si une foret donnée est vide. function Is_Empty_Forest (F : in Forest) return Boolean is begin return (Est_Vide (F)); end Is_Empty_Forest; ---------------------------------------------------------------------------- -- Vérifier si un arbre est dans la foret. function Is_Present_Forest (F : in Forest; ID : Integer) return Boolean is tmp : Forest; begin if (Is_Empty_Forest (F)) then return False; else Tmp := F; while (not (Is_Empty_Forest (Tmp))) loop if (Get_ID (Get_Element (Tmp)) = ID) then return True; end if; Tmp := Get_Next (Tmp); end loop; end if; return False; end Is_Present_Forest; ---------------------------------------------------------------------------- -- Trouver un ID dans la foret. procedure Find_Tree (F : in Forest; Ab : out T_ABG; ID : in Integer) is Tmp : Forest; begin if (Est_Vide (F)) then raise ABSENT_TREE_EXCEPTION; else Tmp := F; while (not (Est_Vide (Tmp))) loop if (Get_ID (Get_Element (Tmp)) = ID) then Ab := Get_Element (Tmp); end if; Tmp := Get_Next (Tmp); end loop; end if; end Find_Tree; ---------------------------------------------------------------------------- -- Mettre à jour la foret. procedure Update_Forest (F : in Forest; Old_Ab, New_Ab : in T_ABG) is begin Edit_Set (F, Old_Ab, New_Ab); end Update_Forest; ---------------------------------------------------------------------------- -- Supprimer un arbre de la foret. procedure Remove_Tree (F : in out Forest; Ab : in T_ABG) is begin Supprimer (F, Ab); end Remove_Tree; ---------------------------------------------------------------------------- -- Ajouter un concubain à un individu donné. procedure Get_Set_Cohabitant (F : in out Forest; ID, Child_ID : in Integer) is Tmp : Forest; begin if (Is_Empty_Forest (F)) then Null; else Tmp := F; while (not (Is_Empty_Forest (Tmp))) loop if (not (Is_Present_ID (Get_Element (F), Child_ID))) then Tmp := Get_Next (Tmp); elsif ((Is_Present_ID (Get_Element (F), Child_ID)) and get_Child_ID (Get_Element(F), get_ID (Get_Element(F))) /= Child_ID and ID /= get_ID (Get_Element(F))) then Put (Integer'Image (get_ID (Get_Element(F))) & " "); Tmp := Get_Next (Tmp); end if; end loop; end if; end Get_Set_Cohabitant; ---------------------------------------------------------------------------- -- Obtenir l'ensemble des demis frères et demie-soeur d'un individu donné. procedure Get_Set_Half_Brother (F : in Forest; ID, Father_ID, Mother_ID : in Integer) is Tmp : Forest; begin if (Is_Empty_Forest (F)) then Null; else Tmp := F; while (not (Is_Empty_Forest (Tmp))) loop if (not (Is_Present_ID (Get_Element (F), Father_ID)) and (not (Is_Present_ID (Get_Element (F), Mother_ID)))) then Tmp := Get_Next (Tmp); elsif ((Is_Present_ID (Get_Element (F), Father_ID)) and get_Child_ID (Get_Element(F), Father_ID) /= ID) then Put (Integer'Image (get_Child_ID (Get_Element(F),Father_ID)) & " "); Tmp := Get_Next (Tmp); elsif ((Is_Present_ID (Get_Element (F), Mother_ID)) and get_Child_ID (Get_Element(F), Mother_ID) /= ID) then Put (Integer'Image (get_Child_ID (Get_Element(F), Mother_ID)) & " "); Tmp := Get_Next (Tmp); end if; end loop; end if; end Get_Set_Half_Brother; ---------------------------------------------------------------------------- -- Détruire Forest. Forest est vide. procedure Destruct_Forest (F : in out Forest) is begin Detruire (F); end Destruct_Forest; end Foret;
package body STM_Board is --------------------- -- Initialize_GPIO -- --------------------- procedure Initialize_GPIO is Configuration : GPIO_Port_Configuration; All_PP_Outputs : constant GPIO_Points := (Green_LED, Red_LED, Buzzer); All_PP_Inputs : constant GPIO_Points := (AC_Frequency_Pin, Button); begin -- Output LEDs and buzzer pins Enable_Clock (All_PP_Outputs); Configuration := (Mode => Mode_Out, Output_Type => Push_Pull, Speed => Speed_100MHz, Resistors => Floating); Configure_IO (All_PP_Outputs, Configuration); -- Output gate driver pin. This depends on the electronic circuit. -- If the driver already has a pull-up resistor, then it is open-drain. Enable_Clock (PWM_Gate_Power); Configuration := (Mode => Mode_Out, Output_Type => Open_Drain, Speed => Speed_100MHz, Resistors => Floating); Configure_IO (PWM_Gate_Power, Configuration); -- Input frequency pin. This depends on the electronic circuit. If -- the pin already has pull-up resistor, then it is floating. Enable_Clock (All_PP_Inputs); Configuration := (Mode => Mode_In, Resistors => Floating); Configure_IO (All_PP_Inputs, Configuration); -- Connect the button's pin to the External Interrupt Handler Configure_Trigger (Button, Trigger => Interrupt_Falling_Edge); Initialized := True; end Initialize_GPIO; ---------------- -- Read_Input -- ---------------- function Read_Input (This : GPIO_Point) return Boolean is (not This.Set); ------------- -- Turn_On -- ------------- procedure Turn_On (This : in out GPIO_Point) is begin Set (This); end Turn_On; -------------- -- Turn_Off -- -------------- procedure Turn_Off (This : in out GPIO_Point) is begin Clear (This); end Turn_Off; ---------------- -- Set_Toggle -- ---------------- procedure Set_Toggle (This : in out GPIO_Point) is begin Toggle (This); end Set_Toggle; ------------------ -- All_LEDs_Off -- ------------------ procedure All_LEDs_Off is begin Clear (All_LEDs); end All_LEDs_Off; ----------------- -- All_LEDs_On -- ----------------- procedure All_LEDs_On is begin Set (All_LEDs); end All_LEDs_On; ----------------- -- Toggle_LEDs -- ----------------- procedure Toggle_LEDs (These : in out GPIO_Points) is begin Toggle (These); end Toggle_LEDs; -------------------- -- Is_Initialized -- -------------------- function Is_Initialized return Boolean is (Initialized); -------------------- -- Button_Handler -- -------------------- protected body Button_Handler is ------------------------ -- Button_ISR_Handler -- ------------------------ procedure Button_ISR_Handler is Now : constant Time := Clock; begin if External_Interrupt_Pending (Button_EXTI_Line) then -- Clear the raised interrupt by writing "Occurred" to the correct -- position in the EXTI Pending Register. Clear_External_Interrupt (Button_EXTI_Line); -- Debouncing. if Now - Last_Time >= Debounce_Time then -- Key pressed => GPIO = 0; not pressed => GPIO = 1. if not Button.Set then Set_Toggle (Green_LED); end if; Last_Time := Now; end if; end if; end Button_ISR_Handler; end Button_Handler; end STM_Board;
-- Copyright 2008 Free Software Foundation, Inc. -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation; either version 3 of the License, or -- (at your option) any later version. -- -- This program is distributed in the hope that it will be useful, -- but WITHOUT ANY WARRANTY; without even the implied warranty of -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- GNU General Public License for more details. -- -- You should have received a copy of the GNU General Public License -- along with this program. If not, see <http://www.gnu.org/licenses/>. procedure Foo is begin null; end Foo;
package kv.avm.vole_parser is Unimplemented_Error : exception; procedure YYParse; Verbose : Boolean := False; end kv.avm.vole_parser;
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Ada Modeling Framework -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2011-2012, Vadim Godunko <vgodunko@gmail.com> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ with AMF.Internals.UML_Classifiers; with AMF.String_Collections; with AMF.UML.Activities; with AMF.UML.Activity_Edges.Collections; with AMF.UML.Activity_Groups.Collections; with AMF.UML.Activity_Nodes.Collections; with AMF.UML.Activity_Partitions.Collections; with AMF.UML.Behavioral_Features; with AMF.UML.Behaviored_Classifiers; with AMF.UML.Behaviors.Collections; with AMF.UML.Classes.Collections; with AMF.UML.Classifier_Template_Parameters; with AMF.UML.Classifiers.Collections; with AMF.UML.Collaboration_Uses.Collections; with AMF.UML.Connectable_Elements.Collections; with AMF.UML.Connectors.Collections; with AMF.UML.Constraints.Collections; with AMF.UML.Dependencies.Collections; with AMF.UML.Element_Imports.Collections; with AMF.UML.Extensions.Collections; with AMF.UML.Features.Collections; with AMF.UML.Generalization_Sets.Collections; with AMF.UML.Generalizations.Collections; with AMF.UML.Interface_Realizations.Collections; with AMF.UML.Named_Elements.Collections; with AMF.UML.Namespaces; with AMF.UML.Operations.Collections; with AMF.UML.Package_Imports.Collections; with AMF.UML.Packageable_Elements.Collections; with AMF.UML.Packages.Collections; with AMF.UML.Parameter_Sets.Collections; with AMF.UML.Parameterable_Elements.Collections; with AMF.UML.Parameters.Collections; with AMF.UML.Ports.Collections; with AMF.UML.Properties.Collections; with AMF.UML.Receptions.Collections; with AMF.UML.Redefinable_Elements.Collections; with AMF.UML.Redefinable_Template_Signatures; with AMF.UML.String_Expressions; with AMF.UML.Structured_Activity_Nodes.Collections; with AMF.UML.Substitutions.Collections; with AMF.UML.Template_Bindings.Collections; with AMF.UML.Template_Parameters; with AMF.UML.Template_Signatures; with AMF.UML.Types; with AMF.UML.Use_Cases.Collections; with AMF.UML.Variables.Collections; with AMF.Visitors; package AMF.Internals.UML_Activities is type UML_Activity_Proxy is limited new AMF.Internals.UML_Classifiers.UML_Classifier_Proxy and AMF.UML.Activities.UML_Activity with null record; overriding function Get_Edge (Self : not null access constant UML_Activity_Proxy) return AMF.UML.Activity_Edges.Collections.Set_Of_UML_Activity_Edge; -- Getter of Activity::edge. -- -- Edges expressing flow between nodes of the activity. overriding function Get_Group (Self : not null access constant UML_Activity_Proxy) return AMF.UML.Activity_Groups.Collections.Set_Of_UML_Activity_Group; -- Getter of Activity::group. -- -- Top-level groups in the activity. overriding function Get_Is_Read_Only (Self : not null access constant UML_Activity_Proxy) return Boolean; -- Getter of Activity::isReadOnly. -- -- If true, this activity must not make any changes to variables outside -- the activity or to objects. (This is an assertion, not an executable -- property. It may be used by an execution engine to optimize model -- execution. If the assertion is violated by the action, then the model -- is ill-formed.) The default is false (an activity may make nonlocal -- changes). overriding procedure Set_Is_Read_Only (Self : not null access UML_Activity_Proxy; To : Boolean); -- Setter of Activity::isReadOnly. -- -- If true, this activity must not make any changes to variables outside -- the activity or to objects. (This is an assertion, not an executable -- property. It may be used by an execution engine to optimize model -- execution. If the assertion is violated by the action, then the model -- is ill-formed.) The default is false (an activity may make nonlocal -- changes). overriding function Get_Is_Single_Execution (Self : not null access constant UML_Activity_Proxy) return Boolean; -- Getter of Activity::isSingleExecution. -- -- If true, all invocations of the activity are handled by the same -- execution. overriding procedure Set_Is_Single_Execution (Self : not null access UML_Activity_Proxy; To : Boolean); -- Setter of Activity::isSingleExecution. -- -- If true, all invocations of the activity are handled by the same -- execution. overriding function Get_Node (Self : not null access constant UML_Activity_Proxy) return AMF.UML.Activity_Nodes.Collections.Set_Of_UML_Activity_Node; -- Getter of Activity::node. -- -- Nodes coordinated by the activity. overriding function Get_Partition (Self : not null access constant UML_Activity_Proxy) return AMF.UML.Activity_Partitions.Collections.Set_Of_UML_Activity_Partition; -- Getter of Activity::partition. -- -- Top-level partitions in the activity. overriding function Get_Structured_Node (Self : not null access constant UML_Activity_Proxy) return AMF.UML.Structured_Activity_Nodes.Collections.Set_Of_UML_Structured_Activity_Node; -- Getter of Activity::structuredNode. -- -- Top-level structured nodes in the activity. overriding function Get_Variable (Self : not null access constant UML_Activity_Proxy) return AMF.UML.Variables.Collections.Set_Of_UML_Variable; -- Getter of Activity::variable. -- -- Top-level variables in the activity. overriding function Get_Context (Self : not null access constant UML_Activity_Proxy) return AMF.UML.Behaviored_Classifiers.UML_Behaviored_Classifier_Access; -- Getter of Behavior::context. -- -- The classifier that is the context for the execution of the behavior. -- If the behavior is owned by a BehavioredClassifier, that classifier is -- the context. Otherwise, the context is the first BehavioredClassifier -- reached by following the chain of owner relationships. For example, -- following this algorithm, the context of an entry action in a state -- machine is the classifier that owns the state machine. The features of -- the context classifier as well as the elements visible to the context -- classifier are visible to the behavior. overriding function Get_Is_Reentrant (Self : not null access constant UML_Activity_Proxy) return Boolean; -- Getter of Behavior::isReentrant. -- -- Tells whether the behavior can be invoked while it is still executing -- from a previous invocation. overriding procedure Set_Is_Reentrant (Self : not null access UML_Activity_Proxy; To : Boolean); -- Setter of Behavior::isReentrant. -- -- Tells whether the behavior can be invoked while it is still executing -- from a previous invocation. overriding function Get_Owned_Parameter (Self : not null access constant UML_Activity_Proxy) return AMF.UML.Parameters.Collections.Ordered_Set_Of_UML_Parameter; -- Getter of Behavior::ownedParameter. -- -- References a list of parameters to the behavior which describes the -- order and type of arguments that can be given when the behavior is -- invoked and of the values which will be returned when the behavior -- completes its execution. overriding function Get_Owned_Parameter_Set (Self : not null access constant UML_Activity_Proxy) return AMF.UML.Parameter_Sets.Collections.Set_Of_UML_Parameter_Set; -- Getter of Behavior::ownedParameterSet. -- -- The ParameterSets owned by this Behavior. overriding function Get_Postcondition (Self : not null access constant UML_Activity_Proxy) return AMF.UML.Constraints.Collections.Set_Of_UML_Constraint; -- Getter of Behavior::postcondition. -- -- An optional set of Constraints specifying what is fulfilled after the -- execution of the behavior is completed, if its precondition was -- fulfilled before its invocation. overriding function Get_Precondition (Self : not null access constant UML_Activity_Proxy) return AMF.UML.Constraints.Collections.Set_Of_UML_Constraint; -- Getter of Behavior::precondition. -- -- An optional set of Constraints specifying what must be fulfilled when -- the behavior is invoked. overriding function Get_Redefined_Behavior (Self : not null access constant UML_Activity_Proxy) return AMF.UML.Behaviors.Collections.Set_Of_UML_Behavior; -- Getter of Behavior::redefinedBehavior. -- -- References a behavior that this behavior redefines. A subtype of -- Behavior may redefine any other subtype of Behavior. If the behavior -- implements a behavioral feature, it replaces the redefined behavior. If -- the behavior is a classifier behavior, it extends the redefined -- behavior. overriding function Get_Specification (Self : not null access constant UML_Activity_Proxy) return AMF.UML.Behavioral_Features.UML_Behavioral_Feature_Access; -- Getter of Behavior::specification. -- -- Designates a behavioral feature that the behavior implements. The -- behavioral feature must be owned by the classifier that owns the -- behavior or be inherited by it. The parameters of the behavioral -- feature and the implementing behavior must match. A behavior does not -- need to have a specification, in which case it either is the classifer -- behavior of a BehavioredClassifier or it can only be invoked by another -- behavior of the classifier. overriding procedure Set_Specification (Self : not null access UML_Activity_Proxy; To : AMF.UML.Behavioral_Features.UML_Behavioral_Feature_Access); -- Setter of Behavior::specification. -- -- Designates a behavioral feature that the behavior implements. The -- behavioral feature must be owned by the classifier that owns the -- behavior or be inherited by it. The parameters of the behavioral -- feature and the implementing behavior must match. A behavior does not -- need to have a specification, in which case it either is the classifer -- behavior of a BehavioredClassifier or it can only be invoked by another -- behavior of the classifier. overriding function Get_Extension (Self : not null access constant UML_Activity_Proxy) return AMF.UML.Extensions.Collections.Set_Of_UML_Extension; -- Getter of Class::extension. -- -- References the Extensions that specify additional properties of the -- metaclass. The property is derived from the extensions whose memberEnds -- are typed by the Class. overriding function Get_Is_Abstract (Self : not null access constant UML_Activity_Proxy) return Boolean; -- Getter of Class::isAbstract. -- -- True when a class is abstract. -- If true, the Classifier does not provide a complete declaration and can -- typically not be instantiated. An abstract classifier is intended to be -- used by other classifiers e.g. as the target of general -- metarelationships or generalization relationships. overriding function Get_Is_Active (Self : not null access constant UML_Activity_Proxy) return Boolean; -- Getter of Class::isActive. -- -- Determines whether an object specified by this class is active or not. -- If true, then the owning class is referred to as an active class. If -- false, then such a class is referred to as a passive class. overriding procedure Set_Is_Active (Self : not null access UML_Activity_Proxy; To : Boolean); -- Setter of Class::isActive. -- -- Determines whether an object specified by this class is active or not. -- If true, then the owning class is referred to as an active class. If -- false, then such a class is referred to as a passive class. overriding function Get_Nested_Classifier (Self : not null access constant UML_Activity_Proxy) return AMF.UML.Classifiers.Collections.Ordered_Set_Of_UML_Classifier; -- Getter of Class::nestedClassifier. -- -- References all the Classifiers that are defined (nested) within the -- Class. overriding function Get_Owned_Attribute (Self : not null access constant UML_Activity_Proxy) return AMF.UML.Properties.Collections.Ordered_Set_Of_UML_Property; -- Getter of Class::ownedAttribute. -- -- The attributes (i.e. the properties) owned by the class. overriding function Get_Owned_Operation (Self : not null access constant UML_Activity_Proxy) return AMF.UML.Operations.Collections.Ordered_Set_Of_UML_Operation; -- Getter of Class::ownedOperation. -- -- The operations owned by the class. overriding function Get_Owned_Reception (Self : not null access constant UML_Activity_Proxy) return AMF.UML.Receptions.Collections.Set_Of_UML_Reception; -- Getter of Class::ownedReception. -- -- Receptions that objects of this class are willing to accept. overriding function Get_Super_Class (Self : not null access constant UML_Activity_Proxy) return AMF.UML.Classes.Collections.Set_Of_UML_Class; -- Getter of Class::superClass. -- -- This gives the superclasses of a class. overriding function Get_Classifier_Behavior (Self : not null access constant UML_Activity_Proxy) return AMF.UML.Behaviors.UML_Behavior_Access; -- Getter of BehavioredClassifier::classifierBehavior. -- -- A behavior specification that specifies the behavior of the classifier -- itself. overriding procedure Set_Classifier_Behavior (Self : not null access UML_Activity_Proxy; To : AMF.UML.Behaviors.UML_Behavior_Access); -- Setter of BehavioredClassifier::classifierBehavior. -- -- A behavior specification that specifies the behavior of the classifier -- itself. overriding function Get_Interface_Realization (Self : not null access constant UML_Activity_Proxy) return AMF.UML.Interface_Realizations.Collections.Set_Of_UML_Interface_Realization; -- Getter of BehavioredClassifier::interfaceRealization. -- -- The set of InterfaceRealizations owned by the BehavioredClassifier. -- Interface realizations reference the Interfaces of which the -- BehavioredClassifier is an implementation. overriding function Get_Owned_Behavior (Self : not null access constant UML_Activity_Proxy) return AMF.UML.Behaviors.Collections.Set_Of_UML_Behavior; -- Getter of BehavioredClassifier::ownedBehavior. -- -- References behavior specifications owned by a classifier. overriding function Get_Attribute (Self : not null access constant UML_Activity_Proxy) return AMF.UML.Properties.Collections.Set_Of_UML_Property; -- Getter of Classifier::attribute. -- -- Refers to all of the Properties that are direct (i.e. not inherited or -- imported) attributes of the classifier. overriding function Get_Collaboration_Use (Self : not null access constant UML_Activity_Proxy) return AMF.UML.Collaboration_Uses.Collections.Set_Of_UML_Collaboration_Use; -- Getter of Classifier::collaborationUse. -- -- References the collaboration uses owned by the classifier. overriding function Get_Feature (Self : not null access constant UML_Activity_Proxy) return AMF.UML.Features.Collections.Set_Of_UML_Feature; -- Getter of Classifier::feature. -- -- Specifies each feature defined in the classifier. -- Note that there may be members of the Classifier that are of the type -- Feature but are not included in this association, e.g. inherited -- features. overriding function Get_General (Self : not null access constant UML_Activity_Proxy) return AMF.UML.Classifiers.Collections.Set_Of_UML_Classifier; -- Getter of Classifier::general. -- -- Specifies the general Classifiers for this Classifier. -- References the general classifier in the Generalization relationship. overriding function Get_Generalization (Self : not null access constant UML_Activity_Proxy) return AMF.UML.Generalizations.Collections.Set_Of_UML_Generalization; -- Getter of Classifier::generalization. -- -- Specifies the Generalization relationships for this Classifier. These -- Generalizations navigaten to more general classifiers in the -- generalization hierarchy. overriding function Get_Inherited_Member (Self : not null access constant UML_Activity_Proxy) return AMF.UML.Named_Elements.Collections.Set_Of_UML_Named_Element; -- Getter of Classifier::inheritedMember. -- -- Specifies all elements inherited by this classifier from the general -- classifiers. overriding function Get_Is_Final_Specialization (Self : not null access constant UML_Activity_Proxy) return Boolean; -- Getter of Classifier::isFinalSpecialization. -- -- If true, the Classifier cannot be specialized by generalization. Note -- that this property is preserved through package merge operations; that -- is, the capability to specialize a Classifier (i.e., -- isFinalSpecialization =false) must be preserved in the resulting -- Classifier of a package merge operation where a Classifier with -- isFinalSpecialization =false is merged with a matching Classifier with -- isFinalSpecialization =true: the resulting Classifier will have -- isFinalSpecialization =false. overriding procedure Set_Is_Final_Specialization (Self : not null access UML_Activity_Proxy; To : Boolean); -- Setter of Classifier::isFinalSpecialization. -- -- If true, the Classifier cannot be specialized by generalization. Note -- that this property is preserved through package merge operations; that -- is, the capability to specialize a Classifier (i.e., -- isFinalSpecialization =false) must be preserved in the resulting -- Classifier of a package merge operation where a Classifier with -- isFinalSpecialization =false is merged with a matching Classifier with -- isFinalSpecialization =true: the resulting Classifier will have -- isFinalSpecialization =false. overriding function Get_Owned_Template_Signature (Self : not null access constant UML_Activity_Proxy) return AMF.UML.Redefinable_Template_Signatures.UML_Redefinable_Template_Signature_Access; -- Getter of Classifier::ownedTemplateSignature. -- -- The optional template signature specifying the formal template -- parameters. overriding procedure Set_Owned_Template_Signature (Self : not null access UML_Activity_Proxy; To : AMF.UML.Redefinable_Template_Signatures.UML_Redefinable_Template_Signature_Access); -- Setter of Classifier::ownedTemplateSignature. -- -- The optional template signature specifying the formal template -- parameters. overriding function Get_Owned_Use_Case (Self : not null access constant UML_Activity_Proxy) return AMF.UML.Use_Cases.Collections.Set_Of_UML_Use_Case; -- Getter of Classifier::ownedUseCase. -- -- References the use cases owned by this classifier. overriding function Get_Powertype_Extent (Self : not null access constant UML_Activity_Proxy) return AMF.UML.Generalization_Sets.Collections.Set_Of_UML_Generalization_Set; -- Getter of Classifier::powertypeExtent. -- -- Designates the GeneralizationSet of which the associated Classifier is -- a power type. overriding function Get_Redefined_Classifier (Self : not null access constant UML_Activity_Proxy) return AMF.UML.Classifiers.Collections.Set_Of_UML_Classifier; -- Getter of Classifier::redefinedClassifier. -- -- References the Classifiers that are redefined by this Classifier. overriding function Get_Representation (Self : not null access constant UML_Activity_Proxy) return AMF.UML.Collaboration_Uses.UML_Collaboration_Use_Access; -- Getter of Classifier::representation. -- -- References a collaboration use which indicates the collaboration that -- represents this classifier. overriding procedure Set_Representation (Self : not null access UML_Activity_Proxy; To : AMF.UML.Collaboration_Uses.UML_Collaboration_Use_Access); -- Setter of Classifier::representation. -- -- References a collaboration use which indicates the collaboration that -- represents this classifier. overriding function Get_Substitution (Self : not null access constant UML_Activity_Proxy) return AMF.UML.Substitutions.Collections.Set_Of_UML_Substitution; -- Getter of Classifier::substitution. -- -- References the substitutions that are owned by this Classifier. overriding function Get_Template_Parameter (Self : not null access constant UML_Activity_Proxy) return AMF.UML.Classifier_Template_Parameters.UML_Classifier_Template_Parameter_Access; -- Getter of Classifier::templateParameter. -- -- The template parameter that exposes this element as a formal parameter. overriding procedure Set_Template_Parameter (Self : not null access UML_Activity_Proxy; To : AMF.UML.Classifier_Template_Parameters.UML_Classifier_Template_Parameter_Access); -- Setter of Classifier::templateParameter. -- -- The template parameter that exposes this element as a formal parameter. overriding function Get_Use_Case (Self : not null access constant UML_Activity_Proxy) return AMF.UML.Use_Cases.Collections.Set_Of_UML_Use_Case; -- Getter of Classifier::useCase. -- -- The set of use cases for which this Classifier is the subject. overriding function Get_Element_Import (Self : not null access constant UML_Activity_Proxy) return AMF.UML.Element_Imports.Collections.Set_Of_UML_Element_Import; -- Getter of Namespace::elementImport. -- -- References the ElementImports owned by the Namespace. overriding function Get_Imported_Member (Self : not null access constant UML_Activity_Proxy) return AMF.UML.Packageable_Elements.Collections.Set_Of_UML_Packageable_Element; -- Getter of Namespace::importedMember. -- -- References the PackageableElements that are members of this Namespace -- as a result of either PackageImports or ElementImports. overriding function Get_Member (Self : not null access constant UML_Activity_Proxy) return AMF.UML.Named_Elements.Collections.Set_Of_UML_Named_Element; -- Getter of Namespace::member. -- -- A collection of NamedElements identifiable within the Namespace, either -- by being owned or by being introduced by importing or inheritance. overriding function Get_Owned_Member (Self : not null access constant UML_Activity_Proxy) return AMF.UML.Named_Elements.Collections.Set_Of_UML_Named_Element; -- Getter of Namespace::ownedMember. -- -- A collection of NamedElements owned by the Namespace. overriding function Get_Owned_Rule (Self : not null access constant UML_Activity_Proxy) return AMF.UML.Constraints.Collections.Set_Of_UML_Constraint; -- Getter of Namespace::ownedRule. -- -- Specifies a set of Constraints owned by this Namespace. overriding function Get_Package_Import (Self : not null access constant UML_Activity_Proxy) return AMF.UML.Package_Imports.Collections.Set_Of_UML_Package_Import; -- Getter of Namespace::packageImport. -- -- References the PackageImports owned by the Namespace. overriding function Get_Client_Dependency (Self : not null access constant UML_Activity_Proxy) return AMF.UML.Dependencies.Collections.Set_Of_UML_Dependency; -- Getter of NamedElement::clientDependency. -- -- Indicates the dependencies that reference the client. overriding function Get_Name_Expression (Self : not null access constant UML_Activity_Proxy) return AMF.UML.String_Expressions.UML_String_Expression_Access; -- Getter of NamedElement::nameExpression. -- -- The string expression used to define the name of this named element. overriding procedure Set_Name_Expression (Self : not null access UML_Activity_Proxy; To : AMF.UML.String_Expressions.UML_String_Expression_Access); -- Setter of NamedElement::nameExpression. -- -- The string expression used to define the name of this named element. overriding function Get_Namespace (Self : not null access constant UML_Activity_Proxy) return AMF.UML.Namespaces.UML_Namespace_Access; -- Getter of NamedElement::namespace. -- -- Specifies the namespace that owns the NamedElement. overriding function Get_Qualified_Name (Self : not null access constant UML_Activity_Proxy) return AMF.Optional_String; -- Getter of NamedElement::qualifiedName. -- -- A name which allows the NamedElement to be identified within a -- hierarchy of nested Namespaces. It is constructed from the names of the -- containing namespaces starting at the root of the hierarchy and ending -- with the name of the NamedElement itself. overriding function Get_Package (Self : not null access constant UML_Activity_Proxy) return AMF.UML.Packages.UML_Package_Access; -- Getter of Type::package. -- -- Specifies the owning package of this classifier, if any. overriding procedure Set_Package (Self : not null access UML_Activity_Proxy; To : AMF.UML.Packages.UML_Package_Access); -- Setter of Type::package. -- -- Specifies the owning package of this classifier, if any. overriding function Get_Owning_Template_Parameter (Self : not null access constant UML_Activity_Proxy) return AMF.UML.Template_Parameters.UML_Template_Parameter_Access; -- Getter of ParameterableElement::owningTemplateParameter. -- -- The formal template parameter that owns this element. overriding procedure Set_Owning_Template_Parameter (Self : not null access UML_Activity_Proxy; To : AMF.UML.Template_Parameters.UML_Template_Parameter_Access); -- Setter of ParameterableElement::owningTemplateParameter. -- -- The formal template parameter that owns this element. overriding function Get_Template_Parameter (Self : not null access constant UML_Activity_Proxy) return AMF.UML.Template_Parameters.UML_Template_Parameter_Access; -- Getter of ParameterableElement::templateParameter. -- -- The template parameter that exposes this element as a formal parameter. overriding procedure Set_Template_Parameter (Self : not null access UML_Activity_Proxy; To : AMF.UML.Template_Parameters.UML_Template_Parameter_Access); -- Setter of ParameterableElement::templateParameter. -- -- The template parameter that exposes this element as a formal parameter. overriding function Get_Owned_Template_Signature (Self : not null access constant UML_Activity_Proxy) return AMF.UML.Template_Signatures.UML_Template_Signature_Access; -- Getter of TemplateableElement::ownedTemplateSignature. -- -- The optional template signature specifying the formal template -- parameters. overriding procedure Set_Owned_Template_Signature (Self : not null access UML_Activity_Proxy; To : AMF.UML.Template_Signatures.UML_Template_Signature_Access); -- Setter of TemplateableElement::ownedTemplateSignature. -- -- The optional template signature specifying the formal template -- parameters. overriding function Get_Template_Binding (Self : not null access constant UML_Activity_Proxy) return AMF.UML.Template_Bindings.Collections.Set_Of_UML_Template_Binding; -- Getter of TemplateableElement::templateBinding. -- -- The optional bindings from this element to templates. overriding function Get_Is_Leaf (Self : not null access constant UML_Activity_Proxy) return Boolean; -- Getter of RedefinableElement::isLeaf. -- -- Indicates whether it is possible to further redefine a -- RedefinableElement. If the value is true, then it is not possible to -- further redefine the RedefinableElement. Note that this property is -- preserved through package merge operations; that is, the capability to -- redefine a RedefinableElement (i.e., isLeaf=false) must be preserved in -- the resulting RedefinableElement of a package merge operation where a -- RedefinableElement with isLeaf=false is merged with a matching -- RedefinableElement with isLeaf=true: the resulting RedefinableElement -- will have isLeaf=false. Default value is false. overriding procedure Set_Is_Leaf (Self : not null access UML_Activity_Proxy; To : Boolean); -- Setter of RedefinableElement::isLeaf. -- -- Indicates whether it is possible to further redefine a -- RedefinableElement. If the value is true, then it is not possible to -- further redefine the RedefinableElement. Note that this property is -- preserved through package merge operations; that is, the capability to -- redefine a RedefinableElement (i.e., isLeaf=false) must be preserved in -- the resulting RedefinableElement of a package merge operation where a -- RedefinableElement with isLeaf=false is merged with a matching -- RedefinableElement with isLeaf=true: the resulting RedefinableElement -- will have isLeaf=false. Default value is false. overriding function Get_Redefined_Element (Self : not null access constant UML_Activity_Proxy) return AMF.UML.Redefinable_Elements.Collections.Set_Of_UML_Redefinable_Element; -- Getter of RedefinableElement::redefinedElement. -- -- The redefinable element that is being redefined by this element. overriding function Get_Redefinition_Context (Self : not null access constant UML_Activity_Proxy) return AMF.UML.Classifiers.Collections.Set_Of_UML_Classifier; -- Getter of RedefinableElement::redefinitionContext. -- -- References the contexts that this element may be redefined from. overriding function Get_Owned_Port (Self : not null access constant UML_Activity_Proxy) return AMF.UML.Ports.Collections.Set_Of_UML_Port; -- Getter of EncapsulatedClassifier::ownedPort. -- -- References a set of ports that an encapsulated classifier owns. overriding function Get_Owned_Connector (Self : not null access constant UML_Activity_Proxy) return AMF.UML.Connectors.Collections.Set_Of_UML_Connector; -- Getter of StructuredClassifier::ownedConnector. -- -- References the connectors owned by the classifier. overriding function Get_Part (Self : not null access constant UML_Activity_Proxy) return AMF.UML.Properties.Collections.Set_Of_UML_Property; -- Getter of StructuredClassifier::part. -- -- References the properties specifying instances that the classifier owns -- by composition. This association is derived, selecting those owned -- properties where isComposite is true. overriding function Get_Role (Self : not null access constant UML_Activity_Proxy) return AMF.UML.Connectable_Elements.Collections.Set_Of_UML_Connectable_Element; -- Getter of StructuredClassifier::role. -- -- References the roles that instances may play in this classifier. overriding function Structured_Node (Self : not null access constant UML_Activity_Proxy) return AMF.UML.Structured_Activity_Nodes.Collections.Set_Of_UML_Structured_Activity_Node; -- Operation Activity::structuredNode. -- -- Missing derivation for Activity::/structuredNode : -- StructuredActivityNode overriding function Context (Self : not null access constant UML_Activity_Proxy) return AMF.UML.Behaviored_Classifiers.UML_Behaviored_Classifier_Access; -- Operation Behavior::context. -- -- Missing derivation for Behavior::/context : BehavioredClassifier overriding function Extension (Self : not null access constant UML_Activity_Proxy) return AMF.UML.Extensions.Collections.Set_Of_UML_Extension; -- Operation Class::extension. -- -- Missing derivation for Class::/extension : Extension overriding function Inherit (Self : not null access constant UML_Activity_Proxy; Inhs : AMF.UML.Named_Elements.Collections.Set_Of_UML_Named_Element) return AMF.UML.Named_Elements.Collections.Set_Of_UML_Named_Element; -- Operation Class::inherit. -- -- The inherit operation is overridden to exclude redefined properties. overriding function Super_Class (Self : not null access constant UML_Activity_Proxy) return AMF.UML.Classes.Collections.Set_Of_UML_Class; -- Operation Class::superClass. -- -- Missing derivation for Class::/superClass : Class overriding function All_Features (Self : not null access constant UML_Activity_Proxy) return AMF.UML.Features.Collections.Set_Of_UML_Feature; -- Operation Classifier::allFeatures. -- -- The query allFeatures() gives all of the features in the namespace of -- the classifier. In general, through mechanisms such as inheritance, -- this will be a larger set than feature. overriding function Conforms_To (Self : not null access constant UML_Activity_Proxy; Other : AMF.UML.Classifiers.UML_Classifier_Access) return Boolean; -- Operation Classifier::conformsTo. -- -- The query conformsTo() gives true for a classifier that defines a type -- that conforms to another. This is used, for example, in the -- specification of signature conformance for operations. overriding function General (Self : not null access constant UML_Activity_Proxy) return AMF.UML.Classifiers.Collections.Set_Of_UML_Classifier; -- Operation Classifier::general. -- -- The general classifiers are the classifiers referenced by the -- generalization relationships. overriding function Has_Visibility_Of (Self : not null access constant UML_Activity_Proxy; N : AMF.UML.Named_Elements.UML_Named_Element_Access) return Boolean; -- Operation Classifier::hasVisibilityOf. -- -- The query hasVisibilityOf() determines whether a named element is -- visible in the classifier. By default all are visible. It is only -- called when the argument is something owned by a parent. overriding function Inheritable_Members (Self : not null access constant UML_Activity_Proxy; C : AMF.UML.Classifiers.UML_Classifier_Access) return AMF.UML.Named_Elements.Collections.Set_Of_UML_Named_Element; -- Operation Classifier::inheritableMembers. -- -- The query inheritableMembers() gives all of the members of a classifier -- that may be inherited in one of its descendants, subject to whatever -- visibility restrictions apply. overriding function Inherited_Member (Self : not null access constant UML_Activity_Proxy) return AMF.UML.Named_Elements.Collections.Set_Of_UML_Named_Element; -- Operation Classifier::inheritedMember. -- -- The inheritedMember association is derived by inheriting the -- inheritable members of the parents. -- The inheritedMember association is derived by inheriting the -- inheritable members of the parents. overriding function Is_Template (Self : not null access constant UML_Activity_Proxy) return Boolean; -- Operation Classifier::isTemplate. -- -- The query isTemplate() returns whether this templateable element is -- actually a template. overriding function May_Specialize_Type (Self : not null access constant UML_Activity_Proxy; C : AMF.UML.Classifiers.UML_Classifier_Access) return Boolean; -- Operation Classifier::maySpecializeType. -- -- The query maySpecializeType() determines whether this classifier may -- have a generalization relationship to classifiers of the specified -- type. By default a classifier may specialize classifiers of the same or -- a more general type. It is intended to be redefined by classifiers that -- have different specialization constraints. overriding function Exclude_Collisions (Self : not null access constant UML_Activity_Proxy; Imps : AMF.UML.Packageable_Elements.Collections.Set_Of_UML_Packageable_Element) return AMF.UML.Packageable_Elements.Collections.Set_Of_UML_Packageable_Element; -- Operation Namespace::excludeCollisions. -- -- The query excludeCollisions() excludes from a set of -- PackageableElements any that would not be distinguishable from each -- other in this namespace. overriding function Get_Names_Of_Member (Self : not null access constant UML_Activity_Proxy; Element : AMF.UML.Named_Elements.UML_Named_Element_Access) return AMF.String_Collections.Set_Of_String; -- Operation Namespace::getNamesOfMember. -- -- The query getNamesOfMember() takes importing into account. It gives -- back the set of names that an element would have in an importing -- namespace, either because it is owned, or if not owned then imported -- individually, or if not individually then from a package. -- The query getNamesOfMember() gives a set of all of the names that a -- member would have in a Namespace. In general a member can have multiple -- names in a Namespace if it is imported more than once with different -- aliases. The query takes account of importing. It gives back the set of -- names that an element would have in an importing namespace, either -- because it is owned, or if not owned then imported individually, or if -- not individually then from a package. overriding function Import_Members (Self : not null access constant UML_Activity_Proxy; Imps : AMF.UML.Packageable_Elements.Collections.Set_Of_UML_Packageable_Element) return AMF.UML.Packageable_Elements.Collections.Set_Of_UML_Packageable_Element; -- Operation Namespace::importMembers. -- -- The query importMembers() defines which of a set of PackageableElements -- are actually imported into the namespace. This excludes hidden ones, -- i.e., those which have names that conflict with names of owned members, -- and also excludes elements which would have the same name when imported. overriding function Imported_Member (Self : not null access constant UML_Activity_Proxy) return AMF.UML.Packageable_Elements.Collections.Set_Of_UML_Packageable_Element; -- Operation Namespace::importedMember. -- -- The importedMember property is derived from the ElementImports and the -- PackageImports. References the PackageableElements that are members of -- this Namespace as a result of either PackageImports or ElementImports. overriding function Members_Are_Distinguishable (Self : not null access constant UML_Activity_Proxy) return Boolean; -- Operation Namespace::membersAreDistinguishable. -- -- The Boolean query membersAreDistinguishable() determines whether all of -- the namespace's members are distinguishable within it. overriding function Owned_Member (Self : not null access constant UML_Activity_Proxy) return AMF.UML.Named_Elements.Collections.Set_Of_UML_Named_Element; -- Operation Namespace::ownedMember. -- -- Missing derivation for Namespace::/ownedMember : NamedElement overriding function All_Owning_Packages (Self : not null access constant UML_Activity_Proxy) return AMF.UML.Packages.Collections.Set_Of_UML_Package; -- Operation NamedElement::allOwningPackages. -- -- The query allOwningPackages() returns all the directly or indirectly -- owning packages. overriding function Is_Distinguishable_From (Self : not null access constant UML_Activity_Proxy; N : AMF.UML.Named_Elements.UML_Named_Element_Access; Ns : AMF.UML.Namespaces.UML_Namespace_Access) return Boolean; -- Operation NamedElement::isDistinguishableFrom. -- -- The query isDistinguishableFrom() determines whether two NamedElements -- may logically co-exist within a Namespace. By default, two named -- elements are distinguishable if (a) they have unrelated types or (b) -- they have related types but different names. overriding function Namespace (Self : not null access constant UML_Activity_Proxy) return AMF.UML.Namespaces.UML_Namespace_Access; -- Operation NamedElement::namespace. -- -- Missing derivation for NamedElement::/namespace : Namespace overriding function Conforms_To (Self : not null access constant UML_Activity_Proxy; Other : AMF.UML.Types.UML_Type_Access) return Boolean; -- Operation Type::conformsTo. -- -- The query conformsTo() gives true for a type that conforms to another. -- By default, two types do not conform to each other. This query is -- intended to be redefined for specific conformance situations. overriding function Is_Compatible_With (Self : not null access constant UML_Activity_Proxy; P : AMF.UML.Parameterable_Elements.UML_Parameterable_Element_Access) return Boolean; -- Operation ParameterableElement::isCompatibleWith. -- -- The query isCompatibleWith() determines if this parameterable element -- is compatible with the specified parameterable element. By default -- parameterable element P is compatible with parameterable element Q if -- the kind of P is the same or a subtype as the kind of Q. Subclasses -- should override this operation to specify different compatibility -- constraints. overriding function Is_Template_Parameter (Self : not null access constant UML_Activity_Proxy) return Boolean; -- Operation ParameterableElement::isTemplateParameter. -- -- The query isTemplateParameter() determines if this parameterable -- element is exposed as a formal template parameter. overriding function Parameterable_Elements (Self : not null access constant UML_Activity_Proxy) return AMF.UML.Parameterable_Elements.Collections.Set_Of_UML_Parameterable_Element; -- Operation TemplateableElement::parameterableElements. -- -- The query parameterableElements() returns the set of elements that may -- be used as the parametered elements for a template parameter of this -- templateable element. By default, this set includes all the owned -- elements. Subclasses may override this operation if they choose to -- restrict the set of parameterable elements. overriding function Is_Consistent_With (Self : not null access constant UML_Activity_Proxy; Redefinee : AMF.UML.Redefinable_Elements.UML_Redefinable_Element_Access) return Boolean; -- Operation RedefinableElement::isConsistentWith. -- -- The query isConsistentWith() specifies, for any two RedefinableElements -- in a context in which redefinition is possible, whether redefinition -- would be logically consistent. By default, this is false; this -- operation must be overridden for subclasses of RedefinableElement to -- define the consistency conditions. overriding function Is_Redefinition_Context_Valid (Self : not null access constant UML_Activity_Proxy; Redefined : AMF.UML.Redefinable_Elements.UML_Redefinable_Element_Access) return Boolean; -- Operation RedefinableElement::isRedefinitionContextValid. -- -- The query isRedefinitionContextValid() specifies whether the -- redefinition contexts of this RedefinableElement are properly related -- to the redefinition contexts of the specified RedefinableElement to -- allow this element to redefine the other. By default at least one of -- the redefinition contexts of this element must be a specialization of -- at least one of the redefinition contexts of the specified element. overriding function Owned_Port (Self : not null access constant UML_Activity_Proxy) return AMF.UML.Ports.Collections.Set_Of_UML_Port; -- Operation EncapsulatedClassifier::ownedPort. -- -- Missing derivation for EncapsulatedClassifier::/ownedPort : Port overriding function Part (Self : not null access constant UML_Activity_Proxy) return AMF.UML.Properties.Collections.Set_Of_UML_Property; -- Operation StructuredClassifier::part. -- -- Missing derivation for StructuredClassifier::/part : Property overriding procedure Enter_Element (Self : not null access constant UML_Activity_Proxy; Visitor : in out AMF.Visitors.Abstract_Visitor'Class; Control : in out AMF.Visitors.Traverse_Control); -- Dispatch call to corresponding subprogram of visitor interface. overriding procedure Leave_Element (Self : not null access constant UML_Activity_Proxy; Visitor : in out AMF.Visitors.Abstract_Visitor'Class; Control : in out AMF.Visitors.Traverse_Control); -- Dispatch call to corresponding subprogram of visitor interface. overriding procedure Visit_Element (Self : not null access constant UML_Activity_Proxy; Iterator : in out AMF.Visitors.Abstract_Iterator'Class; Visitor : in out AMF.Visitors.Abstract_Visitor'Class; Control : in out AMF.Visitors.Traverse_Control); -- Dispatch call to corresponding subprogram of iterator interface. end AMF.Internals.UML_Activities;
with Ada.Unchecked_Conversion; package Tkmrpc.Request.Ike.Isa_Create.Convert is function To_Request is new Ada.Unchecked_Conversion ( Source => Isa_Create.Request_Type, Target => Request.Data_Type); function From_Request is new Ada.Unchecked_Conversion ( Source => Request.Data_Type, Target => Isa_Create.Request_Type); end Tkmrpc.Request.Ike.Isa_Create.Convert;
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- M D L L -- -- -- -- B o d y -- -- -- -- Copyright (C) 1992-2015, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -- -- for more details. You should have received a copy of the GNU General -- -- Public License distributed with GNAT; see file COPYING3. If not, go to -- -- http://www.gnu.org/licenses for a complete copy of the license. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ -- This package provides the core high level routines used by GNATDLL -- to build Windows DLL. with Ada.Text_IO; with GNAT.Directory_Operations; with MDLL.Utl; with MDLL.Fil; package body MDLL is use Ada; use GNAT; -- Convention used for the library names on Windows: -- DLL: <name>.dll -- Import library: lib<name>.dll function Get_Dll_Name (Lib_Filename : String) return String; -- Returns <Lib_Filename> if it contains a file extension otherwise it -- returns <Lib_Filename>.dll. --------------------------- -- Build_Dynamic_Library -- --------------------------- procedure Build_Dynamic_Library (Ofiles : Argument_List; Afiles : Argument_List; Options : Argument_List; Bargs_Options : Argument_List; Largs_Options : Argument_List; Lib_Filename : String; Def_Filename : String; Lib_Address : String := ""; Build_Import : Boolean := False; Relocatable : Boolean := False; Map_File : Boolean := False) is use type OS_Lib.Argument_List; Base_Filename : constant String := MDLL.Fil.Ext_To (Lib_Filename); Def_File : aliased constant String := Def_Filename; Jnk_File : aliased String := Base_Filename & ".jnk"; Bas_File : aliased constant String := Base_Filename & ".base"; Dll_File : aliased String := Get_Dll_Name (Lib_Filename); Exp_File : aliased String := Base_Filename & ".exp"; Lib_File : aliased constant String := "lib" & Base_Filename & ".dll.a"; Bas_Opt : aliased String := "-Wl,--base-file," & Bas_File; Lib_Opt : aliased String := "-mdll"; Out_Opt : aliased String := "-o"; Adr_Opt : aliased String := "-Wl,--image-base=" & Lib_Address; Map_Opt : aliased String := "-Wl,-Map," & Lib_Filename & ".map"; L_Afiles : Argument_List := Afiles; -- Local afiles list. This list can be reordered to ensure that the -- binder ALI file is not the first entry in this list. All_Options : constant Argument_List := Options & Largs_Options; procedure Build_Reloc_DLL; -- Build a relocatable DLL with only objects file specified. This uses -- the well known five step build (see GNAT User's Guide). procedure Ada_Build_Reloc_DLL; -- Build a relocatable DLL with Ada code. This uses the well known five -- step build (see GNAT User's Guide). procedure Build_Non_Reloc_DLL; -- Build a non relocatable DLL containing no Ada code procedure Ada_Build_Non_Reloc_DLL; -- Build a non relocatable DLL with Ada code --------------------- -- Build_Reloc_DLL -- --------------------- procedure Build_Reloc_DLL is Objects_Exp_File : constant OS_Lib.Argument_List := Exp_File'Unchecked_Access & Ofiles; -- Objects plus the export table (.exp) file Success : Boolean; pragma Warnings (Off, Success); begin if not Quiet then Text_IO.Put_Line ("building relocatable DLL..."); Text_IO.Put ("make " & Dll_File); if Build_Import then Text_IO.Put_Line (" and " & Lib_File); else Text_IO.New_Line; end if; end if; -- 1) Build base file with objects files Utl.Gcc (Output_File => Jnk_File, Files => Ofiles, Options => All_Options, Base_File => Bas_File, Build_Lib => True); -- 2) Build exp from base file Utl.Dlltool (Def_File, Dll_File, Lib_File, Base_File => Bas_File, Exp_Table => Exp_File, Build_Import => False); -- 3) Build base file with exp file and objects files Utl.Gcc (Output_File => Jnk_File, Files => Objects_Exp_File, Options => All_Options, Base_File => Bas_File, Build_Lib => True); -- 4) Build new exp from base file and the lib file (.a) Utl.Dlltool (Def_File, Dll_File, Lib_File, Base_File => Bas_File, Exp_Table => Exp_File, Build_Import => Build_Import); -- 5) Build the dynamic library declare Params : constant OS_Lib.Argument_List := Map_Opt'Unchecked_Access & Adr_Opt'Unchecked_Access & All_Options; First_Param : Positive := Params'First + 1; begin if Map_File then First_Param := Params'First; end if; Utl.Gcc (Output_File => Dll_File, Files => Objects_Exp_File, Options => Params (First_Param .. Params'Last), Build_Lib => True); end; OS_Lib.Delete_File (Exp_File, Success); OS_Lib.Delete_File (Bas_File, Success); OS_Lib.Delete_File (Jnk_File, Success); exception when others => OS_Lib.Delete_File (Exp_File, Success); OS_Lib.Delete_File (Bas_File, Success); OS_Lib.Delete_File (Jnk_File, Success); raise; end Build_Reloc_DLL; ------------------------- -- Ada_Build_Reloc_DLL -- ------------------------- procedure Ada_Build_Reloc_DLL is Success : Boolean; pragma Warnings (Off, Success); begin if not Quiet then Text_IO.Put_Line ("Building relocatable DLL..."); Text_IO.Put ("make " & Dll_File); if Build_Import then Text_IO.Put_Line (" and " & Lib_File); else Text_IO.New_Line; end if; end if; -- 1) Build base file with objects files Utl.Gnatbind (L_Afiles, Options & Bargs_Options); declare Params : constant OS_Lib.Argument_List := Out_Opt'Unchecked_Access & Jnk_File'Unchecked_Access & Lib_Opt'Unchecked_Access & Bas_Opt'Unchecked_Access & Ofiles & All_Options; begin Utl.Gnatlink (L_Afiles (L_Afiles'Last).all, Params); end; -- 2) Build exp from base file Utl.Dlltool (Def_File, Dll_File, Lib_File, Base_File => Bas_File, Exp_Table => Exp_File, Build_Import => False); -- 3) Build base file with exp file and objects files Utl.Gnatbind (L_Afiles, Options & Bargs_Options); declare Params : constant OS_Lib.Argument_List := Out_Opt'Unchecked_Access & Jnk_File'Unchecked_Access & Lib_Opt'Unchecked_Access & Bas_Opt'Unchecked_Access & Exp_File'Unchecked_Access & Ofiles & All_Options; begin Utl.Gnatlink (L_Afiles (L_Afiles'Last).all, Params); end; -- 4) Build new exp from base file and the lib file (.a) Utl.Dlltool (Def_File, Dll_File, Lib_File, Base_File => Bas_File, Exp_Table => Exp_File, Build_Import => Build_Import); -- 5) Build the dynamic library Utl.Gnatbind (L_Afiles, Options & Bargs_Options); declare Params : constant OS_Lib.Argument_List := Map_Opt'Unchecked_Access & Out_Opt'Unchecked_Access & Dll_File'Unchecked_Access & Lib_Opt'Unchecked_Access & Exp_File'Unchecked_Access & Adr_Opt'Unchecked_Access & Ofiles & All_Options; First_Param : Positive := Params'First + 1; begin if Map_File then First_Param := Params'First; end if; Utl.Gnatlink (L_Afiles (L_Afiles'Last).all, Params (First_Param .. Params'Last)); end; OS_Lib.Delete_File (Exp_File, Success); OS_Lib.Delete_File (Bas_File, Success); OS_Lib.Delete_File (Jnk_File, Success); exception when others => OS_Lib.Delete_File (Exp_File, Success); OS_Lib.Delete_File (Bas_File, Success); OS_Lib.Delete_File (Jnk_File, Success); raise; end Ada_Build_Reloc_DLL; ------------------------- -- Build_Non_Reloc_DLL -- ------------------------- procedure Build_Non_Reloc_DLL is Success : Boolean; pragma Warnings (Off, Success); begin if not Quiet then Text_IO.Put_Line ("building non relocatable DLL..."); Text_IO.Put ("make " & Dll_File & " using address " & Lib_Address); if Build_Import then Text_IO.Put_Line (" and " & Lib_File); else Text_IO.New_Line; end if; end if; -- Build exp table and the lib .a file Utl.Dlltool (Def_File, Dll_File, Lib_File, Exp_Table => Exp_File, Build_Import => Build_Import); -- Build the DLL declare Params : OS_Lib.Argument_List := Adr_Opt'Unchecked_Access & All_Options; begin if Map_File then Params := Map_Opt'Unchecked_Access & Params; end if; Utl.Gcc (Output_File => Dll_File, Files => Exp_File'Unchecked_Access & Ofiles, Options => Params, Build_Lib => True); end; OS_Lib.Delete_File (Exp_File, Success); exception when others => OS_Lib.Delete_File (Exp_File, Success); raise; end Build_Non_Reloc_DLL; ----------------------------- -- Ada_Build_Non_Reloc_DLL -- ----------------------------- -- Build a non relocatable DLL with Ada code procedure Ada_Build_Non_Reloc_DLL is Success : Boolean; pragma Warnings (Off, Success); begin if not Quiet then Text_IO.Put_Line ("building non relocatable DLL..."); Text_IO.Put ("make " & Dll_File & " using address " & Lib_Address); if Build_Import then Text_IO.Put_Line (" and " & Lib_File); else Text_IO.New_Line; end if; end if; -- Build exp table and the lib .a file Utl.Dlltool (Def_File, Dll_File, Lib_File, Exp_Table => Exp_File, Build_Import => Build_Import); -- Build the DLL Utl.Gnatbind (L_Afiles, Options & Bargs_Options); declare Params : OS_Lib.Argument_List := Out_Opt'Unchecked_Access & Dll_File'Unchecked_Access & Lib_Opt'Unchecked_Access & Exp_File'Unchecked_Access & Adr_Opt'Unchecked_Access & Ofiles & All_Options; begin if Map_File then Params := Map_Opt'Unchecked_Access & Params; end if; Utl.Gnatlink (L_Afiles (L_Afiles'Last).all, Params); end; OS_Lib.Delete_File (Exp_File, Success); exception when others => OS_Lib.Delete_File (Exp_File, Success); raise; end Ada_Build_Non_Reloc_DLL; -- Start of processing for Build_Dynamic_Library begin -- On Windows the binder file must not be in the first position in the -- list. This is due to the way DLL's are built on Windows. We swap the -- first ali with the last one if it is the case. if L_Afiles'Length > 1 then declare Filename : constant String := Directory_Operations.Base_Name (L_Afiles (L_Afiles'First).all); First : constant Positive := Filename'First; begin if Filename (First .. First + 1) = "b~" then L_Afiles (L_Afiles'Last) := Afiles (Afiles'First); L_Afiles (L_Afiles'First) := Afiles (Afiles'Last); end if; end; end if; case Relocatable is when True => if L_Afiles'Length = 0 then Build_Reloc_DLL; else Ada_Build_Reloc_DLL; end if; when False => if L_Afiles'Length = 0 then Build_Non_Reloc_DLL; else Ada_Build_Non_Reloc_DLL; end if; end case; end Build_Dynamic_Library; -------------------------- -- Build_Import_Library -- -------------------------- procedure Build_Import_Library (Lib_Filename : String; Def_Filename : String) is procedure Build_Import_Library (Lib_Filename : String); -- Build an import library. This is to build only a .a library to link -- against a DLL. -------------------------- -- Build_Import_Library -- -------------------------- procedure Build_Import_Library (Lib_Filename : String) is function No_Lib_Prefix (Filename : String) return String; -- Return Filename without the lib prefix if present ------------------- -- No_Lib_Prefix -- ------------------- function No_Lib_Prefix (Filename : String) return String is begin if Filename (Filename'First .. Filename'First + 2) = "lib" then return Filename (Filename'First + 3 .. Filename'Last); else return Filename; end if; end No_Lib_Prefix; -- Local variables Def_File : String renames Def_Filename; Dll_File : constant String := Get_Dll_Name (Lib_Filename); Base_Filename : constant String := MDLL.Fil.Ext_To (No_Lib_Prefix (Lib_Filename)); Lib_File : constant String := "lib" & Base_Filename & ".dll.a"; -- Start of processing for Build_Import_Library begin if not Quiet then Text_IO.Put_Line ("Building import library..."); Text_IO.Put_Line ("make " & Lib_File & " to use dynamic library " & Dll_File); end if; Utl.Dlltool (Def_File, Dll_File, Lib_File, Build_Import => True); end Build_Import_Library; -- Start of processing for Build_Import_Library begin Build_Import_Library (Lib_Filename); end Build_Import_Library; ------------------ -- Get_Dll_Name -- ------------------ function Get_Dll_Name (Lib_Filename : String) return String is begin if MDLL.Fil.Get_Ext (Lib_Filename) = "" then return Lib_Filename & ".dll"; else return Lib_Filename; end if; end Get_Dll_Name; end MDLL;
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2016 onox <denkpadje@gmail.com> -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in writing, software -- distributed under the License is distributed on an "AS IS" BASIS, -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. with GL.Barriers; with GL.Types; with Orka.Transforms.Doubles.Vectors; with Orka.Transforms.Doubles.Vector_Conversions; with Orka.Rendering.Drawing; package body Orka.Resources.Models is function Create_Group (Object : aliased in out Model; Culler : Culling.Culler_Ptr; Capacity : Positive) return Group_Access is Shapes_Count : constant Natural := Object.Scene.Shapes.Element'Length; begin return new Model_Group' (Model => Object'Access, Instances => Model_Instances.Create_Manager (Capacity => Capacity, Parts => Shapes_Count), Cull_Instance => Culling.Create_Instance (Culler, Transforms => Capacity * Shapes_Count, Commands => Shapes_Count), others => <>); end Create_Group; procedure Add_Instance (Object : access Model_Group; Instance : in out Model_Instance_Ptr) is begin if Instance.Group /= null then raise Program_Error; end if; Instance.Group := Object; Instance.Scene := Object.Model.Scene.Scene; Instance.Instance := Object.Instances.Add_Instance; end Add_Instance; procedure Remove_Instance (Object : in out Model_Group; Instance : in out Model_Instance_Ptr) is begin if Instance.Group = null then raise Program_Error; end if; Instance.Group := null; Object.Instances.Remove_Instance (Instance.Instance); end Remove_Instance; ----------------------------------------------------------------------------- procedure Cull (Object : in out Model_Group) is begin Object.Cull_Instance.Cull (Transforms => Object.Instances.Transforms, Bounds => Object.Model.Bounds, Commands => Object.Model.Batch.Commands.Buffer, Compacted_Transforms => Object.Compacted_Transforms, Compacted_Commands => Object.Compacted_Commands, Instances => Object.Instances.Length); end Cull; procedure Render (Object : in out Model_Group) is use all type Rendering.Buffers.Indexed_Buffer_Target; begin Object.Model.Batch.Data.Bind (Shader_Storage, 1); Object.Compacted_Transforms.Bind (Shader_Storage, 0); GL.Barriers.Memory_Barrier ((Shader_Storage | Command => True, others => False)); Rendering.Drawing.Draw_Indexed_Indirect (GL.Types.Triangles, Object.Model.Batch.Indices.Buffer, Object.Compacted_Commands); end Render; procedure After_Render (Object : in out Model_Group) is begin Object.Instances.Complete_Frame; end After_Render; ----------------------------------------------------------------------------- procedure Update_Transforms (Object : in out Model_Instance; View_Position : Behaviors.Vector4) is use Transforms; use Orka.Transforms.Doubles.Vectors; use Orka.Transforms.Doubles.Vector_Conversions; pragma Assert (Object.Group /= null); Position : Behaviors.Vector4 renames Behaviors.Behavior'Class (Object).Position; procedure Write_Transforms (Cursors : Cursor_Array) is begin for Index in Cursors'Range loop Object.Group.Instances.Set_Transform (Value => Object.Scene.World_Transform (Cursors (Index)), Instance => Object.Instance, Part => Index - Cursors'First); end loop; end Write_Transforms; begin -- Compute the world transforms by multiplying the local transform -- of each node with the world transform of its parent. Also updates -- the visibility of each node. Object.Scene.Update_Tree (T (Convert (Position - View_Position))); -- Write the world transform of the leaf nodes to the persistent mapped buffer Object.Group.Model.Scene.Shapes.Query_Element (Write_Transforms'Access); -- Note: This requires that the structure of the model's scene tree is -- identical to the instance's scene so that we can re-use the cursors end Update_Transforms; end Orka.Resources.Models;
<?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>colorthresholding_9_0_3_2160_3840_1_Loop_VITIS_LOOP_138_1_proc</name> <ret_bitwidth>144</ret_bitwidth> <ports class_id="2" tracking_level="0" version="0"> <count>2</count> <item_version>0</item_version> <item class_id="3" tracking_level="1" version="0" object_id="_1"> <Value class_id="4" tracking_level="0" version="0"> <Obj class_id="5" tracking_level="0" version="0"> <type>1</type> <id>1</id> <name>low_thresh</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo class_id="6" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>49</coreId> </Obj> <bitwidth>8</bitwidth> </Value> <direction>0</direction> <if_type>1</if_type> <array_size>9</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>high_thresh</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>49</coreId> </Obj> <bitwidth>8</bitwidth> </Value> <direction>0</direction> <if_type>1</if_type> <array_size>9</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>104</count> <item_version>0</item_version> <item class_id="9" tracking_level="1" version="0" object_id="_3"> <Value> <Obj> <type>0</type> <id>3</id> <name>high_th_2_2</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>high_th[2][2]</originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>0</coreId> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>119</item> </oprand_edges> <opcode>alloca</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>1</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_4"> <Value> <Obj> <type>0</type> <id>4</id> <name>high_th_2_1</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>high_th[2][1]</originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>113</coreId> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>120</item> </oprand_edges> <opcode>alloca</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>2</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_5"> <Value> <Obj> <type>0</type> <id>5</id> <name>low_th_2_0</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>low_th[2][0]</originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>113</coreId> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>121</item> </oprand_edges> <opcode>alloca</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>3</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_6"> <Value> <Obj> <type>0</type> <id>6</id> <name>high_th_2_0</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>high_th[2][0]</originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>113</coreId> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>122</item> </oprand_edges> <opcode>alloca</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>4</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_7"> <Value> <Obj> <type>0</type> <id>7</id> <name>low_th_2_2</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>low_th[2][2]</originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>49</coreId> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>123</item> </oprand_edges> <opcode>alloca</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>5</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_8"> <Value> <Obj> <type>0</type> <id>8</id> <name>low_th_2_1</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>low_th[2][1]</originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>132</coreId> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>124</item> </oprand_edges> <opcode>alloca</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>6</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_9"> <Value> <Obj> <type>0</type> <id>9</id> <name>low_th_2_1_1</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>low_th[2][1]</originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>0</coreId> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>125</item> </oprand_edges> <opcode>alloca</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>7</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_10"> <Value> <Obj> <type>0</type> <id>10</id> <name>low_th_2_0_1</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>low_th[2][0]</originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>0</coreId> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>126</item> </oprand_edges> <opcode>alloca</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>8</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_11"> <Value> <Obj> <type>0</type> <id>11</id> <name>low_th_2_2_1</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>low_th[2][2]</originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>1702127986</coreId> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>127</item> </oprand_edges> <opcode>alloca</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>9</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_12"> <Value> <Obj> <type>0</type> <id>12</id> <name>high_th_2_2_1</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>high_th[2][2]</originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>828330063</coreId> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>128</item> </oprand_edges> <opcode>alloca</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>10</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_13"> <Value> <Obj> <type>0</type> <id>13</id> <name>high_th_2_1_1</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>high_th[2][1]</originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>4294967295</coreId> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>129</item> </oprand_edges> <opcode>alloca</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>11</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_14"> <Value> <Obj> <type>0</type> <id>14</id> <name>high_th_2_0_1</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>high_th[2][0]</originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>3405275129</coreId> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>130</item> </oprand_edges> <opcode>alloca</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>12</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_15"> <Value> <Obj> <type>0</type> <id>15</id> <name>high_th_2_0_2</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>high_th[2][0]</originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>49</coreId> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>131</item> </oprand_edges> <opcode>alloca</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>13</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_16"> <Value> <Obj> <type>0</type> <id>16</id> <name>low_th_2_2_2</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>low_th[2][2]</originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>4294967295</coreId> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>132</item> </oprand_edges> <opcode>alloca</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>14</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_17"> <Value> <Obj> <type>0</type> <id>17</id> <name>high_th_2_1_2</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>high_th[2][1]</originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>132</coreId> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>133</item> </oprand_edges> <opcode>alloca</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>15</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_18"> <Value> <Obj> <type>0</type> <id>18</id> <name>low_th_2_1_2</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>low_th[2][1]</originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>4294967295</coreId> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>134</item> </oprand_edges> <opcode>alloca</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>16</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_19"> <Value> <Obj> <type>0</type> <id>19</id> <name>low_th_2_0_2</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>low_th[2][0]</originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>132</coreId> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>135</item> </oprand_edges> <opcode>alloca</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>17</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_20"> <Value> <Obj> <type>0</type> <id>20</id> <name>high_th_2_2_2</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>high_th[2][2]</originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>4294967295</coreId> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>136</item> </oprand_edges> <opcode>alloca</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>18</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_21"> <Value> <Obj> <type>0</type> <id>21</id> <name>br_ln0</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>132</coreId> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>137</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.29</m_delay> <m_topoIndex>19</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_22"> <Value> <Obj> <type>0</type> <id>23</id> <name>i</name> <fileName>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</fileName> <fileDirectory>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</fileDirectory> <lineNumber>143</lineNumber> <contextFuncName>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</contextFuncName> <contextNormFuncName>colorthresholding_9_0_3_2160_3840_1_s</contextNormFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item class_id="11" tracking_level="0" version="0"> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</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>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</first> <second>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</second> </first> <second>143</second> </item> </second> </item> </inlineStackInfo> <originalName>i</originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>4294967295</coreId> </Obj> <bitwidth>2</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>195</item> <item>196</item> <item>197</item> <item>198</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>20</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_23"> <Value> <Obj> <type>0</type> <id>24</id> <name>j</name> <fileName>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</fileName> <fileDirectory>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</fileDirectory> <lineNumber>149</lineNumber> <contextFuncName>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</contextFuncName> <contextNormFuncName>colorthresholding_9_0_3_2160_3840_1_s</contextNormFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</first> <second>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</second> </first> <second>149</second> </item> </second> </item> </inlineStackInfo> <originalName>j</originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>132</coreId> </Obj> <bitwidth>4</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>200</item> <item>201</item> <item>202</item> <item>203</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>21</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_24"> <Value> <Obj> <type>0</type> <id>25</id> <name>add_ln138</name> <fileName>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</fileName> <fileDirectory>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</fileDirectory> <lineNumber>138</lineNumber> <contextFuncName>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</contextFuncName> <contextNormFuncName>colorthresholding_9_0_3_2160_3840_1_s</contextNormFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</first> <second>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</second> </first> <second>138</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>4294967295</coreId> </Obj> <bitwidth>2</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>204</item> <item>206</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>0.63</m_delay> <m_topoIndex>22</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_25"> <Value> <Obj> <type>0</type> <id>26</id> <name>icmp_ln138</name> <fileName>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</fileName> <fileDirectory>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</fileDirectory> <lineNumber>138</lineNumber> <contextFuncName>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</contextFuncName> <contextNormFuncName>colorthresholding_9_0_3_2160_3840_1_s</contextNormFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</first> <second>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</second> </first> <second>138</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>961</coreId> </Obj> <bitwidth>1</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>207</item> <item>209</item> </oprand_edges> <opcode>icmp</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.50</m_delay> <m_topoIndex>23</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_26"> <Value> <Obj> <type>0</type> <id>28</id> <name>br_ln138</name> <fileName>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</fileName> <fileDirectory>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</fileDirectory> <lineNumber>138</lineNumber> <contextFuncName>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</contextFuncName> <contextNormFuncName>colorthresholding_9_0_3_2160_3840_1_s</contextNormFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</first> <second>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</second> </first> <second>138</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>4294967295</coreId> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>210</item> <item>211</item> <item>212</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>24</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_27"> <Value> <Obj> <type>0</type> <id>30</id> <name>zext_ln138</name> <fileName>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</fileName> <fileDirectory>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</fileDirectory> <lineNumber>138</lineNumber> <contextFuncName>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</contextFuncName> <contextNormFuncName>colorthresholding_9_0_3_2160_3840_1_s</contextNormFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</first> <second>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</second> </first> <second>138</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>177</coreId> </Obj> <bitwidth>64</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>217</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>25</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_28"> <Value> <Obj> <type>0</type> <id>33</id> <name>low_thresh_addr</name> <fileName>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</fileName> <fileDirectory>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</fileDirectory> <lineNumber>143</lineNumber> <contextFuncName>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</contextFuncName> <contextNormFuncName>colorthresholding_9_0_3_2160_3840_1_s</contextNormFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</first> <second>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</second> </first> <second>143</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>0</coreId> </Obj> <bitwidth>4</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>218</item> <item>220</item> <item>221</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>26</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_29"> <Value> <Obj> <type>0</type> <id>34</id> <name>low_th_0_0</name> <fileName>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</fileName> <fileDirectory>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</fileDirectory> <lineNumber>143</lineNumber> <contextFuncName>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</contextFuncName> <contextNormFuncName>colorthresholding_9_0_3_2160_3840_1_s</contextNormFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</first> <second>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</second> </first> <second>143</second> </item> </second> </item> </inlineStackInfo> <originalName>low_th[0][0]</originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>961</coreId> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>222</item> </oprand_edges> <opcode>load</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.75</m_delay> <m_topoIndex>27</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_30"> <Value> <Obj> <type>0</type> <id>35</id> <name>trunc_ln144</name> <fileName>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</fileName> <fileDirectory>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</fileDirectory> <lineNumber>144</lineNumber> <contextFuncName>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</contextFuncName> <contextNormFuncName>colorthresholding_9_0_3_2160_3840_1_s</contextNormFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</first> <second>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</second> </first> <second>144</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>4227858560</coreId> </Obj> <bitwidth>3</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>223</item> </oprand_edges> <opcode>trunc</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>28</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_31"> <Value> <Obj> <type>0</type> <id>36</id> <name>zext_ln144_1</name> <fileName>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</fileName> <fileDirectory>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</fileDirectory> <lineNumber>144</lineNumber> <contextFuncName>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</contextFuncName> <contextNormFuncName>colorthresholding_9_0_3_2160_3840_1_s</contextNormFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</first> <second>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</second> </first> <second>144</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>49</coreId> </Obj> <bitwidth>4</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>224</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>40</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_32"> <Value> <Obj> <type>0</type> <id>37</id> <name>add_ln144</name> <fileName>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</fileName> <fileDirectory>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</fileDirectory> <lineNumber>144</lineNumber> <contextFuncName>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</contextFuncName> <contextNormFuncName>colorthresholding_9_0_3_2160_3840_1_s</contextNormFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</first> <second>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</second> </first> <second>144</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>993</coreId> </Obj> <bitwidth>3</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>225</item> <item>227</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>0.76</m_delay> <m_topoIndex>29</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_33"> <Value> <Obj> <type>0</type> <id>38</id> <name>zext_ln144</name> <fileName>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</fileName> <fileDirectory>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</fileDirectory> <lineNumber>144</lineNumber> <contextFuncName>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</contextFuncName> <contextNormFuncName>colorthresholding_9_0_3_2160_3840_1_s</contextNormFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</first> <second>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</second> </first> <second>144</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>49</coreId> </Obj> <bitwidth>64</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>228</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>30</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_34"> <Value> <Obj> <type>0</type> <id>39</id> <name>low_thresh_addr_1</name> <fileName>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</fileName> <fileDirectory>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</fileDirectory> <lineNumber>144</lineNumber> <contextFuncName>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</contextFuncName> <contextNormFuncName>colorthresholding_9_0_3_2160_3840_1_s</contextNormFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</first> <second>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</second> </first> <second>144</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>1295661686</coreId> </Obj> <bitwidth>4</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>229</item> <item>230</item> <item>231</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>31</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_35"> <Value> <Obj> <type>0</type> <id>40</id> <name>low_th_0_1</name> <fileName>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</fileName> <fileDirectory>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</fileDirectory> <lineNumber>144</lineNumber> <contextFuncName>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</contextFuncName> <contextNormFuncName>colorthresholding_9_0_3_2160_3840_1_s</contextNormFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</first> <second>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</second> </first> <second>144</second> </item> </second> </item> </inlineStackInfo> <originalName>low_th[0][1]</originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>0</coreId> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>232</item> </oprand_edges> <opcode>load</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.75</m_delay> <m_topoIndex>32</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_36"> <Value> <Obj> <type>0</type> <id>41</id> <name>add_ln145</name> <fileName>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</fileName> <fileDirectory>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</fileDirectory> <lineNumber>145</lineNumber> <contextFuncName>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</contextFuncName> <contextNormFuncName>colorthresholding_9_0_3_2160_3840_1_s</contextNormFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</first> <second>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</second> </first> <second>145</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>132</coreId> </Obj> <bitwidth>4</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>233</item> <item>235</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>0.76</m_delay> <m_topoIndex>41</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_37"> <Value> <Obj> <type>0</type> <id>42</id> <name>zext_ln145</name> <fileName>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</fileName> <fileDirectory>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</fileDirectory> <lineNumber>145</lineNumber> <contextFuncName>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</contextFuncName> <contextNormFuncName>colorthresholding_9_0_3_2160_3840_1_s</contextNormFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</first> <second>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</second> </first> <second>145</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>1057</coreId> </Obj> <bitwidth>64</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>236</item> </oprand_edges> <opcode>zext</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>42</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_38"> <Value> <Obj> <type>0</type> <id>43</id> <name>low_thresh_addr_2</name> <fileName>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</fileName> <fileDirectory>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</fileDirectory> <lineNumber>145</lineNumber> <contextFuncName>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</contextFuncName> <contextNormFuncName>colorthresholding_9_0_3_2160_3840_1_s</contextNormFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</first> <second>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</second> </first> <second>145</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>1057</coreId> </Obj> <bitwidth>4</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>237</item> <item>238</item> <item>239</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>43</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_39"> <Value> <Obj> <type>0</type> <id>44</id> <name>low_th_0_2</name> <fileName>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</fileName> <fileDirectory>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</fileDirectory> <lineNumber>145</lineNumber> <contextFuncName>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</contextFuncName> <contextNormFuncName>colorthresholding_9_0_3_2160_3840_1_s</contextNormFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</first> <second>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</second> </first> <second>145</second> </item> </second> </item> </inlineStackInfo> <originalName>low_th[0][2]</originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>132</coreId> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>240</item> </oprand_edges> <opcode>load</opcode> <m_Display>1</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>1</m_isLCDNode> <m_isStartOfPath>1</m_isStartOfPath> <m_delay>1.75</m_delay> <m_topoIndex>44</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_40"> <Value> <Obj> <type>0</type> <id>45</id> <name>high_thresh_addr</name> <fileName>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</fileName> <fileDirectory>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</fileDirectory> <lineNumber>146</lineNumber> <contextFuncName>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</contextFuncName> <contextNormFuncName>colorthresholding_9_0_3_2160_3840_1_s</contextNormFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</first> <second>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</second> </first> <second>146</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>1089</coreId> </Obj> <bitwidth>4</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>241</item> <item>242</item> <item>243</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>33</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_41"> <Value> <Obj> <type>0</type> <id>46</id> <name>high_th_0_0</name> <fileName>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</fileName> <fileDirectory>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</fileDirectory> <lineNumber>146</lineNumber> <contextFuncName>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</contextFuncName> <contextNormFuncName>colorthresholding_9_0_3_2160_3840_1_s</contextNormFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</first> <second>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</second> </first> <second>146</second> </item> </second> </item> </inlineStackInfo> <originalName>high_th[0][0]</originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>1089</coreId> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>244</item> </oprand_edges> <opcode>load</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.75</m_delay> <m_topoIndex>34</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_42"> <Value> <Obj> <type>0</type> <id>47</id> <name>high_thresh_addr_1</name> <fileName>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</fileName> <fileDirectory>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</fileDirectory> <lineNumber>147</lineNumber> <contextFuncName>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</contextFuncName> <contextNormFuncName>colorthresholding_9_0_3_2160_3840_1_s</contextNormFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</first> <second>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</second> </first> <second>147</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>1089</coreId> </Obj> <bitwidth>4</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>245</item> <item>246</item> <item>247</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>35</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_43"> <Value> <Obj> <type>0</type> <id>48</id> <name>high_th_0_1</name> <fileName>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</fileName> <fileDirectory>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</fileDirectory> <lineNumber>147</lineNumber> <contextFuncName>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</contextFuncName> <contextNormFuncName>colorthresholding_9_0_3_2160_3840_1_s</contextNormFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</first> <second>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</second> </first> <second>147</second> </item> </second> </item> </inlineStackInfo> <originalName>high_th[0][1]</originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>1089</coreId> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>248</item> </oprand_edges> <opcode>load</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.75</m_delay> <m_topoIndex>36</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_44"> <Value> <Obj> <type>0</type> <id>49</id> <name>high_thresh_addr_2</name> <fileName>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</fileName> <fileDirectory>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</fileDirectory> <lineNumber>148</lineNumber> <contextFuncName>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</contextFuncName> <contextNormFuncName>colorthresholding_9_0_3_2160_3840_1_s</contextNormFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</first> <second>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</second> </first> <second>148</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>49</coreId> </Obj> <bitwidth>4</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>249</item> <item>250</item> <item>251</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>45</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_45"> <Value> <Obj> <type>0</type> <id>50</id> <name>high_th_0_2</name> <fileName>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</fileName> <fileDirectory>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</fileDirectory> <lineNumber>148</lineNumber> <contextFuncName>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</contextFuncName> <contextNormFuncName>colorthresholding_9_0_3_2160_3840_1_s</contextNormFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</first> <second>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</second> </first> <second>148</second> </item> </second> </item> </inlineStackInfo> <originalName>high_th[0][2]</originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>132</coreId> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>252</item> </oprand_edges> <opcode>load</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.75</m_delay> <m_topoIndex>46</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_46"> <Value> <Obj> <type>0</type> <id>51</id> <name>_ln143</name> <fileName>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</fileName> <fileDirectory>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</fileDirectory> <lineNumber>143</lineNumber> <contextFuncName>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</contextFuncName> <contextNormFuncName>colorthresholding_9_0_3_2160_3840_1_s</contextNormFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</first> <second>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</second> </first> <second>143</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>49</coreId> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>6</count> <item_version>0</item_version> <item>253</item> <item>254</item> <item>255</item> <item>256</item> <item>257</item> <item>258</item> </oprand_edges> <opcode>switch</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.98</m_delay> <m_topoIndex>37</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_47"> <Value> <Obj> <type>0</type> <id>53</id> <name>low_th_2_0_2_write_ln143</name> <fileName>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</fileName> <fileDirectory>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</fileDirectory> <lineNumber>143</lineNumber> <contextFuncName>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</contextFuncName> <contextNormFuncName>colorthresholding_9_0_3_2160_3840_1_s</contextNormFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</first> <second>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</second> </first> <second>143</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>1217</coreId> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>272</item> <item>273</item> </oprand_edges> <opcode>store</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>47</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_48"> <Value> <Obj> <type>0</type> <id>54</id> <name>low_th_2_1_2_write_ln144</name> <fileName>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</fileName> <fileDirectory>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</fileDirectory> <lineNumber>144</lineNumber> <contextFuncName>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</contextFuncName> <contextNormFuncName>colorthresholding_9_0_3_2160_3840_1_s</contextNormFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</first> <second>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</second> </first> <second>144</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>49</coreId> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>274</item> <item>275</item> </oprand_edges> <opcode>store</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>48</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_49"> <Value> <Obj> <type>0</type> <id>55</id> <name>low_th_2_2_2_write_ln145</name> <fileName>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</fileName> <fileDirectory>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</fileDirectory> <lineNumber>145</lineNumber> <contextFuncName>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</contextFuncName> <contextNormFuncName>colorthresholding_9_0_3_2160_3840_1_s</contextNormFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</first> <second>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</second> </first> <second>145</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>49</coreId> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>276</item> <item>277</item> </oprand_edges> <opcode>store</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>59</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_50"> <Value> <Obj> <type>0</type> <id>56</id> <name>high_th_2_0_2_write_ln146</name> <fileName>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</fileName> <fileDirectory>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</fileDirectory> <lineNumber>146</lineNumber> <contextFuncName>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</contextFuncName> <contextNormFuncName>colorthresholding_9_0_3_2160_3840_1_s</contextNormFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</first> <second>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</second> </first> <second>146</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>132</coreId> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>278</item> <item>279</item> </oprand_edges> <opcode>store</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>49</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_51"> <Value> <Obj> <type>0</type> <id>57</id> <name>high_th_2_1_1_write_ln147</name> <fileName>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</fileName> <fileDirectory>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</fileDirectory> <lineNumber>147</lineNumber> <contextFuncName>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</contextFuncName> <contextNormFuncName>colorthresholding_9_0_3_2160_3840_1_s</contextNormFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</first> <second>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</second> </first> <second>147</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>1265</coreId> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>280</item> <item>281</item> </oprand_edges> <opcode>store</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>50</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_52"> <Value> <Obj> <type>0</type> <id>58</id> <name>high_th_2_2_1_write_ln148</name> <fileName>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</fileName> <fileDirectory>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</fileDirectory> <lineNumber>148</lineNumber> <contextFuncName>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</contextFuncName> <contextNormFuncName>colorthresholding_9_0_3_2160_3840_1_s</contextNormFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</first> <second>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</second> </first> <second>148</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>49</coreId> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>282</item> <item>283</item> </oprand_edges> <opcode>store</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>60</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_53"> <Value> <Obj> <type>0</type> <id>59</id> <name>br_ln0</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>0</coreId> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>284</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>61</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_54"> <Value> <Obj> <type>0</type> <id>61</id> <name>high_th_2_2_2_write_ln143</name> <fileName>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</fileName> <fileDirectory>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</fileDirectory> <lineNumber>143</lineNumber> <contextFuncName>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</contextFuncName> <contextNormFuncName>colorthresholding_9_0_3_2160_3840_1_s</contextNormFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</first> <second>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</second> </first> <second>143</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>3407959456</coreId> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>259</item> <item>260</item> </oprand_edges> <opcode>store</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>62</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_55"> <Value> <Obj> <type>0</type> <id>62</id> <name>high_th_2_1_2_write_ln143</name> <fileName>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</fileName> <fileDirectory>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</fileDirectory> <lineNumber>143</lineNumber> <contextFuncName>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</contextFuncName> <contextNormFuncName>colorthresholding_9_0_3_2160_3840_1_s</contextNormFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</first> <second>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</second> </first> <second>143</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>132</coreId> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>261</item> <item>262</item> </oprand_edges> <opcode>store</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>51</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_56"> <Value> <Obj> <type>0</type> <id>63</id> <name>high_th_2_0_1_write_ln143</name> <fileName>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</fileName> <fileDirectory>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</fileDirectory> <lineNumber>143</lineNumber> <contextFuncName>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</contextFuncName> <contextNormFuncName>colorthresholding_9_0_3_2160_3840_1_s</contextNormFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</first> <second>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</second> </first> <second>143</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>49</coreId> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>263</item> <item>264</item> </oprand_edges> <opcode>store</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>52</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_57"> <Value> <Obj> <type>0</type> <id>64</id> <name>low_th_2_2_1_write_ln143</name> <fileName>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</fileName> <fileDirectory>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</fileDirectory> <lineNumber>143</lineNumber> <contextFuncName>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</contextFuncName> <contextNormFuncName>colorthresholding_9_0_3_2160_3840_1_s</contextNormFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</first> <second>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</second> </first> <second>143</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>132</coreId> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>265</item> <item>266</item> </oprand_edges> <opcode>store</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>63</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_58"> <Value> <Obj> <type>0</type> <id>65</id> <name>low_th_2_1_write_ln143</name> <fileName>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</fileName> <fileDirectory>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</fileDirectory> <lineNumber>143</lineNumber> <contextFuncName>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</contextFuncName> <contextNormFuncName>colorthresholding_9_0_3_2160_3840_1_s</contextNormFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</first> <second>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</second> </first> <second>143</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>49</coreId> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>267</item> <item>268</item> </oprand_edges> <opcode>store</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>53</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_59"> <Value> <Obj> <type>0</type> <id>66</id> <name>low_th_2_0_write_ln143</name> <fileName>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</fileName> <fileDirectory>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</fileDirectory> <lineNumber>143</lineNumber> <contextFuncName>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</contextFuncName> <contextNormFuncName>colorthresholding_9_0_3_2160_3840_1_s</contextNormFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</first> <second>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</second> </first> <second>143</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>1361</coreId> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>269</item> <item>270</item> </oprand_edges> <opcode>store</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>54</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_60"> <Value> <Obj> <type>0</type> <id>67</id> <name>br_ln143</name> <fileName>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</fileName> <fileDirectory>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</fileDirectory> <lineNumber>143</lineNumber> <contextFuncName>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</contextFuncName> <contextNormFuncName>colorthresholding_9_0_3_2160_3840_1_s</contextNormFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</first> <second>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</second> </first> <second>143</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>1667853424</coreId> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>271</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>64</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_61"> <Value> <Obj> <type>0</type> <id>69</id> <name>low_th_2_0_1_write_ln143</name> <fileName>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</fileName> <fileDirectory>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</fileDirectory> <lineNumber>143</lineNumber> <contextFuncName>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</contextFuncName> <contextNormFuncName>colorthresholding_9_0_3_2160_3840_1_s</contextNormFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</first> <second>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</second> </first> <second>143</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>1393</coreId> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>285</item> <item>286</item> </oprand_edges> <opcode>store</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>55</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_62"> <Value> <Obj> <type>0</type> <id>70</id> <name>low_th_2_1_1_write_ln144</name> <fileName>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</fileName> <fileDirectory>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</fileDirectory> <lineNumber>144</lineNumber> <contextFuncName>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</contextFuncName> <contextNormFuncName>colorthresholding_9_0_3_2160_3840_1_s</contextNormFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</first> <second>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</second> </first> <second>144</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>1393</coreId> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>287</item> <item>288</item> </oprand_edges> <opcode>store</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>56</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_63"> <Value> <Obj> <type>0</type> <id>71</id> <name>low_th_2_2_write_ln145</name> <fileName>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</fileName> <fileDirectory>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</fileDirectory> <lineNumber>145</lineNumber> <contextFuncName>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</contextFuncName> <contextNormFuncName>colorthresholding_9_0_3_2160_3840_1_s</contextNormFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</first> <second>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</second> </first> <second>145</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>1441</coreId> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>289</item> <item>290</item> </oprand_edges> <opcode>store</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>65</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_64"> <Value> <Obj> <type>0</type> <id>72</id> <name>high_th_2_0_write_ln146</name> <fileName>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</fileName> <fileDirectory>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</fileDirectory> <lineNumber>146</lineNumber> <contextFuncName>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</contextFuncName> <contextNormFuncName>colorthresholding_9_0_3_2160_3840_1_s</contextNormFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</first> <second>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</second> </first> <second>146</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>4</coreId> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>291</item> <item>292</item> </oprand_edges> <opcode>store</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>57</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_65"> <Value> <Obj> <type>0</type> <id>73</id> <name>high_th_2_1_write_ln147</name> <fileName>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</fileName> <fileDirectory>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</fileDirectory> <lineNumber>147</lineNumber> <contextFuncName>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</contextFuncName> <contextNormFuncName>colorthresholding_9_0_3_2160_3840_1_s</contextNormFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</first> <second>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</second> </first> <second>147</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>0</coreId> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>293</item> <item>294</item> </oprand_edges> <opcode>store</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>58</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_66"> <Value> <Obj> <type>0</type> <id>74</id> <name>high_th_2_2_write_ln148</name> <fileName>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</fileName> <fileDirectory>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</fileDirectory> <lineNumber>148</lineNumber> <contextFuncName>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</contextFuncName> <contextNormFuncName>colorthresholding_9_0_3_2160_3840_1_s</contextNormFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</first> <second>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</second> </first> <second>148</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>49</coreId> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>295</item> <item>296</item> </oprand_edges> <opcode>store</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>66</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_67"> <Value> <Obj> <type>0</type> <id>75</id> <name>br_ln0</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>49</coreId> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>297</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>67</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_68"> <Value> <Obj> <type>0</type> <id>77</id> <name>add_ln149</name> <fileName>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</fileName> <fileDirectory>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</fileDirectory> <lineNumber>149</lineNumber> <contextFuncName>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</contextFuncName> <contextNormFuncName>colorthresholding_9_0_3_2160_3840_1_s</contextNormFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</first> <second>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</second> </first> <second>149</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>0</coreId> </Obj> <bitwidth>4</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>213</item> <item>215</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>0.99</m_delay> <m_topoIndex>38</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_69"> <Value> <Obj> <type>0</type> <id>78</id> <name>br_ln138</name> <fileName>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</fileName> <fileDirectory>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</fileDirectory> <lineNumber>138</lineNumber> <contextFuncName>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</contextFuncName> <contextNormFuncName>colorthresholding_9_0_3_2160_3840_1_s</contextNormFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>/home/willychiang/Desktop/PYNQ-HelloWorld/boards/ip/vitis_lib/vision/L1/include/imgproc/xf_colorthresholding.hpp</first> <second>colorthresholding&amp;lt;9, 0, 3, 2160, 3840, 1&amp;gt;</second> </first> <second>138</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>1505</coreId> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>216</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>39</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_70"> <Value> <Obj> <type>0</type> <id>80</id> <name>high_th_2_2_load</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>1617</coreId> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>138</item> </oprand_edges> <opcode>load</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>68</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_71"> <Value> <Obj> <type>0</type> <id>81</id> <name>high_th_2_1_load</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>266</coreId> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>139</item> </oprand_edges> <opcode>load</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>69</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_72"> <Value> <Obj> <type>0</type> <id>82</id> <name>low_th_2_0_load</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>426</coreId> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>140</item> </oprand_edges> <opcode>load</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>70</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_73"> <Value> <Obj> <type>0</type> <id>83</id> <name>high_th_2_0_load</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>1681</coreId> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>141</item> </oprand_edges> <opcode>load</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>71</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_74"> <Value> <Obj> <type>0</type> <id>84</id> <name>low_th_2_2_load</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>0</coreId> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>142</item> </oprand_edges> <opcode>load</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>72</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_75"> <Value> <Obj> <type>0</type> <id>85</id> <name>low_th_2_1_load</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>3406728024</coreId> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>143</item> </oprand_edges> <opcode>load</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>73</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_76"> <Value> <Obj> <type>0</type> <id>86</id> <name>low_th_2_1_1_load</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>49</coreId> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>144</item> </oprand_edges> <opcode>load</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>74</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_77"> <Value> <Obj> <type>0</type> <id>87</id> <name>low_th_2_0_1_load</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>0</coreId> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>145</item> </oprand_edges> <opcode>load</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>75</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_78"> <Value> <Obj> <type>0</type> <id>88</id> <name>low_th_2_2_1_load</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>0</coreId> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>146</item> </oprand_edges> <opcode>load</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>76</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_79"> <Value> <Obj> <type>0</type> <id>89</id> <name>high_th_2_2_1_load</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>1697</coreId> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>147</item> </oprand_edges> <opcode>load</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>77</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_80"> <Value> <Obj> <type>0</type> <id>90</id> <name>high_th_2_1_1_load</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>132</coreId> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>148</item> </oprand_edges> <opcode>load</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>78</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_81"> <Value> <Obj> <type>0</type> <id>91</id> <name>high_th_2_0_1_load</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>481</coreId> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>149</item> </oprand_edges> <opcode>load</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>79</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_82"> <Value> <Obj> <type>0</type> <id>92</id> <name>high_th_2_0_2_load</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>0</coreId> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>150</item> </oprand_edges> <opcode>load</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>80</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_83"> <Value> <Obj> <type>0</type> <id>93</id> <name>low_th_2_2_2_load</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>0</coreId> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>151</item> </oprand_edges> <opcode>load</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>81</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_84"> <Value> <Obj> <type>0</type> <id>94</id> <name>high_th_2_1_2_load</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>0</coreId> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>152</item> </oprand_edges> <opcode>load</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>82</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_85"> <Value> <Obj> <type>0</type> <id>95</id> <name>low_th_2_1_2_load</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>1745</coreId> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>153</item> </oprand_edges> <opcode>load</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>83</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_86"> <Value> <Obj> <type>0</type> <id>96</id> <name>low_th_2_0_2_load</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>1137</coreId> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>154</item> </oprand_edges> <opcode>load</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>84</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_87"> <Value> <Obj> <type>0</type> <id>97</id> <name>high_th_2_2_2_load</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>529</coreId> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>155</item> </oprand_edges> <opcode>load</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>85</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_88"> <Value> <Obj> <type>0</type> <id>98</id> <name>mrv</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>1649</coreId> </Obj> <bitwidth>144</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>157</item> <item>158</item> </oprand_edges> <opcode>insertvalue</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>86</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_89"> <Value> <Obj> <type>0</type> <id>99</id> <name>mrv_1</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>0</coreId> </Obj> <bitwidth>144</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>159</item> <item>160</item> </oprand_edges> <opcode>insertvalue</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>87</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_90"> <Value> <Obj> <type>0</type> <id>100</id> <name>mrv_2</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>0</coreId> </Obj> <bitwidth>144</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>161</item> <item>162</item> </oprand_edges> <opcode>insertvalue</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>88</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_91"> <Value> <Obj> <type>0</type> <id>101</id> <name>mrv_3</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>13</coreId> </Obj> <bitwidth>144</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>163</item> <item>164</item> </oprand_edges> <opcode>insertvalue</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>89</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_92"> <Value> <Obj> <type>0</type> <id>102</id> <name>mrv_4</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>4227858560</coreId> </Obj> <bitwidth>144</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>165</item> <item>166</item> </oprand_edges> <opcode>insertvalue</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>90</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_93"> <Value> <Obj> <type>0</type> <id>103</id> <name>mrv_5</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>3407587136</coreId> </Obj> <bitwidth>144</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>167</item> <item>168</item> </oprand_edges> <opcode>insertvalue</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>91</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_94"> <Value> <Obj> <type>0</type> <id>104</id> <name>mrv_6</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>49</coreId> </Obj> <bitwidth>144</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>169</item> <item>170</item> </oprand_edges> <opcode>insertvalue</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>92</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_95"> <Value> <Obj> <type>0</type> <id>105</id> <name>mrv_7</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>3408027976</coreId> </Obj> <bitwidth>144</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>171</item> <item>172</item> </oprand_edges> <opcode>insertvalue</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>93</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_96"> <Value> <Obj> <type>0</type> <id>106</id> <name>mrv_8</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>1818321696</coreId> </Obj> <bitwidth>144</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>173</item> <item>174</item> </oprand_edges> <opcode>insertvalue</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>94</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_97"> <Value> <Obj> <type>0</type> <id>107</id> <name>mrv_9</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>132</coreId> </Obj> <bitwidth>144</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>175</item> <item>176</item> </oprand_edges> <opcode>insertvalue</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>95</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_98"> <Value> <Obj> <type>0</type> <id>108</id> <name>mrv_s</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>3407689328</coreId> </Obj> <bitwidth>144</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>177</item> <item>178</item> </oprand_edges> <opcode>insertvalue</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>96</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_99"> <Value> <Obj> <type>0</type> <id>109</id> <name>mrv_10</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>3407689288</coreId> </Obj> <bitwidth>144</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>179</item> <item>180</item> </oprand_edges> <opcode>insertvalue</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>97</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_100"> <Value> <Obj> <type>0</type> <id>110</id> <name>mrv_11</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>3407792384</coreId> </Obj> <bitwidth>144</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>181</item> <item>182</item> </oprand_edges> <opcode>insertvalue</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>98</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_101"> <Value> <Obj> <type>0</type> <id>111</id> <name>mrv_12</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>132</coreId> </Obj> <bitwidth>144</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>183</item> <item>184</item> </oprand_edges> <opcode>insertvalue</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>99</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_102"> <Value> <Obj> <type>0</type> <id>112</id> <name>mrv_13</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>3407792640</coreId> </Obj> <bitwidth>144</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>185</item> <item>186</item> </oprand_edges> <opcode>insertvalue</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>100</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_103"> <Value> <Obj> <type>0</type> <id>113</id> <name>mrv_14</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>3408286880</coreId> </Obj> <bitwidth>144</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>187</item> <item>188</item> </oprand_edges> <opcode>insertvalue</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>101</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_104"> <Value> <Obj> <type>0</type> <id>114</id> <name>mrv_15</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>3408286552</coreId> </Obj> <bitwidth>144</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>189</item> <item>190</item> </oprand_edges> <opcode>insertvalue</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>102</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_105"> <Value> <Obj> <type>0</type> <id>115</id> <name>mrv_16</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>1921</coreId> </Obj> <bitwidth>144</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>191</item> <item>192</item> </oprand_edges> <opcode>insertvalue</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>103</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_106"> <Value> <Obj> <type>0</type> <id>116</id> <name>_ln0</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>3407479912</coreId> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>193</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>104</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> </nodes> <consts class_id="15" tracking_level="0" version="0"> <count>10</count> <item_version>0</item_version> <item class_id="16" tracking_level="1" version="0" object_id="_107"> <Value> <Obj> <type>2</type> <id>118</id> <name>empty</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>795897716</coreId> </Obj> <bitwidth>32</bitwidth> </Value> <const_type>0</const_type> <content>1</content> </item> <item class_id_reference="16" object_id="_108"> <Value> <Obj> <type>2</type> <id>156</id> <name>empty</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>1768041833</coreId> </Obj> <bitwidth>144</bitwidth> </Value> <const_type>5</const_type> <content>&lt;undef&gt;</content> </item> <item class_id_reference="16" object_id="_109"> <Value> <Obj> <type>2</type> <id>194</id> <name>empty</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>3</coreId> </Obj> <bitwidth>2</bitwidth> </Value> <const_type>0</const_type> <content>0</content> </item> <item class_id_reference="16" object_id="_110"> <Value> <Obj> <type>2</type> <id>199</id> <name>empty</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>3407587712</coreId> </Obj> <bitwidth>4</bitwidth> </Value> <const_type>0</const_type> <content>0</content> </item> <item class_id_reference="16" object_id="_111"> <Value> <Obj> <type>2</type> <id>205</id> <name>empty</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>0</coreId> </Obj> <bitwidth>2</bitwidth> </Value> <const_type>0</const_type> <content>1</content> </item> <item class_id_reference="16" object_id="_112"> <Value> <Obj> <type>2</type> <id>208</id> <name>empty</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>0</coreId> </Obj> <bitwidth>2</bitwidth> </Value> <const_type>0</const_type> <content>3</content> </item> <item class_id_reference="16" object_id="_113"> <Value> <Obj> <type>2</type> <id>214</id> <name>empty</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>3123969984</coreId> </Obj> <bitwidth>4</bitwidth> </Value> <const_type>0</const_type> <content>3</content> </item> <item class_id_reference="16" object_id="_114"> <Value> <Obj> <type>2</type> <id>219</id> <name>empty</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>3407475336</coreId> </Obj> <bitwidth>64</bitwidth> </Value> <const_type>0</const_type> <content>0</content> </item> <item class_id_reference="16" object_id="_115"> <Value> <Obj> <type>2</type> <id>226</id> <name>empty</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>49</coreId> </Obj> <bitwidth>3</bitwidth> </Value> <const_type>0</const_type> <content>1</content> </item> <item class_id_reference="16" object_id="_116"> <Value> <Obj> <type>2</type> <id>234</id> <name>empty</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>3408281896</coreId> </Obj> <bitwidth>4</bitwidth> </Value> <const_type>0</const_type> <content>2</content> </item> </consts> <blocks class_id="17" tracking_level="0" version="0"> <count>8</count> <item_version>0</item_version> <item class_id="18" tracking_level="1" version="0" object_id="_117"> <Obj> <type>3</type> <id>22</id> <name>newFuncRoot</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>1768189039</coreId> </Obj> <node_objs> <count>19</count> <item_version>0</item_version> <item>3</item> <item>4</item> <item>5</item> <item>6</item> <item>7</item> <item>8</item> <item>9</item> <item>10</item> <item>11</item> <item>12</item> <item>13</item> <item>14</item> <item>15</item> <item>16</item> <item>17</item> <item>18</item> <item>19</item> <item>20</item> <item>21</item> </node_objs> </item> <item class_id_reference="18" object_id="_118"> <Obj> <type>3</type> <id>29</id> <name></name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>1768189039</coreId> </Obj> <node_objs> <count>5</count> <item_version>0</item_version> <item>23</item> <item>24</item> <item>25</item> <item>26</item> <item>28</item> </node_objs> </item> <item class_id_reference="18" object_id="_119"> <Obj> <type>3</type> <id>52</id> <name></name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>1768189039</coreId> </Obj> <node_objs> <count>20</count> <item_version>0</item_version> <item>30</item> <item>33</item> <item>34</item> <item>35</item> <item>36</item> <item>37</item> <item>38</item> <item>39</item> <item>40</item> <item>41</item> <item>42</item> <item>43</item> <item>44</item> <item>45</item> <item>46</item> <item>47</item> <item>48</item> <item>49</item> <item>50</item> <item>51</item> </node_objs> </item> <item class_id_reference="18" object_id="_120"> <Obj> <type>3</type> <id>60</id> <name>branch7</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>68</coreId> </Obj> <node_objs> <count>7</count> <item_version>0</item_version> <item>53</item> <item>54</item> <item>55</item> <item>56</item> <item>57</item> <item>58</item> <item>59</item> </node_objs> </item> <item class_id_reference="18" object_id="_121"> <Obj> <type>3</type> <id>68</id> <name>.branch6_crit_edge</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>3408364512</coreId> </Obj> <node_objs> <count>7</count> <item_version>0</item_version> <item>61</item> <item>62</item> <item>63</item> <item>64</item> <item>65</item> <item>66</item> <item>67</item> </node_objs> </item> <item class_id_reference="18" object_id="_122"> <Obj> <type>3</type> <id>76</id> <name>branch8</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>3408298160</coreId> </Obj> <node_objs> <count>7</count> <item_version>0</item_version> <item>69</item> <item>70</item> <item>71</item> <item>72</item> <item>73</item> <item>74</item> <item>75</item> </node_objs> </item> <item class_id_reference="18" object_id="_123"> <Obj> <type>3</type> <id>79</id> <name>branch6</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>33</coreId> </Obj> <node_objs> <count>2</count> <item_version>0</item_version> <item>77</item> <item>78</item> </node_objs> </item> <item class_id_reference="18" object_id="_124"> <Obj> <type>3</type> <id>117</id> <name>colorthresholding&lt;9, 0, 3, 2160, 3840, 1&gt;_.exit.exitStub</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <contextNormFuncName></contextNormFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <control></control> <opType></opType> <implIndex></implIndex> <coreName></coreName> <coreId>3405790400</coreId> </Obj> <node_objs> <count>37</count> <item_version>0</item_version> <item>80</item> <item>81</item> <item>82</item> <item>83</item> <item>84</item> <item>85</item> <item>86</item> <item>87</item> <item>88</item> <item>89</item> <item>90</item> <item>91</item> <item>92</item> <item>93</item> <item>94</item> <item>95</item> <item>96</item> <item>97</item> <item>98</item> <item>99</item> <item>100</item> <item>101</item> <item>102</item> <item>103</item> <item>104</item> <item>105</item> <item>106</item> <item>107</item> <item>108</item> <item>109</item> <item>110</item> <item>111</item> <item>112</item> <item>113</item> <item>114</item> <item>115</item> <item>116</item> </node_objs> </item> </blocks> <edges class_id="19" tracking_level="0" version="0"> <count>180</count> <item_version>0</item_version> <item class_id="20" tracking_level="1" version="0" object_id="_125"> <id>119</id> <edge_type>1</edge_type> <source_obj>118</source_obj> <sink_obj>3</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_126"> <id>120</id> <edge_type>1</edge_type> <source_obj>118</source_obj> <sink_obj>4</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_127"> <id>121</id> <edge_type>1</edge_type> <source_obj>118</source_obj> <sink_obj>5</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_128"> <id>122</id> <edge_type>1</edge_type> <source_obj>118</source_obj> <sink_obj>6</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_129"> <id>123</id> <edge_type>1</edge_type> <source_obj>118</source_obj> <sink_obj>7</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_130"> <id>124</id> <edge_type>1</edge_type> <source_obj>118</source_obj> <sink_obj>8</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_131"> <id>125</id> <edge_type>1</edge_type> <source_obj>118</source_obj> <sink_obj>9</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_132"> <id>126</id> <edge_type>1</edge_type> <source_obj>118</source_obj> <sink_obj>10</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_133"> <id>127</id> <edge_type>1</edge_type> <source_obj>118</source_obj> <sink_obj>11</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_134"> <id>128</id> <edge_type>1</edge_type> <source_obj>118</source_obj> <sink_obj>12</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_135"> <id>129</id> <edge_type>1</edge_type> <source_obj>118</source_obj> <sink_obj>13</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_136"> <id>130</id> <edge_type>1</edge_type> <source_obj>118</source_obj> <sink_obj>14</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_137"> <id>131</id> <edge_type>1</edge_type> <source_obj>118</source_obj> <sink_obj>15</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_138"> <id>132</id> <edge_type>1</edge_type> <source_obj>118</source_obj> <sink_obj>16</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_139"> <id>133</id> <edge_type>1</edge_type> <source_obj>118</source_obj> <sink_obj>17</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_140"> <id>134</id> <edge_type>1</edge_type> <source_obj>118</source_obj> <sink_obj>18</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_141"> <id>135</id> <edge_type>1</edge_type> <source_obj>118</source_obj> <sink_obj>19</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_142"> <id>136</id> <edge_type>1</edge_type> <source_obj>118</source_obj> <sink_obj>20</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_143"> <id>137</id> <edge_type>2</edge_type> <source_obj>29</source_obj> <sink_obj>21</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_144"> <id>138</id> <edge_type>1</edge_type> <source_obj>3</source_obj> <sink_obj>80</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_145"> <id>139</id> <edge_type>1</edge_type> <source_obj>4</source_obj> <sink_obj>81</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_146"> <id>140</id> <edge_type>1</edge_type> <source_obj>5</source_obj> <sink_obj>82</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_147"> <id>141</id> <edge_type>1</edge_type> <source_obj>6</source_obj> <sink_obj>83</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_148"> <id>142</id> <edge_type>1</edge_type> <source_obj>7</source_obj> <sink_obj>84</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_149"> <id>143</id> <edge_type>1</edge_type> <source_obj>8</source_obj> <sink_obj>85</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_150"> <id>144</id> <edge_type>1</edge_type> <source_obj>9</source_obj> <sink_obj>86</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_151"> <id>145</id> <edge_type>1</edge_type> <source_obj>10</source_obj> <sink_obj>87</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_152"> <id>146</id> <edge_type>1</edge_type> <source_obj>11</source_obj> <sink_obj>88</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_153"> <id>147</id> <edge_type>1</edge_type> <source_obj>12</source_obj> <sink_obj>89</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_154"> <id>148</id> <edge_type>1</edge_type> <source_obj>13</source_obj> <sink_obj>90</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_155"> <id>149</id> <edge_type>1</edge_type> <source_obj>14</source_obj> <sink_obj>91</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_156"> <id>150</id> <edge_type>1</edge_type> <source_obj>15</source_obj> <sink_obj>92</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_157"> <id>151</id> <edge_type>1</edge_type> <source_obj>16</source_obj> <sink_obj>93</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_158"> <id>152</id> <edge_type>1</edge_type> <source_obj>17</source_obj> <sink_obj>94</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_159"> <id>153</id> <edge_type>1</edge_type> <source_obj>18</source_obj> <sink_obj>95</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_160"> <id>154</id> <edge_type>1</edge_type> <source_obj>19</source_obj> <sink_obj>96</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_161"> <id>155</id> <edge_type>1</edge_type> <source_obj>20</source_obj> <sink_obj>97</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_162"> <id>157</id> <edge_type>1</edge_type> <source_obj>156</source_obj> <sink_obj>98</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_163"> <id>158</id> <edge_type>1</edge_type> <source_obj>82</source_obj> <sink_obj>98</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_164"> <id>159</id> <edge_type>1</edge_type> <source_obj>98</source_obj> <sink_obj>99</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_165"> <id>160</id> <edge_type>1</edge_type> <source_obj>85</source_obj> <sink_obj>99</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_166"> <id>161</id> <edge_type>1</edge_type> <source_obj>99</source_obj> <sink_obj>100</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_167"> <id>162</id> <edge_type>1</edge_type> <source_obj>88</source_obj> <sink_obj>100</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_168"> <id>163</id> <edge_type>1</edge_type> <source_obj>100</source_obj> <sink_obj>101</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_169"> <id>164</id> <edge_type>1</edge_type> <source_obj>91</source_obj> <sink_obj>101</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_170"> <id>165</id> <edge_type>1</edge_type> <source_obj>101</source_obj> <sink_obj>102</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_171"> <id>166</id> <edge_type>1</edge_type> <source_obj>94</source_obj> <sink_obj>102</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_172"> <id>167</id> <edge_type>1</edge_type> <source_obj>102</source_obj> <sink_obj>103</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_173"> <id>168</id> <edge_type>1</edge_type> <source_obj>97</source_obj> <sink_obj>103</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_174"> <id>169</id> <edge_type>1</edge_type> <source_obj>103</source_obj> <sink_obj>104</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_175"> <id>170</id> <edge_type>1</edge_type> <source_obj>96</source_obj> <sink_obj>104</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_176"> <id>171</id> <edge_type>1</edge_type> <source_obj>104</source_obj> <sink_obj>105</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_177"> <id>172</id> <edge_type>1</edge_type> <source_obj>95</source_obj> <sink_obj>105</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_178"> <id>173</id> <edge_type>1</edge_type> <source_obj>105</source_obj> <sink_obj>106</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_179"> <id>174</id> <edge_type>1</edge_type> <source_obj>93</source_obj> <sink_obj>106</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_180"> <id>175</id> <edge_type>1</edge_type> <source_obj>106</source_obj> <sink_obj>107</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_181"> <id>176</id> <edge_type>1</edge_type> <source_obj>92</source_obj> <sink_obj>107</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_182"> <id>177</id> <edge_type>1</edge_type> <source_obj>107</source_obj> <sink_obj>108</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_183"> <id>178</id> <edge_type>1</edge_type> <source_obj>90</source_obj> <sink_obj>108</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_184"> <id>179</id> <edge_type>1</edge_type> <source_obj>108</source_obj> <sink_obj>109</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_185"> <id>180</id> <edge_type>1</edge_type> <source_obj>89</source_obj> <sink_obj>109</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_186"> <id>181</id> <edge_type>1</edge_type> <source_obj>109</source_obj> <sink_obj>110</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_187"> <id>182</id> <edge_type>1</edge_type> <source_obj>87</source_obj> <sink_obj>110</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_188"> <id>183</id> <edge_type>1</edge_type> <source_obj>110</source_obj> <sink_obj>111</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_189"> <id>184</id> <edge_type>1</edge_type> <source_obj>86</source_obj> <sink_obj>111</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_190"> <id>185</id> <edge_type>1</edge_type> <source_obj>111</source_obj> <sink_obj>112</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_191"> <id>186</id> <edge_type>1</edge_type> <source_obj>84</source_obj> <sink_obj>112</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_192"> <id>187</id> <edge_type>1</edge_type> <source_obj>112</source_obj> <sink_obj>113</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_193"> <id>188</id> <edge_type>1</edge_type> <source_obj>83</source_obj> <sink_obj>113</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_194"> <id>189</id> <edge_type>1</edge_type> <source_obj>113</source_obj> <sink_obj>114</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_195"> <id>190</id> <edge_type>1</edge_type> <source_obj>81</source_obj> <sink_obj>114</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_196"> <id>191</id> <edge_type>1</edge_type> <source_obj>114</source_obj> <sink_obj>115</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_197"> <id>192</id> <edge_type>1</edge_type> <source_obj>80</source_obj> <sink_obj>115</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_198"> <id>193</id> <edge_type>1</edge_type> <source_obj>115</source_obj> <sink_obj>116</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_199"> <id>195</id> <edge_type>1</edge_type> <source_obj>194</source_obj> <sink_obj>23</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_200"> <id>196</id> <edge_type>2</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="_201"> <id>197</id> <edge_type>1</edge_type> <source_obj>25</source_obj> <sink_obj>23</sink_obj> <is_back_edge>1</is_back_edge> </item> <item class_id_reference="20" object_id="_202"> <id>198</id> <edge_type>2</edge_type> <source_obj>79</source_obj> <sink_obj>23</sink_obj> <is_back_edge>1</is_back_edge> </item> <item class_id_reference="20" object_id="_203"> <id>200</id> <edge_type>1</edge_type> <source_obj>199</source_obj> <sink_obj>24</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_204"> <id>201</id> <edge_type>2</edge_type> <source_obj>22</source_obj> <sink_obj>24</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_205"> <id>202</id> <edge_type>1</edge_type> <source_obj>77</source_obj> <sink_obj>24</sink_obj> <is_back_edge>1</is_back_edge> </item> <item class_id_reference="20" object_id="_206"> <id>203</id> <edge_type>2</edge_type> <source_obj>79</source_obj> <sink_obj>24</sink_obj> <is_back_edge>1</is_back_edge> </item> <item class_id_reference="20" object_id="_207"> <id>204</id> <edge_type>1</edge_type> <source_obj>23</source_obj> <sink_obj>25</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_208"> <id>206</id> <edge_type>1</edge_type> <source_obj>205</source_obj> <sink_obj>25</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_209"> <id>207</id> <edge_type>1</edge_type> <source_obj>23</source_obj> <sink_obj>26</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_210"> <id>209</id> <edge_type>1</edge_type> <source_obj>208</source_obj> <sink_obj>26</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_211"> <id>210</id> <edge_type>1</edge_type> <source_obj>26</source_obj> <sink_obj>28</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_212"> <id>211</id> <edge_type>2</edge_type> <source_obj>52</source_obj> <sink_obj>28</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_213"> <id>212</id> <edge_type>2</edge_type> <source_obj>117</source_obj> <sink_obj>28</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_214"> <id>213</id> <edge_type>1</edge_type> <source_obj>24</source_obj> <sink_obj>77</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_215"> <id>215</id> <edge_type>1</edge_type> <source_obj>214</source_obj> <sink_obj>77</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_216"> <id>216</id> <edge_type>2</edge_type> <source_obj>29</source_obj> <sink_obj>78</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_217"> <id>217</id> <edge_type>1</edge_type> <source_obj>24</source_obj> <sink_obj>30</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_218"> <id>218</id> <edge_type>1</edge_type> <source_obj>1</source_obj> <sink_obj>33</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_219"> <id>220</id> <edge_type>1</edge_type> <source_obj>219</source_obj> <sink_obj>33</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_220"> <id>221</id> <edge_type>1</edge_type> <source_obj>30</source_obj> <sink_obj>33</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_221"> <id>222</id> <edge_type>1</edge_type> <source_obj>33</source_obj> <sink_obj>34</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_222"> <id>223</id> <edge_type>1</edge_type> <source_obj>24</source_obj> <sink_obj>35</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_223"> <id>224</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="_224"> <id>225</id> <edge_type>1</edge_type> <source_obj>35</source_obj> <sink_obj>37</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_225"> <id>227</id> <edge_type>1</edge_type> <source_obj>226</source_obj> <sink_obj>37</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_226"> <id>228</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="_227"> <id>229</id> <edge_type>1</edge_type> <source_obj>1</source_obj> <sink_obj>39</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_228"> <id>230</id> <edge_type>1</edge_type> <source_obj>219</source_obj> <sink_obj>39</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_229"> <id>231</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="_230"> <id>232</id> <edge_type>1</edge_type> <source_obj>39</source_obj> <sink_obj>40</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_231"> <id>233</id> <edge_type>1</edge_type> <source_obj>36</source_obj> <sink_obj>41</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_232"> <id>235</id> <edge_type>1</edge_type> <source_obj>234</source_obj> <sink_obj>41</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_233"> <id>236</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="_234"> <id>237</id> <edge_type>1</edge_type> <source_obj>1</source_obj> <sink_obj>43</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_235"> <id>238</id> <edge_type>1</edge_type> <source_obj>219</source_obj> <sink_obj>43</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_236"> <id>239</id> <edge_type>1</edge_type> <source_obj>42</source_obj> <sink_obj>43</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_237"> <id>240</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="_238"> <id>241</id> <edge_type>1</edge_type> <source_obj>2</source_obj> <sink_obj>45</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_239"> <id>242</id> <edge_type>1</edge_type> <source_obj>219</source_obj> <sink_obj>45</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_240"> <id>243</id> <edge_type>1</edge_type> <source_obj>30</source_obj> <sink_obj>45</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_241"> <id>244</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="_242"> <id>245</id> <edge_type>1</edge_type> <source_obj>2</source_obj> <sink_obj>47</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_243"> <id>246</id> <edge_type>1</edge_type> <source_obj>219</source_obj> <sink_obj>47</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_244"> <id>247</id> <edge_type>1</edge_type> <source_obj>38</source_obj> <sink_obj>47</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_245"> <id>248</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="_246"> <id>249</id> <edge_type>1</edge_type> <source_obj>2</source_obj> <sink_obj>49</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_247"> <id>250</id> <edge_type>1</edge_type> <source_obj>219</source_obj> <sink_obj>49</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_248"> <id>251</id> <edge_type>1</edge_type> <source_obj>42</source_obj> <sink_obj>49</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_249"> <id>252</id> <edge_type>1</edge_type> <source_obj>49</source_obj> <sink_obj>50</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_250"> <id>253</id> <edge_type>1</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="_251"> <id>254</id> <edge_type>2</edge_type> <source_obj>76</source_obj> <sink_obj>51</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_252"> <id>255</id> <edge_type>1</edge_type> <source_obj>194</source_obj> <sink_obj>51</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_253"> <id>256</id> <edge_type>2</edge_type> <source_obj>68</source_obj> <sink_obj>51</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_254"> <id>257</id> <edge_type>1</edge_type> <source_obj>205</source_obj> <sink_obj>51</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_255"> <id>258</id> <edge_type>2</edge_type> <source_obj>60</source_obj> <sink_obj>51</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_256"> <id>259</id> <edge_type>1</edge_type> <source_obj>50</source_obj> <sink_obj>61</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_257"> <id>260</id> <edge_type>1</edge_type> <source_obj>20</source_obj> <sink_obj>61</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_258"> <id>261</id> <edge_type>1</edge_type> <source_obj>48</source_obj> <sink_obj>62</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_259"> <id>262</id> <edge_type>1</edge_type> <source_obj>17</source_obj> <sink_obj>62</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_260"> <id>263</id> <edge_type>1</edge_type> <source_obj>46</source_obj> <sink_obj>63</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_261"> <id>264</id> <edge_type>1</edge_type> <source_obj>14</source_obj> <sink_obj>63</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_262"> <id>265</id> <edge_type>1</edge_type> <source_obj>44</source_obj> <sink_obj>64</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_263"> <id>266</id> <edge_type>1</edge_type> <source_obj>11</source_obj> <sink_obj>64</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_264"> <id>267</id> <edge_type>1</edge_type> <source_obj>40</source_obj> <sink_obj>65</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_265"> <id>268</id> <edge_type>1</edge_type> <source_obj>8</source_obj> <sink_obj>65</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_266"> <id>269</id> <edge_type>1</edge_type> <source_obj>34</source_obj> <sink_obj>66</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_267"> <id>270</id> <edge_type>1</edge_type> <source_obj>5</source_obj> <sink_obj>66</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_268"> <id>271</id> <edge_type>2</edge_type> <source_obj>79</source_obj> <sink_obj>67</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_269"> <id>272</id> <edge_type>1</edge_type> <source_obj>34</source_obj> <sink_obj>53</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_270"> <id>273</id> <edge_type>1</edge_type> <source_obj>19</source_obj> <sink_obj>53</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_271"> <id>274</id> <edge_type>1</edge_type> <source_obj>40</source_obj> <sink_obj>54</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_272"> <id>275</id> <edge_type>1</edge_type> <source_obj>18</source_obj> <sink_obj>54</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_273"> <id>276</id> <edge_type>1</edge_type> <source_obj>44</source_obj> <sink_obj>55</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_274"> <id>277</id> <edge_type>1</edge_type> <source_obj>16</source_obj> <sink_obj>55</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_275"> <id>278</id> <edge_type>1</edge_type> <source_obj>46</source_obj> <sink_obj>56</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_276"> <id>279</id> <edge_type>1</edge_type> <source_obj>15</source_obj> <sink_obj>56</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_277"> <id>280</id> <edge_type>1</edge_type> <source_obj>48</source_obj> <sink_obj>57</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_278"> <id>281</id> <edge_type>1</edge_type> <source_obj>13</source_obj> <sink_obj>57</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_279"> <id>282</id> <edge_type>1</edge_type> <source_obj>50</source_obj> <sink_obj>58</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_280"> <id>283</id> <edge_type>1</edge_type> <source_obj>12</source_obj> <sink_obj>58</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_281"> <id>284</id> <edge_type>2</edge_type> <source_obj>79</source_obj> <sink_obj>59</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_282"> <id>285</id> <edge_type>1</edge_type> <source_obj>34</source_obj> <sink_obj>69</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_283"> <id>286</id> <edge_type>1</edge_type> <source_obj>10</source_obj> <sink_obj>69</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_284"> <id>287</id> <edge_type>1</edge_type> <source_obj>40</source_obj> <sink_obj>70</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_285"> <id>288</id> <edge_type>1</edge_type> <source_obj>9</source_obj> <sink_obj>70</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_286"> <id>289</id> <edge_type>1</edge_type> <source_obj>44</source_obj> <sink_obj>71</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_287"> <id>290</id> <edge_type>1</edge_type> <source_obj>7</source_obj> <sink_obj>71</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_288"> <id>291</id> <edge_type>1</edge_type> <source_obj>46</source_obj> <sink_obj>72</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_289"> <id>292</id> <edge_type>1</edge_type> <source_obj>6</source_obj> <sink_obj>72</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_290"> <id>293</id> <edge_type>1</edge_type> <source_obj>48</source_obj> <sink_obj>73</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_291"> <id>294</id> <edge_type>1</edge_type> <source_obj>4</source_obj> <sink_obj>73</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_292"> <id>295</id> <edge_type>1</edge_type> <source_obj>50</source_obj> <sink_obj>74</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_293"> <id>296</id> <edge_type>1</edge_type> <source_obj>3</source_obj> <sink_obj>74</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_294"> <id>297</id> <edge_type>2</edge_type> <source_obj>79</source_obj> <sink_obj>75</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_295"> <id>320</id> <edge_type>2</edge_type> <source_obj>22</source_obj> <sink_obj>29</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_296"> <id>321</id> <edge_type>2</edge_type> <source_obj>29</source_obj> <sink_obj>117</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_297"> <id>322</id> <edge_type>2</edge_type> <source_obj>29</source_obj> <sink_obj>52</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_298"> <id>323</id> <edge_type>2</edge_type> <source_obj>52</source_obj> <sink_obj>76</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_299"> <id>324</id> <edge_type>2</edge_type> <source_obj>52</source_obj> <sink_obj>68</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_300"> <id>325</id> <edge_type>2</edge_type> <source_obj>52</source_obj> <sink_obj>60</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_301"> <id>326</id> <edge_type>2</edge_type> <source_obj>60</source_obj> <sink_obj>79</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_302"> <id>327</id> <edge_type>2</edge_type> <source_obj>68</source_obj> <sink_obj>79</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_303"> <id>328</id> <edge_type>2</edge_type> <source_obj>76</source_obj> <sink_obj>79</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_304"> <id>329</id> <edge_type>2</edge_type> <source_obj>79</source_obj> <sink_obj>29</sink_obj> <is_back_edge>1</is_back_edge> </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="_305"> <mId>1</mId> <mTag>colorthresholding&lt;9, 0, 3, 2160, 3840, 1&gt;_Loop_VITIS_LOOP_138_1_proc</mTag> <mNormTag>colorthresholding_9_0_3_2160_3840_1_Loop_VITIS_LOOP_138_1_proc</mNormTag> <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>8</mMinLatency> <mMaxLatency>8</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"></mDfPipe> </item> <item class_id_reference="22" object_id="_306"> <mId>2</mId> <mTag>Entry</mTag> <mNormTag>Entry</mNormTag> <mType>0</mType> <sub_regions> <count>0</count> <item_version>0</item_version> </sub_regions> <basic_blocks> <count>1</count> <item_version>0</item_version> <item>22</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="_307"> <mId>3</mId> <mTag>VITIS_LOOP_138_1</mTag> <mNormTag>VITIS_LOOP_138_1</mNormTag> <mType>1</mType> <sub_regions> <count>0</count> <item_version>0</item_version> </sub_regions> <basic_blocks> <count>6</count> <item_version>0</item_version> <item>29</item> <item>52</item> <item>60</item> <item>68</item> <item>76</item> <item>79</item> </basic_blocks> <mII>2</mII> <mDepth>3</mDepth> <mMinTripCount>3</mMinTripCount> <mMaxTripCount>3</mMaxTripCount> <mMinLatency>6</mMinLatency> <mMaxLatency>6</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"></mDfPipe> </item> <item class_id_reference="22" object_id="_308"> <mId>4</mId> <mTag>Return</mTag> <mNormTag>Return</mNormTag> <mType>0</mType> <sub_regions> <count>0</count> <item_version>0</item_version> </sub_regions> <basic_blocks> <count>1</count> <item_version>0</item_version> <item>117</item> </basic_blocks> <mII>-1</mII> <mDepth>-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>104</count> <item_version>0</item_version> <item class_id="27" tracking_level="0" version="0"> <first>3</first> <second class_id="28" tracking_level="0" version="0"> <first>0</first> <second>0</second> </second> </item> <item> <first>4</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>5</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>6</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>7</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>8</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>9</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>10</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>11</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>12</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>13</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>14</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>15</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>16</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>17</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>18</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>19</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>20</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>21</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>23</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>24</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>25</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>26</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>28</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>33</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>34</first> <second> <first>1</first> <second>1</second> </second> </item> <item> <first>35</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>36</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>37</first> <second> <first>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>0</second> </second> </item> <item> <first>40</first> <second> <first>1</first> <second>1</second> </second> </item> <item> <first>41</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>42</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>43</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>44</first> <second> <first>2</first> <second>1</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>1</first> <second>0</second> </second> </item> <item> <first>48</first> <second> <first>1</first> <second>1</second> </second> </item> <item> <first>49</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>50</first> <second> <first>2</first> <second>1</second> </second> </item> <item> <first>51</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>53</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>54</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>55</first> <second> <first>3</first> <second>0</second> </second> </item> <item> <first>56</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>57</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>58</first> <second> <first>3</first> <second>0</second> </second> </item> <item> <first>59</first> <second> <first>3</first> <second>0</second> </second> </item> <item> <first>61</first> <second> <first>3</first> <second>0</second> </second> </item> <item> <first>62</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>63</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>64</first> <second> <first>3</first> <second>0</second> </second> </item> <item> <first>65</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>66</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>67</first> <second> <first>3</first> <second>0</second> </second> </item> <item> <first>69</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>70</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>71</first> <second> <first>3</first> <second>0</second> </second> </item> <item> <first>72</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>73</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>74</first> <second> <first>3</first> <second>0</second> </second> </item> <item> <first>75</first> <second> <first>3</first> <second>0</second> </second> </item> <item> <first>77</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>78</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>80</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>81</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>82</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>83</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>84</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>85</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>86</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>87</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>88</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>89</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>90</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>91</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>92</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>93</first> <second> <first>4</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>4</first> <second>0</second> </second> </item> <item> <first>99</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>100</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>101</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>102</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>103</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>104</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>105</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>106</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>107</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>108</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>109</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>110</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>111</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>112</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>113</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>114</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>115</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>116</first> <second> <first>4</first> <second>0</second> </second> </item> </node_label_latency> <bblk_ent_exit class_id="29" tracking_level="0" version="0"> <count>8</count> <item_version>0</item_version> <item class_id="30" tracking_level="0" version="0"> <first>22</first> <second class_id="31" tracking_level="0" version="0"> <first>0</first> <second>0</second> </second> </item> <item> <first>29</first> <second> <first>1</first> <second>1</second> </second> </item> <item> <first>52</first> <second> <first>1</first> <second>3</second> </second> </item> <item> <first>60</first> <second> <first>2</first> <second>3</second> </second> </item> <item> <first>68</first> <second> <first>2</first> <second>3</second> </second> </item> <item> <first>76</first> <second> <first>2</first> <second>3</second> </second> </item> <item> <first>79</first> <second> <first>1</first> <second>1</second> </second> </item> <item> <first>117</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="_309"> <region_name>VITIS_LOOP_138_1</region_name> <basic_blocks> <count>6</count> <item_version>0</item_version> <item>29</item> <item>52</item> <item>60</item> <item>68</item> <item>76</item> <item>79</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> <count>0</count> <item_version>0</item_version> </port2core> <node2core> <count>0</count> <item_version>0</item_version> </node2core> </syndb> </boost_serialization>
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- A D A . E X C E P T I O N S . T R A C E B A C K -- -- -- -- 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.Exceptions.Traceback is ---------------- -- Tracebacks -- ---------------- function Tracebacks (E : Exception_Occurrence) return Tracebacks_Array is begin return Tracebacks_Array (E.Tracebacks (1 .. E.Num_Tracebacks)); end Tracebacks; end Ada.Exceptions.Traceback;
-- Copyright 2007-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; use Pck; procedure Foo is C : Character := 'a'; WC : Wide_Character := 'b'; WWC : Wide_Wide_Character := 'c'; begin Do_Nothing (C'Address); -- START Do_Nothing (WC'Address); Do_Nothing (WWC'Address); end Foo;
------------------------------------------------------------------------------ -- -- -- 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 System.Machine_Code; use System.Machine_Code; with Ada.Unchecked_Conversion; with Interfaces; use Interfaces; with HAL; use HAL; with Cortex_M_SVD.SCB; use Cortex_M_SVD.SCB; with Cortex_M_SVD.PF; use Cortex_M_SVD.PF; with Cortex_M_SVD.Cache; use Cortex_M_SVD.Cache; package body Cortex_M.Cache is Data_Cache_Line_Size : constant UInt32 := 2 ** Natural (PF_Periph.CCSIDR.LineSize + 2); procedure DSB with Inline_Always; -- Data Stored Barrier procedure ISB with Inline_Always; -- Instruction Stored Barrier generic Reg_Address : System.Address; procedure Cache_Maintenance (Start : System.Address; Len : Natural) with Inline_Always; --------- -- DSB -- --------- procedure DSB is begin Asm ("dsb", Volatile => True); end DSB; --------- -- ISB -- --------- procedure ISB is begin Asm ("isb", Volatile => True); end ISB; ----------------------- -- Cache_Maintenance -- ----------------------- procedure Cache_Maintenance (Start : System.Address; Len : Natural) is begin if not D_Cache_Enabled then return; end if; declare function To_U32 is new Ada.Unchecked_Conversion (System.Address, UInt32); Op_Size : Integer_32 := Integer_32 (Len); Op_Addr : UInt32 := To_U32 (Start); Reg : UInt32 with Volatile, Address => Reg_Address; begin DSB; while Op_Size > 0 loop Reg := Op_Addr; Op_Addr := Op_Addr + Data_Cache_Line_Size; Op_Size := Op_Size - Integer_32 (Data_Cache_Line_Size); end loop; DSB; ISB; end; end Cache_Maintenance; -------------------- -- Enable_I_Cache -- -------------------- procedure Enable_I_Cache is begin DSB; ISB; Cortex_M_SVD.Cache.Cache_Periph.ICIALLU := 0; -- Invalidate I-Cache Cortex_M_SVD.SCB.SCB_Periph.CCR.IC := True; -- Enable I-Cache DSB; ISB; end Enable_I_Cache; --------------------- -- Disable_I_Cache -- --------------------- procedure Disable_I_Cache is begin DSB; ISB; Cortex_M_SVD.SCB.SCB_Periph.CCR.IC := False; -- Disable I-Cache Cortex_M_SVD.Cache.Cache_Periph.ICIALLU := 0; -- Invalidate I-Cache DSB; ISB; end Disable_I_Cache; -------------------- -- Enable_D_Cache -- -------------------- procedure Enable_D_Cache is CCSIDR : CCSIDR_Register; begin PF_Periph.CSSELR := (InD => Data_Cache, Level => Level_1, others => <>); DSB; CCSIDR := PF_Periph.CCSIDR; for S in reverse 0 .. CCSIDR.NumSets loop for W in reverse 0 .. CCSIDR.Associativity loop Cache_Periph.DCISW := (Set => UInt9 (S), Way => UInt2 (W), others => <>); end loop; end loop; DSB; SCB_Periph.CCR.DC := True; -- Enable D-Cache DSB; ISB; end Enable_D_Cache; --------------------- -- Disable_D_Cache -- --------------------- procedure Disable_D_Cache is Sets : DCISW_Set_Field; Ways : DCISW_Way_Field; begin PF_Periph.CSSELR := (InD => Data_Cache, Level => Level_1, others => <>); DSB; -- Clean & Invalidate D-Cache Sets := DCISW_Set_Field (PF_Periph.CCSIDR.NumSets); Ways := DCISW_Way_Field (PF_Periph.CCSIDR.Associativity); for S in 0 .. Sets loop for W in 0 .. Ways loop Cache_Periph.DCCISW := (Set => S, Way => W, others => <>); end loop; end loop; SCB_Periph.CCR.DC := False; -- Disable D-Cache DSB; ISB; end Disable_D_Cache; --------------------- -- I_Cache_Enabled -- --------------------- function I_Cache_Enabled return Boolean is begin return SCB_Periph.CCR.IC; end I_Cache_Enabled; --------------------- -- D_Cache_Enabled -- --------------------- function D_Cache_Enabled return Boolean is begin return SCB_Periph.CCR.DC; end D_Cache_Enabled; ------------------ -- Clean_DCache -- ------------------ procedure Int_Clean_DCache is new Cache_Maintenance (Cache_Periph.DCCMVAC'Address); procedure Clean_DCache (Start : System.Address; Len : Natural) renames Int_Clean_DCache; ----------------------- -- Invalidate_DCache -- ----------------------- procedure Int_Invalidate_DCache is new Cache_Maintenance (Cache_Periph.DCIMVAC'Address); procedure Invalidate_DCache (Start : System.Address; Len : Natural) renames Int_Invalidate_DCache; ----------------------------- -- Clean_Invalidate_DCache -- ----------------------------- procedure Int_Clean_Invalidate_DCache is new Cache_Maintenance (Cache_Periph.DCCIMVAC'Address); procedure Clean_Invalidate_DCache (Start : System.Address; Len : Natural) renames Int_Clean_Invalidate_DCache; end Cortex_M.Cache;
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Localization, Internationalization, Globalization for Ada -- -- -- -- Tools Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2011, Vadim Godunko <vgodunko@gmail.com> -- -- 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 GNAT.Expect; package body Configure.Pkg_Config is use GNAT.Expect; ----------------- -- Has_Package -- ----------------- function Has_Package (Package_Name : String) return Boolean is begin declare Status : aliased Integer; Output : constant String := Get_Command_Output ("pkg-config", (1 => new String'("--exists"), 2 => new String'(Package_Name)), "", Status'Access, True); begin return Status = 0; end; exception when GNAT.Expect.Invalid_Process => return False; end Has_Package; -------------------- -- Has_Pkg_Config -- -------------------- function Has_Pkg_Config return Boolean is begin declare Status : aliased Integer; Output : constant String := Get_Command_Output ("pkg-config", (1 => new String'("--version")), "", Status'Access, True); begin return Status = 0; end; exception when GNAT.Expect.Invalid_Process => return False; end Has_Pkg_Config; ------------------ -- Package_Libs -- ------------------ function Package_Libs (Package_Name : String) return String_Vectors.Vector is Status : aliased Integer; Output : constant String := Get_Command_Output ("pkg-config", (1 => new String'("--libs"), 2 => new String'(Package_Name)), "", Status'Access, True); Aux : String_Vectors.Vector; First : Positive; Last : Natural; begin if Status = 0 then First := Output'First; Last := Output'First; while Last <= Output'Last loop if Output (Last) = ' ' then -- Parameter separator found, add detected parameter to result. Aux.Append (Output (First .. Last - 1)); First := Last; -- Skip spaces. while First <= Output'Last loop exit when Output (First) /= ' '; First := First + 1; end loop; Last := First; end if; Last := Last + 1; end loop; if First < Output'Last and First < Last then Aux.Append (Output (First .. Last - 1)); end if; end if; return Aux; end Package_Libs; --------------------- -- Package_Version -- --------------------- function Package_Version (Package_Name : String) return String is begin declare Status : aliased Integer; Output : constant String := Get_Command_Output ("pkg-config", (1 => new String'("--modversion"), 2 => new String'(Package_Name)), "", Status'Access, True); begin if Status = 0 then return Output; else return ""; end if; end; exception when GNAT.Expect.Invalid_Process => return ""; end Package_Version; ------------------------------ -- Package_Version_At_Least -- ------------------------------ function Package_Version_At_Least (Package_Name : String; Expected : String; Actual : access Unbounded_String) return Boolean is begin declare Status : aliased Integer; Output : constant String := Get_Command_Output ("pkg-config", (1 => new String'("--modversion"), 2 => new String'("--atleast-version=" & Expected), 3 => new String'(Package_Name)), "", Status'Access, True); begin Actual.all := +Output; return Status = 0; end; exception when GNAT.Expect.Invalid_Process => Actual.all := Null_Unbounded_String; return False; end Package_Version_At_Least; end Configure.Pkg_Config;
with Ada.Unchecked_Conversion; package body C is use Interfaces.C; function U is new Ada.Unchecked_Conversion (Int, Unsigned); function I is new Ada.Unchecked_Conversion (Unsigned, Int); function Bool_to_Int (Val: Boolean) return Int is begin if Val = False then return 0; else return 1; end if; end Bool_to_Int; function Sizeof (Bits: Integer) return Int is begin return Int(Bits/System.Storage_Unit); end Sizeof; procedure Call (Ignored_Function_Result: Int) is begin null; end Call; procedure Call (Ignored_Function_Result: Charp) is begin null; end Call; function "+" (C: char; I: Int) return char is begin return char'val(Int(char'pos(C)) + I); end "+"; function "+" (C: char; I: Int) return Int is begin return (char'pos(C) + I); end "+"; function To_C (C: Character) return Interfaces.C.Char is begin return Interfaces.C.Char'Val(Character'Pos(C)); end To_C; end C;
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Web Framework -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2010, Vadim Godunko <vgodunko@gmail.com> -- -- 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.FastCGI.Server; with Matreshka.FastCGI.Streaming_Server; package body FastCGI.Application is ------------- -- Execute -- ------------- procedure Execute (Handler : FastCGI.Application.Callback) is begin Matreshka.FastCGI.Server.Execute (Handler); end Execute; ------------- -- Execute -- ------------- procedure Execute (Responder_Factory : FastCGI.Application.Responder_Factory) is begin Matreshka.FastCGI.Streaming_Server.Execute (Responder_Factory); end Execute; -------------- -- Finalize -- -------------- procedure Finalize is begin null; end Finalize; ---------------- -- Initialize -- ---------------- procedure Initialize is begin null; end Initialize; end FastCGI.Application;
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- S Y S T E M . T A S K _ P R I M I T I V E S -- -- -- -- S p e c -- -- -- -- Copyright (C) 1991-1994, Florida State University -- -- Copyright (C) 1995-2005, AdaCore -- -- -- -- GNARL is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 2, or (at your option) any later ver- -- -- sion. GNARL is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -- -- for more details. You should have received a copy of the GNU General -- -- Public License distributed with GNARL; see file COPYING. If not, write -- -- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, -- -- Boston, MA 02110-1301, USA. -- -- -- -- As a special exception, if other files instantiate generics from this -- -- unit, or you link this unit with other files to produce an executable, -- -- this unit does not by itself cause the resulting executable to be -- -- covered by the GNU General Public License. This exception does not -- -- however invalidate any other reasons why the executable file might be -- -- covered by the GNU Public License. -- -- -- -- GNARL was developed by the GNARL team at Florida State University. -- -- Extensive contributions were provided by Ada Core Technologies, Inc. -- -- -- ------------------------------------------------------------------------------ -- This is a LynxOS version of this package, derived from s-taspri-posix.ads pragma Polling (Off); -- Turn off polling, we do not want ATC polling to take place during -- tasking operations. It causes infinite loops and other problems. with System.OS_Interface; -- used for pthread_mutex_t -- pthread_cond_t -- pthread_t package System.Task_Primitives is pragma Preelaborate; type Lock is limited private; -- Should be used for implementation of protected objects type RTS_Lock is limited private; -- Should be used inside the runtime system. The difference between Lock -- and the RTS_Lock is that the later one serves only as a semaphore so -- that do not check for ceiling violations. type Suspension_Object is limited private; -- Should be used for the implementation of Ada.Synchronous_Task_Control type Task_Body_Access is access procedure; -- Pointer to the task body's entry point (or possibly a wrapper -- declared local to the GNARL). type Private_Data is limited private; -- Any information that the GNULLI needs maintained on a per-task basis. -- A component of this type is guaranteed to be included in the -- Ada_Task_Control_Block. private type Lock is record Mutex : aliased System.OS_Interface.pthread_mutex_t; Ceiling : System.Any_Priority; Saved_Priority : System.Any_Priority; end record; type RTS_Lock is new System.OS_Interface.pthread_mutex_t; type Suspension_Object is record State : Boolean; pragma Atomic (State); -- Boolean that indicates whether the object is open. This field is -- marked Atomic to ensure that we can read its value without locking -- the access to the Suspension_Object. Waiting : Boolean; -- Flag showing if there is a task already suspended on this object L : aliased System.OS_Interface.pthread_mutex_t; -- Protection for ensuring mutual exclusion on the Suspension_Object CV : aliased System.OS_Interface.pthread_cond_t; -- Condition variable used to queue threads until condition is signaled end record; type Private_Data is record Thread : aliased System.OS_Interface.pthread_t; pragma Atomic (Thread); -- Thread field may be updated by two different threads of control. -- (See, Enter_Task and Create_Task in s-taprop.adb). They put the -- same value (thr_self value). We do not want to use lock on those -- operations and the only thing we have to make sure is that they -- are updated in atomic fashion. LWP : aliased System.Address; -- The purpose of this field is to provide a better tasking support on -- gdb. The order of the two first fields (Thread and LWP) is important. -- On targets where lwp is not relevant, this is equivalent to Thread. CV : aliased System.OS_Interface.pthread_cond_t; L : aliased RTS_Lock; -- Protection for all components is lock L end record; end System.Task_Primitives;
with Ada.Text_IO; use Ada.Text_IO; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; -- Auteur: MOUDDENE Hamza. -- Gérer un stock de matériel informatique. -- package body Stocks_Materiel is procedure Creer (Stock : out T_Stock) is begin null; end Creer; function Nb_Materiels (Stock: in T_Stock) return Integer is begin return -1; end; procedure Enregistrer ( Stock : in out T_Stock; Numero_Serie : in Integer; Nature : in T_Nature; Annee_Achat : in Integer ) is begin null; end; end Stocks_Materiel;
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- S Y S T E M . E L A B O R A T I O N _ A L L O C A T O R S -- -- -- -- B o d y -- -- -- -- Copyright (C) 2014-2020, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ package body System.Elaboration_Allocators is Elaboration_In_Progress : Boolean; pragma Atomic (Elaboration_In_Progress); -- Flag to show if elaboration is active. We don't attempt to initialize -- this because we want to be sure it gets reset if we are in a multiple -- elaboration situation of some kind. Make it atomic to prevent race -- conditions of any kind (not clearly necessary, but harmless!) ------------------------------ -- Check_Standard_Allocator -- ------------------------------ procedure Check_Standard_Allocator is begin if not Elaboration_In_Progress then raise Storage_Error with "standard allocator after elaboration is complete is not allowed " & "(No_Standard_Allocators_After_Elaboration restriction active)"; end if; end Check_Standard_Allocator; ----------------------------- -- Mark_End_Of_Elaboration -- ----------------------------- procedure Mark_End_Of_Elaboration is begin Elaboration_In_Progress := False; end Mark_End_Of_Elaboration; ------------------------------- -- Mark_Start_Of_Elaboration -- ------------------------------- procedure Mark_Start_Of_Elaboration is begin Elaboration_In_Progress := True; end Mark_Start_Of_Elaboration; end System.Elaboration_Allocators;
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Ada Modeling Framework -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2011-2012, Vadim Godunko <vgodunko@gmail.com> -- -- 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. ------------------------------------------------------------------------------ -- When applied to a usage dependency, it specifies that the client -- classifier creates instances of the supplier classifier. When applied to a -- BehavioralFeature, it specifies that the designated feature creates an -- instance of the classifier to which the feature is attached. ------------------------------------------------------------------------------ limited with AMF.UML.Behavioral_Features; limited with AMF.UML.Usages; package AMF.Standard_Profile_L2.Creates is pragma Preelaborate; type Standard_Profile_L2_Create is limited interface; type Standard_Profile_L2_Create_Access is access all Standard_Profile_L2_Create'Class; for Standard_Profile_L2_Create_Access'Storage_Size use 0; not overriding function Get_Base_Behavioral_Feature (Self : not null access constant Standard_Profile_L2_Create) return AMF.UML.Behavioral_Features.UML_Behavioral_Feature_Access is abstract; -- Getter of Create::base_BehavioralFeature. -- not overriding procedure Set_Base_Behavioral_Feature (Self : not null access Standard_Profile_L2_Create; To : AMF.UML.Behavioral_Features.UML_Behavioral_Feature_Access) is abstract; -- Setter of Create::base_BehavioralFeature. -- not overriding function Get_Base_Usage (Self : not null access constant Standard_Profile_L2_Create) return AMF.UML.Usages.UML_Usage_Access is abstract; -- Getter of Create::base_Usage. -- not overriding procedure Set_Base_Usage (Self : not null access Standard_Profile_L2_Create; To : AMF.UML.Usages.UML_Usage_Access) is abstract; -- Setter of Create::base_Usage. -- end AMF.Standard_Profile_L2.Creates;
with physics.Object, physics.Model, physics.Shape, bullet_C; private with bullet_c.Pointers, lace.Any; package bullet_Physics.Object -- -- Provides glue between a physics object and a Bullet3D object. -- is type Item is limited new physics.Object.item with private; type View is access all Item'Class; use Math; --------- --- Forge -- function new_Object (Shape : in physics.Shape.view; Mass : in Real; Friction : in Real; Restitution : in Real; at_Site : in Vector_3) return View; -- is_Kinematic : in Boolean) return View; overriding procedure define (Self : access Item; Shape : in physics.Shape.view; Mass : in Real; Friction : in Real; Restitution : in Real; at_Site : in Vector_3); procedure free (the_Object : in out physics.Object.view); -------------- --- Attributes -- function C (Self : in Item) return access bullet_C.Object; overriding function Model (Self : in Item) return physics.Model.view; overriding procedure Model_is (Self : in out Item; Now : in physics.Model.view); overriding procedure update_Dynamics (Self : in out Item); overriding function get_Dynamics (Self : in Item) return Matrix_4x4; private type Item is limited new physics.Object.item with record C : bullet_c.Pointers.Object_pointer; Shape : physics.Shape.view; Model : physics.Model.view; Dynamics : physics.Object.safe_Dynamics; user_Data : access lace.Any.limited_item'Class; end record; overriding procedure destruct (Self : in out Item); overriding function Shape (Self : in Item) return physics.Shape.view; overriding function Scale (Self : in Item) return Vector_3; overriding procedure Scale_is (Self : in out Item; Now : in Vector_3); overriding procedure activate (Self : in out Item; forceActivation : in Boolean := False); overriding function is_Active (Self : in Item) return Boolean; overriding function Mass (Self : in Item) return Real; overriding function Site (Self : in Item) return Vector_3; overriding procedure Site_is (Self : in out Item; Now : in Vector_3); overriding function Spin (Self : in Item) return Matrix_3x3; overriding procedure Spin_is (Self : in out Item; Now : in Matrix_3x3); overriding function xy_Spin (Self : in Item) return Radians; overriding procedure xy_Spin_is (Self : in out Item; Now : in Radians); overriding function Transform (Self : in Item) return Matrix_4x4; overriding procedure Transform_is (Self : in out Item; Now : in Matrix_4x4); overriding function Speed (Self : in Item) return Vector_3; overriding procedure Speed_is (Self : in out Item; Now : in Vector_3); overriding function Gyre (Self : in Item) return Vector_3; overriding procedure Gyre_is (Self : in out Item; Now : in Vector_3); overriding procedure Friction_is (Self : in out Item; Now : in Real); overriding procedure Restitution_is (Self : in out Item; Now : in Real); --- Forces -- overriding procedure apply_Torque (Self : in out Item; Torque : in Vector_3); overriding procedure apply_Torque_impulse (Self : in out Item; Torque : in Vector_3); overriding procedure apply_Force (Self : in out Item; Force : in Vector_3); --- User data -- overriding procedure user_Data_is (Self : in out Item; Now : access lace.Any.limited_item'Class); overriding function user_Data (Self : in Item) return access lace.Any.limited_item'Class; end bullet_Physics.Object;
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- S N A M E S -- -- -- -- T e m p l a t e -- -- -- -- Copyright (C) 1992-2010, 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 Namet; use Namet; package Snames is -- This package contains definitions of standard names (i.e. entries in the -- Names table) that are used throughout the GNAT compiler. It also contains -- the definitions of some enumeration types whose definitions are tied to -- the order of these preset names. ------------------ -- Preset Names -- ------------------ -- The following are preset entries in the names table, which are entered -- at the start of every compilation for easy access. Note that the order -- of initialization of these names in the body must be coordinated with -- the order of names in this table. -- Note: a name may not appear more than once in the following list. If -- additional pragmas or attributes are introduced which might otherwise -- cause a duplicate, then list it only once in this table, and adjust the -- definition of the functions for testing for pragma names and attribute -- names, and returning their ID values. Of course everything is simpler -- if no such duplications occur! -- First we have the one character names used to optimize the lookup -- process for one character identifiers (to avoid the hashing in this -- case) There are a full 256 of these, but only the entries for lower -- case and upper case letters have identifiers -- The lower case letter entries are used for one character identifiers -- appearing in the source, for example in pragma Interface (C). Name_A : constant Name_Id := First_Name_Id + Character'Pos ('a'); Name_B : constant Name_Id := First_Name_Id + Character'Pos ('b'); Name_C : constant Name_Id := First_Name_Id + Character'Pos ('c'); Name_D : constant Name_Id := First_Name_Id + Character'Pos ('d'); Name_E : constant Name_Id := First_Name_Id + Character'Pos ('e'); Name_F : constant Name_Id := First_Name_Id + Character'Pos ('f'); Name_G : constant Name_Id := First_Name_Id + Character'Pos ('g'); Name_H : constant Name_Id := First_Name_Id + Character'Pos ('h'); Name_I : constant Name_Id := First_Name_Id + Character'Pos ('i'); Name_J : constant Name_Id := First_Name_Id + Character'Pos ('j'); Name_K : constant Name_Id := First_Name_Id + Character'Pos ('k'); Name_L : constant Name_Id := First_Name_Id + Character'Pos ('l'); Name_M : constant Name_Id := First_Name_Id + Character'Pos ('m'); Name_N : constant Name_Id := First_Name_Id + Character'Pos ('n'); Name_O : constant Name_Id := First_Name_Id + Character'Pos ('o'); Name_P : constant Name_Id := First_Name_Id + Character'Pos ('p'); Name_Q : constant Name_Id := First_Name_Id + Character'Pos ('q'); Name_R : constant Name_Id := First_Name_Id + Character'Pos ('r'); Name_S : constant Name_Id := First_Name_Id + Character'Pos ('s'); Name_T : constant Name_Id := First_Name_Id + Character'Pos ('t'); Name_U : constant Name_Id := First_Name_Id + Character'Pos ('u'); Name_V : constant Name_Id := First_Name_Id + Character'Pos ('v'); Name_W : constant Name_Id := First_Name_Id + Character'Pos ('w'); Name_X : constant Name_Id := First_Name_Id + Character'Pos ('x'); Name_Y : constant Name_Id := First_Name_Id + Character'Pos ('y'); Name_Z : constant Name_Id := First_Name_Id + Character'Pos ('z'); -- The upper case letter entries are used by expander code for local -- variables that do not require unique names (e.g. formal parameter -- names in constructed procedures) Name_uA : constant Name_Id := First_Name_Id + Character'Pos ('A'); Name_uB : constant Name_Id := First_Name_Id + Character'Pos ('B'); Name_uC : constant Name_Id := First_Name_Id + Character'Pos ('C'); Name_uD : constant Name_Id := First_Name_Id + Character'Pos ('D'); Name_uE : constant Name_Id := First_Name_Id + Character'Pos ('E'); Name_uF : constant Name_Id := First_Name_Id + Character'Pos ('F'); Name_uG : constant Name_Id := First_Name_Id + Character'Pos ('G'); Name_uH : constant Name_Id := First_Name_Id + Character'Pos ('H'); Name_uI : constant Name_Id := First_Name_Id + Character'Pos ('I'); Name_uJ : constant Name_Id := First_Name_Id + Character'Pos ('J'); Name_uK : constant Name_Id := First_Name_Id + Character'Pos ('K'); Name_uL : constant Name_Id := First_Name_Id + Character'Pos ('L'); Name_uM : constant Name_Id := First_Name_Id + Character'Pos ('M'); Name_uN : constant Name_Id := First_Name_Id + Character'Pos ('N'); Name_uO : constant Name_Id := First_Name_Id + Character'Pos ('O'); Name_uP : constant Name_Id := First_Name_Id + Character'Pos ('P'); Name_uQ : constant Name_Id := First_Name_Id + Character'Pos ('Q'); Name_uR : constant Name_Id := First_Name_Id + Character'Pos ('R'); Name_uS : constant Name_Id := First_Name_Id + Character'Pos ('S'); Name_uT : constant Name_Id := First_Name_Id + Character'Pos ('T'); Name_uU : constant Name_Id := First_Name_Id + Character'Pos ('U'); Name_uV : constant Name_Id := First_Name_Id + Character'Pos ('V'); Name_uW : constant Name_Id := First_Name_Id + Character'Pos ('W'); Name_uX : constant Name_Id := First_Name_Id + Character'Pos ('X'); Name_uY : constant Name_Id := First_Name_Id + Character'Pos ('Y'); Name_uZ : constant Name_Id := First_Name_Id + Character'Pos ('Z'); -- Note: the following table is read by the utility program XSNAMES and -- its format should not be changed without coordinating with this program. N : constant Name_Id := First_Name_Id + 256; -- Synonym used in standard name definitions -- Names referenced in snames.h Name_uParent : constant Name_Id := N + 000; Name_uTag : constant Name_Id := N + 001; Name_Off : constant Name_Id := N + 002; Name_Space : constant Name_Id := N + 003; Name_Time : constant Name_Id := N + 004; -- Names of aspects for which there are no matching pragmas or attributes -- so that they need to be included for aspect specification use. Name_Post : constant Name_Id := N + 005; Name_Pre : constant Name_Id := N + 006; -- Some special names used by the expander. Note that the lower case u's -- at the start of these names get translated to extra underscores. These -- names are only referenced internally by expander generated code. Name_uAbort_Signal : constant Name_Id := N + 007; Name_uAlignment : constant Name_Id := N + 008; Name_uAssign : constant Name_Id := N + 009; Name_uATCB : constant Name_Id := N + 010; Name_uChain : constant Name_Id := N + 011; Name_uClean : constant Name_Id := N + 012; Name_uController : constant Name_Id := N + 013; Name_uCPU : constant Name_Id := N + 014; Name_uEntry_Bodies : constant Name_Id := N + 015; Name_uExpunge : constant Name_Id := N + 016; Name_uFinal_List : constant Name_Id := N + 017; Name_uIdepth : constant Name_Id := N + 018; Name_uInit : constant Name_Id := N + 019; Name_uLocal_Final_List : constant Name_Id := N + 020; Name_uMaster : constant Name_Id := N + 021; Name_uObject : constant Name_Id := N + 022; Name_uPostconditions : constant Name_Id := N + 023; Name_uPriority : constant Name_Id := N + 024; Name_uProcess_ATSD : constant Name_Id := N + 025; Name_uRelative_Deadline : constant Name_Id := N + 026; Name_uResult : constant Name_Id := N + 027; Name_uSecondary_Stack : constant Name_Id := N + 028; Name_uService : constant Name_Id := N + 029; Name_uSize : constant Name_Id := N + 030; Name_uStack : constant Name_Id := N + 031; Name_uTags : constant Name_Id := N + 032; Name_uTask : constant Name_Id := N + 033; Name_uTask_Id : constant Name_Id := N + 034; Name_uTask_Info : constant Name_Id := N + 035; Name_uTask_Name : constant Name_Id := N + 036; Name_uTrace_Sp : constant Name_Id := N + 037; -- Names of predefined primitives used in the expansion of dispatching -- requeue and select statements, Abort, 'Callable and 'Terminated. Name_uDisp_Asynchronous_Select : constant Name_Id := N + 038; Name_uDisp_Conditional_Select : constant Name_Id := N + 039; Name_uDisp_Get_Prim_Op_Kind : constant Name_Id := N + 040; Name_uDisp_Get_Task_Id : constant Name_Id := N + 041; Name_uDisp_Requeue : constant Name_Id := N + 042; Name_uDisp_Timed_Select : constant Name_Id := N + 043; -- Names of routines in Ada.Finalization, needed by expander Name_Initialize : constant Name_Id := N + 044; Name_Adjust : constant Name_Id := N + 045; Name_Finalize : constant Name_Id := N + 046; -- Names of fields declared in System.Finalization_Implementation, -- needed by the expander when generating code for finalization. Name_Next : constant Name_Id := N + 047; Name_Prev : constant Name_Id := N + 048; -- Names of allocation routines, also needed by expander Name_Allocate : constant Name_Id := N + 049; Name_Deallocate : constant Name_Id := N + 050; Name_Dereference : constant Name_Id := N + 051; -- Names of Text_IO generic subpackages (see Rtsfind.Text_IO_Kludge) First_Text_IO_Package : constant Name_Id := N + 052; Name_Decimal_IO : constant Name_Id := N + 052; Name_Enumeration_IO : constant Name_Id := N + 053; Name_Fixed_IO : constant Name_Id := N + 054; Name_Float_IO : constant Name_Id := N + 055; Name_Integer_IO : constant Name_Id := N + 056; Name_Modular_IO : constant Name_Id := N + 057; Last_Text_IO_Package : constant Name_Id := N + 057; subtype Text_IO_Package_Name is Name_Id range First_Text_IO_Package .. Last_Text_IO_Package; -- Some miscellaneous names used for error detection/recovery Name_Const : constant Name_Id := N + 058; Name_Error : constant Name_Id := N + 059; Name_Go : constant Name_Id := N + 060; Name_Put : constant Name_Id := N + 061; Name_Put_Line : constant Name_Id := N + 062; Name_To : constant Name_Id := N + 063; -- Name used by the integrated preprocessor Name_Defined : constant Name_Id := N + 064; -- Names for packages that are treated specially by the compiler Name_Exception_Traces : constant Name_Id := N + 065; Name_Finalization : constant Name_Id := N + 066; Name_Finalization_Root : constant Name_Id := N + 067; Name_Interfaces : constant Name_Id := N + 068; Name_Most_Recent_Exception : constant Name_Id := N + 069; Name_Standard : constant Name_Id := N + 070; Name_System : constant Name_Id := N + 071; Name_Text_IO : constant Name_Id := N + 072; Name_Wide_Text_IO : constant Name_Id := N + 073; Name_Wide_Wide_Text_IO : constant Name_Id := N + 074; -- Names of implementations of the distributed systems annex First_PCS_Name : constant Name_Id := N + 075; Name_No_DSA : constant Name_Id := N + 075; Name_GARLIC_DSA : constant Name_Id := N + 076; Name_PolyORB_DSA : constant Name_Id := N + 077; Last_PCS_Name : constant Name_Id := N + 077; subtype PCS_Names is Name_Id range First_PCS_Name .. Last_PCS_Name; -- Names of identifiers used in expanding distribution stubs Name_Addr : constant Name_Id := N + 078; Name_Async : constant Name_Id := N + 079; Name_Get_Active_Partition_ID : constant Name_Id := N + 080; Name_Get_RCI_Package_Receiver : constant Name_Id := N + 081; Name_Get_RCI_Package_Ref : constant Name_Id := N + 082; Name_Origin : constant Name_Id := N + 083; Name_Params : constant Name_Id := N + 084; Name_Partition : constant Name_Id := N + 085; Name_Partition_Interface : constant Name_Id := N + 086; Name_Ras : constant Name_Id := N + 087; Name_uCall : constant Name_Id := N + 088; Name_RCI_Name : constant Name_Id := N + 089; Name_Receiver : constant Name_Id := N + 090; Name_Rpc : constant Name_Id := N + 091; Name_Subp_Id : constant Name_Id := N + 092; Name_Operation : constant Name_Id := N + 093; Name_Argument : constant Name_Id := N + 094; Name_Arg_Modes : constant Name_Id := N + 095; Name_Handler : constant Name_Id := N + 096; Name_Target : constant Name_Id := N + 097; Name_Req : constant Name_Id := N + 098; Name_Obj_TypeCode : constant Name_Id := N + 099; Name_Stub : constant Name_Id := N + 100; -- Operator Symbol entries. The actual names have an upper case O at -- the start in place of the Op_ prefix (e.g. the actual name that -- corresponds to Name_Op_Abs is "Oabs". First_Operator_Name : constant Name_Id := N + 101; Name_Op_Abs : constant Name_Id := N + 101; -- "abs" Name_Op_And : constant Name_Id := N + 102; -- "and" Name_Op_Mod : constant Name_Id := N + 103; -- "mod" Name_Op_Not : constant Name_Id := N + 104; -- "not" Name_Op_Or : constant Name_Id := N + 105; -- "or" Name_Op_Rem : constant Name_Id := N + 106; -- "rem" Name_Op_Xor : constant Name_Id := N + 107; -- "xor" Name_Op_Eq : constant Name_Id := N + 108; -- "=" Name_Op_Ne : constant Name_Id := N + 109; -- "/=" Name_Op_Lt : constant Name_Id := N + 110; -- "<" Name_Op_Le : constant Name_Id := N + 111; -- "<=" Name_Op_Gt : constant Name_Id := N + 112; -- ">" Name_Op_Ge : constant Name_Id := N + 113; -- ">=" Name_Op_Add : constant Name_Id := N + 114; -- "+" Name_Op_Subtract : constant Name_Id := N + 115; -- "-" Name_Op_Concat : constant Name_Id := N + 116; -- "&" Name_Op_Multiply : constant Name_Id := N + 117; -- "*" Name_Op_Divide : constant Name_Id := N + 118; -- "/" Name_Op_Expon : constant Name_Id := N + 119; -- "**" Last_Operator_Name : constant Name_Id := N + 119; -- Names for all pragmas recognized by GNAT. The entries with the comment -- "Ada 83" are pragmas that are defined in Ada 83, but not in Ada 95. -- These pragmas are fully implemented in all modes (Ada 83, Ada 95, and -- Ada 2005). In Ada 95 and Ada 2005 modes, they are technically considered -- to be implementation dependent pragmas. -- The entries marked GNAT are pragmas that are defined by GNAT and that -- are implemented in all modes (Ada 83, Ada 95, and Ada 2005) Complete -- descriptions of the syntax of these implementation dependent pragmas -- may be found in the appropriate section in unit Sem_Prag in file -- sem-prag.adb, and they are documented in the GNAT reference manual. -- The entries marked Ada 05 are Ada 2005 pragmas. They are implemented -- in Ada 83 and Ada 95 mode as well, where they are technically considered -- to be implementation dependent pragmas. -- The entries marked Ada 12 are Ada 2012 pragmas. They are implemented -- in Ada 83, Ada 95, and Ada 2005 mode as well, where they are technically -- considered to be implementation dependent pragmas. -- The entries marked VMS are VMS specific pragmas that are recognized -- only in OpenVMS versions of GNAT. They are ignored in other versions -- with an appropriate warning. -- The entries marked AAMP are AAMP specific pragmas that are recognized -- only in GNAT for the AAMP. They are ignored in other versions with -- appropriate warnings. First_Pragma_Name : constant Name_Id := N + 120; -- Configuration pragmas are grouped at start. Note that there is a list -- of these names in the GNAT Users guide, be sure to update this list if -- a new configuration pragma is added. Name_Ada_83 : constant Name_Id := N + 120; -- GNAT Name_Ada_95 : constant Name_Id := N + 121; -- GNAT Name_Ada_05 : constant Name_Id := N + 122; -- GNAT Name_Ada_2005 : constant Name_Id := N + 123; -- GNAT Name_Ada_12 : constant Name_Id := N + 124; -- GNAT Name_Ada_2012 : constant Name_Id := N + 125; -- GNAT Name_Assertion_Policy : constant Name_Id := N + 126; -- Ada 05 Name_Assume_No_Invalid_Values : constant Name_Id := N + 127; -- GNAT Name_C_Pass_By_Copy : constant Name_Id := N + 128; -- GNAT Name_Check_Name : constant Name_Id := N + 129; -- GNAT Name_Check_Policy : constant Name_Id := N + 130; -- GNAT Name_Compile_Time_Error : constant Name_Id := N + 131; -- GNAT Name_Compile_Time_Warning : constant Name_Id := N + 132; -- GNAT Name_Compiler_Unit : constant Name_Id := N + 133; -- GNAT Name_Component_Alignment : constant Name_Id := N + 134; -- GNAT Name_Convention_Identifier : constant Name_Id := N + 135; -- GNAT Name_Debug_Policy : constant Name_Id := N + 136; -- GNAT Name_Detect_Blocking : constant Name_Id := N + 137; -- Ada 05 Name_Default_Storage_Pool : constant Name_Id := N + 138; -- Ada 12 Name_Discard_Names : constant Name_Id := N + 139; Name_Elaboration_Checks : constant Name_Id := N + 140; -- GNAT Name_Eliminate : constant Name_Id := N + 141; -- GNAT Name_Extend_System : constant Name_Id := N + 142; -- GNAT Name_Extensions_Allowed : constant Name_Id := N + 143; -- GNAT Name_External_Name_Casing : constant Name_Id := N + 144; -- GNAT -- Note: Fast_Math is not in this list because its name matches -- GNAT -- the name of the corresponding attribute. However, it is -- included in the definition of the type Pragma_Id, and the -- functions Get_Pragma_Id, Is_[Configuration_]Pragma_Id, and -- correctly recognize and process Fast_Math. Name_Favor_Top_Level : constant Name_Id := N + 145; -- GNAT Name_Float_Representation : constant Name_Id := N + 146; -- GNAT Name_Implicit_Packing : constant Name_Id := N + 147; -- GNAT Name_Initialize_Scalars : constant Name_Id := N + 148; -- GNAT Name_Interrupt_State : constant Name_Id := N + 149; -- GNAT Name_License : constant Name_Id := N + 150; -- GNAT Name_Locking_Policy : constant Name_Id := N + 151; Name_Long_Float : constant Name_Id := N + 152; -- VMS Name_No_Run_Time : constant Name_Id := N + 153; -- GNAT Name_No_Strict_Aliasing : constant Name_Id := N + 154; -- GNAT Name_Normalize_Scalars : constant Name_Id := N + 155; Name_Optimize_Alignment : constant Name_Id := N + 156; -- GNAT Name_Persistent_BSS : constant Name_Id := N + 157; -- GNAT Name_Polling : constant Name_Id := N + 158; -- GNAT Name_Priority_Specific_Dispatching : constant Name_Id := N + 159; -- Ada 05 Name_Profile : constant Name_Id := N + 160; -- Ada 05 Name_Profile_Warnings : constant Name_Id := N + 161; -- GNAT Name_Propagate_Exceptions : constant Name_Id := N + 162; -- GNAT Name_Queuing_Policy : constant Name_Id := N + 163; Name_Ravenscar : constant Name_Id := N + 164; -- GNAT Name_Restricted_Run_Time : constant Name_Id := N + 165; -- GNAT Name_Restrictions : constant Name_Id := N + 166; Name_Restriction_Warnings : constant Name_Id := N + 167; -- GNAT Name_Reviewable : constant Name_Id := N + 168; Name_Short_Circuit_And_Or : constant Name_Id := N + 169; -- GNAT Name_Short_Descriptors : constant Name_Id := N + 170; -- GNAT Name_Source_File_Name : constant Name_Id := N + 171; -- GNAT Name_Source_File_Name_Project : constant Name_Id := N + 172; -- GNAT Name_Style_Checks : constant Name_Id := N + 173; -- GNAT Name_Suppress : constant Name_Id := N + 174; Name_Suppress_Exception_Locations : constant Name_Id := N + 175; -- GNAT Name_Task_Dispatching_Policy : constant Name_Id := N + 176; Name_Universal_Data : constant Name_Id := N + 177; -- AAMP Name_Unsuppress : constant Name_Id := N + 178; -- Ada 05 Name_Use_VADS_Size : constant Name_Id := N + 179; -- GNAT Name_Validity_Checks : constant Name_Id := N + 180; -- GNAT Name_Warnings : constant Name_Id := N + 181; -- GNAT Name_Wide_Character_Encoding : constant Name_Id := N + 182; -- GNAT Last_Configuration_Pragma_Name : constant Name_Id := N + 182; -- Remaining pragma names Name_Abort_Defer : constant Name_Id := N + 183; -- GNAT Name_All_Calls_Remote : constant Name_Id := N + 184; Name_Annotate : constant Name_Id := N + 185; -- GNAT -- Note: AST_Entry is not in this list because its name matches -- VMS -- the name of the corresponding attribute. However, it is -- included in the definition of the type Pragma_Id, and the -- functions Get_Pragma_Id and Is_Pragma_Id correctly recognize -- and process Name_AST_Entry. Name_Assert : constant Name_Id := N + 186; -- Ada 05 Name_Asynchronous : constant Name_Id := N + 187; Name_Atomic : constant Name_Id := N + 188; Name_Atomic_Components : constant Name_Id := N + 189; Name_Attach_Handler : constant Name_Id := N + 190; Name_Check : constant Name_Id := N + 191; -- GNAT Name_CIL_Constructor : constant Name_Id := N + 192; -- GNAT Name_Comment : constant Name_Id := N + 193; -- GNAT Name_Common_Object : constant Name_Id := N + 194; -- GNAT Name_Complete_Representation : constant Name_Id := N + 195; -- GNAT Name_Complex_Representation : constant Name_Id := N + 196; -- GNAT Name_Controlled : constant Name_Id := N + 197; Name_Convention : constant Name_Id := N + 198; Name_CPP_Class : constant Name_Id := N + 199; -- GNAT Name_CPP_Constructor : constant Name_Id := N + 200; -- GNAT Name_CPP_Virtual : constant Name_Id := N + 201; -- GNAT Name_CPP_Vtable : constant Name_Id := N + 202; -- GNAT Name_CPU : constant Name_Id := N + 203; -- Ada 12 Name_Debug : constant Name_Id := N + 204; -- GNAT Name_Dimension : constant Name_Id := N + 205; -- GNAT Name_Elaborate : constant Name_Id := N + 206; -- Ada 83 Name_Elaborate_All : constant Name_Id := N + 207; Name_Elaborate_Body : constant Name_Id := N + 208; Name_Export : constant Name_Id := N + 209; Name_Export_Exception : constant Name_Id := N + 210; -- VMS Name_Export_Function : constant Name_Id := N + 211; -- GNAT Name_Export_Object : constant Name_Id := N + 212; -- GNAT Name_Export_Procedure : constant Name_Id := N + 213; -- GNAT Name_Export_Value : constant Name_Id := N + 214; -- GNAT Name_Export_Valued_Procedure : constant Name_Id := N + 215; -- GNAT Name_External : constant Name_Id := N + 216; -- GNAT Name_Finalize_Storage_Only : constant Name_Id := N + 217; -- GNAT Name_Ident : constant Name_Id := N + 218; -- VMS Name_Implemented : constant Name_Id := N + 219; -- Ada 12 Name_Import : constant Name_Id := N + 220; Name_Import_Exception : constant Name_Id := N + 221; -- VMS Name_Import_Function : constant Name_Id := N + 222; -- GNAT Name_Import_Object : constant Name_Id := N + 223; -- GNAT Name_Import_Procedure : constant Name_Id := N + 224; -- GNAT Name_Import_Valued_Procedure : constant Name_Id := N + 225; -- GNAT Name_Independent : constant Name_Id := N + 226; -- Ada 12 Name_Independent_Components : constant Name_Id := N + 227; -- Ada 12 Name_Inline : constant Name_Id := N + 228; Name_Inline_Always : constant Name_Id := N + 229; -- GNAT Name_Inline_Generic : constant Name_Id := N + 230; -- GNAT Name_Inspection_Point : constant Name_Id := N + 231; -- Note: Interface is not in this list because its name -- GNAT -- matches an Ada 05 keyword. However it is included in -- the definition of the type Attribute_Id, and the functions -- Get_Pragma_Id and Is_Pragma_Id correctly recognize and -- process Name_Storage_Size. Name_Interface_Name : constant Name_Id := N + 232; -- GNAT Name_Interrupt_Handler : constant Name_Id := N + 233; Name_Interrupt_Priority : constant Name_Id := N + 234; Name_Invariant : constant Name_Id := N + 235; -- GNAT Name_Java_Constructor : constant Name_Id := N + 236; -- GNAT Name_Java_Interface : constant Name_Id := N + 237; -- GNAT Name_Keep_Names : constant Name_Id := N + 238; -- GNAT Name_Link_With : constant Name_Id := N + 239; -- GNAT Name_Linker_Alias : constant Name_Id := N + 240; -- GNAT Name_Linker_Constructor : constant Name_Id := N + 241; -- GNAT Name_Linker_Destructor : constant Name_Id := N + 242; -- GNAT Name_Linker_Options : constant Name_Id := N + 243; Name_Linker_Section : constant Name_Id := N + 244; -- GNAT Name_List : constant Name_Id := N + 245; Name_Machine_Attribute : constant Name_Id := N + 246; -- GNAT Name_Main : constant Name_Id := N + 247; -- GNAT Name_Main_Storage : constant Name_Id := N + 248; -- GNAT Name_Memory_Size : constant Name_Id := N + 249; -- Ada 83 Name_No_Body : constant Name_Id := N + 250; -- GNAT Name_No_Return : constant Name_Id := N + 251; -- Ada 05 Name_Obsolescent : constant Name_Id := N + 252; -- GNAT Name_Optimize : constant Name_Id := N + 253; Name_Ordered : constant Name_Id := N + 254; -- GNAT Name_Pack : constant Name_Id := N + 255; Name_Page : constant Name_Id := N + 256; Name_Passive : constant Name_Id := N + 257; -- GNAT Name_Postcondition : constant Name_Id := N + 258; -- GNAT Name_Precondition : constant Name_Id := N + 259; -- GNAT Name_Predicate : constant Name_Id := N + 260; -- GNAT Name_Preelaborable_Initialization : constant Name_Id := N + 261; -- Ada 05 Name_Preelaborate : constant Name_Id := N + 262; Name_Preelaborate_05 : constant Name_Id := N + 263; -- GNAT -- Note: Priority is not in this list because its name matches -- the name of the corresponding attribute. However, it is -- included in the definition of the type Pragma_Id, and the -- functions Get_Pragma_Id and Is_Pragma_Id correctly recognize -- and process Priority. Priority is a standard Ada 95 pragma. Name_Psect_Object : constant Name_Id := N + 264; -- VMS Name_Pure : constant Name_Id := N + 265; Name_Pure_05 : constant Name_Id := N + 266; -- GNAT Name_Pure_Function : constant Name_Id := N + 267; -- GNAT Name_Relative_Deadline : constant Name_Id := N + 268; -- Ada 05 Name_Remote_Call_Interface : constant Name_Id := N + 269; Name_Remote_Types : constant Name_Id := N + 270; Name_Share_Generic : constant Name_Id := N + 271; -- GNAT Name_Shared : constant Name_Id := N + 272; -- Ada 83 Name_Shared_Passive : constant Name_Id := N + 273; -- Note: Storage_Size is not in this list because its name -- matches the name of the corresponding attribute. However, -- it is included in the definition of the type Attribute_Id, -- and the functions Get_Pragma_Id and Is_Pragma_Id correctly -- recognize and process Name_Storage_Size. -- Note: Storage_Unit is also omitted from the list because -- of a clash with an attribute name, and is treated similarly. Name_Source_Reference : constant Name_Id := N + 274; -- GNAT Name_Static_Elaboration_Desired : constant Name_Id := N + 275; -- GNAT Name_Stream_Convert : constant Name_Id := N + 276; -- GNAT Name_Subtitle : constant Name_Id := N + 277; -- GNAT Name_Suppress_All : constant Name_Id := N + 278; -- GNAT Name_Suppress_Debug_Info : constant Name_Id := N + 279; -- GNAT Name_Suppress_Initialization : constant Name_Id := N + 280; -- GNAT Name_System_Name : constant Name_Id := N + 281; -- Ada 83 Name_Task_Info : constant Name_Id := N + 282; -- GNAT Name_Task_Name : constant Name_Id := N + 283; -- GNAT Name_Task_Storage : constant Name_Id := N + 284; -- VMS Name_Thread_Local_Storage : constant Name_Id := N + 285; -- GNAT Name_Time_Slice : constant Name_Id := N + 286; -- GNAT Name_Title : constant Name_Id := N + 287; -- GNAT Name_Unchecked_Union : constant Name_Id := N + 288; -- Ada 05 Name_Unimplemented_Unit : constant Name_Id := N + 289; -- GNAT Name_Universal_Aliasing : constant Name_Id := N + 290; -- GNAT Name_Unmodified : constant Name_Id := N + 291; -- GNAT Name_Unreferenced : constant Name_Id := N + 292; -- GNAT Name_Unreferenced_Objects : constant Name_Id := N + 293; -- GNAT Name_Unreserve_All_Interrupts : constant Name_Id := N + 294; -- GNAT Name_Volatile : constant Name_Id := N + 295; Name_Volatile_Components : constant Name_Id := N + 296; Name_Weak_External : constant Name_Id := N + 297; -- GNAT Last_Pragma_Name : constant Name_Id := N + 297; -- Language convention names for pragma Convention/Export/Import/Interface -- Note that Name_C is not included in this list, since it was already -- declared earlier in the context of one-character identifier names -- (where the order is critical to the fast look up process). -- Note: there are no convention names corresponding to the conventions -- Entry and Protected, this is because these conventions cannot be -- specified by a pragma. First_Convention_Name : constant Name_Id := N + 298; Name_Ada : constant Name_Id := N + 298; Name_Assembler : constant Name_Id := N + 299; Name_CIL : constant Name_Id := N + 300; Name_COBOL : constant Name_Id := N + 301; Name_CPP : constant Name_Id := N + 302; Name_Fortran : constant Name_Id := N + 303; Name_Intrinsic : constant Name_Id := N + 304; Name_Java : constant Name_Id := N + 305; Name_Stdcall : constant Name_Id := N + 306; Name_Stubbed : constant Name_Id := N + 307; Last_Convention_Name : constant Name_Id := N + 307; -- The following names are preset as synonyms for Assembler Name_Asm : constant Name_Id := N + 308; Name_Assembly : constant Name_Id := N + 309; -- The following names are preset as synonyms for C Name_Default : constant Name_Id := N + 310; -- Name_External (previously defined as pragma) -- The following names are preset as synonyms for CPP Name_C_Plus_Plus : constant Name_Id := N + 311; -- The following names are present as synonyms for Stdcall Name_DLL : constant Name_Id := N + 312; Name_Win32 : constant Name_Id := N + 313; -- Other special names used in processing pragmas Name_As_Is : constant Name_Id := N + 314; Name_Assertion : constant Name_Id := N + 315; Name_Attribute_Name : constant Name_Id := N + 316; Name_Body_File_Name : constant Name_Id := N + 317; Name_Boolean_Entry_Barriers : constant Name_Id := N + 318; Name_By_Any : constant Name_Id := N + 319; Name_By_Entry : constant Name_Id := N + 320; Name_By_Protected_Procedure : constant Name_Id := N + 321; Name_Casing : constant Name_Id := N + 322; Name_Code : constant Name_Id := N + 323; Name_Component : constant Name_Id := N + 324; Name_Component_Size_4 : constant Name_Id := N + 325; Name_Copy : constant Name_Id := N + 326; Name_D_Float : constant Name_Id := N + 327; Name_Descriptor : constant Name_Id := N + 328; Name_Dot_Replacement : constant Name_Id := N + 329; Name_Dynamic : constant Name_Id := N + 330; Name_Entity : constant Name_Id := N + 331; Name_Entry_Count : constant Name_Id := N + 332; Name_External_Name : constant Name_Id := N + 333; Name_First_Optional_Parameter : constant Name_Id := N + 334; Name_Form : constant Name_Id := N + 335; Name_G_Float : constant Name_Id := N + 336; Name_Gcc : constant Name_Id := N + 337; Name_Gnat : constant Name_Id := N + 338; Name_GPL : constant Name_Id := N + 339; Name_IEEE_Float : constant Name_Id := N + 340; Name_Ignore : constant Name_Id := N + 341; Name_Info : constant Name_Id := N + 342; Name_Internal : constant Name_Id := N + 343; Name_Link_Name : constant Name_Id := N + 344; Name_Lowercase : constant Name_Id := N + 345; Name_Max_Entry_Queue_Depth : constant Name_Id := N + 346; Name_Max_Entry_Queue_Length : constant Name_Id := N + 347; Name_Max_Size : constant Name_Id := N + 348; Name_Mechanism : constant Name_Id := N + 349; Name_Message : constant Name_Id := N + 350; Name_Mixedcase : constant Name_Id := N + 351; Name_Modified_GPL : constant Name_Id := N + 352; Name_Name : constant Name_Id := N + 353; Name_NCA : constant Name_Id := N + 354; Name_No : constant Name_Id := N + 355; Name_No_Dependence : constant Name_Id := N + 356; Name_No_Dynamic_Attachment : constant Name_Id := N + 357; Name_No_Dynamic_Interrupts : constant Name_Id := N + 358; Name_No_Requeue : constant Name_Id := N + 359; Name_No_Requeue_Statements : constant Name_Id := N + 360; Name_No_Task_Attributes : constant Name_Id := N + 361; Name_No_Task_Attributes_Package : constant Name_Id := N + 362; Name_On : constant Name_Id := N + 363; Name_Policy : constant Name_Id := N + 364; Name_Parameter_Types : constant Name_Id := N + 365; Name_Reference : constant Name_Id := N + 366; Name_Restricted : constant Name_Id := N + 367; Name_Result_Mechanism : constant Name_Id := N + 368; Name_Result_Type : constant Name_Id := N + 369; Name_Runtime : constant Name_Id := N + 370; Name_SB : constant Name_Id := N + 371; Name_Secondary_Stack_Size : constant Name_Id := N + 372; Name_Section : constant Name_Id := N + 373; Name_Semaphore : constant Name_Id := N + 374; Name_Short_Descriptor : constant Name_Id := N + 375; Name_Simple_Barriers : constant Name_Id := N + 376; Name_Spec_File_Name : constant Name_Id := N + 377; Name_State : constant Name_Id := N + 378; Name_Static : constant Name_Id := N + 379; Name_Stack_Size : constant Name_Id := N + 380; Name_Subunit_File_Name : constant Name_Id := N + 381; Name_Task_Stack_Size_Default : constant Name_Id := N + 382; Name_Task_Type : constant Name_Id := N + 383; Name_Time_Slicing_Enabled : constant Name_Id := N + 384; Name_Top_Guard : constant Name_Id := N + 385; Name_UBA : constant Name_Id := N + 386; Name_UBS : constant Name_Id := N + 387; Name_UBSB : constant Name_Id := N + 388; Name_Unit_Name : constant Name_Id := N + 389; Name_Unknown : constant Name_Id := N + 390; Name_Unrestricted : constant Name_Id := N + 391; Name_Uppercase : constant Name_Id := N + 392; Name_User : constant Name_Id := N + 393; Name_VAX_Float : constant Name_Id := N + 394; Name_VMS : constant Name_Id := N + 395; Name_Vtable_Ptr : constant Name_Id := N + 396; Name_Working_Storage : constant Name_Id := N + 397; -- Names of recognized attributes. The entries with the comment "Ada 83" -- are attributes that are defined in Ada 83, but not in Ada 95. These -- attributes are implemented in both Ada 83 and Ada 95 modes in GNAT. -- The entries marked GNAT are attributes that are defined by GNAT -- and implemented in both Ada 83 and Ada 95 modes. Full descriptions -- of these implementation dependent attributes may be found in the -- appropriate section in package Sem_Attr in file sem-attr.ads. -- The entries marked VMS are recognized only in OpenVMS implementations -- of GNAT, and are treated as illegal in all other contexts. First_Attribute_Name : constant Name_Id := N + 398; Name_Abort_Signal : constant Name_Id := N + 398; -- GNAT Name_Access : constant Name_Id := N + 399; Name_Address : constant Name_Id := N + 400; Name_Address_Size : constant Name_Id := N + 401; -- GNAT Name_Aft : constant Name_Id := N + 402; Name_Alignment : constant Name_Id := N + 403; Name_Asm_Input : constant Name_Id := N + 404; -- GNAT Name_Asm_Output : constant Name_Id := N + 405; -- GNAT Name_AST_Entry : constant Name_Id := N + 406; -- VMS Name_Bit : constant Name_Id := N + 407; -- GNAT Name_Bit_Order : constant Name_Id := N + 408; Name_Bit_Position : constant Name_Id := N + 409; -- GNAT Name_Body_Version : constant Name_Id := N + 410; Name_Callable : constant Name_Id := N + 411; Name_Caller : constant Name_Id := N + 412; Name_Code_Address : constant Name_Id := N + 413; -- GNAT Name_Compiler_Version : constant Name_Id := N + 414; -- GNAT Name_Component_Size : constant Name_Id := N + 415; Name_Compose : constant Name_Id := N + 416; Name_Constrained : constant Name_Id := N + 417; Name_Count : constant Name_Id := N + 418; Name_Default_Bit_Order : constant Name_Id := N + 419; -- GNAT Name_Definite : constant Name_Id := N + 420; Name_Delta : constant Name_Id := N + 421; Name_Denorm : constant Name_Id := N + 422; Name_Digits : constant Name_Id := N + 423; Name_Elaborated : constant Name_Id := N + 424; -- GNAT Name_Emax : constant Name_Id := N + 425; -- Ada 83 Name_Enabled : constant Name_Id := N + 426; -- GNAT Name_Enum_Rep : constant Name_Id := N + 427; -- GNAT Name_Enum_Val : constant Name_Id := N + 428; -- GNAT Name_Epsilon : constant Name_Id := N + 429; -- Ada 83 Name_Exponent : constant Name_Id := N + 430; Name_External_Tag : constant Name_Id := N + 431; Name_Fast_Math : constant Name_Id := N + 432; -- GNAT Name_First : constant Name_Id := N + 433; Name_First_Bit : constant Name_Id := N + 434; Name_Fixed_Value : constant Name_Id := N + 435; -- GNAT Name_Fore : constant Name_Id := N + 436; Name_Has_Access_Values : constant Name_Id := N + 437; -- GNAT Name_Has_Discriminants : constant Name_Id := N + 438; -- GNAT Name_Has_Tagged_Values : constant Name_Id := N + 439; -- GNAT Name_Identity : constant Name_Id := N + 440; Name_Img : constant Name_Id := N + 441; -- GNAT Name_Integer_Value : constant Name_Id := N + 442; -- GNAT Name_Invalid_Value : constant Name_Id := N + 443; -- GNAT Name_Large : constant Name_Id := N + 444; -- Ada 83 Name_Last : constant Name_Id := N + 445; Name_Last_Bit : constant Name_Id := N + 446; Name_Leading_Part : constant Name_Id := N + 447; Name_Length : constant Name_Id := N + 448; Name_Machine_Emax : constant Name_Id := N + 449; Name_Machine_Emin : constant Name_Id := N + 450; Name_Machine_Mantissa : constant Name_Id := N + 451; Name_Machine_Overflows : constant Name_Id := N + 452; Name_Machine_Radix : constant Name_Id := N + 453; Name_Machine_Rounding : constant Name_Id := N + 454; -- Ada 05 Name_Machine_Rounds : constant Name_Id := N + 455; Name_Machine_Size : constant Name_Id := N + 456; -- GNAT Name_Mantissa : constant Name_Id := N + 457; -- Ada 83 Name_Max_Alignment_For_Allocation : constant Name_Id := N + 458; -- Ada 12 Name_Max_Size_In_Storage_Elements : constant Name_Id := N + 459; Name_Maximum_Alignment : constant Name_Id := N + 460; -- GNAT Name_Mechanism_Code : constant Name_Id := N + 461; -- GNAT Name_Mod : constant Name_Id := N + 462; -- Ada 05 Name_Model_Emin : constant Name_Id := N + 463; Name_Model_Epsilon : constant Name_Id := N + 464; Name_Model_Mantissa : constant Name_Id := N + 465; Name_Model_Small : constant Name_Id := N + 466; Name_Modulus : constant Name_Id := N + 467; Name_Null_Parameter : constant Name_Id := N + 468; -- GNAT Name_Object_Size : constant Name_Id := N + 469; -- GNAT Name_Old : constant Name_Id := N + 470; -- GNAT Name_Partition_ID : constant Name_Id := N + 471; Name_Passed_By_Reference : constant Name_Id := N + 472; -- GNAT Name_Pool_Address : constant Name_Id := N + 473; Name_Pos : constant Name_Id := N + 474; Name_Position : constant Name_Id := N + 475; Name_Priority : constant Name_Id := N + 476; -- Ada 05 Name_Range : constant Name_Id := N + 477; Name_Range_Length : constant Name_Id := N + 478; -- GNAT Name_Ref : constant Name_Id := N + 479; -- GNAT Name_Result : constant Name_Id := N + 480; -- GNAT Name_Round : constant Name_Id := N + 481; Name_Safe_Emax : constant Name_Id := N + 482; -- Ada 83 Name_Safe_First : constant Name_Id := N + 483; Name_Safe_Large : constant Name_Id := N + 484; -- Ada 83 Name_Safe_Last : constant Name_Id := N + 485; Name_Safe_Small : constant Name_Id := N + 486; -- Ada 83 Name_Scale : constant Name_Id := N + 487; Name_Scaling : constant Name_Id := N + 488; Name_Signed_Zeros : constant Name_Id := N + 489; Name_Size : constant Name_Id := N + 490; Name_Small : constant Name_Id := N + 491; Name_Storage_Size : constant Name_Id := N + 492; Name_Storage_Unit : constant Name_Id := N + 493; -- GNAT Name_Stream_Size : constant Name_Id := N + 494; -- Ada 05 Name_Tag : constant Name_Id := N + 495; Name_Target_Name : constant Name_Id := N + 496; -- GNAT Name_Terminated : constant Name_Id := N + 497; Name_To_Address : constant Name_Id := N + 498; -- GNAT Name_Type_Class : constant Name_Id := N + 499; -- GNAT Name_Type_Key : constant Name_Id := N + 500; -- GNAT Name_UET_Address : constant Name_Id := N + 501; -- GNAT Name_Unbiased_Rounding : constant Name_Id := N + 502; Name_Unchecked_Access : constant Name_Id := N + 503; Name_Unconstrained_Array : constant Name_Id := N + 504; Name_Universal_Literal_String : constant Name_Id := N + 505; -- GNAT Name_Unrestricted_Access : constant Name_Id := N + 506; -- GNAT Name_VADS_Size : constant Name_Id := N + 507; -- GNAT Name_Val : constant Name_Id := N + 508; Name_Valid : constant Name_Id := N + 509; Name_Value_Size : constant Name_Id := N + 510; -- GNAT Name_Version : constant Name_Id := N + 511; Name_Wchar_T_Size : constant Name_Id := N + 512; -- GNAT Name_Wide_Wide_Width : constant Name_Id := N + 513; -- Ada 05 Name_Wide_Width : constant Name_Id := N + 514; Name_Width : constant Name_Id := N + 515; Name_Word_Size : constant Name_Id := N + 516; -- GNAT -- Attributes that designate attributes returning renamable functions, -- i.e. functions that return other than a universal value and that -- have non-universal arguments. First_Renamable_Function_Attribute : constant Name_Id := N + 517; Name_Adjacent : constant Name_Id := N + 517; Name_Ceiling : constant Name_Id := N + 518; Name_Copy_Sign : constant Name_Id := N + 519; Name_Floor : constant Name_Id := N + 520; Name_Fraction : constant Name_Id := N + 521; Name_From_Any : constant Name_Id := N + 522; -- GNAT Name_Image : constant Name_Id := N + 523; Name_Input : constant Name_Id := N + 524; Name_Machine : constant Name_Id := N + 525; Name_Max : constant Name_Id := N + 526; Name_Min : constant Name_Id := N + 527; Name_Model : constant Name_Id := N + 528; Name_Pred : constant Name_Id := N + 529; Name_Remainder : constant Name_Id := N + 530; Name_Rounding : constant Name_Id := N + 531; Name_Succ : constant Name_Id := N + 532; Name_To_Any : constant Name_Id := N + 533; -- GNAT Name_Truncation : constant Name_Id := N + 534; Name_TypeCode : constant Name_Id := N + 535; -- GNAT Name_Value : constant Name_Id := N + 536; Name_Wide_Image : constant Name_Id := N + 537; Name_Wide_Wide_Image : constant Name_Id := N + 538; Name_Wide_Value : constant Name_Id := N + 539; Name_Wide_Wide_Value : constant Name_Id := N + 540; Last_Renamable_Function_Attribute : constant Name_Id := N + 540; -- Attributes that designate procedures First_Procedure_Attribute : constant Name_Id := N + 541; Name_Output : constant Name_Id := N + 541; Name_Read : constant Name_Id := N + 542; Name_Write : constant Name_Id := N + 543; Last_Procedure_Attribute : constant Name_Id := N + 543; -- Remaining attributes are ones that return entities First_Entity_Attribute_Name : constant Name_Id := N + 544; Name_Elab_Body : constant Name_Id := N + 544; -- GNAT Name_Elab_Spec : constant Name_Id := N + 545; -- GNAT Name_Storage_Pool : constant Name_Id := N + 546; -- These attributes are the ones that return types First_Type_Attribute_Name : constant Name_Id := N + 547; Name_Base : constant Name_Id := N + 547; Name_Class : constant Name_Id := N + 548; Name_Stub_Type : constant Name_Id := N + 549; Last_Type_Attribute_Name : constant Name_Id := N + 549; Last_Entity_Attribute_Name : constant Name_Id := N + 549; Last_Attribute_Name : constant Name_Id := N + 549; -- Names of recognized locking policy identifiers -- Note: policies are identified by the first character of the -- name (e.g. C for Ceiling_Locking). If new policy names are added, -- the first character must be distinct. First_Locking_Policy_Name : constant Name_Id := N + 550; Name_Ceiling_Locking : constant Name_Id := N + 550; Name_Inheritance_Locking : constant Name_Id := N + 551; Last_Locking_Policy_Name : constant Name_Id := N + 551; -- Names of recognized queuing policy identifiers -- Note: policies are identified by the first character of the -- name (e.g. F for FIFO_Queuing). If new policy names are added, -- the first character must be distinct. First_Queuing_Policy_Name : constant Name_Id := N + 552; Name_FIFO_Queuing : constant Name_Id := N + 552; Name_Priority_Queuing : constant Name_Id := N + 553; Last_Queuing_Policy_Name : constant Name_Id := N + 553; -- Names of recognized task dispatching policy identifiers -- Note: policies are identified by the first character of the -- name (e.g. F for FIFO_Within_Priorities). If new policy names -- are added, the first character must be distinct. First_Task_Dispatching_Policy_Name : constant Name_Id := N + 554; Name_EDF_Across_Priorities : constant Name_Id := N + 554; Name_FIFO_Within_Priorities : constant Name_Id := N + 555; Name_Non_Preemptive_Within_Priorities : constant Name_Id := N + 556; Name_Round_Robin_Within_Priorities : constant Name_Id := N + 557; Last_Task_Dispatching_Policy_Name : constant Name_Id := N + 557; -- Names of recognized checks for pragma Suppress First_Check_Name : constant Name_Id := N + 558; Name_Access_Check : constant Name_Id := N + 558; Name_Accessibility_Check : constant Name_Id := N + 559; Name_Alignment_Check : constant Name_Id := N + 560; -- GNAT Name_Discriminant_Check : constant Name_Id := N + 561; Name_Division_Check : constant Name_Id := N + 562; Name_Elaboration_Check : constant Name_Id := N + 563; Name_Index_Check : constant Name_Id := N + 564; Name_Length_Check : constant Name_Id := N + 565; Name_Overflow_Check : constant Name_Id := N + 566; Name_Range_Check : constant Name_Id := N + 567; Name_Storage_Check : constant Name_Id := N + 568; Name_Tag_Check : constant Name_Id := N + 569; Name_Validity_Check : constant Name_Id := N + 570; -- GNAT Name_All_Checks : constant Name_Id := N + 571; Last_Check_Name : constant Name_Id := N + 571; -- Names corresponding to reserved keywords, excluding those already -- declared in the attribute list (Access, Delta, Digits, Mod, Range). -- Note: Name_Some is here even though for now we do not treat it as being -- reserved. We treat it instead as an unreserved keyword. This may change -- in the future, but in any case it belongs in the following list. Name_Abort : constant Name_Id := N + 572; Name_Abs : constant Name_Id := N + 573; Name_Accept : constant Name_Id := N + 574; Name_And : constant Name_Id := N + 575; Name_All : constant Name_Id := N + 576; Name_Array : constant Name_Id := N + 577; Name_At : constant Name_Id := N + 578; Name_Begin : constant Name_Id := N + 579; Name_Body : constant Name_Id := N + 580; Name_Case : constant Name_Id := N + 581; Name_Constant : constant Name_Id := N + 582; Name_Declare : constant Name_Id := N + 583; Name_Delay : constant Name_Id := N + 584; Name_Do : constant Name_Id := N + 585; Name_Else : constant Name_Id := N + 586; Name_Elsif : constant Name_Id := N + 587; Name_End : constant Name_Id := N + 588; Name_Entry : constant Name_Id := N + 589; Name_Exception : constant Name_Id := N + 590; Name_Exit : constant Name_Id := N + 591; Name_For : constant Name_Id := N + 592; Name_Function : constant Name_Id := N + 593; Name_Generic : constant Name_Id := N + 594; Name_Goto : constant Name_Id := N + 595; Name_If : constant Name_Id := N + 596; Name_In : constant Name_Id := N + 597; Name_Is : constant Name_Id := N + 598; Name_Limited : constant Name_Id := N + 599; Name_Loop : constant Name_Id := N + 600; Name_New : constant Name_Id := N + 601; Name_Not : constant Name_Id := N + 602; Name_Null : constant Name_Id := N + 603; Name_Of : constant Name_Id := N + 604; Name_Or : constant Name_Id := N + 605; Name_Others : constant Name_Id := N + 606; Name_Out : constant Name_Id := N + 607; Name_Package : constant Name_Id := N + 608; Name_Pragma : constant Name_Id := N + 609; Name_Private : constant Name_Id := N + 610; Name_Procedure : constant Name_Id := N + 611; Name_Raise : constant Name_Id := N + 612; Name_Record : constant Name_Id := N + 613; Name_Rem : constant Name_Id := N + 614; Name_Renames : constant Name_Id := N + 615; Name_Return : constant Name_Id := N + 616; Name_Reverse : constant Name_Id := N + 617; Name_Select : constant Name_Id := N + 618; Name_Separate : constant Name_Id := N + 619; Name_Some : constant Name_Id := N + 620; Name_Subtype : constant Name_Id := N + 621; Name_Task : constant Name_Id := N + 622; Name_Terminate : constant Name_Id := N + 623; Name_Then : constant Name_Id := N + 624; Name_Type : constant Name_Id := N + 625; Name_Use : constant Name_Id := N + 626; Name_When : constant Name_Id := N + 627; Name_While : constant Name_Id := N + 628; Name_With : constant Name_Id := N + 629; Name_Xor : constant Name_Id := N + 630; -- Names of intrinsic subprograms -- Note: Asm is missing from this list, since Asm is a legitimate -- convention name. So is To_Address, which is a GNAT attribute. First_Intrinsic_Name : constant Name_Id := N + 631; Name_Divide : constant Name_Id := N + 631; Name_Enclosing_Entity : constant Name_Id := N + 632; Name_Exception_Information : constant Name_Id := N + 633; Name_Exception_Message : constant Name_Id := N + 634; Name_Exception_Name : constant Name_Id := N + 635; Name_File : constant Name_Id := N + 636; Name_Generic_Dispatching_Constructor : constant Name_Id := N + 637; Name_Import_Address : constant Name_Id := N + 638; Name_Import_Largest_Value : constant Name_Id := N + 639; Name_Import_Value : constant Name_Id := N + 640; Name_Is_Negative : constant Name_Id := N + 641; Name_Line : constant Name_Id := N + 642; Name_Rotate_Left : constant Name_Id := N + 643; Name_Rotate_Right : constant Name_Id := N + 644; Name_Shift_Left : constant Name_Id := N + 645; Name_Shift_Right : constant Name_Id := N + 646; Name_Shift_Right_Arithmetic : constant Name_Id := N + 647; Name_Source_Location : constant Name_Id := N + 648; Name_Unchecked_Conversion : constant Name_Id := N + 649; Name_Unchecked_Deallocation : constant Name_Id := N + 650; Name_To_Pointer : constant Name_Id := N + 651; Last_Intrinsic_Name : constant Name_Id := N + 651; -- Names used in processing intrinsic calls Name_Free : constant Name_Id := N + 652; -- Reserved words used only in Ada 95 First_95_Reserved_Word : constant Name_Id := N + 653; Name_Abstract : constant Name_Id := N + 653; Name_Aliased : constant Name_Id := N + 654; Name_Protected : constant Name_Id := N + 655; Name_Until : constant Name_Id := N + 656; Name_Requeue : constant Name_Id := N + 657; Name_Tagged : constant Name_Id := N + 658; Last_95_Reserved_Word : constant Name_Id := N + 658; subtype Ada_95_Reserved_Words is Name_Id range First_95_Reserved_Word .. Last_95_Reserved_Word; -- Miscellaneous names used in semantic checking Name_Raise_Exception : constant Name_Id := N + 659; -- Additional reserved words and identifiers used in GNAT Project Files -- Note that Name_External is already previously declared -- The names with the -- GPR annotation are only used in gprbuild Name_Aggregate : constant Name_Id := N + 660; Name_Archive_Builder : constant Name_Id := N + 661; Name_Archive_Builder_Append_Option : constant Name_Id := N + 662; Name_Archive_Indexer : constant Name_Id := N + 663; Name_Archive_Suffix : constant Name_Id := N + 664; Name_Binder : constant Name_Id := N + 665; Name_Body_Suffix : constant Name_Id := N + 666; Name_Builder : constant Name_Id := N + 667; Name_Compiler : constant Name_Id := N + 668; Name_Compiler_Command : constant Name_Id := N + 669; -- GPR Name_Config_Body_File_Name : constant Name_Id := N + 670; Name_Config_Body_File_Name_Index : constant Name_Id := N + 671; Name_Config_Body_File_Name_Pattern : constant Name_Id := N + 672; Name_Config_File_Switches : constant Name_Id := N + 673; Name_Config_File_Unique : constant Name_Id := N + 674; Name_Config_Spec_File_Name : constant Name_Id := N + 675; Name_Config_Spec_File_Name_Index : constant Name_Id := N + 676; Name_Config_Spec_File_Name_Pattern : constant Name_Id := N + 677; Name_Configuration : constant Name_Id := N + 678; Name_Cross_Reference : constant Name_Id := N + 679; Name_Default_Language : constant Name_Id := N + 680; Name_Default_Switches : constant Name_Id := N + 681; Name_Dependency_Driver : constant Name_Id := N + 682; Name_Dependency_Switches : constant Name_Id := N + 683; Name_Driver : constant Name_Id := N + 684; Name_Excluded_Source_Dirs : constant Name_Id := N + 685; Name_Excluded_Source_Files : constant Name_Id := N + 686; Name_Excluded_Source_List_File : constant Name_Id := N + 687; Name_Exec_Dir : constant Name_Id := N + 688; Name_Executable : constant Name_Id := N + 689; Name_Executable_Suffix : constant Name_Id := N + 690; Name_Extends : constant Name_Id := N + 691; Name_External_As_List : constant Name_Id := N + 692; Name_Externally_Built : constant Name_Id := N + 693; Name_Finder : constant Name_Id := N + 694; Name_Global_Compilation_Switches : constant Name_Id := N + 695; Name_Global_Configuration_Pragmas : constant Name_Id := N + 696; Name_Global_Config_File : constant Name_Id := N + 697; -- GPR Name_Gnatls : constant Name_Id := N + 698; Name_Gnatstub : constant Name_Id := N + 699; Name_Gnu : constant Name_Id := N + 700; Name_Ide : constant Name_Id := N + 701; Name_Ignore_Source_Sub_Dirs : constant Name_Id := N + 702; Name_Implementation : constant Name_Id := N + 703; Name_Implementation_Exceptions : constant Name_Id := N + 704; Name_Implementation_Suffix : constant Name_Id := N + 705; Name_Include_Switches : constant Name_Id := N + 706; Name_Include_Path : constant Name_Id := N + 707; Name_Include_Path_File : constant Name_Id := N + 708; Name_Inherit_Source_Path : constant Name_Id := N + 709; Name_Languages : constant Name_Id := N + 710; Name_Leading_Library_Options : constant Name_Id := N + 711; Name_Leading_Required_Switches : constant Name_Id := N + 712; Name_Leading_Switches : constant Name_Id := N + 713; Name_Library : constant Name_Id := N + 714; Name_Library_Ali_Dir : constant Name_Id := N + 715; Name_Library_Auto_Init : constant Name_Id := N + 716; Name_Library_Auto_Init_Supported : constant Name_Id := N + 717; Name_Library_Builder : constant Name_Id := N + 718; Name_Library_Dir : constant Name_Id := N + 719; Name_Library_GCC : constant Name_Id := N + 720; Name_Library_Install_Name_Option : constant Name_Id := N + 721; Name_Library_Interface : constant Name_Id := N + 722; Name_Library_Kind : constant Name_Id := N + 723; Name_Library_Name : constant Name_Id := N + 724; Name_Library_Major_Minor_Id_Supported : constant Name_Id := N + 725; Name_Library_Options : constant Name_Id := N + 726; Name_Library_Partial_Linker : constant Name_Id := N + 727; Name_Library_Reference_Symbol_File : constant Name_Id := N + 728; Name_Library_Src_Dir : constant Name_Id := N + 729; Name_Library_Support : constant Name_Id := N + 730; Name_Library_Symbol_File : constant Name_Id := N + 731; Name_Library_Symbol_Policy : constant Name_Id := N + 732; Name_Library_Version : constant Name_Id := N + 733; Name_Library_Version_Switches : constant Name_Id := N + 734; Name_Linker : constant Name_Id := N + 735; Name_Linker_Executable_Option : constant Name_Id := N + 736; Name_Linker_Lib_Dir_Option : constant Name_Id := N + 737; Name_Linker_Lib_Name_Option : constant Name_Id := N + 738; Name_Local_Config_File : constant Name_Id := N + 739; -- GPR Name_Local_Configuration_Pragmas : constant Name_Id := N + 740; Name_Locally_Removed_Files : constant Name_Id := N + 741; Name_Map_File_Option : constant Name_Id := N + 742; Name_Mapping_File_Switches : constant Name_Id := N + 743; Name_Mapping_Spec_Suffix : constant Name_Id := N + 744; Name_Mapping_Body_Suffix : constant Name_Id := N + 745; Name_Max_Command_Line_Length : constant Name_Id := N + 746; Name_Metrics : constant Name_Id := N + 747; Name_Multi_Unit_Object_Separator : constant Name_Id := N + 748; Name_Multi_Unit_Switches : constant Name_Id := N + 749; Name_Naming : constant Name_Id := N + 750; Name_None : constant Name_Id := N + 751; Name_Object_File_Suffix : constant Name_Id := N + 752; Name_Object_File_Switches : constant Name_Id := N + 753; Name_Object_Generated : constant Name_Id := N + 754; Name_Object_List : constant Name_Id := N + 755; Name_Objects_Linked : constant Name_Id := N + 756; Name_Objects_Path : constant Name_Id := N + 757; Name_Objects_Path_File : constant Name_Id := N + 758; Name_Object_Dir : constant Name_Id := N + 759; Name_Option_List : constant Name_Id := N + 760; Name_Path_Syntax : constant Name_Id := N + 761; Name_Pic_Option : constant Name_Id := N + 762; Name_Pretty_Printer : constant Name_Id := N + 763; Name_Prefix : constant Name_Id := N + 764; Name_Project : constant Name_Id := N + 765; Name_Project_Dir : constant Name_Id := N + 766; Name_Project_Files : constant Name_Id := N + 767; Name_Project_Path : constant Name_Id := N + 768; Name_Response_File_Format : constant Name_Id := N + 769; Name_Response_File_Switches : constant Name_Id := N + 770; Name_Roots : constant Name_Id := N + 771; -- GPR Name_Required_Switches : constant Name_Id := N + 772; Name_Run_Path_Option : constant Name_Id := N + 773; Name_Run_Path_Origin : constant Name_Id := N + 774; Name_Separate_Run_Path_Options : constant Name_Id := N + 775; Name_Shared_Library_Minimum_Switches : constant Name_Id := N + 776; Name_Shared_Library_Prefix : constant Name_Id := N + 777; Name_Shared_Library_Suffix : constant Name_Id := N + 778; Name_Separate_Suffix : constant Name_Id := N + 779; Name_Source_Dirs : constant Name_Id := N + 780; Name_Source_Files : constant Name_Id := N + 781; Name_Source_List_File : constant Name_Id := N + 782; Name_Spec : constant Name_Id := N + 783; Name_Spec_Suffix : constant Name_Id := N + 784; Name_Specification : constant Name_Id := N + 785; Name_Specification_Exceptions : constant Name_Id := N + 786; Name_Specification_Suffix : constant Name_Id := N + 787; Name_Stack : constant Name_Id := N + 788; Name_Switches : constant Name_Id := N + 789; Name_Symbolic_Link_Supported : constant Name_Id := N + 790; Name_Synchronize : constant Name_Id := N + 791; Name_Toolchain_Description : constant Name_Id := N + 792; Name_Toolchain_Version : constant Name_Id := N + 793; Name_Trailing_Required_Switches : constant Name_Id := N + 794; Name_Runtime_Library_Dir : constant Name_Id := N + 795; Name_Runtime_Source_Dir : constant Name_Id := N + 796; -- Other miscellaneous names used in front end Name_Unaligned_Valid : constant Name_Id := N + 797; -- Names used to implement iterators over predefined containers Name_Cursor : constant Name_Id := N + 798; Name_Element : constant Name_Id := N + 799; Name_Element_Type : constant Name_Id := N + 800; Name_No_Element : constant Name_Id := N + 801; Name_Previous : constant Name_Id := N + 802; -- Ada 05 reserved words First_2005_Reserved_Word : constant Name_Id := N + 803; Name_Interface : constant Name_Id := N + 803; Name_Overriding : constant Name_Id := N + 804; Name_Synchronized : constant Name_Id := N + 805; Last_2005_Reserved_Word : constant Name_Id := N + 805; subtype Ada_2005_Reserved_Words is Name_Id range First_2005_Reserved_Word .. Last_2005_Reserved_Word; -- Mark last defined name for consistency check in Snames body Last_Predefined_Name : constant Name_Id := N + 805; --------------------------------------- -- Subtypes Defining Name Categories -- --------------------------------------- subtype Any_Operator_Name is Name_Id range First_Operator_Name .. Last_Operator_Name; subtype Configuration_Pragma_Names is Name_Id range First_Pragma_Name .. Last_Configuration_Pragma_Name; ------------------------------ -- Attribute ID Definitions -- ------------------------------ type Attribute_Id is ( Attribute_Abort_Signal, Attribute_Access, Attribute_Address, Attribute_Address_Size, Attribute_Aft, Attribute_Alignment, Attribute_Asm_Input, Attribute_Asm_Output, Attribute_AST_Entry, Attribute_Bit, Attribute_Bit_Order, Attribute_Bit_Position, Attribute_Body_Version, Attribute_Callable, Attribute_Caller, Attribute_Code_Address, Attribute_Compiler_Version, Attribute_Component_Size, Attribute_Compose, Attribute_Constrained, Attribute_Count, Attribute_Default_Bit_Order, Attribute_Definite, Attribute_Delta, Attribute_Denorm, Attribute_Digits, Attribute_Elaborated, Attribute_Emax, Attribute_Enabled, Attribute_Enum_Rep, Attribute_Enum_Val, Attribute_Epsilon, Attribute_Exponent, Attribute_External_Tag, Attribute_Fast_Math, Attribute_First, Attribute_First_Bit, Attribute_Fixed_Value, Attribute_Fore, Attribute_Has_Access_Values, Attribute_Has_Discriminants, Attribute_Has_Tagged_Values, Attribute_Identity, Attribute_Img, Attribute_Integer_Value, Attribute_Invalid_Value, Attribute_Large, Attribute_Last, Attribute_Last_Bit, Attribute_Leading_Part, Attribute_Length, Attribute_Machine_Emax, Attribute_Machine_Emin, Attribute_Machine_Mantissa, Attribute_Machine_Overflows, Attribute_Machine_Radix, Attribute_Machine_Rounding, Attribute_Machine_Rounds, Attribute_Machine_Size, Attribute_Mantissa, Attribute_Max_Alignment_For_Allocation, Attribute_Max_Size_In_Storage_Elements, Attribute_Maximum_Alignment, Attribute_Mechanism_Code, Attribute_Mod, Attribute_Model_Emin, Attribute_Model_Epsilon, Attribute_Model_Mantissa, Attribute_Model_Small, Attribute_Modulus, Attribute_Null_Parameter, Attribute_Object_Size, Attribute_Old, Attribute_Partition_ID, Attribute_Passed_By_Reference, Attribute_Pool_Address, Attribute_Pos, Attribute_Position, Attribute_Priority, Attribute_Range, Attribute_Range_Length, Attribute_Ref, Attribute_Result, Attribute_Round, Attribute_Safe_Emax, Attribute_Safe_First, Attribute_Safe_Large, Attribute_Safe_Last, Attribute_Safe_Small, Attribute_Scale, Attribute_Scaling, Attribute_Signed_Zeros, Attribute_Size, Attribute_Small, Attribute_Storage_Size, Attribute_Storage_Unit, Attribute_Stream_Size, Attribute_Tag, Attribute_Target_Name, Attribute_Terminated, Attribute_To_Address, Attribute_Type_Class, Attribute_Type_Key, Attribute_UET_Address, Attribute_Unbiased_Rounding, Attribute_Unchecked_Access, Attribute_Unconstrained_Array, Attribute_Universal_Literal_String, Attribute_Unrestricted_Access, Attribute_VADS_Size, Attribute_Val, Attribute_Valid, Attribute_Value_Size, Attribute_Version, Attribute_Wchar_T_Size, Attribute_Wide_Wide_Width, Attribute_Wide_Width, Attribute_Width, Attribute_Word_Size, -- Attributes designating renamable functions Attribute_Adjacent, Attribute_Ceiling, Attribute_Copy_Sign, Attribute_Floor, Attribute_Fraction, Attribute_From_Any, Attribute_Image, Attribute_Input, Attribute_Machine, Attribute_Max, Attribute_Min, Attribute_Model, Attribute_Pred, Attribute_Remainder, Attribute_Rounding, Attribute_Succ, Attribute_To_Any, Attribute_Truncation, Attribute_TypeCode, Attribute_Value, Attribute_Wide_Image, Attribute_Wide_Wide_Image, Attribute_Wide_Value, Attribute_Wide_Wide_Value, -- Attributes designating procedures Attribute_Output, Attribute_Read, Attribute_Write, -- Entity attributes (includes type attributes) Attribute_Elab_Body, Attribute_Elab_Spec, Attribute_Storage_Pool, -- Type attributes Attribute_Base, Attribute_Class, Attribute_Stub_Type); type Attribute_Class_Array is array (Attribute_Id) of Boolean; -- Type used to build attribute classification flag arrays ------------------------------------ -- Convention Name ID Definitions -- ------------------------------------ type Convention_Id is ( -- The native-to-Ada (non-foreign) conventions come first. These include -- the ones defined in the RM, plus Stubbed. Convention_Ada, Convention_Intrinsic, Convention_Entry, Convention_Protected, Convention_Stubbed, -- The remaining conventions are foreign language conventions Convention_Assembler, -- also Asm, Assembly Convention_C, -- also Default, External Convention_CIL, Convention_COBOL, Convention_CPP, Convention_Fortran, Convention_Java, Convention_Stdcall); -- also DLL, Win32 -- Note: Convention C_Pass_By_Copy is allowed only for record -- types (where it is treated like C except that the appropriate -- flag is set in the record type). Recognizing this convention -- is specially handled in Sem_Prag. for Convention_Id'Size use 8; -- Plenty of space for expansion subtype Foreign_Convention is Convention_Id range Convention_Assembler .. Convention_Id'Last; ----------------------------------- -- Locking Policy ID Definitions -- ----------------------------------- type Locking_Policy_Id is ( Locking_Policy_Inheritance_Locking, Locking_Policy_Ceiling_Locking); --------------------------- -- Pragma ID Definitions -- --------------------------- type Pragma_Id is ( -- Configuration pragmas -- Note: This list is in the GNAT users guide, so be sure that if any -- additions or deletions are made to the following list, they are -- properly reflected in the users guide. Pragma_Ada_83, Pragma_Ada_95, Pragma_Ada_05, Pragma_Ada_2005, Pragma_Ada_12, Pragma_Ada_2012, Pragma_Assertion_Policy, Pragma_Assume_No_Invalid_Values, Pragma_C_Pass_By_Copy, Pragma_Check_Name, Pragma_Check_Policy, Pragma_Compile_Time_Error, Pragma_Compile_Time_Warning, Pragma_Compiler_Unit, Pragma_Component_Alignment, Pragma_Convention_Identifier, Pragma_Debug_Policy, Pragma_Detect_Blocking, Pragma_Default_Storage_Pool, Pragma_Discard_Names, Pragma_Elaboration_Checks, Pragma_Eliminate, Pragma_Extend_System, Pragma_Extensions_Allowed, Pragma_External_Name_Casing, Pragma_Favor_Top_Level, Pragma_Float_Representation, Pragma_Implicit_Packing, Pragma_Initialize_Scalars, Pragma_Interrupt_State, Pragma_License, Pragma_Locking_Policy, Pragma_Long_Float, Pragma_No_Run_Time, Pragma_No_Strict_Aliasing, Pragma_Normalize_Scalars, Pragma_Optimize_Alignment, Pragma_Persistent_BSS, Pragma_Polling, Pragma_Priority_Specific_Dispatching, Pragma_Profile, Pragma_Profile_Warnings, Pragma_Propagate_Exceptions, Pragma_Queuing_Policy, Pragma_Ravenscar, Pragma_Restricted_Run_Time, Pragma_Restrictions, Pragma_Restriction_Warnings, Pragma_Reviewable, Pragma_Short_Circuit_And_Or, Pragma_Short_Descriptors, Pragma_Source_File_Name, Pragma_Source_File_Name_Project, Pragma_Style_Checks, Pragma_Suppress, Pragma_Suppress_Exception_Locations, Pragma_Task_Dispatching_Policy, Pragma_Universal_Data, Pragma_Unsuppress, Pragma_Use_VADS_Size, Pragma_Validity_Checks, Pragma_Warnings, Pragma_Wide_Character_Encoding, -- Remaining (non-configuration) pragmas Pragma_Abort_Defer, Pragma_All_Calls_Remote, Pragma_Annotate, Pragma_Assert, Pragma_Asynchronous, Pragma_Atomic, Pragma_Atomic_Components, Pragma_Attach_Handler, Pragma_Check, Pragma_CIL_Constructor, Pragma_Comment, Pragma_Common_Object, Pragma_Complete_Representation, Pragma_Complex_Representation, Pragma_Controlled, Pragma_Convention, Pragma_CPP_Class, Pragma_CPP_Constructor, Pragma_CPP_Virtual, Pragma_CPP_Vtable, Pragma_CPU, Pragma_Debug, Pragma_Dimension, Pragma_Elaborate, Pragma_Elaborate_All, Pragma_Elaborate_Body, Pragma_Export, Pragma_Export_Exception, Pragma_Export_Function, Pragma_Export_Object, Pragma_Export_Procedure, Pragma_Export_Value, Pragma_Export_Valued_Procedure, Pragma_External, Pragma_Finalize_Storage_Only, Pragma_Ident, Pragma_Implemented, Pragma_Import, Pragma_Import_Exception, Pragma_Import_Function, Pragma_Import_Object, Pragma_Import_Procedure, Pragma_Import_Valued_Procedure, Pragma_Independent, Pragma_Independent_Components, Pragma_Inline, Pragma_Inline_Always, Pragma_Inline_Generic, Pragma_Inspection_Point, Pragma_Interface_Name, Pragma_Interrupt_Handler, Pragma_Interrupt_Priority, Pragma_Invariant, Pragma_Java_Constructor, Pragma_Java_Interface, Pragma_Keep_Names, Pragma_Link_With, Pragma_Linker_Alias, Pragma_Linker_Constructor, Pragma_Linker_Destructor, Pragma_Linker_Options, Pragma_Linker_Section, Pragma_List, Pragma_Machine_Attribute, Pragma_Main, Pragma_Main_Storage, Pragma_Memory_Size, Pragma_No_Body, Pragma_No_Return, Pragma_Obsolescent, Pragma_Optimize, Pragma_Ordered, Pragma_Pack, Pragma_Page, Pragma_Passive, Pragma_Postcondition, Pragma_Precondition, Pragma_Predicate, Pragma_Preelaborable_Initialization, Pragma_Preelaborate, Pragma_Preelaborate_05, Pragma_Psect_Object, Pragma_Pure, Pragma_Pure_05, Pragma_Pure_Function, Pragma_Relative_Deadline, Pragma_Remote_Call_Interface, Pragma_Remote_Types, Pragma_Share_Generic, Pragma_Shared, Pragma_Shared_Passive, Pragma_Source_Reference, Pragma_Static_Elaboration_Desired, Pragma_Stream_Convert, Pragma_Subtitle, Pragma_Suppress_All, Pragma_Suppress_Debug_Info, Pragma_Suppress_Initialization, Pragma_System_Name, Pragma_Task_Info, Pragma_Task_Name, Pragma_Task_Storage, Pragma_Thread_Local_Storage, Pragma_Time_Slice, Pragma_Title, Pragma_Unchecked_Union, Pragma_Unimplemented_Unit, Pragma_Universal_Aliasing, Pragma_Unmodified, Pragma_Unreferenced, Pragma_Unreferenced_Objects, Pragma_Unreserve_All_Interrupts, Pragma_Volatile, Pragma_Volatile_Components, Pragma_Weak_External, -- The following pragmas are on their own, out of order, because of the -- special processing required to deal with the fact that their names -- match existing attribute names. Pragma_AST_Entry, Pragma_Fast_Math, Pragma_Interface, Pragma_Priority, Pragma_Storage_Size, Pragma_Storage_Unit, -- The value to represent an unknown or unrecognized pragma Unknown_Pragma); ----------------------------------- -- Queuing Policy ID definitions -- ----------------------------------- type Queuing_Policy_Id is ( Queuing_Policy_FIFO_Queuing, Queuing_Policy_Priority_Queuing); -------------------------------------------- -- Task Dispatching Policy ID definitions -- -------------------------------------------- type Task_Dispatching_Policy_Id is ( Task_Dispatching_FIFO_Within_Priorities); -- Id values used to identify task dispatching policies ----------------- -- Subprograms -- ----------------- procedure Initialize; -- Called to initialize the preset names in the names table function Is_Attribute_Name (N : Name_Id) return Boolean; -- Test to see if the name N is the name of a recognized attribute function Is_Entity_Attribute_Name (N : Name_Id) return Boolean; -- Test to see if the name N is the name of a recognized entity attribute, -- i.e. an attribute reference that returns an entity. function Is_Procedure_Attribute_Name (N : Name_Id) return Boolean; -- Test to see if the name N is the name of a recognized attribute that -- designates a procedure (and can therefore appear as a statement). function Is_Function_Attribute_Name (N : Name_Id) return Boolean; -- Test to see if the name N is the name of a recognized attribute -- that designates a renameable function, and can therefore appear in -- a renaming statement. Note that not all attributes designating -- functions are renamable, in particular, those returning a universal -- value cannot be renamed. function Is_Type_Attribute_Name (N : Name_Id) return Boolean; -- Test to see if the name N is the name of a recognized type attribute, -- i.e. an attribute reference that returns a type function Is_Convention_Name (N : Name_Id) return Boolean; -- Test to see if the name N is the name of one of the recognized -- language conventions, as required by pragma Convention, Import, -- Export, Interface. Returns True if so. Also returns True for a -- name that has been specified by a Convention_Identifier pragma. -- If neither case holds, returns False. function Is_Keyword_Name (N : Name_Id) return Boolean; -- Test to see if the name N is one of the (reserved) keyword names. This -- includes all the keywords defined in the Ada standard (taking into -- effect the Ada version). It also includes additional keywords in -- contexts where additional keywords have been added. For example, in the -- context of parsing project files, keywords such as PROJECT are included. function Is_Locking_Policy_Name (N : Name_Id) return Boolean; -- Test to see if the name N is the name of a recognized locking policy function Is_Operator_Symbol_Name (N : Name_Id) return Boolean; -- Test to see if the name N is the name of an operator symbol function Is_Pragma_Name (N : Name_Id) return Boolean; -- Test to see if the name N is the name of a recognized pragma. Note that -- pragmas AST_Entry, Fast_Math, Priority, Storage_Size, and Storage_Unit -- are recognized as pragmas by this function even though their names are -- separate from the other pragma names. For this reason, clients should -- always use this function, rather than do range tests on Name_Id values. function Is_Configuration_Pragma_Name (N : Name_Id) return Boolean; -- Test to see if the name N is the name of a recognized configuration -- pragma. Note that pragma Fast_Math is recognized as a configuration -- pragma by this function even though its name is separate from other -- configuration pragma names. For this reason, clients should always -- use this function, rather than do range tests on Name_Id values. function Is_Queuing_Policy_Name (N : Name_Id) return Boolean; -- Test to see if the name N is the name of a recognized queuing policy function Is_Task_Dispatching_Policy_Name (N : Name_Id) return Boolean; -- Test to see if the name N is the name of a recognized task -- dispatching policy. function Get_Attribute_Id (N : Name_Id) return Attribute_Id; -- Returns Id of attribute corresponding to given name. It is an error to -- call this function with a name that is not the name of a attribute. function Get_Convention_Id (N : Name_Id) return Convention_Id; -- Returns Id of language convention corresponding to given name. It is -- an error to call this function with a name that is not the name of a -- convention, or one that has been previously recorded using a call to -- Record_Convention_Identifier. function Get_Convention_Name (C : Convention_Id) return Name_Id; -- Returns the name of language convention corresponding to given -- convention id. function Get_Locking_Policy_Id (N : Name_Id) return Locking_Policy_Id; -- Returns Id of locking policy corresponding to given name. It is an error -- to call this function with a name that is not the name of a check. function Get_Pragma_Id (N : Name_Id) return Pragma_Id; -- Returns Id of pragma corresponding to given name. Returns Unknown_Pragma -- if N is not a name of a known (Ada defined or GNAT-specific) pragma. -- Note that the function also works correctly for names of pragmas that -- are not included in the main list of pragma Names (AST_Entry, Priority, -- Storage_Size, and Storage_Unit (e.g. Name_Storage_Size returns -- Pragma_Storage_Size). function Get_Queuing_Policy_Id (N : Name_Id) return Queuing_Policy_Id; -- Returns Id of queuing policy corresponding to given name. It is an error -- to call this function with a name that is not the name of a check. function Get_Task_Dispatching_Policy_Id (N : Name_Id) return Task_Dispatching_Policy_Id; -- Returns Id of task dispatching policy corresponding to given name. It -- is an error to call this function with a name that is not the name of -- a defined check. procedure Record_Convention_Identifier (Id : Name_Id; Convention : Convention_Id); -- A call to this procedure, resulting from an occurrence of a pragma -- Convention_Identifier, records that from now on an occurrence of Id -- will be recognized as a name for the specified convention. private pragma Inline (Is_Attribute_Name); pragma Inline (Is_Entity_Attribute_Name); pragma Inline (Is_Type_Attribute_Name); pragma Inline (Is_Locking_Policy_Name); pragma Inline (Is_Operator_Symbol_Name); pragma Inline (Is_Queuing_Policy_Name); pragma Inline (Is_Pragma_Name); pragma Inline (Is_Task_Dispatching_Policy_Name); end Snames;
with ada.Tags; package body lace.Response is function Name (Self : in Item) return String is begin return ada.Tags.expanded_Name (Item'Class (Self)'Tag); end Name; end lace.Response;
with Ada.Text_Io, Ada.Integer_Text_Io, Datos; with Crear_Lista_Vacia, Ins, Esc, Posicion; use Datos; use Ada.Text_Io, Ada.Integer_Text_Io; procedure Prueba_Posicion is Lis : Lista; -- variable del programa principal procedure Pedir_Return is begin Put_Line("pulsa return para continuar "); Skip_Line; New_Line(3); end Pedir_Return; begin -- programa principal -- Casos de prueba: -- 1. Lista vacia. Resultado: cero -- 2. Lista no vacia. Lista de un elemento -- 2.1. El elemento buscado si esta -- 2.2. El elemento buscado no esta -- 3. Lista no vacia. Varios elementos -- 3.1. El buscado al comienzo -- 3.2. El buscado en medio -- 3.3. El buscado al final -- 3.4. El buscado no esta Put_Line("Programa de prueba: "); Put_Line("*********"); Crear_Lista_Vacia(Lis); Put_Line("Caso de prueba 1: Lista vacia "); Put_Line("Llamada a : Posicion(Lis, 4)"); Put_Line("Ahora deberia escribir cero: "); Put(Posicion(Lis, 4)); New_Line; New_Line; Pedir_Return; Crear_Lista_Vacia(Lis); Ins(Lis, 4); Put_Line("Caso de prueba 2.1: lista de un solo elemento. El elemento buscado si esta "); Put_Line("La lista inicial contiene "); Esc(Lis); Put_Line("Llamada a : Posicion(Lis, 4)"); Put_Line("Ahora deberia escribir 1: "); Put(Posicion(Lis, 4)); New_Line; New_Line; Pedir_Return; Crear_Lista_Vacia(Lis); Ins(Lis, 4); Put_Line("Caso de prueba 2.2: lista de un solo elemento. El elemento buscado no esta "); Put_Line("La lista inicial contiene "); Esc(Lis); Put_Line("Llamada a : Posicion(Lis, 6)"); Put_Line("Ahora deberia escribir cero: "); Put(Posicion(Lis, 6)); New_Line; New_Line; Pedir_Return; Crear_Lista_Vacia(Lis); Ins(Lis, 10); Ins(Lis, 5); Ins(Lis, 8); Ins(Lis, 12); Put_Line("Caso de prueba 3.1: lista de varios elementos. El elemento buscado esta al comienzo"); Put_Line("La lista inicial contiene "); Esc(Lis); Put_Line("Llamada a : Posicion(Lis, 12)"); Put_Line("Ahora deberia escribir 1: "); Put(Posicion(Lis, 12)); New_Line; New_Line; Pedir_Return; Put_Line("Caso de prueba 3.2: lista de varios elementos. El elemento buscado esta en medio"); Put_Line("La lista inicial contiene "); Esc(Lis); Put_Line("Llamada a : Posicion(Lis, 5)"); Put_Line("Ahora deberia escribir 3: "); Put(Posicion(Lis, 5)); New_Line; New_Line; Pedir_Return; Put_Line("Caso de prueba 3.3: lista de varios elementos. El elemento buscado esta al final"); Put_Line("La lista inicial contiene "); Esc(Lis); Put_Line("Llamada a : Posicion(Lis, 10)"); Put_Line("Ahora deberia escribir 4: "); Put(Posicion(Lis, 10)); New_Line; New_Line; Pedir_Return; Put_Line("Caso de prueba 3.4: lista de varios elementos. El elemento buscado no esta "); Put_Line("La lista inicial contiene "); Esc(Lis); Put_Line("Llamada a : Posicion(Lis, 20)"); Put_Line("Ahora deberia escribir cero: "); Put(Posicion(Lis, 20)); New_Line; New_Line; Pedir_Return; Put_Line("Se acabo la prueba. Agurtz "); end Prueba_Posicion;
-- -- Copyright (C) 2016, AdaCore -- -- This spec has been automatically generated from STM32F429x.svd pragma Ada_2012; with Interfaces.Bit_Types; with System; package Interfaces.STM32.PWR with SPARK_Mode => On is pragma Preelaborate; pragma No_Elaboration_Code_All; --------------- -- Registers -- --------------- ----------------- -- CR_Register -- ----------------- subtype CR_LPDS_Field is Interfaces.Bit_Types.Bit; subtype CR_PDDS_Field is Interfaces.Bit_Types.Bit; subtype CR_CWUF_Field is Interfaces.Bit_Types.Bit; subtype CR_CSBF_Field is Interfaces.Bit_Types.Bit; subtype CR_PVDE_Field is Interfaces.Bit_Types.Bit; subtype CR_PLS_Field is Interfaces.Bit_Types.UInt3; subtype CR_DBP_Field is Interfaces.Bit_Types.Bit; subtype CR_FPDS_Field is Interfaces.Bit_Types.Bit; subtype CR_LPLVDS_Field is Interfaces.Bit_Types.Bit; subtype CR_MRLVDS_Field is Interfaces.Bit_Types.Bit; subtype CR_ADCDC1_Field is Interfaces.Bit_Types.Bit; subtype CR_VOS_Field is Interfaces.Bit_Types.UInt2; subtype CR_ODEN_Field is Interfaces.Bit_Types.Bit; subtype CR_ODSWEN_Field is Interfaces.Bit_Types.Bit; subtype CR_UDEN_Field is Interfaces.Bit_Types.UInt2; -- power control register type CR_Register is record -- Low-power deep sleep LPDS : CR_LPDS_Field := 16#0#; -- Power down deepsleep PDDS : CR_PDDS_Field := 16#0#; -- Clear wakeup flag CWUF : CR_CWUF_Field := 16#0#; -- Clear standby flag CSBF : CR_CSBF_Field := 16#0#; -- Power voltage detector enable PVDE : CR_PVDE_Field := 16#0#; -- PVD level selection PLS : CR_PLS_Field := 16#0#; -- Disable backup domain write protection DBP : CR_DBP_Field := 16#0#; -- Flash power down in Stop mode FPDS : CR_FPDS_Field := 16#0#; -- Low-Power Regulator Low Voltage in deepsleep LPLVDS : CR_LPLVDS_Field := 16#0#; -- Main regulator low voltage in deepsleep mode MRLVDS : CR_MRLVDS_Field := 16#0#; -- unspecified Reserved_12_12 : Interfaces.Bit_Types.Bit := 16#0#; -- ADCDC1 ADCDC1 : CR_ADCDC1_Field := 16#0#; -- Regulator voltage scaling output selection VOS : CR_VOS_Field := 16#3#; -- Over-drive enable ODEN : CR_ODEN_Field := 16#0#; -- Over-drive switching enabled ODSWEN : CR_ODSWEN_Field := 16#0#; -- Under-drive enable in stop mode UDEN : CR_UDEN_Field := 16#0#; -- unspecified Reserved_20_31 : Interfaces.Bit_Types.UInt12 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for CR_Register use record LPDS at 0 range 0 .. 0; PDDS at 0 range 1 .. 1; CWUF at 0 range 2 .. 2; CSBF at 0 range 3 .. 3; PVDE at 0 range 4 .. 4; PLS at 0 range 5 .. 7; DBP at 0 range 8 .. 8; FPDS at 0 range 9 .. 9; LPLVDS at 0 range 10 .. 10; MRLVDS at 0 range 11 .. 11; Reserved_12_12 at 0 range 12 .. 12; ADCDC1 at 0 range 13 .. 13; VOS at 0 range 14 .. 15; ODEN at 0 range 16 .. 16; ODSWEN at 0 range 17 .. 17; UDEN at 0 range 18 .. 19; Reserved_20_31 at 0 range 20 .. 31; end record; ------------------ -- CSR_Register -- ------------------ subtype CSR_WUF_Field is Interfaces.Bit_Types.Bit; subtype CSR_SBF_Field is Interfaces.Bit_Types.Bit; subtype CSR_PVDO_Field is Interfaces.Bit_Types.Bit; subtype CSR_BRR_Field is Interfaces.Bit_Types.Bit; subtype CSR_EWUP_Field is Interfaces.Bit_Types.Bit; subtype CSR_BRE_Field is Interfaces.Bit_Types.Bit; subtype CSR_VOSRDY_Field is Interfaces.Bit_Types.Bit; subtype CSR_ODRDY_Field is Interfaces.Bit_Types.Bit; subtype CSR_ODSWRDY_Field is Interfaces.Bit_Types.Bit; subtype CSR_UDRDY_Field is Interfaces.Bit_Types.UInt2; -- power control/status register type CSR_Register is record -- Read-only. Wakeup flag WUF : CSR_WUF_Field := 16#0#; -- Read-only. Standby flag SBF : CSR_SBF_Field := 16#0#; -- Read-only. PVD output PVDO : CSR_PVDO_Field := 16#0#; -- Read-only. Backup regulator ready BRR : CSR_BRR_Field := 16#0#; -- unspecified Reserved_4_7 : Interfaces.Bit_Types.UInt4 := 16#0#; -- Enable WKUP pin EWUP : CSR_EWUP_Field := 16#0#; -- Backup regulator enable BRE : CSR_BRE_Field := 16#0#; -- unspecified Reserved_10_13 : Interfaces.Bit_Types.UInt4 := 16#0#; -- Regulator voltage scaling output selection ready bit VOSRDY : CSR_VOSRDY_Field := 16#0#; -- unspecified Reserved_15_15 : Interfaces.Bit_Types.Bit := 16#0#; -- Read-only. Over-drive mode ready ODRDY : CSR_ODRDY_Field := 16#0#; -- Read-only. Over-drive mode switching ready ODSWRDY : CSR_ODSWRDY_Field := 16#0#; -- Under-drive ready flag UDRDY : CSR_UDRDY_Field := 16#0#; -- unspecified Reserved_20_31 : Interfaces.Bit_Types.UInt12 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for CSR_Register use record WUF at 0 range 0 .. 0; SBF at 0 range 1 .. 1; PVDO at 0 range 2 .. 2; BRR at 0 range 3 .. 3; Reserved_4_7 at 0 range 4 .. 7; EWUP at 0 range 8 .. 8; BRE at 0 range 9 .. 9; Reserved_10_13 at 0 range 10 .. 13; VOSRDY at 0 range 14 .. 14; Reserved_15_15 at 0 range 15 .. 15; ODRDY at 0 range 16 .. 16; ODSWRDY at 0 range 17 .. 17; UDRDY at 0 range 18 .. 19; Reserved_20_31 at 0 range 20 .. 31; end record; ----------------- -- Peripherals -- ----------------- -- Power control type PWR_Peripheral is record -- power control register CR : CR_Register; -- power control/status register CSR : CSR_Register; end record with Volatile; for PWR_Peripheral use record CR at 0 range 0 .. 31; CSR at 4 range 0 .. 31; end record; -- Power control PWR_Periph : aliased PWR_Peripheral with Import, Address => PWR_Base; end Interfaces.STM32.PWR;
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Ada Modeling Framework -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2011-2012, Vadim Godunko <vgodunko@gmail.com> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ -- This file is generated, don't edit it. ------------------------------------------------------------------------------ with AMF.Elements.Generic_Hash; function AMF.UML.Reclassify_Object_Actions.Hash is new AMF.Elements.Generic_Hash (UML_Reclassify_Object_Action, UML_Reclassify_Object_Action_Access);
-- { dg-do compile } package Access2 is type Priv; type Inc is access Priv; type Priv is access Inc; C : constant Priv := new Inc; end Access2;
------------------------------------------------------------------------------- -- Copyright (c) 2019, Daniel King -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions are met: -- * Redistributions of source code must retain the above copyright -- notice, this list of conditions and the following disclaimer. -- * Redistributions in binary form must reproduce the above copyright -- notice, this list of conditions and the following disclaimer in the -- documentation and/or other materials provided with the distribution. -- * The name of the copyright holder may not be used to endorse or promote -- Products derived from this software without specific prior written -- permission. -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -- ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY -- DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -- (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -- LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -- ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF -- THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ------------------------------------------------------------------------------- with Keccak.Types; -- @summary -- Serial fallback implementation of the parallel permutation API. -- -- @description -- This package implements subprograms for a parallel permutation API, -- but executes the permutation serially. -- -- For example, this package can be used to simulate Keccak-p[1600,24]x8 -- by serially invoking 8 separate instances of Keccak-p[1600,24] serially. -- -- @group Parallel Keccak-f generic type Permutation_State is private; with procedure Init (A : out Permutation_State); with procedure XOR_Bits_Into_State (S : in out Permutation_State; Data : in Types.Byte_Array; Bit_Len : in Natural); with procedure Extract_Bytes (A : in Permutation_State; Data : out Types.Byte_Array); State_Size_Bits : Positive; -- State size of the permutation in bits. -- -- E.g. for Keccak-f[1600] set State_Size_Bits to 1600. Parallelism : Positive; -- Specifies the number of simulated parallel instances. package Keccak.Generic_Parallel_Permutation_Serial_Fallback is Num_Parallel_Instances : constant Positive := Parallelism; type Permutation_State_Array is array (0 .. Parallelism - 1) of Permutation_State; -- Parallel_State is not declared as a private type as a workaround for a -- bug in GNATprove during flow analysis of instantiations of the -- generic Permute_All procedure. type Parallel_State is record States : Permutation_State_Array; end record; procedure Init (S : out Parallel_State) with Global => null; generic with procedure Permute (A : in out Permutation_State); procedure Permute_All (S : in out Parallel_State) with Global => null; procedure XOR_Bits_Into_State_Separate (S : in out Parallel_State; Data : in Types.Byte_Array; Data_Offset : in Natural; Bit_Len : in Natural) with Global => null, Pre => (Data'Length / Num_Parallel_Instances <= Natural'Last / 8 and then Data'Length mod Num_Parallel_Instances = 0 and then Data_Offset <= (Data'Length / Num_Parallel_Instances) and then Bit_Len <= ((Data'Length / Num_Parallel_Instances) - Data_Offset) * 8 and then Bit_Len <= State_Size_Bits); procedure XOR_Bits_Into_State_All (S : in out Parallel_State; Data : in Types.Byte_Array; Bit_Len : in Natural) with Global => null, Depends => (S =>+ (Data, Bit_Len)), Pre => (Data'Length <= Natural'Last / 8 and then Bit_Len <= Data'Length * 8 and then Bit_Len <= State_Size_Bits); procedure Extract_Bytes (S : in Parallel_State; Data : in out Types.Byte_Array; Data_Offset : in Natural; Byte_Len : in Natural) with Global => null, Pre => (Data'Length mod Num_Parallel_Instances = 0 and then Data_Offset <= Data'Length / Num_Parallel_Instances and then Byte_Len <= (Data'Length / Num_Parallel_Instances) - Data_Offset and then Byte_Len <= State_Size_Bits / 8); end Keccak.Generic_Parallel_Permutation_Serial_Fallback;
-- Copyright (c) 2020 Raspberry Pi (Trading) Ltd. -- -- SPDX-License-Identifier: BSD-3-Clause -- This spec has been automatically generated from rp2040.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package RP_SVD.RESETS is pragma Preelaborate; --------------- -- Registers -- --------------- -- RESET_i2c array type RESET_i2c_Field_Array is array (0 .. 1) of Boolean with Component_Size => 1, Size => 2; -- Type definition for RESET_i2c type RESET_i2c_Field (As_Array : Boolean := False) is record case As_Array is when False => -- i2c as a value Val : HAL.UInt2; when True => -- i2c as an array Arr : RESET_i2c_Field_Array; end case; end record with Unchecked_Union, Size => 2; for RESET_i2c_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- RESET_pio array type RESET_pio_Field_Array is array (0 .. 1) of Boolean with Component_Size => 1, Size => 2; -- Type definition for RESET_pio type RESET_pio_Field (As_Array : Boolean := False) is record case As_Array is when False => -- pio as a value Val : HAL.UInt2; when True => -- pio as an array Arr : RESET_pio_Field_Array; end case; end record with Unchecked_Union, Size => 2; for RESET_pio_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- RESET_spi array type RESET_spi_Field_Array is array (0 .. 1) of Boolean with Component_Size => 1, Size => 2; -- Type definition for RESET_spi type RESET_spi_Field (As_Array : Boolean := False) is record case As_Array is when False => -- spi as a value Val : HAL.UInt2; when True => -- spi as an array Arr : RESET_spi_Field_Array; end case; end record with Unchecked_Union, Size => 2; for RESET_spi_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- RESET_uart array type RESET_uart_Field_Array is array (0 .. 1) of Boolean with Component_Size => 1, Size => 2; -- Type definition for RESET_uart type RESET_uart_Field (As_Array : Boolean := False) is record case As_Array is when False => -- uart as a value Val : HAL.UInt2; when True => -- uart as an array Arr : RESET_uart_Field_Array; end case; end record with Unchecked_Union, Size => 2; for RESET_uart_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- Reset control. If a bit is set it means the peripheral is in reset. 0 -- means the peripheral's reset is deasserted. type RESET_Register is record adc : Boolean := True; busctrl : Boolean := True; dma : Boolean := True; i2c : RESET_i2c_Field := (As_Array => False, Val => 16#1#); io_bank0 : Boolean := True; io_qspi : Boolean := True; jtag : Boolean := True; pads_bank0 : Boolean := True; pads_qspi : Boolean := True; pio : RESET_pio_Field := (As_Array => False, Val => 16#1#); pll_sys : Boolean := True; pll_usb : Boolean := True; pwm : Boolean := True; rtc : Boolean := True; spi : RESET_spi_Field := (As_Array => False, Val => 16#1#); syscfg : Boolean := True; sysinfo : Boolean := True; tbman : Boolean := True; timer : Boolean := True; uart : RESET_uart_Field := (As_Array => False, Val => 16#1#); usbctrl : Boolean := True; -- unspecified Reserved_25_31 : HAL.UInt7 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for RESET_Register use record adc at 0 range 0 .. 0; busctrl at 0 range 1 .. 1; dma at 0 range 2 .. 2; i2c at 0 range 3 .. 4; io_bank0 at 0 range 5 .. 5; io_qspi at 0 range 6 .. 6; jtag at 0 range 7 .. 7; pads_bank0 at 0 range 8 .. 8; pads_qspi at 0 range 9 .. 9; pio at 0 range 10 .. 11; pll_sys at 0 range 12 .. 12; pll_usb at 0 range 13 .. 13; pwm at 0 range 14 .. 14; rtc at 0 range 15 .. 15; spi at 0 range 16 .. 17; syscfg at 0 range 18 .. 18; sysinfo at 0 range 19 .. 19; tbman at 0 range 20 .. 20; timer at 0 range 21 .. 21; uart at 0 range 22 .. 23; usbctrl at 0 range 24 .. 24; Reserved_25_31 at 0 range 25 .. 31; end record; -- WDSEL_i2c array type WDSEL_i2c_Field_Array is array (0 .. 1) of Boolean with Component_Size => 1, Size => 2; -- Type definition for WDSEL_i2c type WDSEL_i2c_Field (As_Array : Boolean := False) is record case As_Array is when False => -- i2c as a value Val : HAL.UInt2; when True => -- i2c as an array Arr : WDSEL_i2c_Field_Array; end case; end record with Unchecked_Union, Size => 2; for WDSEL_i2c_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- WDSEL_pio array type WDSEL_pio_Field_Array is array (0 .. 1) of Boolean with Component_Size => 1, Size => 2; -- Type definition for WDSEL_pio type WDSEL_pio_Field (As_Array : Boolean := False) is record case As_Array is when False => -- pio as a value Val : HAL.UInt2; when True => -- pio as an array Arr : WDSEL_pio_Field_Array; end case; end record with Unchecked_Union, Size => 2; for WDSEL_pio_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- WDSEL_spi array type WDSEL_spi_Field_Array is array (0 .. 1) of Boolean with Component_Size => 1, Size => 2; -- Type definition for WDSEL_spi type WDSEL_spi_Field (As_Array : Boolean := False) is record case As_Array is when False => -- spi as a value Val : HAL.UInt2; when True => -- spi as an array Arr : WDSEL_spi_Field_Array; end case; end record with Unchecked_Union, Size => 2; for WDSEL_spi_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- WDSEL_uart array type WDSEL_uart_Field_Array is array (0 .. 1) of Boolean with Component_Size => 1, Size => 2; -- Type definition for WDSEL_uart type WDSEL_uart_Field (As_Array : Boolean := False) is record case As_Array is when False => -- uart as a value Val : HAL.UInt2; when True => -- uart as an array Arr : WDSEL_uart_Field_Array; end case; end record with Unchecked_Union, Size => 2; for WDSEL_uart_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- Watchdog select. If a bit is set then the watchdog will reset this -- peripheral when the watchdog fires. type WDSEL_Register is record adc : Boolean := False; busctrl : Boolean := False; dma : Boolean := False; i2c : WDSEL_i2c_Field := (As_Array => False, Val => 16#0#); io_bank0 : Boolean := False; io_qspi : Boolean := False; jtag : Boolean := False; pads_bank0 : Boolean := False; pads_qspi : Boolean := False; pio : WDSEL_pio_Field := (As_Array => False, Val => 16#0#); pll_sys : Boolean := False; pll_usb : Boolean := False; pwm : Boolean := False; rtc : Boolean := False; spi : WDSEL_spi_Field := (As_Array => False, Val => 16#0#); syscfg : Boolean := False; sysinfo : Boolean := False; tbman : Boolean := False; timer : Boolean := False; uart : WDSEL_uart_Field := (As_Array => False, Val => 16#0#); usbctrl : Boolean := False; -- unspecified Reserved_25_31 : HAL.UInt7 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for WDSEL_Register use record adc at 0 range 0 .. 0; busctrl at 0 range 1 .. 1; dma at 0 range 2 .. 2; i2c at 0 range 3 .. 4; io_bank0 at 0 range 5 .. 5; io_qspi at 0 range 6 .. 6; jtag at 0 range 7 .. 7; pads_bank0 at 0 range 8 .. 8; pads_qspi at 0 range 9 .. 9; pio at 0 range 10 .. 11; pll_sys at 0 range 12 .. 12; pll_usb at 0 range 13 .. 13; pwm at 0 range 14 .. 14; rtc at 0 range 15 .. 15; spi at 0 range 16 .. 17; syscfg at 0 range 18 .. 18; sysinfo at 0 range 19 .. 19; tbman at 0 range 20 .. 20; timer at 0 range 21 .. 21; uart at 0 range 22 .. 23; usbctrl at 0 range 24 .. 24; Reserved_25_31 at 0 range 25 .. 31; end record; -- RESET_DONE_i2c array type RESET_DONE_i2c_Field_Array is array (0 .. 1) of Boolean with Component_Size => 1, Size => 2; -- Type definition for RESET_DONE_i2c type RESET_DONE_i2c_Field (As_Array : Boolean := False) is record case As_Array is when False => -- i2c as a value Val : HAL.UInt2; when True => -- i2c as an array Arr : RESET_DONE_i2c_Field_Array; end case; end record with Unchecked_Union, Size => 2; for RESET_DONE_i2c_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- RESET_DONE_pio array type RESET_DONE_pio_Field_Array is array (0 .. 1) of Boolean with Component_Size => 1, Size => 2; -- Type definition for RESET_DONE_pio type RESET_DONE_pio_Field (As_Array : Boolean := False) is record case As_Array is when False => -- pio as a value Val : HAL.UInt2; when True => -- pio as an array Arr : RESET_DONE_pio_Field_Array; end case; end record with Unchecked_Union, Size => 2; for RESET_DONE_pio_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- RESET_DONE_spi array type RESET_DONE_spi_Field_Array is array (0 .. 1) of Boolean with Component_Size => 1, Size => 2; -- Type definition for RESET_DONE_spi type RESET_DONE_spi_Field (As_Array : Boolean := False) is record case As_Array is when False => -- spi as a value Val : HAL.UInt2; when True => -- spi as an array Arr : RESET_DONE_spi_Field_Array; end case; end record with Unchecked_Union, Size => 2; for RESET_DONE_spi_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- RESET_DONE_uart array type RESET_DONE_uart_Field_Array is array (0 .. 1) of Boolean with Component_Size => 1, Size => 2; -- Type definition for RESET_DONE_uart type RESET_DONE_uart_Field (As_Array : Boolean := False) is record case As_Array is when False => -- uart as a value Val : HAL.UInt2; when True => -- uart as an array Arr : RESET_DONE_uart_Field_Array; end case; end record with Unchecked_Union, Size => 2; for RESET_DONE_uart_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- Reset done. If a bit is set then a reset done signal has been returned -- by the peripheral. This indicates that the peripheral's registers are -- ready to be accessed. type RESET_DONE_Register is record -- Read-only. adc : Boolean; -- Read-only. busctrl : Boolean; -- Read-only. dma : Boolean; -- Read-only. i2c : RESET_DONE_i2c_Field; -- Read-only. io_bank0 : Boolean; -- Read-only. io_qspi : Boolean; -- Read-only. jtag : Boolean; -- Read-only. pads_bank0 : Boolean; -- Read-only. pads_qspi : Boolean; -- Read-only. pio : RESET_DONE_pio_Field; -- Read-only. pll_sys : Boolean; -- Read-only. pll_usb : Boolean; -- Read-only. pwm : Boolean; -- Read-only. rtc : Boolean; -- Read-only. spi : RESET_DONE_spi_Field; -- Read-only. syscfg : Boolean; -- Read-only. sysinfo : Boolean; -- Read-only. tbman : Boolean; -- Read-only. timer : Boolean; -- Read-only. uart : RESET_DONE_uart_Field; -- Read-only. usbctrl : Boolean; -- unspecified Reserved_25_31 : HAL.UInt7; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for RESET_DONE_Register use record adc at 0 range 0 .. 0; busctrl at 0 range 1 .. 1; dma at 0 range 2 .. 2; i2c at 0 range 3 .. 4; io_bank0 at 0 range 5 .. 5; io_qspi at 0 range 6 .. 6; jtag at 0 range 7 .. 7; pads_bank0 at 0 range 8 .. 8; pads_qspi at 0 range 9 .. 9; pio at 0 range 10 .. 11; pll_sys at 0 range 12 .. 12; pll_usb at 0 range 13 .. 13; pwm at 0 range 14 .. 14; rtc at 0 range 15 .. 15; spi at 0 range 16 .. 17; syscfg at 0 range 18 .. 18; sysinfo at 0 range 19 .. 19; tbman at 0 range 20 .. 20; timer at 0 range 21 .. 21; uart at 0 range 22 .. 23; usbctrl at 0 range 24 .. 24; Reserved_25_31 at 0 range 25 .. 31; end record; ----------------- -- Peripherals -- ----------------- type RESETS_Peripheral is record -- Reset control. If a bit is set it means the peripheral is in reset. 0 -- means the peripheral's reset is deasserted. RESET : aliased RESET_Register; -- Watchdog select. If a bit is set then the watchdog will reset this -- peripheral when the watchdog fires. WDSEL : aliased WDSEL_Register; -- Reset done. If a bit is set then a reset done signal has been -- returned by the peripheral. This indicates that the peripheral's -- registers are ready to be accessed. RESET_DONE : aliased RESET_DONE_Register; end record with Volatile; for RESETS_Peripheral use record RESET at 16#0# range 0 .. 31; WDSEL at 16#4# range 0 .. 31; RESET_DONE at 16#8# range 0 .. 31; end record; RESETS_Periph : aliased RESETS_Peripheral with Import, Address => RESETS_Base; end RP_SVD.RESETS;
-- This code is from Rosettacode.org -- http://rosettacode.org/wiki/FizzBuzz -- This program will run fizz buzz 100 times with if-else strategy. with Ada.Text_IO; use Ada.Text_IO; procedure Fizzbuzz is begin for I in 1..100 loop if I mod 15 = 0 then Put_Line("FizzBuzz"); elsif I mod 5 = 0 then Put_Line("Buzz"); elsif I mod 3 = 0 then Put_Line("Fizz"); else Put_Line(Integer'Image(I)); end if; end loop; end Fizzbuzz;
------------------------------------------------------------------------------ -- -- -- Hardware Abstraction Layer for STM32 Targets -- -- -- -- Copyright (C) 2014, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- 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 provides Reset and Clock Control definitions for the STM32F4 -- (ARM Cortex M4F) microcontrollers from ST Microelectronics. pragma Restrictions (No_Elaboration_Code); with System; package STM32F4.RCC is type RCC_System_Clocks is record SYSCLK : Word; HCLK : Word; PCLK1 : Word; PCLK2 : Word; TIMCLK1 : Word; TIMCLK2 : Word; end record; function System_Clock_Frequencies return RCC_System_Clocks; procedure Set_PLLSAI_Factors (LCD : Bits_3; SAI1 : Bits_4; VCO : Bits_9; DivR : Bits_2); procedure Enable_PLLSAI; procedure GPIOA_Clock_Enable with Inline; procedure GPIOB_Clock_Enable with Inline; procedure GPIOC_Clock_Enable with Inline; procedure GPIOD_Clock_Enable with Inline; procedure GPIOE_Clock_Enable with Inline; procedure GPIOF_Clock_Enable with Inline; procedure GPIOG_Clock_Enable with Inline; procedure GPIOH_Clock_Enable with Inline; procedure GPIOI_Clock_Enable with Inline; procedure GPIOJ_Clock_Enable with Inline; procedure GPIOK_Clock_Enable with Inline; procedure CRC_Clock_Enable with Inline; procedure BKPSRAM_Clock_Enable with Inline; procedure CCMDATARAMEN_Clock_Enable with Inline; procedure DMA1_Clock_Enable with Inline; procedure DMA2_Clock_Enable with Inline; procedure GPIOA_Clock_Disable with Inline; procedure GPIOB_Clock_Disable with Inline; procedure GPIOC_Clock_Disable with Inline; procedure GPIOD_Clock_Disable with Inline; procedure GPIOE_Clock_Disable with Inline; procedure GPIOF_Clock_Disable with Inline; procedure GPIOG_Clock_Disable with Inline; procedure GPIOH_Clock_Disable with Inline; procedure GPIOI_Clock_Disable with Inline; procedure GPIOJ_Clock_Disable with Inline; procedure GPIOK_Clock_Disable with Inline; procedure CRC_Clock_Disable with Inline; procedure BKPSRAM_Clock_Disable with Inline; procedure CCMDATARAMEN_Clock_Disable with Inline; procedure DMA1_Clock_Disable with Inline; procedure DMA2_Clock_Disable with Inline; procedure RNG_Clock_Enable with Inline; procedure RNG_Clock_Disable with Inline; procedure TIM2_Clock_Enable with Inline; procedure TIM3_Clock_Enable with Inline; procedure TIM4_Clock_Enable with Inline; procedure TIM5_Clock_Enable with Inline; procedure TIM6_Clock_Enable with Inline; procedure TIM7_Clock_Enable with Inline; procedure TIM12_Clock_Enable with Inline; procedure TIM13_Clock_Enable with Inline; procedure TIM14_Clock_Enable with Inline; procedure WWDG_Clock_Enable with Inline; procedure SPI2_Clock_Enable with Inline; procedure SPI3_Clock_Enable with Inline; procedure USART2_Clock_Enable with Inline; procedure USART3_Clock_Enable with Inline; procedure UART4_Clock_Enable with Inline; procedure UART5_Clock_Enable with Inline; procedure UART7_Clock_Enable with Inline; procedure UART8_Clock_Enable with Inline; procedure I2C1_Clock_Enable with Inline; procedure I2C2_Clock_Enable with Inline; procedure I2C3_Clock_Enable with Inline; procedure PWR_Clock_Enable with Inline; procedure TIM2_Clock_Disable with Inline; procedure TIM3_Clock_Disable with Inline; procedure TIM4_Clock_Disable with Inline; procedure TIM5_Clock_Disable with Inline; procedure TIM6_Clock_Disable with Inline; procedure TIM7_Clock_Disable with Inline; procedure TIM12_Clock_Disable with Inline; procedure TIM13_Clock_Disable with Inline; procedure TIM14_Clock_Disable with Inline; procedure WWDG_Clock_Disable with Inline; procedure SPI2_Clock_Disable with Inline; procedure SPI3_Clock_Disable with Inline; procedure USART2_Clock_Disable with Inline; procedure USART3_Clock_Disable with Inline; procedure UART4_Clock_Disable with Inline; procedure UART5_Clock_Disable with Inline; procedure UART7_Clock_Disable with Inline; procedure UART8_Clock_Disable with Inline; procedure I2C1_Clock_Disable with Inline; procedure I2C2_Clock_Disable with Inline; procedure I2C3_Clock_Disable with Inline; procedure PWR_Clock_Disable with Inline; procedure TIM1_Clock_Enable with Inline; procedure TIM8_Clock_Enable with Inline; procedure USART1_Clock_Enable with Inline; procedure USART6_Clock_Enable with Inline; procedure ADC1_Clock_Enable with Inline; procedure SDIO_Clock_Enable with Inline; procedure SPI1_Clock_Enable with Inline; procedure SPI4_Clock_Enable with Inline; procedure SYSCFG_Clock_Enable with Inline; procedure TIM9_Clock_Enable with Inline; procedure TIM10_Clock_Enable with Inline; procedure TIM11_Clock_Enable with Inline; procedure SPI5_Clock_Enable with Inline; procedure SPI6_Clock_Enable with Inline; procedure LTDC_Clock_Enable with Inline; procedure TIM1_Clock_Disable with Inline; procedure TIM8_Clock_Disable with Inline; procedure USART1_Clock_Disable with Inline; procedure USART6_Clock_Disable with Inline; procedure ADC1_Clock_Disable with Inline; procedure SDIO_Clock_Disable with Inline; procedure SPI1_Clock_Disable with Inline; procedure SPI4_Clock_Disable with Inline; procedure SYSCFG_Clock_Disable with Inline; procedure TIM9_Clock_Disable with Inline; procedure TIM10_Clock_Disable with Inline; procedure TIM11_Clock_Disable with Inline; procedure SPI5_Clock_Disable with Inline; procedure SPI6_Clock_Disable with Inline; procedure LTDC_Clock_Disable with Inline; procedure AHB1_Force_Reset with Inline; procedure GPIOA_Force_Reset with Inline; procedure GPIOB_Force_Reset with Inline; procedure GPIOC_Force_Reset with Inline; procedure GPIOD_Force_Reset with Inline; procedure GPIOE_Force_Reset with Inline; procedure GPIOH_Force_Reset with Inline; procedure CRC_Force_Reset with Inline; procedure DMA1_Force_Reset with Inline; procedure DMA2_Force_Reset with Inline; procedure AHB1_Release_Reset with Inline; procedure GPIOA_Release_Reset with Inline; procedure GPIOB_Release_Reset with Inline; procedure GPIOC_Release_Reset with Inline; procedure GPIOD_Release_Reset with Inline; procedure GPIOE_Release_Reset with Inline; procedure GPIOF_Release_Reset with Inline; procedure GPIOG_Release_Reset with Inline; procedure GPIOH_Release_Reset with Inline; procedure GPIOI_Release_Reset with Inline; procedure CRC_Release_Reset with Inline; procedure DMA1_Release_Reset with Inline; procedure DMA2_Release_Reset with Inline; procedure AHB2_Force_Reset with Inline; procedure OTGFS_Force_Reset with Inline; procedure AHB2_Release_Reset with Inline; procedure OTGFS_Release_Reset with Inline; procedure RNG_Force_Reset with Inline; procedure RNG_Release_Reset with Inline; procedure APB1_Force_Reset with Inline; procedure TIM2_Force_Reset with Inline; procedure TIM3_Force_Reset with Inline; procedure TIM4_Force_Reset with Inline; procedure TIM5_Force_Reset with Inline; procedure TIM6_Force_Reset with Inline; procedure TIM7_Force_Reset with Inline; procedure TIM12_Force_Reset with Inline; procedure TIM13_Force_Reset with Inline; procedure TIM14_Force_Reset with Inline; procedure WWDG_Force_Reset with Inline; procedure SPI2_Force_Reset with Inline; procedure SPI3_Force_Reset with Inline; procedure USART2_Force_Reset with Inline; procedure I2C1_Force_Reset with Inline; procedure I2C2_Force_Reset with Inline; procedure I2C3_Force_Reset with Inline; procedure PWR_Force_Reset with Inline; procedure APB1_Release_Reset with Inline; procedure TIM2_Release_Reset with Inline; procedure TIM3_Release_Reset with Inline; procedure TIM4_Release_Reset with Inline; procedure TIM5_Release_Reset with Inline; procedure TIM6_Release_Reset with Inline; procedure TIM7_Release_Reset with Inline; procedure TIM12_Release_Reset with Inline; procedure TIM13_Release_Reset with Inline; procedure TIM14_Release_Reset with Inline; procedure WWDG_Release_Reset with Inline; procedure SPI2_Release_Reset with Inline; procedure SPI3_Release_Reset with Inline; procedure USART2_Release_Reset with Inline; procedure I2C1_Release_Reset with Inline; procedure I2C2_Release_Reset with Inline; procedure I2C3_Release_Reset with Inline; procedure PWR_Release_Reset with Inline; procedure APB2_Force_Reset with Inline; procedure TIM1_Force_Reset with Inline; procedure TIM8_Force_Reset with Inline; procedure USART1_Force_Reset with Inline; procedure USART6_Force_Reset with Inline; procedure ADC_Force_Reset with Inline; procedure SDIO_Force_Reset with Inline; procedure SPI1_Force_Reset with Inline; procedure SPI4_Force_Reset with Inline; procedure SYSCFG_Force_Reset with Inline; procedure TIM9_Force_Reset with Inline; procedure TIM10_Force_Reset with Inline; procedure TIM11_Force_Reset with Inline; procedure SPI5_Force_Reset with Inline; procedure SPI6_Force_Reset with Inline; procedure LTDC_Force_Reset with Inline; procedure APB2_Release_Reset with Inline; procedure TIM1_Release_Reset with Inline; procedure TIM8_Release_Reset with Inline; procedure USART1_Release_Reset with Inline; procedure USART6_Release_Reset with Inline; procedure ADC_Release_Reset with Inline; procedure SDIO_Release_Reset with Inline; procedure SPI1_Release_Reset with Inline; procedure SPI4_Release_Reset with Inline; procedure SYSCFG_Release_Reset with Inline; procedure TIM9_Release_Reset with Inline; procedure TIM10_Release_Reset with Inline; procedure TIM11_Release_Reset with Inline; procedure SPI5_Release_Reset with Inline; procedure SPI6_Release_Reset with Inline; procedure LTDC_Release_Reset with Inline; procedure FSMC_Clock_Enable with Inline; procedure FSMC_Clock_Disable with Inline; private type RCC_Registers is record CR : Word; -- clock control register at 16#00# PLLCFGR : Word; -- PLL configuration register at 16#04# CFGR : Word; -- clock configuration register at 16#08# CIR : Word; -- clock interrupt register at 16#0C# AHB1RSTR : Word; -- AHB1 peripheral reset register at 16#10# AHB2RSTR : Word; -- AHB2 peripheral reset register at 16#14# AHB3RSTR : Word; -- AHB3 peripheral reset register at 16#18# Reserved_0 : Word; -- Reserved at 16#1C# APB1RSTR : Word; -- APB1 peripheral reset register at 16#20# APB2RSTR : Word; -- APB2 peripheral reset register at 16#24# Reserved_1 : Word; -- Reserved at 16#28# Reserved_2 : Word; -- Reserved at 16#2c# AHB1ENR : Word; -- AHB1 peripheral clock register at 16#30# AHB2ENR : Word; -- AHB2 peripheral clock register at 16#34# AHB3ENR : Word; -- AHB3 peripheral clock register at 16#38# Reserved_3 : Word; -- Reserved at 16#0C# APB1ENR : Word; -- APB1 peripheral clock enable at 16#40# APB2ENR : Word; -- APB2 peripheral clock enable at 16#44# Reserved_4 : Word; -- Reserved at 16#48# Reserved_5 : Word; -- Reserved at 16#4c# AHB1LPENR : Word; -- AHB1 periph. low power clk en. at 16#50# AHB2LPENR : Word; -- AHB2 periph. low power clk en. at 16#54# AHB3LPENR : Word; -- AHB3 periph. low power clk en. at 16#58# Reserved_6 : Word; -- Reserved, 16#5C# APB1LPENR : Word; -- APB1 periph. low power clk en. at 16#60# APB2LPENR : Word; -- APB2 periph. low power clk en. at 16#64# Reserved_7 : Word; -- Reserved at 16#68# Reserved_8 : Word; -- Reserved at 16#6C# BDCR : Word; -- Backup domain control register at 16#70# CSR : Word; -- clock control/status register at 16#74# Reserved_9 : Word; -- Reserved at 16#78# Reserved_10 : Word; -- Reserved at 16#7C# SSCGR : Word; -- spread spectrum clk gen. reg. at 16#80# PLLI2SCFGR : Word; -- PLLI2S configuration register at 16#84# PLLSAICFGR : Word; -- PLLSAI configuration register at 16#88# DCKCFGR : Word; -- DCK configuration register at 16#8C# end record with Volatile; for RCC_Registers use record CR at 0 range 0 .. 31; PLLCFGR at 4 range 0 .. 31; CFGR at 8 range 0 .. 31; CIR at 12 range 0 .. 31; AHB1RSTR at 16 range 0 .. 31; AHB2RSTR at 20 range 0 .. 31; AHB3RSTR at 24 range 0 .. 31; Reserved_0 at 28 range 0 .. 31; APB1RSTR at 32 range 0 .. 31; APB2RSTR at 36 range 0 .. 31; Reserved_1 at 40 range 0 .. 31; Reserved_2 at 44 range 0 .. 31; AHB1ENR at 48 range 0 .. 31; AHB2ENR at 52 range 0 .. 31; AHB3ENR at 56 range 0 .. 31; Reserved_3 at 60 range 0 .. 31; APB1ENR at 64 range 0 .. 31; APB2ENR at 68 range 0 .. 31; Reserved_4 at 72 range 0 .. 31; Reserved_5 at 76 range 0 .. 31; AHB1LPENR at 80 range 0 .. 31; AHB2LPENR at 84 range 0 .. 31; AHB3LPENR at 88 range 0 .. 31; Reserved_6 at 92 range 0 .. 31; APB1LPENR at 96 range 0 .. 31; APB2LPENR at 100 range 0 .. 31; Reserved_7 at 104 range 0 .. 31; Reserved_8 at 108 range 0 .. 31; BDCR at 112 range 0 .. 31; CSR at 116 range 0 .. 31; Reserved_9 at 120 range 0 .. 31; Reserved_10 at 124 range 0 .. 31; SSCGR at 128 range 0 .. 31; PLLI2SCFGR at 132 range 0 .. 31; PLLSAICFGR at 136 range 0 .. 31; DCKCFGR at 140 range 0 .. 31; end record; Register : RCC_Registers with Volatile, Address => System'To_Address (RCC_Base); --------------------- Constants for RCC_CR register --------------------- HSION : constant := 16#00000001#; HSIRDY : constant := 16#00000002#; HSITRIM : constant := 16#000000F8#; HSITRIM_0 : constant := 16#00000008#; -- Bit 0 HSITRIM_1 : constant := 16#00000010#; -- Bit 1 HSITRIM_2 : constant := 16#00000020#; -- Bit 2 HSITRIM_3 : constant := 16#00000040#; -- Bit 3 HSITRIM_4 : constant := 16#00000080#; -- Bit 4 HSICAL : constant := 16#0000FF00#; HSICAL_0 : constant := 16#00000100#; -- Bit 0 HSICAL_1 : constant := 16#00000200#; -- Bit 1 HSICAL_2 : constant := 16#00000400#; -- Bit 2 HSICAL_3 : constant := 16#00000800#; -- Bit 3 HSICAL_4 : constant := 16#00001000#; -- Bit 4 HSICAL_5 : constant := 16#00002000#; -- Bit 5 HSICAL_6 : constant := 16#00004000#; -- Bit 6 HSICAL_7 : constant := 16#00008000#; -- Bit 7 HSEON : constant := 16#00010000#; HSERDY : constant := 16#00020000#; HSEBYP : constant := 16#00040000#; CSSON : constant := 16#00080000#; PLLON : constant := 16#01000000#; PLLRDY : constant := 16#02000000#; PLLI2SON : constant := 16#04000000#; PLLI2SRDY : constant := 16#08000000#; ------------------ Constants for RCC_PLLCFGR register -------------------- PLLM : constant := 16#0000003F#; PLLM_0 : constant := 16#00000001#; PLLM_1 : constant := 16#00000002#; PLLM_2 : constant := 16#00000004#; PLLM_3 : constant := 16#00000008#; PLLM_4 : constant := 16#00000010#; PLLM_5 : constant := 16#00000020#; PLLN : constant := 16#00007FC0#; PLLN_0 : constant := 16#00000040#; PLLN_1 : constant := 16#00000080#; PLLN_2 : constant := 16#00000100#; PLLN_3 : constant := 16#00000200#; PLLN_4 : constant := 16#00000400#; PLLN_5 : constant := 16#00000800#; PLLN_6 : constant := 16#00001000#; PLLN_7 : constant := 16#00002000#; PLLN_8 : constant := 16#00004000#; PLLP : constant := 16#00030000#; PLLP_0 : constant := 16#00010000#; PLLP_1 : constant := 16#00020000#; PLLSRC : constant := 16#00400000#; PLLSRC_HSE : constant := 16#00400000#; PLLSRC_HSI : constant := 16#00000000#; PLLQ : constant := 16#0F000000#; PLLQ_0 : constant := 16#01000000#; PLLQ_1 : constant := 16#02000000#; PLLQ_2 : constant := 16#04000000#; PLLQ_3 : constant := 16#08000000#; ------------------ Constants for RCC_CFGR register --------------------- -- SW configuration SW : constant := 16#00000003#; -- SW[1:0] bits (System clock Switch) SW_0 : constant := 16#00000001#; -- Bit 0 SW_1 : constant := 16#00000002#; -- Bit 1 SW_HSI : constant := 16#00000000#; -- HSI selected as system clock SW_HSE : constant := 16#00000001#; -- HSE selected as system clock SW_PLL : constant := 16#00000002#; -- PLL selected as system clock -- SWS configuration SWS : constant := 16#0000000C#; -- System Clock Switch Status bits SWS_0 : constant := 16#00000004#; -- Bit 0 SWS_1 : constant := 16#00000008#; -- Bit 1 SWS_HSI : constant := 16#00000000#; -- HSI used as system clock SWS_HSE : constant := 16#00000004#; -- HSE used as system clock SWS_PLL : constant := 16#00000008#; -- PLL used as system clock -- HPRE configuration HPRE : constant := 16#000000F0#; -- HPRE[3:0] bits (AHB prescaler) HPRE_0 : constant := 16#00000010#; -- Bit 0 HPRE_1 : constant := 16#00000020#; -- Bit 1 HPRE_2 : constant := 16#00000040#; -- Bit 2 HPRE_3 : constant := 16#00000080#; -- Bit 3 HPRE_DIV1 : constant := 16#00000000#; -- SYSCLK not divided HPRE_DIV2 : constant := 16#00000080#; -- SYSCLK divided by 2 HPRE_DIV4 : constant := 16#00000090#; -- SYSCLK divided by 4 HPRE_DIV8 : constant := 16#000000A0#; -- SYSCLK divided by 8 HPRE_DIV16 : constant := 16#000000B0#; -- SYSCLK divided by 16 HPRE_DIV64 : constant := 16#000000C0#; -- SYSCLK divided by 64 HPRE_DIV128 : constant := 16#000000D0#; -- SYSCLK divided by 128 HPRE_DIV256 : constant := 16#000000E0#; -- SYSCLK divided by 256 HPRE_DIV512 : constant := 16#000000F0#; -- SYSCLK divided by 512 -- PPRE1 configuration PPRE1 : constant := 16#00001C00#; -- APB1 prescaler bits PPRE1_0 : constant := 16#00000400#; -- Bit 0 PPRE1_1 : constant := 16#00000800#; -- Bit 1 PPRE1_2 : constant := 16#00001000#; -- Bit 2 PPRE1_DIV1 : constant := 16#00000000#; -- HCLK not divided PPRE1_DIV2 : constant := 16#00001000#; -- HCLK divided by 2 PPRE1_DIV4 : constant := 16#00001400#; -- HCLK divided by 4 PPRE1_DIV8 : constant := 16#00001800#; -- HCLK divided by 8 PPRE1_DIV16 : constant := 16#00001C00#; -- HCLK divided by 16 -- PPRE2 configuration PPRE2 : constant := 16#0000E000#; -- APB2 prescaler bits PPRE2_0 : constant := 16#00002000#; -- Bit 0 PPRE2_1 : constant := 16#00004000#; -- Bit 1 PPRE2_2 : constant := 16#00008000#; -- Bit 2 PPRE2_DIV1 : constant := 16#00000000#; -- HCLK not divided PPRE2_DIV2 : constant := 16#00008000#; -- HCLK divided by 2 PPRE2_DIV4 : constant := 16#0000A000#; -- HCLK divided by 4 PPRE2_DIV8 : constant := 16#0000C000#; -- HCLK divided by 8 PPRE2_DIV16 : constant := 16#0000E000#; -- HCLK divided by 16 -- RTCPRE configuration RTCPRE : constant := 16#001F0000#; RTCPRE_0 : constant := 16#00010000#; RTCPRE_1 : constant := 16#00020000#; RTCPRE_2 : constant := 16#00040000#; RTCPRE_3 : constant := 16#00080000#; RTCPRE_4 : constant := 16#00100000#; -- MCO1 configuration MCO1 : constant := 16#00600000#; MCO1_0 : constant := 16#00200000#; MCO1_1 : constant := 16#00400000#; I2SSRC : constant := 16#00800000#; MCO1PRE : constant := 16#07000000#; MCO1PRE_0 : constant := 16#01000000#; MCO1PRE_1 : constant := 16#02000000#; MCO1PRE_2 : constant := 16#04000000#; MCO2PRE : constant := 16#38000000#; MCO2PRE_0 : constant := 16#08000000#; MCO2PRE_1 : constant := 16#10000000#; MCO2PRE_2 : constant := 16#20000000#; MCO2 : constant := 16#C0000000#; MCO2_0 : constant := 16#40000000#; MCO2_1 : constant := 16#80000000#; ------------------ Constants for RCC_CIR register ------------------------ LSIRDYF : constant := 16#00000001#; LSERDYF : constant := 16#00000002#; HSIRDYF : constant := 16#00000004#; HSERDYF : constant := 16#00000008#; PLLRDYF : constant := 16#00000010#; PLLI2SRDYF : constant := 16#00000020#; CSSF : constant := 16#00000080#; LSIRDYIE : constant := 16#00000100#; LSERDYIE : constant := 16#00000200#; HSIRDYIE : constant := 16#00000400#; HSERDYIE : constant := 16#00000800#; PLLRDYIE : constant := 16#00001000#; PLLI2SRDYIE : constant := 16#00002000#; LSIRDYC : constant := 16#00010000#; LSERDYC : constant := 16#00020000#; HSIRDYC : constant := 16#00040000#; HSERDYC : constant := 16#00080000#; PLLRDYC : constant := 16#00100000#; PLLI2SRDYC : constant := 16#00200000#; CSSC : constant := 16#00800000#; ------------------ Constants for RCC_AHB1RSTR register ------------------- -- Note: we include the prefix for the sake of being able to check, when -- using the constants, that they are being assigned to the right bus. AHB1RSTR_GPIOARST : constant := 16#00000001#; AHB1RSTR_GPIOBRST : constant := 16#00000002#; AHB1RSTR_GPIOCRST : constant := 16#00000004#; AHB1RSTR_GPIODRST : constant := 16#00000008#; AHB1RSTR_GPIOERST : constant := 16#00000010#; AHB1RSTR_GPIOFRST : constant := 16#00000020#; AHB1RSTR_GPIOGRST : constant := 16#00000040#; AHB1RSTR_GPIOHRST : constant := 16#00000080#; AHB1RSTR_GPIOIRST : constant := 16#00000100#; AHB1RSTR_CRCRST : constant := 16#00001000#; AHB1RSTR_DMA1RST : constant := 16#00200000#; AHB1RSTR_DMA2RST : constant := 16#00400000#; AHB1RSTR_ETHMACRST : constant := 16#02000000#; AHB1RSTR_OTGHRST : constant := 16#10000000#; ------------------ Constants for RCC_AHB2RSTR register ------------------- AHB2RSTR_DCMIRST : constant := 16#00000001#; AHB2RSTR_RNGRST : constant := 16#00000040#; AHB2RSTR_OTGFSRST : constant := 16#00000080#; ------------------ Constants for RCC_AHB3RSTR register ------------------- AHB3RSTR_FSMCRST : constant := 16#00000001#; ------------------ Constants for RCC_APB1RSTR register ------------------- APB1RSTR_TIM2RST : constant := 16#00000001#; APB1RSTR_TIM3RST : constant := 16#00000002#; APB1RSTR_TIM4RST : constant := 16#00000004#; APB1RSTR_TIM5RST : constant := 16#00000008#; APB1RSTR_TIM6RST : constant := 16#00000010#; APB1RSTR_TIM7RST : constant := 16#00000020#; APB1RSTR_TIM12RST : constant := 16#00000040#; APB1RSTR_TIM13RST : constant := 16#00000080#; APB1RSTR_TIM14RST : constant := 16#00000100#; APB1RSTR_WWDGRST : constant := 16#00000800#; APB1RSTR_SPI2RST : constant := 16#00004000#; APB1RSTR_SPI3RST : constant := 16#00008000#; APB1RSTR_USART2RST : constant := 16#00020000#; APB1RSTR_USART3RST : constant := 16#00040000#; APB1RSTR_UART4RST : constant := 16#00080000#; APB1RSTR_UART5RST : constant := 16#00100000#; APB1RSTR_I2C1RST : constant := 16#00200000#; APB1RSTR_I2C2RST : constant := 16#00400000#; APB1RSTR_I2C3RST : constant := 16#00800000#; APB1RSTR_CAN1RST : constant := 16#02000000#; APB1RSTR_CAN2RST : constant := 16#04000000#; APB1RSTR_PWRRST : constant := 16#10000000#; APB1RSTR_DACRST : constant := 16#20000000#; ------------------ Constants for RCC_APB2RSTR register ------------------- APB2RSTR_TIM1RST : constant := 16#00000001#; APB2RSTR_TIM8RST : constant := 16#00000002#; APB2RSTR_USART1RST : constant := 16#00000010#; APB2RSTR_USART6RST : constant := 16#00000020#; APB2RSTR_ADCRST : constant := 16#00000100#; APB2RSTR_SDIORST : constant := 16#00000800#; APB2RSTR_SPI1RST : constant := 16#00001000#; APB2RSTR_SPI4RST : constant := 16#00002000#; APB2RSTR_SYSCFGRST : constant := 16#00004000#; APB2RSTR_TIM9RST : constant := 16#00010000#; APB2RSTR_TIM10RST : constant := 16#00020000#; APB2RSTR_TIM11RST : constant := 16#00040000#; APB2RSTR_SPI5RST : constant := 16#00100000#; APB2RSTR_SPI6RST : constant := 16#00200000#; APB2RSTR_LTDCRST : constant := 16#04000000#; ------------------ Constants for RCC_AHB1ENR register -------------------- AHB1ENR_GPIOAEN : constant := 16#00000001#; AHB1ENR_GPIOBEN : constant := 16#00000002#; AHB1ENR_GPIOCEN : constant := 16#00000004#; AHB1ENR_GPIODEN : constant := 16#00000008#; AHB1ENR_GPIOEEN : constant := 16#00000010#; AHB1ENR_GPIOFEN : constant := 16#00000020#; AHB1ENR_GPIOGEN : constant := 16#00000040#; AHB1ENR_GPIOHEN : constant := 16#00000080#; AHB1ENR_GPIOIEN : constant := 16#00000100#; AHB1ENR_GPIOJEN : constant := 16#00000200#; AHB1ENR_GPIOKEN : constant := 16#00000400#; AHB1ENR_CRCEN : constant := 16#00001000#; AHB1ENR_BKPSRAMEN : constant := 16#00040000#; AHB1ENR_CCMDATARAMEN : constant := 16#00100000#; AHB1ENR_DMA1EN : constant := 16#00200000#; AHB1ENR_DMA2EN : constant := 16#00400000#; AHB1ENR_ETHMACEN : constant := 16#02000000#; AHB1ENR_ETHMACTXEN : constant := 16#04000000#; AHB1ENR_ETHMACRXEN : constant := 16#08000000#; AHB1ENR_ETHMACPTPEN : constant := 16#10000000#; AHB1ENR_OTGHSEN : constant := 16#20000000#; AHB1ENR_OTGHSULPIEN : constant := 16#40000000#; ------------------ Constants for RCC_AHB2ENR register -------------------- AHB2ENR_DCMIEN : constant := 16#00000001#; AHB2ENR_RNGEN : constant := 16#00000040#; AHB2ENR_OTGFSEN : constant := 16#00000080#; ------------------ Constants for RCC_AHB3ENR register -------------------- AHB3ENR_FSMCEN : constant := 16#00000001#; ------------------ Constants for RCC_APB1ENR register -------------------- APB1ENR_TIM2EN : constant := 16#00000001#; APB1ENR_TIM3EN : constant := 16#00000002#; APB1ENR_TIM4EN : constant := 16#00000004#; APB1ENR_TIM5EN : constant := 16#00000008#; APB1ENR_TIM6EN : constant := 16#00000010#; APB1ENR_TIM7EN : constant := 16#00000020#; APB1ENR_TIM12EN : constant := 16#00000040#; APB1ENR_TIM13EN : constant := 16#00000080#; APB1ENR_TIM14EN : constant := 16#00000100#; APB1ENR_WWDGEN : constant := 16#00000800#; APB1ENR_SPI2EN : constant := 16#00004000#; APB1ENR_SPI3EN : constant := 16#00008000#; APB1ENR_USART2EN : constant := 16#00020000#; APB1ENR_USART3EN : constant := 16#00040000#; APB1ENR_UART4EN : constant := 16#00080000#; APB1ENR_UART5EN : constant := 16#00100000#; APB1ENR_I2C1EN : constant := 16#00200000#; APB1ENR_I2C2EN : constant := 16#00400000#; APB1ENR_I2C3EN : constant := 16#00800000#; APB1ENR_CAN1EN : constant := 16#02000000#; APB1ENR_CAN2EN : constant := 16#04000000#; APB1ENR_PWREN : constant := 16#10000000#; APB1ENR_DACEN : constant := 16#20000000#; APB1ENR_UART7EN : constant := 16#40000000#; APB1ENR_UART8EN : constant := 16#80000000#; ------------------ Constants for RCC_APB2ENR register -------------------- APB2ENR_TIM1EN : constant := 16#00000001#; APB2ENR_TIM8EN : constant := 16#00000002#; APB2ENR_USART1EN : constant := 16#00000010#; APB2ENR_USART6EN : constant := 16#00000020#; APB2ENR_ADC1EN : constant := 16#00000100#; APB2ENR_ADC2EN : constant := 16#00000200#; APB2ENR_ADC3EN : constant := 16#00000400#; APB2ENR_SDIOEN : constant := 16#00000800#; APB2ENR_SPI1EN : constant := 16#00001000#; APB2ENR_SPI4EN : constant := 16#00002000#; APB2ENR_SYSCFGEN : constant := 16#00004000#; APB2ENR_TIM9EN : constant := 16#00010000#; APB2ENR_TIM10EN : constant := 16#00020000#; APB2ENR_TIM11EN : constant := 16#00040000#; APB2ENR_SPI5EN : constant := 16#00100000#; APB2ENR_SPI6EN : constant := 16#00200000#; APB2ENR_LTDCEN : constant := 16#04000000#; ------------------ Constants for RCC_AHB1LPENR register ------------------ AHB1LPENR_GPIOALPEN : constant := 16#00000001#; AHB1LPENR_GPIOBLPEN : constant := 16#00000002#; AHB1LPENR_GPIOCLPEN : constant := 16#00000004#; AHB1LPENR_GPIODLPEN : constant := 16#00000008#; AHB1LPENR_GPIOELPEN : constant := 16#00000010#; AHB1LPENR_GPIOFLPEN : constant := 16#00000020#; AHB1LPENR_GPIOGLPEN : constant := 16#00000040#; AHB1LPENR_GPIOHLPEN : constant := 16#00000080#; AHB1LPENR_GPIOILPEN : constant := 16#00000100#; AHB1LPENR_CRCLPEN : constant := 16#00001000#; AHB1LPENR_FLITFLPEN : constant := 16#00008000#; AHB1LPENR_SRAM1LPEN : constant := 16#00010000#; AHB1LPENR_SRAM2LPEN : constant := 16#00020000#; AHB1LPENR_BKPSRAMLPEN : constant := 16#00040000#; AHB1LPENR_SRAM3LPEN : constant := 16#00080000#; AHB1LPENR_DMA1LPEN : constant := 16#00200000#; AHB1LPENR_DMA2LPEN : constant := 16#00400000#; AHB1LPENR_ETHMACLPEN : constant := 16#02000000#; AHB1LPENR_ETHMACTXLPEN : constant := 16#04000000#; AHB1LPENR_ETHMACRXLPEN : constant := 16#08000000#; AHB1LPENR_ETHMACPTPLPEN : constant := 16#10000000#; AHB1LPENR_OTGHSLPEN : constant := 16#20000000#; AHB1LPENR_OTGHSULPILPEN : constant := 16#40000000#; ------------------ Constants for RCC_AHB2LPENR register ------------------ AHB2LPENR_DCMILPEN : constant := 16#00000001#; AHB2LPENR_RNGLPEN : constant := 16#00000040#; AHB2LPENR_OTGFSLPEN : constant := 16#00000080#; ------------------ Constants for RCC_AHB3LPENR register ------------------ AHB3LPENR_FSMCLPEN : constant := 16#00000001#; ------------------ Constants for RCC_APB1LPENR register ------------------ APB1LPENR_TIM2LPEN : constant := 16#00000001#; APB1LPENR_TIM3LPEN : constant := 16#00000002#; APB1LPENR_TIM4LPEN : constant := 16#00000004#; APB1LPENR_TIM5LPEN : constant := 16#00000008#; APB1LPENR_TIM6LPEN : constant := 16#00000010#; APB1LPENR_TIM7LPEN : constant := 16#00000020#; APB1LPENR_TIM12LPEN : constant := 16#00000040#; APB1LPENR_TIM13LPEN : constant := 16#00000080#; APB1LPENR_TIM14LPEN : constant := 16#00000100#; APB1LPENR_WWDGLPEN : constant := 16#00000800#; APB1LPENR_SPI2LPEN : constant := 16#00004000#; APB1LPENR_SPI3LPEN : constant := 16#00008000#; APB1LPENR_USART2LPEN : constant := 16#00020000#; APB1LPENR_USART3LPEN : constant := 16#00040000#; APB1LPENR_UART4LPEN : constant := 16#00080000#; APB1LPENR_UART5LPEN : constant := 16#00100000#; APB1LPENR_I2C1LPEN : constant := 16#00200000#; APB1LPENR_I2C2LPEN : constant := 16#00400000#; APB1LPENR_I2C3LPEN : constant := 16#00800000#; APB1LPENR_CAN1LPEN : constant := 16#02000000#; APB1LPENR_CAN2LPEN : constant := 16#04000000#; APB1LPENR_PWRLPEN : constant := 16#10000000#; APB1LPENR_DACLPEN : constant := 16#20000000#; ------------------ Constants for RCC_APB2LPENR register ------------------ APB2LPENR_TIM1LPEN : constant := 16#00000001#; APB2LPENR_TIM8LPEN : constant := 16#00000002#; APB2LPENR_USART1LPEN : constant := 16#00000010#; APB2LPENR_USART6LPEN : constant := 16#00000020#; APB2LPENR_ADC1LPEN : constant := 16#00000100#; APB2LPENR_ADC2LPEN : constant := 16#00000200#; APB2LPENR_ADC3LPEN : constant := 16#00000400#; APB2LPENR_SDIOLPEN : constant := 16#00000800#; APB2LPENR_SPI1LPEN : constant := 16#00001000#; APB2LPENR_SPI4LPEN : constant := 16#00002000#; APB2LPENR_SYSCFGLPEN : constant := 16#00004000#; APB2LPENR_TIM9LPEN : constant := 16#00010000#; APB2LPENR_TIM10LPEN : constant := 16#00020000#; APB2LPENR_TIM11LPEN : constant := 16#00040000#; APB2LPENR_SPI5LPEN : constant := 16#00100000#; APB2LPENR_SPI6LPEN : constant := 16#00200000#; APB2LPENR_LTDCLPEN : constant := 16#04000000#; ------------------ Constants for RCC_BDCR register --------------------- LSEON : constant := 16#00000001#; LSERDY : constant := 16#00000002#; LSEBYP : constant := 16#00000004#; RTCSEL : constant := 16#00000300#; RTCSEL_0 : constant := 16#00000100#; RTCSEL_1 : constant := 16#00000200#; RTCEN : constant := 16#00008000#; BDRST : constant := 16#00010000#; ------------------ Constants for RCC_CSR register --------------------- LSION : constant := 16#00000001#; LSIRDY : constant := 16#00000002#; RMVF : constant := 16#01000000#; BORRSTF : constant := 16#02000000#; PADRSTF : constant := 16#04000000#; PORRSTF : constant := 16#08000000#; SFTRSTF : constant := 16#10000000#; WDGRSTF : constant := 16#20000000#; WWDGRSTF : constant := 16#40000000#; LPWRRSTF : constant := 16#80000000#; ------------------ Constants for RCC_SSCGR register --------------------- MODPER : constant := 16#00001FFF#; INCSTEP : constant := 16#0FFFE000#; SPREADSEL : constant := 16#40000000#; SSCGEN : constant := 16#80000000#; ------------------ Constants for RCC_PLLI2SCFGR register ----------------- PLLI2SN : constant := 16#00007FC0#; PLLI2SN_0 : constant := 16#00000040#; PLLI2SN_1 : constant := 16#00000080#; PLLI2SN_2 : constant := 16#00000100#; PLLI2SN_3 : constant := 16#00000200#; PLLI2SN_4 : constant := 16#00000400#; PLLI2SN_5 : constant := 16#00000800#; PLLI2SN_6 : constant := 16#00001000#; PLLI2SN_7 : constant := 16#00002000#; PLLI2SN_8 : constant := 16#00004000#; PLLI2SR : constant := 16#70000000#; PLLI2SR_0 : constant := 16#10000000#; PLLI2SR_1 : constant := 16#20000000#; PLLI2SR_2 : constant := 16#40000000#; end STM32F4.RCC;
-- CE3602A.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 GET FOR CHARACTERS AND STRINGS ALLOW A STRING TO SPAN -- OVER MORE THAN ONE LINE, SKIPPING INTERVENING LINE AND PAGE -- TERMINATORS. ALSO CHECK THAT GET ACCEPTS A NULL STRING ACTUAL -- PARAMETER AND A STRING SLICE. -- APPLICABILITY CRITERIA: -- THIS TEST IS APPLICABLE ONLY TO IMPLEMENTATIONS WHICH SUPPORT -- TEXT FILES. -- HISTORY: -- SPS 08/30/82 -- VKG 01/26/83 -- JBG 02/22/84 CHANGED TO .ADA TEST -- RJW 11/04/86 REVISED TEST TO OUTPUT A NOT_APPLICABLE -- RESULT WHEN FILES ARE NOT SUPPORTED. -- JLH 09/04/87 REMOVED DEPENDENCE ON RESET, CORRECTED EXCEPTION -- HANDLING, AND ADDED NEW CASES FOR OBJECTIVE. WITH REPORT; USE REPORT; WITH TEXT_IO; USE TEXT_IO; PROCEDURE CE3602A IS INCOMPLETE : EXCEPTION; BEGIN TEST ("CE3602A", "CHECK THAT GET FOR CHARACTERS AND STRINGS " & "ALLOWS A STRING TO SPAN OVER MORE THAN ONE " & "LINE, SKIPPING INTERVENING LINE AND PAGE " & "TERMINATORS. ALSO CHECK THAT GET ACCEPTS " & "A NULL STRING ACTUAL PARAMETER AND A STRING " & "SLICE"); DECLARE FILE1 : FILE_TYPE; ST : STRING (1 .. 40); STR: STRING (1 .. 100); NST: STRING (1 .. 0); ORIGINAL_LINE_LENGTH : COUNT; -- READ_CHARS RETURNS A STRING OF N CHARACTERS FROM A GIVEN FILE. FUNCTION READ_CHARS (FILE : FILE_TYPE; N : NATURAL ) RETURN STRING IS C: CHARACTER; BEGIN IF N = 0 THEN RETURN ""; ELSE GET (FILE,C); RETURN C&READ_CHARS (FILE,N-1); END IF; EXCEPTION WHEN OTHERS => FAILED ("ERROR ON READ_CHARS"); END READ_CHARS; BEGIN -- CREATE AND INITIALIZE TEST DATA FILE BEGIN CREATE (FILE1, 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; ORIGINAL_LINE_LENGTH := LINE_LENGTH; -- LINE_LENGTH SET IN CASE IMPLEMENTATION REQUIRES BOUNDED LENGTH LINES SET_LINE_LENGTH (16); PUT (FILE1, "THIS LINE SHALL "); SET_LINE_LENGTH (10); PUT (FILE1, "SPAN OVER "); SET_LINE_LENGTH (14); PUT (FILE1, "SEVERAL LINES."); CLOSE (FILE1); SET_LINE_LENGTH (ORIGINAL_LINE_LENGTH); -- BEGIN TEST BEGIN BEGIN OPEN (FILE1, IN_FILE, LEGAL_FILE_NAME); EXCEPTION WHEN USE_ERROR => NOT_APPLICABLE ("USE_ERROR RAISED ON TEXT " & "OPEN WITH IN_FILE MODE - 1"); RAISE INCOMPLETE; END; STR(1..40) := READ_CHARS (FILE1, 40); CLOSE (FILE1); OPEN (FILE1, IN_FILE, LEGAL_FILE_NAME); GET (FILE1, ST); IF STR(1..40) /= ST THEN FAILED ("GET FOR STRING INCORRECT"); END IF; IF STR(1..40) /= "THIS LINE SHALL SPAN OVER SEVERAL " & "LINES." THEN FAILED ("INCORRECT VALUE READ"); END IF; -- GET NULL STRING CLOSE (FILE1); OPEN (FILE1, IN_FILE, LEGAL_FILE_NAME); BEGIN GET (FILE1, NST); EXCEPTION WHEN OTHERS => FAILED (" GET FAILED ON NULL STRING"); END; -- GET NULL SLICE BEGIN GET (FILE1, STR (10 .. 1)); EXCEPTION WHEN OTHERS => FAILED ("GET FAILED ON A NULL SLICE"); END; BEGIN DELETE (FILE1); EXCEPTION WHEN USE_ERROR => NULL; END; END; EXCEPTION WHEN INCOMPLETE => NULL; END; RESULT; END CE3602A;
-- { dg-do run } -- { dg-options "-O1" } with TREE_STATIC_Def; use TREE_STATIC_Def; procedure TREE_STATIC_Use is I : Int := One; begin check (I, 1); end;
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ADA.CONTAINERS.GENERIC_CONSTRAINED_ARRAY_SORT -- -- -- -- B o d y -- -- -- -- Copyright (C) 2004-2020, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- This unit was originally developed by Matthew J Heaney. -- ------------------------------------------------------------------------------ -- This algorithm was adapted from GNAT.Heap_Sort_G (see g-hesorg.ad[sb]) procedure Ada.Containers.Generic_Constrained_Array_Sort (Container : in out Array_Type) is subtype T is Long_Long_Integer; function To_Index (J : T) return Index_Type; pragma Inline (To_Index); procedure Sift (S : T); A : Array_Type renames Container; -------------- -- To_Index -- -------------- function To_Index (J : T) return Index_Type is K : constant T'Base := Index_Type'Pos (A'First) + J - T'(1); begin return Index_Type'Val (K); end To_Index; Max : T := A'Length; Temp : Element_Type; ---------- -- Sift -- ---------- procedure Sift (S : T) is C : T := S; Son : T; begin loop Son := 2 * C; exit when Son > Max; declare Son_Index : Index_Type := To_Index (Son); begin if Son < Max then if A (Son_Index) < A (Index_Type'Succ (Son_Index)) then Son := Son + 1; Son_Index := Index_Type'Succ (Son_Index); end if; end if; A (To_Index (C)) := A (Son_Index); -- Move (Son, C); end; C := Son; end loop; while C /= S loop declare Father : constant T := C / 2; begin if A (To_Index (Father)) < Temp then -- Lt (Father, 0) A (To_Index (C)) := A (To_Index (Father)); -- Move (Father, C) C := Father; else exit; end if; end; end loop; A (To_Index (C)) := Temp; -- Move (0, C); end Sift; -- Start of processing for Generic_Constrained_Array_Sort begin for J in reverse 1 .. Max / 2 loop Temp := Container (To_Index (J)); -- Move (J, 0); Sift (J); end loop; while Max > 1 loop Temp := A (To_Index (Max)); -- Move (Max, 0); A (To_Index (Max)) := A (A'First); -- Move (1, Max); Max := Max - 1; Sift (1); end loop; end Ada.Containers.Generic_Constrained_Array_Sort;
-- WORDS, a Latin dictionary, by Colonel William Whitaker (USAF, Retired) -- -- Copyright William A. Whitaker (1936–2010) -- -- This is a free program, which means it is proper to copy it and pass -- it on to your friends. Consider it a developmental item for which -- there is no charge. However, just for form, it is Copyrighted -- (c). Permission is hereby freely given for any and all use of program -- and data. You can sell it as your own, but at least tell me. -- -- This version is distributed without obligation, but the developer -- would appreciate comments and suggestions. -- -- All parts of the WORDS system, source code and data files, are made freely -- available to anyone who wishes to use them, for whatever purpose. with Ada.Command_Line; with Ada.Text_IO; use Ada.Text_IO; with Latin_Utils.Strings_Package; use Latin_Utils.Strings_Package; use Latin_Utils; with Latin_Utils.Config; use Latin_Utils.Config; with Support_Utils.Word_Parameters; use Support_Utils.Word_Parameters; with Words_Engine.Word_Package; use Words_Engine.Word_Package; with Words_Engine.Initialization; with Process_Input; procedure Words_Main (Configuration : Configuration_Type) is Input_Line : String (1 .. 250) := (others => ' '); Arguments_Start : Integer := 1; begin -- The language shift in arguments must take place here -- since later parsing of line ignores non-letter Characters -- configuration := developer_version; -- The main mode of usage for WORDS is a simple call, followed by -- screen interaction. if Ada.Command_Line.Argument_Count = 0 then -- Simple WORDS Method := Interactive; -- Interactive Suppress_Preface := False; Set_Output (Ada.Text_IO.Standard_Output); Words_Engine.Initialization.Initialize_Engine; Process_Input (Configuration); --But there are other, command line options. --WORDS may be called with Arguments on the same line, --in a number of different modes. -- else Suppress_Preface := True; Words_Engine.Initialization.Initialize_Engine; --Single parameter, either a simple Latin word or an Input file. --WORDS amo --WORDS infile if Ada.Command_Line.Argument_Count = 1 then -- InPut 1 word in-line One_Argument : declare Input_Name : constant String := Trim (Ada.Command_Line.Argument (1)); begin -- Try file name, not raises NAME_ERROR Open (Input, In_File, Input_Name); Method := Command_Line_Files; Set_Input (Input); Set_Output (Ada.Text_IO.Standard_Output); -- No additional Arguments, so just go to PARSE now Process_Input (Configuration); exception -- Triggers on INPUT when Name_Error => -- Raised NAME_ERROR therefore Method := Command_Line_Input; -- Found word in command line end One_Argument; --With two Arguments the options are: Inputfile and Outputfile, --two Latin words, or a language shift to English (Latin being --the startup default) --and an English word (with no part of speech). --WORDS infile outfile --WORDS amo amas --WORDS ^e love elsif Ada.Command_Line.Argument_Count = 2 then -- INPUT and OUTPUT files Two_Arguments : -- or multiwords in-line declare Input_Name : constant String := Trim (Ada.Command_Line.Argument (1)); Output_Name : constant String := Trim (Ada.Command_Line.Argument (2)); begin if Input_Name (1) = Change_Language_Character then if Input_Name'Length > 1 then Change_Language (Input_Name (2)); Arguments_Start := 2; Method := Command_Line_Input; -- Parse the one word end if; else Open (Input, In_File, Input_Name); Create (Output, Out_File, Output_Name); Method := Command_Line_Files; Set_Input (Input); Set_Output (Output); Suppress_Preface := True; Output_Screen_Size := Integer'Last; -- No additional Arguments, so just go to PARSE now Process_Input (Configuration); Set_Input (Ada.Text_IO.Standard_Input); -- Clean up Set_Output (Ada.Text_IO.Standard_Output); Close (Output); end if; exception -- Triggers on either INPUT or OUTPUT !!! when Name_Error => Method := Command_Line_Input; -- Found words in command line end Two_Arguments; --With three Arguments there could be three Latin words -- or a language shift --and and English word and part of speech. --WORDS amo amas amat --WORDS ^e love v elsif Ada.Command_Line.Argument_Count = 3 then -- INPUT and OUTPUT files or multiwords in-line Three_Arguments : declare Arg1 : constant String := Trim (Ada.Command_Line.Argument (1)); -- we probably don't need to define these for their side-effects -- arg2 : constant String := Trim (Ada.Command_Line.Argument (2)); -- arg3 : constant String := Trim (Ada.Command_Line.Argument (3)); begin if Arg1 (1) = Change_Language_Character then if Arg1'Length > 1 then Change_Language (Arg1 (2)); Arguments_Start := 2; Method := Command_Line_Input; -- Parse the one word end if; else Method := Command_Line_Input; end if; end Three_Arguments; --More than three Arguments must all be Latin words. --WORDS amo amas amat amamus amatis amant else -- More than three Arguments Method := Command_Line_Input; end if; if Method = Command_Line_Input then -- Process words in command line More_Arguments : begin Suppress_Preface := True; -- Assemble Input words for I in Arguments_Start .. Ada.Command_Line.Argument_Count loop Input_Line := Head ( Trim (Input_Line) & " " & Ada.Command_Line.Argument (I), 250); end loop; --Ada.TEXT_IO.PUT_LINE ("To PARSE >" & TRIM (INPUT_LINE)); Process_Input (Configuration, Trim (Input_Line)); end More_Arguments; end if; end if; end Words_Main;