CombinedText stringlengths 4 3.42M |
|---|
------------------------------------------------------------------------------
-- G E L A A S I S --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
-- - - - - - - - - - - - - - - - --
-- Read copyright and license at the end of this file --
------------------------------------------------------------------------------
-- $Revision: 209 $ $Date: 2013-11-30 21:03:24 +0200 (Сб., 30 нояб. 2013) $
separate (Gela.To_Upper)
procedure Identifier
(Text : in Wide_String;
Result : out Wide_String;
Last : out Natural)
is
subtype Code_Point is Item range 0 .. 16#10FFFF#;
K : Positive := Result'First;
Code : Code_Point;
Pos : Code_Point;
Upper : Item;
begin
for J in Text'Range loop
Pos := W'Pos (Text (J));
if Pos in 16#D800# .. 16#DBFF# then
Code := Pos - 16#D800#;
else
if Pos in 16#DC00# .. 16#DFFF# then
Pos := 2 ** 10 * Code + (Pos - 16#DC00#) + 16#1_0000#;
end if;
Upper := S (Pos / 256).all (Pos mod 256);
if Upper <= Code_Point'Last then
if Upper = It_Self then
Code := Pos;
else
Code := Upper;
end if;
if Code <= 16#FFFF# then
Result (K) := W'Val (Code);
else
Result (K) := W'Val ((Code / 2 ** 10 + 16#D400#));
K := K + 1;
Result (K) := W'Val ((Code mod 2 ** 10 + 16#DC00#));
end if;
K := K + 1;
else
for J in 1 .. Upper mod 4 loop
Result (K) := Special_Casing (Integer (Upper/4 + J - 1));
K := K + 1;
end loop;
end if;
end if;
end loop;
Last := K - 1;
end Identifier;
------------------------------------------------------------------------------
-- Copyright (c) 2008, Maxim Reznik
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions are met:
--
-- * Redistributions of source code must retain the above copyright notice,
-- this list of conditions and the following disclaimer.
-- * Redistributions in binary form must reproduce the above copyright
-- notice, this list of conditions and the following disclaimer in the
-- documentation and/or other materials provided with the distribution.
-- * Neither the name of the Maxim Reznik, IE nor the names of its
-- contributors may be used to endorse or promote products derived from
-- this software without specific prior written permission.
--
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-- ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
-- LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-- CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-- SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-- INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-- CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-- POSSIBILITY OF SUCH DAMAGE.
--
------------------------------------------------------------------------------
|
-- Copyright (C) 2020 Glen Cornell <glen.m.cornell@gmail.com>
--
-- 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 Aof.Core.Objects is
use type Object_List.Cursor;
use type Ada.Strings.Unbounded.Unbounded_String;
function Get_Name (This : in Object'Class) return String is
begin
return Ada.Strings.Unbounded.To_String(This.Name.Get);
end;
procedure Set_Name
(This : in out Object'Class;
Name : in String) is
begin
This.Name.Set(Ada.Strings.Unbounded.To_Unbounded_String(Name));
end;
function Get_Parent (This : in Object'Class) return Access_Object is
begin
return This.Parent;
end;
procedure Set_Parent
(This : in out Object'Class;
Parent : in not null Access_Object) is
This_Ptr : Access_Object := This'Unchecked_Access;
begin
-- If the parent is found in this objects list of children(recursively), then fail
if This.Contains(Parent) or This_Ptr = Parent then
raise Circular_Reference_Exception;
end if;
-- unlink this from its existing parent
if This.Parent /= null then
This.Parent.Delete_Child(This_Ptr);
end if;
-- add the object "This" to the "Children" container belonging
-- to the object "Parent"
Parent.Children.Append(New_Item => This_Ptr);
This.Parent := Parent;
end;
function Get_Children
(This : in Object'Class) return Object_List.List is
begin
return This.Children;
end;
function Find_Child
(This : in Object'Class;
Name : in Ada.Strings.Unbounded.Unbounded_String;
Options : in Find_Child_Options := Find_Children_Recursively) return Access_Object is
begin
for Obj of This.Children loop
if Name = Obj.Name.Get then
return Obj;
end if;
if Options = Find_Children_Recursively then
return Obj.Find_Child(Name, Options);
end if;
end loop;
return null;
end;
function Find_Child
(This : in Object'Class;
Name : in String;
Options : in Find_Child_Options := Find_Children_Recursively)
return Access_Object is
The_Name : constant Ada.Strings.Unbounded.Unbounded_String :=
Ada.Strings.Unbounded.To_Unbounded_String(Name);
begin
return This.Find_Child(The_Name, Options);
end;
function Find_Children
(This : in Object'Class;
Name : in Ada.Strings.Unbounded.Unbounded_String;
Options : in Find_Child_Options := Find_Children_Recursively)
return Object_List.List is
Obj_List : Object_List.List;
begin
for Obj of This.Children loop
if Name = Obj.Name.Get then
Obj_List.Append(Obj);
end if;
if Options = Find_Children_Recursively then
declare
Children : Object_List.List := Obj.Find_Children(Name, Options);
begin
Obj_List.Splice(Before => Object_List.No_Element,
Source => Children);
end;
end if;
end loop;
return Obj_List;
end;
function Find_Children
(This : in Object'Class;
Name : in String;
Options : in Find_Child_Options := Find_Children_Recursively)
return Object_List.List is
The_Name : constant Ada.Strings.Unbounded.Unbounded_String :=
Ada.Strings.Unbounded.To_Unbounded_String(Name);
begin
return This.Find_Children(The_Name, Options);
end;
procedure Iterate
(This : in Access_Object;
Options : in Find_Child_Options := Find_Children_Recursively) is
begin
for Child of This.Children loop
if Options = Find_Children_Recursively then
Iterate(This => Child, Options => Options);
end if;
Proc(Child);
end loop;
end;
function Contains
(This : in out Object'Class;
Child : in not null Access_Object)
return Boolean is
This_Ptr : constant Access_Object := This'Unchecked_Access;
Obj : Access_Object := Child.Parent;
begin
while Obj /= null loop
if Obj = This_Ptr then
return True;
end if;
Obj := Obj.Parent;
end loop;
return False;
end;
procedure Delete_Child
(This : in out Object'Class;
Child : in out not null Access_Object;
Options : in Find_Child_Options := Find_Children_Recursively) is
I : Object_List.Cursor := This.Children.First;
Obj : Access_Object := null;
begin
loop
Obj := Object_List.Element(I);
if Obj = Child then
Obj.Parent := null;
This.Children.Delete(I);
return;
end if;
if Options = Find_Children_Recursively then
Obj.Delete_Child(Child, Options);
end if;
exit when I = This.Children.Last;
I := Object_List.Next(I);
end loop;
end;
procedure Finalize (This : in out Public_Part) is
begin
This.Destroyed.Emit(This'Unchecked_Access);
end Finalize;
procedure Finalize (This : in out Object) is
begin
-- TODO: delete all children?
null;
end Finalize;
end Aof.Core.Objects;
|
with Ada.Unchecked_Deallocation;
generic
type Item is tagged private; -- List Data Field
with function "="(ObjA: Item'Class; ObjB: Item'Class) return Boolean;
package hetro_stack is
type hetroStack is private;
type ItemPt is access all Item'Class;
type hetroStackElem is private;
type hetroStackElemPtr is access hetroStackElem;
procedure SetHeadNode(Stack: in out hetroStack);
procedure PushFront(Stack: in out hetroStack; Data: ItemPt);
procedure PushRear(Stack: in out hetroStack; Data: ItemPt);
function StackSize(Stack: hetroStack) return Integer;
function RemoveSpecificNode(Stack: in out hetroStack; Data: ItemPt) return ItemPt;
generic
with procedure PrintData(Data: Item'Class); -- Generic Print.
procedure PrintList(List: in hetroStack);
private
type hetroStackElem is record
Data: ItemPt;
LeftPtr: hetroStackElemPtr;
RightPtr: hetroStackElemPtr;
end record;
type hetroStack is record
Count: Integer := 0;
Top: hetroStackElemPtr := null;
end record;
end hetro_stack;
|
-----------------------------------------------------------------------
-- awa-components-wikis -- Wiki rendering component
-- Copyright (C) 2011, 2012, 2013, 2015, 2016, 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.Strings;
with Ada.Characters.Conversions;
with ASF.Contexts.Writer;
with ASF.Utils;
with Wiki.Documents;
with Wiki.Parsers;
with Wiki.Helpers;
with Wiki.Render.Html;
with Wiki.Filters.Html;
with Wiki.Filters.TOC;
with Wiki.Filters.Autolink;
with Wiki.Streams.Html;
package body AWA.Components.Wikis is
WIKI_ATTRIBUTE_NAMES : Util.Strings.String_Set.Set;
type Html_Writer_Type is limited new Wiki.Streams.Html.Html_Output_Stream with record
Writer : ASF.Contexts.Writer.Response_Writer_Access;
end record;
overriding
procedure Write (Writer : in out Html_Writer_Type;
Content : in Wide_Wide_String);
-- Write a single character to the string builder.
overriding
procedure Write (Writer : in out Html_Writer_Type;
Char : in Wide_Wide_Character);
-- Write an XML attribute within an XML element.
-- The attribute value is escaped according to the XML escape rules.
overriding
procedure Write_Wide_Attribute (Writer : in out Html_Writer_Type;
Name : in String;
Content : in Unbounded_Wide_Wide_String);
-- Write an XML attribute within an XML element.
-- The attribute value is escaped according to the XML escape rules.
overriding
procedure Write_Wide_Attribute (Writer : in out Html_Writer_Type;
Name : in String;
Content : in Wiki.Strings.WString);
-- Start an XML element with the given name.
overriding
procedure Start_Element (Writer : in out Html_Writer_Type;
Name : in String);
-- Closes an XML element of the given name.
overriding
procedure End_Element (Writer : in out Html_Writer_Type;
Name : in String);
-- Write a text escaping any character as necessary.
overriding
procedure Write_Wide_Text (Writer : in out Html_Writer_Type;
Content : in Wiki.Strings.WString);
overriding
procedure Write (Writer : in out Html_Writer_Type;
Content : in Wiki.Strings.WString) is
begin
Writer.Writer.Write_Wide_Raw (Content);
end Write;
-- ------------------------------
-- Write a single character to the string builder.
-- ------------------------------
overriding
procedure Write (Writer : in out Html_Writer_Type;
Char : in Wide_Wide_Character) is
begin
Writer.Writer.Write_Wide_Char (Char);
end Write;
-- ------------------------------
-- Write an XML attribute within an XML element.
-- The attribute value is escaped according to the XML escape rules.
-- ------------------------------
overriding
procedure Write_Wide_Attribute (Writer : in out Html_Writer_Type;
Name : in String;
Content : in Unbounded_Wide_Wide_String) is
begin
Writer.Writer.Write_Wide_Attribute (Name, Content);
end Write_Wide_Attribute;
-- ------------------------------
-- Write an XML attribute within an XML element.
-- The attribute value is escaped according to the XML escape rules.
-- ------------------------------
overriding
procedure Write_Wide_Attribute (Writer : in out Html_Writer_Type;
Name : in String;
Content : in Wiki.Strings.WString) is
begin
Writer.Writer.Write_Wide_Attribute (Name, Content);
end Write_Wide_Attribute;
-- ------------------------------
-- Start an XML element with the given name.
-- ------------------------------
overriding
procedure Start_Element (Writer : in out Html_Writer_Type;
Name : in String) is
begin
Writer.Writer.Start_Element (Name);
end Start_Element;
-- ------------------------------
-- Closes an XML element of the given name.
-- ------------------------------
overriding
procedure End_Element (Writer : in out Html_Writer_Type;
Name : in String) is
begin
Writer.Writer.End_Element (Name);
end End_Element;
-- ------------------------------
-- Write a text escaping any character as necessary.
-- ------------------------------
overriding
procedure Write_Wide_Text (Writer : in out Html_Writer_Type;
Content : in Wiki.Strings.WString) is
begin
Writer.Writer.Write_Wide_Text (Content);
end Write_Wide_Text;
-- ------------------------------
-- Get the wiki format style. The format style is obtained from the <b>format</b>
-- attribute name.
-- ------------------------------
function Get_Wiki_Style (UI : in UIWiki;
Context : in Faces_Context'Class)
return Wiki.Wiki_Syntax is
Format : constant String := UI.Get_Attribute (Name => FORMAT_NAME,
Context => Context,
Default => "dotclear");
begin
if Format = "dotclear" or Format = "FORMAT_DOTCLEAR" then
return Wiki.SYNTAX_DOTCLEAR;
elsif Format = "google" then
return Wiki.SYNTAX_GOOGLE;
elsif Format = "phpbb" or Format = "FORMAT_PHPBB" then
return Wiki.SYNTAX_PHPBB;
elsif Format = "creole" or Format = "FORMAT_CREOLE" then
return Wiki.SYNTAX_CREOLE;
elsif Format = "markdown" or Format = "FORMAT_MARKDOWN" then
return Wiki.SYNTAX_MARKDOWN;
elsif Format = "mediawiki" or Format = "FORMAT_MEDIAWIKI" then
return Wiki.SYNTAX_MEDIA_WIKI;
else
return Wiki.SYNTAX_MIX;
end if;
end Get_Wiki_Style;
-- ------------------------------
-- Get the links renderer that must be used to render image and page links.
-- ------------------------------
function Get_Links_Renderer (UI : in UIWiki;
Context : in Faces_Context'Class)
return Wiki.Render.Links.Link_Renderer_Access is
Value : constant Util.Beans.Objects.Object := UI.Get_Attribute (Context, LINKS_NAME);
Bean : constant access Util.Beans.Basic.Readonly_Bean'Class
:= Util.Beans.Objects.To_Bean (Value);
begin
if Bean = null then
return null;
elsif not (Bean.all in Link_Renderer_Bean'Class) then
return null;
else
return Link_Renderer_Bean'Class (Bean.all)'Access;
end if;
end Get_Links_Renderer;
-- ------------------------------
-- Get the plugin factory that must be used by the Wiki parser.
-- ------------------------------
function Get_Plugin_Factory (UI : in UIWiki;
Context : in Faces_Context'Class)
return Wiki.Plugins.Plugin_Factory_Access is
Value : constant Util.Beans.Objects.Object := UI.Get_Attribute (Context, PLUGINS_NAME);
Bean : constant access Util.Beans.Basic.Readonly_Bean'Class
:= Util.Beans.Objects.To_Bean (Value);
begin
if Bean = null then
return null;
elsif not (Bean.all in Wiki.Plugins.Plugin_Factory'Class) then
return null;
else
return Wiki.Plugins.Plugin_Factory'Class (Bean.all)'Access;
end if;
end Get_Plugin_Factory;
-- ------------------------------
-- Render the wiki text
-- ------------------------------
overriding
procedure Encode_Begin (UI : in UIWiki;
Context : in out Faces_Context'Class) is
use ASF.Contexts.Writer;
use type Wiki.Render.Links.Link_Renderer_Access;
use type Wiki.Plugins.Plugin_Factory_Access;
begin
if not UI.Is_Rendered (Context) then
return;
end if;
declare
Writer : constant Response_Writer_Access := Context.Get_Response_Writer;
Html : aliased Html_Writer_Type;
Doc : Wiki.Documents.Document;
TOC : aliased Wiki.Filters.TOC.TOC_Filter;
Autolink : aliased Wiki.Filters.Autolink.Autolink_Filter;
Renderer : aliased Wiki.Render.Html.Html_Renderer;
Filter : aliased Wiki.Filters.Html.Html_Filter_Type;
Format : constant Wiki.Wiki_Syntax := UI.Get_Wiki_Style (Context);
Value : constant Util.Beans.Objects.Object := UI.Get_Attribute (Context, VALUE_NAME);
Links : Wiki.Render.Links.Link_Renderer_Access;
Plugins : Wiki.Plugins.Plugin_Factory_Access;
Engine : Wiki.Parsers.Parser;
begin
Html.Writer := Writer;
Writer.Start_Element ("div");
UI.Render_Attributes (Context, WIKI_ATTRIBUTE_NAMES, Writer);
if not Util.Beans.Objects.Is_Empty (Value) then
Plugins := UI.Get_Plugin_Factory (Context);
if Plugins /= null then
Engine.Set_Plugin_Factory (Plugins);
end if;
Links := UI.Get_Links_Renderer (Context);
if Links /= null then
Renderer.Set_Link_Renderer (Links);
end if;
Engine.Add_Filter (Autolink'Unchecked_Access);
Engine.Add_Filter (TOC'Unchecked_Access);
Engine.Add_Filter (Filter'Unchecked_Access);
Engine.Set_Syntax (Format);
Engine.Parse (Util.Beans.Objects.To_String (Value), Doc);
Renderer.Set_Output_Stream (Html'Unchecked_Access);
Renderer.Set_Render_TOC (UI.Get_Attribute (TOC_NAME, Context, False));
Renderer.Render (Doc);
end if;
Writer.End_Element ("div");
end;
end Encode_Begin;
-- ------------------------------
-- Get the value identified by the name.
-- ------------------------------
overriding
function Get_Value (From : in Link_Renderer_Bean;
Name : in String) return Util.Beans.Objects.Object is
begin
if Name = IMAGE_PREFIX_ATTR then
return Util.Beans.Objects.To_Object (From.Image_Prefix);
elsif Name = PAGE_PREFIX_ATTR then
return Util.Beans.Objects.To_Object (From.Page_Prefix);
else
return Util.Beans.Objects.Null_Object;
end if;
end Get_Value;
-- ------------------------------
-- Set the value identified by the name.
-- ------------------------------
overriding
procedure Set_Value (From : in out Link_Renderer_Bean;
Name : in String;
Value : in Util.Beans.Objects.Object) is
begin
if Name = IMAGE_PREFIX_ATTR then
From.Image_Prefix := Util.Beans.Objects.To_Unbounded_Wide_Wide_String (Value);
elsif Name = PAGE_PREFIX_ATTR then
From.Page_Prefix := Util.Beans.Objects.To_Unbounded_Wide_Wide_String (Value);
end if;
end Set_Value;
function Starts_With (Content : in Unbounded_Wide_Wide_String;
Item : in String) return Boolean is
use Ada.Characters.Conversions;
Pos : Positive := 1;
begin
if Length (Content) < Item'Length then
return False;
end if;
for I in Item'Range loop
if Item (I) /= To_Character (Element (Content, Pos)) then
return False;
end if;
Pos := Pos + 1;
end loop;
return True;
end Starts_With;
procedure Make_Link (Renderer : in Link_Renderer_Bean;
Link : in Wiki.Strings.WString;
Prefix : in Unbounded_Wide_Wide_String;
URI : out Unbounded_Wide_Wide_String) is
pragma Unreferenced (Renderer);
begin
if Wiki.Helpers.Is_Url (Link) then
URI := To_Unbounded_Wide_Wide_String (Link);
else
URI := Prefix & Link;
end if;
end Make_Link;
-- ------------------------------
-- Get the image link that must be rendered from the wiki image link.
-- ------------------------------
overriding
procedure Make_Image_Link (Renderer : in out Link_Renderer_Bean;
Link : in Wiki.Strings.WString;
URI : out Unbounded_Wide_Wide_String;
Width : in out Natural;
Height : in out Natural) is
begin
Renderer.Make_Link (Link, Renderer.Image_Prefix, URI);
Width := 0;
Height := 0;
end Make_Image_Link;
-- ------------------------------
-- Get the page link that must be rendered from the wiki page link.
-- ------------------------------
overriding
procedure Make_Page_Link (Renderer : in out Link_Renderer_Bean;
Link : in Wiki.Strings.WString;
URI : out Unbounded_Wide_Wide_String;
Exists : out Boolean) is
begin
Renderer.Make_Link (Link, Renderer.Page_Prefix, URI);
Exists := True;
end Make_Page_Link;
begin
ASF.Utils.Set_Text_Attributes (WIKI_ATTRIBUTE_NAMES);
end AWA.Components.Wikis;
|
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Elements.Type_Definitions;
with Program.Lexical_Elements;
with Program.Elements.Expressions;
with Program.Elements.Component_Definitions;
package Program.Elements.Unconstrained_Array_Types is
pragma Pure (Program.Elements.Unconstrained_Array_Types);
type Unconstrained_Array_Type is
limited interface and Program.Elements.Type_Definitions.Type_Definition;
type Unconstrained_Array_Type_Access is
access all Unconstrained_Array_Type'Class with Storage_Size => 0;
not overriding function Index_Subtypes
(Self : Unconstrained_Array_Type)
return not null Program.Elements.Expressions.Expression_Vector_Access
is abstract;
not overriding function Component_Definition
(Self : Unconstrained_Array_Type)
return not null Program.Elements.Component_Definitions
.Component_Definition_Access is abstract;
type Unconstrained_Array_Type_Text is limited interface;
type Unconstrained_Array_Type_Text_Access is
access all Unconstrained_Array_Type_Text'Class with Storage_Size => 0;
not overriding function To_Unconstrained_Array_Type_Text
(Self : in out Unconstrained_Array_Type)
return Unconstrained_Array_Type_Text_Access is abstract;
not overriding function Array_Token
(Self : Unconstrained_Array_Type_Text)
return not null Program.Lexical_Elements.Lexical_Element_Access
is abstract;
not overriding function Left_Bracket_Token
(Self : Unconstrained_Array_Type_Text)
return not null Program.Lexical_Elements.Lexical_Element_Access
is abstract;
not overriding function Right_Bracket_Token
(Self : Unconstrained_Array_Type_Text)
return not null Program.Lexical_Elements.Lexical_Element_Access
is abstract;
not overriding function Of_Token
(Self : Unconstrained_Array_Type_Text)
return not null Program.Lexical_Elements.Lexical_Element_Access
is abstract;
end Program.Elements.Unconstrained_Array_Types;
|
with
ada.Containers;
package lace.Event
--
-- The base class for all derived event types.
--
is
pragma Pure;
subtype subject_Name is String;
subtype observer_Name is String;
type Item is tagged null record;
null_Event : constant Event.item;
procedure destruct (Self : in out Item) is null;
type Kind is new String;
--
-- Uniquely identifies each derived event class.
--
-- Each derived event class will have its own Kind.
--
-- Maps to the extended name of 'ada.Tags.Tag_type' value of each derived
-- event class (see 'Conversions' section in 'lace.Event.utility').
function Hash (the_Kind : in Kind) return ada.Containers.Hash_type;
private
null_Event : constant Event.item := (others => <>);
end lace.Event;
|
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- S Y S T E M . M E M O R Y --
-- --
-- B o d y --
-- --
-- Copyright (C) 2001-2011, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- --
-- --
-- --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
-- Simple implementation for use with ZFP
with System.Storage_Elements;
with Unchecked_Conversion;
package body System.Memory is
package SSE renames System.Storage_Elements;
Default_Size : constant := 20 * 1_024;
type Mark_Id is new SSE.Integer_Address;
type Memory is array (Mark_Id range <>) of SSE.Storage_Element;
for Memory'Alignment use Standard'Maximum_Alignment;
Mem : Memory (1 .. Default_Size);
Top : Mark_Id := Mem'First;
function To_Mark_Id is new Unchecked_Conversion
(size_t, Mark_Id);
----------------
-- For C code --
----------------
function Malloc (Size : size_t) return System.Address;
pragma Export (C, Malloc, "malloc");
function Calloc (N_Elem : size_t; Elem_Size : size_t) return System.Address;
pragma Export (C, Calloc, "calloc");
procedure Free (Ptr : System.Address);
pragma Export (C, Free, "free");
-----------
-- Alloc --
-----------
function Alloc (Size : size_t) return System.Address is
Max_Align : constant Mark_Id := Mark_Id (Standard'Maximum_Alignment);
Max_Size : Mark_Id :=
((To_Mark_Id (Size) + Max_Align - 1) / Max_Align) *
Max_Align;
Location : constant Mark_Id := Top;
begin
if Max_Size = 0 then
Max_Size := Max_Align;
end if;
if Size = size_t'Last then
raise Storage_Error;
end if;
Top := Top + Max_Size;
if Top > Default_Size then
raise Storage_Error;
end if;
return Mem (Location)'Address;
end Alloc;
------------
-- Malloc --
------------
function Malloc (Size : size_t) return System.Address is
begin
return Alloc (Size);
end Malloc;
------------
-- Calloc --
------------
function Calloc
(N_Elem : size_t; Elem_Size : size_t) return System.Address
is
begin
return Malloc (N_Elem * Elem_Size);
end Calloc;
----------
-- Free --
----------
procedure Free (Ptr : System.Address) is
pragma Unreferenced (Ptr);
begin
null;
end Free;
end System.Memory;
|
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- S Y S T E M . V A L _ I N T --
-- --
-- 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 routines for scanning signed Integer values for use
-- in Text_IO.Integer_IO, and the Value attribute.
package System.Val_Int is
pragma Pure;
function Scan_Integer
(Str : String;
Ptr : not null access Integer;
Max : Integer) return Integer;
-- This function scans the string starting at Str (Ptr.all) for a valid
-- integer according to the syntax described in (RM 3.5(43)). The substring
-- scanned extends no further than Str (Max). There are three cases for the
-- return:
--
-- If a valid integer is found after scanning past any initial spaces, then
-- Ptr.all is updated past the last character of the integer (but trailing
-- spaces are not scanned out).
--
-- If no valid integer is found, then Ptr.all points either to an initial
-- non-digit character, or to Max + 1 if the field is all spaces and the
-- exception Constraint_Error is raised.
--
-- If a syntactically valid integer is scanned, but the value is out of
-- range, or, in the based case, the base value is out of range or there
-- is an out of range digit, then Ptr.all points past the integer, and
-- Constraint_Error is raised.
--
-- Note: these rules correspond to the requirements for leaving the pointer
-- positioned in Text_Io.Get
--
-- Note: if Str is null, i.e. if Max is less than Ptr, then this is a
-- special case of an all-blank string, and Ptr is unchanged, and hence
-- is greater than Max as required in this case.
function Value_Integer (Str : String) return Integer;
-- Used in computing X'Value (Str) where X is a signed integer type whose
-- base range does not exceed the base range of Integer. Str is the string
-- argument of the attribute. Constraint_Error is raised if the string is
-- malformed, or if the value is out of range.
end System.Val_Int;
|
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ADA.CONTAINERS.RED_BLACK_TREES.GENERIC_BOUNDED_SET_OPERATIONS --
-- --
-- B o d y --
-- --
-- Copyright (C) 2004-2019, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- This unit was originally developed by Matthew J Heaney. --
------------------------------------------------------------------------------
with System; use type System.Address;
package body Ada.Containers.Red_Black_Trees.Generic_Bounded_Set_Operations is
pragma Warnings (Off, "variable ""Busy*"" is not referenced");
pragma Warnings (Off, "variable ""Lock*"" is not referenced");
-- See comment in Ada.Containers.Helpers
-----------------------
-- Local Subprograms --
-----------------------
function Copy (Source : Set_Type) return Set_Type;
----------
-- Copy --
----------
function Copy (Source : Set_Type) return Set_Type is
begin
return Target : Set_Type (Source.Length) do
Assign (Target => Target, Source => Source);
end return;
end Copy;
--------------------
-- Set_Difference --
--------------------
procedure Set_Difference (Target : in out Set_Type; Source : Set_Type) is
Tgt, Src : Count_Type;
TN : Nodes_Type renames Target.Nodes;
SN : Nodes_Type renames Source.Nodes;
Compare : Integer;
begin
if Target'Address = Source'Address then
TC_Check (Target.TC);
Tree_Operations.Clear_Tree (Target);
return;
end if;
if Source.Length = 0 then
return;
end if;
TC_Check (Target.TC);
Tgt := Target.First;
Src := Source.First;
loop
if Tgt = 0 then
exit;
end if;
if Src = 0 then
exit;
end if;
-- Per AI05-0022, the container implementation is required to detect
-- element tampering by a generic actual subprogram.
declare
Lock_Target : With_Lock (Target.TC'Unrestricted_Access);
Lock_Source : With_Lock (Source.TC'Unrestricted_Access);
begin
if Is_Less (TN (Tgt), SN (Src)) then
Compare := -1;
elsif Is_Less (SN (Src), TN (Tgt)) then
Compare := 1;
else
Compare := 0;
end if;
end;
if Compare < 0 then
Tgt := Tree_Operations.Next (Target, Tgt);
elsif Compare > 0 then
Src := Tree_Operations.Next (Source, Src);
else
declare
X : constant Count_Type := Tgt;
begin
Tgt := Tree_Operations.Next (Target, Tgt);
Tree_Operations.Delete_Node_Sans_Free (Target, X);
Tree_Operations.Free (Target, X);
end;
Src := Tree_Operations.Next (Source, Src);
end if;
end loop;
end Set_Difference;
function Set_Difference (Left, Right : Set_Type) return Set_Type is
begin
if Left'Address = Right'Address then
return S : Set_Type (0); -- Empty set
end if;
if Left.Length = 0 then
return S : Set_Type (0); -- Empty set
end if;
if Right.Length = 0 then
return Copy (Left);
end if;
return Result : Set_Type (Left.Length) do
-- Per AI05-0022, the container implementation is required to detect
-- element tampering by a generic actual subprogram.
declare
Lock_Left : With_Lock (Left.TC'Unrestricted_Access);
Lock_Right : With_Lock (Right.TC'Unrestricted_Access);
L_Node : Count_Type;
R_Node : Count_Type;
Dst_Node : Count_Type;
pragma Warnings (Off, Dst_Node);
begin
L_Node := Left.First;
R_Node := Right.First;
loop
if L_Node = 0 then
exit;
end if;
if R_Node = 0 then
while L_Node /= 0 loop
Insert_With_Hint
(Dst_Set => Result,
Dst_Hint => 0,
Src_Node => Left.Nodes (L_Node),
Dst_Node => Dst_Node);
L_Node := Tree_Operations.Next (Left, L_Node);
end loop;
exit;
end if;
if Is_Less (Left.Nodes (L_Node), Right.Nodes (R_Node)) then
Insert_With_Hint
(Dst_Set => Result,
Dst_Hint => 0,
Src_Node => Left.Nodes (L_Node),
Dst_Node => Dst_Node);
L_Node := Tree_Operations.Next (Left, L_Node);
elsif Is_Less (Right.Nodes (R_Node), Left.Nodes (L_Node)) then
R_Node := Tree_Operations.Next (Right, R_Node);
else
L_Node := Tree_Operations.Next (Left, L_Node);
R_Node := Tree_Operations.Next (Right, R_Node);
end if;
end loop;
end;
end return;
end Set_Difference;
----------------------
-- Set_Intersection --
----------------------
procedure Set_Intersection
(Target : in out Set_Type;
Source : Set_Type)
is
Tgt : Count_Type;
Src : Count_Type;
Compare : Integer;
begin
if Target'Address = Source'Address then
return;
end if;
TC_Check (Target.TC);
if Source.Length = 0 then
Tree_Operations.Clear_Tree (Target);
return;
end if;
Tgt := Target.First;
Src := Source.First;
while Tgt /= 0
and then Src /= 0
loop
-- Per AI05-0022, the container implementation is required to detect
-- element tampering by a generic actual subprogram.
declare
Lock_Target : With_Lock (Target.TC'Unrestricted_Access);
Lock_Source : With_Lock (Source.TC'Unrestricted_Access);
begin
if Is_Less (Target.Nodes (Tgt), Source.Nodes (Src)) then
Compare := -1;
elsif Is_Less (Source.Nodes (Src), Target.Nodes (Tgt)) then
Compare := 1;
else
Compare := 0;
end if;
end;
if Compare < 0 then
declare
X : constant Count_Type := Tgt;
begin
Tgt := Tree_Operations.Next (Target, Tgt);
Tree_Operations.Delete_Node_Sans_Free (Target, X);
Tree_Operations.Free (Target, X);
end;
elsif Compare > 0 then
Src := Tree_Operations.Next (Source, Src);
else
Tgt := Tree_Operations.Next (Target, Tgt);
Src := Tree_Operations.Next (Source, Src);
end if;
end loop;
while Tgt /= 0 loop
declare
X : constant Count_Type := Tgt;
begin
Tgt := Tree_Operations.Next (Target, Tgt);
Tree_Operations.Delete_Node_Sans_Free (Target, X);
Tree_Operations.Free (Target, X);
end;
end loop;
end Set_Intersection;
function Set_Intersection (Left, Right : Set_Type) return Set_Type is
begin
if Left'Address = Right'Address then
return Copy (Left);
end if;
return Result : Set_Type (Count_Type'Min (Left.Length, Right.Length)) do
-- Per AI05-0022, the container implementation is required to detect
-- element tampering by a generic actual subprogram.
declare
Lock_Left : With_Lock (Left.TC'Unrestricted_Access);
Lock_Right : With_Lock (Right.TC'Unrestricted_Access);
L_Node : Count_Type;
R_Node : Count_Type;
Dst_Node : Count_Type;
pragma Warnings (Off, Dst_Node);
begin
L_Node := Left.First;
R_Node := Right.First;
loop
if L_Node = 0 then
exit;
end if;
if R_Node = 0 then
exit;
end if;
if Is_Less (Left.Nodes (L_Node), Right.Nodes (R_Node)) then
L_Node := Tree_Operations.Next (Left, L_Node);
elsif Is_Less (Right.Nodes (R_Node), Left.Nodes (L_Node)) then
R_Node := Tree_Operations.Next (Right, R_Node);
else
Insert_With_Hint
(Dst_Set => Result,
Dst_Hint => 0,
Src_Node => Left.Nodes (L_Node),
Dst_Node => Dst_Node);
L_Node := Tree_Operations.Next (Left, L_Node);
R_Node := Tree_Operations.Next (Right, R_Node);
end if;
end loop;
end;
end return;
end Set_Intersection;
----------------
-- Set_Subset --
----------------
function Set_Subset
(Subset : Set_Type;
Of_Set : Set_Type) return Boolean
is
begin
if Subset'Address = Of_Set'Address then
return True;
end if;
if Subset.Length > Of_Set.Length then
return False;
end if;
-- Per AI05-0022, the container implementation is required to detect
-- element tampering by a generic actual subprogram.
declare
Lock_Subset : With_Lock (Subset.TC'Unrestricted_Access);
Lock_Of_Set : With_Lock (Of_Set.TC'Unrestricted_Access);
Subset_Node : Count_Type;
Set_Node : Count_Type;
begin
Subset_Node := Subset.First;
Set_Node := Of_Set.First;
loop
if Set_Node = 0 then
return Subset_Node = 0;
end if;
if Subset_Node = 0 then
return True;
end if;
if Is_Less (Subset.Nodes (Subset_Node),
Of_Set.Nodes (Set_Node))
then
return False;
end if;
if Is_Less (Of_Set.Nodes (Set_Node),
Subset.Nodes (Subset_Node))
then
Set_Node := Tree_Operations.Next (Of_Set, Set_Node);
else
Set_Node := Tree_Operations.Next (Of_Set, Set_Node);
Subset_Node := Tree_Operations.Next (Subset, Subset_Node);
end if;
end loop;
end;
end Set_Subset;
-----------------
-- Set_Overlap --
-----------------
function Set_Overlap (Left, Right : Set_Type) return Boolean is
begin
if Left'Address = Right'Address then
return Left.Length /= 0;
end if;
-- Per AI05-0022, the container implementation is required to detect
-- element tampering by a generic actual subprogram.
declare
Lock_Left : With_Lock (Left.TC'Unrestricted_Access);
Lock_Right : With_Lock (Right.TC'Unrestricted_Access);
L_Node : Count_Type;
R_Node : Count_Type;
begin
L_Node := Left.First;
R_Node := Right.First;
loop
if L_Node = 0
or else R_Node = 0
then
return False;
end if;
if Is_Less (Left.Nodes (L_Node), Right.Nodes (R_Node)) then
L_Node := Tree_Operations.Next (Left, L_Node);
elsif Is_Less (Right.Nodes (R_Node), Left.Nodes (L_Node)) then
R_Node := Tree_Operations.Next (Right, R_Node);
else
return True;
end if;
end loop;
end;
end Set_Overlap;
------------------------------
-- Set_Symmetric_Difference --
------------------------------
procedure Set_Symmetric_Difference
(Target : in out Set_Type;
Source : Set_Type)
is
Tgt : Count_Type;
Src : Count_Type;
New_Tgt_Node : Count_Type;
pragma Warnings (Off, New_Tgt_Node);
Compare : Integer;
begin
if Target'Address = Source'Address then
Tree_Operations.Clear_Tree (Target);
return;
end if;
Tgt := Target.First;
Src := Source.First;
loop
if Tgt = 0 then
while Src /= 0 loop
Insert_With_Hint
(Dst_Set => Target,
Dst_Hint => 0,
Src_Node => Source.Nodes (Src),
Dst_Node => New_Tgt_Node);
Src := Tree_Operations.Next (Source, Src);
end loop;
return;
end if;
if Src = 0 then
return;
end if;
-- Per AI05-0022, the container implementation is required to detect
-- element tampering by a generic actual subprogram.
declare
Lock_Target : With_Lock (Target.TC'Unrestricted_Access);
Lock_Source : With_Lock (Source.TC'Unrestricted_Access);
begin
if Is_Less (Target.Nodes (Tgt), Source.Nodes (Src)) then
Compare := -1;
elsif Is_Less (Source.Nodes (Src), Target.Nodes (Tgt)) then
Compare := 1;
else
Compare := 0;
end if;
end;
if Compare < 0 then
Tgt := Tree_Operations.Next (Target, Tgt);
elsif Compare > 0 then
Insert_With_Hint
(Dst_Set => Target,
Dst_Hint => Tgt,
Src_Node => Source.Nodes (Src),
Dst_Node => New_Tgt_Node);
Src := Tree_Operations.Next (Source, Src);
else
declare
X : constant Count_Type := Tgt;
begin
Tgt := Tree_Operations.Next (Target, Tgt);
Tree_Operations.Delete_Node_Sans_Free (Target, X);
Tree_Operations.Free (Target, X);
end;
Src := Tree_Operations.Next (Source, Src);
end if;
end loop;
end Set_Symmetric_Difference;
function Set_Symmetric_Difference
(Left, Right : Set_Type) return Set_Type
is
begin
if Left'Address = Right'Address then
return S : Set_Type (0); -- Empty set
end if;
if Right.Length = 0 then
return Copy (Left);
end if;
if Left.Length = 0 then
return Copy (Right);
end if;
return Result : Set_Type (Left.Length + Right.Length) do
-- Per AI05-0022, the container implementation is required to detect
-- element tampering by a generic actual subprogram.
declare
Lock_Left : With_Lock (Left.TC'Unrestricted_Access);
Lock_Right : With_Lock (Right.TC'Unrestricted_Access);
L_Node : Count_Type;
R_Node : Count_Type;
Dst_Node : Count_Type;
pragma Warnings (Off, Dst_Node);
begin
L_Node := Left.First;
R_Node := Right.First;
loop
if L_Node = 0 then
while R_Node /= 0 loop
Insert_With_Hint
(Dst_Set => Result,
Dst_Hint => 0,
Src_Node => Right.Nodes (R_Node),
Dst_Node => Dst_Node);
R_Node := Tree_Operations.Next (Right, R_Node);
end loop;
exit;
end if;
if R_Node = 0 then
while L_Node /= 0 loop
Insert_With_Hint
(Dst_Set => Result,
Dst_Hint => 0,
Src_Node => Left.Nodes (L_Node),
Dst_Node => Dst_Node);
L_Node := Tree_Operations.Next (Left, L_Node);
end loop;
exit;
end if;
if Is_Less (Left.Nodes (L_Node), Right.Nodes (R_Node)) then
Insert_With_Hint
(Dst_Set => Result,
Dst_Hint => 0,
Src_Node => Left.Nodes (L_Node),
Dst_Node => Dst_Node);
L_Node := Tree_Operations.Next (Left, L_Node);
elsif Is_Less (Right.Nodes (R_Node), Left.Nodes (L_Node)) then
Insert_With_Hint
(Dst_Set => Result,
Dst_Hint => 0,
Src_Node => Right.Nodes (R_Node),
Dst_Node => Dst_Node);
R_Node := Tree_Operations.Next (Right, R_Node);
else
L_Node := Tree_Operations.Next (Left, L_Node);
R_Node := Tree_Operations.Next (Right, R_Node);
end if;
end loop;
end;
end return;
end Set_Symmetric_Difference;
---------------
-- Set_Union --
---------------
procedure Set_Union (Target : in out Set_Type; Source : Set_Type) is
Hint : Count_Type := 0;
procedure Process (Node : Count_Type);
pragma Inline (Process);
procedure Iterate is new Tree_Operations.Generic_Iteration (Process);
-------------
-- Process --
-------------
procedure Process (Node : Count_Type) is
begin
Insert_With_Hint
(Dst_Set => Target,
Dst_Hint => Hint,
Src_Node => Source.Nodes (Node),
Dst_Node => Hint);
end Process;
-- Start of processing for Union
begin
if Target'Address = Source'Address then
return;
end if;
-- Per AI05-0022, the container implementation is required to detect
-- element tampering by a generic actual subprogram.
declare
Lock_Source : With_Lock (Source.TC'Unrestricted_Access);
begin
-- Note that there's no way to decide a priori whether the target has
-- enough capacity for the union with source. We cannot simply
-- compare the sum of the existing lengths to the capacity of the
-- target, because equivalent items from source are not included in
-- the union.
Iterate (Source);
end;
end Set_Union;
function Set_Union (Left, Right : Set_Type) return Set_Type is
begin
if Left'Address = Right'Address then
return Copy (Left);
end if;
if Left.Length = 0 then
return Copy (Right);
end if;
if Right.Length = 0 then
return Copy (Left);
end if;
return Result : Set_Type (Left.Length + Right.Length) do
declare
Lock_Left : With_Lock (Left.TC'Unrestricted_Access);
Lock_Right : With_Lock (Right.TC'Unrestricted_Access);
begin
Assign (Target => Result, Source => Left);
Insert_Right : declare
Hint : Count_Type := 0;
procedure Process (Node : Count_Type);
pragma Inline (Process);
procedure Iterate is
new Tree_Operations.Generic_Iteration (Process);
-------------
-- Process --
-------------
procedure Process (Node : Count_Type) is
begin
Insert_With_Hint
(Dst_Set => Result,
Dst_Hint => Hint,
Src_Node => Right.Nodes (Node),
Dst_Node => Hint);
end Process;
-- Start of processing for Insert_Right
begin
Iterate (Right);
end Insert_Right;
end;
end return;
end Set_Union;
end Ada.Containers.Red_Black_Trees.Generic_Bounded_Set_Operations;
|
-- --
-- procedure Copyright (c) Dmitry A. Kazakov --
-- Parsers.Generic_Source. Luebeck --
-- Get_Cpp_Blank Winter, 2004 --
-- Interface --
-- Last revision : 11:37 13 Oct 2007 --
-- --
-- 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. --
--____________________________________________________________________--
--
-- Get_Cpp_Blank -- Skip blanks in the source
--
-- Code - The source code
-- Got_It - Set to false if the source end was reached
-- Error - Set to true if an unclosed /*..*/ detected
-- Error_At - The location of erroneous comment
--
-- This procedure skips blanks by consuming C++ comments and characters
-- CR, HT, VT, LF, FF, SP (carriage return, horizontal tabulation,
-- vertical tabulation, line feed, form feed, space). It also skips to
-- the next source line when necessary. A C++ comment either starts
-- with // (double forward slash) and continues to the end of the
-- current line or with /* (forward slash, asterisk) and continues to
-- the first appearance of closing */. This may include several source
-- code lines. Upon an unclosed /*..*/ comment the source is read till
-- the end. In this case Got_It is false, Error is true and Error_At is
-- the location of /* in the source. In all other cases Error is false
-- and Error_At should be ignored.
--
generic
procedure Parsers.Generic_Source.Get_Cpp_Blank
( Code : in out Source_Type;
Got_It : out Boolean;
Error : out Boolean;
Error_At : out Location_Type
);
|
-- This spec has been automatically generated from out.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with System;
package MSP430_SVD.INTERRUPTS is
pragma Preelaborate;
-----------------
-- Peripherals --
-----------------
type INTERRUPTS_Peripheral is record
end record
with Volatile;
for INTERRUPTS_Peripheral use record
end record;
INTERRUPTS_Periph : aliased _INTERRUPTS_Peripheral
with Import, Address => _INTERRUPTS_Base;
end MSP430_SVD.INTERRUPTS;
|
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- XML Processor --
-- --
-- Testsuite 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$
------------------------------------------------------------------------------
package XMLConf is
pragma Pure;
type Test_Kinds is (Valid, Invalid, Not_Wellformed, Error);
type Test_Flags is array (Test_Kinds) of Boolean;
end XMLConf;
|
-- { dg-do compile }
package body sync1 is
protected body Chopstick is
entry Pick_Up when not Busy is
begin
Busy := True;
end Pick_Up;
procedure Put_Down is
begin
Busy := False;
end Put_Down;
end Chopstick;
end sync1;
|
-- Package body Scaliger.Ada_conversion
----------------------------------------------------------------------------
-- Copyright Miletus 2015
-- Permission is hereby granted, free of charge, to any person obtaining
-- a copy of this software and associated documentation files (the
-- "Software"), to deal in the Software without restriction, including
-- without limitation the rights to use, copy, modify, merge, publish,
-- distribute, sublicense, and/or sell copies of the Software, and to
-- permit persons to whom the Software is furnished to do so, subject to
-- the following conditions:
-- 1. The above copyright notice and this permission notice shall be included
-- in all copies or substantial portions of the Software.
-- 2. Changes with respect to any former version shall be documented.
--
-- The software is provided "as is", without warranty of any kind,
-- express of implied, including but not limited to the warranties of
-- merchantability, fitness for a particular purpose and noninfringement.
-- In no event shall the authors of copyright holders be liable for any
-- claim, damages or other liability, whether in an action of contract,
-- tort or otherwise, arising from, out of or in connection with the software
-- or the use or other dealings in the software.
-- Inquiries: www.calendriermilesien.org
-------------------------------------------------------------------------------
with Calendar; use Calendar;
with Ada.Calendar.Formatting; use Ada.Calendar.Formatting;
package body Scaliger.Ada_conversion is
-- Julian_Time and Julian_Duration are also in seconds.
Day_Unit : constant := 86_400;
Half_Day : constant := 43_200.0; -- used as a fixed real operand
-- Work_Day_Unit: constant Work_duration := 86_400.0;
-- One day expressed in seconds.
Ada_Zero_Time : Time := Time_Of (2150, 1, 1, 0.0,
Time_Zone => 0);
-- Ada time epoch choosen in the middle of the Ada time span (1901..2399)
-- in order to minimize computation problems with a too high duration
Ada_Zero_in_Julian : constant := 2_506_331.5 * Day_Unit;
-- Julian time corresponding to Ada_Zero_Time
Ada_Zero_Day_in_Julian : constant := 2_506_332;
-- Julian day corresponding to the day of the Ada epoch, at 12h UTC
function Julian_Time_Of (Ada_Timestamp : Time) return Historical_Time is
Ada_Time_Offset : Duration := Ada_Timestamp - Ada_Zero_Time;
begin
return Historical_Duration (Ada_Time_Offset) + Ada_Zero_in_Julian;
end Julian_Time_Of;
function Time_Of (Julian_Timestamp : Historical_Time) return Time is
Duration_offset : Duration :=
Duration_Of (Julian_Timestamp - Ada_Zero_in_Julian);
-- Here the accuracy relies on function Duration_Of
begin
return Ada_Zero_Time + Duration_offset;
end Time_Of;
function Julian_Duration_Of (Ada_Offset : Duration) return Historical_Duration is
begin
return Historical_Duration (Ada_Offset);
end Julian_Duration_Of;
function Julian_Duration_Of (Day : Julian_Day_Duration) return Historical_Duration is
begin
return Day_Unit * Historical_Duration (Day);
end Julian_Duration_Of;
function Duration_Of (Julian_Offset : Historical_Duration) return Duration is
-- since Julian Duration is stored as seconds,
-- we make here a simple type conversion.
-- The only problem could be an error of bounds.
begin
return Duration (Julian_Offset);
end Duration_Of;
function Day_Julian_Offset (Ada_Daytime : Day_Duration)
return Day_Historical_Duration is
-- Time of the day expressed in UTC time (0..86_400.0 s)
-- to Julian duration expressed in (-0.5..+0.5) but stored in seconds
Offset : Historical_Duration := Historical_Duration(Ada_Daytime)- Half_Day;
begin
return Offset;
end Day_Julian_Offset;
function Day_Offset (Julian_Offset : Day_Historical_Duration)return Day_Duration
is
-- Julian day duration -0.5..+0.5 but stored in seconds
-- to time of day 0..86_400.0 s
Offset : Duration := Duration(Julian_Offset) + Half_Day;
begin
return Offset;
exception
when Constraint_Error => -- if more than 86400.0 seconds...
return 86400.0;
end Day_Offset;
function Julian_Day_Of (Julian_Timestamp : Historical_Time) return Julian_Day is
begin
return Julian_Day (Julian_Timestamp / Day_Unit);
-- This will convert to the nearest integer value exactly as required:
-- this is a numeric type conversion, and
-- "If the target type is an integer type
-- and the operand type is real,
-- the result is rounded to the nearest integer
-- (away from zero if exactly halfway between two integers)".
-- (Ada 2005 manual, 4.6, line 33).
end Julian_Day_Of;
function Julian_Day_Of (Ada_Timestamp : Time) return Julian_Day is
begin
return Julian_Day (Julian_Time_Of(Ada_Timestamp) / Day_Unit);
end Julian_Day_Of;
function Time_Of_At_Noon (Julian_Date : Julian_Day) return Time is
subtype Ada_Calendar_Days_Offset is Julian_Day'Base
range -250*366..250*366;
Day_offset : Ada_Calendar_Days_Offset
:= (Julian_Date - Ada_Zero_Day_in_Julian);
Duration_offset : Duration := Duration (Day_offset*Day_Unit + Day_Unit/2);
-- raises contraint error if not in Ada calendar.
begin
return Ada_Zero_Time + Duration_offset;
end Time_Of_At_Noon;
end Scaliger.Ada_conversion;
|
with GESTE;
with GESTE_Config;
package Render is
procedure Push_Pixels (Buffer : GESTE.Output_Buffer);
procedure Set_Drawing_Area (Area : GESTE.Pix_Rect);
procedure Set_Screen_Offset (Pt : GESTE.Pix_Point);
procedure Render_All (Background : GESTE_Config.Output_Color);
procedure Render_Dirty (Background : GESTE_Config.Output_Color);
procedure Kill;
function Dark_Cyan return GESTE_Config.Output_Color;
function Black return GESTE_Config.Output_Color;
end Render;
|
-- Copyright 2011-2014 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
type Char_Enum_Type is ('A', 'B', 'C', 'D', 'E');
Char : Char_Enum_Type := 'D';
begin
Do_Nothing (Char'Address); -- STOP
end Foo;
|
-- Copyright 2015 Steven Stewart-Gallus
--
-- 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 Linted is
pragma Pure;
end Linted;
|
-----------------------------------------------------------------------
-- hyperion-monitoring-beans -- Beans for module monitoring
-- Copyright (C) 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 ASF.Events.Faces.Actions;
package body Hyperion.Monitoring.Beans is
-- ------------------------------
-- Example of action method.
-- ------------------------------
procedure Action (Bean : in out Monitoring_Bean;
Outcome : in out Ada.Strings.Unbounded.Unbounded_String) is
begin
null;
end Action;
package Action_Binding is
new ASF.Events.Faces.Actions.Action_Method.Bind (Bean => Monitoring_Bean,
Method => Action,
Name => "action");
Monitoring_Bean_Binding : aliased constant Util.Beans.Methods.Method_Binding_Array
:= (Action_Binding.Proxy'Access, null);
-- ------------------------------
-- Get the value identified by the name.
-- ------------------------------
overriding
function Get_Value (From : in Monitoring_Bean;
Name : in String) return Util.Beans.Objects.Object is
begin
if Name = "count" then
return Util.Beans.Objects.To_Object (From.Count);
else
return Util.Beans.Objects.Null_Object;
end if;
end Get_Value;
-- ------------------------------
-- Set the value identified by the name.
-- ------------------------------
overriding
procedure Set_Value (From : in out Monitoring_Bean;
Name : in String;
Value : in Util.Beans.Objects.Object) is
begin
if Name = "count" then
From.Count := Util.Beans.Objects.To_Integer (Value);
end if;
end Set_Value;
-- ------------------------------
-- This bean provides some methods that can be used in a Method_Expression
-- ------------------------------
overriding
function Get_Method_Bindings (From : in Monitoring_Bean)
return Util.Beans.Methods.Method_Binding_Array_Access is
pragma Unreferenced (From);
begin
return Monitoring_Bean_Binding'Access;
end Get_Method_Bindings;
-- ------------------------------
-- Create the Monitoring_Bean bean instance.
-- ------------------------------
function Create_Monitoring_Bean (Module : in Hyperion.Monitoring.Modules.Monitoring_Module_Access)
return Util.Beans.Basic.Readonly_Bean_Access is
Object : constant Monitoring_Bean_Access := new Monitoring_Bean;
begin
Object.Module := Module;
return Object.all'Access;
end Create_Monitoring_Bean;
end Hyperion.Monitoring.Beans;
|
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE boost_serialization>
<boost_serialization signature="serialization::archive" version="14">
<syndb class_id="0" tracking_level="0" version="0">
<userIPLatency>-1</userIPLatency>
<userIPName></userIPName>
<cdfg class_id="1" tracking_level="1" version="0" object_id="_0">
<name>aes_addRoundKey_cpy</name>
<ret_bitwidth>0</ret_bitwidth>
<ports class_id="2" tracking_level="0" version="0">
<count>6</count>
<item_version>0</item_version>
<item class_id="3" tracking_level="1" version="0" object_id="_1">
<Value class_id="4" tracking_level="0" version="0">
<Obj class_id="5" tracking_level="0" version="0">
<type>1</type>
<id>1</id>
<name>buf_r</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo class_id="6" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>buf</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<direction>2</direction>
<if_type>4</if_type>
<array_size>0</array_size>
<bit_vecs class_id="7" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
<item class_id_reference="3" object_id="_2">
<Value>
<Obj>
<type>1</type>
<id>2</id>
<name>buf_offset</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<direction>0</direction>
<if_type>0</if_type>
<array_size>0</array_size>
<bit_vecs>
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
<item class_id_reference="3" object_id="_3">
<Value>
<Obj>
<type>1</type>
<id>3</id>
<name>key</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>key</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<direction>0</direction>
<if_type>4</if_type>
<array_size>0</array_size>
<bit_vecs>
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
<item class_id_reference="3" object_id="_4">
<Value>
<Obj>
<type>1</type>
<id>4</id>
<name>key_offset</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<direction>0</direction>
<if_type>0</if_type>
<array_size>0</array_size>
<bit_vecs>
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
<item class_id_reference="3" object_id="_5">
<Value>
<Obj>
<type>1</type>
<id>5</id>
<name>cpk</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>cpk</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<direction>1</direction>
<if_type>4</if_type>
<array_size>0</array_size>
<bit_vecs>
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
<item class_id_reference="3" object_id="_6">
<Value>
<Obj>
<type>1</type>
<id>6</id>
<name>cpk_offset</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<direction>0</direction>
<if_type>0</if_type>
<array_size>0</array_size>
<bit_vecs>
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
</ports>
<nodes class_id="8" tracking_level="0" version="0">
<count>133</count>
<item_version>0</item_version>
<item class_id="9" tracking_level="1" version="0" object_id="_7">
<Value>
<Obj>
<type>0</type>
<id>10</id>
<name>cpk_offset_read</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>150</item>
<item>151</item>
</oprand_edges>
<opcode>read</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_8">
<Value>
<Obj>
<type>0</type>
<id>11</id>
<name>key_offset_read</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>152</item>
<item>153</item>
</oprand_edges>
<opcode>read</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_9">
<Value>
<Obj>
<type>0</type>
<id>12</id>
<name>buf_offset_read</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>154</item>
<item>155</item>
</oprand_edges>
<opcode>read</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_10">
<Value>
<Obj>
<type>0</type>
<id>13</id>
<name></name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>214</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item class_id="11" tracking_level="0" version="0">
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</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>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>214</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>156</item>
</oprand_edges>
<opcode>br</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_11">
<Value>
<Obj>
<type>0</type>
<id>15</id>
<name>i</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>214</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>214</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>5</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>158</item>
<item>159</item>
<item>160</item>
<item>161</item>
</oprand_edges>
<opcode>phi</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_12">
<Value>
<Obj>
<type>0</type>
<id>17</id>
<name>i_s</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>214</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>214</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>5</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>162</item>
<item>164</item>
</oprand_edges>
<opcode>add</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_13">
<Value>
<Obj>
<type>0</type>
<id>18</id>
<name>i_cast</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>214</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>214</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>165</item>
</oprand_edges>
<opcode>sext</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_14">
<Value>
<Obj>
<type>0</type>
<id>19</id>
<name>tmp</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>214</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>214</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>166</item>
<item>168</item>
</oprand_edges>
<opcode>icmp</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_15">
<Value>
<Obj>
<type>0</type>
<id>20</id>
<name></name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>214</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>214</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>169</item>
<item>170</item>
<item>171</item>
</oprand_edges>
<opcode>br</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_16">
<Value>
<Obj>
<type>0</type>
<id>23</id>
<name>tmp_s</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>172</item>
</oprand_edges>
<opcode>zext</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_17">
<Value>
<Obj>
<type>0</type>
<id>24</id>
<name>sum6</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>173</item>
<item>174</item>
</oprand_edges>
<opcode>add</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_18">
<Value>
<Obj>
<type>0</type>
<id>25</id>
<name>key_addr</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>175</item>
<item>176</item>
</oprand_edges>
<opcode>getelementptr</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_19">
<Value>
<Obj>
<type>0</type>
<id>26</id>
<name>key_load_req</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>178</item>
<item>179</item>
<item>181</item>
</oprand_edges>
<opcode>readreq</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_20">
<Value>
<Obj>
<type>0</type>
<id>27</id>
<name>key_addr_read</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>183</item>
<item>184</item>
<item>611</item>
</oprand_edges>
<opcode>read</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_21">
<Value>
<Obj>
<type>0</type>
<id>28</id>
<name>sum15</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>185</item>
<item>186</item>
</oprand_edges>
<opcode>add</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_22">
<Value>
<Obj>
<type>0</type>
<id>29</id>
<name>cpk_addr</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>187</item>
<item>188</item>
</oprand_edges>
<opcode>getelementptr</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_23">
<Value>
<Obj>
<type>0</type>
<id>30</id>
<name>cpk_addr_req</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>190</item>
<item>191</item>
<item>192</item>
</oprand_edges>
<opcode>writereq</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_24">
<Value>
<Obj>
<type>0</type>
<id>31</id>
<name></name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>5</count>
<item_version>0</item_version>
<item>194</item>
<item>195</item>
<item>196</item>
<item>198</item>
<item>609</item>
</oprand_edges>
<opcode>write</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_25">
<Value>
<Obj>
<type>0</type>
<id>32</id>
<name>cpk_addr_resp</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>200</item>
<item>201</item>
<item>607</item>
</oprand_edges>
<opcode>writeresp</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_26">
<Value>
<Obj>
<type>0</type>
<id>33</id>
<name>sum</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>202</item>
<item>203</item>
</oprand_edges>
<opcode>add</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_27">
<Value>
<Obj>
<type>0</type>
<id>34</id>
<name>buf_addr</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>204</item>
<item>205</item>
</oprand_edges>
<opcode>getelementptr</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_28">
<Value>
<Obj>
<type>0</type>
<id>35</id>
<name>buf_load_req</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>206</item>
<item>207</item>
<item>208</item>
</oprand_edges>
<opcode>readreq</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_29">
<Value>
<Obj>
<type>0</type>
<id>36</id>
<name>buf_addr_read</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>209</item>
<item>210</item>
<item>605</item>
</oprand_edges>
<opcode>read</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_30">
<Value>
<Obj>
<type>0</type>
<id>37</id>
<name>tmp_24</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>211</item>
<item>212</item>
</oprand_edges>
<opcode>xor</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_31">
<Value>
<Obj>
<type>0</type>
<id>38</id>
<name>buf_addr_req</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>213</item>
<item>214</item>
<item>215</item>
<item>604</item>
</oprand_edges>
<opcode>writereq</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_32">
<Value>
<Obj>
<type>0</type>
<id>39</id>
<name></name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>5</count>
<item_version>0</item_version>
<item>216</item>
<item>217</item>
<item>218</item>
<item>219</item>
<item>603</item>
</oprand_edges>
<opcode>write</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_33">
<Value>
<Obj>
<type>0</type>
<id>40</id>
<name>buf_addr_resp</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>220</item>
<item>221</item>
<item>602</item>
</oprand_edges>
<opcode>writeresp</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_34">
<Value>
<Obj>
<type>0</type>
<id>41</id>
<name>sum5</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>214</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>214</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>5</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>222</item>
<item>224</item>
</oprand_edges>
<opcode>add</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_35">
<Value>
<Obj>
<type>0</type>
<id>42</id>
<name>sum5_cast</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>214</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>214</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>225</item>
</oprand_edges>
<opcode>zext</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_36">
<Value>
<Obj>
<type>0</type>
<id>43</id>
<name>sum7</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>214</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>214</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>226</item>
<item>227</item>
</oprand_edges>
<opcode>add</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_37">
<Value>
<Obj>
<type>0</type>
<id>44</id>
<name>key_addr_1</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>214</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>214</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>228</item>
<item>229</item>
</oprand_edges>
<opcode>getelementptr</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_38">
<Value>
<Obj>
<type>0</type>
<id>45</id>
<name>key_load_1_req</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>230</item>
<item>231</item>
<item>232</item>
<item>612</item>
</oprand_edges>
<opcode>readreq</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_39">
<Value>
<Obj>
<type>0</type>
<id>46</id>
<name>key_addr_1_read</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>233</item>
<item>234</item>
<item>599</item>
<item>610</item>
</oprand_edges>
<opcode>read</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_40">
<Value>
<Obj>
<type>0</type>
<id>47</id>
<name>sum16</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>214</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>214</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>235</item>
<item>236</item>
</oprand_edges>
<opcode>add</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_41">
<Value>
<Obj>
<type>0</type>
<id>48</id>
<name>cpk_addr_1</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>214</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>214</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>237</item>
<item>238</item>
</oprand_edges>
<opcode>getelementptr</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_42">
<Value>
<Obj>
<type>0</type>
<id>49</id>
<name>cpk_addr_1_req</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>239</item>
<item>240</item>
<item>241</item>
<item>608</item>
</oprand_edges>
<opcode>writereq</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_43">
<Value>
<Obj>
<type>0</type>
<id>50</id>
<name></name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>5</count>
<item_version>0</item_version>
<item>242</item>
<item>243</item>
<item>244</item>
<item>245</item>
<item>597</item>
</oprand_edges>
<opcode>write</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_44">
<Value>
<Obj>
<type>0</type>
<id>51</id>
<name>cpk_addr_1_resp</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>246</item>
<item>247</item>
<item>595</item>
<item>606</item>
</oprand_edges>
<opcode>writeresp</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_45">
<Value>
<Obj>
<type>0</type>
<id>52</id>
<name>i_10_1</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>214</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>214</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>5</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>248</item>
<item>250</item>
</oprand_edges>
<opcode>add</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_46">
<Value>
<Obj>
<type>0</type>
<id>53</id>
<name>i_10_1_cast</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>214</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>214</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>251</item>
</oprand_edges>
<opcode>sext</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_47">
<Value>
<Obj>
<type>0</type>
<id>54</id>
<name>tmp_1</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>252</item>
</oprand_edges>
<opcode>zext</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_48">
<Value>
<Obj>
<type>0</type>
<id>55</id>
<name>sum8</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>253</item>
<item>254</item>
</oprand_edges>
<opcode>add</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_49">
<Value>
<Obj>
<type>0</type>
<id>56</id>
<name>key_addr_2</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>255</item>
<item>256</item>
</oprand_edges>
<opcode>getelementptr</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_50">
<Value>
<Obj>
<type>0</type>
<id>57</id>
<name>key_load_4_req</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>257</item>
<item>258</item>
<item>259</item>
<item>600</item>
</oprand_edges>
<opcode>readreq</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_51">
<Value>
<Obj>
<type>0</type>
<id>58</id>
<name>key_addr_2_read</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>260</item>
<item>261</item>
<item>592</item>
<item>598</item>
</oprand_edges>
<opcode>read</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_52">
<Value>
<Obj>
<type>0</type>
<id>59</id>
<name>sum17</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>262</item>
<item>263</item>
</oprand_edges>
<opcode>add</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_53">
<Value>
<Obj>
<type>0</type>
<id>60</id>
<name>cpk_addr_2</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>264</item>
<item>265</item>
</oprand_edges>
<opcode>getelementptr</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_54">
<Value>
<Obj>
<type>0</type>
<id>61</id>
<name>cpk_addr_2_req</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>266</item>
<item>267</item>
<item>268</item>
<item>596</item>
</oprand_edges>
<opcode>writereq</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_55">
<Value>
<Obj>
<type>0</type>
<id>62</id>
<name></name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>5</count>
<item_version>0</item_version>
<item>269</item>
<item>270</item>
<item>271</item>
<item>272</item>
<item>590</item>
</oprand_edges>
<opcode>write</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_56">
<Value>
<Obj>
<type>0</type>
<id>63</id>
<name>cpk_addr_2_resp</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>273</item>
<item>274</item>
<item>588</item>
<item>594</item>
</oprand_edges>
<opcode>writeresp</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_57">
<Value>
<Obj>
<type>0</type>
<id>64</id>
<name>sum1</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>275</item>
<item>276</item>
</oprand_edges>
<opcode>add</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_58">
<Value>
<Obj>
<type>0</type>
<id>65</id>
<name>buf_addr_28</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>277</item>
<item>278</item>
</oprand_edges>
<opcode>getelementptr</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_59">
<Value>
<Obj>
<type>0</type>
<id>66</id>
<name>buf_load_1_req</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>279</item>
<item>280</item>
<item>281</item>
<item>601</item>
</oprand_edges>
<opcode>readreq</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_60">
<Value>
<Obj>
<type>0</type>
<id>67</id>
<name>buf_addr_28_read</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>282</item>
<item>283</item>
<item>586</item>
</oprand_edges>
<opcode>read</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_61">
<Value>
<Obj>
<type>0</type>
<id>68</id>
<name>tmp_67_1</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>284</item>
<item>285</item>
</oprand_edges>
<opcode>xor</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_62">
<Value>
<Obj>
<type>0</type>
<id>69</id>
<name>buf_addr_28_req</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>286</item>
<item>287</item>
<item>288</item>
<item>585</item>
</oprand_edges>
<opcode>writereq</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_63">
<Value>
<Obj>
<type>0</type>
<id>70</id>
<name></name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>5</count>
<item_version>0</item_version>
<item>289</item>
<item>290</item>
<item>291</item>
<item>292</item>
<item>584</item>
</oprand_edges>
<opcode>write</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_64">
<Value>
<Obj>
<type>0</type>
<id>71</id>
<name>buf_addr_28_resp</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>293</item>
<item>294</item>
<item>583</item>
</oprand_edges>
<opcode>writeresp</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_65">
<Value>
<Obj>
<type>0</type>
<id>72</id>
<name>sum5_1</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>214</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>214</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>5</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>295</item>
<item>297</item>
</oprand_edges>
<opcode>add</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_66">
<Value>
<Obj>
<type>0</type>
<id>73</id>
<name>sum5_1_cast</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>214</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>214</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>298</item>
</oprand_edges>
<opcode>zext</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_67">
<Value>
<Obj>
<type>0</type>
<id>74</id>
<name>sum9</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>214</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>214</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>299</item>
<item>300</item>
</oprand_edges>
<opcode>add</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_68">
<Value>
<Obj>
<type>0</type>
<id>75</id>
<name>key_addr_3</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>214</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>214</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>301</item>
<item>302</item>
</oprand_edges>
<opcode>getelementptr</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_69">
<Value>
<Obj>
<type>0</type>
<id>76</id>
<name>key_load_5_req</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>303</item>
<item>304</item>
<item>305</item>
<item>593</item>
</oprand_edges>
<opcode>readreq</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_70">
<Value>
<Obj>
<type>0</type>
<id>77</id>
<name>key_addr_3_read</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>306</item>
<item>307</item>
<item>580</item>
<item>591</item>
</oprand_edges>
<opcode>read</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_71">
<Value>
<Obj>
<type>0</type>
<id>78</id>
<name>sum18</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>214</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>214</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>308</item>
<item>309</item>
</oprand_edges>
<opcode>add</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_72">
<Value>
<Obj>
<type>0</type>
<id>79</id>
<name>cpk_addr_3</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>214</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>214</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>310</item>
<item>311</item>
</oprand_edges>
<opcode>getelementptr</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_73">
<Value>
<Obj>
<type>0</type>
<id>80</id>
<name>cpk_addr_3_req</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>312</item>
<item>313</item>
<item>314</item>
<item>589</item>
</oprand_edges>
<opcode>writereq</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_74">
<Value>
<Obj>
<type>0</type>
<id>81</id>
<name></name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>5</count>
<item_version>0</item_version>
<item>315</item>
<item>316</item>
<item>317</item>
<item>318</item>
<item>578</item>
</oprand_edges>
<opcode>write</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_75">
<Value>
<Obj>
<type>0</type>
<id>82</id>
<name>cpk_addr_3_resp</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>319</item>
<item>320</item>
<item>576</item>
<item>587</item>
</oprand_edges>
<opcode>writeresp</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_76">
<Value>
<Obj>
<type>0</type>
<id>83</id>
<name>i_10_2</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>214</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>214</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>5</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>321</item>
<item>323</item>
</oprand_edges>
<opcode>add</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_77">
<Value>
<Obj>
<type>0</type>
<id>84</id>
<name>i_10_2_cast</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>214</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>214</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>324</item>
</oprand_edges>
<opcode>sext</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_78">
<Value>
<Obj>
<type>0</type>
<id>85</id>
<name>tmp_2</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>325</item>
</oprand_edges>
<opcode>zext</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_79">
<Value>
<Obj>
<type>0</type>
<id>86</id>
<name>sum10</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>326</item>
<item>327</item>
</oprand_edges>
<opcode>add</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_80">
<Value>
<Obj>
<type>0</type>
<id>87</id>
<name>key_addr_4</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>328</item>
<item>329</item>
</oprand_edges>
<opcode>getelementptr</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_81">
<Value>
<Obj>
<type>0</type>
<id>88</id>
<name>key_load_2_req</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>330</item>
<item>331</item>
<item>332</item>
<item>581</item>
</oprand_edges>
<opcode>readreq</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_82">
<Value>
<Obj>
<type>0</type>
<id>89</id>
<name>key_addr_4_read</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>333</item>
<item>334</item>
<item>573</item>
<item>579</item>
</oprand_edges>
<opcode>read</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_83">
<Value>
<Obj>
<type>0</type>
<id>90</id>
<name>sum19</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>335</item>
<item>336</item>
</oprand_edges>
<opcode>add</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_84">
<Value>
<Obj>
<type>0</type>
<id>91</id>
<name>cpk_addr_4</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>337</item>
<item>338</item>
</oprand_edges>
<opcode>getelementptr</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_85">
<Value>
<Obj>
<type>0</type>
<id>92</id>
<name>cpk_addr_4_req</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>339</item>
<item>340</item>
<item>341</item>
<item>577</item>
</oprand_edges>
<opcode>writereq</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_86">
<Value>
<Obj>
<type>0</type>
<id>93</id>
<name></name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>5</count>
<item_version>0</item_version>
<item>342</item>
<item>343</item>
<item>344</item>
<item>345</item>
<item>571</item>
</oprand_edges>
<opcode>write</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_87">
<Value>
<Obj>
<type>0</type>
<id>94</id>
<name>cpk_addr_4_resp</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>346</item>
<item>347</item>
<item>569</item>
<item>575</item>
</oprand_edges>
<opcode>writeresp</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_88">
<Value>
<Obj>
<type>0</type>
<id>95</id>
<name>sum2</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>348</item>
<item>349</item>
</oprand_edges>
<opcode>add</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_89">
<Value>
<Obj>
<type>0</type>
<id>96</id>
<name>buf_addr_29</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>350</item>
<item>351</item>
</oprand_edges>
<opcode>getelementptr</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_90">
<Value>
<Obj>
<type>0</type>
<id>97</id>
<name>buf_load_2_req</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>352</item>
<item>353</item>
<item>354</item>
<item>582</item>
</oprand_edges>
<opcode>readreq</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_91">
<Value>
<Obj>
<type>0</type>
<id>98</id>
<name>buf_addr_29_read</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>355</item>
<item>356</item>
<item>567</item>
</oprand_edges>
<opcode>read</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_92">
<Value>
<Obj>
<type>0</type>
<id>99</id>
<name>tmp_67_2</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>357</item>
<item>358</item>
</oprand_edges>
<opcode>xor</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_93">
<Value>
<Obj>
<type>0</type>
<id>100</id>
<name>buf_addr_29_req</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>359</item>
<item>360</item>
<item>361</item>
<item>566</item>
</oprand_edges>
<opcode>writereq</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_94">
<Value>
<Obj>
<type>0</type>
<id>101</id>
<name></name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>5</count>
<item_version>0</item_version>
<item>362</item>
<item>363</item>
<item>364</item>
<item>365</item>
<item>565</item>
</oprand_edges>
<opcode>write</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_95">
<Value>
<Obj>
<type>0</type>
<id>102</id>
<name>buf_addr_29_resp</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>366</item>
<item>367</item>
<item>564</item>
</oprand_edges>
<opcode>writeresp</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_96">
<Value>
<Obj>
<type>0</type>
<id>103</id>
<name>sum5_2</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>214</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>214</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>5</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>368</item>
<item>370</item>
</oprand_edges>
<opcode>add</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_97">
<Value>
<Obj>
<type>0</type>
<id>104</id>
<name>sum5_2_cast</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>214</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>214</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>371</item>
</oprand_edges>
<opcode>zext</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_98">
<Value>
<Obj>
<type>0</type>
<id>105</id>
<name>sum11</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>214</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>214</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>372</item>
<item>373</item>
</oprand_edges>
<opcode>add</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_99">
<Value>
<Obj>
<type>0</type>
<id>106</id>
<name>key_addr_5</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>214</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>214</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>374</item>
<item>375</item>
</oprand_edges>
<opcode>getelementptr</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_100">
<Value>
<Obj>
<type>0</type>
<id>107</id>
<name>key_load_6_req</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>376</item>
<item>377</item>
<item>378</item>
<item>574</item>
</oprand_edges>
<opcode>readreq</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_101">
<Value>
<Obj>
<type>0</type>
<id>108</id>
<name>key_addr_5_read</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>379</item>
<item>380</item>
<item>561</item>
<item>572</item>
</oprand_edges>
<opcode>read</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_102">
<Value>
<Obj>
<type>0</type>
<id>109</id>
<name>sum20</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>214</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>214</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>381</item>
<item>382</item>
</oprand_edges>
<opcode>add</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_103">
<Value>
<Obj>
<type>0</type>
<id>110</id>
<name>cpk_addr_5</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>214</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>214</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>383</item>
<item>384</item>
</oprand_edges>
<opcode>getelementptr</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_104">
<Value>
<Obj>
<type>0</type>
<id>111</id>
<name>cpk_addr_5_req</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>385</item>
<item>386</item>
<item>387</item>
<item>570</item>
</oprand_edges>
<opcode>writereq</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_105">
<Value>
<Obj>
<type>0</type>
<id>112</id>
<name></name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>5</count>
<item_version>0</item_version>
<item>388</item>
<item>389</item>
<item>390</item>
<item>391</item>
<item>559</item>
</oprand_edges>
<opcode>write</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_106">
<Value>
<Obj>
<type>0</type>
<id>113</id>
<name>cpk_addr_5_resp</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>392</item>
<item>393</item>
<item>557</item>
<item>568</item>
</oprand_edges>
<opcode>writeresp</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_107">
<Value>
<Obj>
<type>0</type>
<id>114</id>
<name>i_10_3</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>214</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>214</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>5</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>394</item>
<item>396</item>
</oprand_edges>
<opcode>add</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_108">
<Value>
<Obj>
<type>0</type>
<id>115</id>
<name>i_10_3_cast</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>214</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>214</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>397</item>
</oprand_edges>
<opcode>sext</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_109">
<Value>
<Obj>
<type>0</type>
<id>116</id>
<name>tmp_3</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>398</item>
</oprand_edges>
<opcode>zext</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_110">
<Value>
<Obj>
<type>0</type>
<id>117</id>
<name>sum12</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>399</item>
<item>400</item>
</oprand_edges>
<opcode>add</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_111">
<Value>
<Obj>
<type>0</type>
<id>118</id>
<name>key_addr_6</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>401</item>
<item>402</item>
</oprand_edges>
<opcode>getelementptr</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_112">
<Value>
<Obj>
<type>0</type>
<id>119</id>
<name>key_load_3_req</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>403</item>
<item>404</item>
<item>405</item>
<item>562</item>
</oprand_edges>
<opcode>readreq</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_113">
<Value>
<Obj>
<type>0</type>
<id>120</id>
<name>key_addr_6_read</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>406</item>
<item>407</item>
<item>554</item>
<item>560</item>
</oprand_edges>
<opcode>read</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_114">
<Value>
<Obj>
<type>0</type>
<id>121</id>
<name>sum21</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>408</item>
<item>409</item>
</oprand_edges>
<opcode>add</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_115">
<Value>
<Obj>
<type>0</type>
<id>122</id>
<name>cpk_addr_6</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>410</item>
<item>411</item>
</oprand_edges>
<opcode>getelementptr</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_116">
<Value>
<Obj>
<type>0</type>
<id>123</id>
<name>cpk_addr_6_req</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>412</item>
<item>413</item>
<item>414</item>
<item>558</item>
</oprand_edges>
<opcode>writereq</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_117">
<Value>
<Obj>
<type>0</type>
<id>124</id>
<name></name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>5</count>
<item_version>0</item_version>
<item>415</item>
<item>416</item>
<item>417</item>
<item>418</item>
<item>552</item>
</oprand_edges>
<opcode>write</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_118">
<Value>
<Obj>
<type>0</type>
<id>125</id>
<name>cpk_addr_6_resp</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>419</item>
<item>420</item>
<item>550</item>
<item>556</item>
</oprand_edges>
<opcode>writeresp</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_119">
<Value>
<Obj>
<type>0</type>
<id>126</id>
<name>sum3</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>421</item>
<item>422</item>
</oprand_edges>
<opcode>add</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_120">
<Value>
<Obj>
<type>0</type>
<id>127</id>
<name>buf_addr_30</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>423</item>
<item>424</item>
</oprand_edges>
<opcode>getelementptr</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_121">
<Value>
<Obj>
<type>0</type>
<id>128</id>
<name>buf_load_3_req</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>425</item>
<item>426</item>
<item>427</item>
<item>563</item>
</oprand_edges>
<opcode>readreq</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_122">
<Value>
<Obj>
<type>0</type>
<id>129</id>
<name>buf_addr_30_read</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>428</item>
<item>429</item>
<item>548</item>
</oprand_edges>
<opcode>read</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_123">
<Value>
<Obj>
<type>0</type>
<id>130</id>
<name>tmp_67_3</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>430</item>
<item>431</item>
</oprand_edges>
<opcode>xor</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_124">
<Value>
<Obj>
<type>0</type>
<id>131</id>
<name>buf_addr_30_req</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>432</item>
<item>433</item>
<item>434</item>
<item>547</item>
</oprand_edges>
<opcode>writereq</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_125">
<Value>
<Obj>
<type>0</type>
<id>132</id>
<name></name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>5</count>
<item_version>0</item_version>
<item>435</item>
<item>436</item>
<item>437</item>
<item>438</item>
<item>546</item>
</oprand_edges>
<opcode>write</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_126">
<Value>
<Obj>
<type>0</type>
<id>133</id>
<name>buf_addr_30_resp</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>439</item>
<item>440</item>
<item>545</item>
</oprand_edges>
<opcode>writeresp</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_127">
<Value>
<Obj>
<type>0</type>
<id>134</id>
<name>sum5_3</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>214</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>214</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>5</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>441</item>
<item>443</item>
</oprand_edges>
<opcode>add</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_128">
<Value>
<Obj>
<type>0</type>
<id>135</id>
<name>sum5_3_cast</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>214</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>214</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>444</item>
</oprand_edges>
<opcode>zext</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_129">
<Value>
<Obj>
<type>0</type>
<id>136</id>
<name>sum13</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>214</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>214</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>445</item>
<item>446</item>
</oprand_edges>
<opcode>add</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_130">
<Value>
<Obj>
<type>0</type>
<id>137</id>
<name>key_addr_7</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>214</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>214</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>447</item>
<item>448</item>
</oprand_edges>
<opcode>getelementptr</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_131">
<Value>
<Obj>
<type>0</type>
<id>138</id>
<name>key_load_7_req</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>449</item>
<item>450</item>
<item>451</item>
<item>555</item>
</oprand_edges>
<opcode>readreq</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_132">
<Value>
<Obj>
<type>0</type>
<id>139</id>
<name>key_addr_7_read</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>452</item>
<item>453</item>
<item>544</item>
<item>553</item>
</oprand_edges>
<opcode>read</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_133">
<Value>
<Obj>
<type>0</type>
<id>140</id>
<name>sum22</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>214</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>214</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>454</item>
<item>455</item>
</oprand_edges>
<opcode>add</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_134">
<Value>
<Obj>
<type>0</type>
<id>141</id>
<name>cpk_addr_7</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>214</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>214</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>456</item>
<item>457</item>
</oprand_edges>
<opcode>getelementptr</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_135">
<Value>
<Obj>
<type>0</type>
<id>142</id>
<name>cpk_addr_7_req</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>458</item>
<item>459</item>
<item>460</item>
<item>551</item>
</oprand_edges>
<opcode>writereq</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_136">
<Value>
<Obj>
<type>0</type>
<id>143</id>
<name></name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>5</count>
<item_version>0</item_version>
<item>461</item>
<item>462</item>
<item>463</item>
<item>464</item>
<item>543</item>
</oprand_edges>
<opcode>write</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_137">
<Value>
<Obj>
<type>0</type>
<id>144</id>
<name>cpk_addr_7_resp</name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>221</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>221</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>465</item>
<item>466</item>
<item>542</item>
<item>549</item>
</oprand_edges>
<opcode>writeresp</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_138">
<Value>
<Obj>
<type>0</type>
<id>145</id>
<name></name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>222</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>222</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>467</item>
</oprand_edges>
<opcode>br</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_139">
<Value>
<Obj>
<type>0</type>
<id>147</id>
<name></name>
<fileName>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</fileName>
<fileDirectory>/scratch/local/tmp.soPlafqy6w/_sds/vhls</fileDirectory>
<lineNumber>223</lineNumber>
<contextFuncName>aes_addRoundKey_cpy</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/scratch/local/tmp.soPlafqy6w/_sds/vhls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/mnt/icgridio2/safe/giesen/HLS_tuner/1/TestApps/MachSuite/aes/Sources/aes.c</first>
<second>aes_addRoundKey_cpy</second>
</first>
<second>223</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>0</count>
<item_version>0</item_version>
</oprand_edges>
<opcode>ret</opcode>
<m_Display>0</m_Display>
</item>
</nodes>
<consts class_id="15" tracking_level="0" version="0">
<count>12</count>
<item_version>0</item_version>
<item class_id="16" tracking_level="1" version="0" object_id="_140">
<Value>
<Obj>
<type>2</type>
<id>157</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>5</bitwidth>
</Value>
<const_type>0</const_type>
<content>16</content>
</item>
<item class_id_reference="16" object_id="_141">
<Value>
<Obj>
<type>2</type>
<id>163</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>5</bitwidth>
</Value>
<const_type>0</const_type>
<content>31</content>
</item>
<item class_id_reference="16" object_id="_142">
<Value>
<Obj>
<type>2</type>
<id>167</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>5</bitwidth>
</Value>
<const_type>0</const_type>
<content>0</content>
</item>
<item class_id_reference="16" object_id="_143">
<Value>
<Obj>
<type>2</type>
<id>180</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>1</content>
</item>
<item class_id_reference="16" object_id="_144">
<Value>
<Obj>
<type>2</type>
<id>197</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<const_type>0</const_type>
<content>1</content>
</item>
<item class_id_reference="16" object_id="_145">
<Value>
<Obj>
<type>2</type>
<id>223</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>5</bitwidth>
</Value>
<const_type>0</const_type>
<content>15</content>
</item>
<item class_id_reference="16" object_id="_146">
<Value>
<Obj>
<type>2</type>
<id>249</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>5</bitwidth>
</Value>
<const_type>0</const_type>
<content>30</content>
</item>
<item class_id_reference="16" object_id="_147">
<Value>
<Obj>
<type>2</type>
<id>296</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>5</bitwidth>
</Value>
<const_type>0</const_type>
<content>14</content>
</item>
<item class_id_reference="16" object_id="_148">
<Value>
<Obj>
<type>2</type>
<id>322</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>5</bitwidth>
</Value>
<const_type>0</const_type>
<content>29</content>
</item>
<item class_id_reference="16" object_id="_149">
<Value>
<Obj>
<type>2</type>
<id>369</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>5</bitwidth>
</Value>
<const_type>0</const_type>
<content>13</content>
</item>
<item class_id_reference="16" object_id="_150">
<Value>
<Obj>
<type>2</type>
<id>395</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>5</bitwidth>
</Value>
<const_type>0</const_type>
<content>28</content>
</item>
<item class_id_reference="16" object_id="_151">
<Value>
<Obj>
<type>2</type>
<id>442</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>5</bitwidth>
</Value>
<const_type>0</const_type>
<content>12</content>
</item>
</consts>
<blocks class_id="17" tracking_level="0" version="0">
<count>4</count>
<item_version>0</item_version>
<item class_id="18" tracking_level="1" version="0" object_id="_152">
<Obj>
<type>3</type>
<id>14</id>
<name></name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<node_objs>
<count>4</count>
<item_version>0</item_version>
<item>10</item>
<item>11</item>
<item>12</item>
<item>13</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_153">
<Obj>
<type>3</type>
<id>21</id>
<name></name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<node_objs>
<count>5</count>
<item_version>0</item_version>
<item>15</item>
<item>17</item>
<item>18</item>
<item>19</item>
<item>20</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_154">
<Obj>
<type>3</type>
<id>146</id>
<name></name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<node_objs>
<count>123</count>
<item_version>0</item_version>
<item>23</item>
<item>24</item>
<item>25</item>
<item>26</item>
<item>27</item>
<item>28</item>
<item>29</item>
<item>30</item>
<item>31</item>
<item>32</item>
<item>33</item>
<item>34</item>
<item>35</item>
<item>36</item>
<item>37</item>
<item>38</item>
<item>39</item>
<item>40</item>
<item>41</item>
<item>42</item>
<item>43</item>
<item>44</item>
<item>45</item>
<item>46</item>
<item>47</item>
<item>48</item>
<item>49</item>
<item>50</item>
<item>51</item>
<item>52</item>
<item>53</item>
<item>54</item>
<item>55</item>
<item>56</item>
<item>57</item>
<item>58</item>
<item>59</item>
<item>60</item>
<item>61</item>
<item>62</item>
<item>63</item>
<item>64</item>
<item>65</item>
<item>66</item>
<item>67</item>
<item>68</item>
<item>69</item>
<item>70</item>
<item>71</item>
<item>72</item>
<item>73</item>
<item>74</item>
<item>75</item>
<item>76</item>
<item>77</item>
<item>78</item>
<item>79</item>
<item>80</item>
<item>81</item>
<item>82</item>
<item>83</item>
<item>84</item>
<item>85</item>
<item>86</item>
<item>87</item>
<item>88</item>
<item>89</item>
<item>90</item>
<item>91</item>
<item>92</item>
<item>93</item>
<item>94</item>
<item>95</item>
<item>96</item>
<item>97</item>
<item>98</item>
<item>99</item>
<item>100</item>
<item>101</item>
<item>102</item>
<item>103</item>
<item>104</item>
<item>105</item>
<item>106</item>
<item>107</item>
<item>108</item>
<item>109</item>
<item>110</item>
<item>111</item>
<item>112</item>
<item>113</item>
<item>114</item>
<item>115</item>
<item>116</item>
<item>117</item>
<item>118</item>
<item>119</item>
<item>120</item>
<item>121</item>
<item>122</item>
<item>123</item>
<item>124</item>
<item>125</item>
<item>126</item>
<item>127</item>
<item>128</item>
<item>129</item>
<item>130</item>
<item>131</item>
<item>132</item>
<item>133</item>
<item>134</item>
<item>135</item>
<item>136</item>
<item>137</item>
<item>138</item>
<item>139</item>
<item>140</item>
<item>141</item>
<item>142</item>
<item>143</item>
<item>144</item>
<item>145</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_155">
<Obj>
<type>3</type>
<id>148</id>
<name></name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<node_objs>
<count>1</count>
<item_version>0</item_version>
<item>147</item>
</node_objs>
</item>
</blocks>
<edges class_id="19" tracking_level="0" version="0">
<count>313</count>
<item_version>0</item_version>
<item class_id="20" tracking_level="1" version="0" object_id="_156">
<id>151</id>
<edge_type>1</edge_type>
<source_obj>6</source_obj>
<sink_obj>10</sink_obj>
</item>
<item class_id_reference="20" object_id="_157">
<id>153</id>
<edge_type>1</edge_type>
<source_obj>4</source_obj>
<sink_obj>11</sink_obj>
</item>
<item class_id_reference="20" object_id="_158">
<id>155</id>
<edge_type>1</edge_type>
<source_obj>2</source_obj>
<sink_obj>12</sink_obj>
</item>
<item class_id_reference="20" object_id="_159">
<id>156</id>
<edge_type>2</edge_type>
<source_obj>21</source_obj>
<sink_obj>13</sink_obj>
</item>
<item class_id_reference="20" object_id="_160">
<id>158</id>
<edge_type>1</edge_type>
<source_obj>157</source_obj>
<sink_obj>15</sink_obj>
</item>
<item class_id_reference="20" object_id="_161">
<id>159</id>
<edge_type>2</edge_type>
<source_obj>14</source_obj>
<sink_obj>15</sink_obj>
</item>
<item class_id_reference="20" object_id="_162">
<id>160</id>
<edge_type>1</edge_type>
<source_obj>114</source_obj>
<sink_obj>15</sink_obj>
</item>
<item class_id_reference="20" object_id="_163">
<id>161</id>
<edge_type>2</edge_type>
<source_obj>146</source_obj>
<sink_obj>15</sink_obj>
</item>
<item class_id_reference="20" object_id="_164">
<id>162</id>
<edge_type>1</edge_type>
<source_obj>15</source_obj>
<sink_obj>17</sink_obj>
</item>
<item class_id_reference="20" object_id="_165">
<id>164</id>
<edge_type>1</edge_type>
<source_obj>163</source_obj>
<sink_obj>17</sink_obj>
</item>
<item class_id_reference="20" object_id="_166">
<id>165</id>
<edge_type>1</edge_type>
<source_obj>17</source_obj>
<sink_obj>18</sink_obj>
</item>
<item class_id_reference="20" object_id="_167">
<id>166</id>
<edge_type>1</edge_type>
<source_obj>15</source_obj>
<sink_obj>19</sink_obj>
</item>
<item class_id_reference="20" object_id="_168">
<id>168</id>
<edge_type>1</edge_type>
<source_obj>167</source_obj>
<sink_obj>19</sink_obj>
</item>
<item class_id_reference="20" object_id="_169">
<id>169</id>
<edge_type>1</edge_type>
<source_obj>19</source_obj>
<sink_obj>20</sink_obj>
</item>
<item class_id_reference="20" object_id="_170">
<id>170</id>
<edge_type>2</edge_type>
<source_obj>146</source_obj>
<sink_obj>20</sink_obj>
</item>
<item class_id_reference="20" object_id="_171">
<id>171</id>
<edge_type>2</edge_type>
<source_obj>148</source_obj>
<sink_obj>20</sink_obj>
</item>
<item class_id_reference="20" object_id="_172">
<id>172</id>
<edge_type>1</edge_type>
<source_obj>18</source_obj>
<sink_obj>23</sink_obj>
</item>
<item class_id_reference="20" object_id="_173">
<id>173</id>
<edge_type>1</edge_type>
<source_obj>11</source_obj>
<sink_obj>24</sink_obj>
</item>
<item class_id_reference="20" object_id="_174">
<id>174</id>
<edge_type>1</edge_type>
<source_obj>23</source_obj>
<sink_obj>24</sink_obj>
</item>
<item class_id_reference="20" object_id="_175">
<id>175</id>
<edge_type>1</edge_type>
<source_obj>3</source_obj>
<sink_obj>25</sink_obj>
</item>
<item class_id_reference="20" object_id="_176">
<id>176</id>
<edge_type>1</edge_type>
<source_obj>24</source_obj>
<sink_obj>25</sink_obj>
</item>
<item class_id_reference="20" object_id="_177">
<id>179</id>
<edge_type>1</edge_type>
<source_obj>25</source_obj>
<sink_obj>26</sink_obj>
</item>
<item class_id_reference="20" object_id="_178">
<id>181</id>
<edge_type>1</edge_type>
<source_obj>180</source_obj>
<sink_obj>26</sink_obj>
</item>
<item class_id_reference="20" object_id="_179">
<id>184</id>
<edge_type>1</edge_type>
<source_obj>25</source_obj>
<sink_obj>27</sink_obj>
</item>
<item class_id_reference="20" object_id="_180">
<id>185</id>
<edge_type>1</edge_type>
<source_obj>10</source_obj>
<sink_obj>28</sink_obj>
</item>
<item class_id_reference="20" object_id="_181">
<id>186</id>
<edge_type>1</edge_type>
<source_obj>23</source_obj>
<sink_obj>28</sink_obj>
</item>
<item class_id_reference="20" object_id="_182">
<id>187</id>
<edge_type>1</edge_type>
<source_obj>5</source_obj>
<sink_obj>29</sink_obj>
</item>
<item class_id_reference="20" object_id="_183">
<id>188</id>
<edge_type>1</edge_type>
<source_obj>28</source_obj>
<sink_obj>29</sink_obj>
</item>
<item class_id_reference="20" object_id="_184">
<id>191</id>
<edge_type>1</edge_type>
<source_obj>29</source_obj>
<sink_obj>30</sink_obj>
</item>
<item class_id_reference="20" object_id="_185">
<id>192</id>
<edge_type>1</edge_type>
<source_obj>180</source_obj>
<sink_obj>30</sink_obj>
</item>
<item class_id_reference="20" object_id="_186">
<id>195</id>
<edge_type>1</edge_type>
<source_obj>29</source_obj>
<sink_obj>31</sink_obj>
</item>
<item class_id_reference="20" object_id="_187">
<id>196</id>
<edge_type>1</edge_type>
<source_obj>27</source_obj>
<sink_obj>31</sink_obj>
</item>
<item class_id_reference="20" object_id="_188">
<id>198</id>
<edge_type>1</edge_type>
<source_obj>197</source_obj>
<sink_obj>31</sink_obj>
</item>
<item class_id_reference="20" object_id="_189">
<id>201</id>
<edge_type>1</edge_type>
<source_obj>29</source_obj>
<sink_obj>32</sink_obj>
</item>
<item class_id_reference="20" object_id="_190">
<id>202</id>
<edge_type>1</edge_type>
<source_obj>12</source_obj>
<sink_obj>33</sink_obj>
</item>
<item class_id_reference="20" object_id="_191">
<id>203</id>
<edge_type>1</edge_type>
<source_obj>23</source_obj>
<sink_obj>33</sink_obj>
</item>
<item class_id_reference="20" object_id="_192">
<id>204</id>
<edge_type>1</edge_type>
<source_obj>1</source_obj>
<sink_obj>34</sink_obj>
</item>
<item class_id_reference="20" object_id="_193">
<id>205</id>
<edge_type>1</edge_type>
<source_obj>33</source_obj>
<sink_obj>34</sink_obj>
</item>
<item class_id_reference="20" object_id="_194">
<id>207</id>
<edge_type>1</edge_type>
<source_obj>34</source_obj>
<sink_obj>35</sink_obj>
</item>
<item class_id_reference="20" object_id="_195">
<id>208</id>
<edge_type>1</edge_type>
<source_obj>180</source_obj>
<sink_obj>35</sink_obj>
</item>
<item class_id_reference="20" object_id="_196">
<id>210</id>
<edge_type>1</edge_type>
<source_obj>34</source_obj>
<sink_obj>36</sink_obj>
</item>
<item class_id_reference="20" object_id="_197">
<id>211</id>
<edge_type>1</edge_type>
<source_obj>36</source_obj>
<sink_obj>37</sink_obj>
</item>
<item class_id_reference="20" object_id="_198">
<id>212</id>
<edge_type>1</edge_type>
<source_obj>27</source_obj>
<sink_obj>37</sink_obj>
</item>
<item class_id_reference="20" object_id="_199">
<id>214</id>
<edge_type>1</edge_type>
<source_obj>34</source_obj>
<sink_obj>38</sink_obj>
</item>
<item class_id_reference="20" object_id="_200">
<id>215</id>
<edge_type>1</edge_type>
<source_obj>180</source_obj>
<sink_obj>38</sink_obj>
</item>
<item class_id_reference="20" object_id="_201">
<id>217</id>
<edge_type>1</edge_type>
<source_obj>34</source_obj>
<sink_obj>39</sink_obj>
</item>
<item class_id_reference="20" object_id="_202">
<id>218</id>
<edge_type>1</edge_type>
<source_obj>37</source_obj>
<sink_obj>39</sink_obj>
</item>
<item class_id_reference="20" object_id="_203">
<id>219</id>
<edge_type>1</edge_type>
<source_obj>197</source_obj>
<sink_obj>39</sink_obj>
</item>
<item class_id_reference="20" object_id="_204">
<id>221</id>
<edge_type>1</edge_type>
<source_obj>34</source_obj>
<sink_obj>40</sink_obj>
</item>
<item class_id_reference="20" object_id="_205">
<id>222</id>
<edge_type>1</edge_type>
<source_obj>15</source_obj>
<sink_obj>41</sink_obj>
</item>
<item class_id_reference="20" object_id="_206">
<id>224</id>
<edge_type>1</edge_type>
<source_obj>223</source_obj>
<sink_obj>41</sink_obj>
</item>
<item class_id_reference="20" object_id="_207">
<id>225</id>
<edge_type>1</edge_type>
<source_obj>41</source_obj>
<sink_obj>42</sink_obj>
</item>
<item class_id_reference="20" object_id="_208">
<id>226</id>
<edge_type>1</edge_type>
<source_obj>11</source_obj>
<sink_obj>43</sink_obj>
</item>
<item class_id_reference="20" object_id="_209">
<id>227</id>
<edge_type>1</edge_type>
<source_obj>42</source_obj>
<sink_obj>43</sink_obj>
</item>
<item class_id_reference="20" object_id="_210">
<id>228</id>
<edge_type>1</edge_type>
<source_obj>3</source_obj>
<sink_obj>44</sink_obj>
</item>
<item class_id_reference="20" object_id="_211">
<id>229</id>
<edge_type>1</edge_type>
<source_obj>43</source_obj>
<sink_obj>44</sink_obj>
</item>
<item class_id_reference="20" object_id="_212">
<id>231</id>
<edge_type>1</edge_type>
<source_obj>44</source_obj>
<sink_obj>45</sink_obj>
</item>
<item class_id_reference="20" object_id="_213">
<id>232</id>
<edge_type>1</edge_type>
<source_obj>180</source_obj>
<sink_obj>45</sink_obj>
</item>
<item class_id_reference="20" object_id="_214">
<id>234</id>
<edge_type>1</edge_type>
<source_obj>44</source_obj>
<sink_obj>46</sink_obj>
</item>
<item class_id_reference="20" object_id="_215">
<id>235</id>
<edge_type>1</edge_type>
<source_obj>10</source_obj>
<sink_obj>47</sink_obj>
</item>
<item class_id_reference="20" object_id="_216">
<id>236</id>
<edge_type>1</edge_type>
<source_obj>42</source_obj>
<sink_obj>47</sink_obj>
</item>
<item class_id_reference="20" object_id="_217">
<id>237</id>
<edge_type>1</edge_type>
<source_obj>5</source_obj>
<sink_obj>48</sink_obj>
</item>
<item class_id_reference="20" object_id="_218">
<id>238</id>
<edge_type>1</edge_type>
<source_obj>47</source_obj>
<sink_obj>48</sink_obj>
</item>
<item class_id_reference="20" object_id="_219">
<id>240</id>
<edge_type>1</edge_type>
<source_obj>48</source_obj>
<sink_obj>49</sink_obj>
</item>
<item class_id_reference="20" object_id="_220">
<id>241</id>
<edge_type>1</edge_type>
<source_obj>180</source_obj>
<sink_obj>49</sink_obj>
</item>
<item class_id_reference="20" object_id="_221">
<id>243</id>
<edge_type>1</edge_type>
<source_obj>48</source_obj>
<sink_obj>50</sink_obj>
</item>
<item class_id_reference="20" object_id="_222">
<id>244</id>
<edge_type>1</edge_type>
<source_obj>46</source_obj>
<sink_obj>50</sink_obj>
</item>
<item class_id_reference="20" object_id="_223">
<id>245</id>
<edge_type>1</edge_type>
<source_obj>197</source_obj>
<sink_obj>50</sink_obj>
</item>
<item class_id_reference="20" object_id="_224">
<id>247</id>
<edge_type>1</edge_type>
<source_obj>48</source_obj>
<sink_obj>51</sink_obj>
</item>
<item class_id_reference="20" object_id="_225">
<id>248</id>
<edge_type>1</edge_type>
<source_obj>15</source_obj>
<sink_obj>52</sink_obj>
</item>
<item class_id_reference="20" object_id="_226">
<id>250</id>
<edge_type>1</edge_type>
<source_obj>249</source_obj>
<sink_obj>52</sink_obj>
</item>
<item class_id_reference="20" object_id="_227">
<id>251</id>
<edge_type>1</edge_type>
<source_obj>52</source_obj>
<sink_obj>53</sink_obj>
</item>
<item class_id_reference="20" object_id="_228">
<id>252</id>
<edge_type>1</edge_type>
<source_obj>53</source_obj>
<sink_obj>54</sink_obj>
</item>
<item class_id_reference="20" object_id="_229">
<id>253</id>
<edge_type>1</edge_type>
<source_obj>11</source_obj>
<sink_obj>55</sink_obj>
</item>
<item class_id_reference="20" object_id="_230">
<id>254</id>
<edge_type>1</edge_type>
<source_obj>54</source_obj>
<sink_obj>55</sink_obj>
</item>
<item class_id_reference="20" object_id="_231">
<id>255</id>
<edge_type>1</edge_type>
<source_obj>3</source_obj>
<sink_obj>56</sink_obj>
</item>
<item class_id_reference="20" object_id="_232">
<id>256</id>
<edge_type>1</edge_type>
<source_obj>55</source_obj>
<sink_obj>56</sink_obj>
</item>
<item class_id_reference="20" object_id="_233">
<id>258</id>
<edge_type>1</edge_type>
<source_obj>56</source_obj>
<sink_obj>57</sink_obj>
</item>
<item class_id_reference="20" object_id="_234">
<id>259</id>
<edge_type>1</edge_type>
<source_obj>180</source_obj>
<sink_obj>57</sink_obj>
</item>
<item class_id_reference="20" object_id="_235">
<id>261</id>
<edge_type>1</edge_type>
<source_obj>56</source_obj>
<sink_obj>58</sink_obj>
</item>
<item class_id_reference="20" object_id="_236">
<id>262</id>
<edge_type>1</edge_type>
<source_obj>10</source_obj>
<sink_obj>59</sink_obj>
</item>
<item class_id_reference="20" object_id="_237">
<id>263</id>
<edge_type>1</edge_type>
<source_obj>54</source_obj>
<sink_obj>59</sink_obj>
</item>
<item class_id_reference="20" object_id="_238">
<id>264</id>
<edge_type>1</edge_type>
<source_obj>5</source_obj>
<sink_obj>60</sink_obj>
</item>
<item class_id_reference="20" object_id="_239">
<id>265</id>
<edge_type>1</edge_type>
<source_obj>59</source_obj>
<sink_obj>60</sink_obj>
</item>
<item class_id_reference="20" object_id="_240">
<id>267</id>
<edge_type>1</edge_type>
<source_obj>60</source_obj>
<sink_obj>61</sink_obj>
</item>
<item class_id_reference="20" object_id="_241">
<id>268</id>
<edge_type>1</edge_type>
<source_obj>180</source_obj>
<sink_obj>61</sink_obj>
</item>
<item class_id_reference="20" object_id="_242">
<id>270</id>
<edge_type>1</edge_type>
<source_obj>60</source_obj>
<sink_obj>62</sink_obj>
</item>
<item class_id_reference="20" object_id="_243">
<id>271</id>
<edge_type>1</edge_type>
<source_obj>58</source_obj>
<sink_obj>62</sink_obj>
</item>
<item class_id_reference="20" object_id="_244">
<id>272</id>
<edge_type>1</edge_type>
<source_obj>197</source_obj>
<sink_obj>62</sink_obj>
</item>
<item class_id_reference="20" object_id="_245">
<id>274</id>
<edge_type>1</edge_type>
<source_obj>60</source_obj>
<sink_obj>63</sink_obj>
</item>
<item class_id_reference="20" object_id="_246">
<id>275</id>
<edge_type>1</edge_type>
<source_obj>12</source_obj>
<sink_obj>64</sink_obj>
</item>
<item class_id_reference="20" object_id="_247">
<id>276</id>
<edge_type>1</edge_type>
<source_obj>54</source_obj>
<sink_obj>64</sink_obj>
</item>
<item class_id_reference="20" object_id="_248">
<id>277</id>
<edge_type>1</edge_type>
<source_obj>1</source_obj>
<sink_obj>65</sink_obj>
</item>
<item class_id_reference="20" object_id="_249">
<id>278</id>
<edge_type>1</edge_type>
<source_obj>64</source_obj>
<sink_obj>65</sink_obj>
</item>
<item class_id_reference="20" object_id="_250">
<id>280</id>
<edge_type>1</edge_type>
<source_obj>65</source_obj>
<sink_obj>66</sink_obj>
</item>
<item class_id_reference="20" object_id="_251">
<id>281</id>
<edge_type>1</edge_type>
<source_obj>180</source_obj>
<sink_obj>66</sink_obj>
</item>
<item class_id_reference="20" object_id="_252">
<id>283</id>
<edge_type>1</edge_type>
<source_obj>65</source_obj>
<sink_obj>67</sink_obj>
</item>
<item class_id_reference="20" object_id="_253">
<id>284</id>
<edge_type>1</edge_type>
<source_obj>67</source_obj>
<sink_obj>68</sink_obj>
</item>
<item class_id_reference="20" object_id="_254">
<id>285</id>
<edge_type>1</edge_type>
<source_obj>58</source_obj>
<sink_obj>68</sink_obj>
</item>
<item class_id_reference="20" object_id="_255">
<id>287</id>
<edge_type>1</edge_type>
<source_obj>65</source_obj>
<sink_obj>69</sink_obj>
</item>
<item class_id_reference="20" object_id="_256">
<id>288</id>
<edge_type>1</edge_type>
<source_obj>180</source_obj>
<sink_obj>69</sink_obj>
</item>
<item class_id_reference="20" object_id="_257">
<id>290</id>
<edge_type>1</edge_type>
<source_obj>65</source_obj>
<sink_obj>70</sink_obj>
</item>
<item class_id_reference="20" object_id="_258">
<id>291</id>
<edge_type>1</edge_type>
<source_obj>68</source_obj>
<sink_obj>70</sink_obj>
</item>
<item class_id_reference="20" object_id="_259">
<id>292</id>
<edge_type>1</edge_type>
<source_obj>197</source_obj>
<sink_obj>70</sink_obj>
</item>
<item class_id_reference="20" object_id="_260">
<id>294</id>
<edge_type>1</edge_type>
<source_obj>65</source_obj>
<sink_obj>71</sink_obj>
</item>
<item class_id_reference="20" object_id="_261">
<id>295</id>
<edge_type>1</edge_type>
<source_obj>15</source_obj>
<sink_obj>72</sink_obj>
</item>
<item class_id_reference="20" object_id="_262">
<id>297</id>
<edge_type>1</edge_type>
<source_obj>296</source_obj>
<sink_obj>72</sink_obj>
</item>
<item class_id_reference="20" object_id="_263">
<id>298</id>
<edge_type>1</edge_type>
<source_obj>72</source_obj>
<sink_obj>73</sink_obj>
</item>
<item class_id_reference="20" object_id="_264">
<id>299</id>
<edge_type>1</edge_type>
<source_obj>11</source_obj>
<sink_obj>74</sink_obj>
</item>
<item class_id_reference="20" object_id="_265">
<id>300</id>
<edge_type>1</edge_type>
<source_obj>73</source_obj>
<sink_obj>74</sink_obj>
</item>
<item class_id_reference="20" object_id="_266">
<id>301</id>
<edge_type>1</edge_type>
<source_obj>3</source_obj>
<sink_obj>75</sink_obj>
</item>
<item class_id_reference="20" object_id="_267">
<id>302</id>
<edge_type>1</edge_type>
<source_obj>74</source_obj>
<sink_obj>75</sink_obj>
</item>
<item class_id_reference="20" object_id="_268">
<id>304</id>
<edge_type>1</edge_type>
<source_obj>75</source_obj>
<sink_obj>76</sink_obj>
</item>
<item class_id_reference="20" object_id="_269">
<id>305</id>
<edge_type>1</edge_type>
<source_obj>180</source_obj>
<sink_obj>76</sink_obj>
</item>
<item class_id_reference="20" object_id="_270">
<id>307</id>
<edge_type>1</edge_type>
<source_obj>75</source_obj>
<sink_obj>77</sink_obj>
</item>
<item class_id_reference="20" object_id="_271">
<id>308</id>
<edge_type>1</edge_type>
<source_obj>10</source_obj>
<sink_obj>78</sink_obj>
</item>
<item class_id_reference="20" object_id="_272">
<id>309</id>
<edge_type>1</edge_type>
<source_obj>73</source_obj>
<sink_obj>78</sink_obj>
</item>
<item class_id_reference="20" object_id="_273">
<id>310</id>
<edge_type>1</edge_type>
<source_obj>5</source_obj>
<sink_obj>79</sink_obj>
</item>
<item class_id_reference="20" object_id="_274">
<id>311</id>
<edge_type>1</edge_type>
<source_obj>78</source_obj>
<sink_obj>79</sink_obj>
</item>
<item class_id_reference="20" object_id="_275">
<id>313</id>
<edge_type>1</edge_type>
<source_obj>79</source_obj>
<sink_obj>80</sink_obj>
</item>
<item class_id_reference="20" object_id="_276">
<id>314</id>
<edge_type>1</edge_type>
<source_obj>180</source_obj>
<sink_obj>80</sink_obj>
</item>
<item class_id_reference="20" object_id="_277">
<id>316</id>
<edge_type>1</edge_type>
<source_obj>79</source_obj>
<sink_obj>81</sink_obj>
</item>
<item class_id_reference="20" object_id="_278">
<id>317</id>
<edge_type>1</edge_type>
<source_obj>77</source_obj>
<sink_obj>81</sink_obj>
</item>
<item class_id_reference="20" object_id="_279">
<id>318</id>
<edge_type>1</edge_type>
<source_obj>197</source_obj>
<sink_obj>81</sink_obj>
</item>
<item class_id_reference="20" object_id="_280">
<id>320</id>
<edge_type>1</edge_type>
<source_obj>79</source_obj>
<sink_obj>82</sink_obj>
</item>
<item class_id_reference="20" object_id="_281">
<id>321</id>
<edge_type>1</edge_type>
<source_obj>15</source_obj>
<sink_obj>83</sink_obj>
</item>
<item class_id_reference="20" object_id="_282">
<id>323</id>
<edge_type>1</edge_type>
<source_obj>322</source_obj>
<sink_obj>83</sink_obj>
</item>
<item class_id_reference="20" object_id="_283">
<id>324</id>
<edge_type>1</edge_type>
<source_obj>83</source_obj>
<sink_obj>84</sink_obj>
</item>
<item class_id_reference="20" object_id="_284">
<id>325</id>
<edge_type>1</edge_type>
<source_obj>84</source_obj>
<sink_obj>85</sink_obj>
</item>
<item class_id_reference="20" object_id="_285">
<id>326</id>
<edge_type>1</edge_type>
<source_obj>11</source_obj>
<sink_obj>86</sink_obj>
</item>
<item class_id_reference="20" object_id="_286">
<id>327</id>
<edge_type>1</edge_type>
<source_obj>85</source_obj>
<sink_obj>86</sink_obj>
</item>
<item class_id_reference="20" object_id="_287">
<id>328</id>
<edge_type>1</edge_type>
<source_obj>3</source_obj>
<sink_obj>87</sink_obj>
</item>
<item class_id_reference="20" object_id="_288">
<id>329</id>
<edge_type>1</edge_type>
<source_obj>86</source_obj>
<sink_obj>87</sink_obj>
</item>
<item class_id_reference="20" object_id="_289">
<id>331</id>
<edge_type>1</edge_type>
<source_obj>87</source_obj>
<sink_obj>88</sink_obj>
</item>
<item class_id_reference="20" object_id="_290">
<id>332</id>
<edge_type>1</edge_type>
<source_obj>180</source_obj>
<sink_obj>88</sink_obj>
</item>
<item class_id_reference="20" object_id="_291">
<id>334</id>
<edge_type>1</edge_type>
<source_obj>87</source_obj>
<sink_obj>89</sink_obj>
</item>
<item class_id_reference="20" object_id="_292">
<id>335</id>
<edge_type>1</edge_type>
<source_obj>10</source_obj>
<sink_obj>90</sink_obj>
</item>
<item class_id_reference="20" object_id="_293">
<id>336</id>
<edge_type>1</edge_type>
<source_obj>85</source_obj>
<sink_obj>90</sink_obj>
</item>
<item class_id_reference="20" object_id="_294">
<id>337</id>
<edge_type>1</edge_type>
<source_obj>5</source_obj>
<sink_obj>91</sink_obj>
</item>
<item class_id_reference="20" object_id="_295">
<id>338</id>
<edge_type>1</edge_type>
<source_obj>90</source_obj>
<sink_obj>91</sink_obj>
</item>
<item class_id_reference="20" object_id="_296">
<id>340</id>
<edge_type>1</edge_type>
<source_obj>91</source_obj>
<sink_obj>92</sink_obj>
</item>
<item class_id_reference="20" object_id="_297">
<id>341</id>
<edge_type>1</edge_type>
<source_obj>180</source_obj>
<sink_obj>92</sink_obj>
</item>
<item class_id_reference="20" object_id="_298">
<id>343</id>
<edge_type>1</edge_type>
<source_obj>91</source_obj>
<sink_obj>93</sink_obj>
</item>
<item class_id_reference="20" object_id="_299">
<id>344</id>
<edge_type>1</edge_type>
<source_obj>89</source_obj>
<sink_obj>93</sink_obj>
</item>
<item class_id_reference="20" object_id="_300">
<id>345</id>
<edge_type>1</edge_type>
<source_obj>197</source_obj>
<sink_obj>93</sink_obj>
</item>
<item class_id_reference="20" object_id="_301">
<id>347</id>
<edge_type>1</edge_type>
<source_obj>91</source_obj>
<sink_obj>94</sink_obj>
</item>
<item class_id_reference="20" object_id="_302">
<id>348</id>
<edge_type>1</edge_type>
<source_obj>12</source_obj>
<sink_obj>95</sink_obj>
</item>
<item class_id_reference="20" object_id="_303">
<id>349</id>
<edge_type>1</edge_type>
<source_obj>85</source_obj>
<sink_obj>95</sink_obj>
</item>
<item class_id_reference="20" object_id="_304">
<id>350</id>
<edge_type>1</edge_type>
<source_obj>1</source_obj>
<sink_obj>96</sink_obj>
</item>
<item class_id_reference="20" object_id="_305">
<id>351</id>
<edge_type>1</edge_type>
<source_obj>95</source_obj>
<sink_obj>96</sink_obj>
</item>
<item class_id_reference="20" object_id="_306">
<id>353</id>
<edge_type>1</edge_type>
<source_obj>96</source_obj>
<sink_obj>97</sink_obj>
</item>
<item class_id_reference="20" object_id="_307">
<id>354</id>
<edge_type>1</edge_type>
<source_obj>180</source_obj>
<sink_obj>97</sink_obj>
</item>
<item class_id_reference="20" object_id="_308">
<id>356</id>
<edge_type>1</edge_type>
<source_obj>96</source_obj>
<sink_obj>98</sink_obj>
</item>
<item class_id_reference="20" object_id="_309">
<id>357</id>
<edge_type>1</edge_type>
<source_obj>98</source_obj>
<sink_obj>99</sink_obj>
</item>
<item class_id_reference="20" object_id="_310">
<id>358</id>
<edge_type>1</edge_type>
<source_obj>89</source_obj>
<sink_obj>99</sink_obj>
</item>
<item class_id_reference="20" object_id="_311">
<id>360</id>
<edge_type>1</edge_type>
<source_obj>96</source_obj>
<sink_obj>100</sink_obj>
</item>
<item class_id_reference="20" object_id="_312">
<id>361</id>
<edge_type>1</edge_type>
<source_obj>180</source_obj>
<sink_obj>100</sink_obj>
</item>
<item class_id_reference="20" object_id="_313">
<id>363</id>
<edge_type>1</edge_type>
<source_obj>96</source_obj>
<sink_obj>101</sink_obj>
</item>
<item class_id_reference="20" object_id="_314">
<id>364</id>
<edge_type>1</edge_type>
<source_obj>99</source_obj>
<sink_obj>101</sink_obj>
</item>
<item class_id_reference="20" object_id="_315">
<id>365</id>
<edge_type>1</edge_type>
<source_obj>197</source_obj>
<sink_obj>101</sink_obj>
</item>
<item class_id_reference="20" object_id="_316">
<id>367</id>
<edge_type>1</edge_type>
<source_obj>96</source_obj>
<sink_obj>102</sink_obj>
</item>
<item class_id_reference="20" object_id="_317">
<id>368</id>
<edge_type>1</edge_type>
<source_obj>15</source_obj>
<sink_obj>103</sink_obj>
</item>
<item class_id_reference="20" object_id="_318">
<id>370</id>
<edge_type>1</edge_type>
<source_obj>369</source_obj>
<sink_obj>103</sink_obj>
</item>
<item class_id_reference="20" object_id="_319">
<id>371</id>
<edge_type>1</edge_type>
<source_obj>103</source_obj>
<sink_obj>104</sink_obj>
</item>
<item class_id_reference="20" object_id="_320">
<id>372</id>
<edge_type>1</edge_type>
<source_obj>11</source_obj>
<sink_obj>105</sink_obj>
</item>
<item class_id_reference="20" object_id="_321">
<id>373</id>
<edge_type>1</edge_type>
<source_obj>104</source_obj>
<sink_obj>105</sink_obj>
</item>
<item class_id_reference="20" object_id="_322">
<id>374</id>
<edge_type>1</edge_type>
<source_obj>3</source_obj>
<sink_obj>106</sink_obj>
</item>
<item class_id_reference="20" object_id="_323">
<id>375</id>
<edge_type>1</edge_type>
<source_obj>105</source_obj>
<sink_obj>106</sink_obj>
</item>
<item class_id_reference="20" object_id="_324">
<id>377</id>
<edge_type>1</edge_type>
<source_obj>106</source_obj>
<sink_obj>107</sink_obj>
</item>
<item class_id_reference="20" object_id="_325">
<id>378</id>
<edge_type>1</edge_type>
<source_obj>180</source_obj>
<sink_obj>107</sink_obj>
</item>
<item class_id_reference="20" object_id="_326">
<id>380</id>
<edge_type>1</edge_type>
<source_obj>106</source_obj>
<sink_obj>108</sink_obj>
</item>
<item class_id_reference="20" object_id="_327">
<id>381</id>
<edge_type>1</edge_type>
<source_obj>10</source_obj>
<sink_obj>109</sink_obj>
</item>
<item class_id_reference="20" object_id="_328">
<id>382</id>
<edge_type>1</edge_type>
<source_obj>104</source_obj>
<sink_obj>109</sink_obj>
</item>
<item class_id_reference="20" object_id="_329">
<id>383</id>
<edge_type>1</edge_type>
<source_obj>5</source_obj>
<sink_obj>110</sink_obj>
</item>
<item class_id_reference="20" object_id="_330">
<id>384</id>
<edge_type>1</edge_type>
<source_obj>109</source_obj>
<sink_obj>110</sink_obj>
</item>
<item class_id_reference="20" object_id="_331">
<id>386</id>
<edge_type>1</edge_type>
<source_obj>110</source_obj>
<sink_obj>111</sink_obj>
</item>
<item class_id_reference="20" object_id="_332">
<id>387</id>
<edge_type>1</edge_type>
<source_obj>180</source_obj>
<sink_obj>111</sink_obj>
</item>
<item class_id_reference="20" object_id="_333">
<id>389</id>
<edge_type>1</edge_type>
<source_obj>110</source_obj>
<sink_obj>112</sink_obj>
</item>
<item class_id_reference="20" object_id="_334">
<id>390</id>
<edge_type>1</edge_type>
<source_obj>108</source_obj>
<sink_obj>112</sink_obj>
</item>
<item class_id_reference="20" object_id="_335">
<id>391</id>
<edge_type>1</edge_type>
<source_obj>197</source_obj>
<sink_obj>112</sink_obj>
</item>
<item class_id_reference="20" object_id="_336">
<id>393</id>
<edge_type>1</edge_type>
<source_obj>110</source_obj>
<sink_obj>113</sink_obj>
</item>
<item class_id_reference="20" object_id="_337">
<id>394</id>
<edge_type>1</edge_type>
<source_obj>15</source_obj>
<sink_obj>114</sink_obj>
</item>
<item class_id_reference="20" object_id="_338">
<id>396</id>
<edge_type>1</edge_type>
<source_obj>395</source_obj>
<sink_obj>114</sink_obj>
</item>
<item class_id_reference="20" object_id="_339">
<id>397</id>
<edge_type>1</edge_type>
<source_obj>114</source_obj>
<sink_obj>115</sink_obj>
</item>
<item class_id_reference="20" object_id="_340">
<id>398</id>
<edge_type>1</edge_type>
<source_obj>115</source_obj>
<sink_obj>116</sink_obj>
</item>
<item class_id_reference="20" object_id="_341">
<id>399</id>
<edge_type>1</edge_type>
<source_obj>11</source_obj>
<sink_obj>117</sink_obj>
</item>
<item class_id_reference="20" object_id="_342">
<id>400</id>
<edge_type>1</edge_type>
<source_obj>116</source_obj>
<sink_obj>117</sink_obj>
</item>
<item class_id_reference="20" object_id="_343">
<id>401</id>
<edge_type>1</edge_type>
<source_obj>3</source_obj>
<sink_obj>118</sink_obj>
</item>
<item class_id_reference="20" object_id="_344">
<id>402</id>
<edge_type>1</edge_type>
<source_obj>117</source_obj>
<sink_obj>118</sink_obj>
</item>
<item class_id_reference="20" object_id="_345">
<id>404</id>
<edge_type>1</edge_type>
<source_obj>118</source_obj>
<sink_obj>119</sink_obj>
</item>
<item class_id_reference="20" object_id="_346">
<id>405</id>
<edge_type>1</edge_type>
<source_obj>180</source_obj>
<sink_obj>119</sink_obj>
</item>
<item class_id_reference="20" object_id="_347">
<id>407</id>
<edge_type>1</edge_type>
<source_obj>118</source_obj>
<sink_obj>120</sink_obj>
</item>
<item class_id_reference="20" object_id="_348">
<id>408</id>
<edge_type>1</edge_type>
<source_obj>10</source_obj>
<sink_obj>121</sink_obj>
</item>
<item class_id_reference="20" object_id="_349">
<id>409</id>
<edge_type>1</edge_type>
<source_obj>116</source_obj>
<sink_obj>121</sink_obj>
</item>
<item class_id_reference="20" object_id="_350">
<id>410</id>
<edge_type>1</edge_type>
<source_obj>5</source_obj>
<sink_obj>122</sink_obj>
</item>
<item class_id_reference="20" object_id="_351">
<id>411</id>
<edge_type>1</edge_type>
<source_obj>121</source_obj>
<sink_obj>122</sink_obj>
</item>
<item class_id_reference="20" object_id="_352">
<id>413</id>
<edge_type>1</edge_type>
<source_obj>122</source_obj>
<sink_obj>123</sink_obj>
</item>
<item class_id_reference="20" object_id="_353">
<id>414</id>
<edge_type>1</edge_type>
<source_obj>180</source_obj>
<sink_obj>123</sink_obj>
</item>
<item class_id_reference="20" object_id="_354">
<id>416</id>
<edge_type>1</edge_type>
<source_obj>122</source_obj>
<sink_obj>124</sink_obj>
</item>
<item class_id_reference="20" object_id="_355">
<id>417</id>
<edge_type>1</edge_type>
<source_obj>120</source_obj>
<sink_obj>124</sink_obj>
</item>
<item class_id_reference="20" object_id="_356">
<id>418</id>
<edge_type>1</edge_type>
<source_obj>197</source_obj>
<sink_obj>124</sink_obj>
</item>
<item class_id_reference="20" object_id="_357">
<id>420</id>
<edge_type>1</edge_type>
<source_obj>122</source_obj>
<sink_obj>125</sink_obj>
</item>
<item class_id_reference="20" object_id="_358">
<id>421</id>
<edge_type>1</edge_type>
<source_obj>12</source_obj>
<sink_obj>126</sink_obj>
</item>
<item class_id_reference="20" object_id="_359">
<id>422</id>
<edge_type>1</edge_type>
<source_obj>116</source_obj>
<sink_obj>126</sink_obj>
</item>
<item class_id_reference="20" object_id="_360">
<id>423</id>
<edge_type>1</edge_type>
<source_obj>1</source_obj>
<sink_obj>127</sink_obj>
</item>
<item class_id_reference="20" object_id="_361">
<id>424</id>
<edge_type>1</edge_type>
<source_obj>126</source_obj>
<sink_obj>127</sink_obj>
</item>
<item class_id_reference="20" object_id="_362">
<id>426</id>
<edge_type>1</edge_type>
<source_obj>127</source_obj>
<sink_obj>128</sink_obj>
</item>
<item class_id_reference="20" object_id="_363">
<id>427</id>
<edge_type>1</edge_type>
<source_obj>180</source_obj>
<sink_obj>128</sink_obj>
</item>
<item class_id_reference="20" object_id="_364">
<id>429</id>
<edge_type>1</edge_type>
<source_obj>127</source_obj>
<sink_obj>129</sink_obj>
</item>
<item class_id_reference="20" object_id="_365">
<id>430</id>
<edge_type>1</edge_type>
<source_obj>129</source_obj>
<sink_obj>130</sink_obj>
</item>
<item class_id_reference="20" object_id="_366">
<id>431</id>
<edge_type>1</edge_type>
<source_obj>120</source_obj>
<sink_obj>130</sink_obj>
</item>
<item class_id_reference="20" object_id="_367">
<id>433</id>
<edge_type>1</edge_type>
<source_obj>127</source_obj>
<sink_obj>131</sink_obj>
</item>
<item class_id_reference="20" object_id="_368">
<id>434</id>
<edge_type>1</edge_type>
<source_obj>180</source_obj>
<sink_obj>131</sink_obj>
</item>
<item class_id_reference="20" object_id="_369">
<id>436</id>
<edge_type>1</edge_type>
<source_obj>127</source_obj>
<sink_obj>132</sink_obj>
</item>
<item class_id_reference="20" object_id="_370">
<id>437</id>
<edge_type>1</edge_type>
<source_obj>130</source_obj>
<sink_obj>132</sink_obj>
</item>
<item class_id_reference="20" object_id="_371">
<id>438</id>
<edge_type>1</edge_type>
<source_obj>197</source_obj>
<sink_obj>132</sink_obj>
</item>
<item class_id_reference="20" object_id="_372">
<id>440</id>
<edge_type>1</edge_type>
<source_obj>127</source_obj>
<sink_obj>133</sink_obj>
</item>
<item class_id_reference="20" object_id="_373">
<id>441</id>
<edge_type>1</edge_type>
<source_obj>15</source_obj>
<sink_obj>134</sink_obj>
</item>
<item class_id_reference="20" object_id="_374">
<id>443</id>
<edge_type>1</edge_type>
<source_obj>442</source_obj>
<sink_obj>134</sink_obj>
</item>
<item class_id_reference="20" object_id="_375">
<id>444</id>
<edge_type>1</edge_type>
<source_obj>134</source_obj>
<sink_obj>135</sink_obj>
</item>
<item class_id_reference="20" object_id="_376">
<id>445</id>
<edge_type>1</edge_type>
<source_obj>11</source_obj>
<sink_obj>136</sink_obj>
</item>
<item class_id_reference="20" object_id="_377">
<id>446</id>
<edge_type>1</edge_type>
<source_obj>135</source_obj>
<sink_obj>136</sink_obj>
</item>
<item class_id_reference="20" object_id="_378">
<id>447</id>
<edge_type>1</edge_type>
<source_obj>3</source_obj>
<sink_obj>137</sink_obj>
</item>
<item class_id_reference="20" object_id="_379">
<id>448</id>
<edge_type>1</edge_type>
<source_obj>136</source_obj>
<sink_obj>137</sink_obj>
</item>
<item class_id_reference="20" object_id="_380">
<id>450</id>
<edge_type>1</edge_type>
<source_obj>137</source_obj>
<sink_obj>138</sink_obj>
</item>
<item class_id_reference="20" object_id="_381">
<id>451</id>
<edge_type>1</edge_type>
<source_obj>180</source_obj>
<sink_obj>138</sink_obj>
</item>
<item class_id_reference="20" object_id="_382">
<id>453</id>
<edge_type>1</edge_type>
<source_obj>137</source_obj>
<sink_obj>139</sink_obj>
</item>
<item class_id_reference="20" object_id="_383">
<id>454</id>
<edge_type>1</edge_type>
<source_obj>10</source_obj>
<sink_obj>140</sink_obj>
</item>
<item class_id_reference="20" object_id="_384">
<id>455</id>
<edge_type>1</edge_type>
<source_obj>135</source_obj>
<sink_obj>140</sink_obj>
</item>
<item class_id_reference="20" object_id="_385">
<id>456</id>
<edge_type>1</edge_type>
<source_obj>5</source_obj>
<sink_obj>141</sink_obj>
</item>
<item class_id_reference="20" object_id="_386">
<id>457</id>
<edge_type>1</edge_type>
<source_obj>140</source_obj>
<sink_obj>141</sink_obj>
</item>
<item class_id_reference="20" object_id="_387">
<id>459</id>
<edge_type>1</edge_type>
<source_obj>141</source_obj>
<sink_obj>142</sink_obj>
</item>
<item class_id_reference="20" object_id="_388">
<id>460</id>
<edge_type>1</edge_type>
<source_obj>180</source_obj>
<sink_obj>142</sink_obj>
</item>
<item class_id_reference="20" object_id="_389">
<id>462</id>
<edge_type>1</edge_type>
<source_obj>141</source_obj>
<sink_obj>143</sink_obj>
</item>
<item class_id_reference="20" object_id="_390">
<id>463</id>
<edge_type>1</edge_type>
<source_obj>139</source_obj>
<sink_obj>143</sink_obj>
</item>
<item class_id_reference="20" object_id="_391">
<id>464</id>
<edge_type>1</edge_type>
<source_obj>197</source_obj>
<sink_obj>143</sink_obj>
</item>
<item class_id_reference="20" object_id="_392">
<id>466</id>
<edge_type>1</edge_type>
<source_obj>141</source_obj>
<sink_obj>144</sink_obj>
</item>
<item class_id_reference="20" object_id="_393">
<id>467</id>
<edge_type>2</edge_type>
<source_obj>21</source_obj>
<sink_obj>145</sink_obj>
</item>
<item class_id_reference="20" object_id="_394">
<id>538</id>
<edge_type>2</edge_type>
<source_obj>14</source_obj>
<sink_obj>21</sink_obj>
</item>
<item class_id_reference="20" object_id="_395">
<id>539</id>
<edge_type>2</edge_type>
<source_obj>21</source_obj>
<sink_obj>148</sink_obj>
</item>
<item class_id_reference="20" object_id="_396">
<id>540</id>
<edge_type>2</edge_type>
<source_obj>21</source_obj>
<sink_obj>146</sink_obj>
</item>
<item class_id_reference="20" object_id="_397">
<id>541</id>
<edge_type>2</edge_type>
<source_obj>146</source_obj>
<sink_obj>21</sink_obj>
</item>
<item class_id_reference="20" object_id="_398">
<id>542</id>
<edge_type>4</edge_type>
<source_obj>143</source_obj>
<sink_obj>144</sink_obj>
</item>
<item class_id_reference="20" object_id="_399">
<id>543</id>
<edge_type>4</edge_type>
<source_obj>142</source_obj>
<sink_obj>143</sink_obj>
</item>
<item class_id_reference="20" object_id="_400">
<id>544</id>
<edge_type>4</edge_type>
<source_obj>138</source_obj>
<sink_obj>139</sink_obj>
</item>
<item class_id_reference="20" object_id="_401">
<id>545</id>
<edge_type>4</edge_type>
<source_obj>132</source_obj>
<sink_obj>133</sink_obj>
</item>
<item class_id_reference="20" object_id="_402">
<id>546</id>
<edge_type>4</edge_type>
<source_obj>131</source_obj>
<sink_obj>132</sink_obj>
</item>
<item class_id_reference="20" object_id="_403">
<id>547</id>
<edge_type>4</edge_type>
<source_obj>129</source_obj>
<sink_obj>131</sink_obj>
</item>
<item class_id_reference="20" object_id="_404">
<id>548</id>
<edge_type>4</edge_type>
<source_obj>128</source_obj>
<sink_obj>129</sink_obj>
</item>
<item class_id_reference="20" object_id="_405">
<id>549</id>
<edge_type>4</edge_type>
<source_obj>125</source_obj>
<sink_obj>144</sink_obj>
</item>
<item class_id_reference="20" object_id="_406">
<id>550</id>
<edge_type>4</edge_type>
<source_obj>124</source_obj>
<sink_obj>125</sink_obj>
</item>
<item class_id_reference="20" object_id="_407">
<id>551</id>
<edge_type>4</edge_type>
<source_obj>124</source_obj>
<sink_obj>142</sink_obj>
</item>
<item class_id_reference="20" object_id="_408">
<id>552</id>
<edge_type>4</edge_type>
<source_obj>123</source_obj>
<sink_obj>124</sink_obj>
</item>
<item class_id_reference="20" object_id="_409">
<id>553</id>
<edge_type>4</edge_type>
<source_obj>120</source_obj>
<sink_obj>139</sink_obj>
</item>
<item class_id_reference="20" object_id="_410">
<id>554</id>
<edge_type>4</edge_type>
<source_obj>119</source_obj>
<sink_obj>120</sink_obj>
</item>
<item class_id_reference="20" object_id="_411">
<id>555</id>
<edge_type>4</edge_type>
<source_obj>119</source_obj>
<sink_obj>138</sink_obj>
</item>
<item class_id_reference="20" object_id="_412">
<id>556</id>
<edge_type>4</edge_type>
<source_obj>113</source_obj>
<sink_obj>125</sink_obj>
</item>
<item class_id_reference="20" object_id="_413">
<id>557</id>
<edge_type>4</edge_type>
<source_obj>112</source_obj>
<sink_obj>113</sink_obj>
</item>
<item class_id_reference="20" object_id="_414">
<id>558</id>
<edge_type>4</edge_type>
<source_obj>112</source_obj>
<sink_obj>123</sink_obj>
</item>
<item class_id_reference="20" object_id="_415">
<id>559</id>
<edge_type>4</edge_type>
<source_obj>111</source_obj>
<sink_obj>112</sink_obj>
</item>
<item class_id_reference="20" object_id="_416">
<id>560</id>
<edge_type>4</edge_type>
<source_obj>108</source_obj>
<sink_obj>120</sink_obj>
</item>
<item class_id_reference="20" object_id="_417">
<id>561</id>
<edge_type>4</edge_type>
<source_obj>107</source_obj>
<sink_obj>108</sink_obj>
</item>
<item class_id_reference="20" object_id="_418">
<id>562</id>
<edge_type>4</edge_type>
<source_obj>107</source_obj>
<sink_obj>119</sink_obj>
</item>
<item class_id_reference="20" object_id="_419">
<id>563</id>
<edge_type>4</edge_type>
<source_obj>102</source_obj>
<sink_obj>128</sink_obj>
</item>
<item class_id_reference="20" object_id="_420">
<id>564</id>
<edge_type>4</edge_type>
<source_obj>101</source_obj>
<sink_obj>102</sink_obj>
</item>
<item class_id_reference="20" object_id="_421">
<id>565</id>
<edge_type>4</edge_type>
<source_obj>100</source_obj>
<sink_obj>101</sink_obj>
</item>
<item class_id_reference="20" object_id="_422">
<id>566</id>
<edge_type>4</edge_type>
<source_obj>98</source_obj>
<sink_obj>100</sink_obj>
</item>
<item class_id_reference="20" object_id="_423">
<id>567</id>
<edge_type>4</edge_type>
<source_obj>97</source_obj>
<sink_obj>98</sink_obj>
</item>
<item class_id_reference="20" object_id="_424">
<id>568</id>
<edge_type>4</edge_type>
<source_obj>94</source_obj>
<sink_obj>113</sink_obj>
</item>
<item class_id_reference="20" object_id="_425">
<id>569</id>
<edge_type>4</edge_type>
<source_obj>93</source_obj>
<sink_obj>94</sink_obj>
</item>
<item class_id_reference="20" object_id="_426">
<id>570</id>
<edge_type>4</edge_type>
<source_obj>93</source_obj>
<sink_obj>111</sink_obj>
</item>
<item class_id_reference="20" object_id="_427">
<id>571</id>
<edge_type>4</edge_type>
<source_obj>92</source_obj>
<sink_obj>93</sink_obj>
</item>
<item class_id_reference="20" object_id="_428">
<id>572</id>
<edge_type>4</edge_type>
<source_obj>89</source_obj>
<sink_obj>108</sink_obj>
</item>
<item class_id_reference="20" object_id="_429">
<id>573</id>
<edge_type>4</edge_type>
<source_obj>88</source_obj>
<sink_obj>89</sink_obj>
</item>
<item class_id_reference="20" object_id="_430">
<id>574</id>
<edge_type>4</edge_type>
<source_obj>88</source_obj>
<sink_obj>107</sink_obj>
</item>
<item class_id_reference="20" object_id="_431">
<id>575</id>
<edge_type>4</edge_type>
<source_obj>82</source_obj>
<sink_obj>94</sink_obj>
</item>
<item class_id_reference="20" object_id="_432">
<id>576</id>
<edge_type>4</edge_type>
<source_obj>81</source_obj>
<sink_obj>82</sink_obj>
</item>
<item class_id_reference="20" object_id="_433">
<id>577</id>
<edge_type>4</edge_type>
<source_obj>81</source_obj>
<sink_obj>92</sink_obj>
</item>
<item class_id_reference="20" object_id="_434">
<id>578</id>
<edge_type>4</edge_type>
<source_obj>80</source_obj>
<sink_obj>81</sink_obj>
</item>
<item class_id_reference="20" object_id="_435">
<id>579</id>
<edge_type>4</edge_type>
<source_obj>77</source_obj>
<sink_obj>89</sink_obj>
</item>
<item class_id_reference="20" object_id="_436">
<id>580</id>
<edge_type>4</edge_type>
<source_obj>76</source_obj>
<sink_obj>77</sink_obj>
</item>
<item class_id_reference="20" object_id="_437">
<id>581</id>
<edge_type>4</edge_type>
<source_obj>76</source_obj>
<sink_obj>88</sink_obj>
</item>
<item class_id_reference="20" object_id="_438">
<id>582</id>
<edge_type>4</edge_type>
<source_obj>71</source_obj>
<sink_obj>97</sink_obj>
</item>
<item class_id_reference="20" object_id="_439">
<id>583</id>
<edge_type>4</edge_type>
<source_obj>70</source_obj>
<sink_obj>71</sink_obj>
</item>
<item class_id_reference="20" object_id="_440">
<id>584</id>
<edge_type>4</edge_type>
<source_obj>69</source_obj>
<sink_obj>70</sink_obj>
</item>
<item class_id_reference="20" object_id="_441">
<id>585</id>
<edge_type>4</edge_type>
<source_obj>67</source_obj>
<sink_obj>69</sink_obj>
</item>
<item class_id_reference="20" object_id="_442">
<id>586</id>
<edge_type>4</edge_type>
<source_obj>66</source_obj>
<sink_obj>67</sink_obj>
</item>
<item class_id_reference="20" object_id="_443">
<id>587</id>
<edge_type>4</edge_type>
<source_obj>63</source_obj>
<sink_obj>82</sink_obj>
</item>
<item class_id_reference="20" object_id="_444">
<id>588</id>
<edge_type>4</edge_type>
<source_obj>62</source_obj>
<sink_obj>63</sink_obj>
</item>
<item class_id_reference="20" object_id="_445">
<id>589</id>
<edge_type>4</edge_type>
<source_obj>62</source_obj>
<sink_obj>80</sink_obj>
</item>
<item class_id_reference="20" object_id="_446">
<id>590</id>
<edge_type>4</edge_type>
<source_obj>61</source_obj>
<sink_obj>62</sink_obj>
</item>
<item class_id_reference="20" object_id="_447">
<id>591</id>
<edge_type>4</edge_type>
<source_obj>58</source_obj>
<sink_obj>77</sink_obj>
</item>
<item class_id_reference="20" object_id="_448">
<id>592</id>
<edge_type>4</edge_type>
<source_obj>57</source_obj>
<sink_obj>58</sink_obj>
</item>
<item class_id_reference="20" object_id="_449">
<id>593</id>
<edge_type>4</edge_type>
<source_obj>57</source_obj>
<sink_obj>76</sink_obj>
</item>
<item class_id_reference="20" object_id="_450">
<id>594</id>
<edge_type>4</edge_type>
<source_obj>51</source_obj>
<sink_obj>63</sink_obj>
</item>
<item class_id_reference="20" object_id="_451">
<id>595</id>
<edge_type>4</edge_type>
<source_obj>50</source_obj>
<sink_obj>51</sink_obj>
</item>
<item class_id_reference="20" object_id="_452">
<id>596</id>
<edge_type>4</edge_type>
<source_obj>50</source_obj>
<sink_obj>61</sink_obj>
</item>
<item class_id_reference="20" object_id="_453">
<id>597</id>
<edge_type>4</edge_type>
<source_obj>49</source_obj>
<sink_obj>50</sink_obj>
</item>
<item class_id_reference="20" object_id="_454">
<id>598</id>
<edge_type>4</edge_type>
<source_obj>46</source_obj>
<sink_obj>58</sink_obj>
</item>
<item class_id_reference="20" object_id="_455">
<id>599</id>
<edge_type>4</edge_type>
<source_obj>45</source_obj>
<sink_obj>46</sink_obj>
</item>
<item class_id_reference="20" object_id="_456">
<id>600</id>
<edge_type>4</edge_type>
<source_obj>45</source_obj>
<sink_obj>57</sink_obj>
</item>
<item class_id_reference="20" object_id="_457">
<id>601</id>
<edge_type>4</edge_type>
<source_obj>40</source_obj>
<sink_obj>66</sink_obj>
</item>
<item class_id_reference="20" object_id="_458">
<id>602</id>
<edge_type>4</edge_type>
<source_obj>39</source_obj>
<sink_obj>40</sink_obj>
</item>
<item class_id_reference="20" object_id="_459">
<id>603</id>
<edge_type>4</edge_type>
<source_obj>38</source_obj>
<sink_obj>39</sink_obj>
</item>
<item class_id_reference="20" object_id="_460">
<id>604</id>
<edge_type>4</edge_type>
<source_obj>36</source_obj>
<sink_obj>38</sink_obj>
</item>
<item class_id_reference="20" object_id="_461">
<id>605</id>
<edge_type>4</edge_type>
<source_obj>35</source_obj>
<sink_obj>36</sink_obj>
</item>
<item class_id_reference="20" object_id="_462">
<id>606</id>
<edge_type>4</edge_type>
<source_obj>32</source_obj>
<sink_obj>51</sink_obj>
</item>
<item class_id_reference="20" object_id="_463">
<id>607</id>
<edge_type>4</edge_type>
<source_obj>31</source_obj>
<sink_obj>32</sink_obj>
</item>
<item class_id_reference="20" object_id="_464">
<id>608</id>
<edge_type>4</edge_type>
<source_obj>31</source_obj>
<sink_obj>49</sink_obj>
</item>
<item class_id_reference="20" object_id="_465">
<id>609</id>
<edge_type>4</edge_type>
<source_obj>30</source_obj>
<sink_obj>31</sink_obj>
</item>
<item class_id_reference="20" object_id="_466">
<id>610</id>
<edge_type>4</edge_type>
<source_obj>27</source_obj>
<sink_obj>46</sink_obj>
</item>
<item class_id_reference="20" object_id="_467">
<id>611</id>
<edge_type>4</edge_type>
<source_obj>26</source_obj>
<sink_obj>27</sink_obj>
</item>
<item class_id_reference="20" object_id="_468">
<id>612</id>
<edge_type>4</edge_type>
<source_obj>26</source_obj>
<sink_obj>45</sink_obj>
</item>
</edges>
</cdfg>
<cdfg_regions class_id="21" tracking_level="0" version="0">
<count>4</count>
<item_version>0</item_version>
<item class_id="22" tracking_level="1" version="0" object_id="_469">
<mId>1</mId>
<mTag>aes_addRoundKey_cpy</mTag>
<mType>0</mType>
<sub_regions>
<count>3</count>
<item_version>0</item_version>
<item>2</item>
<item>3</item>
<item>4</item>
</sub_regions>
<basic_blocks>
<count>0</count>
<item_version>0</item_version>
</basic_blocks>
<mII>-1</mII>
<mDepth>-1</mDepth>
<mMinTripCount>-1</mMinTripCount>
<mMaxTripCount>-1</mMaxTripCount>
<mMinLatency>261</mMinLatency>
<mMaxLatency>-1</mMaxLatency>
<mIsDfPipe>0</mIsDfPipe>
<mDfPipe class_id="-1"></mDfPipe>
</item>
<item class_id_reference="22" object_id="_470">
<mId>2</mId>
<mTag>Entry</mTag>
<mType>0</mType>
<sub_regions>
<count>0</count>
<item_version>0</item_version>
</sub_regions>
<basic_blocks>
<count>1</count>
<item_version>0</item_version>
<item>14</item>
</basic_blocks>
<mII>-1</mII>
<mDepth>-1</mDepth>
<mMinTripCount>-1</mMinTripCount>
<mMaxTripCount>-1</mMaxTripCount>
<mMinLatency>0</mMinLatency>
<mMaxLatency>-1</mMaxLatency>
<mIsDfPipe>0</mIsDfPipe>
<mDfPipe class_id="-1"></mDfPipe>
</item>
<item class_id_reference="22" object_id="_471">
<mId>3</mId>
<mTag>cpkey</mTag>
<mType>1</mType>
<sub_regions>
<count>0</count>
<item_version>0</item_version>
</sub_regions>
<basic_blocks>
<count>2</count>
<item_version>0</item_version>
<item>21</item>
<item>146</item>
</basic_blocks>
<mII>-1</mII>
<mDepth>-1</mDepth>
<mMinTripCount>4</mMinTripCount>
<mMaxTripCount>4</mMaxTripCount>
<mMinLatency>260</mMinLatency>
<mMaxLatency>-1</mMaxLatency>
<mIsDfPipe>0</mIsDfPipe>
<mDfPipe class_id="-1"></mDfPipe>
</item>
<item class_id_reference="22" object_id="_472">
<mId>4</mId>
<mTag>Return</mTag>
<mType>0</mType>
<sub_regions>
<count>0</count>
<item_version>0</item_version>
</sub_regions>
<basic_blocks>
<count>1</count>
<item_version>0</item_version>
<item>148</item>
</basic_blocks>
<mII>-1</mII>
<mDepth>-1</mDepth>
<mMinTripCount>-1</mMinTripCount>
<mMaxTripCount>-1</mMaxTripCount>
<mMinLatency>0</mMinLatency>
<mMaxLatency>-1</mMaxLatency>
<mIsDfPipe>0</mIsDfPipe>
<mDfPipe class_id="-1"></mDfPipe>
</item>
</cdfg_regions>
<fsm class_id="-1"></fsm>
<res class_id="-1"></res>
<node_label_latency class_id="26" tracking_level="0" version="0">
<count>133</count>
<item_version>0</item_version>
<item class_id="27" tracking_level="0" version="0">
<first>10</first>
<second class_id="28" tracking_level="0" version="0">
<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>15</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>17</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>18</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>19</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>20</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>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>2</first>
<second>6</second>
</second>
</item>
<item>
<first>27</first>
<second>
<first>9</first>
<second>0</second>
</second>
</item>
<item>
<first>28</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>29</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>30</first>
<second>
<first>10</first>
<second>0</second>
</second>
</item>
<item>
<first>31</first>
<second>
<first>11</first>
<second>0</second>
</second>
</item>
<item>
<first>32</first>
<second>
<first>12</first>
<second>4</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>0</second>
</second>
</item>
<item>
<first>35</first>
<second>
<first>2</first>
<second>6</second>
</second>
</item>
<item>
<first>36</first>
<second>
<first>9</first>
<second>0</second>
</second>
</item>
<item>
<first>37</first>
<second>
<first>10</first>
<second>0</second>
</second>
</item>
<item>
<first>38</first>
<second>
<first>10</first>
<second>0</second>
</second>
</item>
<item>
<first>39</first>
<second>
<first>11</first>
<second>0</second>
</second>
</item>
<item>
<first>40</first>
<second>
<first>12</first>
<second>4</second>
</second>
</item>
<item>
<first>41</first>
<second>
<first>16</first>
<second>0</second>
</second>
</item>
<item>
<first>42</first>
<second>
<first>16</first>
<second>0</second>
</second>
</item>
<item>
<first>43</first>
<second>
<first>16</first>
<second>0</second>
</second>
</item>
<item>
<first>44</first>
<second>
<first>16</first>
<second>0</second>
</second>
</item>
<item>
<first>45</first>
<second>
<first>17</first>
<second>6</second>
</second>
</item>
<item>
<first>46</first>
<second>
<first>24</first>
<second>0</second>
</second>
</item>
<item>
<first>47</first>
<second>
<first>16</first>
<second>0</second>
</second>
</item>
<item>
<first>48</first>
<second>
<first>16</first>
<second>0</second>
</second>
</item>
<item>
<first>49</first>
<second>
<first>26</first>
<second>0</second>
</second>
</item>
<item>
<first>50</first>
<second>
<first>27</first>
<second>0</second>
</second>
</item>
<item>
<first>51</first>
<second>
<first>28</first>
<second>4</second>
</second>
</item>
<item>
<first>52</first>
<second>
<first>16</first>
<second>0</second>
</second>
</item>
<item>
<first>53</first>
<second>
<first>16</first>
<second>0</second>
</second>
</item>
<item>
<first>54</first>
<second>
<first>16</first>
<second>0</second>
</second>
</item>
<item>
<first>55</first>
<second>
<first>16</first>
<second>0</second>
</second>
</item>
<item>
<first>56</first>
<second>
<first>16</first>
<second>0</second>
</second>
</item>
<item>
<first>57</first>
<second>
<first>18</first>
<second>6</second>
</second>
</item>
<item>
<first>58</first>
<second>
<first>25</first>
<second>0</second>
</second>
</item>
<item>
<first>59</first>
<second>
<first>16</first>
<second>0</second>
</second>
</item>
<item>
<first>60</first>
<second>
<first>16</first>
<second>0</second>
</second>
</item>
<item>
<first>61</first>
<second>
<first>42</first>
<second>0</second>
</second>
</item>
<item>
<first>62</first>
<second>
<first>43</first>
<second>0</second>
</second>
</item>
<item>
<first>63</first>
<second>
<first>44</first>
<second>4</second>
</second>
</item>
<item>
<first>64</first>
<second>
<first>16</first>
<second>0</second>
</second>
</item>
<item>
<first>65</first>
<second>
<first>16</first>
<second>0</second>
</second>
</item>
<item>
<first>66</first>
<second>
<first>17</first>
<second>6</second>
</second>
</item>
<item>
<first>67</first>
<second>
<first>24</first>
<second>0</second>
</second>
</item>
<item>
<first>68</first>
<second>
<first>26</first>
<second>0</second>
</second>
</item>
<item>
<first>69</first>
<second>
<first>26</first>
<second>0</second>
</second>
</item>
<item>
<first>70</first>
<second>
<first>27</first>
<second>0</second>
</second>
</item>
<item>
<first>71</first>
<second>
<first>28</first>
<second>4</second>
</second>
</item>
<item>
<first>72</first>
<second>
<first>32</first>
<second>0</second>
</second>
</item>
<item>
<first>73</first>
<second>
<first>32</first>
<second>0</second>
</second>
</item>
<item>
<first>74</first>
<second>
<first>32</first>
<second>0</second>
</second>
</item>
<item>
<first>75</first>
<second>
<first>32</first>
<second>0</second>
</second>
</item>
<item>
<first>76</first>
<second>
<first>33</first>
<second>6</second>
</second>
</item>
<item>
<first>77</first>
<second>
<first>40</first>
<second>0</second>
</second>
</item>
<item>
<first>78</first>
<second>
<first>32</first>
<second>0</second>
</second>
</item>
<item>
<first>79</first>
<second>
<first>32</first>
<second>0</second>
</second>
</item>
<item>
<first>80</first>
<second>
<first>44</first>
<second>0</second>
</second>
</item>
<item>
<first>81</first>
<second>
<first>45</first>
<second>0</second>
</second>
</item>
<item>
<first>82</first>
<second>
<first>46</first>
<second>4</second>
</second>
</item>
<item>
<first>83</first>
<second>
<first>32</first>
<second>0</second>
</second>
</item>
<item>
<first>84</first>
<second>
<first>32</first>
<second>0</second>
</second>
</item>
<item>
<first>85</first>
<second>
<first>32</first>
<second>0</second>
</second>
</item>
<item>
<first>86</first>
<second>
<first>32</first>
<second>0</second>
</second>
</item>
<item>
<first>87</first>
<second>
<first>32</first>
<second>0</second>
</second>
</item>
<item>
<first>88</first>
<second>
<first>34</first>
<second>6</second>
</second>
</item>
<item>
<first>89</first>
<second>
<first>41</first>
<second>0</second>
</second>
</item>
<item>
<first>90</first>
<second>
<first>32</first>
<second>0</second>
</second>
</item>
<item>
<first>91</first>
<second>
<first>32</first>
<second>0</second>
</second>
</item>
<item>
<first>92</first>
<second>
<first>46</first>
<second>0</second>
</second>
</item>
<item>
<first>93</first>
<second>
<first>47</first>
<second>0</second>
</second>
</item>
<item>
<first>94</first>
<second>
<first>48</first>
<second>4</second>
</second>
</item>
<item>
<first>95</first>
<second>
<first>32</first>
<second>0</second>
</second>
</item>
<item>
<first>96</first>
<second>
<first>32</first>
<second>0</second>
</second>
</item>
<item>
<first>97</first>
<second>
<first>33</first>
<second>6</second>
</second>
</item>
<item>
<first>98</first>
<second>
<first>40</first>
<second>0</second>
</second>
</item>
<item>
<first>99</first>
<second>
<first>42</first>
<second>0</second>
</second>
</item>
<item>
<first>100</first>
<second>
<first>42</first>
<second>0</second>
</second>
</item>
<item>
<first>101</first>
<second>
<first>43</first>
<second>0</second>
</second>
</item>
<item>
<first>102</first>
<second>
<first>44</first>
<second>4</second>
</second>
</item>
<item>
<first>103</first>
<second>
<first>32</first>
<second>0</second>
</second>
</item>
<item>
<first>104</first>
<second>
<first>32</first>
<second>0</second>
</second>
</item>
<item>
<first>105</first>
<second>
<first>32</first>
<second>0</second>
</second>
</item>
<item>
<first>106</first>
<second>
<first>32</first>
<second>0</second>
</second>
</item>
<item>
<first>107</first>
<second>
<first>41</first>
<second>6</second>
</second>
</item>
<item>
<first>108</first>
<second>
<first>48</first>
<second>0</second>
</second>
</item>
<item>
<first>109</first>
<second>
<first>32</first>
<second>0</second>
</second>
</item>
<item>
<first>110</first>
<second>
<first>32</first>
<second>0</second>
</second>
</item>
<item>
<first>111</first>
<second>
<first>48</first>
<second>0</second>
</second>
</item>
<item>
<first>112</first>
<second>
<first>49</first>
<second>0</second>
</second>
</item>
<item>
<first>113</first>
<second>
<first>50</first>
<second>4</second>
</second>
</item>
<item>
<first>114</first>
<second>
<first>32</first>
<second>0</second>
</second>
</item>
<item>
<first>115</first>
<second>
<first>32</first>
<second>0</second>
</second>
</item>
<item>
<first>116</first>
<second>
<first>32</first>
<second>0</second>
</second>
</item>
<item>
<first>117</first>
<second>
<first>32</first>
<second>0</second>
</second>
</item>
<item>
<first>118</first>
<second>
<first>32</first>
<second>0</second>
</second>
</item>
<item>
<first>119</first>
<second>
<first>49</first>
<second>6</second>
</second>
</item>
<item>
<first>120</first>
<second>
<first>56</first>
<second>0</second>
</second>
</item>
<item>
<first>121</first>
<second>
<first>32</first>
<second>0</second>
</second>
</item>
<item>
<first>122</first>
<second>
<first>32</first>
<second>0</second>
</second>
</item>
<item>
<first>123</first>
<second>
<first>57</first>
<second>0</second>
</second>
</item>
<item>
<first>124</first>
<second>
<first>58</first>
<second>0</second>
</second>
</item>
<item>
<first>125</first>
<second>
<first>59</first>
<second>4</second>
</second>
</item>
<item>
<first>126</first>
<second>
<first>32</first>
<second>0</second>
</second>
</item>
<item>
<first>127</first>
<second>
<first>32</first>
<second>0</second>
</second>
</item>
<item>
<first>128</first>
<second>
<first>49</first>
<second>6</second>
</second>
</item>
<item>
<first>129</first>
<second>
<first>56</first>
<second>0</second>
</second>
</item>
<item>
<first>130</first>
<second>
<first>57</first>
<second>0</second>
</second>
</item>
<item>
<first>131</first>
<second>
<first>57</first>
<second>0</second>
</second>
</item>
<item>
<first>132</first>
<second>
<first>58</first>
<second>0</second>
</second>
</item>
<item>
<first>133</first>
<second>
<first>59</first>
<second>4</second>
</second>
</item>
<item>
<first>134</first>
<second>
<first>32</first>
<second>0</second>
</second>
</item>
<item>
<first>135</first>
<second>
<first>32</first>
<second>0</second>
</second>
</item>
<item>
<first>136</first>
<second>
<first>32</first>
<second>0</second>
</second>
</item>
<item>
<first>137</first>
<second>
<first>32</first>
<second>0</second>
</second>
</item>
<item>
<first>138</first>
<second>
<first>52</first>
<second>6</second>
</second>
</item>
<item>
<first>139</first>
<second>
<first>59</first>
<second>0</second>
</second>
</item>
<item>
<first>140</first>
<second>
<first>32</first>
<second>0</second>
</second>
</item>
<item>
<first>141</first>
<second>
<first>32</first>
<second>0</second>
</second>
</item>
<item>
<first>142</first>
<second>
<first>59</first>
<second>0</second>
</second>
</item>
<item>
<first>143</first>
<second>
<first>60</first>
<second>0</second>
</second>
</item>
<item>
<first>144</first>
<second>
<first>61</first>
<second>4</second>
</second>
</item>
<item>
<first>145</first>
<second>
<first>65</first>
<second>0</second>
</second>
</item>
<item>
<first>147</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
</node_label_latency>
<bblk_ent_exit class_id="29" tracking_level="0" version="0">
<count>4</count>
<item_version>0</item_version>
<item class_id="30" tracking_level="0" version="0">
<first>14</first>
<second class_id="31" tracking_level="0" version="0">
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>21</first>
<second>
<first>1</first>
<second>1</second>
</second>
</item>
<item>
<first>146</first>
<second>
<first>1</first>
<second>65</second>
</second>
</item>
<item>
<first>148</first>
<second>
<first>1</first>
<second>1</second>
</second>
</item>
</bblk_ent_exit>
<regions class_id="32" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</regions>
<dp_fu_nodes class_id="33" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</dp_fu_nodes>
<dp_fu_nodes_expression class_id="34" 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="35" 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="36" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</dp_port_io_nodes>
<port2core class_id="37" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</port2core>
<node2core>
<count>0</count>
<item_version>0</item_version>
</node2core>
</syndb>
</boost_serialization>
|
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Elements.Expressions;
with Program.Elements.Operator_Symbols;
with Program.Elements.Infix_Operators;
with Program.Element_Visitors;
package Program.Nodes.Infix_Operators is
pragma Preelaborate;
type Infix_Operator is
new Program.Nodes.Node and Program.Elements.Infix_Operators.Infix_Operator
and Program.Elements.Infix_Operators.Infix_Operator_Text
with private;
function Create
(Left : Program.Elements.Expressions.Expression_Access;
Operator : not null Program.Elements.Operator_Symbols
.Operator_Symbol_Access;
Right : not null Program.Elements.Expressions.Expression_Access)
return Infix_Operator;
type Implicit_Infix_Operator is
new Program.Nodes.Node and Program.Elements.Infix_Operators.Infix_Operator
with private;
function Create
(Left : Program.Elements.Expressions.Expression_Access;
Operator : not null Program.Elements.Operator_Symbols
.Operator_Symbol_Access;
Right : not null Program.Elements.Expressions
.Expression_Access;
Is_Part_Of_Implicit : Boolean := False;
Is_Part_Of_Inherited : Boolean := False;
Is_Part_Of_Instance : Boolean := False)
return Implicit_Infix_Operator
with Pre =>
Is_Part_Of_Implicit or Is_Part_Of_Inherited or Is_Part_Of_Instance;
private
type Base_Infix_Operator is
abstract new Program.Nodes.Node
and Program.Elements.Infix_Operators.Infix_Operator
with record
Left : Program.Elements.Expressions.Expression_Access;
Operator : not null Program.Elements.Operator_Symbols
.Operator_Symbol_Access;
Right : not null Program.Elements.Expressions.Expression_Access;
end record;
procedure Initialize (Self : in out Base_Infix_Operator'Class);
overriding procedure Visit
(Self : not null access Base_Infix_Operator;
Visitor : in out Program.Element_Visitors.Element_Visitor'Class);
overriding function Left
(Self : Base_Infix_Operator)
return Program.Elements.Expressions.Expression_Access;
overriding function Operator
(Self : Base_Infix_Operator)
return not null Program.Elements.Operator_Symbols.Operator_Symbol_Access;
overriding function Right
(Self : Base_Infix_Operator)
return not null Program.Elements.Expressions.Expression_Access;
overriding function Is_Infix_Operator
(Self : Base_Infix_Operator)
return Boolean;
overriding function Is_Expression
(Self : Base_Infix_Operator)
return Boolean;
type Infix_Operator is
new Base_Infix_Operator
and Program.Elements.Infix_Operators.Infix_Operator_Text
with null record;
overriding function To_Infix_Operator_Text
(Self : in out Infix_Operator)
return Program.Elements.Infix_Operators.Infix_Operator_Text_Access;
type Implicit_Infix_Operator is
new Base_Infix_Operator
with record
Is_Part_Of_Implicit : Boolean;
Is_Part_Of_Inherited : Boolean;
Is_Part_Of_Instance : Boolean;
end record;
overriding function To_Infix_Operator_Text
(Self : in out Implicit_Infix_Operator)
return Program.Elements.Infix_Operators.Infix_Operator_Text_Access;
overriding function Is_Part_Of_Implicit
(Self : Implicit_Infix_Operator)
return Boolean;
overriding function Is_Part_Of_Inherited
(Self : Implicit_Infix_Operator)
return Boolean;
overriding function Is_Part_Of_Instance
(Self : Implicit_Infix_Operator)
return Boolean;
end Program.Nodes.Infix_Operators;
|
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- A D A . T A G S --
-- --
-- B o d y --
-- --
-- Copyright (C) 1992-2016, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
with Ada.Exceptions;
with Ada.Unchecked_Conversion;
with System.HTable;
with System.Storage_Elements; use System.Storage_Elements;
with System.WCh_Con; use System.WCh_Con;
with System.WCh_StW; use System.WCh_StW;
pragma Elaborate (System.HTable);
-- Elaborate needed instead of Elaborate_All to avoid elaboration cycles
-- when polling is turned on. This is safe because HTable doesn't do anything
-- at elaboration time; it just contains a generic package we want to
-- instantiate.
package body Ada.Tags is
-----------------------
-- Local Subprograms --
-----------------------
function CW_Membership (Obj_Tag : Tag; Typ_Tag : Tag) return Boolean;
-- Given the tag of an object and the tag associated to a type, return
-- true if Obj is in Typ'Class.
function Get_External_Tag (T : Tag) return System.Address;
-- Returns address of a null terminated string containing the external name
function Is_Primary_DT (T : Tag) return Boolean;
-- Given a tag returns True if it has the signature of a primary dispatch
-- table. This is Inline_Always since it is called from other Inline_
-- Always subprograms where we want no out of line code to be generated.
function IW_Membership
(Descendant_TSD : Type_Specific_Data_Ptr;
T : Tag) return Boolean;
-- Subsidiary function of IW_Membership and CW_Membership which factorizes
-- the functionality needed to check if a given descendant implements an
-- interface tag T.
function Length (Str : Cstring_Ptr) return Natural;
-- Length of string represented by the given pointer (treating the string
-- as a C-style string, which is Nul terminated). See comment in body
-- explaining why we cannot use the normal strlen built-in.
function OSD (T : Tag) return Object_Specific_Data_Ptr;
-- Ada 2005 (AI-251): Given a pointer T to a secondary dispatch table,
-- retrieve the address of the record containing the Object Specific
-- Data table.
function SSD (T : Tag) return Select_Specific_Data_Ptr;
-- Ada 2005 (AI-251): Given a pointer T to a dispatch Table, retrieves the
-- address of the record containing the Select Specific Data in T's TSD.
pragma Inline_Always (CW_Membership);
pragma Inline_Always (Get_External_Tag);
pragma Inline_Always (Is_Primary_DT);
pragma Inline_Always (OSD);
pragma Inline_Always (SSD);
-- Unchecked conversions
function To_Address is
new Unchecked_Conversion (Cstring_Ptr, System.Address);
function To_Cstring_Ptr is
new Unchecked_Conversion (System.Address, Cstring_Ptr);
-- Disable warnings on possible aliasing problem
function To_Tag is
new Unchecked_Conversion (Integer_Address, Tag);
function To_Addr_Ptr is
new Ada.Unchecked_Conversion (System.Address, Addr_Ptr);
function To_Address is
new Ada.Unchecked_Conversion (Tag, System.Address);
function To_Dispatch_Table_Ptr is
new Ada.Unchecked_Conversion (Tag, Dispatch_Table_Ptr);
function To_Dispatch_Table_Ptr is
new Ada.Unchecked_Conversion (System.Address, Dispatch_Table_Ptr);
function To_Object_Specific_Data_Ptr is
new Ada.Unchecked_Conversion (System.Address, Object_Specific_Data_Ptr);
function To_Tag_Ptr is
new Ada.Unchecked_Conversion (System.Address, Tag_Ptr);
function To_Type_Specific_Data_Ptr is
new Ada.Unchecked_Conversion (System.Address, Type_Specific_Data_Ptr);
-------------------------------
-- Inline_Always Subprograms --
-------------------------------
-- Inline_always subprograms must be placed before their first call to
-- avoid defeating the frontend inlining mechanism and thus ensure the
-- generation of their correct debug info.
-------------------
-- CW_Membership --
-------------------
-- Canonical implementation of Classwide Membership corresponding to:
-- Obj in Typ'Class
-- Each dispatch table contains a reference to a table of ancestors (stored
-- in the first part of the Tags_Table) and a count of the level of
-- inheritance "Idepth".
-- Obj is in Typ'Class if Typ'Tag is in the table of ancestors that are
-- contained in the dispatch table referenced by Obj'Tag . Knowing the
-- level of inheritance of both types, this can be computed in constant
-- time by the formula:
-- TSD (Obj'tag).Tags_Table (TSD (Obj'tag).Idepth - TSD (Typ'tag).Idepth)
-- = Typ'tag
function CW_Membership (Obj_Tag : Tag; Typ_Tag : Tag) return Boolean is
Obj_TSD_Ptr : constant Addr_Ptr :=
To_Addr_Ptr (To_Address (Obj_Tag) - DT_Typeinfo_Ptr_Size);
Typ_TSD_Ptr : constant Addr_Ptr :=
To_Addr_Ptr (To_Address (Typ_Tag) - DT_Typeinfo_Ptr_Size);
Obj_TSD : constant Type_Specific_Data_Ptr :=
To_Type_Specific_Data_Ptr (Obj_TSD_Ptr.all);
Typ_TSD : constant Type_Specific_Data_Ptr :=
To_Type_Specific_Data_Ptr (Typ_TSD_Ptr.all);
Pos : constant Integer := Obj_TSD.Idepth - Typ_TSD.Idepth;
begin
return Pos >= 0 and then Obj_TSD.Tags_Table (Pos) = Typ_Tag;
end CW_Membership;
----------------------
-- Get_External_Tag --
----------------------
function Get_External_Tag (T : Tag) return System.Address is
TSD_Ptr : constant Addr_Ptr :=
To_Addr_Ptr (To_Address (T) - DT_Typeinfo_Ptr_Size);
TSD : constant Type_Specific_Data_Ptr :=
To_Type_Specific_Data_Ptr (TSD_Ptr.all);
begin
return To_Address (TSD.External_Tag);
end Get_External_Tag;
-------------------
-- Is_Primary_DT --
-------------------
function Is_Primary_DT (T : Tag) return Boolean is
begin
return DT (T).Signature = Primary_DT;
end Is_Primary_DT;
---------
-- OSD --
---------
function OSD (T : Tag) return Object_Specific_Data_Ptr is
OSD_Ptr : constant Addr_Ptr :=
To_Addr_Ptr (To_Address (T) - DT_Typeinfo_Ptr_Size);
begin
return To_Object_Specific_Data_Ptr (OSD_Ptr.all);
end OSD;
---------
-- SSD --
---------
function SSD (T : Tag) return Select_Specific_Data_Ptr is
TSD_Ptr : constant Addr_Ptr :=
To_Addr_Ptr (To_Address (T) - DT_Typeinfo_Ptr_Size);
TSD : constant Type_Specific_Data_Ptr :=
To_Type_Specific_Data_Ptr (TSD_Ptr.all);
begin
return TSD.SSD;
end SSD;
-------------------------
-- External_Tag_HTable --
-------------------------
type HTable_Headers is range 1 .. 64;
-- The following internal package defines the routines used for the
-- instantiation of a new System.HTable.Static_HTable (see below). See
-- spec in g-htable.ads for details of usage.
package HTable_Subprograms is
procedure Set_HT_Link (T : Tag; Next : Tag);
function Get_HT_Link (T : Tag) return Tag;
function Hash (F : System.Address) return HTable_Headers;
function Equal (A, B : System.Address) return Boolean;
end HTable_Subprograms;
package External_Tag_HTable is new System.HTable.Static_HTable (
Header_Num => HTable_Headers,
Element => Dispatch_Table,
Elmt_Ptr => Tag,
Null_Ptr => null,
Set_Next => HTable_Subprograms.Set_HT_Link,
Next => HTable_Subprograms.Get_HT_Link,
Key => System.Address,
Get_Key => Get_External_Tag,
Hash => HTable_Subprograms.Hash,
Equal => HTable_Subprograms.Equal);
------------------------
-- HTable_Subprograms --
------------------------
-- Bodies of routines for hash table instantiation
package body HTable_Subprograms is
-----------
-- Equal --
-----------
function Equal (A, B : System.Address) return Boolean is
Str1 : constant Cstring_Ptr := To_Cstring_Ptr (A);
Str2 : constant Cstring_Ptr := To_Cstring_Ptr (B);
J : Integer;
begin
J := 1;
loop
if Str1 (J) /= Str2 (J) then
return False;
elsif Str1 (J) = ASCII.NUL then
return True;
else
J := J + 1;
end if;
end loop;
end Equal;
-----------------
-- Get_HT_Link --
-----------------
function Get_HT_Link (T : Tag) return Tag is
TSD_Ptr : constant Addr_Ptr :=
To_Addr_Ptr (To_Address (T) - DT_Typeinfo_Ptr_Size);
TSD : constant Type_Specific_Data_Ptr :=
To_Type_Specific_Data_Ptr (TSD_Ptr.all);
begin
return TSD.HT_Link.all;
end Get_HT_Link;
----------
-- Hash --
----------
function Hash (F : System.Address) return HTable_Headers is
function H is new System.HTable.Hash (HTable_Headers);
Str : constant Cstring_Ptr := To_Cstring_Ptr (F);
Res : constant HTable_Headers := H (Str (1 .. Length (Str)));
begin
return Res;
end Hash;
-----------------
-- Set_HT_Link --
-----------------
procedure Set_HT_Link (T : Tag; Next : Tag) is
TSD_Ptr : constant Addr_Ptr :=
To_Addr_Ptr (To_Address (T) - DT_Typeinfo_Ptr_Size);
TSD : constant Type_Specific_Data_Ptr :=
To_Type_Specific_Data_Ptr (TSD_Ptr.all);
begin
TSD.HT_Link.all := Next;
end Set_HT_Link;
end HTable_Subprograms;
------------------
-- Base_Address --
------------------
function Base_Address (This : System.Address) return System.Address is
begin
return This - Offset_To_Top (This);
end Base_Address;
---------------
-- Check_TSD --
---------------
procedure Check_TSD (TSD : Type_Specific_Data_Ptr) is
T : Tag;
E_Tag_Len : constant Integer := Length (TSD.External_Tag);
E_Tag : String (1 .. E_Tag_Len);
for E_Tag'Address use TSD.External_Tag.all'Address;
pragma Import (Ada, E_Tag);
Dup_Ext_Tag : constant String := "duplicated external tag """;
begin
-- Verify that the external tag of this TSD is not registered in the
-- runtime hash table.
T := External_Tag_HTable.Get (To_Address (TSD.External_Tag));
if T /= null then
-- Avoid concatenation, as it is not allowed in no run time mode
declare
Msg : String (1 .. Dup_Ext_Tag'Length + E_Tag_Len + 1);
begin
Msg (1 .. Dup_Ext_Tag'Length) := Dup_Ext_Tag;
Msg (Dup_Ext_Tag'Length + 1 .. Dup_Ext_Tag'Length + E_Tag_Len) :=
E_Tag;
Msg (Msg'Last) := '"';
raise Program_Error with Msg;
end;
end if;
end Check_TSD;
--------------------
-- Descendant_Tag --
--------------------
function Descendant_Tag (External : String; Ancestor : Tag) return Tag is
Int_Tag : constant Tag := Internal_Tag (External);
begin
if not Is_Descendant_At_Same_Level (Int_Tag, Ancestor) then
raise Tag_Error;
else
return Int_Tag;
end if;
end Descendant_Tag;
--------------
-- Displace --
--------------
function Displace (This : System.Address; T : Tag) return System.Address is
Iface_Table : Interface_Data_Ptr;
Obj_Base : System.Address;
Obj_DT : Dispatch_Table_Ptr;
Obj_DT_Tag : Tag;
begin
if System."=" (This, System.Null_Address) then
return System.Null_Address;
end if;
Obj_Base := Base_Address (This);
Obj_DT_Tag := To_Tag_Ptr (Obj_Base).all;
Obj_DT := DT (To_Tag_Ptr (Obj_Base).all);
Iface_Table := To_Type_Specific_Data_Ptr (Obj_DT.TSD).Interfaces_Table;
if Iface_Table /= null then
for Id in 1 .. Iface_Table.Nb_Ifaces loop
if Iface_Table.Ifaces_Table (Id).Iface_Tag = T then
-- Case of Static value of Offset_To_Top
if Iface_Table.Ifaces_Table (Id).Static_Offset_To_Top then
Obj_Base := Obj_Base +
Iface_Table.Ifaces_Table (Id).Offset_To_Top_Value;
-- Otherwise call the function generated by the expander to
-- provide the value.
else
Obj_Base := Obj_Base +
Iface_Table.Ifaces_Table (Id).Offset_To_Top_Func.all
(Obj_Base);
end if;
return Obj_Base;
end if;
end loop;
end if;
-- Check if T is an immediate ancestor. This is required to handle
-- conversion of class-wide interfaces to tagged types.
if CW_Membership (Obj_DT_Tag, T) then
return Obj_Base;
end if;
-- If the object does not implement the interface we must raise CE
raise Constraint_Error with "invalid interface conversion";
end Displace;
--------
-- DT --
--------
function DT (T : Tag) return Dispatch_Table_Ptr is
Offset : constant SSE.Storage_Offset :=
To_Dispatch_Table_Ptr (T).Prims_Ptr'Position;
begin
return To_Dispatch_Table_Ptr (To_Address (T) - Offset);
end DT;
-------------------
-- IW_Membership --
-------------------
function IW_Membership
(Descendant_TSD : Type_Specific_Data_Ptr;
T : Tag) return Boolean
is
Iface_Table : Interface_Data_Ptr;
begin
Iface_Table := Descendant_TSD.Interfaces_Table;
if Iface_Table /= null then
for Id in 1 .. Iface_Table.Nb_Ifaces loop
if Iface_Table.Ifaces_Table (Id).Iface_Tag = T then
return True;
end if;
end loop;
end if;
-- Look for the tag in the ancestor tags table. This is required for:
-- Iface_CW in Typ'Class
for Id in 0 .. Descendant_TSD.Idepth loop
if Descendant_TSD.Tags_Table (Id) = T then
return True;
end if;
end loop;
return False;
end IW_Membership;
-------------------
-- IW_Membership --
-------------------
-- Canonical implementation of Classwide Membership corresponding to:
-- Obj in Iface'Class
-- Each dispatch table contains a table with the tags of all the
-- implemented interfaces.
-- Obj is in Iface'Class if Iface'Tag is found in the table of interfaces
-- that are contained in the dispatch table referenced by Obj'Tag.
function IW_Membership (This : System.Address; T : Tag) return Boolean is
Obj_Base : System.Address;
Obj_DT : Dispatch_Table_Ptr;
Obj_TSD : Type_Specific_Data_Ptr;
begin
Obj_Base := Base_Address (This);
Obj_DT := DT (To_Tag_Ptr (Obj_Base).all);
Obj_TSD := To_Type_Specific_Data_Ptr (Obj_DT.TSD);
return IW_Membership (Obj_TSD, T);
end IW_Membership;
-------------------
-- Expanded_Name --
-------------------
function Expanded_Name (T : Tag) return String is
Result : Cstring_Ptr;
TSD_Ptr : Addr_Ptr;
TSD : Type_Specific_Data_Ptr;
begin
if T = No_Tag then
raise Tag_Error;
end if;
TSD_Ptr := To_Addr_Ptr (To_Address (T) - DT_Typeinfo_Ptr_Size);
TSD := To_Type_Specific_Data_Ptr (TSD_Ptr.all);
Result := TSD.Expanded_Name;
return Result (1 .. Length (Result));
end Expanded_Name;
------------------
-- External_Tag --
------------------
function External_Tag (T : Tag) return String is
Result : Cstring_Ptr;
TSD_Ptr : Addr_Ptr;
TSD : Type_Specific_Data_Ptr;
begin
if T = No_Tag then
raise Tag_Error;
end if;
TSD_Ptr := To_Addr_Ptr (To_Address (T) - DT_Typeinfo_Ptr_Size);
TSD := To_Type_Specific_Data_Ptr (TSD_Ptr.all);
Result := TSD.External_Tag;
return Result (1 .. Length (Result));
end External_Tag;
---------------------
-- Get_Entry_Index --
---------------------
function Get_Entry_Index (T : Tag; Position : Positive) return Positive is
begin
return SSD (T).SSD_Table (Position).Index;
end Get_Entry_Index;
----------------------
-- Get_Prim_Op_Kind --
----------------------
function Get_Prim_Op_Kind
(T : Tag;
Position : Positive) return Prim_Op_Kind
is
begin
return SSD (T).SSD_Table (Position).Kind;
end Get_Prim_Op_Kind;
----------------------
-- Get_Offset_Index --
----------------------
function Get_Offset_Index
(T : Tag;
Position : Positive) return Positive
is
begin
if Is_Primary_DT (T) then
return Position;
else
return OSD (T).OSD_Table (Position);
end if;
end Get_Offset_Index;
---------------------
-- Get_Tagged_Kind --
---------------------
function Get_Tagged_Kind (T : Tag) return Tagged_Kind is
begin
return DT (T).Tag_Kind;
end Get_Tagged_Kind;
-----------------------------
-- Interface_Ancestor_Tags --
-----------------------------
function Interface_Ancestor_Tags (T : Tag) return Tag_Array is
TSD_Ptr : constant Addr_Ptr :=
To_Addr_Ptr (To_Address (T) - DT_Typeinfo_Ptr_Size);
TSD : constant Type_Specific_Data_Ptr :=
To_Type_Specific_Data_Ptr (TSD_Ptr.all);
Iface_Table : constant Interface_Data_Ptr := TSD.Interfaces_Table;
begin
if Iface_Table = null then
declare
Table : Tag_Array (1 .. 0);
begin
return Table;
end;
else
declare
Table : Tag_Array (1 .. Iface_Table.Nb_Ifaces);
begin
for J in 1 .. Iface_Table.Nb_Ifaces loop
Table (J) := Iface_Table.Ifaces_Table (J).Iface_Tag;
end loop;
return Table;
end;
end if;
end Interface_Ancestor_Tags;
------------------
-- Internal_Tag --
------------------
-- Internal tags have the following format:
-- "Internal tag at 16#ADDRESS#: <full-name-of-tagged-type>"
Internal_Tag_Header : constant String := "Internal tag at ";
Header_Separator : constant Character := '#';
function Internal_Tag (External : String) return Tag is
Ext_Copy : aliased String (External'First .. External'Last + 1);
Res : Tag := null;
begin
-- Handle locally defined tagged types
if External'Length > Internal_Tag_Header'Length
and then
External (External'First ..
External'First + Internal_Tag_Header'Length - 1) =
Internal_Tag_Header
then
declare
Addr_First : constant Natural :=
External'First + Internal_Tag_Header'Length;
Addr_Last : Natural;
Addr : Integer_Address;
begin
-- Search the second separator (#) to identify the address
Addr_Last := Addr_First;
for J in 1 .. 2 loop
while Addr_Last <= External'Last
and then External (Addr_Last) /= Header_Separator
loop
Addr_Last := Addr_Last + 1;
end loop;
-- Skip the first separator
if J = 1 then
Addr_Last := Addr_Last + 1;
end if;
end loop;
if Addr_Last <= External'Last then
-- Protect the run-time against wrong internal tags. We
-- cannot use exception handlers here because it would
-- disable the use of this run-time compiling with
-- restriction No_Exception_Handler.
declare
C : Character;
Wrong_Tag : Boolean := False;
begin
if External (Addr_First) /= '1'
or else External (Addr_First + 1) /= '6'
or else External (Addr_First + 2) /= '#'
then
Wrong_Tag := True;
else
for J in Addr_First + 3 .. Addr_Last - 1 loop
C := External (J);
if not (C in '0' .. '9')
and then not (C in 'A' .. 'F')
and then not (C in 'a' .. 'f')
then
Wrong_Tag := True;
exit;
end if;
end loop;
end if;
-- Convert the numeric value into a tag
if not Wrong_Tag then
Addr := Integer_Address'Value
(External (Addr_First .. Addr_Last));
-- Internal tags never have value 0
if Addr /= 0 then
return To_Tag (Addr);
end if;
end if;
end;
end if;
end;
-- Handle library-level tagged types
else
-- Make NUL-terminated copy of external tag string
Ext_Copy (External'Range) := External;
Ext_Copy (Ext_Copy'Last) := ASCII.NUL;
Res := External_Tag_HTable.Get (Ext_Copy'Address);
end if;
if Res = null then
declare
Msg1 : constant String := "unknown tagged type: ";
Msg2 : String (1 .. Msg1'Length + External'Length);
begin
Msg2 (1 .. Msg1'Length) := Msg1;
Msg2 (Msg1'Length + 1 .. Msg1'Length + External'Length) :=
External;
Ada.Exceptions.Raise_Exception (Tag_Error'Identity, Msg2);
end;
end if;
return Res;
end Internal_Tag;
---------------------------------
-- Is_Descendant_At_Same_Level --
---------------------------------
function Is_Descendant_At_Same_Level
(Descendant : Tag;
Ancestor : Tag) return Boolean
is
begin
if Descendant = Ancestor then
return True;
else
declare
D_TSD_Ptr : constant Addr_Ptr :=
To_Addr_Ptr (To_Address (Descendant) - DT_Typeinfo_Ptr_Size);
A_TSD_Ptr : constant Addr_Ptr :=
To_Addr_Ptr (To_Address (Ancestor) - DT_Typeinfo_Ptr_Size);
D_TSD : constant Type_Specific_Data_Ptr :=
To_Type_Specific_Data_Ptr (D_TSD_Ptr.all);
A_TSD : constant Type_Specific_Data_Ptr :=
To_Type_Specific_Data_Ptr (A_TSD_Ptr.all);
begin
return
D_TSD.Access_Level = A_TSD.Access_Level
and then (CW_Membership (Descendant, Ancestor)
or else IW_Membership (D_TSD, Ancestor));
end;
end if;
end Is_Descendant_At_Same_Level;
------------
-- Length --
------------
-- Note: This unit is used in the Ravenscar runtime library, so it cannot
-- depend on System.CTRL. Furthermore, this happens on CPUs where the GCC
-- intrinsic strlen may not be available, so we need to recode our own Ada
-- version here.
function Length (Str : Cstring_Ptr) return Natural is
Len : Integer;
begin
Len := 1;
while Str (Len) /= ASCII.NUL loop
Len := Len + 1;
end loop;
return Len - 1;
end Length;
-------------------
-- Offset_To_Top --
-------------------
function Offset_To_Top
(This : System.Address) return SSE.Storage_Offset
is
Tag_Size : constant SSE.Storage_Count :=
SSE.Storage_Count (1 * (Standard'Address_Size / System.Storage_Unit));
type Storage_Offset_Ptr is access SSE.Storage_Offset;
function To_Storage_Offset_Ptr is
new Unchecked_Conversion (System.Address, Storage_Offset_Ptr);
Curr_DT : Dispatch_Table_Ptr;
begin
Curr_DT := DT (To_Tag_Ptr (This).all);
if Curr_DT.Offset_To_Top = SSE.Storage_Offset'Last then
return To_Storage_Offset_Ptr (This + Tag_Size).all;
else
return Curr_DT.Offset_To_Top;
end if;
end Offset_To_Top;
------------------------
-- Needs_Finalization --
------------------------
function Needs_Finalization (T : Tag) return Boolean is
TSD_Ptr : constant Addr_Ptr :=
To_Addr_Ptr (To_Address (T) - DT_Typeinfo_Ptr_Size);
TSD : constant Type_Specific_Data_Ptr :=
To_Type_Specific_Data_Ptr (TSD_Ptr.all);
begin
return TSD.Needs_Finalization;
end Needs_Finalization;
-----------------
-- Parent_Size --
-----------------
function Parent_Size
(Obj : System.Address;
T : Tag) return SSE.Storage_Count
is
Parent_Slot : constant Positive := 1;
-- The tag of the parent is always in the first slot of the table of
-- ancestor tags.
TSD_Ptr : constant Addr_Ptr :=
To_Addr_Ptr (To_Address (T) - DT_Typeinfo_Ptr_Size);
TSD : constant Type_Specific_Data_Ptr :=
To_Type_Specific_Data_Ptr (TSD_Ptr.all);
-- Pointer to the TSD
Parent_Tag : constant Tag := TSD.Tags_Table (Parent_Slot);
Parent_TSD_Ptr : constant Addr_Ptr :=
To_Addr_Ptr (To_Address (Parent_Tag) - DT_Typeinfo_Ptr_Size);
Parent_TSD : constant Type_Specific_Data_Ptr :=
To_Type_Specific_Data_Ptr (Parent_TSD_Ptr.all);
begin
-- Here we compute the size of the _parent field of the object
return SSE.Storage_Count (Parent_TSD.Size_Func.all (Obj));
end Parent_Size;
----------------
-- Parent_Tag --
----------------
function Parent_Tag (T : Tag) return Tag is
TSD_Ptr : Addr_Ptr;
TSD : Type_Specific_Data_Ptr;
begin
if T = No_Tag then
raise Tag_Error;
end if;
TSD_Ptr := To_Addr_Ptr (To_Address (T) - DT_Typeinfo_Ptr_Size);
TSD := To_Type_Specific_Data_Ptr (TSD_Ptr.all);
-- The Parent_Tag of a root-level tagged type is defined to be No_Tag.
-- The first entry in the Ancestors_Tags array will be null for such
-- a type, but it's better to be explicit about returning No_Tag in
-- this case.
if TSD.Idepth = 0 then
return No_Tag;
else
return TSD.Tags_Table (1);
end if;
end Parent_Tag;
-------------------------------
-- Register_Interface_Offset --
-------------------------------
procedure Register_Interface_Offset
(This : System.Address;
Interface_T : Tag;
Is_Static : Boolean;
Offset_Value : SSE.Storage_Offset;
Offset_Func : Offset_To_Top_Function_Ptr)
is
Prim_DT : Dispatch_Table_Ptr;
Iface_Table : Interface_Data_Ptr;
begin
-- "This" points to the primary DT and we must save Offset_Value in
-- the Offset_To_Top field of the corresponding dispatch table.
Prim_DT := DT (To_Tag_Ptr (This).all);
Iface_Table := To_Type_Specific_Data_Ptr (Prim_DT.TSD).Interfaces_Table;
-- Save Offset_Value in the table of interfaces of the primary DT.
-- This data will be used by the subprogram "Displace" to give support
-- to backward abstract interface type conversions.
-- Register the offset in the table of interfaces
if Iface_Table /= null then
for Id in 1 .. Iface_Table.Nb_Ifaces loop
if Iface_Table.Ifaces_Table (Id).Iface_Tag = Interface_T then
if Is_Static or else Offset_Value = 0 then
Iface_Table.Ifaces_Table (Id).Static_Offset_To_Top := True;
Iface_Table.Ifaces_Table (Id).Offset_To_Top_Value :=
Offset_Value;
else
Iface_Table.Ifaces_Table (Id).Static_Offset_To_Top := False;
Iface_Table.Ifaces_Table (Id).Offset_To_Top_Func :=
Offset_Func;
end if;
return;
end if;
end loop;
end if;
-- If we arrive here there is some error in the run-time data structure
raise Program_Error;
end Register_Interface_Offset;
------------------
-- Register_Tag --
------------------
procedure Register_Tag (T : Tag) is
begin
External_Tag_HTable.Set (T);
end Register_Tag;
-------------------
-- Secondary_Tag --
-------------------
function Secondary_Tag (T, Iface : Tag) return Tag is
Iface_Table : Interface_Data_Ptr;
Obj_DT : Dispatch_Table_Ptr;
begin
if not Is_Primary_DT (T) then
raise Program_Error;
end if;
Obj_DT := DT (T);
Iface_Table := To_Type_Specific_Data_Ptr (Obj_DT.TSD).Interfaces_Table;
if Iface_Table /= null then
for Id in 1 .. Iface_Table.Nb_Ifaces loop
if Iface_Table.Ifaces_Table (Id).Iface_Tag = Iface then
return Iface_Table.Ifaces_Table (Id).Secondary_DT;
end if;
end loop;
end if;
-- If the object does not implement the interface we must raise CE
raise Constraint_Error with "invalid interface conversion";
end Secondary_Tag;
---------------------
-- Set_Entry_Index --
---------------------
procedure Set_Entry_Index
(T : Tag;
Position : Positive;
Value : Positive)
is
begin
SSD (T).SSD_Table (Position).Index := Value;
end Set_Entry_Index;
-----------------------
-- Set_Offset_To_Top --
-----------------------
procedure Set_Dynamic_Offset_To_Top
(This : System.Address;
Interface_T : Tag;
Offset_Value : SSE.Storage_Offset;
Offset_Func : Offset_To_Top_Function_Ptr)
is
Sec_Base : System.Address;
Sec_DT : Dispatch_Table_Ptr;
begin
-- Save the offset to top field in the secondary dispatch table
if Offset_Value /= 0 then
Sec_Base := This + Offset_Value;
Sec_DT := DT (To_Tag_Ptr (Sec_Base).all);
Sec_DT.Offset_To_Top := SSE.Storage_Offset'Last;
end if;
Register_Interface_Offset
(This, Interface_T, False, Offset_Value, Offset_Func);
end Set_Dynamic_Offset_To_Top;
----------------------
-- Set_Prim_Op_Kind --
----------------------
procedure Set_Prim_Op_Kind
(T : Tag;
Position : Positive;
Value : Prim_Op_Kind)
is
begin
SSD (T).SSD_Table (Position).Kind := Value;
end Set_Prim_Op_Kind;
----------------------
-- Type_Is_Abstract --
----------------------
function Type_Is_Abstract (T : Tag) return Boolean is
TSD_Ptr : Addr_Ptr;
TSD : Type_Specific_Data_Ptr;
begin
if T = No_Tag then
raise Tag_Error;
end if;
TSD_Ptr := To_Addr_Ptr (To_Address (T) - DT_Typeinfo_Ptr_Size);
TSD := To_Type_Specific_Data_Ptr (TSD_Ptr.all);
return TSD.Type_Is_Abstract;
end Type_Is_Abstract;
--------------------
-- Unregister_Tag --
--------------------
procedure Unregister_Tag (T : Tag) is
begin
External_Tag_HTable.Remove (Get_External_Tag (T));
end Unregister_Tag;
------------------------
-- Wide_Expanded_Name --
------------------------
WC_Encoding : Character;
pragma Import (C, WC_Encoding, "__gl_wc_encoding");
-- Encoding method for source, as exported by binder
function Wide_Expanded_Name (T : Tag) return Wide_String is
S : constant String := Expanded_Name (T);
W : Wide_String (1 .. S'Length);
L : Natural;
begin
String_To_Wide_String
(S, W, L, Get_WC_Encoding_Method (WC_Encoding));
return W (1 .. L);
end Wide_Expanded_Name;
-----------------------------
-- Wide_Wide_Expanded_Name --
-----------------------------
function Wide_Wide_Expanded_Name (T : Tag) return Wide_Wide_String is
S : constant String := Expanded_Name (T);
W : Wide_Wide_String (1 .. S'Length);
L : Natural;
begin
String_To_Wide_Wide_String
(S, W, L, Get_WC_Encoding_Method (WC_Encoding));
return W (1 .. L);
end Wide_Wide_Expanded_Name;
end Ada.Tags;
|
pragma License (Unrestricted);
-- implementation unit required by compiler
with System.Packed_Arrays;
package System.Pack_10 is
pragma Preelaborate;
-- It can not be Pure, subprograms would become __attribute__((const)).
type Bits_10 is mod 2 ** 10;
for Bits_10'Size use 10;
package Indexing is new Packed_Arrays.Indexing (Bits_10);
-- required for accessing aligned arrays by compiler
function Get_10 (
Arr : Address;
N : Natural;
Rev_SSO : Boolean)
return Bits_10
renames Indexing.Get;
procedure Set_10 (
Arr : Address;
N : Natural;
E : Bits_10;
Rev_SSO : Boolean)
renames Indexing.Set;
-- required for accessing unaligned arrays by compiler
function GetU_10 (
Arr : Address;
N : Natural;
Rev_SSO : Boolean)
return Bits_10
renames Indexing.Get;
procedure SetU_10 (
Arr : Address;
N : Natural;
E : Bits_10;
Rev_SSO : Boolean)
renames Indexing.Set;
end System.Pack_10;
|
pragma Ada_2012;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with Interfaces.C.Strings;
with error_h;
with console_h;
limited with context_viewport_h;
with console_types_h;
with Interfaces.C.Extensions;
package console_etc_h is
-- arg-macro: function TCOD_BKGND_ALPHA (alpha)
-- return (TCOD_bkgnd_flag_t)(TCOD_BKGND_ALPH or (((uint8_t)(alpha * 255)) << 8));
-- arg-macro: function TCOD_BKGND_ADDALPHA (alpha)
-- return (TCOD_bkgnd_flag_t)(TCOD_BKGND_ADDA or (((uint8_t)(alpha * 255)) << 8));
-- BSD 3-Clause License
-- *
-- * Copyright © 2008-2021, Jice and the libtcod contributors.
-- * All rights reserved.
-- *
-- * Redistribution and use in source and binary forms, with or without
-- * modification, are permitted provided that the following conditions are met:
-- *
-- * 1. Redistributions of source code must retain the above copyright notice,
-- * this list of conditions and the following disclaimer.
-- *
-- * 2. Redistributions in binary form must reproduce the above copyright notice,
-- * this list of conditions and the following disclaimer in the documentation
-- * and/or other materials provided with the distribution.
-- *
-- * 3. Neither the name of the copyright holder nor the names of its
-- * contributors may be used to endorse or promote products derived from
-- * this software without specific prior written permission.
-- *
-- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
-- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-- * POSSIBILITY OF SUCH DAMAGE.
--
function TCOD_console_set_custom_font
(fontFile : Interfaces.C.Strings.chars_ptr;
flags : int;
nb_char_horiz : int;
nb_char_vertic : int) return error_h.TCOD_Error -- console_etc.h:57
with Import => True,
Convention => C,
External_Name => "TCOD_console_set_custom_font";
procedure TCOD_console_map_ascii_code_to_font
(asciiCode : int;
fontCharX : int;
fontCharY : int) -- console_etc.h:58
with Import => True,
Convention => C,
External_Name => "TCOD_console_map_ascii_code_to_font";
procedure TCOD_console_map_ascii_codes_to_font
(asciiCode : int;
nbCodes : int;
fontCharX : int;
fontCharY : int) -- console_etc.h:59
with Import => True,
Convention => C,
External_Name => "TCOD_console_map_ascii_codes_to_font";
procedure TCOD_console_map_string_to_font
(s : Interfaces.C.Strings.chars_ptr;
fontCharX : int;
fontCharY : int) -- console_etc.h:60
with Import => True,
Convention => C,
External_Name => "TCOD_console_map_string_to_font";
procedure TCOD_console_map_string_to_font_utf
(s : access wchar_t;
fontCharX : int;
fontCharY : int) -- console_etc.h:62
with Import => True,
Convention => C,
External_Name => "TCOD_console_map_string_to_font_utf";
procedure TCOD_console_set_dirty
(x : int;
y : int;
w : int;
h : int) -- console_etc.h:66
with Import => True,
Convention => C,
External_Name => "TCOD_console_set_dirty";
--*
-- Render and present a console with optional viewport options.
-- `console` is the console to render.
-- `viewport` is optional.
-- Returns a negative values on error. See `TCOD_get_error`.
-- \rst
-- .. versionadded:: 1.16
-- \endrst
--
function TCOD_console_flush_ex (console : access console_h.TCOD_Console; viewport : access context_viewport_h.TCOD_ViewportOptions) return error_h.TCOD_Error -- console_etc.h:79
with Import => True,
Convention => C,
External_Name => "TCOD_console_flush_ex";
--*
-- * Render and present the root console to the active display.
--
function TCOD_console_flush return error_h.TCOD_Error -- console_etc.h:83
with Import => True,
Convention => C,
External_Name => "TCOD_console_flush";
--*
-- Return True if the libtcod keycode is held.
-- \rst
-- .. deprecated:: 1.16
-- You should instead use SDL_GetKeyboardState to check if keys are held.
-- \endrst
--
function TCOD_console_is_key_pressed (key : console_types_h.TCOD_keycode_t) return Extensions.bool -- console_etc.h:93
with Import => True,
Convention => C,
External_Name => "TCOD_console_is_key_pressed";
-- ASCII paint file support
function TCOD_console_from_file (filename : Interfaces.C.Strings.chars_ptr) return console_h.TCOD_console_t -- console_etc.h:96
with Import => True,
Convention => C,
External_Name => "TCOD_console_from_file";
function TCOD_console_load_asc (con : console_h.TCOD_console_t; filename : Interfaces.C.Strings.chars_ptr) return Extensions.bool -- console_etc.h:97
with Import => True,
Convention => C,
External_Name => "TCOD_console_load_asc";
function TCOD_console_load_apf (con : console_h.TCOD_console_t; filename : Interfaces.C.Strings.chars_ptr) return Extensions.bool -- console_etc.h:98
with Import => True,
Convention => C,
External_Name => "TCOD_console_load_apf";
function TCOD_console_save_asc (con : console_h.TCOD_console_t; filename : Interfaces.C.Strings.chars_ptr) return Extensions.bool -- console_etc.h:99
with Import => True,
Convention => C,
External_Name => "TCOD_console_save_asc";
function TCOD_console_save_apf (con : console_h.TCOD_console_t; filename : Interfaces.C.Strings.chars_ptr) return Extensions.bool -- console_etc.h:100
with Import => True,
Convention => C,
External_Name => "TCOD_console_save_apf";
--*
-- Return immediately with a recently pressed key.
-- \param flags A TCOD_event_t bit-field, for example: `TCOD_EVENT_KEY_PRESS`
-- \return A TCOD_key_t struct with a recently pressed key.
-- If no event exists then the `vk` attribute will be `TCODK_NONE`
--
function TCOD_console_check_for_keypress (flags : int) return console_types_h.TCOD_key_t -- console_etc.h:111
with Import => True,
Convention => C,
External_Name => "TCOD_console_check_for_keypress";
--*
-- Wait for a key press event, then return it.
-- \param flush If 1 then the event queue will be cleared before waiting for
-- the next event. This should always be 0.
-- \return A TCOD_key_t struct with the most recent key data.
-- Do not solve input lag issues by arbitrarily dropping events!
--
function TCOD_console_wait_for_keypress (flush : Extensions.bool) return console_types_h.TCOD_key_t -- console_etc.h:122
with Import => True,
Convention => C,
External_Name => "TCOD_console_wait_for_keypress";
procedure TCOD_console_credits -- console_etc.h:124
with Import => True,
Convention => C,
External_Name => "TCOD_console_credits";
procedure TCOD_console_credits_reset -- console_etc.h:125
with Import => True,
Convention => C,
External_Name => "TCOD_console_credits_reset";
function TCOD_console_credits_render
(x : int;
y : int;
alpha : Extensions.bool) return Extensions.bool -- console_etc.h:126
with Import => True,
Convention => C,
External_Name => "TCOD_console_credits_render";
procedure TCOD_console_set_keyboard_repeat (initial_delay : int; interval : int) -- console_etc.h:129
with Import => True,
Convention => C,
External_Name => "TCOD_console_set_keyboard_repeat";
procedure TCOD_console_disable_keyboard_repeat -- console_etc.h:131
with Import => True,
Convention => C,
External_Name => "TCOD_console_disable_keyboard_repeat";
-- extern "C"
end console_etc_h;
|
-- Copyright 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 System;
package Pck is
type Array_Type is array (Integer range <>) of Integer;
type Record_Type (N : Integer) is record
A : Array_Type (1 .. N);
end record;
function Get (N : Integer) return Record_Type;
procedure Do_Nothing (A : System.Address);
end Pck;
|
package body System.UTF_Conversions is
pragma Suppress (All_Checks);
procedure unreachable
with Import,
Convention => Intrinsic, External_Name => "__builtin_unreachable";
pragma No_Return (unreachable);
procedure UTF_8_Length (
Code : UCS_4;
Leading : out Character;
Length : out Natural;
Status : out Sequence_Status_Type);
procedure UTF_8_Length (
Code : UCS_4;
Leading : out Character;
Length : out Natural;
Status : out Sequence_Status_Type) is
begin
case Code is
when 0 .. 16#7f# =>
Leading := Character'Val (Code);
Length := 1;
Status := Success;
when 16#80# .. 2 ** (5 + 6) - 1 =>
Leading := Character'Val (2#11000000# or Code / (2 ** 6));
Length := 2;
Status := Success;
when 16#d800# .. 16#dfff# =>
Leading := Character'Val (2#11100000# or Code / (2 ** 12));
Length := 3;
Status := Illegal_Sequence; -- range of surrogate pair
when 2 ** (5 + 6) .. 16#d7ff# | 16#e000# .. 2 ** (4 + 6 + 6) - 1 =>
Leading := Character'Val (2#11100000# or Code / (2 ** 12));
Length := 3;
Status := Success;
when 2 ** (4 + 6 + 6) .. 2 ** (3 + 6 + 6 + 6) - 1 =>
Leading := Character'Val (2#11110000# or Code / (2 ** 18));
Length := 4;
Status := Success;
when 2 ** (3 + 6 + 6 + 6) .. 2 ** (2 + 6 + 6 + 6 + 6) - 1 =>
Leading := Character'Val (2#11111000# or Code / (2 ** 24));
Length := 5;
Status := Success;
when 2 ** (2 + 6 + 6 + 6 + 6) .. 2 ** (1 + 6 + 6 + 6 + 6 + 6) - 1 =>
Leading := Character'Val (2#11111100# or Code / (2 ** 30));
Length := 6;
Status := Success;
end case;
end UTF_8_Length;
-- implementation
procedure To_UTF_8 (
Code : UCS_4;
Result : out String;
Last : out Natural;
Status : out To_Status_Type)
is
I : constant Natural := Result'First;
Length : Natural;
Code_2 : UCS_4;
-- without checking surrogate pair in To_XXX
begin
if I > Result'Last then
Last := Result'Last;
Status := Overflow;
return; -- error
end if;
declare
Dummy_Sequence_Status : Sequence_Status_Type;
begin
UTF_8_Length (Code, Result (I), Length, Dummy_Sequence_Status);
end;
Code_2 := Code;
if I > Result'Last - (Length - 1) then
declare
Shortage : constant Positive := Length - 1 - (Result'Last - I);
Offset : constant Positive := 6 * Shortage;
begin
if Offset not in 6 .. 30 then
unreachable;
end if;
Code_2 := Code_2 / (2 ** Offset);
end;
Length := Result'Last - I + 1;
Last := Result'Last;
Status := Overflow;
else
Last := I + (Length - 1);
Status := Success;
end if;
for J in reverse 1 .. Length - 1 loop
Result (I + J) :=
Character'Val (2#10000000# or (Code_2 and (2 ** 6 - 1)));
Code_2 := Code_2 / (2 ** 6);
end loop;
end To_UTF_8;
procedure From_UTF_8 (
Data : String;
Last : out Natural;
Result : out UCS_4;
Status : out From_Status_Type)
is
I : Natural := Data'First;
First : constant Character := Data (I);
Trail : Character;
Length : Natural;
Shortest_Leading : Character;
Shortest_Length : Natural;
Code : UCS_4;
begin
Status := Success;
-- leading byte
case First is
when Character'Val (2#00000000#) .. Character'Val (2#01111111#) =>
Last := I;
Result := Character'Pos (First);
return;
when Character'Val (2#11000000#) .. Character'Val (2#11011111#) =>
Code := Character'Pos (First) and 2#00011111#;
Length := 2;
when Character'Val (2#11100000#) .. Character'Val (2#11101111#) =>
Code := Character'Pos (First) and 2#00001111#;
Length := 3;
when Character'Val (2#11110000#) .. Character'Val (2#11110111#) =>
Code := Character'Pos (First) and 2#00000111#;
Length := 4;
when Character'Val (2#11111000#) .. Character'Val (2#11111011#) =>
Code := Character'Pos (First) and 2#00000011#;
Length := 5;
when Character'Val (2#11111100#) .. Character'Val (2#11111101#) =>
Code := Character'Pos (First) and 2#00000001#;
Length := 6;
when others =>
Last := I;
Result := Character'Pos (First) + (UCS_4'Last - 16#ff#); -- dummy
Status := Illegal_Sequence; -- trailing byte or invalid code
return; -- error
end case;
-- trailing bytes
for J in reverse 1 .. Length - 1 loop
if I >= Data'Last then
Code := Code * 2 ** (6 * J);
Status := Truncated; -- trailing byte is nothing
exit;
else
I := I + 1;
Trail := Data (I);
if Trail not in
Character'Val (2#10000000#) .. Character'Val (2#10111111#)
then
I := I - 1;
Code := Code * 2 ** (6 * J);
Status := Illegal_Sequence; -- trailing byte is invalid
exit;
end if;
end if;
Code := Code * (2 ** 6) or (Character'Pos (Trail) and (2 ** 6 - 1));
end loop;
if Status = Success then
UTF_8_Length (
Code,
Shortest_Leading,
Shortest_Length,
Status); -- set Illegal_Sequence if surrogate pair
if Length > Shortest_Length then
Status := Non_Shortest;
end if;
end if;
Last := I;
Result := Code;
end From_UTF_8;
procedure From_UTF_8_Reverse (
Data : String;
First : out Positive;
Result : out UCS_4;
Status : out From_Status_Type)
is
Last : Natural;
begin
First := Data'Last;
while Data (First) in
Character'Val (2#10000000#) .. Character'Val (2#10111111#)
loop
if First = Data'First then
First := Data'Last; -- take 1 element
Result := Character'Pos (Data (First)) + (UCS_4'Last - 16#ff#);
Status := Truncated;
return; -- error
elsif Data'Last - First + 1 = 6 then
First := Data'Last; -- take 1 element
Result := Character'Pos (Data (First)) + (UCS_4'Last - 16#ff#);
Status := Illegal_Sequence;
return; -- error
end if;
First := First - 1;
end loop;
From_UTF_8 (Data (First .. Data'Last), Last, Result, Status);
if Last /= Data'Last then
First := Data'Last;
Result := Character'Pos (Data (First)) + (UCS_4'Last - 16#ff#);
Status := Illegal_Sequence; -- not Truncated
end if;
end From_UTF_8_Reverse;
procedure UTF_8_Sequence (
Leading : Character;
Result : out Positive;
Status : out Sequence_Status_Type) is
begin
case Leading is
when Character'Val (2#00000000#) .. Character'Val (2#01111111#) =>
Result := 1;
Status := Success;
when Character'Val (2#11000000#) .. Character'Val (2#11011111#) =>
Result := 2;
Status := Success;
when Character'Val (2#11100000#) .. Character'Val (2#11101111#) =>
Result := 3;
Status := Success;
when Character'Val (2#11110000#) .. Character'Val (2#11110111#) =>
Result := 4;
Status := Success;
when Character'Val (2#11111000#) .. Character'Val (2#11111011#) =>
Result := 5;
Status := Success;
when Character'Val (2#11111100#) .. Character'Val (2#11111101#) =>
Result := 6;
Status := Success;
when others =>
Result := 1;
Status := Illegal_Sequence; -- trailing byte or invalid code
end case;
end UTF_8_Sequence;
procedure To_UTF_16 (
Code : UCS_4;
Result : out Wide_String;
Last : out Natural;
Status : out To_Status_Type) is
begin
case Code is
when 16#0000# .. 16#d7ff#
| 16#d800# .. 16#dfff# -- without checking surrogate pair in To_XXX
| 16#e000# .. 16#ffff# =>
Last := Result'First;
if Last <= Result'Last then
Result (Last) := Wide_Character'Val (Code);
Status := Success;
else
Last := Result'Last;
Status := Overflow;
end if;
when 16#00010000# .. UCS_4'Last =>
Last := Result'First;
if Last <= Result'Last then
declare
Code_2 : UCS_4 := Code - 16#00010000#;
begin
if Code_2 >= 2 ** 20 then -- over range of UTF-16
Code_2 := 2 ** 20 - 1; -- dummy
Status := Unmappable;
else
Status := Success;
end if;
Result (Last) := Wide_Character'Val (
16#d800# or ((Code_2 / (2 ** 10)) and (2 ** 10 - 1)));
if Last <= Result'Last - 1 then
Last := Last + 1;
Result (Last) := Wide_Character'Val (
16#dc00# or (Code_2 and (2 ** 10 - 1)));
else
Status := Overflow;
end if;
end;
else
Last := Result'Last;
Status := Overflow;
end if;
end case;
end To_UTF_16;
procedure From_UTF_16 (
Data : Wide_String;
Last : out Natural;
Result : out UCS_4;
Status : out From_Status_Type)
is
I : Natural := Data'First;
First : constant Wide_Character := Data (I);
begin
case First is
when Wide_Character'Val (16#0000#) .. Wide_Character'Val (16#d7ff#)
| Wide_Character'Val (16#e000#) .. Wide_Character'Val (16#ffff#) =>
Last := I;
Result := Wide_Character'Pos (First);
Status := Success;
when Wide_Character'Val (16#d800#) .. Wide_Character'Val (16#dbff#) =>
declare
Second : Wide_Character;
begin
if I >= Data'Last then
Status := Truncated; -- trailing byte is nothing
Second := Wide_Character'Val (0);
else
I := I + 1;
Second := Data (I);
if Second not in
Wide_Character'Val (16#dc00#) ..
Wide_Character'Val (16#dfff#)
then
I := I - 1;
Second := Wide_Character'Val (0);
Status := Illegal_Sequence; -- trailing byte is invalid
else
Status := Success;
end if;
end if;
Last := I;
declare
High : constant UCS_4 :=
Wide_Character'Pos (First) and (2 ** 10 - 1);
Low : constant UCS_4 :=
Wide_Character'Pos (Second) and (2 ** 10 - 1);
begin
Result := ((High * (2 ** 10)) or Low) + 16#00010000#;
end;
end;
when Wide_Character'Val (16#dc00#) .. Wide_Character'Val (16#dfff#) =>
Last := I;
Result := Wide_Character'Pos (First);
Status := Illegal_Sequence; -- trailing byte
end case;
end From_UTF_16;
procedure From_UTF_16_Reverse (
Data : Wide_String;
First : out Positive;
Result : out UCS_4;
Status : out From_Status_Type)
is
Last : Natural; -- ignore
begin
if Data (Data'Last) in
Wide_Character'Val (16#dc00#) .. Wide_Character'Val (16#dfff#)
then
if Data'First < Data'Last
and then Data (Data'Last - 1) in
Wide_Character'Val (16#d800#) .. Wide_Character'Val (16#dbff#)
then
First := Data'Last - 1;
else
First := Data'Last;
Result := Wide_Character'Pos (Data (First));
Status := Truncated;
return; -- error
end if;
else
First := Data'Last;
end if;
From_UTF_16 (Data (First .. Data'Last), Last, Result, Status);
end From_UTF_16_Reverse;
procedure UTF_16_Sequence (
Leading : Wide_Character;
Result : out Positive;
Status : out Sequence_Status_Type) is
begin
case Leading is
when Wide_Character'Val (16#0000#) .. Wide_Character'Val (16#d7ff#)
| Wide_Character'Val (16#e000#) .. Wide_Character'Val (16#ffff#) =>
Result := 1;
Status := Success;
when Wide_Character'Val (16#d800#) .. Wide_Character'Val (16#dbff#) =>
Result := 2;
Status := Success;
when Wide_Character'Val (16#dc00#) .. Wide_Character'Val (16#dfff#) =>
Result := 1;
Status := Illegal_Sequence; -- trailing byte
end case;
end UTF_16_Sequence;
procedure To_UTF_32 (
Code : UCS_4;
Result : out Wide_Wide_String;
Last : out Natural;
Status : out To_Status_Type) is
begin
Last := Result'First;
if Last <= Result'Last then
Result (Last) := Wide_Wide_Character'Val (Code);
Status := Success;
else
Last := Result'Last;
Status := Overflow;
end if;
end To_UTF_32;
procedure From_UTF_32 (
Data : Wide_Wide_String;
Last : out Natural;
Result : out UCS_4;
Status : out From_Status_Type)
is
type Unsigned_32 is mod 2 ** Wide_Wide_Character'Size;
Code : constant Unsigned_32 :=
Wide_Wide_Character'Pos (Data (Data'First));
begin
Last := Data'First;
Result := UCS_4'Mod (Code);
case Code is
when 16#d800# .. 16#dfff# | 16#80000000# .. 16#ffffffff# =>
Status := Illegal_Sequence;
when others =>
Status := Success;
end case;
end From_UTF_32;
procedure From_UTF_32_Reverse (
Data : Wide_Wide_String;
First : out Positive;
Result : out UCS_4;
Status : out From_Status_Type)
is
Last : Natural; -- ignored
begin
First := Data'Last;
From_UTF_32 (Data (First .. Data'Last), Last, Result, Status);
end From_UTF_32_Reverse;
procedure UTF_32_Sequence (
Leading : Wide_Wide_Character;
Result : out Positive;
Status : out Sequence_Status_Type) is
begin
Result := 1;
case Wide_Wide_Character'Pos (Leading) is
when 16#d800# .. 16#dfff# | 16#80000000# .. 16#ffffffff# =>
Status := Illegal_Sequence;
when others =>
Status := Success;
end case;
end UTF_32_Sequence;
procedure Convert_Procedure (
Source : Source_Type;
Result : out Target_Type;
Last : out Natural;
Substitute : Target_Type :=
(1 => Target_Element_Type'Val (Character'Pos ('?'))))
is
Source_Last : Natural := Source'First - 1;
begin
Last := Result'First - 1;
while Source_Last < Source'Last loop
declare
Code : UCS_4;
From_Status : From_Status_Type;
To_Status : To_Status_Type; -- ignore
begin
From_UTF (
Source (Source_Last + 1 .. Source'Last),
Source_Last,
Code,
From_Status);
if From_Status /= Success then
declare
Substitute_Length : constant Natural := Substitute'Length;
begin
Result (Last + 1 .. Last + Substitute_Length) := Substitute;
Last := Last + Substitute_Length;
end;
else
To_UTF (
Code,
Result (Last + 1 .. Result'Last),
Last,
To_Status);
-- ignore error
end if;
end;
end loop;
end Convert_Procedure;
function Convert_Function (
Source : Source_Type;
Substitute : Target_Type :=
(1 => Target_Element_Type'Val (Character'Pos ('?'))))
return Target_Type
is
Result : Target_Type (
1 ..
Source'Length * Integer'Max (Expanding, Substitute'Length));
Last : Natural;
begin
Convert_Procedure (Source, Result, Last, Substitute);
return Result (1 .. Last);
end Convert_Function;
end System.UTF_Conversions;
|
pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with SDL_SDL_stdinc_h;
package SDL_SDL_active_h is
SDL_APPMOUSEFOCUS : constant := 16#01#; -- ../include/SDL/SDL_active.h:42
SDL_APPINPUTFOCUS : constant := 16#02#; -- ../include/SDL/SDL_active.h:43
SDL_APPACTIVE : constant := 16#04#; -- ../include/SDL/SDL_active.h:44
function SDL_GetAppState return SDL_SDL_stdinc_h.Uint8; -- ../include/SDL/SDL_active.h:54
pragma Import (C, SDL_GetAppState, "SDL_GetAppState");
end SDL_SDL_active_h;
|
with Simple_IO;
package body Aliasing
with SPARK_Mode => On
is
procedure Multiply (X, Y : in Rec;
Z : out Rec)
is
begin
Z := (0, 0);
Z.F := X.F * Y.F;
Z.G := X.G * Y.G;
end Multiply;
procedure Test
is
R : Rec;
Result : Integer;
begin
R := (10, 10);
Result := 100;
-- If R is passed by reference, then parameters might be aliased here.
-- This is unspecified in Ada, so must be eliminated in SPARK
Multiply (R, R, R);
Result := Result / R.F; -- So R.F might be 0 here
Simple_IO.Put_Line (Result);
end Test;
end Aliasing;
|
package GESTE_Fonts.FreeMonoBold12pt7b is
Font : constant Bitmap_Font_Ref;
private
FreeMonoBold12pt7bBitmaps : aliased constant Font_Bitmap := (
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#E0#, 16#03#, 16#C0#, 16#07#, 16#80#, 16#0F#,
16#00#, 16#0E#, 16#00#, 16#1C#, 16#00#, 16#38#, 16#00#, 16#70#, 16#00#,
16#E0#, 16#01#, 16#80#, 16#01#, 16#00#, 16#00#, 16#00#, 16#0E#, 16#00#,
16#3C#, 16#00#, 16#38#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#0E#, 16#70#, 16#1C#, 16#E0#, 16#19#,
16#C0#, 16#31#, 16#80#, 16#63#, 16#00#, 16#C4#, 16#01#, 16#88#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#CC#, 16#03#, 16#98#, 16#07#, 16#70#, 16#0E#, 16#E0#, 16#1D#,
16#C0#, 16#FF#, 16#E1#, 16#FF#, 16#C0#, 16#CE#, 16#01#, 16#98#, 16#03#,
16#30#, 16#06#, 16#60#, 16#3F#, 16#F0#, 16#7F#, 16#E0#, 16#33#, 16#00#,
16#66#, 16#01#, 16#CC#, 16#03#, 16#98#, 16#03#, 16#30#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#30#,
16#00#, 16#60#, 16#00#, 16#C0#, 16#07#, 16#F8#, 16#1F#, 16#F0#, 16#38#,
16#E0#, 16#60#, 16#C0#, 16#C0#, 16#01#, 16#F0#, 16#01#, 16#FC#, 16#00#,
16#7C#, 16#18#, 16#18#, 16#30#, 16#30#, 16#70#, 16#E0#, 16#FF#, 16#81#,
16#FE#, 16#00#, 16#30#, 16#00#, 16#60#, 16#00#, 16#C0#, 16#01#, 16#80#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#03#, 16#80#, 16#0F#, 16#80#, 16#31#, 16#80#, 16#63#,
16#00#, 16#C6#, 16#00#, 16#F8#, 16#00#, 16#E7#, 16#00#, 16#78#, 16#07#,
16#F8#, 16#19#, 16#F8#, 16#03#, 16#30#, 16#0C#, 16#20#, 16#0C#, 16#C0#,
16#1F#, 16#80#, 16#1E#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#07#, 16#C0#, 16#1F#,
16#80#, 16#72#, 16#00#, 16#E0#, 16#00#, 16#C0#, 16#01#, 16#C0#, 16#07#,
16#80#, 16#1F#, 16#B8#, 16#3B#, 16#F0#, 16#63#, 16#C0#, 16#C7#, 16#81#,
16#FF#, 16#80#, 16#FF#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#01#, 16#C0#, 16#03#, 16#80#, 16#06#,
16#00#, 16#0C#, 16#00#, 16#18#, 16#00#, 16#30#, 16#00#, 16#20#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#1C#, 16#00#, 16#38#, 16#00#, 16#E0#, 16#01#,
16#C0#, 16#07#, 16#00#, 16#0E#, 16#00#, 16#18#, 16#00#, 16#70#, 16#00#,
16#E0#, 16#01#, 16#C0#, 16#03#, 16#80#, 16#03#, 16#00#, 16#06#, 16#00#,
16#0E#, 16#00#, 16#1C#, 16#00#, 16#1C#, 16#00#, 16#38#, 16#00#, 16#38#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#06#, 16#00#, 16#0E#, 16#00#, 16#1C#, 16#00#, 16#1C#,
16#00#, 16#38#, 16#00#, 16#38#, 16#00#, 16#70#, 16#00#, 16#E0#, 16#01#,
16#C0#, 16#03#, 16#80#, 16#07#, 16#00#, 16#0E#, 16#00#, 16#1C#, 16#00#,
16#30#, 16#00#, 16#E0#, 16#01#, 16#C0#, 16#07#, 16#00#, 16#0E#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#C0#, 16#01#, 16#80#, 16#03#, 16#00#, 16#76#,
16#E0#, 16#FF#, 16#C0#, 16#FF#, 16#00#, 16#78#, 16#01#, 16#F8#, 16#03#,
16#38#, 16#06#, 16#30#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#03#, 16#00#, 16#06#,
16#00#, 16#0C#, 16#00#, 16#18#, 16#00#, 16#30#, 16#0F#, 16#FF#, 16#1F#,
16#FE#, 16#01#, 16#80#, 16#03#, 16#00#, 16#06#, 16#00#, 16#0C#, 16#00#,
16#18#, 16#00#, 16#30#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#1C#, 16#00#,
16#38#, 16#00#, 16#60#, 16#01#, 16#C0#, 16#03#, 16#00#, 16#06#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#0F#, 16#FF#, 16#1F#,
16#FE#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#0E#, 16#00#,
16#3C#, 16#00#, 16#38#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#01#,
16#00#, 16#06#, 16#00#, 16#1C#, 16#00#, 16#38#, 16#00#, 16#E0#, 16#01#,
16#C0#, 16#03#, 16#00#, 16#0E#, 16#00#, 16#18#, 16#00#, 16#70#, 16#00#,
16#C0#, 16#03#, 16#80#, 16#06#, 16#00#, 16#1C#, 16#00#, 16#30#, 16#00#,
16#E0#, 16#01#, 16#80#, 16#07#, 16#00#, 16#0E#, 16#00#, 16#08#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#01#, 16#E0#, 16#07#, 16#F0#, 16#1C#, 16#60#, 16#70#,
16#E0#, 16#E0#, 16#C1#, 16#81#, 16#83#, 16#03#, 16#06#, 16#06#, 16#0C#,
16#0C#, 16#18#, 16#18#, 16#38#, 16#30#, 16#70#, 16#E0#, 16#71#, 16#C0#,
16#7F#, 16#00#, 16#78#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#01#, 16#C0#, 16#07#, 16#80#, 16#3F#, 16#00#, 16#76#,
16#00#, 16#0C#, 16#00#, 16#18#, 16#00#, 16#30#, 16#00#, 16#60#, 16#00#,
16#C0#, 16#01#, 16#80#, 16#03#, 16#00#, 16#06#, 16#00#, 16#0C#, 16#01#,
16#FF#, 16#83#, 16#FF#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#01#, 16#E0#, 16#0F#, 16#F0#, 16#38#, 16#70#, 16#60#,
16#60#, 16#C0#, 16#C0#, 16#03#, 16#80#, 16#0E#, 16#00#, 16#3C#, 16#00#,
16#F0#, 16#03#, 16#C0#, 16#0F#, 16#00#, 16#3C#, 16#60#, 16#F0#, 16#C3#,
16#FF#, 16#87#, 16#FF#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#03#, 16#F0#, 16#0F#, 16#F0#, 16#38#, 16#70#, 16#00#,
16#60#, 16#00#, 16#C0#, 16#03#, 16#80#, 16#3E#, 16#00#, 16#FC#, 16#00#,
16#1C#, 16#00#, 16#1C#, 16#00#, 16#38#, 16#00#, 16#70#, 16#C1#, 16#C1#,
16#FF#, 16#01#, 16#FC#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#F0#, 16#01#, 16#E0#, 16#07#,
16#C0#, 16#1F#, 16#80#, 16#3F#, 16#00#, 16#EE#, 16#01#, 16#9C#, 16#07#,
16#38#, 16#1C#, 16#70#, 16#3F#, 16#F0#, 16#7F#, 16#E0#, 16#03#, 16#80#,
16#1F#, 16#80#, 16#3F#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#07#, 16#FC#, 16#0F#, 16#F8#, 16#18#, 16#00#, 16#30#,
16#00#, 16#60#, 16#00#, 16#FE#, 16#01#, 16#FE#, 16#03#, 16#0E#, 16#00#,
16#0C#, 16#00#, 16#1C#, 16#00#, 16#38#, 16#00#, 16#70#, 16#C1#, 16#C1#,
16#FF#, 16#01#, 16#FC#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#3C#, 16#01#, 16#FC#, 16#07#, 16#00#, 16#1C#,
16#00#, 16#70#, 16#00#, 16#E0#, 16#01#, 16#BC#, 16#03#, 16#FE#, 16#07#,
16#9C#, 16#0E#, 16#1C#, 16#18#, 16#38#, 16#38#, 16#70#, 16#30#, 16#C0#,
16#7F#, 16#80#, 16#3C#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#0F#, 16#FC#, 16#1F#, 16#F8#, 16#30#, 16#70#, 16#60#,
16#E0#, 16#01#, 16#80#, 16#03#, 16#00#, 16#0E#, 16#00#, 16#18#, 16#00#,
16#30#, 16#00#, 16#E0#, 16#01#, 16#80#, 16#03#, 16#00#, 16#0E#, 16#00#,
16#18#, 16#00#, 16#30#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#01#, 16#E0#, 16#0F#, 16#F0#, 16#1C#, 16#70#, 16#70#,
16#60#, 16#E0#, 16#C1#, 16#C1#, 16#81#, 16#C6#, 16#01#, 16#FC#, 16#07#,
16#F8#, 16#1C#, 16#38#, 16#38#, 16#30#, 16#60#, 16#60#, 16#E1#, 16#C0#,
16#FF#, 16#00#, 16#FC#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#01#, 16#F0#, 16#07#, 16#F0#, 16#1C#, 16#70#, 16#30#,
16#60#, 16#60#, 16#E0#, 16#C1#, 16#C1#, 16#C7#, 16#81#, 16#FF#, 16#01#,
16#EE#, 16#00#, 16#1C#, 16#00#, 16#70#, 16#00#, 16#E0#, 16#07#, 16#80#,
16#FE#, 16#01#, 16#F0#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#0E#, 16#00#, 16#3C#, 16#00#, 16#38#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#0E#, 16#00#,
16#3C#, 16#00#, 16#38#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#1C#, 16#00#, 16#38#, 16#00#, 16#70#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#1C#, 16#00#,
16#38#, 16#00#, 16#E0#, 16#01#, 16#80#, 16#03#, 16#00#, 16#04#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#30#, 16#01#, 16#E0#, 16#0F#, 16#80#, 16#7C#, 16#03#, 16#E0#, 16#1F#,
16#00#, 16#0F#, 16#80#, 16#07#, 16#C0#, 16#03#, 16#E0#, 16#01#, 16#E0#,
16#00#, 16#80#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#03#, 16#FF#, 16#C7#, 16#FF#, 16#80#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#7F#, 16#F8#, 16#FF#, 16#F0#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#60#,
16#01#, 16#F0#, 16#00#, 16#F8#, 16#00#, 16#7C#, 16#00#, 16#3E#, 16#00#,
16#3E#, 16#01#, 16#F0#, 16#0F#, 16#80#, 16#7C#, 16#01#, 16#E0#, 16#01#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#07#, 16#E0#, 16#1F#, 16#E0#, 16#30#,
16#E0#, 16#60#, 16#C0#, 16#01#, 16#80#, 16#07#, 16#00#, 16#3E#, 16#00#,
16#F8#, 16#01#, 16#C0#, 16#03#, 16#00#, 16#00#, 16#00#, 16#0E#, 16#00#,
16#3C#, 16#00#, 16#38#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#01#, 16#E0#, 16#07#, 16#F0#, 16#1C#, 16#60#, 16#30#,
16#60#, 16#C0#, 16#C1#, 16#87#, 16#83#, 16#3F#, 16#06#, 16#66#, 16#0D#,
16#8C#, 16#1B#, 16#18#, 16#37#, 16#30#, 16#67#, 16#E0#, 16#C7#, 16#C1#,
16#80#, 16#03#, 16#00#, 16#03#, 16#00#, 16#07#, 16#18#, 16#07#, 16#F0#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#1F#, 16#C0#, 16#3F#, 16#80#, 16#0F#,
16#80#, 16#3F#, 16#00#, 16#76#, 16#00#, 16#CE#, 16#03#, 16#9C#, 16#06#,
16#18#, 16#1F#, 16#F8#, 16#3F#, 16#F0#, 16#60#, 16#71#, 16#C0#, 16#E7#,
16#E3#, 16#FF#, 16#C7#, 16#E0#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#7F#, 16#E0#, 16#FF#, 16#F0#, 16#70#,
16#60#, 16#E0#, 16#E1#, 16#C1#, 16#C3#, 16#87#, 16#07#, 16#FC#, 16#0F#,
16#FC#, 16#1C#, 16#1C#, 16#38#, 16#1C#, 16#70#, 16#38#, 16#E0#, 16#77#,
16#FF#, 16#CF#, 16#FF#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#03#, 16#FC#, 16#1F#, 16#F8#, 16#70#,
16#71#, 16#C0#, 16#63#, 16#80#, 16#C6#, 16#00#, 16#0C#, 16#00#, 16#18#,
16#00#, 16#30#, 16#00#, 16#60#, 16#00#, 16#E0#, 16#30#, 16#E0#, 16#E0#,
16#FF#, 16#C0#, 16#7E#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#7F#, 16#C0#, 16#FF#, 16#E0#, 16#60#,
16#E0#, 16#C0#, 16#C1#, 16#81#, 16#C3#, 16#01#, 16#86#, 16#03#, 16#0C#,
16#06#, 16#18#, 16#0C#, 16#30#, 16#18#, 16#60#, 16#70#, 16#C1#, 16#C7#,
16#FF#, 16#0F#, 16#FC#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#7F#, 16#FC#, 16#FF#, 16#F8#, 16#70#,
16#70#, 16#E0#, 16#E1#, 16#CC#, 16#83#, 16#98#, 16#07#, 16#F0#, 16#0F#,
16#E0#, 16#1C#, 16#C0#, 16#39#, 16#98#, 16#70#, 16#30#, 16#E0#, 16#67#,
16#FF#, 16#CF#, 16#FF#, 16#80#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#7F#, 16#FC#, 16#FF#, 16#F8#, 16#70#,
16#30#, 16#E0#, 16#61#, 16#CC#, 16#C3#, 16#98#, 16#07#, 16#F0#, 16#0F#,
16#E0#, 16#1C#, 16#C0#, 16#39#, 16#80#, 16#70#, 16#00#, 16#E0#, 16#07#,
16#F8#, 16#0F#, 16#F0#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#03#, 16#FC#, 16#1F#, 16#F8#, 16#70#,
16#71#, 16#C0#, 16#63#, 16#80#, 16#C6#, 16#00#, 16#0C#, 16#00#, 16#18#,
16#7F#, 16#30#, 16#FE#, 16#60#, 16#18#, 16#E0#, 16#30#, 16#E0#, 16#E0#,
16#FF#, 16#C0#, 16#7E#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#3E#, 16#7C#, 16#7C#, 16#F8#, 16#70#,
16#60#, 16#E0#, 16#C1#, 16#C1#, 16#83#, 16#83#, 16#07#, 16#FE#, 16#0F#,
16#FC#, 16#1C#, 16#18#, 16#38#, 16#30#, 16#70#, 16#60#, 16#E0#, 16#C3#,
16#E7#, 16#E7#, 16#CF#, 16#C0#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#1F#, 16#F8#, 16#3F#, 16#F0#, 16#06#,
16#00#, 16#0C#, 16#00#, 16#18#, 16#00#, 16#30#, 16#00#, 16#60#, 16#00#,
16#C0#, 16#01#, 16#80#, 16#03#, 16#00#, 16#06#, 16#00#, 16#0C#, 16#01#,
16#FF#, 16#83#, 16#FF#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#03#, 16#FF#, 16#07#, 16#FE#, 16#00#,
16#E0#, 16#01#, 16#C0#, 16#03#, 16#80#, 16#07#, 16#00#, 16#0E#, 16#08#,
16#1C#, 16#38#, 16#38#, 16#70#, 16#70#, 16#E0#, 16#E1#, 16#C3#, 16#83#,
16#FE#, 16#00#, 16#F8#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#7F#, 16#7E#, 16#FE#, 16#FC#, 16#71#,
16#E0#, 16#E7#, 16#81#, 16#DE#, 16#03#, 16#F8#, 16#07#, 16#F0#, 16#0F#,
16#F0#, 16#1C#, 16#E0#, 16#38#, 16#E0#, 16#70#, 16#C0#, 16#E1#, 16#C7#,
16#F1#, 16#EF#, 16#E3#, 16#C0#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#3F#, 16#C0#, 16#7F#, 16#80#, 16#18#,
16#00#, 16#30#, 16#00#, 16#60#, 16#00#, 16#C0#, 16#01#, 16#80#, 16#03#,
16#00#, 16#06#, 16#06#, 16#0C#, 16#1C#, 16#18#, 16#38#, 16#30#, 16#73#,
16#FF#, 16#E7#, 16#FF#, 16#C0#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#78#, 16#1F#, 16#F8#, 16#3E#, 16#F0#,
16#F1#, 16#F1#, 16#E3#, 16#E7#, 16#C6#, 16#EF#, 16#8D#, 16#DB#, 16#19#,
16#F6#, 16#33#, 16#CC#, 16#63#, 16#98#, 16#C7#, 16#31#, 16#80#, 16#67#,
16#E3#, 16#FF#, 16#C7#, 16#E0#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#78#, 16#7E#, 16#F8#, 16#FC#, 16#78#,
16#70#, 16#F0#, 16#E1#, 16#F1#, 16#C3#, 16#73#, 16#86#, 16#67#, 16#0C#,
16#EE#, 16#18#, 16#FC#, 16#31#, 16#F8#, 16#61#, 16#F0#, 16#C1#, 16#E7#,
16#E3#, 16#CF#, 16#C3#, 16#80#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#03#, 16#C0#, 16#1F#, 16#E0#, 16#70#,
16#E1#, 16#C0#, 16#E3#, 16#00#, 16#C6#, 16#01#, 16#CC#, 16#03#, 16#98#,
16#07#, 16#30#, 16#0E#, 16#60#, 16#18#, 16#E0#, 16#70#, 16#E1#, 16#C0#,
16#FF#, 16#00#, 16#7C#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#7F#, 16#E0#, 16#FF#, 16#E0#, 16#70#,
16#E0#, 16#E0#, 16#E1#, 16#C1#, 16#C3#, 16#83#, 16#87#, 16#0E#, 16#0F#,
16#FC#, 16#1F#, 16#E0#, 16#38#, 16#00#, 16#70#, 16#00#, 16#E0#, 16#07#,
16#F8#, 16#0F#, 16#F0#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#03#, 16#E0#, 16#1F#, 16#E0#, 16#70#,
16#E1#, 16#C0#, 16#E3#, 16#00#, 16#C6#, 16#01#, 16#CC#, 16#03#, 16#98#,
16#07#, 16#30#, 16#0E#, 16#60#, 16#18#, 16#E0#, 16#70#, 16#E1#, 16#C0#,
16#FF#, 16#00#, 16#FC#, 16#01#, 16#81#, 16#87#, 16#FF#, 16#0F#, 16#FC#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#7F#, 16#E0#, 16#FF#, 16#E0#, 16#60#,
16#E0#, 16#C0#, 16#C1#, 16#81#, 16#83#, 16#0F#, 16#07#, 16#FC#, 16#0F#,
16#F0#, 16#18#, 16#F0#, 16#30#, 16#E0#, 16#60#, 16#E0#, 16#C0#, 16#C7#,
16#F1#, 16#EF#, 16#E1#, 16#C0#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#03#, 16#F8#, 16#1F#, 16#F0#, 16#70#,
16#E0#, 16#E0#, 16#C1#, 16#C1#, 16#83#, 16#80#, 16#03#, 16#F0#, 16#01#,
16#FC#, 16#00#, 16#3C#, 16#30#, 16#38#, 16#E0#, 16#71#, 16#E1#, 16#E3#,
16#FF#, 16#83#, 16#FC#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#3F#, 16#FC#, 16#7F#, 16#F8#, 16#C6#,
16#31#, 16#8C#, 16#63#, 16#18#, 16#C6#, 16#31#, 16#80#, 16#60#, 16#00#,
16#C0#, 16#01#, 16#80#, 16#03#, 16#00#, 16#06#, 16#00#, 16#0C#, 16#00#,
16#FF#, 16#01#, 16#FE#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#7E#, 16#7E#, 16#FC#, 16#FC#, 16#60#,
16#70#, 16#C0#, 16#E1#, 16#81#, 16#C3#, 16#03#, 16#86#, 16#07#, 16#0C#,
16#0E#, 16#18#, 16#1C#, 16#30#, 16#38#, 16#60#, 16#60#, 16#E1#, 16#C0#,
16#FF#, 16#00#, 16#7C#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#7E#, 16#3F#, 16#FC#, 16#7E#, 16#E0#,
16#30#, 16#C0#, 16#E1#, 16#C1#, 16#81#, 16#87#, 16#03#, 16#8C#, 16#07#,
16#38#, 16#06#, 16#70#, 16#0E#, 16#C0#, 16#0F#, 16#80#, 16#1E#, 16#00#,
16#3C#, 16#00#, 16#38#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#7E#, 16#7E#, 16#FC#, 16#FC#, 16#C0#,
16#31#, 16#CE#, 16#63#, 16#9C#, 16#C7#, 16#79#, 16#8E#, 16#FB#, 16#0D#,
16#FE#, 16#1F#, 16#7C#, 16#3C#, 16#F8#, 16#79#, 16#F0#, 16#F1#, 16#C1#,
16#E3#, 16#83#, 16#87#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#3E#, 16#3E#, 16#7C#, 16#7C#, 16#70#,
16#E0#, 16#73#, 16#80#, 16#7F#, 16#00#, 16#7C#, 16#00#, 16#F0#, 16#01#,
16#E0#, 16#07#, 16#E0#, 16#0E#, 16#E0#, 16#39#, 16#E0#, 16#E1#, 16#C7#,
16#E7#, 16#EF#, 16#CF#, 16#C0#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#3E#, 16#3E#, 16#7C#, 16#7C#, 16#70#,
16#E0#, 16#73#, 16#80#, 16#77#, 16#00#, 16#FC#, 16#00#, 16#F8#, 16#00#,
16#E0#, 16#01#, 16#80#, 16#03#, 16#00#, 16#06#, 16#00#, 16#0C#, 16#00#,
16#FF#, 16#01#, 16#FE#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#1F#, 16#F8#, 16#3F#, 16#F0#, 16#70#,
16#E0#, 16#E3#, 16#81#, 16#CE#, 16#01#, 16#3C#, 16#00#, 16#70#, 16#01#,
16#C0#, 16#07#, 16#18#, 16#0E#, 16#38#, 16#38#, 16#70#, 16#E0#, 16#E1#,
16#FF#, 16#C3#, 16#FF#, 16#80#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#F8#, 16#01#, 16#F0#, 16#03#, 16#00#, 16#06#,
16#00#, 16#0C#, 16#00#, 16#18#, 16#00#, 16#30#, 16#00#, 16#60#, 16#00#,
16#C0#, 16#01#, 16#80#, 16#03#, 16#00#, 16#06#, 16#00#, 16#0C#, 16#00#,
16#18#, 16#00#, 16#30#, 16#00#, 16#60#, 16#00#, 16#C0#, 16#01#, 16#F0#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#01#, 16#00#,
16#06#, 16#00#, 16#0E#, 16#00#, 16#0C#, 16#00#, 16#1C#, 16#00#, 16#18#,
16#00#, 16#38#, 16#00#, 16#30#, 16#00#, 16#70#, 16#00#, 16#60#, 16#00#,
16#E0#, 16#00#, 16#C0#, 16#01#, 16#C0#, 16#01#, 16#80#, 16#03#, 16#80#,
16#07#, 16#00#, 16#07#, 16#00#, 16#0E#, 16#00#, 16#0C#, 16#00#, 16#08#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#07#, 16#C0#, 16#0F#, 16#80#, 16#03#, 16#00#, 16#06#,
16#00#, 16#0C#, 16#00#, 16#18#, 16#00#, 16#30#, 16#00#, 16#60#, 16#00#,
16#C0#, 16#01#, 16#80#, 16#03#, 16#00#, 16#06#, 16#00#, 16#0C#, 16#00#,
16#18#, 16#00#, 16#30#, 16#00#, 16#60#, 16#00#, 16#C0#, 16#0F#, 16#80#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#20#, 16#00#, 16#C0#, 16#03#, 16#C0#, 16#0F#, 16#C0#, 16#3D#,
16#C0#, 16#71#, 16#C1#, 16#C3#, 16#83#, 16#03#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#01#, 16#80#, 16#03#, 16#80#, 16#03#, 16#80#, 16#01#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#7F#, 16#01#, 16#FF#, 16#00#, 16#07#, 16#00#, 16#0E#, 16#03#,
16#FC#, 16#1F#, 16#F8#, 16#38#, 16#70#, 16#E0#, 16#E1#, 16#C3#, 16#C3#,
16#FF#, 16#E1#, 16#FF#, 16#C0#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#3C#, 16#00#, 16#78#, 16#00#, 16#30#, 16#00#, 16#60#,
16#00#, 16#DF#, 16#01#, 16#FF#, 16#83#, 16#C3#, 16#87#, 16#03#, 16#0C#,
16#07#, 16#18#, 16#0E#, 16#30#, 16#1C#, 16#70#, 16#30#, 16#F0#, 16#E7#,
16#FF#, 16#8F#, 16#7E#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#1F#, 16#E0#, 16#FF#, 16#C3#, 16#83#, 16#86#, 16#07#, 16#1C#,
16#06#, 16#38#, 16#00#, 16#70#, 16#00#, 16#60#, 16#00#, 16#E0#, 16#60#,
16#FF#, 16#C0#, 16#7E#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#3E#, 16#00#, 16#7C#, 16#00#, 16#38#, 16#00#,
16#70#, 16#3E#, 16#E1#, 16#FF#, 16#C3#, 16#87#, 16#8E#, 16#07#, 16#18#,
16#0E#, 16#30#, 16#1C#, 16#60#, 16#38#, 16#E0#, 16#71#, 16#E1#, 16#E1#,
16#FF#, 16#F0#, 16#FF#, 16#E0#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#3F#, 16#00#, 16#FF#, 16#03#, 16#87#, 16#0E#, 16#07#, 16#1F#,
16#FE#, 16#3F#, 16#FC#, 16#70#, 16#00#, 16#E0#, 16#00#, 16#E0#, 16#E0#,
16#FF#, 16#C0#, 16#FE#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#7E#, 16#03#, 16#FE#, 16#06#, 16#00#, 16#0C#,
16#00#, 16#FF#, 16#C1#, 16#FF#, 16#80#, 16#60#, 16#00#, 16#C0#, 16#01#,
16#80#, 16#03#, 16#00#, 16#06#, 16#00#, 16#0C#, 16#00#, 16#18#, 16#01#,
16#FF#, 16#83#, 16#FF#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#3E#, 16#F1#, 16#FF#, 16#E3#, 16#8F#, 16#0E#, 16#0E#, 16#18#,
16#0C#, 16#30#, 16#18#, 16#60#, 16#30#, 16#E0#, 16#E0#, 16#E3#, 16#C0#,
16#FF#, 16#80#, 16#FB#, 16#00#, 16#06#, 16#00#, 16#0C#, 16#00#, 16#38#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#3E#, 16#00#, 16#7C#, 16#00#, 16#38#, 16#00#, 16#70#,
16#00#, 16#EF#, 16#01#, 16#FF#, 16#03#, 16#C7#, 16#07#, 16#06#, 16#0E#,
16#0C#, 16#1C#, 16#18#, 16#38#, 16#30#, 16#70#, 16#60#, 16#E0#, 16#C3#,
16#E7#, 16#E7#, 16#CF#, 16#C0#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#03#, 16#80#, 16#07#, 16#00#, 16#00#,
16#00#, 16#7C#, 16#00#, 16#F8#, 16#00#, 16#30#, 16#00#, 16#60#, 16#00#,
16#C0#, 16#01#, 16#80#, 16#03#, 16#00#, 16#06#, 16#00#, 16#0C#, 16#01#,
16#FF#, 16#C3#, 16#FF#, 16#80#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#E0#, 16#01#, 16#C0#, 16#00#,
16#00#, 16#FF#, 16#81#, 16#FF#, 16#00#, 16#06#, 16#00#, 16#0C#, 16#00#,
16#18#, 16#00#, 16#30#, 16#00#, 16#60#, 16#00#, 16#C0#, 16#01#, 16#80#,
16#03#, 16#00#, 16#06#, 16#00#, 16#0C#, 16#00#, 16#38#, 16#00#, 16#70#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#1E#, 16#00#, 16#3C#, 16#00#, 16#18#, 16#00#, 16#30#,
16#00#, 16#67#, 16#C0#, 16#CF#, 16#81#, 16#BC#, 16#03#, 16#F0#, 16#07#,
16#C0#, 16#0F#, 16#80#, 16#1F#, 16#80#, 16#37#, 16#80#, 16#67#, 16#83#,
16#C7#, 16#E7#, 16#8F#, 16#C0#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#07#, 16#C0#, 16#0F#, 16#80#, 16#03#, 16#00#, 16#06#,
16#00#, 16#0C#, 16#00#, 16#18#, 16#00#, 16#30#, 16#00#, 16#60#, 16#00#,
16#C0#, 16#01#, 16#80#, 16#03#, 16#00#, 16#06#, 16#00#, 16#0C#, 16#01#,
16#FF#, 16#C3#, 16#FF#, 16#80#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#03#, 16#FB#, 16#C7#, 16#FF#, 16#C7#, 16#39#, 16#8C#, 16#63#, 16#98#,
16#C7#, 16#31#, 16#8E#, 16#63#, 16#1C#, 16#C6#, 16#39#, 16#8C#, 16#77#,
16#DE#, 16#FF#, 16#BD#, 16#E0#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#01#, 16#EF#, 16#03#, 16#FF#, 16#03#, 16#C7#, 16#07#, 16#06#, 16#0E#,
16#0C#, 16#1C#, 16#18#, 16#38#, 16#30#, 16#70#, 16#60#, 16#E0#, 16#C3#,
16#E7#, 16#E7#, 16#C7#, 16#C0#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#1F#, 16#00#, 16#FF#, 16#03#, 16#87#, 16#0E#, 16#07#, 16#1C#,
16#06#, 16#30#, 16#0C#, 16#70#, 16#18#, 16#E0#, 16#70#, 16#E1#, 16#C0#,
16#FF#, 16#00#, 16#7C#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#03#, 16#DF#, 16#87#, 16#FF#, 16#83#, 16#C3#, 16#87#, 16#03#, 16#8C#,
16#07#, 16#18#, 16#0E#, 16#38#, 16#1C#, 16#70#, 16#38#, 16#F0#, 16#E1#,
16#FF#, 16#83#, 16#3E#, 16#06#, 16#00#, 16#0C#, 16#00#, 16#18#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#3E#, 16#F1#, 16#FF#, 16#E7#, 16#8F#, 16#0C#, 16#0E#, 16#18#,
16#0C#, 16#70#, 16#18#, 16#60#, 16#30#, 16#E0#, 16#E1#, 16#E3#, 16#C1#,
16#FF#, 16#80#, 16#FB#, 16#00#, 16#06#, 16#00#, 16#0C#, 16#00#, 16#18#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#F9#, 16#E1#, 16#FF#, 16#E0#, 16#F8#, 16#81#, 16#E0#, 16#03#,
16#80#, 16#07#, 16#00#, 16#0E#, 16#00#, 16#1C#, 16#00#, 16#38#, 16#03#,
16#FF#, 16#07#, 16#FE#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#3F#, 16#C0#, 16#FF#, 16#83#, 16#87#, 16#07#, 16#06#, 16#0F#,
16#E0#, 16#0F#, 16#F0#, 16#03#, 16#F0#, 16#60#, 16#70#, 16#E0#, 16#E1#,
16#FF#, 16#83#, 16#FC#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#0C#, 16#00#, 16#18#, 16#00#, 16#30#,
16#03#, 16#FF#, 16#87#, 16#FF#, 16#01#, 16#80#, 16#03#, 16#00#, 16#06#,
16#00#, 16#0C#, 16#00#, 16#18#, 16#00#, 16#30#, 16#00#, 16#60#, 16#E0#,
16#FF#, 16#C0#, 16#7E#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#03#, 16#E3#, 16#C7#, 16#C7#, 16#83#, 16#83#, 16#07#, 16#06#, 16#0E#,
16#0C#, 16#1C#, 16#18#, 16#38#, 16#30#, 16#70#, 16#60#, 16#61#, 16#C0#,
16#FF#, 16#E0#, 16#FB#, 16#C0#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#03#, 16#F3#, 16#F7#, 16#E7#, 16#E3#, 16#83#, 16#03#, 16#0E#, 16#07#,
16#18#, 16#0E#, 16#70#, 16#0E#, 16#C0#, 16#1F#, 16#80#, 16#1F#, 16#00#,
16#3C#, 16#00#, 16#38#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#03#, 16#E1#, 16#F7#, 16#C3#, 16#E7#, 16#39#, 16#86#, 16#77#, 16#0D#,
16#EE#, 16#1F#, 16#D8#, 16#3F#, 16#F0#, 16#3D#, 16#E0#, 16#73#, 16#C0#,
16#E7#, 16#01#, 16#C6#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#01#, 16#F3#, 16#E3#, 16#E7#, 16#C3#, 16#CF#, 16#03#, 16#FC#, 16#03#,
16#F0#, 16#03#, 16#C0#, 16#0F#, 16#C0#, 16#3D#, 16#C0#, 16#E1#, 16#E3#,
16#E7#, 16#E7#, 16#CF#, 16#C0#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#01#, 16#F1#, 16#F3#, 16#E3#, 16#E3#, 16#83#, 16#07#, 16#0E#, 16#07#,
16#1C#, 16#0E#, 16#70#, 16#0C#, 16#E0#, 16#1F#, 16#80#, 16#1F#, 16#00#,
16#3C#, 16#00#, 16#38#, 16#00#, 16#60#, 16#01#, 16#C0#, 16#03#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#FF#, 16#C1#, 16#FF#, 16#83#, 16#8E#, 16#02#, 16#3C#, 16#00#,
16#F0#, 16#03#, 16#C0#, 16#0F#, 16#00#, 16#1C#, 16#60#, 16#70#, 16#C1#,
16#FF#, 16#83#, 16#FF#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#38#, 16#00#, 16#F0#, 16#03#, 16#80#, 16#06#,
16#00#, 16#0C#, 16#00#, 16#18#, 16#00#, 16#30#, 16#00#, 16#60#, 16#01#,
16#C0#, 16#0F#, 16#00#, 16#1E#, 16#00#, 16#06#, 16#00#, 16#0C#, 16#00#,
16#18#, 16#00#, 16#30#, 16#00#, 16#60#, 16#00#, 16#E0#, 16#01#, 16#F0#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#C0#, 16#01#, 16#80#, 16#03#, 16#00#, 16#06#,
16#00#, 16#0C#, 16#00#, 16#18#, 16#00#, 16#30#, 16#00#, 16#60#, 16#00#,
16#C0#, 16#01#, 16#80#, 16#03#, 16#00#, 16#06#, 16#00#, 16#0C#, 16#00#,
16#18#, 16#00#, 16#30#, 16#00#, 16#60#, 16#00#, 16#C0#, 16#01#, 16#80#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#03#, 16#80#, 16#07#, 16#80#, 16#03#, 16#00#, 16#06#,
16#00#, 16#0C#, 16#00#, 16#18#, 16#00#, 16#30#, 16#00#, 16#60#, 16#00#,
16#E0#, 16#00#, 16#F0#, 16#01#, 16#E0#, 16#07#, 16#00#, 16#0C#, 16#00#,
16#18#, 16#00#, 16#30#, 16#00#, 16#60#, 16#00#, 16#C0#, 16#07#, 16#80#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#03#, 16#C3#, 16#0F#,
16#CE#, 16#19#, 16#F8#, 16#30#, 16#E0#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#);
Font_D : aliased constant Bitmap_Font :=
(
Bytes_Per_Glyph => 45,
Glyph_Width => 15,
Glyph_Height => 24,
Data => FreeMonoBold12pt7bBitmaps'Access);
Font : constant Bitmap_Font_Ref := Font_D'Access;
end GESTE_Fonts.FreeMonoBold12pt7b;
|
package body Utils is
function I (F : Float) return Integer
is (Integer (F));
end Utils;
|
-- Generated at 2014-10-01 17:18:35 +0000 by Natools.Static_Hash_Maps
-- from src/natools-s_expressions-templates-generic_integers-maps.sx
function Natools.Static_Maps.S_Expressions.Templates.Integers.T
return Boolean;
pragma Pure (Natools.Static_Maps.S_Expressions.Templates.Integers.T);
|
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
package body Program.Nodes.Exception_Declarations is
function Create
(Names : not null Program.Elements.Defining_Identifiers
.Defining_Identifier_Vector_Access;
Colon_Token : not null Program.Lexical_Elements
.Lexical_Element_Access;
Exception_Token : not null 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 Exception_Declaration is
begin
return Result : Exception_Declaration :=
(Names => Names, Colon_Token => Colon_Token,
Exception_Token => Exception_Token, With_Token => With_Token,
Aspects => Aspects, Semicolon_Token => Semicolon_Token,
Enclosing_Element => null)
do
Initialize (Result);
end return;
end Create;
function Create
(Names : not null Program.Elements.Defining_Identifiers
.Defining_Identifier_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_Exception_Declaration is
begin
return Result : Implicit_Exception_Declaration :=
(Names => Names, 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 Names
(Self : Base_Exception_Declaration)
return not null Program.Elements.Defining_Identifiers
.Defining_Identifier_Vector_Access is
begin
return Self.Names;
end Names;
overriding function Aspects
(Self : Base_Exception_Declaration)
return Program.Elements.Aspect_Specifications
.Aspect_Specification_Vector_Access is
begin
return Self.Aspects;
end Aspects;
overriding function Colon_Token
(Self : Exception_Declaration)
return not null Program.Lexical_Elements.Lexical_Element_Access is
begin
return Self.Colon_Token;
end Colon_Token;
overriding function Exception_Token
(Self : Exception_Declaration)
return not null Program.Lexical_Elements.Lexical_Element_Access is
begin
return Self.Exception_Token;
end Exception_Token;
overriding function With_Token
(Self : Exception_Declaration)
return Program.Lexical_Elements.Lexical_Element_Access is
begin
return Self.With_Token;
end With_Token;
overriding function Semicolon_Token
(Self : Exception_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_Exception_Declaration)
return Boolean is
begin
return Self.Is_Part_Of_Implicit;
end Is_Part_Of_Implicit;
overriding function Is_Part_Of_Inherited
(Self : Implicit_Exception_Declaration)
return Boolean is
begin
return Self.Is_Part_Of_Inherited;
end Is_Part_Of_Inherited;
overriding function Is_Part_Of_Instance
(Self : Implicit_Exception_Declaration)
return Boolean is
begin
return Self.Is_Part_Of_Instance;
end Is_Part_Of_Instance;
procedure Initialize (Self : in out Base_Exception_Declaration'Class) is
begin
for Item in Self.Names.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_Exception_Declaration
(Self : Base_Exception_Declaration)
return Boolean is
pragma Unreferenced (Self);
begin
return True;
end Is_Exception_Declaration;
overriding function Is_Declaration
(Self : Base_Exception_Declaration)
return Boolean is
pragma Unreferenced (Self);
begin
return True;
end Is_Declaration;
overriding procedure Visit
(Self : not null access Base_Exception_Declaration;
Visitor : in out Program.Element_Visitors.Element_Visitor'Class) is
begin
Visitor.Exception_Declaration (Self);
end Visit;
overriding function To_Exception_Declaration_Text
(Self : in out Exception_Declaration)
return Program.Elements.Exception_Declarations
.Exception_Declaration_Text_Access is
begin
return Self'Unchecked_Access;
end To_Exception_Declaration_Text;
overriding function To_Exception_Declaration_Text
(Self : in out Implicit_Exception_Declaration)
return Program.Elements.Exception_Declarations
.Exception_Declaration_Text_Access is
pragma Unreferenced (Self);
begin
return null;
end To_Exception_Declaration_Text;
end Program.Nodes.Exception_Declarations;
|
with TLSF.Config;
use TLSF.Config;
package body TLSF.Mem_Block_Size
with SPARK_Mode is
generic
type Modular is mod <>;
Alignment_Log2: Positive;
function Align_generic ( V : Modular ) return Modular
with
Pre => V <= Modular'Last - (2 ** Alignment_Log2 - 1),
Post => (V <= Align_generic'Result and
Align_generic'Result mod 2 ** Alignment_Log2 = 0);
function Align_generic ( V : Modular ) return Modular
is ((V + (2 ** Alignment_Log2 - 1))
and not (2 ** Alignment_Log2 - 1));
function Align ( Sz : Size) return Size is
function Align is new Align_generic (Size, Align_Size_Log2);
begin
return Align (Sz);
end Align;
function Align ( Sz : SSE.Storage_Count ) return Size
is (Align(Size(Sz)));
function Align ( Addr : System.Address ) return System.Address
is
function Align is new Align_generic (SSE.Integer_Address, Align_Size_Log2);
Int_Addr : SSE.Integer_Address := SSE.To_Integer (Addr);
Aligned : SSE.Integer_Address := Align (Int_Addr);
Result : System.Address := SSE.To_Address (Aligned);
begin
pragma Assert (Int_Addr <= Aligned);
pragma Assume (SSE.To_Integer(SSE.To_Address(Aligned)) = Aligned);
pragma Assert (SSE.To_Integer(Addr) <= SSE.To_Integer(Result));
return Result;
end Align;
function Align ( Sc : SSE.Storage_Count ) return SSE.Storage_Count
is
type Storage_Count_Mod is mod 2 ** SSE.Storage_Count'Size;
function Align is new Align_generic (Storage_Count_Mod, Align_Size_Log2);
begin
return SSE.Storage_Count (Align (Storage_Count_Mod (Sc)));
end Align;
use type SSE.Storage_Offset;
function "+" (A : System.Address;
B : Size)
return System.Address
is (A + SSE.Storage_Offset (B));
function "-" (A : System.Address;
B : Size)
return System.Address
is (A - SSE.Storage_Offset (B));
end TLSF.Mem_Block_Size;
|
--------------------------------------------------------------------------------
-- MIT License
--
-- Copyright (c) 2021 Zane Myers
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including without limitation the rights
-- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-- copies of the Software, and to permit persons to whom the Software is
-- furnished to do so, subject to the following conditions:
--
-- The above copyright notice and this permission notice shall be included in all
-- copies or substantial portions of the Software.
--
-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-- SOFTWARE.
--------------------------------------------------------------------------------
with Ada.Text_IO;
with Ada.Characters.Latin_1;
with Vulkan.Math.GenDMatrix;
with Vulkan.Math.Dmat2x2;
with Vulkan.Math.Dmat4x2;
with Vulkan.Math.Dmat3x4;
with Vulkan.Math.GenDType;
with Vulkan.Math.Dvec2;
with Vulkan.Math.Dvec4;
with Vulkan.Test.Framework;
use Ada.Text_IO;
use Ada.Characters.Latin_1;
use Vulkan.Math.Dmat2x2;
use Vulkan.Math.Dmat4x2;
use Vulkan.Math.Dmat3x4;
use Vulkan.Math.GenDType;
use Vulkan.Math.Dvec2;
use Vulkan.Math.Dvec4;
use Vulkan.Test.Framework;
--------------------------------------------------------------------------------
--< @group Vulkan Math Basic Types
--------------------------------------------------------------------------------
--< @summary
--< This package provides tests for single precision floating point mat4x2.
--------------------------------------------------------------------------------
package body Vulkan.Math.Dmat4x2.Test is
-- Test Mat4x2
procedure Test_Dmat4x2 is
vec1 : Vkm_Dvec2 :=
Make_Dvec2(1.0, 2.0);
vec2 : Vkm_Dvec4 :=
Make_Dvec4(1.0, 2.0, 3.0, 4.0);
mat1 : Vkm_Dmat4x2 :=
Make_Dmat4x2;
mat2 : Vkm_Dmat4x2 :=
Make_Dmat4x2(0.0, 1.0,
2.0, 3.0,
4.0, 5.0,
6.0, 7.0);
mat3 : Vkm_Dmat4x2 :=
Make_Dmat4x2(vec1, - vec1, 2.0 * vec1, - 2.0 * vec1);
mat4 : Vkm_Dmat4x2 :=
Make_Dmat4x2(mat2);
mat5 : Vkm_Dmat2x2 :=
Make_Dmat2x2(5.0);
mat6 : Vkm_Dmat4x2 :=
Make_Dmat4x2(mat5);
mat7 : Vkm_Dmat3x4 :=
Make_Dmat3x4(mat5);
begin
Put_Line(LF & "Testing Mat4x2 Constructors...");
Put_Line("mat1 " & mat1.Image);
Assert_Dmat4x2_Equals(mat1, 0.0, 0.0,
0.0, 0.0,
0.0, 0.0,
0.0, 0.0);
Put_Line("mat2 " & mat2.Image);
Assert_Dmat4x2_Equals(mat2, 0.0, 1.0,
2.0, 3.0,
4.0, 5.0,
6.0, 7.0);
Put_Line("mat3 " & mat3.Image);
Assert_Dmat4x2_Equals(mat3, 1.0, 2.0,
-1.0, -2.0,
2.0, 4.0,
-2.0, -4.0);
Put_Line("mat4 " & mat4.Image);
Assert_Dmat4x2_Equals(mat4, 0.0, 1.0,
2.0, 3.0,
4.0, 5.0,
6.0, 7.0);
Put_Line("mat6 " & mat6.Image);
Assert_Dmat4x2_Equals(mat6, 5.0, 0.0,
0.0, 5.0,
0.0, 0.0,
0.0, 0.0);
Put_Line("Testing '=' operator...");
Put_Line(" mat2 != mat3");
Assert_Vkm_Bool_Equals(mat2 = mat3, False);
Put_Line(" mat4 != mat5");
Assert_Vkm_Bool_Equals(mat4 = mat5, False);
Put_Line(" mat4 = mat2");
Assert_Vkm_Bool_Equals(mat4 = mat2, True);
Put_Line(" Testing unary '+/-' operator");
Put_Line(" + mat4 = " & Image(+ mat4));
Assert_Dmat4x2_Equals(+mat4, 0.0, 1.0,
2.0, 3.0,
4.0, 5.0,
6.0, 7.0);
Put_Line(" - mat4 = " & Image(- mat4));
Assert_Dmat4x2_Equals(-mat4, -0.0, -1.0,
-2.0, -3.0,
-4.0, -5.0,
-6.0, -7.0);
Put_Line("+(- mat4) = " & Image(+(- mat4)));
Assert_Dmat4x2_Equals(-mat4, -0.0, -1.0,
-2.0, -3.0,
-4.0, -5.0,
-6.0, -7.0);
Put_Line("Testing 'abs' operator...");
Put_Line(" abs(- mat4) = " & Image(abs(-mat4)));
Assert_Dmat4x2_Equals(abs(-mat4), 0.0, 1.0,
2.0, 3.0,
4.0, 5.0,
6.0, 7.0);
Put_Line("Testing '+' operator...");
Put_Line(" mat4 + mat3 = " & Image(mat4 + mat3));
Assert_Dmat4x2_Equals(mat4 + mat3, 1.0, 3.0,
1.0, 1.0,
6.0, 9.0,
4.0, 3.0);
Put_Line("Testing '-' operator...");
Put_Line(" mat4 - mat3 = " & Image(mat4 -mat3));
Assert_Dmat4x2_Equals(mat4 - mat3, -1.0, -1.0,
3.0, 5.0,
2.0, 1.0,
8.0, 11.0);
Put_Line("Testing '*' operator...");
Put_Line(" mat4 * mat5 = " & Image(mat4 * mat5));
Assert_Dmat4x2_Equals(mat4 * mat5, 0.0, 5.0,
10.0, 15.0,
20.0, 25.0,
30.0, 35.0);
Put_Line(" mat7 * mat4 = " & Image(mat7 * mat4));
Assert_Dmat3x2_Equals(mat7 * mat4, 0.0, 5.0,
10.0, 15.0,
0.0, 0.0);
Put_Line(" mat4 * vec1 = " & Image(mat4 * vec1));
Assert_Dvec4_Equals(mat4 * vec1, 2.0 , 8.0 , 14.0, 20.0);
Put_Line(" vec2 * mat4 = " & Image(vec2 * mat4));
Assert_Dvec2_Equals(vec2 * mat4, 40.0 , 50.0 );
end Test_Dmat4x2;
end Vulkan.Math.Dmat4x2.Test;
|
------------------------------------------------------------------------------
-- --
-- GNAT ncurses Binding --
-- --
-- Terminal_Interface.Curses.Text_IO.Enumeration_IO --
-- --
-- S P E C --
-- --
------------------------------------------------------------------------------
-- Copyright (c) 1998 Free Software Foundation, Inc. --
-- --
-- Permission is hereby granted, free of charge, to any person obtaining a --
-- copy of this software and associated documentation files (the --
-- "Software"), to deal in the Software without restriction, including --
-- without limitation the rights to use, copy, modify, merge, publish, --
-- distribute, distribute with modifications, sublicense, and/or sell --
-- copies of the Software, and to permit persons to whom the Software is --
-- furnished to do so, subject to the following conditions: --
-- --
-- The above copyright notice and this permission notice shall be included --
-- in all copies or substantial portions of the Software. --
-- --
-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS --
-- OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF --
-- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. --
-- IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, --
-- DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR --
-- OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR --
-- THE USE OR OTHER DEALINGS IN THE SOFTWARE. --
-- --
-- Except as contained in this notice, the name(s) of the above copyright --
-- holders shall not be used in advertising or otherwise to promote the --
-- sale, use or other dealings in this Software without prior written --
-- authorization. --
------------------------------------------------------------------------------
-- Author: Juergen Pfeifer <Juergen.Pfeifer@T-Online.de> 1996
-- Version Control:
-- $Revision: 1.7 $
-- Binding Version 00.93
------------------------------------------------------------------------------
generic
type Enum is (<>);
package Terminal_Interface.Curses.Text_IO.Enumeration_IO is
Default_Width : Field := 0;
Default_Setting : Type_Set := Mixed_Case;
procedure Put
(Win : in Window;
Item : in Enum;
Width : in Field := Default_Width;
Set : in Type_Set := Default_Setting);
procedure Put
(Item : in Enum;
Width : in Field := Default_Width;
Set : in Type_Set := Default_Setting);
private
pragma Inline (Put);
end Terminal_Interface.Curses.Text_IO.Enumeration_IO;
|
------------------------------------------------------------------------------
-- --
-- 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; use System;
pragma Warnings (Off, "* is an internal GNAT unit");
with System.BB.Parameters;
pragma Warnings (On, "* is an internal GNAT unit");
with STM32_SVD.RCC; use STM32_SVD.RCC;
package body STM32.Device is
HSE_VALUE : constant UInt32 :=
UInt32 (System.BB.Parameters.HSE_Clock);
-- External oscillator in Hz
HSI_VALUE : constant := 16_000_000;
-- Internal oscillator in Hz
HPRE_Presc_Table : constant array (UInt4) of UInt32 :=
(1, 1, 1, 1, 1, 1, 1, 1, 2, 4, 8, 16, 64, 128, 256, 512);
PPRE_Presc_Table : constant array (UInt3) of UInt32 :=
(1, 1, 1, 1, 2, 4, 8, 16);
------------------
-- Enable_Clock --
------------------
procedure Enable_Clock (This : aliased in out GPIO_Port) is
begin
if This'Address = GPIOA_Base then
RCC_Periph.AHB1ENR.GPIOAEN := True;
elsif This'Address = GPIOB_Base then
RCC_Periph.AHB1ENR.GPIOBEN := True;
elsif This'Address = GPIOC_Base then
RCC_Periph.AHB1ENR.GPIOCEN := True;
elsif This'Address = GPIOD_Base then
RCC_Periph.AHB1ENR.GPIODEN := True;
elsif This'Address = GPIOE_Base then
RCC_Periph.AHB1ENR.GPIOEEN := True;
elsif This'Address = GPIOF_Base then
RCC_Periph.AHB1ENR.GPIOFEN := True;
elsif This'Address = GPIOG_Base then
RCC_Periph.AHB1ENR.GPIOGEN := True;
elsif This'Address = GPIOH_Base then
RCC_Periph.AHB1ENR.GPIOHEN := True;
elsif This'Address = GPIOI_Base then
RCC_Periph.AHB1ENR.GPIOIEN := True;
elsif This'Address = GPIOJ_Base then
RCC_Periph.AHB1ENR.GPIOJEN := True;
elsif This'Address = GPIOK_Base then
RCC_Periph.AHB1ENR.GPIOKEN := True;
else
raise Unknown_Device;
end if;
end Enable_Clock;
------------------
-- Enable_Clock --
------------------
procedure Enable_Clock (Point : GPIO_Point)
is
begin
Enable_Clock (Point.Periph.all);
end Enable_Clock;
------------------
-- Enable_Clock --
------------------
procedure Enable_Clock (Points : GPIO_Points)
is
begin
for Point of Points loop
Enable_Clock (Point.Periph.all);
end loop;
end Enable_Clock;
-----------
-- Reset --
-----------
procedure Reset (This : aliased in out GPIO_Port) is
begin
if This'Address = GPIOA_Base then
RCC_Periph.AHB1RSTR.GPIOARST := True;
RCC_Periph.AHB1RSTR.GPIOARST := False;
elsif This'Address = GPIOB_Base then
RCC_Periph.AHB1RSTR.GPIOBRST := True;
RCC_Periph.AHB1RSTR.GPIOBRST := False;
elsif This'Address = GPIOC_Base then
RCC_Periph.AHB1RSTR.GPIOCRST := True;
RCC_Periph.AHB1RSTR.GPIOCRST := False;
elsif This'Address = GPIOD_Base then
RCC_Periph.AHB1RSTR.GPIODRST := True;
RCC_Periph.AHB1RSTR.GPIODRST := False;
elsif This'Address = GPIOE_Base then
RCC_Periph.AHB1RSTR.GPIOERST := True;
RCC_Periph.AHB1RSTR.GPIOERST := False;
elsif This'Address = GPIOF_Base then
RCC_Periph.AHB1RSTR.GPIOFRST := True;
RCC_Periph.AHB1RSTR.GPIOFRST := False;
elsif This'Address = GPIOG_Base then
RCC_Periph.AHB1RSTR.GPIOGRST := True;
RCC_Periph.AHB1RSTR.GPIOGRST := False;
elsif This'Address = GPIOH_Base then
RCC_Periph.AHB1RSTR.GPIOHRST := True;
RCC_Periph.AHB1RSTR.GPIOHRST := False;
elsif This'Address = GPIOI_Base then
RCC_Periph.AHB1RSTR.GPIOIRST := True;
RCC_Periph.AHB1RSTR.GPIOIRST := False;
elsif This'Address = GPIOJ_Base then
RCC_Periph.AHB1RSTR.GPIOJRST := True;
RCC_Periph.AHB1RSTR.GPIOJRST := False;
elsif This'Address = GPIOK_Base then
RCC_Periph.AHB1RSTR.GPIOKRST := True;
RCC_Periph.AHB1RSTR.GPIOKRST := False;
else
raise Unknown_Device;
end if;
end Reset;
-----------
-- Reset --
-----------
procedure Reset (Point : GPIO_Point) is
begin
Reset (Point.Periph.all);
end Reset;
-----------
-- Reset --
-----------
procedure Reset (Points : GPIO_Points)
is
Do_Reset : Boolean;
begin
for J in Points'Range loop
Do_Reset := True;
for K in Points'First .. J - 1 loop
if Points (K).Periph = Points (J).Periph then
Do_Reset := False;
exit;
end if;
end loop;
if Do_Reset then
Reset (Points (J).Periph.all);
end if;
end loop;
end Reset;
------------------------------
-- GPIO_Port_Representation --
------------------------------
function GPIO_Port_Representation (Port : GPIO_Port) return UInt4 is
begin
-- TODO: rather ugly to have this board-specific range here
if Port'Address = GPIOA_Base then
return 0;
elsif Port'Address = GPIOB_Base then
return 1;
elsif Port'Address = GPIOC_Base then
return 2;
elsif Port'Address = GPIOD_Base then
return 3;
elsif Port'Address = GPIOE_Base then
return 4;
elsif Port'Address = GPIOF_Base then
return 5;
elsif Port'Address = GPIOG_Base then
return 6;
elsif Port'Address = GPIOH_Base then
return 7;
elsif Port'Address = GPIOI_Base then
return 8;
elsif Port'Address = GPIOJ_Base then
return 9;
elsif Port'Address = GPIOK_Base then
return 10;
else
raise Program_Error;
end if;
end GPIO_Port_Representation;
------------------
-- Enable_Clock --
------------------
procedure Enable_Clock (This : aliased in out Analog_To_Digital_Converter)
is
begin
if This'Address = ADC1_Base then
RCC_Periph.APB2ENR.ADC1EN := True;
elsif This'Address = ADC2_Base then
RCC_Periph.APB2ENR.ADC2EN := True;
elsif This'Address = ADC3_Base then
RCC_Periph.APB2ENR.ADC3EN := True;
else
raise Unknown_Device;
end if;
end Enable_Clock;
-------------------------
-- Reset_All_ADC_Units --
-------------------------
procedure Reset_All_ADC_Units is
begin
RCC_Periph.APB2RSTR.ADCRST := True;
RCC_Periph.APB2RSTR.ADCRST := False;
end Reset_All_ADC_Units;
------------------
-- Enable_Clock --
------------------
procedure Enable_Clock (This : aliased in out Digital_To_Analog_Converter)
is
pragma Unreferenced (This);
begin
RCC_Periph.APB1ENR.DACEN := True;
end Enable_Clock;
-----------
-- Reset --
-----------
procedure Reset (This : aliased in out Digital_To_Analog_Converter) is
pragma Unreferenced (This);
begin
RCC_Periph.APB1RSTR.DACRST := True;
RCC_Periph.APB1RSTR.DACRST := False;
end Reset;
------------------
-- Enable_Clock --
------------------
procedure Enable_Clock (This : aliased in out USART) is
begin
if This.Periph.all'Address = USART1_Base then
RCC_Periph.APB2ENR.USART1EN := True;
elsif This.Periph.all'Address = USART2_Base then
RCC_Periph.APB1ENR.USART2EN := True;
elsif This.Periph.all'Address = USART3_Base then
RCC_Periph.APB1ENR.USART3EN := True;
elsif This.Periph.all'Address = UART4_Base then
RCC_Periph.APB1ENR.UART4EN := True;
elsif This.Periph.all'Address = UART5_Base then
RCC_Periph.APB1ENR.UART5EN := True;
elsif This.Periph.all'Address = USART6_Base then
RCC_Periph.APB2ENR.USART6EN := True;
elsif This.Periph.all'Address = UART7_Base then
RCC_Periph.APB1ENR.UART7ENR := True;
elsif This.Periph.all'Address = UART8_Base then
RCC_Periph.APB1ENR.UART8ENR := True;
else
raise Unknown_Device;
end if;
end Enable_Clock;
-----------
-- Reset --
-----------
procedure Reset (This : aliased in out USART) is
begin
if This.Periph.all'Address = USART1_Base then
RCC_Periph.APB2RSTR.USART1RST := True;
RCC_Periph.APB2RSTR.USART1RST := False;
elsif This.Periph.all'Address = USART2_Base then
RCC_Periph.APB1RSTR.UART2RST := True;
RCC_Periph.APB1RSTR.UART2RST := False;
elsif This.Periph.all'Address = USART3_Base then
RCC_Periph.APB1RSTR.UART3RST := True;
RCC_Periph.APB1RSTR.UART3RST := False;
elsif This.Periph.all'Address = UART4_Base then
RCC_Periph.APB1RSTR.UART4RST := True;
RCC_Periph.APB1RSTR.UART4RST := False;
elsif This.Periph.all'Address = UART5_Base then
RCC_Periph.APB1RSTR.UART5RST := True;
RCC_Periph.APB1RSTR.UART5RST := False;
elsif This.Periph.all'Address = USART6_Base then
RCC_Periph.APB2RSTR.USART6RST := True;
RCC_Periph.APB2RSTR.USART6RST := False;
elsif This.Periph.all'Address = UART7_Base then
RCC_Periph.APB1RSTR.UART7RST := True;
RCC_Periph.APB1RSTR.UART7RST := False;
elsif This.Periph.all'Address = UART8_Base then
RCC_Periph.APB1RSTR.UART8RST := True;
RCC_Periph.APB1RSTR.UART8RST := False;
else
raise Unknown_Device;
end if;
end Reset;
------------------
-- Enable_Clock --
------------------
procedure Enable_Clock (This : aliased in out DMA_Controller) is
begin
if This'Address = STM32_SVD.DMA1_Base then
RCC_Periph.AHB1ENR.DMA1EN := True;
elsif This'Address = STM32_SVD.DMA2_Base then
RCC_Periph.AHB1ENR.DMA2EN := True;
else
raise Unknown_Device;
end if;
end Enable_Clock;
-----------
-- Reset --
-----------
procedure Reset (This : aliased in out DMA_Controller) is
begin
if This'Address = STM32_SVD.DMA1_Base then
RCC_Periph.AHB1RSTR.DMA1RST := True;
RCC_Periph.AHB1RSTR.DMA1RST := False;
elsif This'Address = STM32_SVD.DMA2_Base then
RCC_Periph.AHB1RSTR.DMA2RST := True;
RCC_Periph.AHB1RSTR.DMA2RST := False;
else
raise Unknown_Device;
end if;
end Reset;
----------------
-- As_Port_Id --
----------------
function As_Port_Id (Port : I2C_Port) return I2C_Port_Id is
begin
if Port.Periph.all'Address = I2C1_Base then
return I2C_Id_1;
elsif Port.Periph.all'Address = I2C2_Base then
return I2C_Id_2;
elsif Port.Periph.all'Address = I2C3_Base then
return I2C_Id_3;
else
raise Unknown_Device;
end if;
end As_Port_Id;
------------------
-- Enable_Clock --
------------------
procedure Enable_Clock (This : I2C_Port) is
begin
Enable_Clock (As_Port_Id (This));
end Enable_Clock;
------------------
-- Enable_Clock --
------------------
procedure Enable_Clock (This : I2C_Port_Id) is
begin
case This is
when I2C_Id_1 =>
RCC_Periph.APB1ENR.I2C1EN := True;
when I2C_Id_2 =>
RCC_Periph.APB1ENR.I2C2EN := True;
when I2C_Id_3 =>
RCC_Periph.APB1ENR.I2C3EN := True;
end case;
end Enable_Clock;
-----------
-- Reset --
-----------
procedure Reset (This : I2C_Port) is
begin
Reset (As_Port_Id (This));
end Reset;
-----------
-- Reset --
-----------
procedure Reset (This : I2C_Port_Id) is
begin
case This is
when I2C_Id_1 =>
RCC_Periph.APB1RSTR.I2C1RST := True;
RCC_Periph.APB1RSTR.I2C1RST := False;
when I2C_Id_2 =>
RCC_Periph.APB1RSTR.I2C2RST := True;
RCC_Periph.APB1RSTR.I2C2RST := False;
when I2C_Id_3 =>
RCC_Periph.APB1RSTR.I2C3RST := True;
RCC_Periph.APB1RSTR.I2C3RST := False;
end case;
end Reset;
------------------
-- Enable_Clock --
------------------
procedure Enable_Clock (This : SPI_Port) is
begin
if This.Periph.all'Address = SPI1_Base then
RCC_Periph.APB2ENR.SPI1EN := True;
elsif This.Periph.all'Address = SPI2_Base then
RCC_Periph.APB1ENR.SPI2EN := True;
elsif This.Periph.all'Address = SPI3_Base then
RCC_Periph.APB1ENR.SPI3EN := True;
elsif This.Periph.all'Address = SPI4_Base then
RCC_Periph.APB2ENR.SPI4ENR := True;
elsif This.Periph.all'Address = SPI5_Base then
RCC_Periph.APB2ENR.SPI5ENR := True;
elsif This.Periph.all'Address = SPI6_Base then
RCC_Periph.APB2ENR.SPI6ENR := True;
else
raise Unknown_Device;
end if;
end Enable_Clock;
-----------
-- Reset --
-----------
procedure Reset (This : SPI_Port) is
begin
if This.Periph.all'Address = SPI1_Base then
RCC_Periph.APB2RSTR.SPI1RST := True;
RCC_Periph.APB2RSTR.SPI1RST := False;
elsif This.Periph.all'Address = SPI2_Base then
RCC_Periph.APB1RSTR.SPI2RST := True;
RCC_Periph.APB1RSTR.SPI2RST := False;
elsif This.Periph.all'Address = SPI3_Base then
RCC_Periph.APB1RSTR.SPI3RST := True;
RCC_Periph.APB1RSTR.SPI3RST := False;
elsif This.Periph.all'Address = SPI4_Base then
RCC_Periph.APB2RSTR.SPI4RST := True;
RCC_Periph.APB2RSTR.SPI4RST := False;
elsif This.Periph.all'Address = SPI5_Base then
RCC_Periph.APB2RSTR.SPI5RST := True;
RCC_Periph.APB2RSTR.SPI5RST := False;
elsif This.Periph.all'Address = SPI6_Base then
RCC_Periph.APB2RSTR.SPI6RST := True;
RCC_Periph.APB2RSTR.SPI6RST := False;
else
raise Unknown_Device;
end if;
end Reset;
------------------
-- Enable_Clock --
------------------
procedure Enable_Clock (This : I2S_Port) is
begin
if This.Periph.all'Address = SPI1_Base then
RCC_Periph.APB2ENR.SPI1EN := True;
elsif This.Periph.all'Address = SPI2_Base then
RCC_Periph.APB1ENR.SPI2EN := True;
elsif This.Periph.all'Address = SPI3_Base then
RCC_Periph.APB1ENR.SPI3EN := True;
elsif This.Periph.all'Address = SPI4_Base then
RCC_Periph.APB2ENR.SPI5ENR := True;
elsif This.Periph.all'Address = SPI5_Base then
RCC_Periph.APB2ENR.SPI5ENR := True;
elsif This.Periph.all'Address = SPI6_Base then
RCC_Periph.APB2ENR.SPI6ENR := True;
else
raise Unknown_Device;
end if;
end Enable_Clock;
-----------
-- Reset --
-----------
procedure Reset (This : in out I2S_Port) is
begin
if This.Periph.all'Address = SPI1_Base then
RCC_Periph.APB2RSTR.SPI1RST := True;
RCC_Periph.APB2RSTR.SPI1RST := False;
elsif This.Periph.all'Address = SPI2_Base then
RCC_Periph.APB1RSTR.SPI2RST := True;
RCC_Periph.APB1RSTR.SPI2RST := False;
elsif This.Periph.all'Address = SPI3_Base then
RCC_Periph.APB1RSTR.SPI3RST := True;
RCC_Periph.APB1RSTR.SPI3RST := False;
elsif This.Periph.all'Address = SPI4_Base then
RCC_Periph.APB2RSTR.SPI4RST := True;
RCC_Periph.APB2RSTR.SPI4RST := False;
elsif This.Periph.all'Address = SPI5_Base then
RCC_Periph.APB2RSTR.SPI5RST := True;
RCC_Periph.APB2RSTR.SPI5RST := False;
elsif This.Periph.all'Address = SPI6_Base then
RCC_Periph.APB2RSTR.SPI6RST := True;
RCC_Periph.APB2RSTR.SPI6RST := False;
else
raise Unknown_Device;
end if;
end Reset;
------------------
-- Enable_Clock --
------------------
procedure Enable_Clock (This : in out Timer) is
begin
if This'Address = TIM1_Base then
RCC_Periph.APB2ENR.TIM1EN := True;
elsif This'Address = TIM2_Base then
RCC_Periph.APB1ENR.TIM2EN := True;
elsif This'Address = TIM3_Base then
RCC_Periph.APB1ENR.TIM3EN := True;
elsif This'Address = TIM4_Base then
RCC_Periph.APB1ENR.TIM4EN := True;
elsif This'Address = TIM5_Base then
RCC_Periph.APB1ENR.TIM5EN := True;
elsif This'Address = TIM6_Base then
RCC_Periph.APB1ENR.TIM6EN := True;
elsif This'Address = TIM7_Base then
RCC_Periph.APB1ENR.TIM7EN := True;
elsif This'Address = TIM8_Base then
RCC_Periph.APB2ENR.TIM8EN := True;
elsif This'Address = TIM9_Base then
RCC_Periph.APB2ENR.TIM9EN := True;
elsif This'Address = TIM10_Base then
RCC_Periph.APB2ENR.TIM10EN := True;
elsif This'Address = TIM11_Base then
RCC_Periph.APB2ENR.TIM11EN := True;
elsif This'Address = TIM12_Base then
RCC_Periph.APB1ENR.TIM12EN := True;
elsif This'Address = TIM13_Base then
RCC_Periph.APB1ENR.TIM13EN := True;
elsif This'Address = TIM14_Base then
RCC_Periph.APB1ENR.TIM14EN := True;
else
raise Unknown_Device;
end if;
end Enable_Clock;
-----------
-- Reset --
-----------
procedure Reset (This : in out Timer) is
begin
if This'Address = TIM1_Base then
RCC_Periph.APB2RSTR.TIM1RST := True;
RCC_Periph.APB2RSTR.TIM1RST := False;
elsif This'Address = TIM2_Base then
RCC_Periph.APB1RSTR.TIM2RST := True;
RCC_Periph.APB1RSTR.TIM2RST := False;
elsif This'Address = TIM3_Base then
RCC_Periph.APB1RSTR.TIM3RST := True;
RCC_Periph.APB1RSTR.TIM3RST := False;
elsif This'Address = TIM4_Base then
RCC_Periph.APB1RSTR.TIM4RST := True;
RCC_Periph.APB1RSTR.TIM4RST := False;
elsif This'Address = TIM5_Base then
RCC_Periph.APB1RSTR.TIM5RST := True;
RCC_Periph.APB1RSTR.TIM5RST := False;
elsif This'Address = TIM6_Base then
RCC_Periph.APB1RSTR.TIM6RST := True;
RCC_Periph.APB1RSTR.TIM6RST := False;
elsif This'Address = TIM7_Base then
RCC_Periph.APB1RSTR.TIM7RST := True;
RCC_Periph.APB1RSTR.TIM7RST := False;
elsif This'Address = TIM8_Base then
RCC_Periph.APB2RSTR.TIM8RST := True;
RCC_Periph.APB2RSTR.TIM8RST := False;
elsif This'Address = TIM9_Base then
RCC_Periph.APB2RSTR.TIM9RST := True;
RCC_Periph.APB2RSTR.TIM9RST := False;
elsif This'Address = TIM10_Base then
RCC_Periph.APB2RSTR.TIM10RST := True;
RCC_Periph.APB2RSTR.TIM10RST := False;
elsif This'Address = TIM11_Base then
RCC_Periph.APB2RSTR.TIM11RST := True;
RCC_Periph.APB2RSTR.TIM11RST := False;
elsif This'Address = TIM12_Base then
RCC_Periph.APB1RSTR.TIM12RST := True;
RCC_Periph.APB1RSTR.TIM12RST := False;
elsif This'Address = TIM13_Base then
RCC_Periph.APB1RSTR.TIM13RST := True;
RCC_Periph.APB1RSTR.TIM13RST := False;
elsif This'Address = TIM14_Base then
RCC_Periph.APB1RSTR.TIM14RST := True;
RCC_Periph.APB1RSTR.TIM14RST := False;
else
raise Unknown_Device;
end if;
end Reset;
------------------------------
-- System_Clock_Frequencies --
------------------------------
function System_Clock_Frequencies return RCC_System_Clocks
is
Source : constant UInt2 := RCC_Periph.CFGR.SWS;
Result : RCC_System_Clocks;
begin
Result.I2SCLK := 0;
case Source is
when 0 =>
-- HSI as source
Result.SYSCLK := HSI_VALUE;
when 1 =>
-- HSE as source
Result.SYSCLK := HSE_VALUE;
when 2 =>
-- PLL as source
declare
HSE_Source : constant Boolean := RCC_Periph.PLLCFGR.PLLSRC;
Pllm : constant UInt32 :=
UInt32 (RCC_Periph.PLLCFGR.PLLM);
Plln : constant UInt32 :=
UInt32 (RCC_Periph.PLLCFGR.PLLN);
Pllp : constant UInt32 :=
(UInt32 (RCC_Periph.PLLCFGR.PLLP) + 1) * 2;
Pllvco : UInt32;
begin
if not HSE_Source then
Pllvco := HSI_VALUE;
else
Pllvco := HSE_VALUE;
end if;
Pllvco := Pllvco / Pllm;
Result.I2SCLK := Pllvco;
Pllvco := Pllvco * Plln;
Result.SYSCLK := Pllvco / Pllp;
end;
when others =>
Result.SYSCLK := HSI_VALUE;
end case;
declare
HPRE : constant UInt4 := RCC_Periph.CFGR.HPRE;
PPRE1 : constant UInt3 := RCC_Periph.CFGR.PPRE.Arr (1);
PPRE2 : constant UInt3 := RCC_Periph.CFGR.PPRE.Arr (2);
begin
Result.HCLK := Result.SYSCLK / HPRE_Presc_Table (HPRE);
Result.PCLK1 := Result.HCLK / PPRE_Presc_Table (PPRE1);
Result.PCLK2 := Result.HCLK / PPRE_Presc_Table (PPRE2);
-- Timer clocks
-- See Dedicated clock cfg register documentation.
if not RCC_Periph.DCKCFGR.TIMPRE then
-- Mode 0:
-- If the APB prescaler (PPRE1, PPRE2 in the RCC_CFGR register)
-- is configured to a division factor of 1, TIMxCLK = PCLKx.
-- Otherwise, the timer clock frequencies are set to twice to the
-- frequency of the APB domain to which the timers are connected :
-- TIMxCLK = 2xPCLKx.
if PPRE_Presc_Table (PPRE1) = 1 then
Result.TIMCLK1 := Result.PCLK1;
else
Result.TIMCLK1 := Result.PCLK1 * 2;
end if;
if PPRE_Presc_Table (PPRE2) = 1 then
Result.TIMCLK2 := Result.PCLK2;
else
Result.TIMCLK2 := Result.PCLK2 * 2;
end if;
else
-- Mpde 1:
-- If the APB prescaler (PPRE1, PPRE2 in the RCC_CFGR register) is
-- configured to a division factor of 1, 2 or 4, TIMxCLK = HCLK.
-- Otherwise, the timer clock frequencies are set to four times
-- to the frequency of the APB domain to which the timers are
-- connected : TIMxCLK = 4xPCLKx.
if PPRE_Presc_Table (PPRE1) in 1 .. 4 then
Result.TIMCLK1 := Result.HCLK;
else
Result.TIMCLK1 := Result.PCLK1 * 4;
end if;
if PPRE_Presc_Table (PPRE2) in 1 .. 4 then
Result.TIMCLK2 := Result.HCLK;
else
Result.TIMCLK2 := Result.PCLK1 * 4;
end if;
end if;
end;
-- I2S Clock --
if RCC_Periph.CFGR.I2SSRC then
-- External clock source
Result.I2SCLK := 0;
raise Program_Error with "External I2S clock value is unknown";
else
-- Pll clock source
declare
Plli2sn : constant UInt32 :=
UInt32 (RCC_Periph.PLLI2SCFGR.PLLI2SN);
Plli2sr : constant UInt32
:= UInt32 (RCC_Periph.PLLI2SCFGR.PLLI2SR);
begin
Result.I2SCLK := (Result.I2SCLK * Plli2sn) / Plli2sr;
end;
end if;
return Result;
end System_Clock_Frequencies;
--------------------
-- PLLI2S_Enabled --
--------------------
function PLLI2S_Enabled return Boolean is
(RCC_Periph.CR.PLLI2SRDY);
------------------------
-- Set_PLLI2S_Factors --
------------------------
procedure Set_PLLI2S_Factors (Pll_N : UInt9;
Pll_R : UInt3)
is
begin
RCC_Periph.PLLI2SCFGR.PLLI2SN := Pll_N;
RCC_Periph.PLLI2SCFGR.PLLI2SR := Pll_R;
end Set_PLLI2S_Factors;
-------------------
-- Enable_PLLI2S --
-------------------
procedure Enable_PLLI2S is
begin
RCC_Periph.CR.PLLI2SON := True;
loop
exit when PLLI2S_Enabled;
end loop;
end Enable_PLLI2S;
--------------------
-- Disable_PLLI2S --
--------------------
procedure Disable_PLLI2S is
begin
RCC_Periph.CR.PLLI2SON := False;
loop
exit when not PLLI2S_Enabled;
end loop;
end Disable_PLLI2S;
------------------
-- PLLSAI_Ready --
------------------
function PLLSAI_Ready return Boolean is
begin
-- SHould be PLLSAIRDY, but not binded by the SVD file
-- PLLSAIRDY: bit 29
return (RCC_Periph.CR.Reserved_28_31 and 2) /= 0;
end PLLSAI_Ready;
-------------------
-- Enable_PLLSAI --
-------------------
procedure Enable_PLLSAI is
begin
-- Should be PLLSAION, but not binded by the SVD file
-- PLLSAION: bit 28
RCC_Periph.CR.Reserved_28_31 :=
RCC_Periph.CR.Reserved_28_31 or 1;
-- Wait for PLLSAI activation
loop
exit when PLLSAI_Ready;
end loop;
end Enable_PLLSAI;
-------------------
-- Enable_PLLSAI --
-------------------
procedure Disable_PLLSAI is
begin
-- Should be PLLSAION, but not binded by the SVD file
-- PLLSAION: bit 28
RCC_Periph.CR.Reserved_28_31 :=
RCC_Periph.CR.Reserved_28_31 and not 1;
end Disable_PLLSAI;
------------------------
-- Set_PLLSAI_Factors --
------------------------
procedure Set_PLLSAI_Factors (LCD : UInt3;
VCO : UInt9;
DivR : PLLSAI_DivR)
is
PLLSAICFGR : PLLSAICFGR_Register;
begin
PLLSAICFGR.PLLSAIR := LCD;
PLLSAICFGR.PLLSAIN := VCO;
RCC_Periph.PLLSAICFGR := PLLSAICFGR;
-- The exact bit name is device-specific
RCC_Periph.DCKCFGR.PLLSAIDIVR := UInt2 (DivR);
end Set_PLLSAI_Factors;
-----------------------
-- Enable_DCMI_Clock --
-----------------------
procedure Enable_DCMI_Clock is
begin
RCC_Periph.AHB2ENR.DCMIEN := True;
end Enable_DCMI_Clock;
----------------
-- Reset_DCMI --
----------------
procedure Reset_DCMI is
begin
RCC_Periph.AHB2RSTR.DCMIRST := True;
RCC_Periph.AHB2RSTR.DCMIRST := False;
end Reset_DCMI;
------------------
-- Enable_Clock --
------------------
procedure Enable_Clock (This : in out CRC_32) is
pragma Unreferenced (This);
begin
RCC_Periph.AHB1ENR.CRCEN := True;
end Enable_Clock;
-------------------
-- Disable_Clock --
-------------------
procedure Disable_Clock (This : in out CRC_32) is
pragma Unreferenced (This);
begin
RCC_Periph.AHB1ENR.CRCEN := False;
end Disable_Clock;
-----------
-- Reset --
-----------
procedure Reset (This : in out CRC_32) is
pragma Unreferenced (This);
begin
RCC_Periph.AHB1RSTR.CRCRST := True;
RCC_Periph.AHB1RSTR.CRCRST := False;
end Reset;
end STM32.Device;
|
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- A D A . S Y N C H R O N O U S _ T A S K _ C O N T R O L --
-- --
-- S p e c --
-- --
-- Copyright (C) 1992-2005, Free Software Foundation, Inc. --
-- --
-- This specification is derived from the Ada Reference Manual for use with --
-- GNAT. The copyright notice above, and the license provisions that follow --
-- apply solely to the contents of the part following the private keyword. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 2, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
-- for more details. You should have received a copy of the GNU General --
-- Public License distributed with GNAT; see file COPYING. If not, write --
-- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, --
-- Boston, MA 02110-1301, USA. --
-- --
--
--
--
--
--
--
--
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
with System.Task_Primitives;
-- Used for Suspension_Object
with Ada.Finalization;
-- Used for Limited_Controlled
package Ada.Synchronous_Task_Control is
pragma Preelaborate_05;
-- In accordance with Ada 2005 AI-362
type Suspension_Object is limited private;
procedure Set_True (S : in out Suspension_Object);
procedure Set_False (S : in out Suspension_Object);
function Current_State (S : Suspension_Object) return Boolean;
procedure Suspend_Until_True (S : in out Suspension_Object);
private
procedure Initialize (S : in out Suspension_Object);
-- Initialization for Suspension_Object
procedure Finalize (S : in out Suspension_Object);
-- Finalization for Suspension_Object
type Suspension_Object is
new Ada.Finalization.Limited_Controlled with
record
SO : System.Task_Primitives.Suspension_Object;
-- Use low-level suspension objects so that the synchronization
-- functionality provided by this object can be achieved using
-- efficient operating system primitives.
end record;
pragma Inline (Set_True);
pragma Inline (Set_False);
pragma Inline (Current_State);
pragma Inline (Suspend_Until_True);
pragma Inline (Initialize);
pragma Inline (Finalize);
end Ada.Synchronous_Task_Control;
|
pragma Ada_2012;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
package stddef_h is
-- Copyright (C) 1989-2019 Free Software Foundation, Inc.
--This file is part of GCC.
--GCC is free software; you can redistribute it and/or modify
--it under the terms of the GNU General Public License as published by
--the Free Software Foundation; either version 3, or (at your option)
--any later version.
--GCC 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.
--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/>.
-- * ISO C Standard: 7.17 Common definitions <stddef.h>
--
-- Any one of these symbols __need_* means that GNU libc
-- wants us just to define one data type. So don't define
-- the symbols that indicate this file's entire job has been done.
-- snaroff@next.com says the NeXT needs this.
-- This avoids lossage on SunOS but only if stdtypes.h comes first.
-- There's no way to win with the other order! Sun lossage.
-- On BSD/386 1.1, at least, machine/ansi.h defines _BSD_WCHAR_T_
-- instead of _WCHAR_T_.
-- Undef _FOO_T_ if we are supposed to define foo_t.
-- Sequent's header files use _PTRDIFF_T_ in some conflicting way.
-- Just ignore it.
-- On VxWorks, <type/vxTypesBase.h> may have defined macros like
-- _TYPE_size_t which will typedef size_t. fixincludes patched the
-- vxTypesBase.h so that this macro is only defined if _GCC_SIZE_T is
-- not defined, and so that defining this macro defines _GCC_SIZE_T.
-- If we find that the macros are still defined at this point, we must
-- invoke them so that the type is defined as expected.
-- In case nobody has defined these types, but we aren't running under
-- GCC 2.00, make sure that __PTRDIFF_TYPE__, __SIZE_TYPE__, and
-- __WCHAR_TYPE__ have reasonable values. This can happen if the
-- parts of GCC is compiled by an older compiler, that actually
-- include gstddef.h, such as collect2.
-- Signed type of difference of two pointers.
-- Define this type if we are doing the whole job,
-- or if we want this type in particular.
-- If this symbol has done its job, get rid of it.
-- Unsigned type of `sizeof' something.
-- Define this type if we are doing the whole job,
-- or if we want this type in particular.
-- __size_t is a typedef, must not trash it.
subtype size_t is unsigned_long; -- /home/doc/opt/GNAT/2020/lib/gcc/x86_64-pc-linux-gnu/9.3.1/include/stddef.h:209
-- Wide character type.
-- Locale-writers should change this as necessary to
-- be big enough to hold unique values not between 0 and 127,
-- and not (wchar_t) -1, for each defined multibyte character.
-- Define this type if we are doing the whole job,
-- or if we want this type in particular.
-- On BSD/386 1.1, at least, machine/ansi.h defines _BSD_WCHAR_T_
-- instead of _WCHAR_T_, and _BSD_RUNE_T_ (which, unlike the other
-- symbols in the _FOO_T_ family, stays defined even after its
-- corresponding type is defined). If we define wchar_t, then we
-- must undef _WCHAR_T_; for BSD/386 1.1 (and perhaps others), if
-- we undef _WCHAR_T_, then we must also define rune_t, since
-- headers like runetype.h assume that if machine/ansi.h is included,
-- and _BSD_WCHAR_T_ is not defined, then rune_t is available.
-- machine/ansi.h says, "Note that _WCHAR_T_ and _RUNE_T_ must be of
-- the same type."
-- Why is this file so hard to maintain properly? In contrast to
-- the comment above regarding BSD/386 1.1, on FreeBSD for as long
-- as the symbol has existed, _BSD_RUNE_T_ must not stay defined or
-- redundant typedefs will occur when stdlib.h is included after this file.
-- FreeBSD 5 can't be handled well using "traditional" logic above
-- since it no longer defines _BSD_RUNE_T_ yet still desires to export
-- rune_t in some cases...
-- The references to _GCC_PTRDIFF_T_, _GCC_SIZE_T_, and _GCC_WCHAR_T_
-- are probably typos and should be removed before 2.8 is released.
-- The following ones are the real ones.
-- A null pointer constant.
-- Offset of member MEMBER in a struct of type TYPE.
-- Type whose alignment is supported in every context and is at least
-- as great as that of any standard type not using alignment
-- specifiers.
-- _Float128 is defined as a basic type, so max_align_t must be
-- sufficiently aligned for it. This code must work in C++, so we
-- use __float128 here; that is only available on some
-- architectures, but only on i386 is extra alignment needed for
-- __float128.
end stddef_h;
|
-- A54B02A.ADA
-- Grant of Unlimited Rights
--
-- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687,
-- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained
-- unlimited rights in the software and documentation contained herein.
-- Unlimited rights are defined in DFAR 252.227-7013(a)(19). By making
-- this public release, the Government intends to confer upon all
-- recipients unlimited rights equal to those held by the Government.
-- These rights include rights to use, duplicate, release or disclose the
-- released technical data and computer software in whole or in part, in
-- any manner and for any purpose whatsoever, and to have or permit others
-- to do so.
--
-- DISCLAIMER
--
-- ALL MATERIALS OR INFORMATION HEREIN RELEASED, MADE AVAILABLE OR
-- DISCLOSED ARE AS IS. THE GOVERNMENT MAKES NO EXPRESS OR IMPLIED
-- WARRANTY AS TO ANY MATTER WHATSOEVER, INCLUDING THE CONDITIONS OF THE
-- SOFTWARE, DOCUMENTATION OR OTHER INFORMATION RELEASED, MADE AVAILABLE
-- OR DISCLOSED, OR THE OWNERSHIP, MERCHANTABILITY, OR FITNESS FOR A
-- PARTICULAR PURPOSE OF SAID MATERIAL.
--*
-- CHECK THAT IF A CASE EXPRESSION IS A VARIABLE, CONSTANT, TYPE
-- CONVERSION, ATTRIBUTE (IN PARTICULAR 'FIRST AND 'LAST),
-- FUNCTION INVOCATION, QUALIFIED EXPRESSION, OR A PARENTHESIZED
-- EXPRESSION HAVING ONE OF THESE FORMS, AND THE SUBTYPE OF THE
-- EXPRESSION IS NON-STATIC, AN 'OTHERS' CAN BE OMITTED IF ALL
-- VALUES IN THE BASE TYPE'S RANGE ARE COVERED.
-- RM 01/27/80
-- SPS 10/26/82
-- SPS 2/2/83
-- PWN 11/30/94 SUBTYPE QUALIFIED LITERALS FOR ADA 9X.
WITH REPORT ;
PROCEDURE A54B02A IS
USE REPORT ;
BEGIN
TEST("A54B02A" , "CHECK THAT IF THE" &
" SUBTYPE OF A CASE EXPRESSION IS NON-STATIC," &
" AN 'OTHERS' CAN BE OMITTED IF ALL" &
" VALUES IN THE BASE TYPE'S RANGE ARE COVERED" );
-- THE TEST CASES APPEAR IN THE FOLLOWING ORDER:
--
-- (A) VARIABLES (INTEGER , BOOLEAN)
-- (B) CONSTANTS (INTEGER, BOOLEAN)
-- (C) ATTRIBUTES ('FIRST, 'LAST)
-- (D) FUNCTION CALLS
-- (E) QUALIFIED EXPRESSIONS
-- (F) TYPE CONVERSIONS
-- (G) PARENTHESIZED EXPRESSIONS OF THE ABOVE KINDS
DECLARE -- NON-STATIC RANGES
SUBTYPE STAT IS INTEGER RANGE 1..50 ;
SUBTYPE DYN IS STAT RANGE 1..IDENT_INT( 5 ) ;
I : STAT RANGE 1..IDENT_INT( 5 );
J : DYN ;
SUBTYPE DYNCHAR IS
CHARACTER RANGE ASCII.NUL .. IDENT_CHAR('Q');
SUBTYPE STATCHAR IS
DYNCHAR RANGE 'A' .. 'C' ;
CHAR: DYNCHAR := 'F' ;
TYPE ENUMERATION IS ( A,B,C,D,E,F,G,H,K,L,M,N );
SUBTYPE STATENUM IS
ENUMERATION RANGE A .. L ;
SUBTYPE DYNENUM IS
STATENUM RANGE A .. ENUMERATION'VAL(IDENT_INT(5));
ENUM: DYNENUM := B ;
CONS : CONSTANT DYN := 3;
FUNCTION FF RETURN DYN IS
BEGIN
RETURN 2 ;
END FF ;
BEGIN
I := IDENT_INT( 2 );
J := IDENT_INT( 2 );
CASE I IS
WHEN 1 | 3 | 5 => NULL ;
WHEN 2 | 4 => NULL ;
WHEN INTEGER'FIRST..0 | 6..INTEGER'LAST => NULL ;
END CASE;
CASE J IS
WHEN 1 | 3 | 5 => NULL ;
WHEN 2 | 4 => NULL ;
WHEN INTEGER'FIRST..0 | 6..INTEGER'LAST => NULL ;
END CASE;
CASE CONS IS
WHEN INTEGER'FIRST..INTEGER'LAST => NULL;
END CASE;
CASE DYN'FIRST IS
WHEN INTEGER'FIRST..0 => NULL;
WHEN 1..INTEGER'LAST => NULL;
END CASE;
CASE STATCHAR'LAST IS
WHEN CHARACTER'FIRST..'A' => NULL;
WHEN 'B'..CHARACTER'LAST => NULL;
END CASE;
CASE FF IS
WHEN 4..5 => NULL ;
WHEN INTEGER'FIRST..0 | 6..INTEGER'LAST => NULL ;
WHEN 1..3 => NULL ;
END CASE;
CASE DYN'( 2 ) IS
WHEN INTEGER'FIRST..0 | 6..INTEGER'LAST => NULL ;
WHEN 5 | 2..4 => NULL ;
WHEN 1 => NULL ;
END CASE;
CASE DYN( J ) IS
WHEN 5 | 2..4 => NULL ;
WHEN 1 => NULL ;
WHEN INTEGER'FIRST..0 | 6..INTEGER'LAST => NULL ;
END CASE;
CASE ( CHAR ) IS
WHEN ASCII.NUL .. 'P' => NULL ;
WHEN 'Q' => NULL ;
WHEN 'R' .. 'Y' => NULL ;
WHEN 'Z' .. CHARACTER'LAST => NULL ;
END CASE;
CASE ( ENUM ) IS
WHEN A | C | E => NULL ;
WHEN B | D => NULL ;
WHEN F .. L => NULL ;
WHEN M .. N => NULL ;
END CASE;
CASE ( FF ) IS
WHEN 1 | 3 | 5 => NULL ;
WHEN 2 | 4 => NULL ;
WHEN INTEGER'FIRST..0 | 6..INTEGER'LAST => NULL ;
END CASE;
CASE ( DYN'( I ) ) IS
WHEN 4..5 => NULL ;
WHEN 1..3 => NULL ;
WHEN INTEGER'FIRST..0 | 6..INTEGER'LAST => NULL ;
END CASE;
CASE ( DYN( 2 ) ) IS
WHEN 5 | 2..4 => NULL ;
WHEN 1 => NULL ;
WHEN INTEGER'FIRST..0 | 6..INTEGER'LAST => NULL ;
END CASE;
CASE (CONS) IS
WHEN 1..100 => NULL;
WHEN INTEGER'FIRST..0 => NULL;
WHEN 101..INTEGER'LAST => NULL;
END CASE;
CASE (DYNCHAR'LAST) IS
WHEN 'B'..'Y' => NULL;
WHEN CHARACTER'FIRST..'A' => NULL;
WHEN 'Z'..CHARACTER'LAST => NULL;
END CASE;
END;
RESULT ;
END A54B02A ;
|
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Element_Vectors;
with Program.Elements.Associations;
with Program.Elements.Identifiers;
with Program.Lexical_Elements;
with Program.Elements.Expressions;
package Program.Elements.Discriminant_Associations is
pragma Pure (Program.Elements.Discriminant_Associations);
type Discriminant_Association is
limited interface and Program.Elements.Associations.Association;
type Discriminant_Association_Access is
access all Discriminant_Association'Class with Storage_Size => 0;
not overriding function Selector_Names
(Self : Discriminant_Association)
return Program.Elements.Identifiers.Identifier_Vector_Access is abstract;
not overriding function Discriminant_Value
(Self : Discriminant_Association)
return not null Program.Elements.Expressions.Expression_Access
is abstract;
type Discriminant_Association_Text is limited interface;
type Discriminant_Association_Text_Access is
access all Discriminant_Association_Text'Class with Storage_Size => 0;
not overriding function To_Discriminant_Association_Text
(Self : in out Discriminant_Association)
return Discriminant_Association_Text_Access is abstract;
not overriding function Arrow_Token
(Self : Discriminant_Association_Text)
return Program.Lexical_Elements.Lexical_Element_Access is abstract;
type Discriminant_Association_Vector is
limited interface and Program.Element_Vectors.Element_Vector;
type Discriminant_Association_Vector_Access is
access all Discriminant_Association_Vector'Class with Storage_Size => 0;
overriding function Element
(Self : Discriminant_Association_Vector;
Index : Positive)
return not null Program.Elements.Element_Access is abstract
with Post'Class => Element'Result.Is_Discriminant_Association;
function To_Discriminant_Association
(Self : Discriminant_Association_Vector'Class;
Index : Positive)
return not null Discriminant_Association_Access
is (Self.Element (Index).To_Discriminant_Association);
end Program.Elements.Discriminant_Associations;
|
with AUnit.Assertions; use AUnit.Assertions;
package body Day.Test is
procedure Test_Part1 (T : in out AUnit.Test_Cases.Test_Case'Class) is
pragma Unreferenced (T);
acc : constant Integer := acc_before_repeat("test1.txt");
begin
Assert(acc = 5, "Wrong accumulator, expected 5, got " & Integer'IMAGE(acc));
end Test_Part1;
procedure Test_Part2 (T : in out AUnit.Test_Cases.Test_Case'Class) is
pragma Unreferenced (T);
acc : constant Integer := acc_after_terminate("test1.txt");
begin
Assert(acc = 8, "Wrong accumulator, expected 8, got " & Integer'IMAGE(acc));
end Test_Part2;
function Name (T : Test) return AUnit.Message_String is
pragma Unreferenced (T);
begin
return AUnit.Format ("Test Day package");
end Name;
procedure Register_Tests (T : in out Test) is
use AUnit.Test_Cases.Registration;
begin
Register_Routine (T, Test_Part1'Access, "Test Part 1");
Register_Routine (T, Test_Part2'Access, "Test Part 2");
end Register_Tests;
end Day.Test;
|
-- SPDX-FileCopyrightText: 2021 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Network.Addresses;
with Network.Streams;
package Network.Connections is
pragma Preelaborate;
type Connection is limited interface
and Network.Streams.Input_Stream
and Network.Streams.Output_Stream;
-- A network connection is a bidirectional stream
type Connection_Access is access all Connection'Class
with Storage_Size => 0;
not overriding function Remote (Self : Connection)
return Network.Addresses.Address is abstract;
-- An address of the connection remote side
type Listener is limited interface
and Network.Streams.Input_Listener
and Network.Streams.Output_Listener;
function Assigned (Self : access Listener'Class) return Boolean is
(Self /= null);
-- Check in Self is not null
type Listener_Access is access all Listener'Class with Storage_Size => 0;
procedure Set_Listener
(Self : in out Connection'Class;
Value : Listener_Access);
-- Assign a listener to the connection. Use this instead of
-- Set_Input_Listener/Set_Output_Listener.
end Network.Connections;
|
-<include_all_series_headers>-
with Ada.Unchecked_Conversion;
package body -<full_series_name_dots>-.factory is
procedure PutObject (Object : in Avtas.Lmcp.Object.Object_Any; Buffer : in out ByteBuffer);
function PackMessage (RootObject : in Avtas.Lmcp.Object.Object_Any; EnableChecksum : in Boolean) return ByteBuffer is
-- Allocate space for message, with 15 extra bytes for
-- Existence (1 byte), series name (8 bytes), type (4 bytes), version number (2 bytes)
MsgSize : constant UInt32 := RootObject.CalculatePackedSize + 15;
Buffer : ByteBuffer (HEADER_SIZE + MsgSize + CHECKSUM_SIZE);
begin
-- add header values
Buffer.Put_Int32 (LMCP_CONTROL_STR);
Buffer.Put_UInt32 (MsgSize);
-- add root object
PutObject (RootObject, Buffer);
-- add checksum if enabled
Buffer.Put_UInt32 (if EnableChecksum then CalculateChecksum (Buffer) else 0);
return Buffer;
end PackMessage;
procedure PutObject (Object : in Avtas.Lmcp.Object.Object_Any; Buffer : in out ByteBuffer) is
begin
-- If object is null, pack a 0; otherwise, add root object
if Object = null then
Buffer.Put_Boolean (False);
else
Buffer.Put_Boolean (True);
Buffer.Put_Int64 (Object.GetSeriesNameAsLong);
Buffer.Put_UInt32 (Object.GetLmcpType);
Buffer.Put_UInt16 (Object.GetSeriesVersion);
Object.Pack (Buffer);
end if;
end PutObject;
procedure GetObject (Buffer : in out ByteBuffer; Output : out Avtas.Lmcp.Object.Object_Any) is
CtrlStr : Int32;
MsgSize : UInt32;
MsgExists : Boolean;
SeriesId : Int64;
MsgType : Uint32;
Version : Uint16;
begin
Output := null; -- default
-- TODO: add some kind of warning/error messages for each null case
if buffer.Capacity < HEADER_SIZE + CHECKSUM_SIZE then
return;
end if;
Buffer.Get_Int32 (CtrlStr);
if CtrlStr /= LMCP_CONTROL_STR then
return;
end if;
Buffer.Get_UInt32 (MsgSize);
if Buffer.Capacity < MsgSize then
return;
end if;
if not validate (buffer) then
return;
end if;
Buffer.Get_Boolean (MsgExists);
if not MsgExists then
return;
end if;
Buffer.Get_Int64 (SeriesId);
Buffer.Get_UInt32 (MsgType);
Buffer.Get_UInt16 (Version);
Output := CreateObject (SeriesId, MsgType, Version);
if Output /= null then
Output.Unpack (Buffer);
end if;
end GetObject;
function createObject(seriesId : in Int64; msgType : in UInt32; version: in UInt16) return avtas.lmcp.object.Object_Any is
begin
-<series_factory_switch>-
end createObject;
function CalculateChecksum (Buffer : in ByteBuffer) return UInt32 is
(Buffer.Checksum (From => 1, To => Buffer.Length - Checksum_Size));
-- We want to compute the checksum of the entire message so we start at
-- index 1, but we don't want to include those bytes that either
-- will, or already do hold the checksum stored within the message in the
-- byte array. That stored checksum is at the very end.
function GetObjectSize (Buffer : in ByteBuffer) return UInt32 is
Result : UInt32;
begin
Buffer.Get_UInt32 (Result, First => 5); -- the second UInt32 value in the buffer
return Result;
end getObjectSize;
function Validate (Buffer : in ByteBuffer) return Boolean is
Computed_Checksum : UInt32;
Existing_Checksum : UInt32;
begin
Computed_Checksum := CalculateChecksum (Buffer);
if Computed_Checksum = 0 then
return True;
else
Buffer.Get_UInt32 (Existing_Checksum, First => Buffer.Length - Checksum_Size + 1); -- the last 4 bytes in the buffer
return Computed_Checksum = Existing_Checksum;
end if;
end Validate;
end -<full_series_name_dots>-.factory;
|
-----------------------------------------------------------------------
-- awa-services-filters -- Setup service context in request processing flow
-- Copyright (C) 2011, 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.
-----------------------------------------------------------------------
with AWA.Services.Contexts;
with AWA.Applications;
with AWA.Users.Principals;
with ASF.Principals;
with ASF.Sessions;
with Util.Beans.Objects;
package body AWA.Services.Filters is
-- ------------------------------
-- The Do_Filter method of the Filter is called by the container each time
-- a request/response pair is passed through the chain due to a client request
-- for a resource at the end of the chain. The Filter_Chain passed in to this
-- method allows the Filter to pass on the request and response to the next
-- entity in the chain.
--
-- Before passing the control to the next filter, initialize the service
-- context to give access to the current application, current user and
-- manage possible transaction rollbacks.
-- ------------------------------
procedure Do_Filter (F : in Service_Filter;
Request : in out ASF.Requests.Request'Class;
Response : in out ASF.Responses.Response'Class;
Chain : in out ASF.Servlets.Filter_Chain) is
pragma Unreferenced (F);
use type ASF.Principals.Principal_Access;
type Context_Type is new AWA.Services.Contexts.Service_Context with null record;
-- Get the attribute registered under the given name in the HTTP session.
overriding
function Get_Session_Attribute (Ctx : in Context_Type;
Name : in String) return Util.Beans.Objects.Object;
-- Set the attribute registered under the given name in the HTTP session.
overriding
procedure Set_Session_Attribute (Ctx : in out Context_Type;
Name : in String;
Value : in Util.Beans.Objects.Object);
overriding
function Get_Session_Attribute (Ctx : in Context_Type;
Name : in String) return Util.Beans.Objects.Object is
pragma Unreferenced (Ctx);
begin
return Request.Get_Session.Get_Attribute (Name);
end Get_Session_Attribute;
-- Set the attribute registered under the given name in the HTTP session.
overriding
procedure Set_Session_Attribute (Ctx : in out Context_Type;
Name : in String;
Value : in Util.Beans.Objects.Object) is
S : ASF.Sessions.Session := Request.Get_Session;
begin
S.Set_Attribute (Name, Value);
end Set_Session_Attribute;
App : constant ASF.Servlets.Servlet_Registry_Access
:= ASF.Servlets.Get_Servlet_Context (Chain);
P : constant ASF.Principals.Principal_Access := Request.Get_User_Principal;
Context : aliased Context_Type;
Principal : AWA.Users.Principals.Principal_Access;
Application : AWA.Applications.Application_Access;
begin
-- Get the user
if P /= null and then P.all in AWA.Users.Principals.Principal'Class then
Principal := AWA.Users.Principals.Principal'Class (P.all)'Access;
else
Principal := null;
end if;
-- Get the application
if App.all in AWA.Applications.Application'Class then
Application := AWA.Applications.Application'Class (App.all)'Access;
else
Application := null;
end if;
-- Setup the service context.
Context.Set_Context (Application, Principal);
-- Give the control to the next chain up to the servlet.
ASF.Servlets.Do_Filter (Chain => Chain,
Request => Request,
Response => Response);
-- By leaving this scope, the active database transactions are rollbacked
-- (finalization of Service_Context)
end Do_Filter;
end AWA.Services.Filters;
|
-- MIT License
--
-- Copyright (c) 2021 Glen Cornell <glen.m.cornell@gmail.com>
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including without limitation the rights
-- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-- copies of the Software, and to permit persons to whom the Software is
-- furnished to do so, subject to the following conditions:
--
-- The above copyright notice and this permission notice shall be included in all
-- copies or substantial portions of the Software.
--
-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-- SOFTWARE.
with Sockets.Can;
with Sockets.Can_Frame;
procedure Stream_Writer is
Socket : Sockets.Can.Socket_Type;
Frame : Sockets.Can_Frame.Can_Frame;
Can_Stream : aliased Sockets.Can.Can_Stream;
begin
Socket := Sockets.Can.Open("vcan0");
Sockets.Can.Create_Stream (Can_Stream, Socket);
frame.can_id := 16#123#;
frame.can_dlc := 2;
frame.Data(1) := 16#11#;
frame.Data(2) := 16#22#;
Sockets.Can_Frame.Can_Frame'Write(Can_Stream'Access, Frame);
end Stream_Writer;
|
with Ada.Containers.Indefinite_Vectors;
package body Mode is
-- map Count to Elements
package Count_Vectors is new Ada.Containers.Indefinite_Vectors
(Element_Type => Element_Array,
Index_Type => Positive);
procedure Add (To : in out Count_Vectors.Vector; Item : Element_Type) is
use type Count_Vectors.Cursor;
Position : Count_Vectors.Cursor := To.First;
Found : Boolean := False;
begin
while not Found and then Position /= Count_Vectors.No_Element loop
declare
Elements : Element_Array := Count_Vectors.Element (Position);
begin
for I in Elements'Range loop
if Elements (I) = Item then
Found := True;
end if;
end loop;
end;
if not Found then
Position := Count_Vectors.Next (Position);
end if;
end loop;
if Position /= Count_Vectors.No_Element then
-- element found, remove it and insert to next count
declare
New_Position : Count_Vectors.Cursor :=
Count_Vectors.Next (Position);
begin
-- remove from old position
declare
Old_Elements : Element_Array :=
Count_Vectors.Element (Position);
New_Elements : Element_Array (1 .. Old_Elements'Length - 1);
New_Index : Positive := New_Elements'First;
begin
for I in Old_Elements'Range loop
if Old_Elements (I) /= Item then
New_Elements (New_Index) := Old_Elements (I);
New_Index := New_Index + 1;
end if;
end loop;
To.Replace_Element (Position, New_Elements);
end;
-- new position not already there?
if New_Position = Count_Vectors.No_Element then
declare
New_Array : Element_Array (1 .. 1) := (1 => Item);
begin
To.Append (New_Array);
end;
else
-- add to new position
declare
Old_Elements : Element_Array :=
Count_Vectors.Element (New_Position);
New_Elements : Element_Array (1 .. Old_Elements'Length + 1);
begin
New_Elements (1 .. Old_Elements'Length) := Old_Elements;
New_Elements (New_Elements'Last) := Item;
To.Replace_Element (New_Position, New_Elements);
end;
end if;
end;
else
-- element not found, add to count 1
Position := To.First;
if Position = Count_Vectors.No_Element then
declare
New_Array : Element_Array (1 .. 1) := (1 => Item);
begin
To.Append (New_Array);
end;
else
declare
Old_Elements : Element_Array :=
Count_Vectors.Element (Position);
New_Elements : Element_Array (1 .. Old_Elements'Length + 1);
begin
New_Elements (1 .. Old_Elements'Length) := Old_Elements;
New_Elements (New_Elements'Last) := Item;
To.Replace_Element (Position, New_Elements);
end;
end if;
end if;
end Add;
function Get_Mode (Set : Element_Array) return Element_Array is
Counts : Count_Vectors.Vector;
begin
for I in Set'Range loop
Add (Counts, Set (I));
end loop;
return Counts.Last_Element;
end Get_Mode;
end Mode;
|
-- -*- Mode: Ada -*-
-- Filename : ether-forms.ads
-- Description : Abstraction around the form data returned from the SCGI client (HTTP server).
-- Author : Luke A. Guest
-- Created On : Tue May 1 13:10:29 2012
with GNAT.Sockets;
with Unicode.CES;
package Ether.Forms is
-- Form data is transmitted to the SCGI server in 1 of 2 ways, GET and PUT. GET provides
-- the form data in the URI
-- Each item in a form will have some data associated with it. This data will either be
-- Unicode.CES.Byte_Sequence if it is normal data or it will be data, i.e. a file that
-- has been encoded, Base64?
--
-- We will handle the translation of text from whatever it comes in as, i.e. UTF-8 to
-- the abstract type, Unicode.CES.Byte_Sequence, the application must then translate it to
-- it's preferred encoding.
--
-- Some forms can send multiple items per field, this will be handled internally as a list.
-- The data stored will look something like this:
--
-- +------------------------+
-- | Field | Data |
-- +------------------------+
-- | forename | Barry |
-- | surname | Watkins |
-- | filename | hello.txt | - First in the filename list
-- | filename | hello2.txt | - Second in the filename list
-- +------------------------+
--
-- Obviously, any file that is transmitted to the SCGI server will also include the file
-- data.
--
-- Both urlencoded and multipart type forms will be supported by this package and will
-- present the data in the same way.
--
-- The form data is essentially mapping of:
-- field name :-> list of data.
-- type Data_Type is
-- (Octet, -- This represents a file.
-- String -- This is a unicode string encoded to Byte_Sequence.
-- );
-- type Form is private;
Form_Error : exception;
procedure Decode_Query (Data : in String);
procedure Decode_Content (Data : access String);
-- private
-- type Form is
-- null record
-- end record;
end Ether.Forms;
|
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
package body Program.Nodes.Variants is
function Create
(When_Token : not null Program.Lexical_Elements.Lexical_Element_Access;
Choices : not null Program.Element_Vectors.Element_Vector_Access;
Arrow_Token : not null Program.Lexical_Elements.Lexical_Element_Access;
Components : not null Program.Element_Vectors.Element_Vector_Access)
return Variant is
begin
return Result : Variant :=
(When_Token => When_Token, Choices => Choices,
Arrow_Token => Arrow_Token, Components => Components,
Enclosing_Element => null)
do
Initialize (Result);
end return;
end Create;
function Create
(Choices : not null Program.Element_Vectors
.Element_Vector_Access;
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_Variant is
begin
return Result : Implicit_Variant :=
(Choices => Choices, 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 Choices
(Self : Base_Variant)
return not null Program.Element_Vectors.Element_Vector_Access is
begin
return Self.Choices;
end Choices;
overriding function Components
(Self : Base_Variant)
return not null Program.Element_Vectors.Element_Vector_Access is
begin
return Self.Components;
end Components;
overriding function When_Token
(Self : Variant)
return not null Program.Lexical_Elements.Lexical_Element_Access is
begin
return Self.When_Token;
end When_Token;
overriding function Arrow_Token
(Self : Variant)
return not null Program.Lexical_Elements.Lexical_Element_Access is
begin
return Self.Arrow_Token;
end Arrow_Token;
overriding function Is_Part_Of_Implicit
(Self : Implicit_Variant)
return Boolean is
begin
return Self.Is_Part_Of_Implicit;
end Is_Part_Of_Implicit;
overriding function Is_Part_Of_Inherited
(Self : Implicit_Variant)
return Boolean is
begin
return Self.Is_Part_Of_Inherited;
end Is_Part_Of_Inherited;
overriding function Is_Part_Of_Instance
(Self : Implicit_Variant)
return Boolean is
begin
return Self.Is_Part_Of_Instance;
end Is_Part_Of_Instance;
procedure Initialize (Self : in out Base_Variant'Class) is
begin
for Item in Self.Choices.Each_Element loop
Set_Enclosing_Element (Item.Element, Self'Unchecked_Access);
end loop;
for Item in Self.Components.Each_Element loop
Set_Enclosing_Element (Item.Element, Self'Unchecked_Access);
end loop;
null;
end Initialize;
overriding function Is_Variant (Self : Base_Variant) return Boolean is
pragma Unreferenced (Self);
begin
return True;
end Is_Variant;
overriding function Is_Definition (Self : Base_Variant) return Boolean is
pragma Unreferenced (Self);
begin
return True;
end Is_Definition;
overriding procedure Visit
(Self : not null access Base_Variant;
Visitor : in out Program.Element_Visitors.Element_Visitor'Class) is
begin
Visitor.Variant (Self);
end Visit;
overriding function To_Variant_Text
(Self : in out Variant)
return Program.Elements.Variants.Variant_Text_Access is
begin
return Self'Unchecked_Access;
end To_Variant_Text;
overriding function To_Variant_Text
(Self : in out Implicit_Variant)
return Program.Elements.Variants.Variant_Text_Access is
pragma Unreferenced (Self);
begin
return null;
end To_Variant_Text;
end Program.Nodes.Variants;
|
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2018, AdaCore and other contributors --
-- --
-- See github.com/AdaCore/Ada_Drivers_Library/graphs/contributors --
-- for more information --
-- --
-- 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 FE310_SVD.CLINT; use FE310_SVD.CLINT;
package body FE310.CLINT is
------------------
-- Machine_Time --
------------------
function Machine_Time return Machine_Time_Value is
High : UInt32;
Low : UInt32;
begin
High := CLINT_Periph.MTIME_HI;
Low := CLINT_Periph.MTIME_LO;
-- Handle the case where the timer registers were read during the
-- incrementation of the high part
if CLINT_Periph.MTIME_HI /= High then
High := High + 1;
Low := 0;
end if;
return Machine_Time_Value (High) * 2**32 + Machine_Time_Value (Low);
end Machine_Time;
------------------------------
-- Set_Machine_Time_Compare --
------------------------------
procedure Set_Machine_Time_Compare (Value : Machine_Time_Value) is
begin
CLINT_Periph.MTIMECMP_LO := UInt32'Last;
CLINT_Periph.MTIMECMP_HI := UInt32 (Value / 2**32);
CLINT_Periph.MTIMECMP_LO := UInt32 (Value rem 2**32);
end Set_Machine_Time_Compare;
--------------------------
-- Machine_Time_Compare --
--------------------------
function Machine_Time_Compare return Machine_Time_Value is
begin
return Machine_Time_Value (CLINT_Periph.MTIMECMP_HI) * 2**32 +
Machine_Time_Value (CLINT_Periph.MTIMECMP_LO);
end Machine_Time_Compare;
end FE310.CLINT;
|
------------------------------------------------------------------------------
-- A d a r u n - t i m e s p e c i f i c a t i o n --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
-- - - - - - - - - - - - - - - - --
-- Read copyright and license at the end of ada.ads file --
------------------------------------------------------------------------------
-- $Revision: 209 $ $Date: 2013-11-30 21:03:24 +0200 (Сб., 30 нояб. 2013) $
package Ada.Numerics is
pragma Pure (Numerics);
Argument_Error : exception;
Pi : constant :=
3.14159_26535_89793_23846_26433_83279_50288_41971_69399_37511;
π : constant := Pi;
e : constant :=
2.71828_18284_59045_23536_02874_71352_66249_77572_47093_69996;
end Ada.Numerics;
|
------------------------------------------------------------------------------
-- Copyright (c) 2015-2017, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- purpose with or without fee is hereby granted, provided that the above --
-- copyright notice and this permission notice appear in all copies. --
-- --
-- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES --
-- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF --
-- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR --
-- ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES --
-- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN --
-- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF --
-- OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. --
------------------------------------------------------------------------------
with Ada.Characters.Latin_1;
with Ada.Streams;
with Ada.Strings.Fixed;
with Ada.Strings.Unbounded;
with Natools.S_Expressions;
with Natools.Smaz_256;
with Natools.Smaz_4096;
with Natools.Smaz_64;
with Natools.Smaz_Generic;
with Natools.Smaz_Implementations.Base_4096;
with Natools.Smaz_Original;
with Natools.Smaz_Test_Base_64_Hash;
package body Natools.Smaz_Tests is
generic
with package Smaz is new Natools.Smaz_Generic (<>);
with function Image (S : Ada.Streams.Stream_Element_Array) return String;
procedure Generic_Roundtrip_Test
(Test : in out NT.Test;
Dict : in Smaz.Dictionary;
Decompressed : in String;
Compressed : in Ada.Streams.Stream_Element_Array);
function Decimal_Image (S : Ada.Streams.Stream_Element_Array) return String;
function Dictionary_256_Without_VLV return Smaz_256.Dictionary;
function Dictionary_4096 (Variable_Length_Verbatim : in Boolean)
return Natools.Smaz_4096.Dictionary;
function Dictionary_4096_Hash (S : in String) return Natural;
function Direct_Image (S : Ada.Streams.Stream_Element_Array) return String
renames Natools.S_Expressions.To_String;
function To_SEA (S : String) return Ada.Streams.Stream_Element_Array
renames Natools.S_Expressions.To_Atom;
procedure Impure_Stream_4096
(Report : in out NT.Reporter'Class;
Dictionary : in Smaz_4096.Dictionary);
procedure Sample_Strings_4096
(Report : in out NT.Reporter'Class;
Dictionary : in Smaz_4096.Dictionary);
procedure Sample_Strings_VLV_4096
(Report : in out NT.Reporter'Class;
Dictionary : in Smaz_4096.Dictionary);
procedure Test_Validity_4096
(Report : in out NT.Reporter'Class;
Dictionary : in Smaz_4096.Dictionary);
-----------------------
-- Test Dictionaries --
-----------------------
LF : constant Character := Ada.Characters.Latin_1.LF;
Dict_64 : constant Natools.Smaz_64.Dictionary
:= (Last_Code => 59,
Values_Last => 119,
Variable_Length_Verbatim => False,
Max_Word_Length => 6,
Offsets => (2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 15, 16, 18, 20, 22,
24, 25, 26, 28, 30, 31, 32, 36, 38, 40, 42, 44, 45, 47, 49, 51, 53,
56, 60, 63, 65, 68, 70, 72, 74, 76, 80, 82, 84, 88, 90, 92, 94, 98,
101, 102, 103, 105, 111, 112, 114, 115, 118),
Values => " ee stainruos l dt enescm p"
& Character'Val (16#C3#) & Character'Val (16#A9#)
& "pd de lere ld"
& "e" & LF & "on cqumede mentes aiquen teerou r sque , is m q"
& "ue" & Character'Val (16#C3#) & Character'Val (16#A0#)
& " v'tiweblogfanj." & LF & LF & "ch",
Hash => Natools.Smaz_Test_Base_64_Hash.Hash'Access);
Dict_64_V : constant Natools.Smaz_64.Dictionary
:= (Last_Code => 59,
Values_Last => 119,
Variable_Length_Verbatim => True,
Max_Word_Length => 6,
Offsets => (2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 15, 16, 18, 20, 22,
24, 25, 26, 28, 30, 31, 32, 36, 38, 40, 42, 44, 45, 47, 49, 51, 53,
56, 60, 63, 65, 68, 70, 72, 74, 76, 80, 82, 84, 88, 90, 92, 94, 98,
101, 102, 103, 105, 111, 112, 114, 115, 118),
Values => " ee stainruos l dt enescm p"
& Character'Val (16#C3#) & Character'Val (16#A9#)
& "pd de lere ld"
& "e" & LF & "on cqumede mentes aiquen teerou r sque , is m q"
& "ue" & Character'Val (16#C3#) & Character'Val (16#A0#)
& " v'tiweblogfanj." & LF & LF & "ch",
Hash => Natools.Smaz_Test_Base_64_Hash.Hash'Access);
------------------------------
-- Local Helper Subprograms --
------------------------------
function Decimal_Image (S : Ada.Streams.Stream_Element_Array) return String
is
use Ada.Strings.Unbounded;
Result : Unbounded_String;
begin
for I in S'Range loop
Append (Result, Ada.Streams.Stream_Element'Image (S (I)));
end loop;
return To_String (Result);
end Decimal_Image;
function Dictionary_256_Without_VLV return Smaz_256.Dictionary is
begin
return Dict : Smaz_256.Dictionary := Smaz_Original.Dictionary do
Dict.Variable_Length_Verbatim := False;
end return;
end Dictionary_256_Without_VLV;
function Dictionary_4096 (Variable_Length_Verbatim : in Boolean)
return Natools.Smaz_4096.Dictionary
is
subtype Letter_Rank is Natural range 1 .. 26;
function Lower (N : Letter_Rank) return Character
is (Character'Val (Character'Pos ('a') - 1 + N));
function Upper (N : Letter_Rank) return Character
is (Character'Val (Character'Pos ('A') - 1 + N));
subtype Digit_Rank is Natural range 0 .. 9;
function Image (N : Digit_Rank) return Character
is (Character'Val (Character'Pos ('0') + N));
subtype Alphanum is Character with Static_Predicate
=> Alphanum in '0' .. '9' | 'A' .. 'Z' | 'a' .. 'z';
Current_Index : Smaz_Implementations.Base_4096.Base_4096_Digit := 0;
Current_Offset : Positive := 1;
use type Smaz_Implementations.Base_4096.Base_4096_Digit;
procedure Push_Value
(Dict : in out Natools.Smaz_4096.Dictionary;
Value : in String);
procedure Push_Value
(Dict : in out Natools.Smaz_4096.Dictionary;
Value : in String) is
begin
if Current_Index > 0 then
Dict.Offsets (Current_Index) := Current_Offset;
end if;
Dict.Values (Current_Offset .. Current_Offset + Value'Length - 1)
:= Value;
Current_Index := Current_Index + 1;
Current_Offset := Current_Offset + Value'Length;
end Push_Value;
begin
return Dict : Natools.Smaz_4096.Dictionary
:= (Last_Code => 4059,
Values_Last => 9120,
Variable_Length_Verbatim => Variable_Length_Verbatim,
Max_Word_Length => 3,
Offsets => <>,
Values => <>,
Hash => Dictionary_4096_Hash'Access)
do
-- 0 .. 61: space + letter
for L in Alphanum loop
Push_Value (Dict, (1 => ' ', 2 => L));
end loop;
-- 62 .. 123: letter + space
for L in Alphanum loop
Push_Value (Dict, (1 => L, 2 => ' '));
end loop;
-- 124 .. 185: letter + comma
for L in Alphanum loop
Push_Value (Dict, (1 => L, 2 => ','));
end loop;
-- 186 .. 247: letter + period
for L in Alphanum loop
Push_Value (Dict, (1 => L, 2 => '.'));
end loop;
-- 248 .. 255: double punctuation
for L in Character range ' ' .. ''' loop
Push_Value (Dict, (1 => L, 2 => L));
end loop;
-- 256 .. 355: two-digit numbers
for U in Digit_Rank loop
for V in Digit_Rank loop
Push_Value (Dict, (1 => Image (U), 2 => Image (V)));
end loop;
end loop;
-- 356 .. 1355: three-digit numbers
for U in Digit_Rank loop
for V in Digit_Rank loop
for W in Digit_Rank loop
Push_Value
(Dict, (1 => Image (U), 2 => Image (V), 3 => Image (W)));
end loop;
end loop;
end loop;
-- 1356 .. 2031: two lower-case letters
for M in Letter_Rank loop
for N in Letter_Rank loop
Push_Value (Dict, (1 => Lower (M), 2 => Lower (N)));
end loop;
end loop;
-- 2032 .. 2707: lower-case then upper-case letter
for M in Letter_Rank loop
for N in Letter_Rank loop
Push_Value (Dict, (1 => Lower (M), 2 => Upper (N)));
end loop;
end loop;
-- 2708 .. 3383: upper-case then lower-case letter
for M in Letter_Rank loop
for N in Letter_Rank loop
Push_Value (Dict, (1 => Upper (M), 2 => Lower (N)));
end loop;
end loop;
-- 3384 .. 4059: two upper-case letters
for M in Letter_Rank loop
for N in Letter_Rank loop
Push_Value (Dict, (1 => Upper (M), 2 => Upper (N)));
end loop;
end loop;
pragma Assert (Current_Index = Dict.Last_Code + 1);
pragma Assert (Current_Offset = Dict.Values_Last + 1);
end return;
end Dictionary_4096;
function Dictionary_4096_Hash (S : in String) return Natural is
function Rank (C : Character) return Natural
is (case C is
when '0' .. '9' => Character'Pos (C) - Character'Pos ('0'),
when 'a' .. 'z' => Character'Pos (C) - Character'Pos ('a'),
when 'A' .. 'Z' => Character'Pos (C) - Character'Pos ('A'),
when others => raise Program_Error);
begin
case S'Length is
when 2 =>
declare
U : constant Character := S (S'First);
V : constant Character := S (S'Last);
begin
if U = ' ' and then V in '0' .. '9' then
return Rank (V);
elsif U = ' ' and then V in 'A' .. 'Z' then
return 10 + Rank (V);
elsif U = ' ' and then V in 'a' .. 'z' then
return 36 + Rank (V);
elsif U in '0' .. '9' and then V in ' ' | ',' | '.' then
return Rank (U)
+ (case V is when ' ' => 62,
when ',' => 124,
when '.' => 186,
when others => raise Program_Error);
elsif U in 'A' .. 'Z' and then V in ' ' | ',' | '.' then
return Rank (U) + 10
+ (case V is when ' ' => 62,
when ',' => 124,
when '.' => 186,
when others => raise Program_Error);
elsif U in 'a' .. 'z' and then V in ' ' | ',' | '.' then
return Rank (U) + 36
+ (case V is when ' ' => 62,
when ',' => 124,
when '.' => 186,
when others => raise Program_Error);
elsif U in ' ' .. ''' and then U = V then
return 248 + Character'Pos (U) - Character'Pos (' ');
elsif U in '0' .. '9' and then V in '0' .. '9' then
return 256 + Rank (U) * 10 + Rank (V);
elsif U in 'a' .. 'z' and then V in 'a' .. 'z' then
return 1356 + Rank (U) * 26 + Rank (V);
elsif U in 'a' .. 'z' and then V in 'A' .. 'Z' then
return 2032 + Rank (U) * 26 + Rank (V);
elsif U in 'A' .. 'Z' and then V in 'a' .. 'z' then
return 2708 + Rank (U) * 26 + Rank (V);
elsif U in 'A' .. 'Z' and then V in 'A' .. 'Z' then
return 3384 + Rank (U) * 26 + Rank (V);
else
return 4096;
end if;
end;
when 3 =>
declare
U : constant Character := S (S'First);
V : constant Character := S (S'First + 1);
W : constant Character := S (S'First + 2);
begin
if U in '0' .. '9'
and then V in '0' .. '9'
and then W in '0' .. '9'
then
return 356 + Rank (U) * 100 + Rank (V) * 10 + Rank (W);
else
return 4096;
end if;
end;
when others =>
return 4096;
end case;
end Dictionary_4096_Hash;
procedure Generic_Roundtrip_Test
(Test : in out NT.Test;
Dict : in Smaz.Dictionary;
Decompressed : in String;
Compressed : in Ada.Streams.Stream_Element_Array)
is
use type Ada.Streams.Stream_Element_Array;
use type Ada.Streams.Stream_Element_Offset;
begin
declare
First_OK : Boolean := False;
begin
declare
Buffer : constant Ada.Streams.Stream_Element_Array
:= Smaz.Compress (Dict, Decompressed);
begin
First_OK := True;
if Buffer /= Compressed then
Test.Fail ("Bad compression of """ & Decompressed & '"');
Test.Info ("Found: " & Image (Buffer));
Test.Info ("Expected:" & Image (Compressed));
declare
Round : constant String
:= Smaz.Decompress (Dict, Buffer);
begin
if Round /= Decompressed then
Test.Info ("Roundtrip failed, got: """ & Round & '"');
else
Test.Info ("Roundtrip OK");
end if;
end;
end if;
end;
exception
when Error : others =>
if not First_OK then
Test.Info ("During compression of """ & Decompressed & '"');
end if;
Test.Report_Exception (Error, NT.Fail);
end;
declare
First_OK : Boolean := False;
begin
declare
Buffer : constant String
:= Smaz.Decompress (Dict, Compressed);
begin
First_OK := True;
if Buffer /= Decompressed then
Test.Fail ("Bad decompression of " & Image (Compressed));
Test.Info ("Found: """ & Buffer & '"');
Test.Info ("Expected:""" & Decompressed & '"');
declare
Round : constant Ada.Streams.Stream_Element_Array
:= Smaz.Compress (Dict, Buffer);
begin
if Round /= Compressed then
Test.Info ("Roundtrip failed, got: " & Image (Round));
else
Test.Info ("Roundtrip OK");
end if;
end;
end if;
end;
exception
when Error : others =>
if not First_OK then
Test.Info ("During decompression of " & Image (Compressed));
end if;
Test.Report_Exception (Error, NT.Fail);
end;
end Generic_Roundtrip_Test;
procedure Roundtrip_Test is new Generic_Roundtrip_Test
(Natools.Smaz_256, Decimal_Image);
procedure Roundtrip_Test is new Generic_Roundtrip_Test
(Natools.Smaz_4096, Direct_Image);
procedure Roundtrip_Test is new Generic_Roundtrip_Test
(Natools.Smaz_64, Direct_Image);
-------------------------
-- Complete Test Suite --
-------------------------
procedure All_Tests (Report : in out NT.Reporter'Class) is
begin
Report.Section ("Base 256");
All_Tests_256 (Report);
Report.End_Section;
Report.Section ("Base 64");
All_Tests_64 (Report);
Report.End_Section;
Report.Section ("Base 4096");
All_Tests_4096 (Report);
Report.End_Section;
end All_Tests;
------------------------------
-- Test Suite for Each Base --
------------------------------
procedure All_Tests_256 (Report : in out NT.Reporter'Class) is
begin
Test_Validity_256 (Report);
Sample_Strings_256 (Report);
Sample_Strings_VLV_256 (Report);
end All_Tests_256;
procedure All_Tests_4096 (Report : in out NT.Reporter'Class) is
begin
declare
Dict : constant Smaz_4096.Dictionary := Dictionary_4096 (False);
begin
Report.Section ("Without variable-length verbatim");
Test_Validity_4096 (Report, Dict);
Sample_Strings_4096 (Report, Dict);
Impure_Stream_4096 (Report, Dict);
Report.End_Section;
end;
declare
Dict : constant Smaz_4096.Dictionary := Dictionary_4096 (True);
begin
Report.Section ("With variable-length verbatim");
Test_Validity_4096 (Report, Dict);
Sample_Strings_VLV_4096 (Report, Dict);
Report.End_Section;
end;
end All_Tests_4096;
procedure All_Tests_64 (Report : in out NT.Reporter'Class) is
begin
Test_Validity_64 (Report);
Sample_Strings_64 (Report);
Sample_Strings_VLV_64 (Report);
Impure_Stream_64 (Report);
end All_Tests_64;
-------------------------------
-- Individual Base-256 Tests --
-------------------------------
procedure Sample_Strings_256 (Report : in out NT.Reporter'Class) is
Test : NT.Test
:= Report.Item ("Roundtrip on sample strings without VLV");
Dict : constant Smaz_256.Dictionary := Dictionary_256_Without_VLV;
begin
Roundtrip_Test (Test, Dict,
"This is a small string",
(255, 84, 76, 56, 172, 62, 173, 152, 62, 195, 70));
Roundtrip_Test (Test, Dict,
"foobar",
(220, 6, 90, 79));
Roundtrip_Test (Test, Dict,
"the end",
(1, 171, 61));
Roundtrip_Test (Test, Dict,
"not-a-g00d-Exampl333",
(132, 204, 4, 204, 59, 254, 48, 48, 24, 204, 255, 69, 250, 4, 45,
60, 22, 254, 51, 51, 255, 51));
Roundtrip_Test (Test, Dict,
"Smaz is a simple compression library",
(255, 83, 173, 219, 56, 172, 62, 226, 60, 87, 161, 45, 60, 33, 166,
107, 205, 8, 90, 130, 12, 83));
Roundtrip_Test (Test, Dict,
"Nothing is more difficult, and therefore more precious, "
& "than to be able to decide",
(255, 78, 223, 102, 99, 116, 45, 42, 11, 129, 44, 44, 131, 38, 22, 3,
148, 63, 210, 68, 11, 45, 42, 11, 60, 33, 28, 144, 164, 36, 203,
143, 96, 92, 25, 90, 87, 82, 165, 215, 237, 2));
Roundtrip_Test (Test, Dict,
"this is an example of what works very well with smaz",
(155, 56, 172, 41, 2, 250, 4, 45, 60, 87, 32, 159, 135, 65, 42, 255,
107, 23, 231, 71, 145, 152, 243, 227, 10, 173, 219));
Roundtrip_Test (Test, Dict,
"1000 numbers 2000 will 10 20 30 compress very little",
(254, 49, 48, 254, 48, 48, 236, 38, 45, 92, 221, 0, 254, 50, 48,
254, 48, 48, 243, 152, 0, 254, 49, 48, 0, 254, 50, 48, 0, 254, 51,
48, 161, 45, 60, 33, 166, 0, 231, 71, 151, 3, 3, 87));
Roundtrip_Test (Test, Dict,
": : : :",
(254, 58, 32, 254, 58, 32, 254, 58, 32, 255, 58));
exception
when Error : others => Test.Report_Exception (Error);
end Sample_Strings_256;
procedure Sample_Strings_VLV_256 (Report : in out NT.Reporter'Class) is
Test : NT.Test := Report.Item
("Roundtrip on sample strings with variable-length verbatim");
begin
Roundtrip_Test (Test, Smaz_Original.Dictionary,
"This is a small string",
(254, 84, 76, 56, 172, 62, 173, 152, 62, 195, 70));
Roundtrip_Test (Test, Smaz_Original.Dictionary,
"foobar",
(220, 6, 90, 79));
Roundtrip_Test (Test, Smaz_Original.Dictionary,
"the end",
(1, 171, 61));
Roundtrip_Test (Test, Smaz_Original.Dictionary,
"not-a-g00d-Exampl333",
(132, 204, 4, 204, 59, 255, 12, 48, 48, 100, 45, 69, 120, 97, 109,
112, 108, 51, 51, 51));
Roundtrip_Test (Test, Smaz_Original.Dictionary,
"Smaz is a simple compression library",
(254, 83, 173, 219, 56, 172, 62, 226, 60, 87, 161, 45, 60, 33, 166,
107, 205, 8, 90, 130, 12, 83));
Roundtrip_Test (Test, Smaz_Original.Dictionary,
"Nothing is more difficult, and therefore more precious, "
& "than to be able to decide",
(254, 78, 223, 102, 99, 116, 45, 42, 11, 129, 44, 44, 131, 38, 22, 3,
148, 63, 210, 68, 11, 45, 42, 11, 60, 33, 28, 144, 164, 36, 203,
143, 96, 92, 25, 90, 87, 82, 165, 215, 237, 2));
Roundtrip_Test (Test, Smaz_Original.Dictionary,
"this is an example of what works very well with smaz",
(155, 56, 172, 41, 2, 250, 4, 45, 60, 87, 32, 159, 135, 65, 42, 254,
107, 23, 231, 71, 145, 152, 243, 227, 10, 173, 219));
Roundtrip_Test (Test, Smaz_Original.Dictionary,
"1000 numbers 2000 will 10 20 30 compress very little",
(255, 3, 49, 48, 48, 48, 236, 38, 45, 92, 221, 0, 255, 3, 50, 48, 48,
48, 243, 152, 0, 255, 7, 49, 48, 32, 50, 48, 32, 51,
48, 161, 45, 60, 33, 166, 0, 231, 71, 151, 3, 3, 87));
Roundtrip_Test (Test, Smaz_Original.Dictionary,
": : : :",
(255, 6, 58, 32, 58, 32, 58, 32, 58));
Roundtrip_Test (Test, Smaz_Original.Dictionary,
(1 .. 300 => ':'),
(1 .. 2 => 255, 3 .. 258 => 58,
259 => 255, 260 => 43, 261 .. 304 => 58));
exception
when Error : others => Test.Report_Exception (Error);
end Sample_Strings_VLV_256;
procedure Test_Validity_256 (Report : in out NT.Reporter'Class) is
Test : NT.Test := Report.Item ("Test dictionary validity");
begin
if not Natools.Smaz_256.Is_Valid (Smaz_Original.Dictionary) then
Test.Fail;
end if;
exception
when Error : others => Test.Report_Exception (Error);
end Test_Validity_256;
--------------------------------
-- Individual Base-4096 Tests --
--------------------------------
procedure Impure_Stream_4096
(Report : in out NT.Reporter'Class;
Dictionary : in Smaz_4096.Dictionary)
is
Test : NT.Test := Report.Item ("Input stream with non-base-64 symbols");
begin
declare
CRLF : constant String := (Character'Val (13), Character'Val (10));
Input : constant Ada.Streams.Stream_Element_Array
:= To_SEA ("0vBdpYoBuYwAJbmB iWTXeYfdzCkAha3A" & CRLF
& "GYKccXKcwAJbmBjb 2WqYmd//sA3ACYvB" & CRLF
& "IdlAmBNVuZ3AwBeW IWeW" & CRLF);
Output : constant String := Smaz_4096.Decompress (Dictionary, Input);
Expected : constant String
:= "Nothing is more difficult, and therefore more precious, "
& "than to be able to decide";
begin
if Output /= Expected then
Test.Fail ("Bad decompression");
Test.Info ("Found: """ & Output & '"');
Test.Info ("Expected:""" & Expected & '"');
end if;
end;
exception
when Error : others => Test.Report_Exception (Error);
end Impure_Stream_4096;
procedure Impure_Stream_4096 (Report : in out NT.Reporter'Class) is
begin
Impure_Stream_4096 (Report, Dictionary_4096 (False));
end Impure_Stream_4096;
procedure Sample_Strings_4096
(Report : in out NT.Reporter'Class;
Dictionary : in Smaz_4096.Dictionary)
is
Test : NT.Test := Report.Item ("Roundtrip on sample strings");
begin
Roundtrip_Test (Test, Dictionary,
"This is a small string",
To_SEA ("JyuYsA0BiBscXVtBzcOcka"));
-- This is a small string
Roundtrip_Test (Test, Dictionary,
"foobar",
To_SEA ("cX5adV"));
-- foobar
Roundtrip_Test (Test, Dictionary,
"the end",
To_SEA ("BdmBBX//kB"));
-- the en<d >
Roundtrip_Test (Test, Dictionary,
"not-a-g00d-Exampl333",
To_SEA ("sa3/01SYtcGMwQWLTsYVdbxK"));
-- no< t-a -g0 0d->Exampl333
-- t-a 001011_10 1011_0100 10_000110
-- -g0 101101_00 1110_0110 00_001100
-- 0d- 000011_00 0010_0110 10_110100
Roundtrip_Test (Test, Dictionary,
"Smaz is a simple compression library",
To_SEA ("0xlVsA0BiBocTauZmAEbjbGXocFbvAdYGcec"));
-- Smaz is a simple compression library
Roundtrip_Test (Test, Dictionary,
"Nothing is more difficult, and therefore more precious, "
& "than to be able to decide",
To_SEA ("0vBdpYoBuYwAJbmBiWTXeYfdzCkAha3AGYKccXKcwAJbmBjb2WqYmd//sA"
-- Nothing is more difficult, and therefore more precious< ,>
& "3ACYvBIdlAmBNVuZ3AwBeWIWeW"));
-- than to be able to decide
Roundtrip_Test (Test, Dictionary,
"this is an example of what works very well with smaz",
To_SEA ("BduYsA0BZVoAieTauZyAnBPefV6AJbiZ5AFX6BMe1Z6AvYpBsclV"));
-- this is an example of what works very well with smaz
Roundtrip_Test (Test, Dictionary,
"1000 numbers 2000 will 10 20 30 compress very little",
To_SEA ("IH+AyaFaFX0BsI+AQe1ZBA+AUEDA+AOWTaKcyc5AFX6ByZNduZ"));
-- 1000 numbers 2*0 will 10 20 30 compress very little",
Roundtrip_Test (Test, Dictionary,
": : : :",
To_SEA ("5/6AiOgoDI6A"));
-- :_: 010111_00 0000_0100 01_011100
-- _:_ 000001_00 0101_1100 00_000100
-- : 010111_00 0000
Roundtrip_Test (Test, Dictionary,
(1 .. 80 => ':'),
To_SEA (Ada.Strings.Fixed."*"
(2, "c/" & Ada.Strings.Fixed."*" (12, "6ojO"))
& "4/6ojO6ojO6oD"));
-- ::: 010111_00 0101_1100 01_011100
exception
when Error : others => Test.Report_Exception (Error);
end Sample_Strings_4096;
procedure Sample_Strings_4096 (Report : in out NT.Reporter'Class) is
begin
Sample_Strings_4096 (Report, Dictionary_4096 (False));
end Sample_Strings_4096;
procedure Sample_Strings_VLV_4096
(Report : in out NT.Reporter'Class;
Dictionary : in Smaz_4096.Dictionary)
is
Test : NT.Test := Report.Item ("Roundtrip on sample strings");
begin
Roundtrip_Test (Test, Dictionary,
"This is a small string",
To_SEA ("JyuYsA0BiBscXVtBzcOcka"));
-- This is a small string
Roundtrip_Test (Test, Dictionary,
"foobar",
To_SEA ("cX5adV"));
-- foobar
Roundtrip_Test (Test, Dictionary,
"the end",
To_SEA ("BdmBBX+/kB"));
-- the en<d >
Roundtrip_Test (Test, Dictionary,
"not-a-g00d-Exampl333",
To_SEA ("sa2/01SYtcGMwQWLTsYVdbxK"));
-- no< t-a -g0 0d->Exampl333
-- t-a 001011_10 1011_0100 10_000110
-- -g0 101101_00 1110_0110 00_001100
-- 0d- 000011_00 0010_0110 10_110100
Roundtrip_Test (Test, Dictionary,
"Smaz is a simple compression library",
To_SEA ("0xlVsA0BiBocTauZmAEbjbGXocFbvAdYGcec"));
-- Smaz is a simple compression library
Roundtrip_Test (Test, Dictionary,
"Nothing is more difficult, and therefore more precious, "
& "than to be able to decide",
To_SEA ("0vBdpYoBuYwAJbmBiWTXeYfdzCkAha3AGYKccXKcwAJbmBjb2WqYmd+/sA"
-- Nothing is more difficult, and therefore more precious< ,>
& "3ACYvBIdlAmBNVuZ3AwBeWIWeW"));
-- than to be able to decide
Roundtrip_Test (Test, Dictionary,
"this is an example of what works very well with smaz",
To_SEA ("BduYsA0BZVoAieTauZyAnBPefV6AJbiZ5AFX6BMe1Z6AvYpBsclV"));
-- this is an example of what works very well with smaz
Roundtrip_Test (Test, Dictionary,
"1000 numbers 2000 will 10 20 30 compress very little",
To_SEA ("IH+AyaFaFX0BsI+AQe1ZBA+AUEDA+AOWTaKcyc5AFX6ByZNduZ"));
-- 1000 numbers 2*0 will 10 20 30 compress very little",
Roundtrip_Test (Test, Dictionary,
": : : :",
To_SEA ("4/6AiOgoDI6A"));
-- :_: 010111_00 0000_0100 01_011100
-- _:_ 000001_00 0101_1100 00_000100
-- : 010111_00 0000
Roundtrip_Test (Test, Dictionary,
(1 .. 4096 + 36 => ':'),
To_SEA ("////" & Ada.Strings.Fixed."*" (1377, "6ojO") & "+/6A"));
-- ::: 010111_00 0101_1100 01_011100
exception
when Error : others => Test.Report_Exception (Error);
end Sample_Strings_VLV_4096;
procedure Sample_Strings_VLV_4096 (Report : in out NT.Reporter'Class) is
begin
Sample_Strings_VLV_4096 (Report, Dictionary_4096 (True));
end Sample_Strings_VLV_4096;
procedure Test_Validity_4096
(Report : in out NT.Reporter'Class;
Dictionary : in Smaz_4096.Dictionary)
is
Test : NT.Test := Report.Item ("Test dictionary validity");
begin
if not Smaz_4096.Is_Valid (Dictionary) then
Test.Fail;
end if;
exception
when Error : others => Test.Report_Exception (Error);
end Test_Validity_4096;
procedure Test_Validity_4096 (Report : in out NT.Reporter'Class) is
begin
Test_Validity_4096 (Report, Dictionary_4096 (False));
Test_Validity_4096 (Report, Dictionary_4096 (True));
end Test_Validity_4096;
------------------------------
-- Individual Base-64 Tests --
------------------------------
procedure Impure_Stream_64 (Report : in out NT.Reporter'Class) is
Test : NT.Test := Report.Item ("Input stream with non-base-64 symbols");
begin
declare
CRLF : constant String := (Character'Val (13), Character'Val (10));
Input : constant Ada.Streams.Stream_Element_Array
:= To_SEA ("090kTgIW enLK3NFE FAEKs/Ao" & CRLF
& "92dAFAzo +iBF1Sep HOvDJB0=");
Output : constant String := Smaz_64.Decompress (Dict_64, Input);
Expected : constant String
:= "'49 bytes of data to show a verbatim count issue'";
begin
if Output /= Expected then
Test.Fail ("Bad decompression");
Test.Info ("Found: """ & Output & '"');
Test.Info ("Expected:""" & Expected & '"');
end if;
end;
exception
when Error : others => Test.Report_Exception (Error);
end Impure_Stream_64;
procedure Sample_Strings_64 (Report : in out NT.Reporter'Class) is
Test : NT.Test := Report.Item ("Roundtrip on sample strings");
begin
Roundtrip_Test (Test, Dict_64,
"Simple Test",
To_SEA ("+TBGSVYA+UBQE"));
-- <S>imp* <T>*t
Roundtrip_Test (Test, Dict_64,
"SiT",
To_SEA ("/ATlGV"));
-- <SiT> smaller than <S>i<T> ("+TBG+UB")
Roundtrip_Test (Test, Dict_64,
"sIMple TEST_WITH_14_B",
To_SEA ("D9J1EVYA8UVETR1XXlEVI9VM08lQ"));
-- s<IM>p* <TE ST_ WIT H_1 4_B>
-- TE 001010_10 1010_0010 00
-- ST_ 110010_10 0010_1010 11_111010
-- WIT 111010_10 1001_0010 00_101010
-- H_1 000100_10 1111_1010 10_001100
-- 4_B 001011_00 1111_1010 01_000010
Roundtrip_Test (Test, Dict_64,
"'7B_Verbatim'",
To_SEA ("0+3IC9lVlJnYF1S0"));
-- '<7B_Verb >a*m'
-- 7 111011_00 0100
-- B_V 010000_10 1111_1010 01_101010
-- erb 101001_10 0100_1110 01_000110
-- "erb" could have been encoded separately as "o+iB", which has
-- the same length, but the tie is broken in favor of the longer
-- verbatim fragment to help with corner cases.
Roundtrip_Test (Test, Dict_64,
"'49 bytes of data to show a verbatim count issue'",
To_SEA ("090kTgIWenLK3NFEFAEKs/Ao92dAFAzo+iBF1SepHOvDJB0"));
-- '<49 by >tsof_ata_to_< how>_a_ve<b>atm_ontisue'
-- e_ d s r i cu _s
-- 49 001011_00 1001_1100 10
-- by 000001_00 0100_0110 10_011110
-- how 000101_10 1111_0110 11_101110
-- b 010001_10 0000
Roundtrip_Test (Test, Dict_64,
Character'Val (16#C3#) & Character'Val (16#A9#) & 'v'
& Character'Val (16#C3#) & Character'Val (16#A8#) & "nement",
To_SEA ("Uz9DjKHBi"));
-- év<è >nement
-- è 110000_11 0001_0101 00
Roundtrip_Test (Test, Dict_64,
"12345345345345345345345345",
To_SEA ("8xIzzQTNzQTNzQTNzQTNzQTNzQTNzQTN/AzQTN"));
-- Smallest 3n+2 that requires multiple verbatim blocks
-- 12 100011_00 0100_1100 nn
-- 345 110011_00 0010_1100 10_101100
exception
when Error : others => Test.Report_Exception (Error);
end Sample_Strings_64;
procedure Sample_Strings_VLV_64 (Report : in out NT.Reporter'Class) is
Test : NT.Test := Report.Item
("Roundtrip on sample strings with variable-length verbatim");
begin
Roundtrip_Test (Test, Dict_64_V,
"Simple Test",
To_SEA ("+TBGSVYA+UBQE"));
-- <S>imp* <T>*t
Roundtrip_Test (Test, Dict_64_V,
"SiT",
To_SEA ("8TlGV"));
-- <SiT> smaller than <S>i<T> ("+TBG+UB")
Roundtrip_Test (Test, Dict_64_V,
"sIMple TEST_WITH_14_B",
To_SEA ("D9J1EVYA/KUVETR1XXlEVI9VM08lQ"));
-- s<IM>p* < TE ST_ WIT H_1 4_B>
-- TE 001010_10 1010_0010 00
-- ST_ 110010_10 0010_1010 11_111010
-- WIT 111010_10 1001_0010 00_101010
-- H_1 000100_10 1111_1010 10_001100
-- 4_B 001011_00 1111_1010 01_000010
Roundtrip_Test (Test, Dict_64_V,
"'7B_Verbatim'",
To_SEA ("0/D3AC9lVlJnYF1S0"));
-- '< 7B_Verb >a*m'
-- 7 111011_00 0000
-- B_V 010000_10 1111_1010 01_101010
-- erb 101001_10 0100_1110 01_000110
exception
when Error : others => Test.Report_Exception (Error);
end Sample_Strings_VLV_64;
procedure Test_Validity_64 (Report : in out NT.Reporter'Class) is
Test : NT.Test := Report.Item ("Test dictionary validity");
begin
if not Natools.Smaz_64.Is_Valid (Dict_64) then
Test.Fail;
end if;
if not Natools.Smaz_64.Is_Valid (Dict_64_V) then
Test.Fail;
end if;
exception
when Error : others => Test.Report_Exception (Error);
end Test_Validity_64;
end Natools.Smaz_Tests;
|
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- SQL Database Access --
-- --
-- Runtime Library 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$
------------------------------------------------------------------------------
-- This package for internal use only.
------------------------------------------------------------------------------
with Matreshka.Internals.SQL_Drivers;
package SQL.Queries.Internals is
-- function Internal
-- (Self : SQL_Query'Class)
-- return Matreshka.Internals.SQL_Queries.Query_Access;
-- pragma Inline (Internal);
-- Returns internal object. Reference counter is untouched.
function Wrap
(Data : not null Matreshka.Internals.SQL_Drivers.Query_Access)
return SQL_Query;
-- Wrap specified internal object into user's object. Reference counter is
-- untouched.
end SQL.Queries.Internals;
|
-- Copyright (c) 2020-2021 Bartek thindil Jasicki <thindil@laeran.pl>
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
with Ada.Characters.Latin_1; use Ada.Characters.Latin_1;
with Ada.Strings; use Ada.Strings;
with Ada.Strings.Fixed; use Ada.Strings.Fixed;
with Tcl.Ada; use Tcl.Ada;
with Tcl.Tk.Ada; use Tcl.Tk.Ada;
with Tcl.Tk.Ada.Grid;
with Tcl.Tk.Ada.Widgets; use Tcl.Tk.Ada.Widgets;
with Tcl.Tk.Ada.Widgets.TtkButton; use Tcl.Tk.Ada.Widgets.TtkButton;
with Tcl.Tk.Ada.Widgets.TtkEntry.TtkSpinBox;
use Tcl.Tk.Ada.Widgets.TtkEntry.TtkSpinBox;
with Tcl.Tk.Ada.Widgets.TtkFrame; use Tcl.Tk.Ada.Widgets.TtkFrame;
with Tcl.Tk.Ada.Widgets.TtkLabel; use Tcl.Tk.Ada.Widgets.TtkLabel;
with Tcl.Tk.Ada.Winfo; use Tcl.Tk.Ada.Winfo;
with Tcl.Tklib.Ada.Tooltip; use Tcl.Tklib.Ada.Tooltip;
with CoreUI; use CoreUI;
with Crew; use Crew;
with Dialogs; use Dialogs;
with Game; use Game;
with Maps.UI; use Maps.UI;
with Ships; use Ships;
with Ships.Movement; use Ships.Movement;
with Utils.UI; use Utils.UI;
package body WaitMenu is
function Show_Wait_Command
(ClientData: Integer; Interp: Tcl.Tcl_Interp; Argc: Interfaces.C.int;
Argv: CArgv.Chars_Ptr_Ptr) return Interfaces.C.int is
pragma Unreferenced(ClientData, Argc, Argv);
WaitDialog: Ttk_Frame := Get_Widget(".gameframe.wait", Interp);
Button: Ttk_Button;
AmountBox: Ttk_SpinBox;
AmountLabel: Ttk_Label;
NeedHealing, NeedRest: Boolean := False;
procedure AddButton(Time: Positive) is
begin
Button :=
Create
(WaitDialog & ".wait" & Trim(Positive'Image(Time), Left),
"-text {Wait" & Positive'Image(Time) & " minute" &
(if Time > 1 then "s" else "") & "} -command {Wait" &
Positive'Image(Time) & "}");
Tcl.Tk.Ada.Grid.Grid
(Button,
"-sticky we -columnspan 3 -padx 5" &
(if Time = 1 then " -pady {5 0}" else ""));
Bind(Button, "<Escape>", "{CloseDialog " & WaitDialog & ";break}");
Add
(Button,
"Wait in place for" & Positive'Image(Time) & " minute" &
(if Time > 1 then "s" else ""));
end AddButton;
begin
if Winfo_Get(WaitDialog, "exists") = "1" then
Button := Get_Widget(WaitDialog & ".frame.close");
if Invoke(Button) /= "" then
return TCL_ERROR;
end if;
return TCL_OK;
end if;
WaitDialog :=
Create_Dialog
(Name => ".gameframe.wait", Title => "Wait in place", Columns => 3);
AddButton(1);
AddButton(5);
AddButton(10);
AddButton(15);
AddButton(30);
Button :=
Create
(WaitDialog & ".wait1h", "-text {Wait 1 hour} -command {Wait 60}");
Tcl.Tk.Ada.Grid.Grid(Button, "-sticky we -columnspan 3 -padx 5");
Add(Button, "Wait in place for 1 hour");
Bind(Button, "<Escape>", "{CloseDialog " & WaitDialog & ";break}");
Button :=
Create(WaitDialog & ".wait", "-text Wait -command {Wait amount}");
Tcl.Tk.Ada.Grid.Grid(Button, "-padx {5 0}");
Bind(Button, "<Escape>", "{CloseDialog " & WaitDialog & ";break}");
Add
(Button,
"Wait in place for the selected amount of minutes:" & LF &
"from 1 to 1440 (the whole day)");
AmountBox :=
Create
(WaitDialog & ".amount",
"-from 1.0 -to 1440 -width 6 -validate key -validatecommand {ValidateSpinbox %W %P}");
Tcl.Tk.Ada.Grid.Grid(AmountBox, "-row 7 -column 1");
Bind(AmountBox, "<Escape>", "{CloseDialog " & WaitDialog & ";break}");
Set(AmountBox, "1");
Add
(AmountBox,
"Wait in place for the selected amount of minutes:" & LF &
"from 1 to 1440 (the whole day)");
AmountLabel :=
Create(WaitDialog & ".mins", "-text minutes. -takefocus 0");
Tcl.Tk.Ada.Grid.Grid(AmountLabel, "-row 7 -column 2 -padx {0 5}");
Check_Crew_Rest_Loop :
for I in Player_Ship.Crew.First_Index .. Player_Ship.Crew.Last_Index loop
if Player_Ship.Crew(I).Tired > 0 and
Player_Ship.Crew(I).Order = Rest then
NeedRest := True;
end if;
if Player_Ship.Crew(I).Health in 1 .. 99 and
Player_Ship.Crew(I).Order = Rest then
Modules_Loop :
for Module of Player_Ship.Modules loop
if Module.M_Type = CABIN then
for Owner of Module.Owner loop
if Owner = I then
NeedHealing := True;
exit Modules_Loop;
end if;
end loop;
end if;
end loop Modules_Loop;
end if;
end loop Check_Crew_Rest_Loop;
if NeedRest then
Button :=
Create
(WaitDialog & ".rest",
"-text {Wait until crew is rested} -command {Wait rest}");
Tcl.Tk.Ada.Grid.Grid(Button, "-sticky we -columnspan 3 -padx 5");
Bind(Button, "<Escape>", "{CloseDialog " & WaitDialog & ";break}");
Add(Button, "Wait in place until the whole ship's crew is rested.");
end if;
if NeedHealing then
Button :=
Create
(WaitDialog & ".heal",
"-text {Wait until crew is healed} -command {Wait heal}");
Tcl.Tk.Ada.Grid.Grid(Button, "-sticky we -columnspan 3 -padx 5");
Bind(Button, "<Escape>", "{CloseDialog " & WaitDialog & ";break}");
Add
(Button,
"Wait in place until the whole ship's crew is healed." & LF &
"Can take a large amount of time.");
end if;
Button :=
Create
(WaitDialog & ".close",
"-text {Close} -command {CloseDialog " & WaitDialog & "}");
Tcl.Tk.Ada.Grid.Grid
(Button, "-sticky we -columnspan 3 -padx 5 -pady {0 5}");
Bind(Button, "<Escape>", "{CloseDialog " & WaitDialog & ";break}");
Add(Button, "Close dialog \[Escape\]");
Focus(Button);
Bind(Button, "<Tab>", "{focus " & WaitDialog & ".wait1;break}");
Show_Dialog(Dialog => WaitDialog, Relative_Y => 0.15);
return TCL_OK;
end Show_Wait_Command;
-- ****o* WaitMenu/WaitMenu.Wait_Command
-- FUNCTION
-- Wait the selected amount of time
-- PARAMETERS
-- ClientData - Custom data send to the command. Unused
-- Interp - Tcl interpreter in which command was executed.
-- Argc - Number of arguments passed to the command. Unused
-- Argv - Values of arguments passed to the command. Unused
-- RESULT
-- This function always return TCL_OK
-- COMMANDS
-- Wait
-- SOURCE
function Wait_Command
(ClientData: Integer; Interp: Tcl.Tcl_Interp; Argc: Interfaces.C.int;
Argv: CArgv.Chars_Ptr_Ptr) return Interfaces.C.int with
Convention => C;
-- ****
function Wait_Command
(ClientData: Integer; Interp: Tcl.Tcl_Interp; Argc: Interfaces.C.int;
Argv: CArgv.Chars_Ptr_Ptr) return Interfaces.C.int is
pragma Unreferenced(ClientData, Argc);
TimeNeeded: Natural := 0;
CloseButton: constant Ttk_Button :=
Get_Widget(".gameframe.wait.close", Interp);
AmountBox: constant Ttk_SpinBox :=
Get_Widget(".gameframe.wait.amount", Interp);
CurrentFrame: Ttk_Frame :=
Get_Widget(Main_Paned & ".shipinfoframe", Interp);
begin
if CArgv.Arg(Argv, 1) = "1" then
Update_Game(1);
WaitInPlace(1);
elsif CArgv.Arg(Argv, 1) = "5" then
Update_Game(5);
WaitInPlace(5);
elsif CArgv.Arg(Argv, 1) = "10" then
Update_Game(10);
WaitInPlace(10);
elsif CArgv.Arg(Argv, 1) = "15" then
Update_Game(15);
WaitInPlace(15);
elsif CArgv.Arg(Argv, 1) = "30" then
Update_Game(30);
WaitInPlace(30);
elsif CArgv.Arg(Argv, 1) = "60" then
Update_Game(60);
WaitInPlace(60);
elsif CArgv.Arg(Argv, 1) = "rest" then
WaitForRest;
elsif CArgv.Arg(Argv, 1) = "heal" then
Check_Crew_Heal_Loop :
for I in Player_Ship.Crew.Iterate loop
if Player_Ship.Crew(I).Health in 1 .. 99 and
Player_Ship.Crew(I).Order = Rest then
Modules_Loop :
for Module of Player_Ship.Modules loop
if Module.M_Type = CABIN then
for Owner of Module.Owner loop
if Owner = Crew_Container.To_Index(I) then
if TimeNeeded <
(100 - Player_Ship.Crew(I).Health) * 15 then
TimeNeeded :=
(100 - Player_Ship.Crew(I).Health) * 15;
end if;
exit Modules_Loop;
end if;
end loop;
end if;
end loop Modules_Loop;
end if;
end loop Check_Crew_Heal_Loop;
if TimeNeeded > 0 then
Update_Game(TimeNeeded);
WaitInPlace(TimeNeeded);
else
return TCL_OK;
end if;
elsif CArgv.Arg(Argv, 1) = "amount" then
Update_Game(Positive'Value(Get(AmountBox)));
WaitInPlace(Positive'Value(Get(AmountBox)));
end if;
UpdateHeader;
Update_Messages;
if Winfo_Get(CurrentFrame, "exists") = "1"
and then Winfo_Get(CurrentFrame, "ismapped") = "1" then
Tcl_Eval(Interp, "ShowShipInfo 1");
else
CurrentFrame := Get_Widget(Main_Paned & ".knowledgeframe", Interp);
if Winfo_Get(CurrentFrame, "exists") = "1"
and then Winfo_Get(CurrentFrame, "ismapped") = "1" then
Tcl_Eval(Interp, "ShowKnowledge 1");
else
DrawMap;
end if;
end if;
if Invoke(CloseButton) /= "" then
return TCL_ERROR;
end if;
return TCL_OK;
end Wait_Command;
procedure AddCommands is
begin
Add_Command("ShowWait", Show_Wait_Command'Access);
Add_Command("Wait", Wait_Command'Access);
end AddCommands;
end WaitMenu;
|
with SimpleAda.IO;
package IO renames SimpleAda.IO;
|
pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with Interfaces.C.Extensions;
package registers_hpp is
type Register is record
value : aliased unsigned_char; -- ./registers.hpp:4
end record;
pragma Convention (C_Pass_By_Copy, Register); -- ./registers.hpp:3
type DRegister is record
value : aliased unsigned_short; -- ./registers.hpp:8
end record;
pragma Convention (C_Pass_By_Copy, DRegister); -- ./registers.hpp:7
type Flag is
(ZERO,
SUBTRACT,
HALFCARRY,
CARRY);
pragma Convention (C, Flag); -- ./registers.hpp:12
--enum Flag { ZERO, SUBTRACT, HALFCARRY, CARRY };
package Class_FlagRegister is
type FlagRegister is limited record
value : aliased unsigned_char; -- ./registers.hpp:24
end record;
pragma Import (CPP, FlagRegister);
function New_FlagRegister return FlagRegister; -- ./registers.hpp:16
pragma CPP_Constructor (New_FlagRegister, "_ZN12FlagRegisterC1Ev");
procedure setFlag (this : access FlagRegister; the_flag : Flag); -- ./registers.hpp:18
pragma Import (CPP, setFlag, "_ZN12FlagRegister7setFlagE4Flag");
procedure unsetFlag (this : access FlagRegister; the_flag : Flag); -- ./registers.hpp:19
pragma Import (CPP, unsetFlag, "_ZN12FlagRegister9unsetFlagE4Flag");
function getFlag (this : access FlagRegister; the_flag : Flag) return Extensions.bool; -- ./registers.hpp:20
pragma Import (CPP, getFlag, "_ZN12FlagRegister7getFlagE4Flag");
function get_value (this : access FlagRegister) return unsigned_char; -- ./registers.hpp:21
pragma Import (CPP, get_value, "_ZN12FlagRegister9get_valueEv");
procedure set_value (this : access FlagRegister; val : unsigned_char); -- ./registers.hpp:22
pragma Import (CPP, set_value, "_ZN12FlagRegister9set_valueEh");
end;
use Class_FlagRegister;
end registers_hpp;
|
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
package body Program.Nodes.Root_Types is
function Create return Root_Type is
begin
return Result : Root_Type := (Enclosing_Element => null)
do
Initialize (Result);
end return;
end Create;
function Create
(Is_Part_Of_Implicit : Boolean := False;
Is_Part_Of_Inherited : Boolean := False;
Is_Part_Of_Instance : Boolean := False)
return Implicit_Root_Type is
begin
return Result : Implicit_Root_Type :=
(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 Is_Part_Of_Implicit
(Self : Implicit_Root_Type)
return Boolean is
begin
return Self.Is_Part_Of_Implicit;
end Is_Part_Of_Implicit;
overriding function Is_Part_Of_Inherited
(Self : Implicit_Root_Type)
return Boolean is
begin
return Self.Is_Part_Of_Inherited;
end Is_Part_Of_Inherited;
overriding function Is_Part_Of_Instance
(Self : Implicit_Root_Type)
return Boolean is
begin
return Self.Is_Part_Of_Instance;
end Is_Part_Of_Instance;
procedure Initialize (Self : aliased in out Base_Root_Type'Class) is
begin
null;
end Initialize;
overriding function Is_Root_Type_Element
(Self : Base_Root_Type)
return Boolean is
pragma Unreferenced (Self);
begin
return True;
end Is_Root_Type_Element;
overriding function Is_Type_Definition_Element
(Self : Base_Root_Type)
return Boolean is
pragma Unreferenced (Self);
begin
return True;
end Is_Type_Definition_Element;
overriding function Is_Definition_Element
(Self : Base_Root_Type)
return Boolean is
pragma Unreferenced (Self);
begin
return True;
end Is_Definition_Element;
overriding procedure Visit
(Self : not null access Base_Root_Type;
Visitor : in out Program.Element_Visitors.Element_Visitor'Class) is
begin
Visitor.Root_Type (Self);
end Visit;
overriding function To_Root_Type_Text
(Self : aliased in out Root_Type)
return Program.Elements.Root_Types.Root_Type_Text_Access is
begin
return Self'Unchecked_Access;
end To_Root_Type_Text;
overriding function To_Root_Type_Text
(Self : aliased in out Implicit_Root_Type)
return Program.Elements.Root_Types.Root_Type_Text_Access is
pragma Unreferenced (Self);
begin
return null;
end To_Root_Type_Text;
end Program.Nodes.Root_Types;
|
with Ada.Text_IO; use Ada.Text_IO;
procedure Test is
type R is record A, B: Character; end record;
X: R;
function F return R is
begin
return X;
end;
procedure Update(C: in out Character) is
begin
C := '0';
end;
begin
update(F.A);
end Test;
|
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Strings.Unbounded;
procedure Main is
package SU renames Ada.Strings.Unbounded;
procedure I_Return_String(Sun : out SU.Unbounded_String) is
begin
Sun := SU.To_Unbounded_String("Hellew, I am an Ada string.");
end I_Return_String;
SUnb : SU.Unbounded_String;
begin
I_Return_String(SUnb);
Put_Line("Output string is here ==>" & SU.To_String(SUnb) & "<==");
end Main;
|
-- This spec has been automatically generated from STM32F0xx.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with System;
package STM32_SVD.PWR is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype CR_LPDS_Field is STM32_SVD.Bit;
subtype CR_PDDS_Field is STM32_SVD.Bit;
subtype CR_CWUF_Field is STM32_SVD.Bit;
subtype CR_CSBF_Field is STM32_SVD.Bit;
subtype CR_PVDE_Field is STM32_SVD.Bit;
subtype CR_PLS_Field is STM32_SVD.UInt3;
subtype CR_DBP_Field is STM32_SVD.Bit;
subtype CR_FPDS_Field is STM32_SVD.Bit;
-- 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#;
-- unspecified
Reserved_10_31 : STM32_SVD.UInt22 := 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;
Reserved_10_31 at 0 range 10 .. 31;
end record;
subtype CSR_WUF_Field is STM32_SVD.Bit;
subtype CSR_SBF_Field is STM32_SVD.Bit;
subtype CSR_PVDO_Field is STM32_SVD.Bit;
subtype CSR_BRR_Field is STM32_SVD.Bit;
subtype CSR_EWUP_Field is STM32_SVD.Bit;
subtype CSR_BRE_Field is STM32_SVD.Bit;
-- 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 : STM32_SVD.UInt4 := 16#0#;
-- Enable WKUP pin
EWUP : CSR_EWUP_Field := 16#0#;
-- Backup regulator enable
BRE : CSR_BRE_Field := 16#0#;
-- unspecified
Reserved_10_31 : STM32_SVD.UInt22 := 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_31 at 0 range 10 .. 31;
end record;
-----------------
-- Peripherals --
-----------------
-- Power control
type PWR_Peripheral is record
-- power control register
CR : aliased CR_Register;
-- power control/status register
CSR : aliased CSR_Register;
end record
with Volatile;
for PWR_Peripheral use record
CR at 16#0# range 0 .. 31;
CSR at 16#4# range 0 .. 31;
end record;
-- Power control
PWR_Periph : aliased PWR_Peripheral
with Import, Address => System'To_Address (16#40007000#);
end STM32_SVD.PWR;
|
-----------------------------------------------------------------------
-- awa-mail-clients-aws_smtp -- Mail client implementation on top of AWS SMTP client
-- Copyright (C) 2012, 2016 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.Strings.Unbounded;
with Ada.Finalization;
with Util.Properties;
with AWS.SMTP;
with AWS.SMTP.Authentication.Plain;
-- The <b>AWA.Mail.Clients.AWS_SMTP</b> package provides an implementation of the
-- mail client interfaces on top of AWS SMTP client API.
package AWA.Mail.Clients.AWS_SMTP is
NAME : constant String := "smtp";
-- ------------------------------
-- Mail Message
-- ------------------------------
-- The <b>Mail_Message</b> represents an abstract mail message that can be initialized
-- before being sent.
type AWS_Mail_Message is new Ada.Finalization.Limited_Controlled and Mail_Message with private;
type AWS_Mail_Message_Access is access all AWS_Mail_Message'Class;
-- Set the <tt>From</tt> part of the message.
overriding
procedure Set_From (Message : in out AWS_Mail_Message;
Name : in String;
Address : in String);
-- Add a recipient for the message.
overriding
procedure Add_Recipient (Message : in out AWS_Mail_Message;
Kind : in Recipient_Type;
Name : in String;
Address : in String);
-- Set the subject of the message.
overriding
procedure Set_Subject (Message : in out AWS_Mail_Message;
Subject : in String);
-- Set the body of the message.
overriding
procedure Set_Body (Message : in out AWS_Mail_Message;
Content : in String);
-- Send the email message.
overriding
procedure Send (Message : in out AWS_Mail_Message);
-- Deletes the mail message.
overriding
procedure Finalize (Message : in out AWS_Mail_Message);
-- ------------------------------
-- Mail Manager
-- ------------------------------
-- The <b>Mail_Manager</b> is the entry point to create a new mail message
-- and be able to send it.
type AWS_Mail_Manager is new Mail_Manager with private;
type AWS_Mail_Manager_Access is access all AWS_Mail_Manager'Class;
-- Create a SMTP based mail manager and configure it according to the properties.
function Create_Manager (Props : in Util.Properties.Manager'Class) return Mail_Manager_Access;
-- Create a new mail message.
overriding
function Create_Message (Manager : in AWS_Mail_Manager) return Mail_Message_Access;
private
type Recipients_Access is access all AWS.SMTP.Recipients;
type AWS_Mail_Message is new Ada.Finalization.Limited_Controlled and Mail_Message with record
Manager : AWS_Mail_Manager_Access;
From : AWS.SMTP.E_Mail_Data;
Subject : Ada.Strings.Unbounded.Unbounded_String;
Content : Ada.Strings.Unbounded.Unbounded_String;
To : Recipients_Access := null;
end record;
type AWS_Mail_Manager is new Mail_Manager with record
Self : AWS_Mail_Manager_Access;
Server : AWS.SMTP.Receiver;
Creds : aliased AWS.SMTP.Authentication.Plain.Credential;
Port : Positive := 25;
Enable : Boolean := True;
Secure : Boolean := False;
Auth : Boolean := False;
end record;
procedure Initialize (Client : in out AWS_Mail_Manager'Class;
Props : in Util.Properties.Manager'Class);
end AWA.Mail.Clients.AWS_SMTP;
|
------------------------------------------------------------------------------
-- --
-- THIS IS AN AUTOMATICALLY GENERATED FILE! DO NOT EDIT! --
-- --
-- WAVEFILES --
-- --
-- Wavefile data I/O operations --
-- --
-- The MIT License (MIT) --
-- --
-- Copyright (c) 2015 -- 2020 Gustavo A. Hoffmann --
-- --
-- Permission is hereby granted, free of charge, to any person obtaining --
-- a copy of this software and associated documentation files (the --
-- "Software"), to deal in the Software without restriction, including --
-- without limitation the rights to use, copy, modify, merge, publish, --
-- distribute, sublicense, and / or sell copies of the Software, and to --
-- permit persons to whom the Software is furnished to do so, subject to --
-- the following conditions: --
-- --
-- The above copyright notice and this permission notice shall be --
-- included in all copies or substantial portions of the Software. --
-- --
-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, --
-- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF --
-- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. --
-- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY --
-- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, --
-- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE --
-- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. --
------------------------------------------------------------------------------
#if (NUM_TYPE = "FLOAT") then
with Audio.Wavefiles.Generic_Float_Wav_IO;
#else
with Audio.Wavefiles.Generic_Fixed_Wav_IO;
#end if;
#if (NUM_TYPE = "FLOAT") and then (NUM_TYPE_2 = "FLOAT") then
package body Audio.Wavefiles.Generic_Float_Wav_Float_PCM_IO is
#elsif (NUM_TYPE = "FLOAT") and then (NUM_TYPE_2 = "FIXED") then
package body Audio.Wavefiles.Generic_Float_Wav_Fixed_PCM_IO is
#elsif (NUM_TYPE = "FIXED") and then (NUM_TYPE_2 = "FLOAT") then
package body Audio.Wavefiles.Generic_Fixed_Wav_Float_PCM_IO is
#elsif (NUM_TYPE = "FIXED") and then (NUM_TYPE_2 = "FIXED") then
package body Audio.Wavefiles.Generic_Fixed_Wav_Fixed_PCM_IO is
#end if;
type Wav_MC_Sample is array (Channel_Range range <>) of Wav_Sample;
#if (NUM_TYPE = "FLOAT") then
package Wav_IO is new Audio.Wavefiles.Generic_Float_Wav_IO
#else
package Wav_IO is new Audio.Wavefiles.Generic_Fixed_Wav_IO
#end if;
(Wav_Sample => Wav_Sample,
Channel_Range => Channel_Range,
Wav_MC_Sample => Wav_MC_Sample);
use Wav_IO;
procedure Convert (Wav : Wav_MC_Sample;
PCM : out PCM_MC_Sample)
with Inline;
procedure Convert (PCM : PCM_MC_Sample;
Wav : out Wav_MC_Sample)
with Inline;
function Convert (Wav : Wav_MC_Sample) return PCM_MC_Sample
with Inline;
function Convert (PCM : PCM_MC_Sample) return Wav_MC_Sample
with Inline;
pragma Unreferenced (Convert);
#if (NUM_TYPE = "FLOAT") and then (NUM_TYPE_2 = "FIXED") then
function Saturate (Wav : Wav_Sample) return PCM_Sample
with Inline;
#end if;
#if (NUM_TYPE = "FIXED") and then (NUM_TYPE_2 = "FLOAT") then
function Saturate (PCM : PCM_Sample) return Wav_Sample
with Inline;
#end if;
#if (NUM_TYPE = "FLOAT") and then (NUM_TYPE_2 = "FIXED") then
--------------
-- Saturate --
--------------
function Saturate (Wav : Wav_Sample) return PCM_Sample is
begin
if Wav > Wav_Sample (PCM_Sample'Last) then
return PCM_Sample'Last;
elsif Wav < Wav_Sample (PCM_Sample'First) then
return PCM_Sample'First;
else
return PCM_Sample (Wav);
end if;
end Saturate;
#end if;
#if (NUM_TYPE = "FIXED") and then (NUM_TYPE_2 = "FLOAT") then
--------------
-- Saturate --
--------------
function Saturate (PCM : PCM_Sample) return Wav_Sample is
begin
if PCM > PCM_Sample (Wav_Sample'Last) then
return Wav_Sample'Last;
elsif PCM < PCM_Sample (Wav_Sample'First) then
return Wav_Sample'First;
else
return Wav_Sample (PCM);
end if;
end Saturate;
#end if;
-------------
-- Convert --
-------------
procedure Convert (Wav : Wav_MC_Sample;
PCM : out PCM_MC_Sample) is
begin
for I in PCM'Range loop
#if (NUM_TYPE = "FLOAT") and then (NUM_TYPE_2 = "FIXED") then
PCM (I) := Saturate (Wav (I));
#else
PCM (I) := PCM_Sample (Wav (I));
#end if;
end loop;
end Convert;
-------------
-- Convert --
-------------
procedure Convert (PCM : PCM_MC_Sample;
Wav : out Wav_MC_Sample) is
begin
for I in Wav'Range loop
#if (NUM_TYPE = "FIXED") and then (NUM_TYPE_2 = "FLOAT") then
Wav (I) := Saturate (PCM (I));
#else
Wav (I) := Wav_Sample (PCM (I));
#end if;
end loop;
end Convert;
-------------
-- Convert --
-------------
function Convert (Wav : Wav_MC_Sample) return PCM_MC_Sample is
begin
return PCM : PCM_MC_Sample (Wav'Range) do
Convert (Wav, PCM);
end return;
end Convert;
-------------
-- Convert --
-------------
function Convert (PCM : PCM_MC_Sample) return Wav_MC_Sample is
begin
return Wav : Wav_MC_Sample (PCM'Range) do
Convert (PCM, Wav);
end return;
end Convert;
---------
-- Get --
---------
function Get (WF : in out Wavefile) return PCM_MC_Sample is
Wav : constant Wav_MC_Sample := Get (WF);
PCM : constant PCM_MC_Sample := Convert (Wav);
begin
return PCM;
end Get;
---------
-- Get --
---------
procedure Get (WF : in out Wavefile;
PCM : out PCM_MC_Sample) is
Wav : Wav_MC_Sample (PCM'Range);
begin
Get (WF, Wav);
Convert (Wav, PCM);
end Get;
---------
-- Put --
---------
procedure Put (WF : in out Wavefile;
PCM : PCM_MC_Sample) is
Wav : Wav_MC_Sample (PCM'Range);
begin
Convert (PCM, Wav);
Put (WF, Wav);
end Put;
#if (NUM_TYPE = "FLOAT") and then (NUM_TYPE_2 = "FLOAT") then
end Audio.Wavefiles.Generic_Float_Wav_Float_PCM_IO;
#elsif (NUM_TYPE = "FLOAT") and then (NUM_TYPE_2 = "FIXED") then
end Audio.Wavefiles.Generic_Float_Wav_Fixed_PCM_IO;
#elsif (NUM_TYPE = "FIXED") and then (NUM_TYPE_2 = "FLOAT") then
end Audio.Wavefiles.Generic_Fixed_Wav_Float_PCM_IO;
#elsif (NUM_TYPE = "FIXED") and then (NUM_TYPE_2 = "FIXED") then
end Audio.Wavefiles.Generic_Fixed_Wav_Fixed_PCM_IO;
#end if;
|
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- G N A T . I O --
-- --
-- B o d y --
-- --
-- Copyright (C) 1995-2015, 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. --
-- --
------------------------------------------------------------------------------
-- zfp version of Put (C : Character)
separate (GNAT.IO)
procedure Put (C : Character) is
procedure Putchar (C : Integer);
pragma Import (C, Putchar, "putchar");
begin
Putchar (Character'Pos (C));
end Put;
|
-- Test QR least squares equation solving real valued square matrices.
with Ada.Numerics.Generic_elementary_functions;
with Givens_QR;
with Test_Matrices;
With Text_IO; use Text_IO;
procedure givens_qr_tst_3 is
type Real is digits 15;
subtype Index is Integer range 1..137;
subtype Row_Index is Index;
subtype Col_Index is Index;
Starting_Row : constant Row_Index := Index'First + 0;
Starting_Col : constant Col_Index := Index'First + 0;
Final_Row : constant Row_Index := Index'Last - 0;
Final_Col : constant Col_Index := Index'Last - 0;
type Matrix is array(Row_Index, Col_Index) of Real;
type Matrix_inv is array(Col_Index, Row_Index) of Real;
-- For inverses of A : Matrix; has shape of A_transpose.
type Matrix_normal is array(Col_Index, Col_Index) of Real;
-- For A_transpose * A: the Least Squares Normal Equations fit in here.
-- (A_transpose * A) * x = b are called the normal equations.
type Matrix_residual is array(Row_Index, Row_Index) of Real;
-- For A x A_transpose
--pragma Convention (Fortran, Matrix); --No! This QR prefers Ada convention.
package math is new Ada.Numerics.Generic_Elementary_Functions (Real);
use math;
package QR is new Givens_QR
(Real => Real,
R_Index => Index,
C_Index => Index,
A_Matrix => Matrix);
use QR;
-- QR exports Row_Vector and Col_Vector
package Make_Square_Matrix is new Test_Matrices (Real, Index, Matrix);
use Make_Square_Matrix;
package rio is new Float_IO(Real);
use rio;
subtype Longer_Real is Real; -- general case, and for best speed
--type Longer_Real is digits 18; -- 18 ok on intel, rarely useful
Min_Real :constant Real := 2.0 ** (Real'Machine_Emin/2 + Real'Machine_Emin/4);
Zero : constant Real := +0.0;
One : constant Real := +1.0;
Two : constant Real := +2.0;
--Desired_Matrix : Matrix_Id := Upper_Ones;
--Desired_Matrix : Matrix_Id := Lower_Ones;
--Desired_Matrix : Matrix_Id := All_Ones; -- singular
--Desired_Matrix : Matrix_Id := Zero_Cols_and_Rows; -- singular
--Desired_Matrix : Matrix_Id := Easy_Matrix;
--Desired_Matrix : Matrix_Id := Symmetric_Banded;
--Desired_Matrix : Matrix_Id := Pascal; -- eigval = x, 1/x all positive.
--Desired_Matrix : Matrix_Id := Forsythe_Symmetric; -- Small diag
--Desired_Matrix : Matrix_Id := Forsythe; -- eigs on circle of rad 2**(-m)
--Desired_Matrix : Matrix_Id := Small_Diagonal;
--Desired_Matrix : Matrix_Id := Zero_Diagonal_2;
--Desired_Matrix : Matrix_Id := Kahan;
--Desired_Matrix : Matrix_Id := Non_Diagonalizable; -- one eigval, one eigvec.
--Desired_Matrix : Matrix_Id := Peters_0; -- one small eig., but better than Moler
--Desired_Matrix : Matrix_Id := Peters_1; -- row pivoting likes this
--Desired_Matrix : Matrix_Id := Peters_2; -- max growth with row pivoting
--Desired_Matrix : Matrix_Id := Frank; -- eigenvals -> .25; at N=16, 64:1.00...0
--Desired_Matrix : Matrix_Id := Ring_Adjacency; -- singular at 4, 8, 12, 16, 24, 32 ..
--Desired_Matrix : Matrix_Id := Zero_Diagonal; -- Like Wilkinson, if N odd: 1 zero eig.
--Desired_Matrix : Matrix_Id := Wilkinson_minus; -- 1 zero eig N odd, else 1 small eig
--Desired_Matrix : Matrix_Id := Moler_0;
--Desired_Matrix : Matrix_Id := Moler_1;
--Desired_Matrix : Matrix_Id := Random;
--Desired_Matrix : Matrix_Id := Vandermonde; -- max size is 256 x 256; else overflows
--Desired_Matrix : Matrix_Id := Hilbert;
--Desired_Matrix : Matrix_Id := Ding_Dong; -- Eigs clustered near +/- Pi
A, R, A_lsq : Matrix;
A_inv_lsq : Matrix_inv;
A_x_A_inv_minus_I : Matrix_residual;
A_tr_x_Residual : Matrix_Normal; -- Col_Index x Col_Index
Q : Q_Matrix;
Err_in_Least_Squ_A, Frobenius_lsq_soln_err : Real;
Condition_Number_of_Least_Squ_A, Condition_Number_of_A : Real;
Sum : Longer_Real;
Scale : Col_Vector;
Permute : Permutation;
Cutoff_Threshold_1 : constant Real := Two**(-30);
Singularity_Cutoff_Threshold : Real;
--------------------
-- Frobenius_Norm --
--------------------
function Frobenius_Norm
(A : in Matrix_normal)
--Final_Row : in Index;
--Final_Col : in Index;
--Starting_Row : in Index;
--Starting_Col : in Index)
return Real
is
Max_A_Val : Real := Zero;
Sum, Scaling, tmp : Real := Zero;
begin
Max_A_Val := Zero;
for Row in Starting_Col .. Final_Col loop
for Col in Starting_Col .. Final_Col loop
if Max_A_Val < Abs A(Row, Col) then Max_A_Val := Abs A(Row, Col); end if;
end loop;
end loop;
Max_A_Val := Max_A_Val + Two ** (Real'Machine_Emin + 4);
Scaling := One / Max_A_Val;
Sum := Zero;
for Row in Starting_Col .. Final_Col loop
for Col in Starting_Col .. Final_Col loop
tmp := Scaling * A(Row, Col);
Sum := Sum + tmp * tmp;
end loop;
end loop;
return Sqrt (Sum) * Max_A_Val;
end Frobenius_Norm;
--------------------
-- Frobenius_Norm --
--------------------
function Frobenius_Norm
(A : in Matrix)
--Final_Row : in Index;
--Final_Col : in Index;
--Starting_Row : in Index;
--Starting_Col : in Index)
return Real
is
Max_A_Val : Real := Zero;
Sum, Scaling, tmp : Real := Zero;
begin
Max_A_Val := Zero;
for Row in Starting_Row .. Final_Row loop
for Col in Starting_Col .. Final_Col loop
if Max_A_Val < Abs A(Row, Col) then Max_A_Val := Abs A(Row, Col); end if;
end loop;
end loop;
Max_A_Val := Max_A_Val + Two ** (Real'Machine_Emin + 4);
Scaling := One / Max_A_Val;
Sum := Zero;
for Row in Starting_Row .. Final_Row loop
for Col in Starting_Col .. Final_Col loop
tmp := Scaling * A(Row, Col);
Sum := Sum + tmp * tmp;
end loop;
end loop;
return Sqrt (Sum) * Max_A_Val;
end Frobenius_Norm;
------------
-- Invert --
------------
-- Get Inverse of the Matrix:
procedure Get_Inverse
(R : in Matrix;
Q : in Q_Matrix;
Scale : in Col_Vector;
Permute : in Permutation;
Singularity_Cutoff : in Real;
A_inverse_lsq : out Matrix_inv) -- shape is A_transpose
is
Solution_Row_Vector : Row_Vector; -- X
Unit_Col_Vector : Col_Vector := (others => 0.0); -- B
-- We are going to solve for X in A*X = B
Final_Row : Row_Index renames Q.Final_Row;
Final_Col : Col_Index renames Q.Final_Col;
Starting_Row : Row_Index renames Q.Starting_Row;
Starting_Col : Col_Index renames Q.Starting_Col;
begin
A_inverse_lsq := (others => (others => Zero));
--new_line;
--for i in Starting_Row_Col..Max_Row_Col loop
--put(R(i,i));
--end loop;
for i in Starting_Row .. Final_Row loop
if i > Starting_Row then
Unit_Col_Vector(i-1) := 0.0;
end if;
Unit_Col_Vector(i) := 1.0;
-- Make all possible unit Col vectors: (Final_Row-Starting_Row+1) of them
QR_Solve
(X => Solution_Row_Vector,
B => Unit_Col_Vector,
R => R,
Q => Q,
Row_Scalings => Scale,
Col_Permutation => Permute,
Singularity_Cutoff => Singularity_Cutoff);
-- Solve equ. A*Solution_Row_Vector = Unit_Col_Vector (for Solution_Row...).
-- Q contains the Starting_Row, Final_Row, Starting_Col, etc.
for j in Starting_Col .. Final_Col loop
A_inverse_lsq (j,i) := Solution_Row_Vector(j);
end loop;
-- All vectors you multiply by A must be Row_Vectors,
-- So the cols of A_inv are Row_Vectors.
end loop;
end Get_Inverse;
procedure Get_Err_in_Least_Squares_A
(A : in Matrix;
R : in Matrix;
Q : in Q_Matrix;
Scale : in Col_Vector;
Permute : in Permutation;
Singularity_Cutoff : in Real;
A_lsq : out Matrix;
Err_in_Least_Squ_A : out Real;
Condition_Number_of_Least_Squ_A : out Real;
Condition_Number_of_A : out Real)
is
Max_Diag_Val_of_R : constant Real := Abs R(Starting_Col, Starting_Row);
Min_Allowed_Diag_Val_of_R : constant Real :=
Max_Diag_Val_of_R * Singularity_Cutoff;
Min_Diag_Val_of_Least_Squ_R : Real;
Least_Squares_Truncated_Final_Row : Row_Index := Final_Row; -- essential init
Product_Vector, Col_of_R : Col_Vector := (others => Zero);
Row : Row_Index;
Err_Matrix : Matrix := (others => (others => Zero));
Final_Row : Row_Index renames Q.Final_Row;
Final_Col : Col_Index renames Q.Final_Col;
Starting_Row : Row_Index renames Q.Starting_Row;
Starting_Col : Col_Index renames Q.Starting_Col;
begin
-- The Columns of R have been permuted; unpermute before comparison of A with Q*R
-- The Columns of R have been scaled. Before comparison of A with Q*R
-- Must unscale each col of R by multiplying them with 1/ScalePermute(Col).
Row := Starting_Row;
Find_Truncated_Final_Row:
for Col in Starting_Col .. Final_Col loop
Min_Diag_Val_of_Least_Squ_R := Abs R(Row, Col);
if Min_Diag_Val_of_Least_Squ_R < Min_Allowed_Diag_Val_of_R then
Least_Squares_Truncated_Final_Row := Row - 1;
Min_Diag_Val_of_Least_Squ_R := Abs R(Row-1, Col-1);
exit Find_Truncated_Final_Row;
end if;
if Row < Final_Row then Row := Row + 1; end if;
end loop Find_Truncated_Final_Row;
for Col in Starting_Col .. Final_Col loop
Col_of_R := (others => Zero);
for Row in Starting_Row .. Least_Squares_Truncated_Final_Row loop
Col_of_R(Row) := R(Row, Col);
end loop;
Product_Vector := Q_x_Col_Vector (Q, Col_of_R);
for Row in Starting_Row .. Final_Row loop
A_lsq(Row, Permute(Col))
:= Product_Vector(Row) / (Scale(Row) + Min_Real);
Err_Matrix(Row, Col) := A(Row, Permute(Col)) - A_lsq(Row, Permute(Col));
end loop;
end loop;
-- Froebenius norm fractional error = ||Err_Matrix|| / ||A||
Err_in_Least_Squ_A :=
Frobenius_Norm (Err_Matrix) / (Frobenius_Norm (A) + Min_Real);
Condition_Number_of_Least_Squ_A :=
Max_Diag_Val_of_R / (Min_Diag_Val_of_Least_Squ_R + Min_Real);
Condition_Number_of_A :=
Max_Diag_Val_of_R / (Abs R(Final_Row, Final_Col) + Min_Real);
end Get_Err_in_Least_Squares_A;
-----------
-- Pause --
-----------
procedure Pause (s0,s1,s2,s3,s4,s5,s6,s7,s8,s9,s10 : String := "") is
Continue : Character := ' ';
begin
New_Line;
if S0 /= "" then put_line (S0); end if;
if S1 /= "" then put_line (S1); end if;
if S2 /= "" then put_line (S2); end if;
if S3 /= "" then put_line (S3); end if;
if S4 /= "" then put_line (S4); end if;
if S5 /= "" then put_line (S5); end if;
if S6 /= "" then put_line (S6); end if;
if S7 /= "" then put_line (S7); end if;
if S8 /= "" then put_line (S8); end if;
if S9 /= "" then put_line (S9); end if;
if S10 /= "" then put_line (S10); end if;
new_line;
begin
put ("Type a character to continue: ");
get_immediate (Continue);
exception
when others => null;
end;
end Pause;
begin
Pause(
"More on equation solving using the QR decomposition of A. Below we see",
"if we can find useful solutions for x in A*x = b when the matrix A is",
"singular or ill-conditioned. If A is singular then there's a vector b such that",
"no choice of x satisfies A*x - b = 0. If A is not singular but has condition",
"number 10**40, the desired x exists, but it can have length ~10**40. Below",
"all equation solving will use the least squares A described in the previous",
"test. Another way to think of it: A*x = b is solved via R*x = Q'*b. By discarding",
"Q vectors associated with near-zero diagonal elements of R, we are removing the",
"component of b that is effectively in the null space of A, and then solving for x.",
"This doesn't work well unless the decomposition is rank-revealing. That's what we",
"test below on a test suite of (mostly) ill-conditioned or pathological matrices."
);
Pause(
"First pass through the matrix test suite: all equation solving will use a least",
"squares A. Should see: (1) all solutions are good to at least 8 sig. figures,",
"and (2) no matrix was modified by more than 1 part in 10**9 by the least",
"squares process. In most cases results are better than that in both categories."
);
-- we use Singularity_Cutoff => Two**(-30); default is Two**(-38)
for I in 1 .. 2 loop
Singularity_Cutoff_Threshold := Cutoff_Threshold_1;
if I > 1 then
Singularity_Cutoff_Threshold := Zero;
new_line(3);
Pause(
"Now one last pass through the matrix test suite. In this case there will be",
"no least squares modification of A. No Q column vectors are discarded. In",
"many cases the failure of the equation solving is catastrophic."
);
end if;
for Chosen_Matrix in Matrix_id loop
Init_Matrix (A, Chosen_Matrix, Index'First, Index'Last);
R := A; -- cp A to R, then leave A unmolested. R will be overwritten w/ real R
QR_Decompose
(A => R, -- input matrix A, but call it R.
Q => Q,
Row_Scalings => Scale,
Col_Permutation => Permute,
Final_Row => Final_Row,
Final_Col => Final_Col,
Starting_Row => Starting_Row,
Starting_Col => Starting_Col);
Get_Inverse
(R, Q, Scale, Permute, Singularity_Cutoff_Threshold, A_inv_lsq);
Get_Err_in_Least_Squares_A
(A, R, Q, Scale, Permute,
Singularity_Cutoff_Threshold,
A_lsq,
Err_in_Least_Squ_A, Condition_Number_of_Least_Squ_A, Condition_Number_of_A);
-- Least Squares solutions of A*x - b = 0 are solutions of the normal
-- equations (A_transpose*A) * x - A_transpose*b = 0.
-- In practice you don't get A*x - b = 0. You find an A*x - b that is
-- in the null space of A_transpose: A_transpose * (A*x - b) = 0
--
-- next use QR to solve A*x_i = unit_vec_i over of unit vectors,
-- The vectors unit_vec_i form the col vecs of I = Identity, and the
-- vectors x_i form the col vecs of A_Inv. A*A_Inv - Identity /= 0 in
-- general, but we can test A_transpose * (A*x - b) = 0, which will
-- be limited by the condition number of A, and quality of rank revelation.
--
-- Get: A_x_A_inv_minus_I = A*A_Inv - Identity
--
-- Cols of this mat are the desired residuals.
--
-- A_x_A_inv_minus_I is really Row_Index x Row_Index:
for j in Starting_Row .. Final_Row loop
for i in Starting_Row .. Final_Row loop
Sum := +0.0;
for k in Starting_Col .. Final_Col loop
Sum := Sum + Longer_Real(A_lsq(i, k)) * Longer_Real(A_inv_lsq(k,j));
end loop;
if i = j then
A_x_A_inv_minus_I(j, i) := Real (Sum - 1.0);
else
A_x_A_inv_minus_I(j, i) := Real (Sum);
end if;
end loop;
end loop;
-- Residual is: A*x - b, (where the x was obtained by solving A*x = b).
-- Residual /= 0 unless b is in the space spanned by the col vectors of A.
-- Residual won't be 0 in general unless A is full rank (non-singular),
-- (so that its cols span all space). This may be rare!
-- Remember, our least squares A_lsq, obtained by discarding Q vecs is
-- is not actually full rank; A_lsq_inverse * A_lsq /= I. However if you
-- restrict the calculation to the space spanned by the col vectors of A
-- (multiply on the left by A_tr), can use A_tr*(A_lsq_inverse * A_lsq - I)
-- as test of success of equation solving.
-- So we get
--
-- A_tr_x_Residual = A_transpose * (A * A_inv - I)
--
-- result has shape: Col_Index x Col_Index
for j in Starting_Col .. Final_Col loop
for i in Starting_Col .. Final_Col loop
Sum := +0.0;
for k in Starting_Col .. Final_Col loop
Sum := Sum + Longer_Real(A_lsq(k, i)) * Longer_Real(A_x_A_inv_minus_I(k,j));
end loop;
A_tr_x_Residual(j, i) := Real (Sum);
end loop;
end loop;
-- fractional error:
-- = |A_tr*Residual| / |A_tr| = |A_tr*(Ax - b)| / |A_tr|
-- Frobenius_lsq_soln_err
-- := Max_Col_Length (A_tr_x_Residual) / (Max_Row_Length (A_lsq) + Min_Real);
--
Frobenius_lsq_soln_err
:= Frobenius_Norm (A_tr_x_Residual) / (Frobenius_Norm (A_lsq) + Min_Real);
new_line;
put("For matrix A of type "); put(Matrix_id'Image(Chosen_Matrix)); put(":");
new_line;
put(" Approx condition number (lower bound) of original A =");
put(Condition_Number_of_A);
new_line;
put(" Approx condition number (lower bound) of least squ A =");
put(Condition_Number_of_Least_Squ_A);
new_line;
put(" Approx. of max|A'*(A*x-b)| / |A'*b| over unit vectors b =");
put(Frobenius_lsq_soln_err);
new_line(1);
-- actually, best to use a different norm to get max|A'*(A*x-b)| / |A'*b| over b's,
-- (max col length probably) but some other time maybe.
end loop;
end loop;
end;
|
--
-- Copyright 2021 (C) Jeremy Grosser <jeremy@synack.me>
--
-- SPDX-License-Identifier: Apache-2.0
--
with Notcurses.Channel; use Notcurses.Channel;
with Interfaces; use Interfaces;
package Notcurses.Plane is
type Alignment is (Unaligned, Left, Center, Right);
-- Get a reference to the standard plane using the default context. The
-- default context is initialized if needed.
function Standard_Plane
return Notcurses_Plane;
function Context
(Plane : Notcurses_Plane)
return Notcurses_Context;
function Dimensions
(Plane : Notcurses_Plane)
return Coordinate;
function Create_Sub_Plane
(Plane : Notcurses_Plane;
Position : Coordinate;
Size : Coordinate)
return Notcurses_Plane;
procedure Destroy
(Plane : in out Notcurses_Plane);
procedure Erase
(Plane : Notcurses_Plane);
procedure Erase_Region
(Plane : Notcurses_Plane;
Start : Coordinate;
Size : Coordinate);
procedure Put
(Plane : Notcurses_Plane;
Str : Wide_Wide_String;
Y, X : Integer := -1);
procedure Put_Aligned
(Plane : Notcurses_Plane;
Str : Wide_Wide_String;
Y : Integer := -1;
Align : Alignment := Unaligned);
procedure Fill
(Plane : Notcurses_Plane;
C : Wide_Wide_Character);
procedure Set_Background
(Plane : Notcurses_Plane;
Channel : Notcurses_Channel);
procedure Set_Foreground
(Plane : Notcurses_Plane;
Channel : Notcurses_Channel);
procedure Set_Background_RGB
(Plane : Notcurses_Plane;
R, G, B : Color_Type);
procedure Set_Foreground_RGB
(Plane : Notcurses_Plane;
R, G, B : Color_Type);
package Cursor is
function Position
(Plane : Notcurses_Plane)
return Coordinate;
procedure Move
(Plane : Notcurses_Plane;
Position : Coordinate);
procedure Move_Relative
(Plane : Notcurses_Plane;
Offset : Coordinate);
procedure Home
(Plane : Notcurses_Plane);
end Cursor;
end Notcurses.Plane;
|
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- A D A . S T R I N G S . W I D E _ M A P S . W I D E _ C O N S T A N T S --
-- --
-- S p e c --
-- --
-- Copyright (C) 1992-2019, Free Software Foundation, Inc. --
-- --
-- This specification is derived from the Ada Reference Manual for use with --
-- GNAT. The copyright notice above, and the license provisions that follow --
-- apply solely to the contents of the part following the private keyword. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
with Ada.Characters.Wide_Latin_1;
package Ada.Strings.Wide_Maps.Wide_Constants is
pragma Preelaborate;
Control_Set : constant Wide_Maps.Wide_Character_Set;
Graphic_Set : constant Wide_Maps.Wide_Character_Set;
Letter_Set : constant Wide_Maps.Wide_Character_Set;
Lower_Set : constant Wide_Maps.Wide_Character_Set;
Upper_Set : constant Wide_Maps.Wide_Character_Set;
Basic_Set : constant Wide_Maps.Wide_Character_Set;
Decimal_Digit_Set : constant Wide_Maps.Wide_Character_Set;
Hexadecimal_Digit_Set : constant Wide_Maps.Wide_Character_Set;
Alphanumeric_Set : constant Wide_Maps.Wide_Character_Set;
Special_Graphic_Set : constant Wide_Maps.Wide_Character_Set;
ISO_646_Set : constant Wide_Maps.Wide_Character_Set;
Character_Set : constant Wide_Maps.Wide_Character_Set;
Lower_Case_Map : constant Wide_Maps.Wide_Character_Mapping;
-- Maps to lower case for letters, else identity
Upper_Case_Map : constant Wide_Maps.Wide_Character_Mapping;
-- Maps to upper case for letters, else identity
Basic_Map : constant Wide_Maps.Wide_Character_Mapping;
-- Maps to basic letter for letters, else identity
private
package W renames Ada.Characters.Wide_Latin_1;
subtype WC is Wide_Character;
Control_Ranges : aliased constant Wide_Character_Ranges :=
((W.NUL, W.US),
(W.DEL, W.APC));
Control_Set : constant Wide_Character_Set :=
(AF.Controlled with
Control_Ranges'Unrestricted_Access);
Graphic_Ranges : aliased constant Wide_Character_Ranges :=
((W.Space, W.Tilde),
(WC'Val (256), WC'Last));
Graphic_Set : constant Wide_Character_Set :=
(AF.Controlled with
Graphic_Ranges'Unrestricted_Access);
Letter_Ranges : aliased constant Wide_Character_Ranges :=
(('A', 'Z'),
(W.LC_A, W.LC_Z),
(W.UC_A_Grave, W.UC_O_Diaeresis),
(W.UC_O_Oblique_Stroke, W.LC_O_Diaeresis),
(W.LC_O_Oblique_Stroke, W.LC_Y_Diaeresis));
Letter_Set : constant Wide_Character_Set :=
(AF.Controlled with
Letter_Ranges'Unrestricted_Access);
Lower_Ranges : aliased constant Wide_Character_Ranges :=
(1 => (W.LC_A, W.LC_Z),
2 => (W.LC_German_Sharp_S, W.LC_O_Diaeresis),
3 => (W.LC_O_Oblique_Stroke, W.LC_Y_Diaeresis));
Lower_Set : constant Wide_Character_Set :=
(AF.Controlled with
Lower_Ranges'Unrestricted_Access);
Upper_Ranges : aliased constant Wide_Character_Ranges :=
(1 => ('A', 'Z'),
2 => (W.UC_A_Grave, W.UC_O_Diaeresis),
3 => (W.UC_O_Oblique_Stroke, W.UC_Icelandic_Thorn));
Upper_Set : constant Wide_Character_Set :=
(AF.Controlled with
Upper_Ranges'Unrestricted_Access);
Basic_Ranges : aliased constant Wide_Character_Ranges :=
(1 => ('A', 'Z'),
2 => (W.LC_A, W.LC_Z),
3 => (W.UC_AE_Diphthong, W.UC_AE_Diphthong),
4 => (W.LC_AE_Diphthong, W.LC_AE_Diphthong),
5 => (W.LC_German_Sharp_S, W.LC_German_Sharp_S),
6 => (W.UC_Icelandic_Thorn, W.UC_Icelandic_Thorn),
7 => (W.LC_Icelandic_Thorn, W.LC_Icelandic_Thorn),
8 => (W.UC_Icelandic_Eth, W.UC_Icelandic_Eth),
9 => (W.LC_Icelandic_Eth, W.LC_Icelandic_Eth));
Basic_Set : constant Wide_Character_Set :=
(AF.Controlled with
Basic_Ranges'Unrestricted_Access);
Decimal_Digit_Ranges : aliased constant Wide_Character_Ranges :=
(1 => ('0', '9'));
Decimal_Digit_Set : constant Wide_Character_Set :=
(AF.Controlled with
Decimal_Digit_Ranges'Unrestricted_Access);
Hexadecimal_Digit_Ranges : aliased constant Wide_Character_Ranges :=
(1 => ('0', '9'),
2 => ('A', 'F'),
3 => (W.LC_A, W.LC_F));
Hexadecimal_Digit_Set : constant Wide_Character_Set :=
(AF.Controlled with
Hexadecimal_Digit_Ranges'Unrestricted_Access);
Alphanumeric_Ranges : aliased constant Wide_Character_Ranges :=
(1 => ('0', '9'),
2 => ('A', 'Z'),
3 => (W.LC_A, W.LC_Z),
4 => (W.UC_A_Grave, W.UC_O_Diaeresis),
5 => (W.UC_O_Oblique_Stroke, W.LC_O_Diaeresis),
6 => (W.LC_O_Oblique_Stroke, W.LC_Y_Diaeresis));
Alphanumeric_Set : constant Wide_Character_Set :=
(AF.Controlled with
Alphanumeric_Ranges'Unrestricted_Access);
Special_Graphic_Ranges : aliased constant Wide_Character_Ranges :=
(1 => (Wide_Space, W.Solidus),
2 => (W.Colon, W.Commercial_At),
3 => (W.Left_Square_Bracket, W.Grave),
4 => (W.Left_Curly_Bracket, W.Tilde),
5 => (W.No_Break_Space, W.Inverted_Question),
6 => (W.Multiplication_Sign, W.Multiplication_Sign),
7 => (W.Division_Sign, W.Division_Sign));
Special_Graphic_Set : constant Wide_Character_Set :=
(AF.Controlled with
Special_Graphic_Ranges'Unrestricted_Access);
ISO_646_Ranges : aliased constant Wide_Character_Ranges :=
(1 => (W.NUL, W.DEL));
ISO_646_Set : constant Wide_Character_Set :=
(AF.Controlled with
ISO_646_Ranges'Unrestricted_Access);
Character_Ranges : aliased constant Wide_Character_Ranges :=
(1 => (W.NUL, WC'Val (255)));
Character_Set : constant Wide_Character_Set :=
(AF.Controlled with
Character_Ranges'Unrestricted_Access);
Lower_Case_Mapping : aliased constant Wide_Character_Mapping_Values :=
(Length => 56,
Domain =>
"ABCDEFGHIJKLMNOPQRSTUVWXYZ" &
W.UC_A_Grave &
W.UC_A_Acute &
W.UC_A_Circumflex &
W.UC_A_Tilde &
W.UC_A_Diaeresis &
W.UC_A_Ring &
W.UC_AE_Diphthong &
W.UC_C_Cedilla &
W.UC_E_Grave &
W.UC_E_Acute &
W.UC_E_Circumflex &
W.UC_E_Diaeresis &
W.UC_I_Grave &
W.UC_I_Acute &
W.UC_I_Circumflex &
W.UC_I_Diaeresis &
W.UC_Icelandic_Eth &
W.UC_N_Tilde &
W.UC_O_Grave &
W.UC_O_Acute &
W.UC_O_Circumflex &
W.UC_O_Tilde &
W.UC_O_Diaeresis &
W.UC_O_Oblique_Stroke &
W.UC_U_Grave &
W.UC_U_Acute &
W.UC_U_Circumflex &
W.UC_U_Diaeresis &
W.UC_Y_Acute &
W.UC_Icelandic_Thorn,
Rangev =>
"abcdefghijklmnopqrstuvwxyz" &
W.LC_A_Grave &
W.LC_A_Acute &
W.LC_A_Circumflex &
W.LC_A_Tilde &
W.LC_A_Diaeresis &
W.LC_A_Ring &
W.LC_AE_Diphthong &
W.LC_C_Cedilla &
W.LC_E_Grave &
W.LC_E_Acute &
W.LC_E_Circumflex &
W.LC_E_Diaeresis &
W.LC_I_Grave &
W.LC_I_Acute &
W.LC_I_Circumflex &
W.LC_I_Diaeresis &
W.LC_Icelandic_Eth &
W.LC_N_Tilde &
W.LC_O_Grave &
W.LC_O_Acute &
W.LC_O_Circumflex &
W.LC_O_Tilde &
W.LC_O_Diaeresis &
W.LC_O_Oblique_Stroke &
W.LC_U_Grave &
W.LC_U_Acute &
W.LC_U_Circumflex &
W.LC_U_Diaeresis &
W.LC_Y_Acute &
W.LC_Icelandic_Thorn);
Lower_Case_Map : constant Wide_Character_Mapping :=
(AF.Controlled with
Map => Lower_Case_Mapping'Unrestricted_Access);
Upper_Case_Mapping : aliased constant Wide_Character_Mapping_Values :=
(Length => 56,
Domain =>
"abcdefghijklmnopqrstuvwxyz" &
W.LC_A_Grave &
W.LC_A_Acute &
W.LC_A_Circumflex &
W.LC_A_Tilde &
W.LC_A_Diaeresis &
W.LC_A_Ring &
W.LC_AE_Diphthong &
W.LC_C_Cedilla &
W.LC_E_Grave &
W.LC_E_Acute &
W.LC_E_Circumflex &
W.LC_E_Diaeresis &
W.LC_I_Grave &
W.LC_I_Acute &
W.LC_I_Circumflex &
W.LC_I_Diaeresis &
W.LC_Icelandic_Eth &
W.LC_N_Tilde &
W.LC_O_Grave &
W.LC_O_Acute &
W.LC_O_Circumflex &
W.LC_O_Tilde &
W.LC_O_Diaeresis &
W.LC_O_Oblique_Stroke &
W.LC_U_Grave &
W.LC_U_Acute &
W.LC_U_Circumflex &
W.LC_U_Diaeresis &
W.LC_Y_Acute &
W.LC_Icelandic_Thorn,
Rangev =>
"ABCDEFGHIJKLMNOPQRSTUVWXYZ" &
W.UC_A_Grave &
W.UC_A_Acute &
W.UC_A_Circumflex &
W.UC_A_Tilde &
W.UC_A_Diaeresis &
W.UC_A_Ring &
W.UC_AE_Diphthong &
W.UC_C_Cedilla &
W.UC_E_Grave &
W.UC_E_Acute &
W.UC_E_Circumflex &
W.UC_E_Diaeresis &
W.UC_I_Grave &
W.UC_I_Acute &
W.UC_I_Circumflex &
W.UC_I_Diaeresis &
W.UC_Icelandic_Eth &
W.UC_N_Tilde &
W.UC_O_Grave &
W.UC_O_Acute &
W.UC_O_Circumflex &
W.UC_O_Tilde &
W.UC_O_Diaeresis &
W.UC_O_Oblique_Stroke &
W.UC_U_Grave &
W.UC_U_Acute &
W.UC_U_Circumflex &
W.UC_U_Diaeresis &
W.UC_Y_Acute &
W.UC_Icelandic_Thorn);
Upper_Case_Map : constant Wide_Character_Mapping :=
(AF.Controlled with
Upper_Case_Mapping'Unrestricted_Access);
Basic_Mapping : aliased constant Wide_Character_Mapping_Values :=
(Length => 55,
Domain =>
W.UC_A_Grave &
W.UC_A_Acute &
W.UC_A_Circumflex &
W.UC_A_Tilde &
W.UC_A_Diaeresis &
W.UC_A_Ring &
W.UC_C_Cedilla &
W.UC_E_Grave &
W.UC_E_Acute &
W.UC_E_Circumflex &
W.UC_E_Diaeresis &
W.UC_I_Grave &
W.UC_I_Acute &
W.UC_I_Circumflex &
W.UC_I_Diaeresis &
W.UC_N_Tilde &
W.UC_O_Grave &
W.UC_O_Acute &
W.UC_O_Circumflex &
W.UC_O_Tilde &
W.UC_O_Diaeresis &
W.UC_O_Oblique_Stroke &
W.UC_U_Grave &
W.UC_U_Acute &
W.UC_U_Circumflex &
W.UC_U_Diaeresis &
W.UC_Y_Acute &
W.LC_A_Grave &
W.LC_A_Acute &
W.LC_A_Circumflex &
W.LC_A_Tilde &
W.LC_A_Diaeresis &
W.LC_A_Ring &
W.LC_C_Cedilla &
W.LC_E_Grave &
W.LC_E_Acute &
W.LC_E_Circumflex &
W.LC_E_Diaeresis &
W.LC_I_Grave &
W.LC_I_Acute &
W.LC_I_Circumflex &
W.LC_I_Diaeresis &
W.LC_N_Tilde &
W.LC_O_Grave &
W.LC_O_Acute &
W.LC_O_Circumflex &
W.LC_O_Tilde &
W.LC_O_Diaeresis &
W.LC_O_Oblique_Stroke &
W.LC_U_Grave &
W.LC_U_Acute &
W.LC_U_Circumflex &
W.LC_U_Diaeresis &
W.LC_Y_Acute &
W.LC_Y_Diaeresis,
Rangev =>
'A' & -- UC_A_Grave
'A' & -- UC_A_Acute
'A' & -- UC_A_Circumflex
'A' & -- UC_A_Tilde
'A' & -- UC_A_Diaeresis
'A' & -- UC_A_Ring
'C' & -- UC_C_Cedilla
'E' & -- UC_E_Grave
'E' & -- UC_E_Acute
'E' & -- UC_E_Circumflex
'E' & -- UC_E_Diaeresis
'I' & -- UC_I_Grave
'I' & -- UC_I_Acute
'I' & -- UC_I_Circumflex
'I' & -- UC_I_Diaeresis
'N' & -- UC_N_Tilde
'O' & -- UC_O_Grave
'O' & -- UC_O_Acute
'O' & -- UC_O_Circumflex
'O' & -- UC_O_Tilde
'O' & -- UC_O_Diaeresis
'O' & -- UC_O_Oblique_Stroke
'U' & -- UC_U_Grave
'U' & -- UC_U_Acute
'U' & -- UC_U_Circumflex
'U' & -- UC_U_Diaeresis
'Y' & -- UC_Y_Acute
'a' & -- LC_A_Grave
'a' & -- LC_A_Acute
'a' & -- LC_A_Circumflex
'a' & -- LC_A_Tilde
'a' & -- LC_A_Diaeresis
'a' & -- LC_A_Ring
'c' & -- LC_C_Cedilla
'e' & -- LC_E_Grave
'e' & -- LC_E_Acute
'e' & -- LC_E_Circumflex
'e' & -- LC_E_Diaeresis
'i' & -- LC_I_Grave
'i' & -- LC_I_Acute
'i' & -- LC_I_Circumflex
'i' & -- LC_I_Diaeresis
'n' & -- LC_N_Tilde
'o' & -- LC_O_Grave
'o' & -- LC_O_Acute
'o' & -- LC_O_Circumflex
'o' & -- LC_O_Tilde
'o' & -- LC_O_Diaeresis
'o' & -- LC_O_Oblique_Stroke
'u' & -- LC_U_Grave
'u' & -- LC_U_Acute
'u' & -- LC_U_Circumflex
'u' & -- LC_U_Diaeresis
'y' & -- LC_Y_Acute
'y'); -- LC_Y_Diaeresis
Basic_Map : constant Wide_Character_Mapping :=
(AF.Controlled with
Basic_Mapping'Unrestricted_Access);
end Ada.Strings.Wide_Maps.Wide_Constants;
|
------------------------------------------------------------------------------
-- --
-- GNAT RUNTIME COMPONENTS --
-- --
-- S Y S T E M . V E R S I O N _ C O N T R O L --
-- --
-- S p e c --
-- --
-- $Revision: 2 $ --
-- --
-- Copyright (c) 1992,1993,1994,1995 NYU, All Rights Reserved --
-- --
-- The GNAT library is free software; you can redistribute it and/or modify --
-- it under terms of the GNU Library General Public License as published by --
-- the Free Software Foundation; either version 2, or (at your option) any --
-- later version. The GNAT library is distributed in the hope that it will --
-- be useful, but WITHOUT ANY WARRANTY; without even the implied warranty --
-- of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU --
-- Library General Public License for more details. You should have --
-- received a copy of the GNU Library General Public License along with --
-- the GNAT library; see the file COPYING.LIB. If not, write to the Free --
-- Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. --
-- --
------------------------------------------------------------------------------
-- This module contains the runtime routine for implementation of the
-- Version and Body_Version attributes, as well as the string type that
-- is returned as a result of using these attributes.
with System.Unsigned_Types;
package System.Version_Control is
subtype Version_String is String (1 .. 8);
-- Eight character string returned by Get_version_String;
function Get_Version_String
(V : System.Unsigned_Types.Unsigned)
return Version_String;
-- The version information in the executable file is stored as unsigned
-- integers. This routine converts the unsigned integer into an eight
-- character string containing its hexadecimal digits (with lower case
-- letters).
end System.Version_Control;
|
-- CE3410B.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 SET_LINE RAISES CONSTRAINT_ERROR IF THE GIVEN
-- LINE NUMBER IS ZERO, OR NEGATIVE.
-- HISTORY:
-- ABW 08/26/82
-- SPS 09/22/82
-- JBG 01/27/83
-- JLH 08/31/87 ADDED CASE FOR COUNT'LAST.
-- PWN 10/27/95 REMOVED OUT OF RANGE STATIC VALUE CHECKS
WITH REPORT;
USE REPORT;
WITH TEXT_IO;
USE TEXT_IO;
PROCEDURE CE3410B IS
FILE : FILE_TYPE;
BEGIN
TEST ("CE3410B", "CHECK THAT SET_LINE RAISES CONSTRAINT_ERROR " &
"IF THE GIVEN LINE NUMBER IS ZERO, OR NEGATIVE");
BEGIN
SET_LINE (FILE, POSITIVE_COUNT(IDENT_INT(0)));
FAILED ("CONSTRAINT_ERROR NOT RAISED FOR ZERO");
EXCEPTION
WHEN CONSTRAINT_ERROR =>
NULL;
WHEN STATUS_ERROR =>
FAILED ("STATUS_ERROR INSTEAD OF CONSTRAINT_ERROR - 1");
WHEN OTHERS =>
FAILED ("UNEXPECTED EXCEPTION RAISED FOR ZERO");
END;
BEGIN
SET_LINE (FILE, POSITIVE_COUNT(IDENT_INT(-2)));
FAILED ("CONSTRAINT_ERROR NOT RAISED FOR NEGATIVE NUMBER");
EXCEPTION
WHEN CONSTRAINT_ERROR =>
NULL;
WHEN STATUS_ERROR =>
FAILED ("STATUS_ERROR INSTEAD OF CONSTRAINT_ERROR - 2");
WHEN OTHERS =>
FAILED ("UNEXPECTED EXCEPTION RAISED FOR NEGATIVE " &
"NUMBER");
END;
RESULT;
END CE3410B;
|
-- Copyright 2015-2017 Free Software Foundation, Inc.
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
with Pck; use Pck;
procedure Foo_NA09_042 is
R1 : Record_Type := Ident (A1 (3));
begin
Do_Nothing (A1'Address); -- STOP
Do_Nothing (R1'Address);
end Foo_NA09_042;
|
-- Copyright 2019 Michael Casadevall <michael@casadevall.pro>
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to
-- deal in the Software without restriction, including without limitation the
-- rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
-- sell copies of the Software, and to permit persons to whom the Software is
-- furnished to do so, subject to the following conditions:
--
-- The above copyright notice and this permission notice shall be included in
-- all copies or substantial portions of the Software.
--
-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
-- THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
-- FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
-- DEALINGS IN THE SOFTWARE.
with Ada.Containers.Vectors; use Ada.Containers;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with Ada.Streams; use Ada.Streams;
with Interfaces.C.Extensions; use Interfaces.C.Extensions;
with DNSCatcher.DNS; use DNSCatcher.DNS;
with DNSCatcher.Types; use DNSCatcher.Types;
with DNSCatcher.Utils.Logger; use DNSCatcher.Utils.Logger;
with DNSCatcher.DNS.Processor.RData; use DNSCatcher.DNS.Processor.RData;
-- @summary
--
-- Handles processing of raw DNS packets and their representation from wire
-- form to useful data structures.
--
-- @description
--
-- The Packet Processor is the top level interface for parsing a packet, and
-- getting useful information out of it. It also parses RData throught the
-- RData processor to create a single set of record(s) that describe a given
-- DNS packet
--
package DNSCatcher.DNS.Processor.Packet is
-- Logicial representation of a DNS Question packet
type Parsed_DNS_Question is record
QName : Unbounded_String; -- Domain the question is asked for
QType : RR_Types; -- QType RRType desired by client
QClass : Classes; -- DNS Class queried
end record;
-- Logicial representation of a parsed DNS Resource Record
type Parsed_DNS_Resource_Record is record
RName : Unbounded_String; -- Resource Name
RType : RR_Types; -- Resource Record Type
RClass : Unsigned_16; -- DNS Class
RCode : Unsigned_4; -- Response code
TTL : Unsigned_32; -- Time to Live
RData : Unbounded_String; -- Raw RData response
Raw_Packet : Stream_Element_Array_Ptr; -- Raw packet data, used by RData parser
RData_Offset : Stream_Element_Offset; -- Offset within raw packet to start of RData
end record;
-- Vector class for questions
package Question_Vector is new Vectors (Positive, Parsed_DNS_Question);
-- Vector class for Resource Records
package Resource_Record_Vector is new Vectors (Positive,
Parsed_RData_Access);
-- Parsed DNS Packet
type Parsed_DNS_Packet is record
Header : DNS_Packet_Header; -- DNS Packet Header
Questions : Question_Vector.Vector; -- Questions section
Answer : Resource_Record_Vector.Vector; -- Answers section
Authority : Resource_Record_Vector.Vector; -- Authoritive section
Additional : Resource_Record_Vector.Vector; -- Additional Section
end record;
type Parsed_DNS_Packet_Ptr is access Parsed_DNS_Packet;
-- Converts raw DNS packets into parsed DNS packets
--
-- @value Logger
-- Pointer to the a logger message packet from the caller
--
-- @value Packet
-- Raw DNS data gathered from DNSCatcher.Network.*
--
-- @returns
-- Pointer to parsed DNS data; must be freed by caller
--
function Packet_Parser
(Logger : Logger_Message_Packet_Ptr;
Packet : Raw_Packet_Record_Ptr)
return Parsed_DNS_Packet_Ptr;
pragma Test_Case (Name => "Packet_Parser", Mode => Robustness);
Unknown_RCode : exception;
Unknown_RR_Type : exception;
Unknown_Class : exception;
Unknown_Compression_Method : exception;
-- Converts DNS names in packets to string
--
-- The full packet is required due to DNS compression
--
-- @value Raw_Data
-- Pointer to the full packet
--
-- @value Offset
-- Offet to the string to decode
--
-- @returns
-- Unbounded_String with the DNS name decoded or exception
--
function Parse_DNS_Packet_Name_Records
(Raw_Data : Raw_DNS_Packet_Data_Ptr;
Offset : in out Stream_Element_Offset)
return Unbounded_String;
-- Converts DNS RR Types in packets to RRTypes Enum
--
-- @value Raw_Data
-- Pointer to the full packet
--
-- @value Offset
-- Offet to the string to decode
--
-- @returns
-- DNS RR_Type
--
function Parse_DNS_RR_Type
(Raw_Data : Raw_DNS_Packet_Data_Ptr;
Offset : in out Stream_Element_Offset)
return RR_Types;
-- Converts DNS Class in packets to DNS Class Enum
--
-- @value Raw_Data
-- Pointer to the full packet
--
-- @value Offset
-- Offet to the string to decode
--
-- @returns
-- DNS Class
--
function Parse_DNS_Class
(Raw_Data : Raw_DNS_Packet_Data_Ptr;
Offset : in out Stream_Element_Offset)
return Classes;
-- Converts DNS Questions in packets to logicial representation
--
-- @value Logger
-- Pointer to logger message packet
--
-- @value Raw_Data
-- The full packet data section to decode
--
-- @value Offset
-- Offet to the string to decode
--
-- @returns
-- Parsed DNS Question
--
function Parse_Question_Record
(Logger : Logger_Message_Packet_Ptr;
Raw_Data : Raw_DNS_Packet_Data_Ptr;
Offset : in out Stream_Element_Offset)
return Parsed_DNS_Question;
-- Converts DNS resource record to logicial representation
--
-- @value Logger
-- Pointer to logger message packet
--
-- @value Packet
-- The full packet to decode
--
-- @value Offset
-- Offet to the resource record to decode
--
-- @returns
-- Parsed Resource Record
--
function Parse_Resource_Record_Response
(Logger : Logger_Message_Packet_Ptr;
Packet : Raw_DNS_Packet;
Offset : in out Stream_Element_Offset)
return Parsed_RData_Access;
-- Deallocators
-- Deallocation helper for Parsed_DNS_Packet_Ptrs
--
-- @value Packet
-- The packet to be deallocated
--
procedure Free_Parsed_DNS_Packet (Packet : in out Parsed_DNS_Packet_Ptr);
end DNSCatcher.DNS.Processor.Packet;
|
with Ada.Text_IO, Ada.Numerics.Float_Random;
procedure Pick_Random_Element is
package Rnd renames Ada.Numerics.Float_Random;
Gen: Rnd.Generator; -- used globally
type Char_Arr is array (Natural range <>) of Character;
function Pick_Random(A: Char_Arr) return Character is
-- Chooses one of the characters of A (uniformly distributed)
begin
return A(A'First + Natural(Rnd.Random(Gen) * Float(A'Last)));
end Pick_Random;
Vowels : Char_Arr := ('a', 'e', 'i', 'o', 'u');
Consonants: Char_Arr := ('t', 'n', 's', 'h', 'r', 'd', 'l');
Specials : Char_Arr := (',', '.', '?', '!');
begin
Rnd.Reset(Gen);
for J in 1 .. 3 loop
for I in 1 .. 10 loop
Ada.Text_IO.Put(Pick_Random(Consonants));
Ada.Text_IO.Put(Pick_Random(Vowels));
end loop;
Ada.Text_IO.Put(Pick_Random(Specials) & " ");
end loop;
Ada.Text_IO.New_Line;
end Pick_Random_Element;
|
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- SYSTEM.PUT_TASK_IMAGES --
-- --
-- B o d y --
-- --
-- Copyright (C) 2020, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
with Unchecked_Conversion;
with Ada.Strings.Text_Output.Utils;
use Ada.Strings.Text_Output;
use Ada.Strings.Text_Output.Utils;
package body System.Put_Task_Images is
procedure Put_Image_Protected (S : in out Sink'Class) is
begin
Put_UTF_8 (S, "(protected object)");
end Put_Image_Protected;
procedure Put_Image_Task
(S : in out Sink'Class; Id : Ada.Task_Identification.Task_Id)
is
begin
Put_UTF_8 (S, "(task " & Ada.Task_Identification.Image (Id) & ")");
end Put_Image_Task;
end System.Put_Task_Images;
|
-- 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 Text_IO; use Text_IO;
procedure Oners is
package Integer_IO is new Text_IO.Integer_IO (Integer);
use Integer_IO;
Line, Old_Line : String (1 .. 250) := (others => ' ');
Last, Old_Last : Integer := 0;
N : Integer := 0;
Input, Output : File_Type;
begin
Put_Line ("ONERS.IN -> ONERS.OUT");
Put_Line ("Takes a sorted file to produce a file having just" &
" one of each identical line.");
Put_Line ("Puts a count of how many identical lines at the" &
" beginning of each.");
Open (Input, In_File, "ONERS.IN");
Create (Output, Out_File, "ONERS.OUT");
Get_Line (Input, Old_Line, Old_Last);
while not End_Of_File (Input) loop
Get_Line (Input, Line, Last);
N := N + 1;
if Line (1 .. Last) /= Old_Line (1 .. Old_Last) then
Put (Output, N);
Put_Line (Output, " " & Old_Line (1 .. Old_Last));
N := 0;
Old_Last := Last;
Old_Line (1 .. Old_Last) := Line (1 .. Last);
end if;
end loop;
Close (Output);
end Oners;
|
------------------------------------------------------------------------------
-- --
-- Copyright (c) 2016-2021 Vitalii Bondarenko <vibondare@gmail.com> --
-- --
------------------------------------------------------------------------------
-- --
-- The MIT License (MIT) --
-- --
-- Permission is hereby granted, free of charge, to any person obtaining a --
-- copy of this software and associated documentation files (the --
-- "Software"), to deal in the Software without restriction, including --
-- without limitation the rights to use, copy, modify, merge, publish, --
-- distribute, sublicense, and/or sell copies of the Software, and to --
-- permit persons to whom the Software is furnished to do so, subject to --
-- the following conditions: --
-- --
-- The above copyright notice and this permission notice shall be included --
-- in all copies or substantial portions of the Software. --
-- --
-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS --
-- OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF --
-- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. --
-- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY --
-- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, --
-- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE --
-- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. --
------------------------------------------------------------------------------
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
with Ada.Float_Text_IO; use Ada.Float_Text_IO;
with Ada.Strings; use Ada.Strings;
with Ada.Strings.Fixed; use Ada.Strings.Fixed;
with Interfaces.C.Strings; use Interfaces.C.Strings;
with L10n.Localeinfo; use L10n.Localeinfo;
package body Formatted_Output is
---------------
-- To_Format --
---------------
function To_Format (Fmt_String : String) return Format_Type is
begin
return To_Unbounded_String (Fmt_String);
end To_Format;
---------------
-- To_String --
---------------
function To_String (Fmt : Format_Type) return String is
CR : constant String (1 .. 1) := (1 => ASCII.CR);
LF : constant String (1 .. 1) := (1 => ASCII.LF);
BS : constant String (1 .. 1) := (1 => ASCII.BS);
HT : constant String (1 .. 1) := (1 => ASCII.HT);
FF : constant String (1 .. 1) := (1 => ASCII.FF);
I : Integer := 1;
Fmt_Copy : Unbounded_String := Unbounded_String (Fmt);
begin
while I < Length (Fmt_Copy) loop
if Element (Fmt_Copy, I) = '\' then
case Element (Fmt_Copy, I + 1) is
when 'n' =>
Replace_Slice (Fmt_Copy, I, I + 1, LF);
-- I := I + 1;
-- Uncomment line above, if your system using two-byte
-- representation of the next line character. Example of
-- such system is EZ2LOAD.
when 'r' =>
Replace_Slice (Fmt_Copy, I, I + 1, CR);
when 'b' =>
Replace_Slice (Fmt_Copy, I, I + 1, BS);
when 't' =>
Replace_Slice (Fmt_Copy, I, I + 1, HT);
when 'f' =>
Replace_Slice (Fmt_Copy, I, I + 1, FF);
when '\' =>
Delete (Fmt_Copy, I, I);
when others =>
null;
end case;
elsif Element (Fmt_Copy, I) = '%' then
case Element (Fmt_Copy, I + 1) is
when '%' =>
Delete (Fmt_Copy, I, I);
when others =>
raise Format_Error;
end case;
end if;
I := I + 1;
end loop;
return To_String (Fmt_Copy);
end To_String;
-------------------
-- Format_String --
-------------------
function Format_String
(Value : String;
Initial_Width : Integer;
Justification : Alignment) return String
is
Width : Integer;
begin
if Initial_Width < Value'Length then
Width := Value'Length;
else
Width := Initial_Width;
end if;
declare
S : String (1 .. Width);
begin
Move (Value, S, Justify => Justification, Pad => Filler);
return S;
end;
end Format_String;
---------
-- "&" --
---------
function "&" (Fmt : Format_Type; Value : String) return Format_Type is
Command_Start : constant Integer := Scan_To_Percent_Sign (Fmt);
Width : Integer := 0;
Digit_Occured : Boolean := False;
Justification_Changed : Boolean := False;
Justification : Alignment := Right;
Fmt_Copy : Unbounded_String;
begin
if Command_Start /= 0 then
Fmt_Copy := Unbounded_String (Fmt);
for I in Command_Start + 1 .. Length (Fmt_Copy) loop
case Element (Fmt_Copy, I) is
when 's' =>
Replace_Slice
(Fmt_Copy, Command_Start, I,
Format_String (Value, Width, Justification));
return Format_Type (Fmt_Copy);
when '-' | '+' | '*' =>
if Justification_Changed or else Digit_Occured then
raise Format_Error;
end if;
Justification_Changed := True;
case Element (Fmt_Copy, I) is
when '-' =>
Justification := Left;
when '+' =>
Justification := Right;
when '*' =>
Justification := Center;
when others =>
null;
end case;
when '0' .. '9' =>
Digit_Occured := True;
Width := Width * 10
+ Character'Pos (Element (Fmt_Copy, I))
- Character'Pos ('0');
when others =>
raise Format_Error;
end case;
end loop;
end if;
raise Format_Error;
end "&";
---------
-- Put --
---------
procedure Put (Fmt : Format_Type) is
begin
Put (To_String (Fmt));
end Put;
procedure Put (File : File_Type; Fmt : Format_Type) is
begin
Put (File, To_String (Fmt));
end Put;
--------------
-- Put_Line --
--------------
procedure Put_Line (Fmt : Format_Type) is
begin
Put_Line (To_String (Fmt));
end Put_Line;
procedure Put_Line (File : File_Type; Fmt : Format_Type) is
begin
Put_Line (File, To_String (Fmt));
end Put_Line;
--------------------------
-- Scan_To_Percent_Sign --
--------------------------
function Scan_To_Percent_Sign (Fmt : Format_Type) return Integer is
I : Natural := 1;
begin
while I < Length (Fmt) loop
if Element (Fmt, I) = '%' then
if Element (Fmt, I + 1) /= '%' then
return I;
else
I := I + 1;
end if;
end if;
I := I + 1;
end loop;
return 0;
end Scan_To_Percent_Sign;
-----------------------------
-- Decimal_Point_Character --
-----------------------------
function Decimal_Point_Character return String is
Lconv : C_Lconv_Access := C_Localeconv;
begin
if Lconv.Decimal_Point = Null_Ptr then
return Ada_Dec_Point_Character;
else
return Value (Lconv.Decimal_Point);
end if;
exception
when others => return Ada_Dec_Point_Character;
end Decimal_Point_Character;
-----------------------------
-- Thousands_Sep_Character --
-----------------------------
function Thousands_Sep_Character return String is
Lconv : C_Lconv_Access := C_Localeconv;
begin
if Lconv.Thousands_Sep = Null_Ptr then
return "";
else
declare
S : String := Value (Lconv.Thousands_Sep);
begin
if S'Length > 1 then
return " ";
else
return S;
end if;
end;
end if;
exception
when others => return "";
end Thousands_Sep_Character;
---------------------------
-- Separate_Digit_Groups --
---------------------------
function Separate_Digit_Groups
(Text_Value : String;
Separator : String;
Group_Size : Integer) return String
is
Tmp : Unbounded_String := Null_Unbounded_String;
I : Integer;
J : Integer := Text_Value'Last;
begin
while J >= Text_Value'First loop
I := J - Group_Size + 1;
if I <= Text_Value'First then
Insert (Tmp, 1, Text_Value (Text_Value'First .. J));
exit;
else
Insert (Tmp, 1, Separator & Text_Value (I .. J));
end if;
J := J - Group_Size;
end loop;
return To_String (Tmp);
exception
when others => return "";
end Separate_Digit_Groups;
-- ---------------------------------
-- -- Separate_Based_Digit_Groups --
-- ---------------------------------
--
-- function Separate_Based_Digit_Groups
-- (Text_Value : String;
-- Separator : String;
-- Group_Size : Integer) return String
-- is
-- Tmp : Unbounded_String := Null_Unbounded_String;
-- NS1 : Natural := Index (Text_Value, "#", Text_Value'First);
-- NS2 : Natural;
-- begin
-- if NS1 > 0 then
-- NS2 := Index (Text_Value, "#", NS1 + 1);
-- else
-- return "";
-- end if;
--
-- declare
-- TS : String := Text_Value (NS1 + 1 .. NS2 - 1);
-- I : Integer;
-- J : Integer := TS'Last;
-- begin
-- while J >= TS'First loop
-- I := J - Group_Size + 1;
--
-- if I <= TS'First then
-- Insert (Tmp, 1, TS (TS'First .. J));
-- exit;
-- end if;
--
-- Insert (Tmp, 1, Separator & TS (I .. J));
-- J := J - Group_Size;
-- end loop;
-- end;
--
-- Tmp := Text_Value (Text_Value'First .. NS1) & Tmp;
-- Tmp := Tmp & Text_Value (NS2 .. Text_Value'Last);
-- return To_String (Tmp);
--
-- exception
-- when others => return "";
-- end Separate_Based_Digit_Groups;
----------------------
-- Set_Leading_Zero --
----------------------
function Set_Leading_Zero (Img : String) return String is
S : String := Img;
FD : Natural := Index_Non_Blank (Img, Forward);
Cur : Natural := 0;
NS1 : Natural := Index (Img, "#", Img'First);
begin
if Img (FD) = '-' or else Img (FD) = '+' then
S (1) := Img (FD);
Cur := 1;
FD := FD + 1;
end if;
if NS1 > 0 then
for I in FD .. NS1 loop
Cur := Cur + 1;
S (Cur) := Img (I);
end loop;
for I in Cur + 1 .. NS1 loop
S (I) := '0';
end loop;
else
for I in Cur + 1 .. FD - 1 loop
S (I) := '0';
end loop;
end if;
return S;
end Set_Leading_Zero;
function Set_Leading_Zero
(Img : String; Separator : String; Group_Size : Integer) return String
is
S : String := Img;
FD : Natural := Index_Non_Blank (Img, Forward);
Cur : Natural := 0;
NS1 : Natural := 0;
NS2 : Natural := 0;
I : Integer := 0;
J : Integer := 0;
begin
if Separator'Length = 0 then
return Set_Leading_Zero (Img);
end if;
FD := Index_Non_Blank (Img, Forward);
if Img (FD) = '-' or else Img (FD) = '+' then
S (1) := Img (FD);
Cur := 1;
FD := FD + 1;
end if;
NS1 := Index (Img, "#", Img'First);
NS2 := Index (Img, Separator, FD);
if NS1 > 0 then
for I in FD .. NS1 loop
Cur := Cur + 1;
S (Cur) := Img (I);
end loop;
I := Cur + 1;
J := NS1;
if NS2 = 0 then
NS2 := Img'Length - Group_Size - 1;
end if;
else
I := Cur + 1;
J := FD - 1;
if NS2 = 0 then
NS2 := Img'Length - Group_Size;
end if;
end if;
for P in I .. J loop
S (P) := '0';
end loop;
S (NS2) := Separator (Separator'First);
J := NS2;
while J >= Cur + 1 loop
I := J - Group_Size - 1;
if I >= Cur + 1 then
S (I) := Separator (Separator'First);
end if;
J := I;
end loop;
if NS1 = 0 and then S (Cur + 1) = Separator (Separator'First) then
if Cur = 0 then
S (1) := Filler;
else
S (Cur + 1) := S (Cur);
S (Cur) := Filler;
end if;
elsif NS1 > 0 and then S (Cur + 1) = Separator (Separator'First) then
for P in reverse 2 .. Cur + 1 loop
S (P) := S (P - 1);
end loop;
S (1) := Filler;
end if;
return S;
end Set_Leading_Zero;
end Formatted_Output;
|
-- AOC 2020, Day 24
package Day is
function count_tiles(filename : in String) return Natural;
function evolve_tiles(filename : in String; steps : in Natural) return Natural;
end Day;
|
package body agar.gui.widget.editable is
package cbinds is
procedure set_static
(editable : editable_access_t;
enable : c.int);
pragma import (c, set_static, "AG_EditableSetStatic");
procedure set_password
(editable : editable_access_t;
enable : c.int);
pragma import (c, set_password, "AG_EditableSetPassword");
procedure set_integer_only
(editable : editable_access_t;
enable : c.int);
pragma import (c, set_integer_only, "AG_EditableSetIntOnly");
procedure set_float_only
(editable : editable_access_t;
enable : c.int);
pragma import (c, set_float_only, "AG_EditableSetFltOnly");
procedure size_hint
(editable : editable_access_t;
text : cs.chars_ptr);
pragma import (c, size_hint, "AG_EditableSizeHint");
procedure size_hint_pixels
(editable : editable_access_t;
width : c.int;
height : c.int);
pragma import (c, size_hint_pixels, "AG_EditableSizeHintPixels");
function map_position
(editable : editable_access_t;
x : c.int;
y : c.int;
pos : access c.int;
absolute : c.int) return c.int;
pragma import (c, map_position, "AG_EditableMapPosition");
procedure move_cursor
(editable : editable_access_t;
x : c.int;
y : c.int;
absolute : c.int);
pragma import (c, move_cursor, "AG_EditableMoveCursor");
function get_cursor_position (editable : editable_access_t) return c.int;
pragma import (c, get_cursor_position, "AG_EditableGetCursorPos");
function set_cursor_position
(editable : editable_access_t;
index : c.int) return c.int;
pragma import (c, set_cursor_position, "AG_EditableSetCursorPos");
procedure set_string
(editable : editable_access_t;
text : cs.chars_ptr);
pragma import (c, set_string, "AG_EditableSetString");
function get_integer (editable : editable_access_t) return c.int;
pragma import (c, get_integer, "AG_EditableInt");
function get_float (editable : editable_access_t) return c.c_float;
pragma import (c, get_float, "AG_EditableFlt");
function get_long_float (editable : editable_access_t) return c.double;
pragma import (c, get_long_float, "AG_EditableDbl");
end cbinds;
procedure set_static
(editable : editable_access_t;
enable : boolean) is
begin
if enable then
cbinds.set_static (editable => editable, enable => 1);
else
cbinds.set_static (editable => editable, enable => 0);
end if;
end set_static;
procedure set_password
(editable : editable_access_t;
enable : boolean) is
begin
if enable then
cbinds.set_password (editable => editable, enable => 1);
else
cbinds.set_password (editable => editable, enable => 0);
end if;
end set_password;
procedure set_integer_only
(editable : editable_access_t;
enable : boolean) is
begin
if enable then
cbinds.set_integer_only (editable => editable, enable => 1);
else
cbinds.set_integer_only (editable => editable, enable => 0);
end if;
end set_integer_only;
procedure set_float_only
(editable : editable_access_t;
enable : boolean) is
begin
if enable then
cbinds.set_float_only (editable => editable, enable => 1);
else
cbinds.set_float_only (editable => editable, enable => 0);
end if;
end set_float_only;
procedure size_hint
(editable : editable_access_t;
text : string)
is
ca_text : aliased c.char_array := c.to_c (text);
begin
cbinds.size_hint
(editable => editable,
text => cs.to_chars_ptr (ca_text'unchecked_access));
end size_hint;
procedure size_hint_pixels
(editable : editable_access_t;
width : positive;
height : positive) is
begin
cbinds.size_hint_pixels
(editable => editable,
width => c.int (width),
height => c.int (height));
end size_hint_pixels;
-- cursor manipulation
procedure map_position
(editable : editable_access_t;
x : integer;
y : integer;
index : out natural;
pos : out cursor_pos_t;
absolute : boolean)
is
c_abs : c.int := 0;
c_pos : aliased c.int;
c_ind : c.int;
begin
if absolute then c_abs := 1; end if;
c_ind := cbinds.map_position
(editable => editable,
x => c.int (x),
y => c.int (y),
pos => c_pos'unchecked_access,
absolute => c_abs);
index := natural (c_ind);
pos := cursor_pos_t'val (c_pos);
end map_position;
procedure move_cursor
(editable : editable_access_t;
x : integer;
y : integer;
absolute : boolean)
is
c_abs : c.int := 0;
begin
if absolute then c_abs := 1; end if;
cbinds.move_cursor
(editable => editable,
x => c.int (x),
y => c.int (y),
absolute => c_abs);
end move_cursor;
function get_cursor_position (editable : editable_access_t) return natural is
begin
return natural (cbinds.get_cursor_position (editable));
end get_cursor_position;
function set_cursor_position
(editable : editable_access_t;
index : integer) return integer is
begin
return integer (cbinds.set_cursor_position (editable, c.int (index)));
end set_cursor_position;
-- text manipulation
procedure set_string
(editable : editable_access_t;
text : string)
is
ca_text : aliased c.char_array := c.to_c (text);
begin
cbinds.set_string (editable, cs.to_chars_ptr (ca_text'unchecked_access));
end set_string;
function get_integer (editable : editable_access_t) return integer is
begin
return integer (cbinds.get_integer (editable));
end get_integer;
function get_float (editable : editable_access_t) return float is
begin
return float (cbinds.get_float (editable));
end get_float;
function get_long_float (editable : editable_access_t) return long_float is
begin
return long_float (cbinds.get_long_float (editable));
end get_long_float;
function widget (editable : editable_access_t) return widget_access_t is
begin
return editable.widget'access;
end widget;
end agar.gui.widget.editable;
|
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- S Y S T E M . B B . C P U _ S P E C I F I C --
-- --
-- B o d y --
-- --
-- Copyright (C) 1999-2002 Universidad Politecnica de Madrid --
-- Copyright (C) 2003-2005 The European Space Agency --
-- Copyright (C) 2003-2021, AdaCore --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- 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 implements x86-64 architecture specific support for the GNAT
-- Ravenscar run time.
with Interfaces; use Interfaces;
with System.Machine_Code; use System.Machine_Code;
package body System.BB.CPU_Specific is
NL : constant String := ASCII.LF & ASCII.HT;
-- New line separator for Asm blocks
Cached_CPU_Model : CPU_Model := No_Model;
-- Cache a copy of the CPU's model information so we can quickly reterive
-- it when required.
------------------
-- My_CPU_Model --
------------------
function My_CPU_Model return CPU_Model is
-- CPUId Leaf 01H, Feature Information
Feature_Info_Leaf : constant Unsigned_32 := 16#01#;
Features_EAX : Feature_Information_EAX;
begin
if Cached_CPU_Model = No_Model then
Asm ("cpuid",
Inputs => Unsigned_32'Asm_Input ("a", Feature_Info_Leaf),
Outputs =>
Feature_Information_EAX'Asm_Output ("=a", Features_EAX),
Volatile => True);
Cached_CPU_Model.Family := Features_EAX.Family;
Cached_CPU_Model.Model :=
Intel_Model_Number
(Shift_Left (Unsigned_8 (Features_EAX.Extended_Model), 4) +
Unsigned_8 (Features_EAX.Model));
end if;
return Cached_CPU_Model;
end My_CPU_Model;
--------------------
-- Read_Raw_Clock --
--------------------
function Read_Raw_Clock return Unsigned_64 is
Raw_Count : Unsigned_64;
begin
Asm
("rdtsc" & NL &
"shlq $32, %%rdx" & NL &
"orq %%rdx, %%rax",
Outputs => Unsigned_64'Asm_Output ("=a", Raw_Count),
Clobber => "rdx",
Volatile => True);
return Raw_Count;
end Read_Raw_Clock;
end System.BB.CPU_Specific;
|
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- S Y S T E M . V A L _ U T I L --
-- --
-- S p e c --
-- --
-- Copyright (C) 1992-2021, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- --
-- --
-- --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
-- This package provides some common utilities used by the s-valxxx files
package System.Val_Util is
pragma Pure;
procedure Bad_Value (S : String);
pragma No_Return (Bad_Value);
-- Raises constraint error with message: bad input for 'Value: "xxx"
procedure Normalize_String
(S : in out String;
F, L : out Integer);
-- This procedure scans the string S setting F to be the index of the first
-- non-blank character of S and L to be the index of the last non-blank
-- character of S. Any lower case characters present in S will be folded to
-- their upper case equivalent except for character literals. If S consists
-- of entirely blanks (including when S = "") then we return with F > L.
procedure Scan_Sign
(Str : String;
Ptr : not null access Integer;
Max : Integer;
Minus : out Boolean;
Start : out Positive);
-- The Str, Ptr, Max parameters are as for the scan routines (Str is the
-- string to be scanned starting at Ptr.all, and Max is the index of the
-- last character in the string). Scan_Sign first scans out any initial
-- blanks, raising Constraint_Error if the field is all blank. It then
-- checks for and skips an initial plus or minus, requiring a non-blank
-- character to follow (Constraint_Error is raised if plus or minus appears
-- at the end of the string or with a following blank). Minus is set True
-- if a minus sign was skipped, and False otherwise. On exit Ptr.all points
-- to the character after the sign, or to the first non-blank character
-- if no sign is present. Start is set to the point to the first non-blank
-- character (sign or digit after it).
--
-- Note: if Str is null, i.e. if Max is less than Ptr, then this is a
-- special case of an all-blank string, and Ptr is unchanged, and hence
-- is greater than Max as required in this case. Constraint_Error is also
-- raised in this case.
--
-- This routine must not be called with Str'Last = Positive'Last. There is
-- no check for this case, the caller must ensure this condition is met.
procedure Scan_Plus_Sign
(Str : String;
Ptr : not null access Integer;
Max : Integer;
Start : out Positive);
-- Same as Scan_Sign, but allows only plus, not minus. This is used for
-- modular types.
function Scan_Exponent
(Str : String;
Ptr : not null access Integer;
Max : Integer;
Real : Boolean := False) return Integer;
-- Called to scan a possible exponent. Str, Ptr, Max are as described above
-- for Scan_Sign. If Ptr.all < Max and Str (Ptr.all) = 'E' or 'e', then an
-- exponent is scanned out, with the exponent value returned in Exp, and
-- Ptr.all updated to point past the exponent. If the exponent field is
-- incorrectly formed or not present, then Ptr.all is unchanged, and the
-- returned exponent value is zero. Real indicates whether a minus sign
-- is permitted (True = permitted). Very large exponents are handled by
-- returning a suitable large value. If the base is zero, then any value
-- is allowed, and otherwise the large value will either cause underflow
-- or overflow during the scaling process which is fine.
--
-- This routine must not be called with Str'Last = Positive'Last. There is
-- no check for this case, the caller must ensure this condition is met.
procedure Scan_Trailing_Blanks (Str : String; P : Positive);
-- Checks that the remainder of the field Str (P .. Str'Last) is all
-- blanks. Raises Constraint_Error if a non-blank character is found.
procedure Scan_Underscore
(Str : String;
P : in out Natural;
Ptr : not null access Integer;
Max : Integer;
Ext : Boolean);
-- Called if an underscore is encountered while scanning digits. Str (P)
-- contains the underscore. Ptr it the pointer to be returned to the
-- ultimate caller of the scan routine, Max is the maximum subscript in
-- Str, and Ext indicates if extended digits are allowed. In the case
-- where the underscore is invalid, Constraint_Error is raised with Ptr
-- set appropriately, otherwise control returns with P incremented past
-- the underscore.
--
-- This routine must not be called with Str'Last = Positive'Last. There is
-- no check for this case, the caller must ensure this condition is met.
end System.Val_Util;
|
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2017, AdaCore --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions are --
-- met: --
-- 1. Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- 2. Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in --
-- the documentation and/or other materials provided with the --
-- distribution. --
-- 3. Neither the name of the copyright holder nor the names of its --
-- contributors may be used to endorse or promote products derived --
-- from this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT --
-- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, --
-- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY --
-- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT --
-- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE --
-- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- This demonstration illustrates the use of a timer to control
-- the brightness of an LED. The point is to make the LED increase
-- and decrease in brightness, iteratively, for as long as the
-- application runs. In effect the LED light waxes and wanes.
-- See http://visualgdb.com/tutorials/arm/stm32/fpu/ for the inspiration.
--
-- The demo uses the STM32.Timer package directly to achieve the effect of
-- pulse-width-modulation, but note that there is a STM32.PWM package that
-- is dedicated to that purpose, hiding the details that are explicit here.
with Last_Chance_Handler; pragma Unreferenced (Last_Chance_Handler);
with STM32.Board; use STM32.Board;
with STM32.Device; use STM32.Device;
with HAL; use HAL;
with STM32.GPIO; use STM32.GPIO;
with STM32.Timers; use STM32.Timers;
procedure Demo_Timer_PWM is -- low-level demo of the PWM capabilities
Period : constant := 1000;
Output_Channel : constant Timer_Channel := Channel_2;
-- The LED driven by this example is determined by the channel selected.
-- That is so because each channel of Timer_4 is connected to a specific
-- LED in the alternate function configuration on this board. We will
-- initialize all of the LEDs to be in the AF mode for Timer_4. The
-- particular channel selected is completely arbitrary, as long as the
-- selected GPIO port/pin for the LED matches the selected channel.
--
-- Channel_1 is connected to the green LED.
-- Channel_2 is connected to the orange LED.
-- Channel_3 is connected to the red LED.
-- Channel_4 is connected to the blue LED.
--------------------
-- Configure_LEDs --
--------------------
procedure Configure_LEDs;
procedure Configure_LEDs is
begin
Enable_Clock (GPIO_D);
Configure_IO
(All_LEDs,
(Mode_AF,
AF => GPIO_AF_TIM4_2,
AF_Speed => Speed_50MHz,
AF_Output_Type => Push_Pull,
Resistors => Floating));
end Configure_LEDs;
-- The SFP run-time library for these boards is intended for certified
-- environments and so does not contain the full set of facilities defined
-- by the Ada language. The elementary functions are not included, for
-- example. In contrast, the Ravenscar "full" run-times do have these
-- functions.
function Sine (Input : Long_Float) return Long_Float;
-- Therefore there are four choices: 1) use the "ravescar-full-stm32f4"
-- runtime library, 2) pull the sources for the language-defined elementary
-- function package into the board's run-time library and rebuild the
-- run-time, 3) pull the sources for those packages into the source
-- directory of your application and rebuild your application, or 4) roll
-- your own approximation to the functions required by your application.
-- In this demonstration we roll our own approximation to the sine function
-- so that it doesn't matter which runtime library is used.
function Sine (Input : Long_Float) return Long_Float is
Pi : constant Long_Float := 3.14159_26535_89793_23846;
X : constant Long_Float := Long_Float'Remainder (Input, Pi * 2.0);
B : constant Long_Float := 4.0 / Pi;
C : constant Long_Float := (-4.0) / (Pi * Pi);
Y : constant Long_Float := B * X + C * X * abs (X);
P : constant Long_Float := 0.225;
begin
return P * (Y * abs (Y) - Y) + Y;
end Sine;
-- We use the sine function to drive the power applied to the LED, thereby
-- making the LED increase and decrease in brightness. We attach the timer
-- to the LED and then control how much power is supplied by changing the
-- value of the timer's output compare register. The sine function drives
-- that value, thus the waxing/waning effect.
begin
Configure_LEDs;
Enable_Clock (Timer_4);
Reset (Timer_4);
Configure
(Timer_4,
Prescaler => 1,
Period => Period,
Clock_Divisor => Div1,
Counter_Mode => Up);
Configure_Channel_Output
(Timer_4,
Channel => Output_Channel,
Mode => PWM1,
State => Enable,
Pulse => 0,
Polarity => High);
Set_Autoreload_Preload (Timer_4, True);
Enable_Channel (Timer_4, Output_Channel);
Enable (Timer_4);
declare
use STM32;
Arg : Long_Float := 0.0;
Pulse : UInt16;
Increment : constant Long_Float := 0.00003;
-- The Increment value controls the rate at which the brightness
-- increases and decreases. The value is more or less arbitrary, but
-- note that the effect of optimization is observable.
begin
loop
Pulse := UInt16 (Long_Float (Period / 2) * (1.0 + Sine (Arg)));
Set_Compare_Value (Timer_4, Output_Channel, Pulse);
Arg := Arg + Increment;
end loop;
end;
end Demo_Timer_PWM;
|
with Ada.Text_IO;
with Logging;
procedure TC_Log_Prio_And_Cat is
type Categories is (Debug, Warning, Error);
Maximum_Message_Length : constant := 64;
package Log is new Logging
(Categories => Categories,
Priorities => Natural,
Default_Category => Debug,
Default_Priority => 0,
Categories_Enabled_By_Default => True,
Prefix_Enabled_By_Default => True,
Maximum_Message_Length => Maximum_Message_Length,
Maximum_Number_Of_Messages => 6);
procedure Pop_And_Print;
-------------------
-- Pop_And_Print --
-------------------
procedure Pop_And_Print is
Str : String (1 .. Maximum_Message_Length);
Length : Natural;
Prio : Natural;
begin
Log.Pop (Str, Length, Prio);
if Length /= 0 then
Ada.Text_IO.Put_Line ("Prio:" & Prio'Img & " -> " &
Str (Str'First .. Str'First + Length - 1));
else
Ada.Text_IO.Put_Line ("Pop : The queue is empty");
end if;
end Pop_And_Print;
begin
Ada.Text_IO.Put_Line ("--- Log test begin ---");
-- The priority and category features are already tested separatly so this
-- test is just a simple check to see if the two work together.
Log.Log_Line (Debug, "Debug, prio 0");
Log.Disable (Debug);
Log.Log_Line (Debug, "Debug, should not print");
Log.Enable (Debug);
Log.Set_Priority (Debug, 1);
Log.Log_Line (Debug, "Debug, prio 1");
Log.Log_Line (Warning, "Warning, prio 0");
Log.Disable (Warning);
Log.Log_Line (Warning, "Warning, should not print");
Log.Enable (Warning);
Log.Set_Priority (Warning, 2);
Log.Log_Line (Warning, "Warning, prio 2");
Log.Log_Line (Error, "Error, prio 0");
Log.Disable (Error);
Log.Log_Line (Error, "Error, should not print");
Log.Enable (Error);
Log.Set_Priority (Error, 3);
Log.Log_Line (Error, "Error, prio 3");
if not Log.Full then
Ada.Text_IO.Put_Line ("The queue should be full");
end if;
for Cnt in 1 .. 7 loop
Pop_And_Print;
end loop;
if not Log.Empty then
Ada.Text_IO.Put_Line ("The queue should be empty");
end if;
Ada.Text_IO.Put_Line ("--- Log test end ---");
end TC_Log_Prio_And_Cat;
|
-- { dg-do compile }
with Constant1_Pkg;
package Constant1 is
type Timer_Id_T is new Constant1_Pkg.Timer_Id_T with null record;
type Timer_Op_T (Pending : Boolean := False) is
record
case Pending is
when True =>
Timer_Id : Timer_Id_T;
when False =>
null;
end case;
end record;
Timer : Timer_Op_T
:= (True, Timer_Id_T'(Constant1_Pkg.Null_Timer_Id with null record));
end Constant1;
|
-- The Village of Vampire by YT, このソースコードはNYSLです
with Ada.Calendar.Time_Zones;
with Ada.Calendar.Formatting;
package Tabula.Calendar is
use type Ada.Calendar.Time_Zones.Time_Offset;
Null_Time : constant Ada.Calendar.Time;
Time_Offset : constant Ada.Calendar.Time_Zones.Time_Offset := 9 * 60;
-- GMT+9 日本
private
Null_Time : constant Ada.Calendar.Time :=
Ada.Calendar.Formatting.Time_Of (
Year => Ada.Calendar.Year_Number'First,
Month => Ada.Calendar.Month_Number'First,
Day => Ada.Calendar.Day_Number'First,
Time_Zone => 0);
end Tabula.Calendar;
|
------------------------------------------------------------------------------
-- --
-- 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. --
-- --
------------------------------------------------------------------------------
-- The file declares the main procedure for the demonstration.
with HAL; use HAL;
with STM32.GPIO; use STM32.GPIO;
with STM32.USARTs; use STM32.USARTs;
with STM32.Device; use STM32.Device;
procedure Demo_USART_Polling is
TX_Pin : constant GPIO_Point := PB7;
RX_Pin : constant GPIO_Point := PB6;
procedure Initialize_UART_GPIO;
procedure Initialize;
procedure Await_Send_Ready (This : USART) with Inline;
procedure Put_Blocking (This : in out USART; Data : UInt16);
--------------------------
-- Initialize_UART_GPIO --
--------------------------
procedure Initialize_UART_GPIO is
begin
Enable_Clock (USART_1);
Enable_Clock (RX_Pin & TX_Pin);
Configure_IO
(RX_Pin & TX_Pin,
(Mode => Mode_AF,
AF => GPIO_AF_USART1_7,
Resistors => Pull_Up,
AF_Speed => Speed_50MHz,
AF_Output_Type => Push_Pull));
end Initialize_UART_GPIO;
----------------
-- Initialize --
----------------
procedure Initialize is
begin
Initialize_UART_GPIO;
Disable (USART_1);
Set_Baud_Rate (USART_1, 115_200);
Set_Mode (USART_1, Tx_Rx_Mode);
Set_Stop_Bits (USART_1, Stopbits_1);
Set_Word_Length (USART_1, Word_Length_8);
Set_Parity (USART_1, No_Parity);
Set_Flow_Control (USART_1, No_Flow_Control);
Enable (USART_1);
end Initialize;
----------------------
-- Await_Send_Ready --
----------------------
procedure Await_Send_Ready (This : USART) is
begin
loop
exit when Tx_Ready (This);
end loop;
end Await_Send_Ready;
------------------
-- Put_Blocking --
------------------
procedure Put_Blocking (This : in out USART; Data : UInt16) is
begin
Await_Send_Ready (This);
Transmit (This, UInt9 (Data));
end Put_Blocking;
begin
Initialize;
loop
for Next_Char in Character range 'a' .. 'z' loop -- arbitrary
Put_Blocking (USART_1, Character'Pos (Next_Char));
end loop;
end loop;
end Demo_USART_Polling;
|
-----------------------------------------------------------------------
-- components-utils-flush -- Flush javascript queue and response
-- Copyright (C) 2011 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 ASF.Contexts.Writer;
package body ASF.Components.Utils.Flush is
-- ------------------------------
-- Flush the javascript queue
-- ------------------------------
overriding
procedure Encode_Begin (UI : in UIFlush;
Context : in out ASF.Contexts.Faces.Faces_Context'Class) is
Writer : constant ASF.Contexts.Writer.Response_Writer_Access := Context.Get_Response_Writer;
begin
if UI.Get_Attribute (Name => "response",
Context => Context,
Default => False) then
Writer.Write_Scripts;
else
Writer.Flush;
end if;
end Encode_Begin;
end ASF.Components.Utils.Flush;
|
with impact.d3.Shape.concave,
impact.d3.triangle_Callback,
impact.d3.striding_Mesh;
package impact.d3.Shape.concave.triangle_mesh
--
-- The impact.d3.Shape.concave.triangle_mesh is an internal concave triangle mesh interface.
--
-- Don't use this class directly, use impact.d3.Shape.concave.triangle_mesh.bvh instead.
--
is
type Item is new impact.d3.Shape.concave.Item with private;
--- Forge
--
overriding procedure destruct (Self : in out Item);
--- Attributes
--
overriding procedure setLocalScaling (Self : in out Item; scaling : in math.Vector_3);
overriding function getLocalScaling (Self : in Item) return math.Vector_3;
overriding function getName (Self : in Item) return String;
function localGetSupportingVertex (Self : in Item; vec : in math.Vector_3) return math.Vector_3;
function getMeshInterface (Self : in Item) return access impact.d3.striding_Mesh.item'Class;
function getLocalAabbMin (Self : in Item) return math.Vector_3;
function getLocalAabbMax (Self : in Item) return math.Vector_3;
-- Operations
--
procedure recalcLocalAabb (Self : in out Item);
overriding procedure processAllTriangles (Self : in Item; callback : access impact.d3.triangle_Callback.Item'Class;
aabbMin, aabbMax : in math.Vector_3);
overriding procedure calculateLocalInertia (Self : in Item; mass : in math.Real;
inertia : out math.Vector_3);
overriding procedure getAabb (Self : in Item; t : in Transform_3d;
aabbMin, aabbMax : out math.Vector_3);
private
type Item is new impact.d3.Shape.concave.Item with
record
m_localAabbMin,
m_localAabbMax : math.Vector_3;
m_meshInterface : impact.d3.striding_Mesh.view;
end record;
function to_triangle_mesh_Shape (meshInterface : access impact.d3.striding_Mesh.Item'Class) return Item'Class;
--- SupportVertexCallback
--
type SupportVertexCallback is new impact.d3.triangle_Callback.Item with
record
m_supportVertexLocal : math.Vector_3;
m_worldTrans : Transform_3d;
m_maxDot : math.Real;
m_supportVecLocal : math.Vector_3;
end record;
function to_SupportVertexCallback (supportVecWorld : in math.Vector_3;
trans : in Transform_3d) return SupportVertexCallback;
overriding procedure processTriangle (Self : in out SupportVertexCallback; triangle : access math.Matrix_3x3;
partId : in Integer;
triangleIndex : in Integer );
function GetSupportVertexLocal (Self : in SupportVertexCallback) return math.Vector_3;
end impact.d3.Shape.concave.triangle_mesh;
|
pragma License (Unrestricted);
-- implementation unit required by compiler
with System.Exponentiations;
package System.Exp_LLI is
pragma Pure;
-- required for "**" with checking by compiler (s-explli.ads)
function Exp_Long_Long_Integer is
new Exponentiations.Generic_Exp_Integer (Long_Long_Integer);
end System.Exp_LLI;
|
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
--A D A . L O N G _ L O N G _ F L O A T _ W I D E _ W I D E _ T E X T _ I O --
-- --
-- S p e c --
-- --
-- This specification is adapted from the Ada Reference Manual for use with --
-- GNAT. In accordance with the copyright of that document, you can freely --
-- copy and modify this specification, provided that if you redistribute a --
-- modified version, any changes that you have made are clearly indicated. --
-- --
------------------------------------------------------------------------------
with Ada.Wide_Wide_Text_IO;
package Ada.Long_Long_Float_Wide_Wide_Text_IO is
new Ada.Wide_Wide_Text_IO.Float_IO (Long_Long_Float);
|
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure Lire_Entier is
Base_MAX : constant Integer := 10 + 26; -- 10 chiffres ('0'..'9') + 26 lettres ('A'..'Z')
-- Est-ce que la base est valide ?
function Est_Base_Valide(Base : in Integer) return Boolean is
begin
return 2 <= Base and Base <= Base_MAX;
--return True;
end Est_Base_Valide;
-- Transformer indice en nombre entierdans base10
function Indice_En_Base10(Indice: Character) return Integer is
begin
if Indice >= '0' and Indice <= '9' then
return Character'Pos(Indice) - Character'Pos('0');
else
return 10 + Character'Pos(Indice) - Character'Pos('A');
end if;
end Indice_En_Base10;
function Nombre_En_Indice(Nombre: Integer) return Character is
begin
if Nombre < 10 then
return Character'Val(Nombre + Character'Pos('0'));
else
return Character'Val(Nombre - 10 + Character'Pos('A'));
end if;
end Nombre_En_Indice;
-- Lire un entier au clavier dans la base considérée.
procedure Lire (
Nombre: out Integer ; -- l'entier lu au clavier
Base: in Integer := 10 -- la base à utiliser
) with
Pre => Est_Base_Valide (Base)
is
NbrEnBase: String(1 .. 10);
Iteration: Integer;
begin
Get_Line(NbrEnBase, Iteration);
Nombre := 0;
for char of NbrEnBase loop
Iteration := Iteration - 1;
Nombre := Nombre + Indice_En_Base10(char) * Base**Iteration;
exit when Iteration = 0;
end loop;
end Lire;
-- Écrire un entier dans une base donnée.
procedure Ecrire (
Nombre: in Integer ; -- l'entier à écrire
Base : in Integer -- la base à utliser
) with
Pre => Est_Base_Valide (Base)
and Nombre >= 0
is
begin
if Nombre < Base then
Put(Nombre_En_Indice(Nombre));
return;
end if;
Ecrire(Nombre/Base, Base);
Put(Nombre_En_Indice(Nombre mod Base));
end Ecrire;
Base_Lecture: Integer; -- la base de l'entier lu
Base_Ecriture: Integer; -- la base de l'entier écrit
Un_Entier: Integer; -- un entier lu au clavier
begin
-- Demander la base de lecture
Put ("Base de l'entier lu : ");
Get (Base_Lecture);
Skip_Line;
-- Demander un entier
Put ("Un entier (base ");
Put (Base_Lecture, 1);
Put (") : ");
if Est_Base_Valide(Base_Lecture) then
Lire (Un_Entier, Base_Lecture);
else
Skip_Line;
Un_Entier := 0;
end if;
-- Afficher l'entier lu en base 10
Put ("L'entier lu est (base 10) : ");
Put (Un_Entier, 1);
New_Line;
-- Demander la base d'écriture
Put ("Base pour écrire l'entier : ");
Get (Base_Ecriture);
Skip_Line;
-- Afficher l'entier lu dans la base d'écriture
if Est_Base_Valide(Base_Lecture) then
Put ("L'entier en base ");
Put (Base_Ecriture, 1);
Put (" est ");
Ecrire (Un_Entier, Base_Ecriture);
New_Line;
end if;
-- Remarque : on aurait pu utiliser les sous-programme Lire pour lire
-- les bases et Ecrire pour les écrire en base 10. Nous utilisons les
-- Get et Put d'Ada pour faciliter le test du programme.
end Lire_Entier; |
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Element_Vectors;
with Program.Elements.Paths;
with Program.Lexical_Elements;
with Program.Elements.Expressions;
package Program.Elements.Case_Expression_Paths is
pragma Pure (Program.Elements.Case_Expression_Paths);
type Case_Expression_Path is
limited interface and Program.Elements.Paths.Path;
type Case_Expression_Path_Access is access all Case_Expression_Path'Class
with Storage_Size => 0;
not overriding function Choices
(Self : Case_Expression_Path)
return not null Program.Element_Vectors.Element_Vector_Access
is abstract;
not overriding function Expression
(Self : Case_Expression_Path)
return not null Program.Elements.Expressions.Expression_Access
is abstract;
type Case_Expression_Path_Text is limited interface;
type Case_Expression_Path_Text_Access is
access all Case_Expression_Path_Text'Class with Storage_Size => 0;
not overriding function To_Case_Expression_Path_Text
(Self : in out Case_Expression_Path)
return Case_Expression_Path_Text_Access is abstract;
not overriding function When_Token
(Self : Case_Expression_Path_Text)
return not null Program.Lexical_Elements.Lexical_Element_Access
is abstract;
not overriding function Arrow_Token
(Self : Case_Expression_Path_Text)
return not null Program.Lexical_Elements.Lexical_Element_Access
is abstract;
type Case_Expression_Path_Vector is
limited interface and Program.Element_Vectors.Element_Vector;
type Case_Expression_Path_Vector_Access is
access all Case_Expression_Path_Vector'Class with Storage_Size => 0;
overriding function Element
(Self : Case_Expression_Path_Vector;
Index : Positive)
return not null Program.Elements.Element_Access is abstract
with Post'Class => Element'Result.Is_Case_Expression_Path;
function To_Case_Expression_Path
(Self : Case_Expression_Path_Vector'Class;
Index : Positive)
return not null Case_Expression_Path_Access
is (Self.Element (Index).To_Case_Expression_Path);
end Program.Elements.Case_Expression_Paths;
|
--------------------------------------------------------------------------------------------------------------------
-- Copyright (c) 2013-2020, Luke A. Guest
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising from the use of this software.
--
-- Permission is granted to anyone to use this software for any purpose,
-- including commercial applications, and to alter it and redistribute it
-- freely, subject to the following restrictions:
--
-- 1. The origin of this software must not be misrepresented; you must not
-- claim that you wrote the original software. If you use this software
-- in a product, an acknowledgment in the product documentation would be
-- appreciated but is not required.
--
-- 2. Altered source versions must be plainly marked as such, and must not be
-- misrepresented as being the original software.
--
-- 3. This notice may not be removed or altered from any source
-- distribution.
--------------------------------------------------------------------------------------------------------------------
with Interfaces.C;
with Interfaces.C.Strings;
with SDL.Error;
package body SDL.Video is
use type C.int;
function Is_Screen_Saver_Enabled return Boolean is
function SDL_Is_Screen_Saver_Enabled return C.int with
Import => True,
Convention => C,
External_Name => "SDL_IsScreenSaverEnabled";
begin
return (if SDL_Is_Screen_Saver_Enabled = 1 then True else False);
end Is_Screen_Saver_Enabled;
function Initialise (Name : in String) return Boolean is
function SDL_Video_Init (C_Name : in C.Strings.chars_ptr) return C.int with
Import => True,
Convention => C,
External_Name => "SDL_VideoInit";
C_Str : C.Strings.chars_ptr := C.Strings.Null_Ptr;
Result : C.int;
begin
if Name /= "" then
C_Str := C.Strings.New_String (Name);
Result := SDL_Video_Init (C_Name => C_Str);
C.Strings.Free (C_Str);
else
Result := SDL_Video_Init (C_Name => C.Strings.Null_Ptr);
end if;
return (Result = Success);
end Initialise;
function Total_Drivers return Positive is
function SDL_Get_Num_Video_Drivers return C.int with
Import => True,
Convention => C,
External_Name => "SDL_GetNumVideoDrivers";
Num : constant C.int := SDL_Get_Num_Video_Drivers;
begin
if Num < 0 then
raise Video_Error with SDL.Error.Get;
end if;
return Positive (Num);
end Total_Drivers;
function Driver_Name (Index : in Positive) return String is
function SDL_Get_Video_Driver (I : in C.int) return C.Strings.chars_ptr with
Import => True,
Convention => C,
External_Name => "SDL_GetVideoDriver";
-- Index is zero based, so need to subtract 1 to correct it.
C_Str : C.Strings.chars_ptr := SDL_Get_Video_Driver (C.int (Index) - 1);
begin
return C.Strings.Value (C_Str);
end Driver_Name;
function Current_Driver_Name return String is
function SDL_Get_Current_Video_Driver return C.Strings.chars_ptr with
Import => True,
Convention => C,
External_Name => "SDL_GetCurrentVideoDriver";
C_Str : constant C.Strings.chars_ptr := SDL_Get_Current_Video_Driver;
use type C.Strings.chars_ptr;
begin
if C_Str = C.Strings.Null_Ptr then
raise Video_Error with SDL.Error.Get;
end if;
return C.Strings.Value (C_Str);
end Current_Driver_Name;
function Total_Displays return Positive is
function SDL_Get_Num_Video_Displays return C.int with
Import => True,
Convention => C,
External_Name => "SDL_GetNumVideoDisplays";
Num : constant C.int := SDL_Get_Num_Video_Displays;
begin
if Num <= 0 then
raise Video_Error with SDL.Error.Get;
end if;
return Positive (Num);
end Total_Displays;
end SDL.Video;
|
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2016, AdaCore --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions are --
-- met: --
-- 1. Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- 2. Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in --
-- the documentation and/or other materials provided with the --
-- distribution. --
-- 3. Neither the name of STMicroelectronics nor the names of its --
-- contributors may be used to endorse or promote products derived --
-- from this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT --
-- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, --
-- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY --
-- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT --
-- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE --
-- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
-- --
-- This file is based on: --
-- --
-- @file stm32f4_discovery.h --
-- @author MCD Application Team --
-- @version V1.1.0 --
-- @date 19-June-2014 --
-- @brief This file contains definitions for STM32F4-Discovery Kit --
-- LEDs, push-buttons hardware resources. --
-- --
-- COPYRIGHT(c) 2014 STMicroelectronics --
------------------------------------------------------------------------------
-- This file provides declarations for devices on the STM32F4 Discovery kits
-- manufactured by ST Microelectronics.
with STM32.Device; use STM32.Device;
with STM32.GPIO; use STM32.GPIO;
package STM32.Board is
pragma Elaborate_Body;
subtype User_LED is GPIO_Point;
Red_LED : User_LED renames PA9;
Green_LED : User_LED renames PC7;
Blue_LED : User_LED renames PB7;
LEDs : GPIO_Points := Red_LED & Blue_LED & Green_LED;
User_Button : GPIO_Point renames PC13;
LCH_LED : User_LED renames PA9;
procedure Initialize_Board;
procedure Initialize_LEDs;
procedure Turn_On (This : in out User_LED) renames STM32.GPIO.Set;
procedure Turn_Off (This : in out User_LED) renames STM32.GPIO.Clear;
procedure Toggle (This : in out User_LED) renames STM32.GPIO.Toggle;
procedure Toggle_LEDs (These : in out GPIO_Points)
renames STM32.GPIO.Toggle;
procedure All_LEDs_Off;
end STM32.Board;
|
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE boost_serialization>
<boost_serialization signature="serialization::archive" version="14">
<syndb class_id="0" tracking_level="0" version="0">
<userIPLatency>-1</userIPLatency>
<userIPName></userIPName>
<cdfg class_id="1" tracking_level="1" version="0" object_id="_0">
<name>hls_target</name>
<ret_bitwidth>0</ret_bitwidth>
<ports class_id="2" tracking_level="0" version="0">
<count>4</count>
<item_version>0</item_version>
<item class_id="3" tracking_level="1" version="0" object_id="_1">
<Value class_id="4" tracking_level="0" version="0">
<Obj class_id="5" tracking_level="0" version="0">
<type>1</type>
<id>1</id>
<name>hw_input_V_value_V</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo class_id="6" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>hw_input.V.value.V</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<direction>0</direction>
<if_type>0</if_type>
<array_size>0</array_size>
<bit_vecs class_id="7" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
<item class_id_reference="3" object_id="_2">
<Value>
<Obj>
<type>1</type>
<id>2</id>
<name>hw_input_V_last_V</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>hw_input.V.last.V</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<direction>0</direction>
<if_type>0</if_type>
<array_size>0</array_size>
<bit_vecs>
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
<item class_id_reference="3" object_id="_3">
<Value>
<Obj>
<type>1</type>
<id>3</id>
<name>hw_output_V_value_V</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>hw_output.V.value.V</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<direction>1</direction>
<if_type>0</if_type>
<array_size>0</array_size>
<bit_vecs>
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
<item class_id_reference="3" object_id="_4">
<Value>
<Obj>
<type>1</type>
<id>4</id>
<name>hw_output_V_last_V</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>hw_output.V.last.V</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<direction>1</direction>
<if_type>0</if_type>
<array_size>0</array_size>
<bit_vecs>
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
</ports>
<nodes class_id="8" tracking_level="0" version="0">
<count>11</count>
<item_version>0</item_version>
<item class_id="9" tracking_level="1" version="0" object_id="_5">
<Value>
<Obj>
<type>0</type>
<id>11</id>
<name>p_hw_input_stencil_st</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_shifts/sharpen</fileDirectory>
<lineNumber>52</lineNumber>
<contextFuncName>hls_target</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item class_id="10" tracking_level="0" version="0">
<first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_shifts/sharpen</first>
<second class_id="11" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="12" tracking_level="0" version="0">
<first class_id="13" tracking_level="0" version="0">
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>52</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>_hw_input_stencil_stream.V.value.V</originalName>
<rtlName></rtlName>
<coreName>FIFO_SRL</coreName>
</Obj>
<bitwidth>288</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>41</item>
</oprand_edges>
<opcode>alloca</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_6">
<Value>
<Obj>
<type>0</type>
<id>15</id>
<name>p_hw_input_stencil_st_3</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName>FIFO_SRL</coreName>
</Obj>
<bitwidth>288</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>42</item>
</oprand_edges>
<opcode>alloca</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_7">
<Value>
<Obj>
<type>0</type>
<id>19</id>
<name>p_hw_input_stencil_st_4</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName>FIFO_SRL</coreName>
</Obj>
<bitwidth>288</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>43</item>
</oprand_edges>
<opcode>alloca</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_8">
<Value>
<Obj>
<type>0</type>
<id>23</id>
<name>p_delayed_input_stenc</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_shifts/sharpen</fileDirectory>
<lineNumber>82</lineNumber>
<contextFuncName>hls_target</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_shifts/sharpen</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>82</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>_delayed_input_stencil_stream.V.value.V</originalName>
<rtlName></rtlName>
<coreName>FIFO_SRL</coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>44</item>
</oprand_edges>
<opcode>alloca</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_9">
<Value>
<Obj>
<type>0</type>
<id>27</id>
<name>p_mul_stencil_stream_s</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_shifts/sharpen</fileDirectory>
<lineNumber>172</lineNumber>
<contextFuncName>hls_target</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_shifts/sharpen</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>172</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>_mul_stencil_stream.V.value.V</originalName>
<rtlName></rtlName>
<coreName>FIFO_SRL</coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>45</item>
</oprand_edges>
<opcode>alloca</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_10">
<Value>
<Obj>
<type>0</type>
<id>33</id>
<name></name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_shifts/sharpen</fileDirectory>
<lineNumber>56</lineNumber>
<contextFuncName>hls_target</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_shifts/sharpen</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>56</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>47</item>
<item>48</item>
<item>49</item>
<item>50</item>
</oprand_edges>
<opcode>call</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_11">
<Value>
<Obj>
<type>0</type>
<id>34</id>
<name></name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>6</count>
<item_version>0</item_version>
<item>52</item>
<item>53</item>
<item>54</item>
<item>55</item>
<item>329</item>
<item>330</item>
</oprand_edges>
<opcode>call</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_12">
<Value>
<Obj>
<type>0</type>
<id>35</id>
<name></name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>5</count>
<item_version>0</item_version>
<item>57</item>
<item>58</item>
<item>59</item>
<item>327</item>
<item>331</item>
</oprand_edges>
<opcode>call</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_13">
<Value>
<Obj>
<type>0</type>
<id>36</id>
<name></name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>61</item>
<item>62</item>
<item>63</item>
<item>328</item>
</oprand_edges>
<opcode>call</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_14">
<Value>
<Obj>
<type>0</type>
<id>37</id>
<name></name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>8</count>
<item_version>0</item_version>
<item>65</item>
<item>66</item>
<item>67</item>
<item>68</item>
<item>69</item>
<item>325</item>
<item>326</item>
<item>332</item>
</oprand_edges>
<opcode>call</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_15">
<Value>
<Obj>
<type>0</type>
<id>38</id>
<name></name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_shifts/sharpen</fileDirectory>
<lineNumber>307</lineNumber>
<contextFuncName>hls_target</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_shifts/sharpen</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>307</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>0</count>
<item_version>0</item_version>
</oprand_edges>
<opcode>ret</opcode>
<m_Display>0</m_Display>
</item>
</nodes>
<consts class_id="15" tracking_level="0" version="0">
<count>6</count>
<item_version>0</item_version>
<item class_id="16" tracking_level="1" version="0" object_id="_16">
<Value>
<Obj>
<type>2</type>
<id>40</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>64</bitwidth>
</Value>
<const_type>0</const_type>
<content>1</content>
</item>
<item class_id_reference="16" object_id="_17">
<Value>
<Obj>
<type>2</type>
<id>46</id>
<name>linebuffer_1</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<const_type>6</const_type>
<content><constant:linebuffer.1></content>
</item>
<item class_id_reference="16" object_id="_18">
<Value>
<Obj>
<type>2</type>
<id>51</id>
<name>Loop_1_proc</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<const_type>6</const_type>
<content><constant:Loop_1_proc></content>
</item>
<item class_id_reference="16" object_id="_19">
<Value>
<Obj>
<type>2</type>
<id>56</id>
<name>Loop_2_proc</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<const_type>6</const_type>
<content><constant:Loop_2_proc></content>
</item>
<item class_id_reference="16" object_id="_20">
<Value>
<Obj>
<type>2</type>
<id>60</id>
<name>Loop_3_proc</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<const_type>6</const_type>
<content><constant:Loop_3_proc></content>
</item>
<item class_id_reference="16" object_id="_21">
<Value>
<Obj>
<type>2</type>
<id>64</id>
<name>Loop_4_proc</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<const_type>6</const_type>
<content><constant:Loop_4_proc></content>
</item>
</consts>
<blocks class_id="17" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="18" tracking_level="1" version="0" object_id="_22">
<Obj>
<type>3</type>
<id>39</id>
<name>hls_target</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<node_objs>
<count>11</count>
<item_version>0</item_version>
<item>11</item>
<item>15</item>
<item>19</item>
<item>23</item>
<item>27</item>
<item>33</item>
<item>34</item>
<item>35</item>
<item>36</item>
<item>37</item>
<item>38</item>
</node_objs>
</item>
</blocks>
<edges class_id="19" tracking_level="0" version="0">
<count>32</count>
<item_version>0</item_version>
<item class_id="20" tracking_level="1" version="0" object_id="_23">
<id>41</id>
<edge_type>1</edge_type>
<source_obj>40</source_obj>
<sink_obj>11</sink_obj>
</item>
<item class_id_reference="20" object_id="_24">
<id>42</id>
<edge_type>1</edge_type>
<source_obj>40</source_obj>
<sink_obj>15</sink_obj>
</item>
<item class_id_reference="20" object_id="_25">
<id>43</id>
<edge_type>1</edge_type>
<source_obj>40</source_obj>
<sink_obj>19</sink_obj>
</item>
<item class_id_reference="20" object_id="_26">
<id>44</id>
<edge_type>1</edge_type>
<source_obj>40</source_obj>
<sink_obj>23</sink_obj>
</item>
<item class_id_reference="20" object_id="_27">
<id>45</id>
<edge_type>1</edge_type>
<source_obj>40</source_obj>
<sink_obj>27</sink_obj>
</item>
<item class_id_reference="20" object_id="_28">
<id>47</id>
<edge_type>1</edge_type>
<source_obj>46</source_obj>
<sink_obj>33</sink_obj>
</item>
<item class_id_reference="20" object_id="_29">
<id>48</id>
<edge_type>1</edge_type>
<source_obj>1</source_obj>
<sink_obj>33</sink_obj>
</item>
<item class_id_reference="20" object_id="_30">
<id>49</id>
<edge_type>1</edge_type>
<source_obj>2</source_obj>
<sink_obj>33</sink_obj>
</item>
<item class_id_reference="20" object_id="_31">
<id>50</id>
<edge_type>1</edge_type>
<source_obj>11</source_obj>
<sink_obj>33</sink_obj>
</item>
<item class_id_reference="20" object_id="_32">
<id>52</id>
<edge_type>1</edge_type>
<source_obj>51</source_obj>
<sink_obj>34</sink_obj>
</item>
<item class_id_reference="20" object_id="_33">
<id>53</id>
<edge_type>1</edge_type>
<source_obj>11</source_obj>
<sink_obj>34</sink_obj>
</item>
<item class_id_reference="20" object_id="_34">
<id>54</id>
<edge_type>1</edge_type>
<source_obj>15</source_obj>
<sink_obj>34</sink_obj>
</item>
<item class_id_reference="20" object_id="_35">
<id>55</id>
<edge_type>1</edge_type>
<source_obj>19</source_obj>
<sink_obj>34</sink_obj>
</item>
<item class_id_reference="20" object_id="_36">
<id>57</id>
<edge_type>1</edge_type>
<source_obj>56</source_obj>
<sink_obj>35</sink_obj>
</item>
<item class_id_reference="20" object_id="_37">
<id>58</id>
<edge_type>1</edge_type>
<source_obj>15</source_obj>
<sink_obj>35</sink_obj>
</item>
<item class_id_reference="20" object_id="_38">
<id>59</id>
<edge_type>1</edge_type>
<source_obj>23</source_obj>
<sink_obj>35</sink_obj>
</item>
<item class_id_reference="20" object_id="_39">
<id>61</id>
<edge_type>1</edge_type>
<source_obj>60</source_obj>
<sink_obj>36</sink_obj>
</item>
<item class_id_reference="20" object_id="_40">
<id>62</id>
<edge_type>1</edge_type>
<source_obj>19</source_obj>
<sink_obj>36</sink_obj>
</item>
<item class_id_reference="20" object_id="_41">
<id>63</id>
<edge_type>1</edge_type>
<source_obj>27</source_obj>
<sink_obj>36</sink_obj>
</item>
<item class_id_reference="20" object_id="_42">
<id>65</id>
<edge_type>1</edge_type>
<source_obj>64</source_obj>
<sink_obj>37</sink_obj>
</item>
<item class_id_reference="20" object_id="_43">
<id>66</id>
<edge_type>1</edge_type>
<source_obj>3</source_obj>
<sink_obj>37</sink_obj>
</item>
<item class_id_reference="20" object_id="_44">
<id>67</id>
<edge_type>1</edge_type>
<source_obj>4</source_obj>
<sink_obj>37</sink_obj>
</item>
<item class_id_reference="20" object_id="_45">
<id>68</id>
<edge_type>1</edge_type>
<source_obj>27</source_obj>
<sink_obj>37</sink_obj>
</item>
<item class_id_reference="20" object_id="_46">
<id>69</id>
<edge_type>1</edge_type>
<source_obj>23</source_obj>
<sink_obj>37</sink_obj>
</item>
<item class_id_reference="20" object_id="_47">
<id>325</id>
<edge_type>4</edge_type>
<source_obj>36</source_obj>
<sink_obj>37</sink_obj>
</item>
<item class_id_reference="20" object_id="_48">
<id>326</id>
<edge_type>4</edge_type>
<source_obj>35</source_obj>
<sink_obj>37</sink_obj>
</item>
<item class_id_reference="20" object_id="_49">
<id>327</id>
<edge_type>4</edge_type>
<source_obj>34</source_obj>
<sink_obj>35</sink_obj>
</item>
<item class_id_reference="20" object_id="_50">
<id>328</id>
<edge_type>4</edge_type>
<source_obj>34</source_obj>
<sink_obj>36</sink_obj>
</item>
<item class_id_reference="20" object_id="_51">
<id>329</id>
<edge_type>4</edge_type>
<source_obj>33</source_obj>
<sink_obj>34</sink_obj>
</item>
<item class_id_reference="20" object_id="_52">
<id>330</id>
<edge_type>4</edge_type>
<source_obj>33</source_obj>
<sink_obj>34</sink_obj>
</item>
<item class_id_reference="20" object_id="_53">
<id>331</id>
<edge_type>4</edge_type>
<source_obj>34</source_obj>
<sink_obj>35</sink_obj>
</item>
<item class_id_reference="20" object_id="_54">
<id>332</id>
<edge_type>4</edge_type>
<source_obj>35</source_obj>
<sink_obj>37</sink_obj>
</item>
</edges>
</cdfg>
<cdfg_regions class_id="21" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="22" tracking_level="1" version="0" object_id="_55">
<mId>1</mId>
<mTag>hls_target</mTag>
<mType>0</mType>
<sub_regions>
<count>0</count>
<item_version>0</item_version>
</sub_regions>
<basic_blocks>
<count>1</count>
<item_version>0</item_version>
<item>39</item>
</basic_blocks>
<mII>-1</mII>
<mDepth>-1</mDepth>
<mMinTripCount>-1</mMinTripCount>
<mMaxTripCount>-1</mMaxTripCount>
<mMinLatency>2077921</mMinLatency>
<mMaxLatency>-1</mMaxLatency>
<mIsDfPipe>1</mIsDfPipe>
<mDfPipe class_id="23" tracking_level="1" version="0" object_id="_56">
<port_list class_id="24" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</port_list>
<process_list class_id="25" tracking_level="0" version="0">
<count>5</count>
<item_version>0</item_version>
<item class_id="26" tracking_level="1" version="0" object_id="_57">
<type>0</type>
<name>linebuffer_1_U0</name>
<ssdmobj_id>33</ssdmobj_id>
<pins class_id="27" tracking_level="0" version="0">
<count>3</count>
<item_version>0</item_version>
<item class_id="28" tracking_level="1" version="0" object_id="_58">
<port class_id="29" tracking_level="1" version="0" object_id="_59">
<name>in_axi_stream_V_value_V</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id="30" tracking_level="1" version="0" object_id="_60">
<type>0</type>
<name>linebuffer_1_U0</name>
<ssdmobj_id>33</ssdmobj_id>
</inst>
</item>
<item class_id_reference="28" object_id="_61">
<port class_id_reference="29" object_id="_62">
<name>in_axi_stream_V_last_V</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_60"></inst>
</item>
<item class_id_reference="28" object_id="_63">
<port class_id_reference="29" object_id="_64">
<name>out_stream_V_value_V</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_60"></inst>
</item>
</pins>
</item>
<item class_id_reference="26" object_id="_65">
<type>0</type>
<name>Loop_1_proc_U0</name>
<ssdmobj_id>34</ssdmobj_id>
<pins>
<count>3</count>
<item_version>0</item_version>
<item class_id_reference="28" object_id="_66">
<port class_id_reference="29" object_id="_67">
<name>p_hw_input_stencil_stream_V_value_V</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id="_68">
<type>0</type>
<name>Loop_1_proc_U0</name>
<ssdmobj_id>34</ssdmobj_id>
</inst>
</item>
<item class_id_reference="28" object_id="_69">
<port class_id_reference="29" object_id="_70">
<name>p_hw_input_stencil_stream_to_delayed_input_V_value_V</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_68"></inst>
</item>
<item class_id_reference="28" object_id="_71">
<port class_id_reference="29" object_id="_72">
<name>p_hw_input_stencil_stream_to_mul_V_value_V</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_68"></inst>
</item>
</pins>
</item>
<item class_id_reference="26" object_id="_73">
<type>0</type>
<name>Loop_2_proc_U0</name>
<ssdmobj_id>35</ssdmobj_id>
<pins>
<count>2</count>
<item_version>0</item_version>
<item class_id_reference="28" object_id="_74">
<port class_id_reference="29" object_id="_75">
<name>p_hw_input_stencil_stream_to_delayed_input_V_value_V</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id="_76">
<type>0</type>
<name>Loop_2_proc_U0</name>
<ssdmobj_id>35</ssdmobj_id>
</inst>
</item>
<item class_id_reference="28" object_id="_77">
<port class_id_reference="29" object_id="_78">
<name>p_delayed_input_stencil_stream_V_value_V</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_76"></inst>
</item>
</pins>
</item>
<item class_id_reference="26" object_id="_79">
<type>0</type>
<name>Loop_3_proc_U0</name>
<ssdmobj_id>36</ssdmobj_id>
<pins>
<count>2</count>
<item_version>0</item_version>
<item class_id_reference="28" object_id="_80">
<port class_id_reference="29" object_id="_81">
<name>p_hw_input_stencil_stream_to_mul_V_value_V</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id="_82">
<type>0</type>
<name>Loop_3_proc_U0</name>
<ssdmobj_id>36</ssdmobj_id>
</inst>
</item>
<item class_id_reference="28" object_id="_83">
<port class_id_reference="29" object_id="_84">
<name>p_mul_stencil_stream_V_value_V</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_82"></inst>
</item>
</pins>
</item>
<item class_id_reference="26" object_id="_85">
<type>0</type>
<name>Loop_4_proc_U0</name>
<ssdmobj_id>37</ssdmobj_id>
<pins>
<count>4</count>
<item_version>0</item_version>
<item class_id_reference="28" object_id="_86">
<port class_id_reference="29" object_id="_87">
<name>hw_output_V_value_V</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id="_88">
<type>0</type>
<name>Loop_4_proc_U0</name>
<ssdmobj_id>37</ssdmobj_id>
</inst>
</item>
<item class_id_reference="28" object_id="_89">
<port class_id_reference="29" object_id="_90">
<name>hw_output_V_last_V</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_88"></inst>
</item>
<item class_id_reference="28" object_id="_91">
<port class_id_reference="29" object_id="_92">
<name>p_mul_stencil_stream_V_value_V</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_88"></inst>
</item>
<item class_id_reference="28" object_id="_93">
<port class_id_reference="29" object_id="_94">
<name>p_delayed_input_stencil_stream_V_value_V</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_88"></inst>
</item>
</pins>
</item>
</process_list>
<channel_list class_id="31" tracking_level="0" version="0">
<count>5</count>
<item_version>0</item_version>
<item class_id="32" tracking_level="1" version="0" object_id="_95">
<type>1</type>
<name>p_hw_input_stencil_st</name>
<ssdmobj_id>11</ssdmobj_id>
<ctype>0</ctype>
<depth>1</depth>
<bitwidth>288</bitwidth>
<source class_id_reference="28" object_id="_96">
<port class_id_reference="29" object_id="_97">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_60"></inst>
</source>
<sink class_id_reference="28" object_id="_98">
<port class_id_reference="29" object_id="_99">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_68"></inst>
</sink>
</item>
<item class_id_reference="32" object_id="_100">
<type>1</type>
<name>p_hw_input_stencil_st_3</name>
<ssdmobj_id>15</ssdmobj_id>
<ctype>0</ctype>
<depth>1</depth>
<bitwidth>288</bitwidth>
<source class_id_reference="28" object_id="_101">
<port class_id_reference="29" object_id="_102">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_68"></inst>
</source>
<sink class_id_reference="28" object_id="_103">
<port class_id_reference="29" object_id="_104">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_76"></inst>
</sink>
</item>
<item class_id_reference="32" object_id="_105">
<type>1</type>
<name>p_hw_input_stencil_st_4</name>
<ssdmobj_id>19</ssdmobj_id>
<ctype>0</ctype>
<depth>1</depth>
<bitwidth>288</bitwidth>
<source class_id_reference="28" object_id="_106">
<port class_id_reference="29" object_id="_107">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_68"></inst>
</source>
<sink class_id_reference="28" object_id="_108">
<port class_id_reference="29" object_id="_109">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_82"></inst>
</sink>
</item>
<item class_id_reference="32" object_id="_110">
<type>1</type>
<name>p_delayed_input_stenc</name>
<ssdmobj_id>23</ssdmobj_id>
<ctype>0</ctype>
<depth>1</depth>
<bitwidth>32</bitwidth>
<source class_id_reference="28" object_id="_111">
<port class_id_reference="29" object_id="_112">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_76"></inst>
</source>
<sink class_id_reference="28" object_id="_113">
<port class_id_reference="29" object_id="_114">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_88"></inst>
</sink>
</item>
<item class_id_reference="32" object_id="_115">
<type>1</type>
<name>p_mul_stencil_stream_s</name>
<ssdmobj_id>27</ssdmobj_id>
<ctype>0</ctype>
<depth>1</depth>
<bitwidth>32</bitwidth>
<source class_id_reference="28" object_id="_116">
<port class_id_reference="29" object_id="_117">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_82"></inst>
</source>
<sink class_id_reference="28" object_id="_118">
<port class_id_reference="29" object_id="_119">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_88"></inst>
</sink>
</item>
</channel_list>
<net_list class_id="33" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</net_list>
</mDfPipe>
</item>
</cdfg_regions>
<fsm class_id="34" tracking_level="1" version="0" object_id="_120">
<states class_id="35" tracking_level="0" version="0">
<count>8</count>
<item_version>0</item_version>
<item class_id="36" tracking_level="1" version="0" object_id="_121">
<id>1</id>
<operations class_id="37" tracking_level="0" version="0">
<count>6</count>
<item_version>0</item_version>
<item class_id="38" tracking_level="1" version="0" object_id="_122">
<id>11</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_123">
<id>15</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_124">
<id>19</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_125">
<id>23</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_126">
<id>27</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_127">
<id>33</id>
<stage>2</stage>
<latency>2</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_128">
<id>2</id>
<operations>
<count>1</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_129">
<id>33</id>
<stage>1</stage>
<latency>2</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_130">
<id>3</id>
<operations>
<count>1</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_131">
<id>34</id>
<stage>2</stage>
<latency>2</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_132">
<id>4</id>
<operations>
<count>1</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_133">
<id>34</id>
<stage>1</stage>
<latency>2</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_134">
<id>5</id>
<operations>
<count>2</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_135">
<id>35</id>
<stage>2</stage>
<latency>2</latency>
</item>
<item class_id_reference="38" object_id="_136">
<id>36</id>
<stage>2</stage>
<latency>2</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_137">
<id>6</id>
<operations>
<count>2</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_138">
<id>35</id>
<stage>1</stage>
<latency>2</latency>
</item>
<item class_id_reference="38" object_id="_139">
<id>36</id>
<stage>1</stage>
<latency>2</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_140">
<id>7</id>
<operations>
<count>1</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_141">
<id>37</id>
<stage>2</stage>
<latency>2</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_142">
<id>8</id>
<operations>
<count>25</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_143">
<id>5</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_144">
<id>6</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_145">
<id>7</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_146">
<id>8</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_147">
<id>9</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_148">
<id>10</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_149">
<id>12</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_150">
<id>13</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_151">
<id>14</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_152">
<id>16</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_153">
<id>17</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_154">
<id>18</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_155">
<id>20</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_156">
<id>21</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_157">
<id>22</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_158">
<id>24</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_159">
<id>25</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_160">
<id>26</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_161">
<id>28</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_162">
<id>29</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_163">
<id>30</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_164">
<id>31</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_165">
<id>32</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_166">
<id>37</id>
<stage>1</stage>
<latency>2</latency>
</item>
<item class_id_reference="38" object_id="_167">
<id>38</id>
<stage>1</stage>
<latency>1</latency>
</item>
</operations>
</item>
</states>
<transitions class_id="39" tracking_level="0" version="0">
<count>7</count>
<item_version>0</item_version>
<item class_id="40" tracking_level="1" version="0" object_id="_168">
<inState>1</inState>
<outState>2</outState>
<condition class_id="41" tracking_level="0" version="0">
<id>0</id>
<sop class_id="42" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="43" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
<item class_id_reference="40" object_id="_169">
<inState>2</inState>
<outState>3</outState>
<condition>
<id>1</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
<item class_id_reference="40" object_id="_170">
<inState>3</inState>
<outState>4</outState>
<condition>
<id>2</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
<item class_id_reference="40" object_id="_171">
<inState>4</inState>
<outState>5</outState>
<condition>
<id>3</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
<item class_id_reference="40" object_id="_172">
<inState>5</inState>
<outState>6</outState>
<condition>
<id>4</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
<item class_id_reference="40" object_id="_173">
<inState>6</inState>
<outState>7</outState>
<condition>
<id>5</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
<item class_id_reference="40" object_id="_174">
<inState>7</inState>
<outState>8</outState>
<condition>
<id>6</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
</transitions>
</fsm>
<res class_id="-1"></res>
<node_label_latency class_id="45" tracking_level="0" version="0">
<count>11</count>
<item_version>0</item_version>
<item class_id="46" tracking_level="0" version="0">
<first>11</first>
<second class_id="47" tracking_level="0" version="0">
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>15</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>19</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>23</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>27</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>33</first>
<second>
<first>0</first>
<second>1</second>
</second>
</item>
<item>
<first>34</first>
<second>
<first>2</first>
<second>1</second>
</second>
</item>
<item>
<first>35</first>
<second>
<first>4</first>
<second>1</second>
</second>
</item>
<item>
<first>36</first>
<second>
<first>4</first>
<second>1</second>
</second>
</item>
<item>
<first>37</first>
<second>
<first>6</first>
<second>1</second>
</second>
</item>
<item>
<first>38</first>
<second>
<first>7</first>
<second>0</second>
</second>
</item>
</node_label_latency>
<bblk_ent_exit class_id="48" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="49" tracking_level="0" version="0">
<first>39</first>
<second class_id="50" tracking_level="0" version="0">
<first>0</first>
<second>7</second>
</second>
</item>
</bblk_ent_exit>
<regions class_id="51" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="52" tracking_level="1" version="0" object_id="_175">
<region_name>hls_target</region_name>
<basic_blocks>
<count>1</count>
<item_version>0</item_version>
<item>39</item>
</basic_blocks>
<nodes>
<count>34</count>
<item_version>0</item_version>
<item>5</item>
<item>6</item>
<item>7</item>
<item>8</item>
<item>9</item>
<item>10</item>
<item>11</item>
<item>12</item>
<item>13</item>
<item>14</item>
<item>15</item>
<item>16</item>
<item>17</item>
<item>18</item>
<item>19</item>
<item>20</item>
<item>21</item>
<item>22</item>
<item>23</item>
<item>24</item>
<item>25</item>
<item>26</item>
<item>27</item>
<item>28</item>
<item>29</item>
<item>30</item>
<item>31</item>
<item>32</item>
<item>33</item>
<item>34</item>
<item>35</item>
<item>36</item>
<item>37</item>
<item>38</item>
</nodes>
<anchor_node>-1</anchor_node>
<region_type>16</region_type>
<interval>0</interval>
<pipe_depth>0</pipe_depth>
</item>
</regions>
<dp_fu_nodes class_id="53" tracking_level="0" version="0">
<count>10</count>
<item_version>0</item_version>
<item class_id="54" tracking_level="0" version="0">
<first>62</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>11</item>
</second>
</item>
<item>
<first>66</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>15</item>
</second>
</item>
<item>
<first>70</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>19</item>
</second>
</item>
<item>
<first>74</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>23</item>
</second>
</item>
<item>
<first>78</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>27</item>
</second>
</item>
<item>
<first>82</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>33</item>
<item>33</item>
</second>
</item>
<item>
<first>91</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>36</item>
<item>36</item>
</second>
</item>
<item>
<first>97</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>37</item>
<item>37</item>
</second>
</item>
<item>
<first>107</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>35</item>
<item>35</item>
</second>
</item>
<item>
<first>113</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>34</item>
<item>34</item>
</second>
</item>
</dp_fu_nodes>
<dp_fu_nodes_expression class_id="56" tracking_level="0" version="0">
<count>5</count>
<item_version>0</item_version>
<item class_id="57" tracking_level="0" version="0">
<first>p_delayed_input_stenc_fu_74</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>23</item>
</second>
</item>
<item>
<first>p_hw_input_stencil_st_3_fu_66</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>15</item>
</second>
</item>
<item>
<first>p_hw_input_stencil_st_4_fu_70</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>19</item>
</second>
</item>
<item>
<first>p_hw_input_stencil_st_fu_62</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>11</item>
</second>
</item>
<item>
<first>p_mul_stencil_stream_s_fu_78</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>27</item>
</second>
</item>
</dp_fu_nodes_expression>
<dp_fu_nodes_module>
<count>5</count>
<item_version>0</item_version>
<item>
<first>grp_Loop_1_proc_fu_113</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>34</item>
<item>34</item>
</second>
</item>
<item>
<first>grp_Loop_2_proc_fu_107</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>35</item>
<item>35</item>
</second>
</item>
<item>
<first>grp_Loop_3_proc_fu_91</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>36</item>
<item>36</item>
</second>
</item>
<item>
<first>grp_Loop_4_proc_fu_97</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>37</item>
<item>37</item>
</second>
</item>
<item>
<first>grp_linebuffer_1_fu_82</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>33</item>
<item>33</item>
</second>
</item>
</dp_fu_nodes_module>
<dp_fu_nodes_io>
<count>0</count>
<item_version>0</item_version>
</dp_fu_nodes_io>
<return_ports>
<count>0</count>
<item_version>0</item_version>
</return_ports>
<dp_mem_port_nodes class_id="58" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</dp_mem_port_nodes>
<dp_reg_nodes>
<count>5</count>
<item_version>0</item_version>
<item>
<first>120</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>11</item>
</second>
</item>
<item>
<first>126</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>15</item>
</second>
</item>
<item>
<first>132</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>19</item>
</second>
</item>
<item>
<first>138</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>23</item>
</second>
</item>
<item>
<first>144</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>27</item>
</second>
</item>
</dp_reg_nodes>
<dp_regname_nodes>
<count>5</count>
<item_version>0</item_version>
<item>
<first>p_delayed_input_stenc_reg_138</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>23</item>
</second>
</item>
<item>
<first>p_hw_input_stencil_st_3_reg_126</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>15</item>
</second>
</item>
<item>
<first>p_hw_input_stencil_st_4_reg_132</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>19</item>
</second>
</item>
<item>
<first>p_hw_input_stencil_st_reg_120</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>11</item>
</second>
</item>
<item>
<first>p_mul_stencil_stream_s_reg_144</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>27</item>
</second>
</item>
</dp_regname_nodes>
<dp_reg_phi>
<count>0</count>
<item_version>0</item_version>
</dp_reg_phi>
<dp_regname_phi>
<count>0</count>
<item_version>0</item_version>
</dp_regname_phi>
<dp_port_io_nodes class_id="59" tracking_level="0" version="0">
<count>4</count>
<item_version>0</item_version>
<item class_id="60" tracking_level="0" version="0">
<first>hw_input_V_last_V</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>call</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>33</item>
</second>
</item>
</second>
</item>
<item>
<first>hw_input_V_value_V</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>call</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>33</item>
</second>
</item>
</second>
</item>
<item>
<first>hw_output_V_last_V</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>call</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>37</item>
</second>
</item>
</second>
</item>
<item>
<first>hw_output_V_value_V</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>call</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>37</item>
</second>
</item>
</second>
</item>
</dp_port_io_nodes>
<port2core class_id="61" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</port2core>
<node2core>
<count>5</count>
<item_version>0</item_version>
<item class_id="62" tracking_level="0" version="0">
<first>11</first>
<second>FIFO_SRL</second>
</item>
<item>
<first>15</first>
<second>FIFO_SRL</second>
</item>
<item>
<first>19</first>
<second>FIFO_SRL</second>
</item>
<item>
<first>23</first>
<second>FIFO_SRL</second>
</item>
<item>
<first>27</first>
<second>FIFO_SRL</second>
</item>
</node2core>
</syndb>
</boost_serialization>
|
-- C41303I.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 NOTATION L.ALL IS ALLOWED IF L IS THE NAME OF AN
-- ACCESS OBJECT DESIGNATING A RECORD, AN ARRAY, A SCALAR, OR
-- ANOTHER ACCESS OBJECT.
-- CHECK THAT IF A IS AN IDENTIFIER DENOTING AN ACCESS OBJECT WHICH
-- IN TURN DESIGNATES AN ACCESS OBJECT, THE FORM A.ALL.ALL IS
-- ACCEPTED.
-- THIS OBJECTIVE IS COVERED IN SEVERAL TESTS. IN THE FOLLOWING DIAGRAM,
-- THE PORTION COVERED BY THE CURRENT TEST IS MARKED BY 'X' .
-- || ASSIGNMT | PROC. PARAMETERS
-- || ():= :=() | IN OUT IN OUT
-- ========================||=============|====================
-- ACC REC || |
-- --------------||-------------|--------------------
-- 1 '.ALL' ACC ARR || |
-- --------------||-------------|--------------------
-- ACC SCLR || |
-- ========================||=============|====================
-- ACC ACC REC || |
-- --------------||-------------|--------------------
-- 1 '.ALL' ACC ACC ARR || |
-- --------------||-------------|--------------------
-- ACC ACC SCLR || |
-- ========================||=============|====================
-- ACC ACC REC || XXXXXXXXX |
-- --------------||-------------|--------------------
-- 2 '.ALL' ACC ACC ARR || |
-- --------------||-------------|--------------------
-- ACC ACC SCLR || |
-- ============================================================
-- RM 1/20/82
-- RM 1/25/82
-- SPS 12/2/82
WITH REPORT;
USE REPORT;
PROCEDURE C41303I IS
BEGIN
TEST ( "C41303I" , "CHECK THAT IF A IS AN IDENTIFIER DENOTING" &
" AN ACCESS OBJECT WHICH IN TURN DESIGNATES" &
" AN ACCESS OBJECT, THE FORM A.ALL.ALL IS" &
" ACCEPTED" );
-------------------------------------------------------------------
--------------- ACCESS TO ACCESS TO RECORD ----------------------
DECLARE
TYPE REC IS
RECORD
A , B , C : INTEGER ;
END RECORD ;
REC_CONST : REC := ( 7 , 8 , 9 );
REC_VAR : REC := REC_CONST ;
REC_CONST2 : REC := ( 17 , 18 , 19 );
TYPE ACCREC IS ACCESS REC ;
TYPE ACC_ACCREC IS ACCESS ACCREC ;
ACC_ACCREC_VAR : ACC_ACCREC := NEW ACCREC'(
NEW REC'( REC_CONST2 )
);
BEGIN
REC_VAR := ACC_ACCREC_VAR.ALL.ALL ;
IF REC_VAR /= REC_CONST2
THEN
FAILED( "ACC2 RECORD,RIGHT SIDE OF ASSIGN., WRONG VAL.");
END IF;
ACC_ACCREC_VAR.ALL.ALL := REC_CONST ;
IF ( 7 , 8 , 9 ) /= ACC_ACCREC_VAR.ALL.ALL
THEN
FAILED( "ACC2 RECORD, LEFT SIDE OF ASSIGN., WRONG VAL.");
END IF;
END ;
-------------------------------------------------------------------
RESULT;
END C41303I;
|
with
freeType_c.FT_GlyphSlot,
openGL.GlyphImpl;
package openGL.Glyph
--
-- Glyph is the base class for openGL glyphs.
--
-- It provides the interface between Freetype glyphs and their openGL
-- renderable counterparts.
--
-- This is an abstract class and derived classes must implement the 'Render' function.
--
is
type Item is abstract tagged private;
---------
-- Forge
--
procedure destruct (Self : in out Item);
--------------
-- Attributes
--
function Advance (Self : in Item) return Real; -- Return the advance width for this glyph.
function BBox (Self : in Item) return Bounds; -- Return the bounding box for this glyph.
function Error (Self : in Item) return GlyphImpl.Error_Kind; -- Return the current error code.
--------------
--- Operations
--
function render (Self : in Item; Pen : in Vector_3;
renderMode : in Integer) return Vector_3
is abstract;
--
-- Renders this glyph at the current pen position.
--
-- Pen: The current pen position.
-- renderMode: Render mode to display.
---
-- Returns the advance distance for this glyph.
private
type Item is abstract tagged
record
Impl : GlyphImpl.view; -- Internal FTGL FTGlyph implementation object. For private use only.
end record;
procedure define (Self : in out Item; glyth_Slot : in freetype_c.FT_GlyphSlot.item);
--
-- glyth_Slot: The Freetype glyph to be processed.
procedure define (Self : in out Item; pImpl : in GlyphImpl.view);
--
-- Internal FTGL FTGlyph constructor. For private use only.
--
-- pImpl: An internal implementation object. Will be destroyed upon FTGlyph deletion.
end openGL.Glyph;
|
-- simple_example
-- A simple example of the use of parse_args
-- Copyright (c) 2014, James Humphry
--
-- Permission to use, copy, modify, and/or distribute this software for any
-- purpose with or without fee is hereby granted, provided that the above
-- copyright notice and this permission notice appear in all copies.
--
-- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
-- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
-- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-- OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-- PERFORMANCE OF THIS SOFTWARE.
with Parse_Args;
use Parse_Args;
with Parse_Args.Integer_Array_Options;
with Ada.Text_IO;
use Ada.Text_IO;
procedure Simple_Example is
AP : Argument_Parser;
begin
AP.Add_Option(Make_Boolean_Option(False), "help", 'h', Usage => "Display this help text");
AP.Add_Option(Make_Boolean_Option(False), "foo", 'f', Usage => "The foo option");
AP.Add_Option(Make_Boolean_Option(True), "bar", 'b', Usage => "The bar option");
AP.Add_Option(Make_Repeated_Option(0), "baz", 'z',
Usage => "The baz option (can be repeated for more baz)");
AP.Add_Option(Make_Boolean_Option(False), "long-only",
Long_Option => "long-only",
Usage => "The --long-only option has no short version");
AP.Add_Option(Make_Boolean_Option(False), "short-only",
Short_Option => 'x', Long_Option => "-",
Usage => "The -x option has no long version");
AP.Add_Option(Make_Natural_Option(0), "natural", 'n', Usage => "Specify a natural number argument");
AP.Add_Option(Make_Integer_Option(-1), "integer", 'i', Usage => "Specify an integer argument");
AP.Add_Option(Make_String_Option(""), "string", 's', Usage => "Specify a string argument");
AP.Add_Option(Integer_Array_Options.Make_Option, "array", 'a',
Usage => "Specify a comma-separated integer array argument");
AP.Append_Positional(Make_String_Option("INFILE"), "INFILE");
AP.Allow_Tail_Arguments("TAIL-ARGUMENTS");
AP.Set_Prologue("A demonstration of the basic features of the Parse_Args library.");
AP.Parse_Command_Line;
if AP.Parse_Success and then AP.Boolean_Value("help") then
AP.Usage;
elsif AP.Parse_Success then
Put_Line("Command name is: " & AP.Command_Name);
New_Line;
for I in AP.Iterate loop
Put_Line("Option "& Option_Name(I) & " was " &
(if AP(I).Set then "" else "not ") &
"set on the command line. Value: " &
AP(I).Image);
end loop;
New_Line;
Put_Line("There were: " & Integer'Image(Integer(AP.Tail.Length)) & " tail arguments.");
declare
I : Integer := 1;
begin
for J of AP.Tail loop
Put_Line("Argument" & Integer'Image(I) & " is: " & J);
I := I + 1;
end loop;
end;
else
Put_Line("Error while parsing command-line arguments: " & AP.Parse_Message);
end if;
end Simple_Example;
|
------------------------------------------------------------------------------
-- --
-- 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.Internals.Links;
with AMF.Internals.Tables.DC_Notification;
with AMF.Internals.Tables.DD_Element_Table;
with AMF.Internals.Tables.DD_Types;
with AMF.Internals.Tables.DG_Metamodel;
package body AMF.Internals.Tables.DD_Attributes is
use type Matreshka.Internals.Strings.Shared_String_Access;
-- Canvas
--
-- 5 Canvas::backgroundColor
-- 4 Canvas::backgroundFill
-- 3 GraphicalElement::clipPath
-- 2 GraphicalElement::group
-- 1 GraphicalElement::transform
--
-- 1 GraphicalElement::localStyle
-- 3 Group::member
-- 4 Canvas::packagedFill
-- 5 Canvas::packagedMarker
-- 6 Canvas::packagedStyle
-- 2 GraphicalElement::sharedStyle
-- Circle
--
-- 5 Circle::center
-- 3 GraphicalElement::clipPath
-- 2 GraphicalElement::group
-- 4 Circle::radius
-- 1 GraphicalElement::transform
--
-- 1 GraphicalElement::localStyle
-- 2 GraphicalElement::sharedStyle
-- ClipPath
--
-- 3 GraphicalElement::clipPath
-- 4 ClipPath::clippedElement
-- 2 GraphicalElement::group
-- 1 GraphicalElement::transform
--
-- 1 GraphicalElement::localStyle
-- 3 Group::member
-- 2 GraphicalElement::sharedStyle
-- Ellipse
--
-- 5 Ellipse::center
-- 3 GraphicalElement::clipPath
-- 2 GraphicalElement::group
-- 4 Ellipse::radii
-- 1 GraphicalElement::transform
--
-- 1 GraphicalElement::localStyle
-- 2 GraphicalElement::sharedStyle
-- Group
--
-- 3 GraphicalElement::clipPath
-- 2 GraphicalElement::group
-- 1 GraphicalElement::transform
--
-- 1 GraphicalElement::localStyle
-- 3 Group::member
-- 2 GraphicalElement::sharedStyle
-- Image
--
-- 4 Image::bounds
-- 3 GraphicalElement::clipPath
-- 2 GraphicalElement::group
-- 6 Image::isAspectRatioPreserved
-- 5 Image::source
-- 1 GraphicalElement::transform
--
-- 1 GraphicalElement::localStyle
-- 2 GraphicalElement::sharedStyle
-- Line
--
-- 3 GraphicalElement::clipPath
-- 8 Line::end
-- 5 MarkedElement::endMarker
-- 2 GraphicalElement::group
-- 6 MarkedElement::midMarker
-- 7 Line::start
-- 4 MarkedElement::startMarker
-- 1 GraphicalElement::transform
--
-- 1 GraphicalElement::localStyle
-- 2 GraphicalElement::sharedStyle
-- LinearGradient
--
-- 2 Fill::canvas
-- 3 Gradient::stop
-- 1 Fill::transform
-- 4 LinearGradient::x1
-- 5 LinearGradient::x2
-- 6 LinearGradient::y1
-- 7 LinearGradient::y2
--
-- MarkedElement
--
-- 3 GraphicalElement::clipPath
-- 5 MarkedElement::endMarker
-- 2 GraphicalElement::group
-- 6 MarkedElement::midMarker
-- 4 MarkedElement::startMarker
-- 1 GraphicalElement::transform
--
-- 1 GraphicalElement::localStyle
-- 2 GraphicalElement::sharedStyle
-- Marker
--
-- 4 Marker::canvas
-- 3 GraphicalElement::clipPath
-- 2 GraphicalElement::group
-- 6 Marker::reference
-- 5 Marker::size
-- 1 GraphicalElement::transform
--
-- 1 GraphicalElement::localStyle
-- 3 Group::member
-- 2 GraphicalElement::sharedStyle
-- Path
--
-- 3 GraphicalElement::clipPath
-- 7 Path::command
-- 5 MarkedElement::endMarker
-- 2 GraphicalElement::group
-- 6 MarkedElement::midMarker
-- 4 MarkedElement::startMarker
-- 1 GraphicalElement::transform
--
-- 1 GraphicalElement::localStyle
-- 2 GraphicalElement::sharedStyle
-- Pattern
--
-- 4 Pattern::bounds
-- 2 Fill::canvas
-- 3 Pattern::tile
-- 1 Fill::transform
--
-- Polygon
--
-- 3 GraphicalElement::clipPath
-- 5 MarkedElement::endMarker
-- 2 GraphicalElement::group
-- 6 MarkedElement::midMarker
-- 7 Polygon::point
-- 4 MarkedElement::startMarker
-- 1 GraphicalElement::transform
--
-- 1 GraphicalElement::localStyle
-- 2 GraphicalElement::sharedStyle
-- Polyline
--
-- 3 GraphicalElement::clipPath
-- 5 MarkedElement::endMarker
-- 2 GraphicalElement::group
-- 6 MarkedElement::midMarker
-- 7 Polyline::point
-- 4 MarkedElement::startMarker
-- 1 GraphicalElement::transform
--
-- 1 GraphicalElement::localStyle
-- 2 GraphicalElement::sharedStyle
-- RadialGradient
--
-- 2 Fill::canvas
-- 5 RadialGradient::centerX
-- 6 RadialGradient::centerY
-- 7 RadialGradient::focusX
-- 8 RadialGradient::focusY
-- 4 RadialGradient::radius
-- 3 Gradient::stop
-- 1 Fill::transform
--
-- Rectangle
--
-- 4 Rectangle::bounds
-- 3 GraphicalElement::clipPath
-- 5 Rectangle::cornerRadius
-- 2 GraphicalElement::group
-- 1 GraphicalElement::transform
--
-- 1 GraphicalElement::localStyle
-- 2 GraphicalElement::sharedStyle
-- Style
--
-- 1 Style::fill
-- 2 Style::fillColor
-- 3 Style::fillOpacity
-- 12 Style::fontBold
-- 10 Style::fontColor
-- 11 Style::fontItalic
-- 9 Style::fontName
-- 8 Style::fontSize
-- 14 Style::fontStrikeThrough
-- 13 Style::fontUnderline
-- 6 Style::strokeColor
-- 7 Style::strokeDashLength
-- 5 Style::strokeOpacity
-- 4 Style::strokeWidth
--
-- Text
--
-- 6 Text::alignment
-- 4 Text::bounds
-- 3 GraphicalElement::clipPath
-- 5 Text::data
-- 2 GraphicalElement::group
-- 1 GraphicalElement::transform
--
-- 1 GraphicalElement::localStyle
-- 2 GraphicalElement::sharedStyle
----------------------------
-- Internal_Get_Alignment --
----------------------------
function Internal_Get_Alignment
(Self : AMF.Internals.AMF_Element)
return AMF.DC.DC_Alignment_Kind is
begin
return AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (6).Alignment_Kind_Value;
end Internal_Get_Alignment;
-----------------------------------
-- Internal_Get_Background_Color --
-----------------------------------
function Internal_Get_Background_Color
(Self : AMF.Internals.AMF_Element)
return AMF.DC.Optional_DC_Color is
begin
return AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (5).Color_Holder;
end Internal_Get_Background_Color;
----------------------------------
-- Internal_Get_Background_Fill --
----------------------------------
function Internal_Get_Background_Fill
(Self : AMF.Internals.AMF_Element)
return AMF.Internals.AMF_Element is
begin
case AMF.Internals.Tables.DD_Element_Table.Table (Self).Kind is
when AMF.Internals.Tables.DD_Types.E_DG_Canvas =>
return
AMF.Internals.Links.Opposite_Element
(AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (4).Link, Self);
when others =>
raise Program_Error;
end case;
end Internal_Get_Background_Fill;
-------------------------
-- Internal_Get_Bounds --
-------------------------
function Internal_Get_Bounds
(Self : AMF.Internals.AMF_Element)
return AMF.DC.DC_Bounds is
begin
return AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (4).Bounds_Value;
end Internal_Get_Bounds;
-------------------------
-- Internal_Get_Canvas --
-------------------------
function Internal_Get_Canvas
(Self : AMF.Internals.AMF_Element)
return AMF.Internals.AMF_Element is
begin
case AMF.Internals.Tables.DD_Element_Table.Table (Self).Kind is
when AMF.Internals.Tables.DD_Types.E_DG_Linear_Gradient =>
return
AMF.Internals.Links.Opposite_Element
(AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (2).Link, Self);
when AMF.Internals.Tables.DD_Types.E_DG_Marker =>
return
AMF.Internals.Links.Opposite_Element
(AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (4).Link, Self);
when AMF.Internals.Tables.DD_Types.E_DG_Pattern =>
return
AMF.Internals.Links.Opposite_Element
(AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (2).Link, Self);
when AMF.Internals.Tables.DD_Types.E_DG_Radial_Gradient =>
return
AMF.Internals.Links.Opposite_Element
(AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (2).Link, Self);
when others =>
raise Program_Error;
end case;
end Internal_Get_Canvas;
-------------------------
-- Internal_Get_Center --
-------------------------
function Internal_Get_Center
(Self : AMF.Internals.AMF_Element)
return AMF.DC.DC_Point is
begin
return AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (5).Point_Value;
end Internal_Get_Center;
---------------------------
-- Internal_Get_Center_X --
---------------------------
function Internal_Get_Center_X
(Self : AMF.Internals.AMF_Element)
return AMF.Real is
begin
return AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (5).Real_Value;
end Internal_Get_Center_X;
---------------------------
-- Internal_Get_Center_Y --
---------------------------
function Internal_Get_Center_Y
(Self : AMF.Internals.AMF_Element)
return AMF.Real is
begin
return AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (6).Real_Value;
end Internal_Get_Center_Y;
----------------------------
-- Internal_Get_Clip_Path --
----------------------------
function Internal_Get_Clip_Path
(Self : AMF.Internals.AMF_Element)
return AMF.Internals.AMF_Element is
begin
case AMF.Internals.Tables.DD_Element_Table.Table (Self).Kind is
when AMF.Internals.Tables.DD_Types.E_DG_Canvas =>
return
AMF.Internals.Links.Opposite_Element
(AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (3).Link, Self);
when AMF.Internals.Tables.DD_Types.E_DG_Circle =>
return
AMF.Internals.Links.Opposite_Element
(AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (3).Link, Self);
when AMF.Internals.Tables.DD_Types.E_DG_Clip_Path =>
return
AMF.Internals.Links.Opposite_Element
(AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (3).Link, Self);
when AMF.Internals.Tables.DD_Types.E_DG_Ellipse =>
return
AMF.Internals.Links.Opposite_Element
(AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (3).Link, Self);
when AMF.Internals.Tables.DD_Types.E_DG_Group =>
return
AMF.Internals.Links.Opposite_Element
(AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (3).Link, Self);
when AMF.Internals.Tables.DD_Types.E_DG_Image =>
return
AMF.Internals.Links.Opposite_Element
(AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (3).Link, Self);
when AMF.Internals.Tables.DD_Types.E_DG_Line =>
return
AMF.Internals.Links.Opposite_Element
(AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (3).Link, Self);
when AMF.Internals.Tables.DD_Types.E_DG_Marked_Element =>
return
AMF.Internals.Links.Opposite_Element
(AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (3).Link, Self);
when AMF.Internals.Tables.DD_Types.E_DG_Marker =>
return
AMF.Internals.Links.Opposite_Element
(AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (3).Link, Self);
when AMF.Internals.Tables.DD_Types.E_DG_Path =>
return
AMF.Internals.Links.Opposite_Element
(AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (3).Link, Self);
when AMF.Internals.Tables.DD_Types.E_DG_Polygon =>
return
AMF.Internals.Links.Opposite_Element
(AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (3).Link, Self);
when AMF.Internals.Tables.DD_Types.E_DG_Polyline =>
return
AMF.Internals.Links.Opposite_Element
(AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (3).Link, Self);
when AMF.Internals.Tables.DD_Types.E_DG_Rectangle =>
return
AMF.Internals.Links.Opposite_Element
(AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (3).Link, Self);
when AMF.Internals.Tables.DD_Types.E_DG_Text =>
return
AMF.Internals.Links.Opposite_Element
(AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (3).Link, Self);
when others =>
raise Program_Error;
end case;
end Internal_Get_Clip_Path;
----------------------------------
-- Internal_Get_Clipped_Element --
----------------------------------
function Internal_Get_Clipped_Element
(Self : AMF.Internals.AMF_Element)
return AMF.Internals.AMF_Element is
begin
case AMF.Internals.Tables.DD_Element_Table.Table (Self).Kind is
when AMF.Internals.Tables.DD_Types.E_DG_Clip_Path =>
return
AMF.Internals.Links.Opposite_Element
(AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (4).Link, Self);
when others =>
raise Program_Error;
end case;
end Internal_Get_Clipped_Element;
--------------------------
-- Internal_Get_Command --
--------------------------
function Internal_Get_Command
(Self : AMF.Internals.AMF_Element)
return AMF.DG.Sequence_Of_Path_Command is
begin
return AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (7).Path_Collection;
end Internal_Get_Command;
--------------------------------
-- Internal_Get_Corner_Radius --
--------------------------------
function Internal_Get_Corner_Radius
(Self : AMF.Internals.AMF_Element)
return AMF.Real is
begin
return AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (5).Real_Value;
end Internal_Get_Corner_Radius;
-----------------------
-- Internal_Get_Data --
-----------------------
function Internal_Get_Data
(Self : AMF.Internals.AMF_Element)
return Matreshka.Internals.Strings.Shared_String_Access is
begin
return
AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (5).String_Value;
end Internal_Get_Data;
----------------------
-- Internal_Get_End --
----------------------
function Internal_Get_End
(Self : AMF.Internals.AMF_Element)
return AMF.DC.DC_Point is
begin
return AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (8).Point_Value;
end Internal_Get_End;
-----------------------------
-- Internal_Get_End_Marker --
-----------------------------
function Internal_Get_End_Marker
(Self : AMF.Internals.AMF_Element)
return AMF.Internals.AMF_Element is
begin
case AMF.Internals.Tables.DD_Element_Table.Table (Self).Kind is
when AMF.Internals.Tables.DD_Types.E_DG_Line =>
return
AMF.Internals.Links.Opposite_Element
(AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (5).Link, Self);
when AMF.Internals.Tables.DD_Types.E_DG_Marked_Element =>
return
AMF.Internals.Links.Opposite_Element
(AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (5).Link, Self);
when AMF.Internals.Tables.DD_Types.E_DG_Path =>
return
AMF.Internals.Links.Opposite_Element
(AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (5).Link, Self);
when AMF.Internals.Tables.DD_Types.E_DG_Polygon =>
return
AMF.Internals.Links.Opposite_Element
(AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (5).Link, Self);
when AMF.Internals.Tables.DD_Types.E_DG_Polyline =>
return
AMF.Internals.Links.Opposite_Element
(AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (5).Link, Self);
when others =>
raise Program_Error;
end case;
end Internal_Get_End_Marker;
-----------------------
-- Internal_Get_Fill --
-----------------------
function Internal_Get_Fill
(Self : AMF.Internals.AMF_Element)
return AMF.Internals.AMF_Element is
begin
case AMF.Internals.Tables.DD_Element_Table.Table (Self).Kind is
when AMF.Internals.Tables.DD_Types.E_DG_Style =>
return
AMF.Internals.Links.Opposite_Element
(AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (1).Link, Self);
when others =>
raise Program_Error;
end case;
end Internal_Get_Fill;
-----------------------------
-- Internal_Get_Fill_Color --
-----------------------------
function Internal_Get_Fill_Color
(Self : AMF.Internals.AMF_Element)
return AMF.DC.Optional_DC_Color is
begin
return AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (2).Color_Holder;
end Internal_Get_Fill_Color;
-------------------------------
-- Internal_Get_Fill_Opacity --
-------------------------------
function Internal_Get_Fill_Opacity
(Self : AMF.Internals.AMF_Element)
return AMF.Optional_Real is
begin
return AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (3).Real_Holder;
end Internal_Get_Fill_Opacity;
--------------------------
-- Internal_Get_Focus_X --
--------------------------
function Internal_Get_Focus_X
(Self : AMF.Internals.AMF_Element)
return AMF.Real is
begin
return AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (7).Real_Value;
end Internal_Get_Focus_X;
--------------------------
-- Internal_Get_Focus_Y --
--------------------------
function Internal_Get_Focus_Y
(Self : AMF.Internals.AMF_Element)
return AMF.Real is
begin
return AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (8).Real_Value;
end Internal_Get_Focus_Y;
----------------------------
-- Internal_Get_Font_Bold --
----------------------------
function Internal_Get_Font_Bold
(Self : AMF.Internals.AMF_Element)
return AMF.Optional_Boolean is
begin
return AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (12).Boolean_Holder;
end Internal_Get_Font_Bold;
-----------------------------
-- Internal_Get_Font_Color --
-----------------------------
function Internal_Get_Font_Color
(Self : AMF.Internals.AMF_Element)
return AMF.DC.Optional_DC_Color is
begin
return AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (10).Color_Holder;
end Internal_Get_Font_Color;
------------------------------
-- Internal_Get_Font_Italic --
------------------------------
function Internal_Get_Font_Italic
(Self : AMF.Internals.AMF_Element)
return AMF.Optional_Boolean is
begin
return AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (11).Boolean_Holder;
end Internal_Get_Font_Italic;
----------------------------
-- Internal_Get_Font_Name --
----------------------------
function Internal_Get_Font_Name
(Self : AMF.Internals.AMF_Element)
return Matreshka.Internals.Strings.Shared_String_Access is
begin
return
AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (9).String_Value;
end Internal_Get_Font_Name;
----------------------------
-- Internal_Get_Font_Size --
----------------------------
function Internal_Get_Font_Size
(Self : AMF.Internals.AMF_Element)
return AMF.Optional_Real is
begin
return AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (8).Real_Holder;
end Internal_Get_Font_Size;
--------------------------------------
-- Internal_Get_Font_Strike_Through --
--------------------------------------
function Internal_Get_Font_Strike_Through
(Self : AMF.Internals.AMF_Element)
return AMF.Optional_Boolean is
begin
return AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (14).Boolean_Holder;
end Internal_Get_Font_Strike_Through;
---------------------------------
-- Internal_Get_Font_Underline --
---------------------------------
function Internal_Get_Font_Underline
(Self : AMF.Internals.AMF_Element)
return AMF.Optional_Boolean is
begin
return AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (13).Boolean_Holder;
end Internal_Get_Font_Underline;
------------------------
-- Internal_Get_Group --
------------------------
function Internal_Get_Group
(Self : AMF.Internals.AMF_Element)
return AMF.Internals.AMF_Element is
begin
case AMF.Internals.Tables.DD_Element_Table.Table (Self).Kind is
when AMF.Internals.Tables.DD_Types.E_DG_Canvas =>
return
AMF.Internals.Links.Opposite_Element
(AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (2).Link, Self);
when AMF.Internals.Tables.DD_Types.E_DG_Circle =>
return
AMF.Internals.Links.Opposite_Element
(AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (2).Link, Self);
when AMF.Internals.Tables.DD_Types.E_DG_Clip_Path =>
return
AMF.Internals.Links.Opposite_Element
(AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (2).Link, Self);
when AMF.Internals.Tables.DD_Types.E_DG_Ellipse =>
return
AMF.Internals.Links.Opposite_Element
(AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (2).Link, Self);
when AMF.Internals.Tables.DD_Types.E_DG_Group =>
return
AMF.Internals.Links.Opposite_Element
(AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (2).Link, Self);
when AMF.Internals.Tables.DD_Types.E_DG_Image =>
return
AMF.Internals.Links.Opposite_Element
(AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (2).Link, Self);
when AMF.Internals.Tables.DD_Types.E_DG_Line =>
return
AMF.Internals.Links.Opposite_Element
(AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (2).Link, Self);
when AMF.Internals.Tables.DD_Types.E_DG_Marked_Element =>
return
AMF.Internals.Links.Opposite_Element
(AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (2).Link, Self);
when AMF.Internals.Tables.DD_Types.E_DG_Marker =>
return
AMF.Internals.Links.Opposite_Element
(AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (2).Link, Self);
when AMF.Internals.Tables.DD_Types.E_DG_Path =>
return
AMF.Internals.Links.Opposite_Element
(AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (2).Link, Self);
when AMF.Internals.Tables.DD_Types.E_DG_Polygon =>
return
AMF.Internals.Links.Opposite_Element
(AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (2).Link, Self);
when AMF.Internals.Tables.DD_Types.E_DG_Polyline =>
return
AMF.Internals.Links.Opposite_Element
(AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (2).Link, Self);
when AMF.Internals.Tables.DD_Types.E_DG_Rectangle =>
return
AMF.Internals.Links.Opposite_Element
(AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (2).Link, Self);
when AMF.Internals.Tables.DD_Types.E_DG_Text =>
return
AMF.Internals.Links.Opposite_Element
(AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (2).Link, Self);
when others =>
raise Program_Error;
end case;
end Internal_Get_Group;
--------------------------------------------
-- Internal_Get_Is_Aspect_Ratio_Preserved --
--------------------------------------------
function Internal_Get_Is_Aspect_Ratio_Preserved
(Self : AMF.Internals.AMF_Element)
return Boolean is
begin
return AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (6).Boolean_Value;
end Internal_Get_Is_Aspect_Ratio_Preserved;
------------------------------
-- Internal_Get_Local_Style --
------------------------------
function Internal_Get_Local_Style
(Self : AMF.Internals.AMF_Element)
return AMF.Internals.AMF_Collection_Of_Element is
begin
case AMF.Internals.Tables.DD_Element_Table.Table (Self).Kind is
when AMF.Internals.Tables.DD_Types.E_DG_Canvas =>
return AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (0).Collection + 1;
when AMF.Internals.Tables.DD_Types.E_DG_Circle =>
return AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (0).Collection + 1;
when AMF.Internals.Tables.DD_Types.E_DG_Clip_Path =>
return AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (0).Collection + 1;
when AMF.Internals.Tables.DD_Types.E_DG_Ellipse =>
return AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (0).Collection + 1;
when AMF.Internals.Tables.DD_Types.E_DG_Group =>
return AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (0).Collection + 1;
when AMF.Internals.Tables.DD_Types.E_DG_Image =>
return AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (0).Collection + 1;
when AMF.Internals.Tables.DD_Types.E_DG_Line =>
return AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (0).Collection + 1;
when AMF.Internals.Tables.DD_Types.E_DG_Marked_Element =>
return AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (0).Collection + 1;
when AMF.Internals.Tables.DD_Types.E_DG_Marker =>
return AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (0).Collection + 1;
when AMF.Internals.Tables.DD_Types.E_DG_Path =>
return AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (0).Collection + 1;
when AMF.Internals.Tables.DD_Types.E_DG_Polygon =>
return AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (0).Collection + 1;
when AMF.Internals.Tables.DD_Types.E_DG_Polyline =>
return AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (0).Collection + 1;
when AMF.Internals.Tables.DD_Types.E_DG_Rectangle =>
return AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (0).Collection + 1;
when AMF.Internals.Tables.DD_Types.E_DG_Text =>
return AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (0).Collection + 1;
when others =>
raise Program_Error;
end case;
end Internal_Get_Local_Style;
-------------------------
-- Internal_Get_Member --
-------------------------
function Internal_Get_Member
(Self : AMF.Internals.AMF_Element)
return AMF.Internals.AMF_Collection_Of_Element is
begin
case AMF.Internals.Tables.DD_Element_Table.Table (Self).Kind is
when AMF.Internals.Tables.DD_Types.E_DG_Canvas =>
return AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (0).Collection + 3;
when AMF.Internals.Tables.DD_Types.E_DG_Clip_Path =>
return AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (0).Collection + 3;
when AMF.Internals.Tables.DD_Types.E_DG_Group =>
return AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (0).Collection + 3;
when AMF.Internals.Tables.DD_Types.E_DG_Marker =>
return AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (0).Collection + 3;
when others =>
raise Program_Error;
end case;
end Internal_Get_Member;
-----------------------------
-- Internal_Get_Mid_Marker --
-----------------------------
function Internal_Get_Mid_Marker
(Self : AMF.Internals.AMF_Element)
return AMF.Internals.AMF_Element is
begin
case AMF.Internals.Tables.DD_Element_Table.Table (Self).Kind is
when AMF.Internals.Tables.DD_Types.E_DG_Line =>
return
AMF.Internals.Links.Opposite_Element
(AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (6).Link, Self);
when AMF.Internals.Tables.DD_Types.E_DG_Marked_Element =>
return
AMF.Internals.Links.Opposite_Element
(AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (6).Link, Self);
when AMF.Internals.Tables.DD_Types.E_DG_Path =>
return
AMF.Internals.Links.Opposite_Element
(AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (6).Link, Self);
when AMF.Internals.Tables.DD_Types.E_DG_Polygon =>
return
AMF.Internals.Links.Opposite_Element
(AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (6).Link, Self);
when AMF.Internals.Tables.DD_Types.E_DG_Polyline =>
return
AMF.Internals.Links.Opposite_Element
(AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (6).Link, Self);
when others =>
raise Program_Error;
end case;
end Internal_Get_Mid_Marker;
--------------------------------
-- Internal_Get_Packaged_Fill --
--------------------------------
function Internal_Get_Packaged_Fill
(Self : AMF.Internals.AMF_Element)
return AMF.Internals.AMF_Collection_Of_Element is
begin
case AMF.Internals.Tables.DD_Element_Table.Table (Self).Kind is
when AMF.Internals.Tables.DD_Types.E_DG_Canvas =>
return AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (0).Collection + 4;
when others =>
raise Program_Error;
end case;
end Internal_Get_Packaged_Fill;
----------------------------------
-- Internal_Get_Packaged_Marker --
----------------------------------
function Internal_Get_Packaged_Marker
(Self : AMF.Internals.AMF_Element)
return AMF.Internals.AMF_Collection_Of_Element is
begin
case AMF.Internals.Tables.DD_Element_Table.Table (Self).Kind is
when AMF.Internals.Tables.DD_Types.E_DG_Canvas =>
return AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (0).Collection + 5;
when others =>
raise Program_Error;
end case;
end Internal_Get_Packaged_Marker;
---------------------------------
-- Internal_Get_Packaged_Style --
---------------------------------
function Internal_Get_Packaged_Style
(Self : AMF.Internals.AMF_Element)
return AMF.Internals.AMF_Collection_Of_Element is
begin
case AMF.Internals.Tables.DD_Element_Table.Table (Self).Kind is
when AMF.Internals.Tables.DD_Types.E_DG_Canvas =>
return AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (0).Collection + 6;
when others =>
raise Program_Error;
end case;
end Internal_Get_Packaged_Style;
------------------------
-- Internal_Get_Point --
------------------------
function Internal_Get_Point
(Self : AMF.Internals.AMF_Element)
return AMF.DC.Sequence_Of_DC_Point is
begin
return AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (7).Point_Collection;
end Internal_Get_Point;
------------------------
-- Internal_Get_Radii --
------------------------
function Internal_Get_Radii
(Self : AMF.Internals.AMF_Element)
return AMF.DC.DC_Dimension is
begin
return AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (4).Dimension_Value;
end Internal_Get_Radii;
-------------------------
-- Internal_Get_Radius --
-------------------------
function Internal_Get_Radius
(Self : AMF.Internals.AMF_Element)
return AMF.Real is
begin
return AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (4).Real_Value;
end Internal_Get_Radius;
----------------------------
-- Internal_Get_Reference --
----------------------------
function Internal_Get_Reference
(Self : AMF.Internals.AMF_Element)
return AMF.DC.DC_Point is
begin
return AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (6).Point_Value;
end Internal_Get_Reference;
-------------------------------
-- Internal_Get_Shared_Style --
-------------------------------
function Internal_Get_Shared_Style
(Self : AMF.Internals.AMF_Element)
return AMF.Internals.AMF_Collection_Of_Element is
begin
case AMF.Internals.Tables.DD_Element_Table.Table (Self).Kind is
when AMF.Internals.Tables.DD_Types.E_DG_Canvas =>
return AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (0).Collection + 2;
when AMF.Internals.Tables.DD_Types.E_DG_Circle =>
return AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (0).Collection + 2;
when AMF.Internals.Tables.DD_Types.E_DG_Clip_Path =>
return AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (0).Collection + 2;
when AMF.Internals.Tables.DD_Types.E_DG_Ellipse =>
return AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (0).Collection + 2;
when AMF.Internals.Tables.DD_Types.E_DG_Group =>
return AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (0).Collection + 2;
when AMF.Internals.Tables.DD_Types.E_DG_Image =>
return AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (0).Collection + 2;
when AMF.Internals.Tables.DD_Types.E_DG_Line =>
return AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (0).Collection + 2;
when AMF.Internals.Tables.DD_Types.E_DG_Marked_Element =>
return AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (0).Collection + 2;
when AMF.Internals.Tables.DD_Types.E_DG_Marker =>
return AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (0).Collection + 2;
when AMF.Internals.Tables.DD_Types.E_DG_Path =>
return AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (0).Collection + 2;
when AMF.Internals.Tables.DD_Types.E_DG_Polygon =>
return AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (0).Collection + 2;
when AMF.Internals.Tables.DD_Types.E_DG_Polyline =>
return AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (0).Collection + 2;
when AMF.Internals.Tables.DD_Types.E_DG_Rectangle =>
return AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (0).Collection + 2;
when AMF.Internals.Tables.DD_Types.E_DG_Text =>
return AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (0).Collection + 2;
when others =>
raise Program_Error;
end case;
end Internal_Get_Shared_Style;
-----------------------
-- Internal_Get_Size --
-----------------------
function Internal_Get_Size
(Self : AMF.Internals.AMF_Element)
return AMF.DC.DC_Dimension is
begin
return AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (5).Dimension_Value;
end Internal_Get_Size;
-------------------------
-- Internal_Get_Source --
-------------------------
function Internal_Get_Source
(Self : AMF.Internals.AMF_Element)
return Matreshka.Internals.Strings.Shared_String_Access is
begin
return
AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (5).String_Value;
end Internal_Get_Source;
------------------------
-- Internal_Get_Start --
------------------------
function Internal_Get_Start
(Self : AMF.Internals.AMF_Element)
return AMF.DC.DC_Point is
begin
return AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (7).Point_Value;
end Internal_Get_Start;
-------------------------------
-- Internal_Get_Start_Marker --
-------------------------------
function Internal_Get_Start_Marker
(Self : AMF.Internals.AMF_Element)
return AMF.Internals.AMF_Element is
begin
case AMF.Internals.Tables.DD_Element_Table.Table (Self).Kind is
when AMF.Internals.Tables.DD_Types.E_DG_Line =>
return
AMF.Internals.Links.Opposite_Element
(AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (4).Link, Self);
when AMF.Internals.Tables.DD_Types.E_DG_Marked_Element =>
return
AMF.Internals.Links.Opposite_Element
(AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (4).Link, Self);
when AMF.Internals.Tables.DD_Types.E_DG_Path =>
return
AMF.Internals.Links.Opposite_Element
(AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (4).Link, Self);
when AMF.Internals.Tables.DD_Types.E_DG_Polygon =>
return
AMF.Internals.Links.Opposite_Element
(AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (4).Link, Self);
when AMF.Internals.Tables.DD_Types.E_DG_Polyline =>
return
AMF.Internals.Links.Opposite_Element
(AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (4).Link, Self);
when others =>
raise Program_Error;
end case;
end Internal_Get_Start_Marker;
-----------------------
-- Internal_Get_Stop --
-----------------------
function Internal_Get_Stop
(Self : AMF.Internals.AMF_Element)
return AMF.DG.Set_Of_DG_Gradient_Stop is
begin
return AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (3).Gradient_Collection;
end Internal_Get_Stop;
-------------------------------
-- Internal_Get_Stroke_Color --
-------------------------------
function Internal_Get_Stroke_Color
(Self : AMF.Internals.AMF_Element)
return AMF.DC.Optional_DC_Color is
begin
return AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (6).Color_Holder;
end Internal_Get_Stroke_Color;
-------------------------------------
-- Internal_Get_Stroke_Dash_Length --
-------------------------------------
function Internal_Get_Stroke_Dash_Length
(Self : AMF.Internals.AMF_Element)
return AMF.Real_Collections.Sequence_Of_Real is
begin
return AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (7).Real_Collection;
end Internal_Get_Stroke_Dash_Length;
---------------------------------
-- Internal_Get_Stroke_Opacity --
---------------------------------
function Internal_Get_Stroke_Opacity
(Self : AMF.Internals.AMF_Element)
return AMF.Optional_Real is
begin
return AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (5).Real_Holder;
end Internal_Get_Stroke_Opacity;
-------------------------------
-- Internal_Get_Stroke_Width --
-------------------------------
function Internal_Get_Stroke_Width
(Self : AMF.Internals.AMF_Element)
return AMF.Optional_Real is
begin
return AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (4).Real_Holder;
end Internal_Get_Stroke_Width;
-----------------------
-- Internal_Get_Tile --
-----------------------
function Internal_Get_Tile
(Self : AMF.Internals.AMF_Element)
return AMF.Internals.AMF_Element is
begin
case AMF.Internals.Tables.DD_Element_Table.Table (Self).Kind is
when AMF.Internals.Tables.DD_Types.E_DG_Pattern =>
return
AMF.Internals.Links.Opposite_Element
(AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (3).Link, Self);
when others =>
raise Program_Error;
end case;
end Internal_Get_Tile;
----------------------------
-- Internal_Get_Transform --
----------------------------
function Internal_Get_Transform
(Self : AMF.Internals.AMF_Element)
return AMF.DG.Sequence_Of_DG_Transform is
begin
return AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (1).Transform_Collection;
end Internal_Get_Transform;
---------------------
-- Internal_Get_X1 --
---------------------
function Internal_Get_X1
(Self : AMF.Internals.AMF_Element)
return AMF.Real is
begin
return AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (4).Real_Value;
end Internal_Get_X1;
---------------------
-- Internal_Get_X2 --
---------------------
function Internal_Get_X2
(Self : AMF.Internals.AMF_Element)
return AMF.Real is
begin
return AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (5).Real_Value;
end Internal_Get_X2;
---------------------
-- Internal_Get_Y1 --
---------------------
function Internal_Get_Y1
(Self : AMF.Internals.AMF_Element)
return AMF.Real is
begin
return AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (6).Real_Value;
end Internal_Get_Y1;
---------------------
-- Internal_Get_Y2 --
---------------------
function Internal_Get_Y2
(Self : AMF.Internals.AMF_Element)
return AMF.Real is
begin
return AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (7).Real_Value;
end Internal_Get_Y2;
----------------------------
-- Internal_Set_Alignment --
----------------------------
procedure Internal_Set_Alignment
(Self : AMF.Internals.AMF_Element;
To : AMF.DC.DC_Alignment_Kind)
is
Old : AMF.DC.DC_Alignment_Kind;
begin
Old := AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (6).Alignment_Kind_Value;
AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (6).Alignment_Kind_Value := To;
AMF.Internals.Tables.DC_Notification.Notify_Attribute_Set
(Self, AMF.Internals.Tables.DG_Metamodel.MP_DG_Text_Alignment, Old, To);
end Internal_Set_Alignment;
-----------------------------------
-- Internal_Set_Background_Color --
-----------------------------------
procedure Internal_Set_Background_Color
(Self : AMF.Internals.AMF_Element;
To : AMF.DC.Optional_DC_Color)
is
Old : AMF.DC.Optional_DC_Color;
begin
Old := AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (5).Color_Holder;
AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (5).Color_Holder := To;
AMF.Internals.Tables.DC_Notification.Notify_Attribute_Set
(Self, AMF.Internals.Tables.DG_Metamodel.MP_DG_Canvas_Background_Color, Old, To);
end Internal_Set_Background_Color;
----------------------------------
-- Internal_Set_Background_Fill --
----------------------------------
procedure Internal_Set_Background_Fill
(Self : AMF.Internals.AMF_Element;
To : AMF.Internals.AMF_Element) is
begin
case AMF.Internals.Tables.DD_Element_Table.Table (Self).Kind is
when AMF.Internals.Tables.DD_Types.E_DG_Canvas =>
AMF.Internals.Links.Create_Link
(AMF.Internals.Tables.DG_Metamodel.MA_DG_Canvas_Background_Fill_Canvas,
Self,
To);
when others =>
raise Program_Error;
end case;
end Internal_Set_Background_Fill;
-------------------------
-- Internal_Set_Bounds --
-------------------------
procedure Internal_Set_Bounds
(Self : AMF.Internals.AMF_Element;
To : AMF.DC.DC_Bounds)
is
Old : AMF.DC.DC_Bounds;
begin
Old := AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (4).Bounds_Value;
AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (4).Bounds_Value := To;
AMF.Internals.Tables.DC_Notification.Notify_Attribute_Set
(Self, AMF.Internals.Tables.DG_Metamodel.MP_DG_Image_Bounds, Old, To);
end Internal_Set_Bounds;
-------------------------
-- Internal_Set_Canvas --
-------------------------
procedure Internal_Set_Canvas
(Self : AMF.Internals.AMF_Element;
To : AMF.Internals.AMF_Element) is
begin
case AMF.Internals.Tables.DD_Element_Table.Table (Self).Kind is
when AMF.Internals.Tables.DD_Types.E_DG_Linear_Gradient =>
AMF.Internals.Links.Create_Link
(AMF.Internals.Tables.DG_Metamodel.MA_DG_Canvas_Packaged_Fill_Canvas,
To,
Self);
when AMF.Internals.Tables.DD_Types.E_DG_Marker =>
AMF.Internals.Links.Create_Link
(AMF.Internals.Tables.DG_Metamodel.MA_DG_Canvas_Packaged_Marker_Canvas,
To,
Self);
when AMF.Internals.Tables.DD_Types.E_DG_Pattern =>
AMF.Internals.Links.Create_Link
(AMF.Internals.Tables.DG_Metamodel.MA_DG_Canvas_Packaged_Fill_Canvas,
To,
Self);
when AMF.Internals.Tables.DD_Types.E_DG_Radial_Gradient =>
AMF.Internals.Links.Create_Link
(AMF.Internals.Tables.DG_Metamodel.MA_DG_Canvas_Packaged_Fill_Canvas,
To,
Self);
when others =>
raise Program_Error;
end case;
end Internal_Set_Canvas;
-------------------------
-- Internal_Set_Center --
-------------------------
procedure Internal_Set_Center
(Self : AMF.Internals.AMF_Element;
To : AMF.DC.DC_Point)
is
Old : AMF.DC.DC_Point;
begin
Old := AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (5).Point_Value;
AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (5).Point_Value := To;
AMF.Internals.Tables.DC_Notification.Notify_Attribute_Set
(Self, AMF.Internals.Tables.DG_Metamodel.MP_DG_Circle_Center, Old, To);
end Internal_Set_Center;
---------------------------
-- Internal_Set_Center_X --
---------------------------
procedure Internal_Set_Center_X
(Self : AMF.Internals.AMF_Element;
To : AMF.Real)
is
Old : AMF.Real;
begin
Old := AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (5).Real_Value;
AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (5).Real_Value := To;
AMF.Internals.Tables.DC_Notification.Notify_Attribute_Set
(Self, AMF.Internals.Tables.DG_Metamodel.MP_DG_Radial_Gradient_Center_X, Old, To);
end Internal_Set_Center_X;
---------------------------
-- Internal_Set_Center_Y --
---------------------------
procedure Internal_Set_Center_Y
(Self : AMF.Internals.AMF_Element;
To : AMF.Real)
is
Old : AMF.Real;
begin
Old := AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (6).Real_Value;
AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (6).Real_Value := To;
AMF.Internals.Tables.DC_Notification.Notify_Attribute_Set
(Self, AMF.Internals.Tables.DG_Metamodel.MP_DG_Radial_Gradient_Center_Y, Old, To);
end Internal_Set_Center_Y;
----------------------------
-- Internal_Set_Clip_Path --
----------------------------
procedure Internal_Set_Clip_Path
(Self : AMF.Internals.AMF_Element;
To : AMF.Internals.AMF_Element) is
begin
case AMF.Internals.Tables.DD_Element_Table.Table (Self).Kind is
when AMF.Internals.Tables.DD_Types.E_DG_Canvas =>
AMF.Internals.Links.Create_Link
(AMF.Internals.Tables.DG_Metamodel.MA_DG_Graphical_Element_Clip_Path_Clipped_Element,
Self,
To);
when AMF.Internals.Tables.DD_Types.E_DG_Circle =>
AMF.Internals.Links.Create_Link
(AMF.Internals.Tables.DG_Metamodel.MA_DG_Graphical_Element_Clip_Path_Clipped_Element,
Self,
To);
when AMF.Internals.Tables.DD_Types.E_DG_Clip_Path =>
AMF.Internals.Links.Create_Link
(AMF.Internals.Tables.DG_Metamodel.MA_DG_Graphical_Element_Clip_Path_Clipped_Element,
Self,
To);
when AMF.Internals.Tables.DD_Types.E_DG_Ellipse =>
AMF.Internals.Links.Create_Link
(AMF.Internals.Tables.DG_Metamodel.MA_DG_Graphical_Element_Clip_Path_Clipped_Element,
Self,
To);
when AMF.Internals.Tables.DD_Types.E_DG_Group =>
AMF.Internals.Links.Create_Link
(AMF.Internals.Tables.DG_Metamodel.MA_DG_Graphical_Element_Clip_Path_Clipped_Element,
Self,
To);
when AMF.Internals.Tables.DD_Types.E_DG_Image =>
AMF.Internals.Links.Create_Link
(AMF.Internals.Tables.DG_Metamodel.MA_DG_Graphical_Element_Clip_Path_Clipped_Element,
Self,
To);
when AMF.Internals.Tables.DD_Types.E_DG_Line =>
AMF.Internals.Links.Create_Link
(AMF.Internals.Tables.DG_Metamodel.MA_DG_Graphical_Element_Clip_Path_Clipped_Element,
Self,
To);
when AMF.Internals.Tables.DD_Types.E_DG_Marked_Element =>
AMF.Internals.Links.Create_Link
(AMF.Internals.Tables.DG_Metamodel.MA_DG_Graphical_Element_Clip_Path_Clipped_Element,
Self,
To);
when AMF.Internals.Tables.DD_Types.E_DG_Marker =>
AMF.Internals.Links.Create_Link
(AMF.Internals.Tables.DG_Metamodel.MA_DG_Graphical_Element_Clip_Path_Clipped_Element,
Self,
To);
when AMF.Internals.Tables.DD_Types.E_DG_Path =>
AMF.Internals.Links.Create_Link
(AMF.Internals.Tables.DG_Metamodel.MA_DG_Graphical_Element_Clip_Path_Clipped_Element,
Self,
To);
when AMF.Internals.Tables.DD_Types.E_DG_Polygon =>
AMF.Internals.Links.Create_Link
(AMF.Internals.Tables.DG_Metamodel.MA_DG_Graphical_Element_Clip_Path_Clipped_Element,
Self,
To);
when AMF.Internals.Tables.DD_Types.E_DG_Polyline =>
AMF.Internals.Links.Create_Link
(AMF.Internals.Tables.DG_Metamodel.MA_DG_Graphical_Element_Clip_Path_Clipped_Element,
Self,
To);
when AMF.Internals.Tables.DD_Types.E_DG_Rectangle =>
AMF.Internals.Links.Create_Link
(AMF.Internals.Tables.DG_Metamodel.MA_DG_Graphical_Element_Clip_Path_Clipped_Element,
Self,
To);
when AMF.Internals.Tables.DD_Types.E_DG_Text =>
AMF.Internals.Links.Create_Link
(AMF.Internals.Tables.DG_Metamodel.MA_DG_Graphical_Element_Clip_Path_Clipped_Element,
Self,
To);
when others =>
raise Program_Error;
end case;
end Internal_Set_Clip_Path;
----------------------------------
-- Internal_Set_Clipped_Element --
----------------------------------
procedure Internal_Set_Clipped_Element
(Self : AMF.Internals.AMF_Element;
To : AMF.Internals.AMF_Element) is
begin
case AMF.Internals.Tables.DD_Element_Table.Table (Self).Kind is
when AMF.Internals.Tables.DD_Types.E_DG_Clip_Path =>
AMF.Internals.Links.Create_Link
(AMF.Internals.Tables.DG_Metamodel.MA_DG_Graphical_Element_Clip_Path_Clipped_Element,
To,
Self);
when others =>
raise Program_Error;
end case;
end Internal_Set_Clipped_Element;
--------------------------------
-- Internal_Set_Corner_Radius --
--------------------------------
procedure Internal_Set_Corner_Radius
(Self : AMF.Internals.AMF_Element;
To : AMF.Real)
is
Old : AMF.Real;
begin
Old := AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (5).Real_Value;
AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (5).Real_Value := To;
AMF.Internals.Tables.DC_Notification.Notify_Attribute_Set
(Self, AMF.Internals.Tables.DG_Metamodel.MP_DG_Rectangle_Corner_Radius, Old, To);
end Internal_Set_Corner_Radius;
-----------------------
-- Internal_Set_Data --
-----------------------
procedure Internal_Set_Data
(Self : AMF.Internals.AMF_Element;
To : Matreshka.Internals.Strings.Shared_String_Access)
is
Old : Matreshka.Internals.Strings.Shared_String_Access;
begin
Old :=
AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (5).String_Value;
DD_Element_Table.Table (Self).Member (5).String_Value := To;
Matreshka.Internals.Strings.Reference
(DD_Element_Table.Table (Self).Member (5).String_Value);
AMF.Internals.Tables.DC_Notification.Notify_Attribute_Set
(Self, AMF.Internals.Tables.DG_Metamodel.MP_DG_Text_Data, Old, To);
Matreshka.Internals.Strings.Dereference (Old);
end Internal_Set_Data;
----------------------
-- Internal_Set_End --
----------------------
procedure Internal_Set_End
(Self : AMF.Internals.AMF_Element;
To : AMF.DC.DC_Point)
is
Old : AMF.DC.DC_Point;
begin
Old := AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (8).Point_Value;
AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (8).Point_Value := To;
AMF.Internals.Tables.DC_Notification.Notify_Attribute_Set
(Self, AMF.Internals.Tables.DG_Metamodel.MP_DG_Line_End, Old, To);
end Internal_Set_End;
-----------------------------
-- Internal_Set_End_Marker --
-----------------------------
procedure Internal_Set_End_Marker
(Self : AMF.Internals.AMF_Element;
To : AMF.Internals.AMF_Element) is
begin
case AMF.Internals.Tables.DD_Element_Table.Table (Self).Kind is
when AMF.Internals.Tables.DD_Types.E_DG_Line =>
AMF.Internals.Links.Create_Link
(AMF.Internals.Tables.DG_Metamodel.MA_DG_Marked_Element_End_Marker_Marked_Element,
Self,
To);
when AMF.Internals.Tables.DD_Types.E_DG_Marked_Element =>
AMF.Internals.Links.Create_Link
(AMF.Internals.Tables.DG_Metamodel.MA_DG_Marked_Element_End_Marker_Marked_Element,
Self,
To);
when AMF.Internals.Tables.DD_Types.E_DG_Path =>
AMF.Internals.Links.Create_Link
(AMF.Internals.Tables.DG_Metamodel.MA_DG_Marked_Element_End_Marker_Marked_Element,
Self,
To);
when AMF.Internals.Tables.DD_Types.E_DG_Polygon =>
AMF.Internals.Links.Create_Link
(AMF.Internals.Tables.DG_Metamodel.MA_DG_Marked_Element_End_Marker_Marked_Element,
Self,
To);
when AMF.Internals.Tables.DD_Types.E_DG_Polyline =>
AMF.Internals.Links.Create_Link
(AMF.Internals.Tables.DG_Metamodel.MA_DG_Marked_Element_End_Marker_Marked_Element,
Self,
To);
when others =>
raise Program_Error;
end case;
end Internal_Set_End_Marker;
-----------------------
-- Internal_Set_Fill --
-----------------------
procedure Internal_Set_Fill
(Self : AMF.Internals.AMF_Element;
To : AMF.Internals.AMF_Element) is
begin
case AMF.Internals.Tables.DD_Element_Table.Table (Self).Kind is
when AMF.Internals.Tables.DD_Types.E_DG_Style =>
AMF.Internals.Links.Create_Link
(AMF.Internals.Tables.DG_Metamodel.MA_DG_Style_Fill_Style,
Self,
To);
when others =>
raise Program_Error;
end case;
end Internal_Set_Fill;
-----------------------------
-- Internal_Set_Fill_Color --
-----------------------------
procedure Internal_Set_Fill_Color
(Self : AMF.Internals.AMF_Element;
To : AMF.DC.Optional_DC_Color)
is
Old : AMF.DC.Optional_DC_Color;
begin
Old := AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (2).Color_Holder;
AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (2).Color_Holder := To;
AMF.Internals.Tables.DC_Notification.Notify_Attribute_Set
(Self, AMF.Internals.Tables.DG_Metamodel.MP_DG_Style_Fill_Color, Old, To);
end Internal_Set_Fill_Color;
-------------------------------
-- Internal_Set_Fill_Opacity --
-------------------------------
procedure Internal_Set_Fill_Opacity
(Self : AMF.Internals.AMF_Element;
To : AMF.Optional_Real)
is
Old : AMF.Optional_Real;
begin
Old := AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (3).Real_Holder;
AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (3).Real_Holder := To;
AMF.Internals.Tables.DC_Notification.Notify_Attribute_Set
(Self, AMF.Internals.Tables.DG_Metamodel.MP_DG_Style_Fill_Opacity, Old, To);
end Internal_Set_Fill_Opacity;
--------------------------
-- Internal_Set_Focus_X --
--------------------------
procedure Internal_Set_Focus_X
(Self : AMF.Internals.AMF_Element;
To : AMF.Real)
is
Old : AMF.Real;
begin
Old := AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (7).Real_Value;
AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (7).Real_Value := To;
AMF.Internals.Tables.DC_Notification.Notify_Attribute_Set
(Self, AMF.Internals.Tables.DG_Metamodel.MP_DG_Radial_Gradient_Focus_X, Old, To);
end Internal_Set_Focus_X;
--------------------------
-- Internal_Set_Focus_Y --
--------------------------
procedure Internal_Set_Focus_Y
(Self : AMF.Internals.AMF_Element;
To : AMF.Real)
is
Old : AMF.Real;
begin
Old := AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (8).Real_Value;
AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (8).Real_Value := To;
AMF.Internals.Tables.DC_Notification.Notify_Attribute_Set
(Self, AMF.Internals.Tables.DG_Metamodel.MP_DG_Radial_Gradient_Focus_Y, Old, To);
end Internal_Set_Focus_Y;
----------------------------
-- Internal_Set_Font_Bold --
----------------------------
procedure Internal_Set_Font_Bold
(Self : AMF.Internals.AMF_Element;
To : AMF.Optional_Boolean)
is
Old : AMF.Optional_Boolean;
begin
Old := AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (12).Boolean_Holder;
AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (12).Boolean_Holder := To;
AMF.Internals.Tables.DC_Notification.Notify_Attribute_Set
(Self, AMF.Internals.Tables.DG_Metamodel.MP_DG_Style_Font_Bold, Old, To);
end Internal_Set_Font_Bold;
-----------------------------
-- Internal_Set_Font_Color --
-----------------------------
procedure Internal_Set_Font_Color
(Self : AMF.Internals.AMF_Element;
To : AMF.DC.Optional_DC_Color)
is
Old : AMF.DC.Optional_DC_Color;
begin
Old := AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (10).Color_Holder;
AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (10).Color_Holder := To;
AMF.Internals.Tables.DC_Notification.Notify_Attribute_Set
(Self, AMF.Internals.Tables.DG_Metamodel.MP_DG_Style_Font_Color, Old, To);
end Internal_Set_Font_Color;
------------------------------
-- Internal_Set_Font_Italic --
------------------------------
procedure Internal_Set_Font_Italic
(Self : AMF.Internals.AMF_Element;
To : AMF.Optional_Boolean)
is
Old : AMF.Optional_Boolean;
begin
Old := AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (11).Boolean_Holder;
AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (11).Boolean_Holder := To;
AMF.Internals.Tables.DC_Notification.Notify_Attribute_Set
(Self, AMF.Internals.Tables.DG_Metamodel.MP_DG_Style_Font_Italic, Old, To);
end Internal_Set_Font_Italic;
----------------------------
-- Internal_Set_Font_Name --
----------------------------
procedure Internal_Set_Font_Name
(Self : AMF.Internals.AMF_Element;
To : Matreshka.Internals.Strings.Shared_String_Access)
is
Old : Matreshka.Internals.Strings.Shared_String_Access;
begin
Old := AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (9).String_Value;
DD_Element_Table.Table (Self).Member (9).String_Value := To;
if DD_Element_Table.Table (Self).Member (9).String_Value /= null then
Matreshka.Internals.Strings.Reference
(DD_Element_Table.Table (Self).Member (9).String_Value);
end if;
AMF.Internals.Tables.DC_Notification.Notify_Attribute_Set
(Self, AMF.Internals.Tables.DG_Metamodel.MP_DG_Style_Font_Name, Old, To);
if Old /= null then
Matreshka.Internals.Strings.Reference (Old);
end if;
end Internal_Set_Font_Name;
----------------------------
-- Internal_Set_Font_Size --
----------------------------
procedure Internal_Set_Font_Size
(Self : AMF.Internals.AMF_Element;
To : AMF.Optional_Real)
is
Old : AMF.Optional_Real;
begin
Old := AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (8).Real_Holder;
AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (8).Real_Holder := To;
AMF.Internals.Tables.DC_Notification.Notify_Attribute_Set
(Self, AMF.Internals.Tables.DG_Metamodel.MP_DG_Style_Font_Size, Old, To);
end Internal_Set_Font_Size;
--------------------------------------
-- Internal_Set_Font_Strike_Through --
--------------------------------------
procedure Internal_Set_Font_Strike_Through
(Self : AMF.Internals.AMF_Element;
To : AMF.Optional_Boolean)
is
Old : AMF.Optional_Boolean;
begin
Old := AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (14).Boolean_Holder;
AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (14).Boolean_Holder := To;
AMF.Internals.Tables.DC_Notification.Notify_Attribute_Set
(Self, AMF.Internals.Tables.DG_Metamodel.MP_DG_Style_Font_Strike_Through, Old, To);
end Internal_Set_Font_Strike_Through;
---------------------------------
-- Internal_Set_Font_Underline --
---------------------------------
procedure Internal_Set_Font_Underline
(Self : AMF.Internals.AMF_Element;
To : AMF.Optional_Boolean)
is
Old : AMF.Optional_Boolean;
begin
Old := AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (13).Boolean_Holder;
AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (13).Boolean_Holder := To;
AMF.Internals.Tables.DC_Notification.Notify_Attribute_Set
(Self, AMF.Internals.Tables.DG_Metamodel.MP_DG_Style_Font_Underline, Old, To);
end Internal_Set_Font_Underline;
------------------------
-- Internal_Set_Group --
------------------------
procedure Internal_Set_Group
(Self : AMF.Internals.AMF_Element;
To : AMF.Internals.AMF_Element) is
begin
case AMF.Internals.Tables.DD_Element_Table.Table (Self).Kind is
when AMF.Internals.Tables.DD_Types.E_DG_Canvas =>
AMF.Internals.Links.Create_Link
(AMF.Internals.Tables.DG_Metamodel.MA_DG_Group_Member_Group,
To,
Self);
when AMF.Internals.Tables.DD_Types.E_DG_Circle =>
AMF.Internals.Links.Create_Link
(AMF.Internals.Tables.DG_Metamodel.MA_DG_Group_Member_Group,
To,
Self);
when AMF.Internals.Tables.DD_Types.E_DG_Clip_Path =>
AMF.Internals.Links.Create_Link
(AMF.Internals.Tables.DG_Metamodel.MA_DG_Group_Member_Group,
To,
Self);
when AMF.Internals.Tables.DD_Types.E_DG_Ellipse =>
AMF.Internals.Links.Create_Link
(AMF.Internals.Tables.DG_Metamodel.MA_DG_Group_Member_Group,
To,
Self);
when AMF.Internals.Tables.DD_Types.E_DG_Group =>
AMF.Internals.Links.Create_Link
(AMF.Internals.Tables.DG_Metamodel.MA_DG_Group_Member_Group,
To,
Self);
when AMF.Internals.Tables.DD_Types.E_DG_Image =>
AMF.Internals.Links.Create_Link
(AMF.Internals.Tables.DG_Metamodel.MA_DG_Group_Member_Group,
To,
Self);
when AMF.Internals.Tables.DD_Types.E_DG_Line =>
AMF.Internals.Links.Create_Link
(AMF.Internals.Tables.DG_Metamodel.MA_DG_Group_Member_Group,
To,
Self);
when AMF.Internals.Tables.DD_Types.E_DG_Marked_Element =>
AMF.Internals.Links.Create_Link
(AMF.Internals.Tables.DG_Metamodel.MA_DG_Group_Member_Group,
To,
Self);
when AMF.Internals.Tables.DD_Types.E_DG_Marker =>
AMF.Internals.Links.Create_Link
(AMF.Internals.Tables.DG_Metamodel.MA_DG_Group_Member_Group,
To,
Self);
when AMF.Internals.Tables.DD_Types.E_DG_Path =>
AMF.Internals.Links.Create_Link
(AMF.Internals.Tables.DG_Metamodel.MA_DG_Group_Member_Group,
To,
Self);
when AMF.Internals.Tables.DD_Types.E_DG_Polygon =>
AMF.Internals.Links.Create_Link
(AMF.Internals.Tables.DG_Metamodel.MA_DG_Group_Member_Group,
To,
Self);
when AMF.Internals.Tables.DD_Types.E_DG_Polyline =>
AMF.Internals.Links.Create_Link
(AMF.Internals.Tables.DG_Metamodel.MA_DG_Group_Member_Group,
To,
Self);
when AMF.Internals.Tables.DD_Types.E_DG_Rectangle =>
AMF.Internals.Links.Create_Link
(AMF.Internals.Tables.DG_Metamodel.MA_DG_Group_Member_Group,
To,
Self);
when AMF.Internals.Tables.DD_Types.E_DG_Text =>
AMF.Internals.Links.Create_Link
(AMF.Internals.Tables.DG_Metamodel.MA_DG_Group_Member_Group,
To,
Self);
when others =>
raise Program_Error;
end case;
end Internal_Set_Group;
--------------------------------------------
-- Internal_Set_Is_Aspect_Ratio_Preserved --
--------------------------------------------
procedure Internal_Set_Is_Aspect_Ratio_Preserved
(Self : AMF.Internals.AMF_Element;
To : Boolean)
is
Old : Boolean;
begin
Old := AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (6).Boolean_Value;
AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (6).Boolean_Value := To;
AMF.Internals.Tables.DC_Notification.Notify_Attribute_Set
(Self, AMF.Internals.Tables.DG_Metamodel.MP_DG_Image_Is_Aspect_Ratio_Preserved, Old, To);
end Internal_Set_Is_Aspect_Ratio_Preserved;
-----------------------------
-- Internal_Set_Mid_Marker --
-----------------------------
procedure Internal_Set_Mid_Marker
(Self : AMF.Internals.AMF_Element;
To : AMF.Internals.AMF_Element) is
begin
case AMF.Internals.Tables.DD_Element_Table.Table (Self).Kind is
when AMF.Internals.Tables.DD_Types.E_DG_Line =>
AMF.Internals.Links.Create_Link
(AMF.Internals.Tables.DG_Metamodel.MA_DG_Marked_Element_Mid_Marker_Marked_Element,
Self,
To);
when AMF.Internals.Tables.DD_Types.E_DG_Marked_Element =>
AMF.Internals.Links.Create_Link
(AMF.Internals.Tables.DG_Metamodel.MA_DG_Marked_Element_Mid_Marker_Marked_Element,
Self,
To);
when AMF.Internals.Tables.DD_Types.E_DG_Path =>
AMF.Internals.Links.Create_Link
(AMF.Internals.Tables.DG_Metamodel.MA_DG_Marked_Element_Mid_Marker_Marked_Element,
Self,
To);
when AMF.Internals.Tables.DD_Types.E_DG_Polygon =>
AMF.Internals.Links.Create_Link
(AMF.Internals.Tables.DG_Metamodel.MA_DG_Marked_Element_Mid_Marker_Marked_Element,
Self,
To);
when AMF.Internals.Tables.DD_Types.E_DG_Polyline =>
AMF.Internals.Links.Create_Link
(AMF.Internals.Tables.DG_Metamodel.MA_DG_Marked_Element_Mid_Marker_Marked_Element,
Self,
To);
when others =>
raise Program_Error;
end case;
end Internal_Set_Mid_Marker;
------------------------
-- Internal_Set_Radii --
------------------------
procedure Internal_Set_Radii
(Self : AMF.Internals.AMF_Element;
To : AMF.DC.DC_Dimension)
is
Old : AMF.DC.DC_Dimension;
begin
Old := AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (4).Dimension_Value;
AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (4).Dimension_Value := To;
AMF.Internals.Tables.DC_Notification.Notify_Attribute_Set
(Self, AMF.Internals.Tables.DG_Metamodel.MP_DG_Ellipse_Radii, Old, To);
end Internal_Set_Radii;
-------------------------
-- Internal_Set_Radius --
-------------------------
procedure Internal_Set_Radius
(Self : AMF.Internals.AMF_Element;
To : AMF.Real)
is
Old : AMF.Real;
begin
Old := AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (4).Real_Value;
AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (4).Real_Value := To;
AMF.Internals.Tables.DC_Notification.Notify_Attribute_Set
(Self, AMF.Internals.Tables.DG_Metamodel.MP_DG_Circle_Radius, Old, To);
end Internal_Set_Radius;
----------------------------
-- Internal_Set_Reference --
----------------------------
procedure Internal_Set_Reference
(Self : AMF.Internals.AMF_Element;
To : AMF.DC.DC_Point)
is
Old : AMF.DC.DC_Point;
begin
Old := AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (6).Point_Value;
AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (6).Point_Value := To;
AMF.Internals.Tables.DC_Notification.Notify_Attribute_Set
(Self, AMF.Internals.Tables.DG_Metamodel.MP_DG_Marker_Reference, Old, To);
end Internal_Set_Reference;
-----------------------
-- Internal_Set_Size --
-----------------------
procedure Internal_Set_Size
(Self : AMF.Internals.AMF_Element;
To : AMF.DC.DC_Dimension)
is
Old : AMF.DC.DC_Dimension;
begin
Old := AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (5).Dimension_Value;
AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (5).Dimension_Value := To;
AMF.Internals.Tables.DC_Notification.Notify_Attribute_Set
(Self, AMF.Internals.Tables.DG_Metamodel.MP_DG_Marker_Size, Old, To);
end Internal_Set_Size;
-------------------------
-- Internal_Set_Source --
-------------------------
procedure Internal_Set_Source
(Self : AMF.Internals.AMF_Element;
To : Matreshka.Internals.Strings.Shared_String_Access)
is
Old : Matreshka.Internals.Strings.Shared_String_Access;
begin
Old :=
AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (5).String_Value;
DD_Element_Table.Table (Self).Member (5).String_Value := To;
Matreshka.Internals.Strings.Reference
(DD_Element_Table.Table (Self).Member (5).String_Value);
AMF.Internals.Tables.DC_Notification.Notify_Attribute_Set
(Self, AMF.Internals.Tables.DG_Metamodel.MP_DG_Image_Source, Old, To);
Matreshka.Internals.Strings.Dereference (Old);
end Internal_Set_Source;
------------------------
-- Internal_Set_Start --
------------------------
procedure Internal_Set_Start
(Self : AMF.Internals.AMF_Element;
To : AMF.DC.DC_Point)
is
Old : AMF.DC.DC_Point;
begin
Old := AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (7).Point_Value;
AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (7).Point_Value := To;
AMF.Internals.Tables.DC_Notification.Notify_Attribute_Set
(Self, AMF.Internals.Tables.DG_Metamodel.MP_DG_Line_Start, Old, To);
end Internal_Set_Start;
-------------------------------
-- Internal_Set_Start_Marker --
-------------------------------
procedure Internal_Set_Start_Marker
(Self : AMF.Internals.AMF_Element;
To : AMF.Internals.AMF_Element) is
begin
case AMF.Internals.Tables.DD_Element_Table.Table (Self).Kind is
when AMF.Internals.Tables.DD_Types.E_DG_Line =>
AMF.Internals.Links.Create_Link
(AMF.Internals.Tables.DG_Metamodel.MA_DG_Marked_Element_Start_Marker_Marked_Element,
Self,
To);
when AMF.Internals.Tables.DD_Types.E_DG_Marked_Element =>
AMF.Internals.Links.Create_Link
(AMF.Internals.Tables.DG_Metamodel.MA_DG_Marked_Element_Start_Marker_Marked_Element,
Self,
To);
when AMF.Internals.Tables.DD_Types.E_DG_Path =>
AMF.Internals.Links.Create_Link
(AMF.Internals.Tables.DG_Metamodel.MA_DG_Marked_Element_Start_Marker_Marked_Element,
Self,
To);
when AMF.Internals.Tables.DD_Types.E_DG_Polygon =>
AMF.Internals.Links.Create_Link
(AMF.Internals.Tables.DG_Metamodel.MA_DG_Marked_Element_Start_Marker_Marked_Element,
Self,
To);
when AMF.Internals.Tables.DD_Types.E_DG_Polyline =>
AMF.Internals.Links.Create_Link
(AMF.Internals.Tables.DG_Metamodel.MA_DG_Marked_Element_Start_Marker_Marked_Element,
Self,
To);
when others =>
raise Program_Error;
end case;
end Internal_Set_Start_Marker;
-------------------------------
-- Internal_Set_Stroke_Color --
-------------------------------
procedure Internal_Set_Stroke_Color
(Self : AMF.Internals.AMF_Element;
To : AMF.DC.Optional_DC_Color)
is
Old : AMF.DC.Optional_DC_Color;
begin
Old := AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (6).Color_Holder;
AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (6).Color_Holder := To;
AMF.Internals.Tables.DC_Notification.Notify_Attribute_Set
(Self, AMF.Internals.Tables.DG_Metamodel.MP_DG_Style_Stroke_Color, Old, To);
end Internal_Set_Stroke_Color;
---------------------------------
-- Internal_Set_Stroke_Opacity --
---------------------------------
procedure Internal_Set_Stroke_Opacity
(Self : AMF.Internals.AMF_Element;
To : AMF.Optional_Real)
is
Old : AMF.Optional_Real;
begin
Old := AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (5).Real_Holder;
AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (5).Real_Holder := To;
AMF.Internals.Tables.DC_Notification.Notify_Attribute_Set
(Self, AMF.Internals.Tables.DG_Metamodel.MP_DG_Style_Stroke_Opacity, Old, To);
end Internal_Set_Stroke_Opacity;
-------------------------------
-- Internal_Set_Stroke_Width --
-------------------------------
procedure Internal_Set_Stroke_Width
(Self : AMF.Internals.AMF_Element;
To : AMF.Optional_Real)
is
Old : AMF.Optional_Real;
begin
Old := AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (4).Real_Holder;
AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (4).Real_Holder := To;
AMF.Internals.Tables.DC_Notification.Notify_Attribute_Set
(Self, AMF.Internals.Tables.DG_Metamodel.MP_DG_Style_Stroke_Width, Old, To);
end Internal_Set_Stroke_Width;
-----------------------
-- Internal_Set_Tile --
-----------------------
procedure Internal_Set_Tile
(Self : AMF.Internals.AMF_Element;
To : AMF.Internals.AMF_Element) is
begin
case AMF.Internals.Tables.DD_Element_Table.Table (Self).Kind is
when AMF.Internals.Tables.DD_Types.E_DG_Pattern =>
AMF.Internals.Links.Create_Link
(AMF.Internals.Tables.DG_Metamodel.MA_DG_Pattern_Tile_Pattern,
Self,
To);
when others =>
raise Program_Error;
end case;
end Internal_Set_Tile;
---------------------
-- Internal_Set_X1 --
---------------------
procedure Internal_Set_X1
(Self : AMF.Internals.AMF_Element;
To : AMF.Real)
is
Old : AMF.Real;
begin
Old := AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (4).Real_Value;
AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (4).Real_Value := To;
AMF.Internals.Tables.DC_Notification.Notify_Attribute_Set
(Self, AMF.Internals.Tables.DG_Metamodel.MP_DG_Linear_Gradient_X1, Old, To);
end Internal_Set_X1;
---------------------
-- Internal_Set_X2 --
---------------------
procedure Internal_Set_X2
(Self : AMF.Internals.AMF_Element;
To : AMF.Real)
is
Old : AMF.Real;
begin
Old := AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (5).Real_Value;
AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (5).Real_Value := To;
AMF.Internals.Tables.DC_Notification.Notify_Attribute_Set
(Self, AMF.Internals.Tables.DG_Metamodel.MP_DG_Linear_Gradient_X2, Old, To);
end Internal_Set_X2;
---------------------
-- Internal_Set_Y1 --
---------------------
procedure Internal_Set_Y1
(Self : AMF.Internals.AMF_Element;
To : AMF.Real)
is
Old : AMF.Real;
begin
Old := AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (6).Real_Value;
AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (6).Real_Value := To;
AMF.Internals.Tables.DC_Notification.Notify_Attribute_Set
(Self, AMF.Internals.Tables.DG_Metamodel.MP_DG_Linear_Gradient_Y1, Old, To);
end Internal_Set_Y1;
---------------------
-- Internal_Set_Y2 --
---------------------
procedure Internal_Set_Y2
(Self : AMF.Internals.AMF_Element;
To : AMF.Real)
is
Old : AMF.Real;
begin
Old := AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (7).Real_Value;
AMF.Internals.Tables.DD_Element_Table.Table (Self).Member (7).Real_Value := To;
AMF.Internals.Tables.DC_Notification.Notify_Attribute_Set
(Self, AMF.Internals.Tables.DG_Metamodel.MP_DG_Linear_Gradient_Y2, Old, To);
end Internal_Set_Y2;
end AMF.Internals.Tables.DD_Attributes;
|
-- This spec has been automatically generated from STM32F46_79x.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package STM32_SVD.DBG is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype DBGMCU_IDCODE_DEV_ID_Field is HAL.UInt12;
subtype DBGMCU_IDCODE_REV_ID_Field is HAL.UInt16;
-- IDCODE
type DBGMCU_IDCODE_Register is record
-- Read-only. DEV_ID
DEV_ID : DBGMCU_IDCODE_DEV_ID_Field;
-- unspecified
Reserved_12_15 : HAL.UInt4;
-- Read-only. REV_ID
REV_ID : DBGMCU_IDCODE_REV_ID_Field;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for DBGMCU_IDCODE_Register use record
DEV_ID at 0 range 0 .. 11;
Reserved_12_15 at 0 range 12 .. 15;
REV_ID at 0 range 16 .. 31;
end record;
subtype DBGMCU_CR_TRACE_MODE_Field is HAL.UInt2;
-- Control Register
type DBGMCU_CR_Register is record
-- DBG_SLEEP
DBG_SLEEP : Boolean := False;
-- DBG_STOP
DBG_STOP : Boolean := False;
-- DBG_STANDBY
DBG_STANDBY : Boolean := False;
-- unspecified
Reserved_3_4 : HAL.UInt2 := 16#0#;
-- TRACE_IOEN
TRACE_IOEN : Boolean := False;
-- TRACE_MODE
TRACE_MODE : DBGMCU_CR_TRACE_MODE_Field := 16#0#;
-- unspecified
Reserved_8_31 : HAL.UInt24 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for DBGMCU_CR_Register use record
DBG_SLEEP at 0 range 0 .. 0;
DBG_STOP at 0 range 1 .. 1;
DBG_STANDBY at 0 range 2 .. 2;
Reserved_3_4 at 0 range 3 .. 4;
TRACE_IOEN at 0 range 5 .. 5;
TRACE_MODE at 0 range 6 .. 7;
Reserved_8_31 at 0 range 8 .. 31;
end record;
-- Debug MCU APB1 Freeze registe
type DBGMCU_APB1_FZ_Register is record
-- DBG_TIM2_STOP
DBG_TIM2_STOP : Boolean := False;
-- DBG_TIM3 _STOP
DBG_TIM3_STOP : Boolean := False;
-- DBG_TIM4_STOP
DBG_TIM4_STOP : Boolean := False;
-- DBG_TIM5_STOP
DBG_TIM5_STOP : Boolean := False;
-- DBG_TIM6_STOP
DBG_TIM6_STOP : Boolean := False;
-- DBG_TIM7_STOP
DBG_TIM7_STOP : Boolean := False;
-- DBG_TIM12_STOP
DBG_TIM12_STOP : Boolean := False;
-- DBG_TIM13_STOP
DBG_TIM13_STOP : Boolean := False;
-- DBG_TIM14_STOP
DBG_TIM14_STOP : Boolean := False;
-- unspecified
Reserved_9_10 : HAL.UInt2 := 16#0#;
-- DBG_WWDG_STOP
DBG_WWDG_STOP : Boolean := False;
-- DBG_IWDEG_STOP
DBG_IWDEG_STOP : Boolean := False;
-- unspecified
Reserved_13_20 : HAL.UInt8 := 16#0#;
-- DBG_J2C1_SMBUS_TIMEOUT
DBG_J2C1_SMBUS_TIMEOUT : Boolean := False;
-- DBG_J2C2_SMBUS_TIMEOUT
DBG_J2C2_SMBUS_TIMEOUT : Boolean := False;
-- DBG_J2C3SMBUS_TIMEOUT
DBG_J2C3SMBUS_TIMEOUT : Boolean := False;
-- unspecified
Reserved_24_24 : HAL.Bit := 16#0#;
-- DBG_CAN1_STOP
DBG_CAN1_STOP : Boolean := False;
-- DBG_CAN2_STOP
DBG_CAN2_STOP : Boolean := False;
-- unspecified
Reserved_27_31 : HAL.UInt5 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for DBGMCU_APB1_FZ_Register use record
DBG_TIM2_STOP at 0 range 0 .. 0;
DBG_TIM3_STOP at 0 range 1 .. 1;
DBG_TIM4_STOP at 0 range 2 .. 2;
DBG_TIM5_STOP at 0 range 3 .. 3;
DBG_TIM6_STOP at 0 range 4 .. 4;
DBG_TIM7_STOP at 0 range 5 .. 5;
DBG_TIM12_STOP at 0 range 6 .. 6;
DBG_TIM13_STOP at 0 range 7 .. 7;
DBG_TIM14_STOP at 0 range 8 .. 8;
Reserved_9_10 at 0 range 9 .. 10;
DBG_WWDG_STOP at 0 range 11 .. 11;
DBG_IWDEG_STOP at 0 range 12 .. 12;
Reserved_13_20 at 0 range 13 .. 20;
DBG_J2C1_SMBUS_TIMEOUT at 0 range 21 .. 21;
DBG_J2C2_SMBUS_TIMEOUT at 0 range 22 .. 22;
DBG_J2C3SMBUS_TIMEOUT at 0 range 23 .. 23;
Reserved_24_24 at 0 range 24 .. 24;
DBG_CAN1_STOP at 0 range 25 .. 25;
DBG_CAN2_STOP at 0 range 26 .. 26;
Reserved_27_31 at 0 range 27 .. 31;
end record;
-- Debug MCU APB2 Freeze registe
type DBGMCU_APB2_FZ_Register is record
-- TIM1 counter stopped when core is halted
DBG_TIM1_STOP : Boolean := False;
-- TIM8 counter stopped when core is halted
DBG_TIM8_STOP : Boolean := False;
-- unspecified
Reserved_2_15 : HAL.UInt14 := 16#0#;
-- TIM9 counter stopped when core is halted
DBG_TIM9_STOP : Boolean := False;
-- TIM10 counter stopped when core is halted
DBG_TIM10_STOP : Boolean := False;
-- TIM11 counter stopped when core is halted
DBG_TIM11_STOP : Boolean := False;
-- unspecified
Reserved_19_31 : HAL.UInt13 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for DBGMCU_APB2_FZ_Register use record
DBG_TIM1_STOP at 0 range 0 .. 0;
DBG_TIM8_STOP at 0 range 1 .. 1;
Reserved_2_15 at 0 range 2 .. 15;
DBG_TIM9_STOP at 0 range 16 .. 16;
DBG_TIM10_STOP at 0 range 17 .. 17;
DBG_TIM11_STOP at 0 range 18 .. 18;
Reserved_19_31 at 0 range 19 .. 31;
end record;
-----------------
-- Peripherals --
-----------------
-- Debug support
type DBG_Peripheral is record
-- IDCODE
DBGMCU_IDCODE : aliased DBGMCU_IDCODE_Register;
-- Control Register
DBGMCU_CR : aliased DBGMCU_CR_Register;
-- Debug MCU APB1 Freeze registe
DBGMCU_APB1_FZ : aliased DBGMCU_APB1_FZ_Register;
-- Debug MCU APB2 Freeze registe
DBGMCU_APB2_FZ : aliased DBGMCU_APB2_FZ_Register;
end record
with Volatile;
for DBG_Peripheral use record
DBGMCU_IDCODE at 16#0# range 0 .. 31;
DBGMCU_CR at 16#4# range 0 .. 31;
DBGMCU_APB1_FZ at 16#8# range 0 .. 31;
DBGMCU_APB2_FZ at 16#C# range 0 .. 31;
end record;
-- Debug support
DBG_Periph : aliased DBG_Peripheral
with Import, Address => System'To_Address (16#E0042000#);
end STM32_SVD.DBG;
|
with ada.text_io, ada.integer_text_io;
use ada.text_io, ada.integer_text_io;
function factorial (n1: in Integer) return Integer is
resultado : Integer := 1;
n1c := Integer;
begin
n1c := n1;
if n1c > 0 then
loop exit when n1c = 0;
resultado:=resultado*n1c;
n1c := n1c-1;
end loop;
end if;
return resultado;
end factorial;
|
package body Stack
with SPARK_Mode => On
is
Tab : array (1 .. Max_Size) of Board := (others => (others => (others => Empty)));
-- The stack. We push and pop pointers to Values.
-----------
-- Clear --
-----------
procedure Clear is
begin
Last := Tab'First - 1;
end Clear;
----------
-- Push --
----------
procedure Push (V : Board) is
begin
Last := Last + 1;
Tab (Last) := V;
end Push;
---------
-- Pop --
---------
procedure Pop (V : out Board) is
begin
V := Tab (Last);
Last := Last - 1;
end Pop;
---------
-- Top --
---------
function Top return Board is
begin
return Tab (Last);
end Top;
end Stack;
|
-- { dg-do compile }
-- { dg-options "-O -gnatn -Winline" }
with Inline2_Pkg; use Inline2_Pkg;
procedure Inline2 is
F : Float := Invalid_Real;
begin
if Valid_Real (F) then
F := F + 1.0;
end if;
end;
|
with Ada.Text_IO;
use Ada.Text_IO;
--with xample1;
--use xample1;
package body xample1 is
procedure xercise is
begin
xample.SayWelcome(1);
end xercise;
end xample1;
|
-----------------------------------------------------------------------
-- gen-artifacts -- Artifacts for Code Generator
-- Copyright (C) 2012 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.
-----------------------------------------------------------------------
package body Gen.Artifacts is
-- ------------------------------
-- After the configuration file is read, processes the node whose root
-- is passed in <b>Node</b> and initializes the <b>Model</b> with the information.
-- ------------------------------
procedure Initialize (Handler : in out Artifact;
Path : in String;
Node : in DOM.Core.Node;
Model : in out Gen.Model.Packages.Model_Definition'Class;
Context : in out Generator'Class) is
pragma Unreferenced (Path, Node, Model, Context);
begin
Handler.Initialized := True;
end Initialize;
-- ------------------------------
-- Check whether this artifact has been initialized.
-- ------------------------------
function Is_Initialized (Handler : in Artifact) return Boolean is
begin
return Handler.Initialized;
end Is_Initialized;
end Gen.Artifacts;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.