CombinedText stringlengths 4 3.42M |
|---|
-- This file is generated by SWIG. Do *not* modify by hand.
--
with llvm;
with Interfaces.C.Strings;
package LLVM_Target.Binding is
LLVMBigEndian : constant := 0;
LLVMLittleEndian : constant := 1;
procedure LLVMInitializeAllTargets;
function LLVMInitializeNativeTarget return Interfaces.C.int;
function LLVMCreateTargetData
(StringRep : in Interfaces.C.Strings.chars_ptr)
return LLVM_Target.LLVMTargetDataRef;
procedure LLVMAddTargetData
(arg_2_1 : in LLVM_Target.LLVMTargetDataRef;
arg_2_2 : in llvm.LLVMPassManagerRef);
function LLVMCopyStringRepOfTargetData
(arg_1 : in LLVM_Target.LLVMTargetDataRef)
return Interfaces.C.Strings.chars_ptr;
function LLVMByteOrder
(arg_1 : in LLVM_Target.LLVMTargetDataRef)
return LLVM_Target.LLVMByteOrdering;
function LLVMPointerSize
(arg_1 : in LLVM_Target.LLVMTargetDataRef)
return Interfaces.C.unsigned;
function LLVMIntPtrType
(arg_1 : in LLVM_Target.LLVMTargetDataRef)
return llvm.LLVMTypeRef;
function LLVMSizeOfTypeInBits
(arg_2_1 : in LLVM_Target.LLVMTargetDataRef;
arg_2_2 : in llvm.LLVMTypeRef)
return Interfaces.C.Extensions.unsigned_long_long;
function LLVMStoreSizeOfType
(arg_2_1 : in LLVM_Target.LLVMTargetDataRef;
arg_2_2 : in llvm.LLVMTypeRef)
return Interfaces.C.Extensions.unsigned_long_long;
function LLVMABISizeOfType
(arg_2_1 : in LLVM_Target.LLVMTargetDataRef;
arg_2_2 : in llvm.LLVMTypeRef)
return Interfaces.C.Extensions.unsigned_long_long;
function LLVMABIAlignmentOfType
(arg_2_1 : in LLVM_Target.LLVMTargetDataRef;
arg_2_2 : in llvm.LLVMTypeRef)
return Interfaces.C.unsigned;
function LLVMCallFrameAlignmentOfType
(arg_2_1 : in LLVM_Target.LLVMTargetDataRef;
arg_2_2 : in llvm.LLVMTypeRef)
return Interfaces.C.unsigned;
function LLVMPreferredAlignmentOfType
(arg_2_1 : in LLVM_Target.LLVMTargetDataRef;
arg_2_2 : in llvm.LLVMTypeRef)
return Interfaces.C.unsigned;
function LLVMPreferredAlignmentOfGlobal
(arg_1 : in LLVM_Target.LLVMTargetDataRef;
GlobalVar : in llvm.LLVMValueRef)
return Interfaces.C.unsigned;
function LLVMElementAtOffset
(arg_1 : in LLVM_Target.LLVMTargetDataRef;
StructTy : in llvm.LLVMTypeRef;
Offset : in Interfaces.C.Extensions.unsigned_long_long)
return Interfaces.C.unsigned;
function LLVMOffsetOfElement
(arg_1 : in LLVM_Target.LLVMTargetDataRef;
StructTy : in llvm.LLVMTypeRef;
Element : in Interfaces.C.unsigned)
return Interfaces.C.Extensions.unsigned_long_long;
procedure LLVMInvalidateStructLayout
(arg_1 : in LLVM_Target.LLVMTargetDataRef;
StructTy : in llvm.LLVMTypeRef);
procedure LLVMDisposeTargetData
(arg_1 : in LLVM_Target.LLVMTargetDataRef);
private
pragma Import
(C,
LLVMInitializeAllTargets,
"Ada_LLVMInitializeAllTargets");
pragma Import
(C,
LLVMInitializeNativeTarget,
"Ada_LLVMInitializeNativeTarget");
pragma Import (C, LLVMCreateTargetData, "Ada_LLVMCreateTargetData");
pragma Import (C, LLVMAddTargetData, "Ada_LLVMAddTargetData");
pragma Import
(C,
LLVMCopyStringRepOfTargetData,
"Ada_LLVMCopyStringRepOfTargetData");
pragma Import (C, LLVMByteOrder, "Ada_LLVMByteOrder");
pragma Import (C, LLVMPointerSize, "Ada_LLVMPointerSize");
pragma Import (C, LLVMIntPtrType, "Ada_LLVMIntPtrType");
pragma Import (C, LLVMSizeOfTypeInBits, "Ada_LLVMSizeOfTypeInBits");
pragma Import (C, LLVMStoreSizeOfType, "Ada_LLVMStoreSizeOfType");
pragma Import (C, LLVMABISizeOfType, "Ada_LLVMABISizeOfType");
pragma Import (C, LLVMABIAlignmentOfType, "Ada_LLVMABIAlignmentOfType");
pragma Import
(C,
LLVMCallFrameAlignmentOfType,
"Ada_LLVMCallFrameAlignmentOfType");
pragma Import
(C,
LLVMPreferredAlignmentOfType,
"Ada_LLVMPreferredAlignmentOfType");
pragma Import
(C,
LLVMPreferredAlignmentOfGlobal,
"Ada_LLVMPreferredAlignmentOfGlobal");
pragma Import (C, LLVMElementAtOffset, "Ada_LLVMElementAtOffset");
pragma Import (C, LLVMOffsetOfElement, "Ada_LLVMOffsetOfElement");
pragma Import
(C,
LLVMInvalidateStructLayout,
"Ada_LLVMInvalidateStructLayout");
pragma Import (C, LLVMDisposeTargetData, "Ada_LLVMDisposeTargetData");
end LLVM_Target.Binding;
|
with Ada.Integer_Text_IO,
Ada.Text_IO,
Constraint_Engine;
use Ada.Integer_Text_IO, Ada.Text_IO;
procedure Example is
package Test_Engine renames Constraint_Engine;
use Test_Engine;
P : Type_Problem;
S : Var_Vector.Vector;
begin
P.Add_Var(Low_Interval => 0,
Top_Interval => 400);
P.Add_Var(Low_Interval => 0,
Top_Interval => 500);
P.Add_Constraint_Var_Multiple(V_All_Position => (1, 2),
Rel => IS_INEQUAL);
P.Add_Constraint_Var(V1_Position => 1,
Rel => IS_MORE,
V2_Position => 2);
P.Add_Constraint_Int(V1_Position => 1,
Rel => IS_MORE,
V => 150);
P := P.Find_Solution;
S := P.Get_Var;
Put("Solution : ");
for Cursor in S.First_Index .. S.Last_Index loop
Put( Integer'Image(S(Cursor).Curr_Solution) & ", ");
end loop;
New_Line;
end Example;
|
with AdaBase;
with Connect;
with Ada.Text_IO;
with AdaBase.Logger.Facility;
procedure Wipe_Out is
package CON renames Connect;
package TIO renames Ada.Text_IO;
package ALF renames AdaBase.Logger.Facility;
numrows : AdaBase.Affected_Rows;
bfast : constant String := "breakfast";
cmd1 : constant String := "CREATE TABLE " & bfast &
" AS SELECT id, fruit FROM fruits";
begin
CON.DR.command_standard_logger (device => ALF.screen, action => ALF.attach);
CON.connect_database;
-- delete breakfast table if it already exists
-- No need to set cascade; it illustrates logging on MySQL (only)
CON.DR.query_drop_table (tables => bfast,
cascade => True,
when_exists => True);
-- create breakfast table
numrows := CON.DR.execute (sql => cmd1);
-- clear contents of breakfast table
CON.DR.query_clear_table (table => bfast);
-- drop breakfast table again (minimal arguments)
CON.DR.query_drop_table (tables => bfast);
CON.DR.commit;
CON.DR.disconnect;
end Wipe_Out;
|
-- Copyright 2017 Jeff Foley. All rights reserved.
-- Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
local json = require("json")
name = "ThreatCrowd"
type = "api"
function start()
setratelimit(10)
end
function vertical(ctx, domain)
local c
local cfg = datasrc_config()
if cfg ~= nil then
c = cfg.credentials
end
local resp
-- Check if the response data is in the graph database
if (cfg ~= nil and cfg.ttl ~= nil and cfg.ttl > 0) then
resp = obtain_response(domain, cfg.ttl)
end
if (resp == nil or resp == "") then
local err
resp, err = request(ctx, {
url=buildurl(domain),
headers={['Content-Type']="application/json"},
})
if (err ~= nil and err ~= "") then
return
end
if (cfg ~= nil and cfg.ttl ~= nil and cfg.ttl > 0) then
cache_response(domain, resp)
end
end
local d = json.decode(resp)
if (d == nil or d.response_code ~= "1" or #(d.subdomains) == 0) then
return
end
for i, sub in pairs(d.subdomains) do
sendnames(ctx, sub)
end
for i, tb in pairs(d.resolutions) do
newaddr(ctx, tb.ip_address, domain)
end
end
function buildurl(domain)
return "https://www.threatcrowd.org/searchApi/v2/domain/report/?domain=" .. domain
end
function sendnames(ctx, content)
local names = find(content, subdomainre)
if names == nil then
return
end
local found = {}
for i, v in pairs(names) do
if found[v] == nil then
newname(ctx, v)
found[v] = true
end
end
end
|
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2019, 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 LSM303AGR; use LSM303AGR;
with MicroBit.Display;
with MicroBit.Display.Symbols;
with MicroBit.Accelerometer;
with MicroBit.Console;
with MicroBit.Time;
use MicroBit;
procedure Main is
Data: All_Axes_Data;
Threshold : constant := 150;
begin
loop
-- Read the accelerometer data
Data := Accelerometer.Data;
-- Print the data on the serial port
Console.Put_Line ("X:" & Data.X'Img & ASCII.HT &
"Y:" & Data.Y'Img & ASCII.HT &
"Z:" & Data.Z'Img);
-- Clear the LED matrix
Display.Clear;
-- Draw a symbol on the LED matrix depending on the orientation of the
-- micro:bit.
if Data.X > Threshold then
Display.Symbols.Left_Arrow;
elsif Data.X < -Threshold then
Display.Symbols.Right_Arrow;
elsif Data.Y > Threshold then
Display.Symbols.Up_Arrow;
elsif Data.Y < -Threshold then
Display.Symbols.Down_Arrow;
else
Display.Symbols.Heart;
end if;
-- Do nothing for 100 milliseconds
Time.Sleep (100);
end loop;
end Main;
|
-- Copyright 2012-2017 Free Software Foundation, Inc.
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
package body IO is
procedure Put_Line (S : String) is
begin
null;
end Put_Line;
end IO;
|
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- S Y S T E M . T A S K _ P R I M I T I V E S .O P E R A T I O N S --
-- --
-- S p e c --
-- --
-- Copyright (C) 2001-2016, AdaCore --
-- --
-- GNARL is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNARL is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- --
-- --
-- --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- GNARL was developed by the GNARL team at Florida State University. --
-- Extensive contributions were provided by Ada Core Technologies, Inc. --
-- --
------------------------------------------------------------------------------
-- This is the version of this package for Ravenscar bare board targets
-- This package contains all the GNULL primitives that interface directly with
-- the underlying OS.
pragma Restrictions (No_Elaboration_Code);
with System.Multiprocessors;
with System.Parameters;
with System.Tasking;
with System.OS_Interface;
package System.Task_Primitives.Operations
with SPARK_Mode => Off is
pragma Preelaborate;
package ST renames System.Tasking;
package OSI renames System.OS_Interface;
Environment_Task : ST.Task_Id := ST.Null_Task;
-- Task ID of the environment task
-- See s-taprop.ads for up to date specs of the following subprograms
procedure Initialize (Environment_Task : ST.Task_Id);
pragma Inline (Initialize);
-- Perform initialization and set up of the environment task for proper
-- operation of the tasking run-time. This must be called once, before any
-- other subprograms of this package are called.
procedure Create_Task
(T : ST.Task_Id;
Wrapper : System.Address;
Stack_Size : System.Parameters.Size_Type;
Priority : ST.Extended_Priority;
Base_CPU : System.Multiprocessors.CPU_Range;
Succeeded : out Boolean);
pragma Inline (Create_Task);
procedure Enter_Task (Self_ID : ST.Task_Id);
pragma Inline (Enter_Task);
procedure Initialize_TCB (Self_ID : ST.Task_Id; Succeeded : out Boolean);
pragma Inline (Initialize_TCB);
function Self return ST.Task_Id;
pragma Inline (Self);
procedure Set_Priority (T : ST.Task_Id; Prio : ST.Extended_Priority);
pragma Inline (Set_Priority);
function Get_Priority (T : ST.Task_Id) return ST.Extended_Priority;
pragma Inline (Get_Priority);
function Get_Affinity
(T : ST.Task_Id) return System.Multiprocessors.CPU_Range;
function Get_CPU (T : ST.Task_Id) return System.Multiprocessors.CPU;
function Get_Thread_Id (T : ST.Task_Id) return OSI.Thread_Id;
-- Return the thread id of the specified task
type Time is new System.OS_Interface.Time;
function Monotonic_Clock return Time;
pragma Inline (Monotonic_Clock);
----------------
-- Extensions --
----------------
procedure Sleep
(Self_ID : ST.Task_Id;
Reason : System.Tasking.Task_States);
pragma Inline (Sleep);
-- The caller should hold no lock when calling this procedure
procedure Delay_Until (Abs_Time : Time);
pragma Inline (Delay_Until);
procedure Wakeup
(T : ST.Task_Id;
Reason : System.Tasking.Task_States);
pragma Inline (Wakeup);
-- The caller should hold no lock when calling this procedure
function Is_Task_Context return Boolean;
pragma Inline (Is_Task_Context);
-- This function returns True if the current execution is in the context
-- of a task, and False if it is an interrupt context.
end System.Task_Primitives.Operations;
|
with Ada.Text_IO, Ada.Unchecked_Deallocation;
use Ada.Text_IO;
package body hetro_stack is
procedure Free is new Ada.Unchecked_Deallocation(hetroStackElem, hetroStackElemPtr);
procedure PushFront(Stack: in out hetroStack; Data: ItemPt) is
Pt : hetroStackElemPtr := new hetroStackElem;
begin
Pt.Data := Data;
Pt.RightPtr := Stack.Top.RightPtr;
Pt.LeftPtr := Stack.Top;
Pt.RightPtr.LeftPtr := Pt;
Pt.LeftPtr.RightPtr := Pt;
Stack.Count := Stack.Count + 1;
end PushFront;
procedure SetHeadNode(Stack: in out hetroStack) is
HeadNode : hetroStackElemPtr := new hetroStackElem;
begin
HeadNode.RightPtr := HeadNode;
HeadNode.LeftPtr := HeadNode;
Stack.Top := HeadNode;
end SetHeadNode;
procedure PushRear(Stack: in out hetroStack; Data: ItemPt ) is
Pt: hetroStackElemPtr := new hetroStackElem;
begin
Pt.Data := Data;
Pt.LeftPtr := Stack.Top.LeftPtr;
Pt.RightPtr := Stack.Top;
Pt.LeftPtr.RightPtr := Pt;
Pt.RightPtr.LeftPtr := Pt;
Stack.Count := Stack.Count + 1;
end PushRear;
function StackSize(Stack: hetroStack) return integer is
begin
return Stack.Count;
end StackSize;
procedure PrintList(List: in hetroStack) is
Pt : hetroStackElemPtr;
begin
Pt := List.Top.RightPtr;
while Pt /= List.Top loop
PrintData(Pt.Data.all);
Pt := Pt.RightPtr;
end loop;
end PrintList;
function RemoveSpecificNode(Stack: in out hetroStack; Data: ItemPt) return ItemPt is
Pt: hetroStackElemPtr;
Item : ItemPt;
begin
Pt := Stack.Top.RightPtr;
while Pt /= Stack.Top loop
if Data.all = Pt.Data.all then
Pt.LeftPtr.RightPtr := Pt.RightPtr;
Pt.RightPtr.LeftPtr := Pt.LeftPtr;
Item := Pt.Data;
Free(Pt);
Stack.Count := Stack.Count - 1;
return Item;
end if;
Pt := Pt.RightPtr;
end loop;
return null;
end RemoveSpecificNode;
end hetro_stack; |
with Ada.Strings.Unbounded;
private with Ada.Containers.Indefinite_Vectors;
generic
with procedure Print_Line(Indention: Natural; Line: String);
package S_Expr is
function "-"(S: String) return Ada.Strings.Unbounded.Unbounded_String
renames Ada.Strings.Unbounded.To_Unbounded_String;
function "+"(U: Ada.Strings.Unbounded.Unbounded_String) return String
renames Ada.Strings.Unbounded.To_String;
type Empty_Data is tagged null record;
subtype Data is Empty_Data'Class;
procedure Print(This: Empty_Data; Indention: Natural);
-- any object form class Data knows how to print itself
-- objects of class data are either List of Data or Atomic
-- atomic objects hold either an integer or a float or a string
type List_Of_Data is new Empty_Data with private;
overriding procedure Print(This: List_Of_Data; Indention: Natural);
function First(This: List_Of_Data) return Data;
function Rest(This: List_Of_Data) return List_Of_Data;
function Empty(This: List_Of_Data) return Boolean;
type Atomic is new Empty_Data with null record;
type Str_Data is new Atomic with record
Value: Ada.Strings.Unbounded.Unbounded_String;
Quoted: Boolean := False;
end record;
overriding procedure Print(This: Str_Data; Indention: Natural);
type Int_Data is new Atomic with record
Value: Integer;
end record;
overriding procedure Print(This: Int_Data; Indention: Natural);
type Flt_Data is new Atomic with record
Value: Float;
end record;
overriding procedure Print(This: Flt_Data; Indention: Natural);
private
package Vectors is new Ada.Containers.Indefinite_Vectors
(Index_Type => Positive,
Element_Type => Data);
type List_Of_Data is new Empty_Data with record
Values: Vectors.Vector;
end record;
end S_Expr;
|
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Ada Modeling Framework --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2011-2012, Vadim Godunko <vgodunko@gmail.com> --
-- All rights reserved. --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions --
-- are met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
with AMF.Internals.UML_Value_Specifications;
with AMF.UML.Dependencies.Collections;
with AMF.UML.Literal_Integers;
with AMF.UML.Named_Elements;
with AMF.UML.Namespaces;
with AMF.UML.Packages.Collections;
with AMF.UML.Parameterable_Elements;
with AMF.UML.String_Expressions;
with AMF.UML.Template_Parameters;
with AMF.UML.Types;
with AMF.Visitors;
package AMF.Internals.UML_Literal_Integers is
type UML_Literal_Integer_Proxy is
limited new AMF.Internals.UML_Value_Specifications.UML_Value_Specification_Proxy
and AMF.UML.Literal_Integers.UML_Literal_Integer with null record;
overriding function Get_Value
(Self : not null access constant UML_Literal_Integer_Proxy)
return Integer;
-- Getter of LiteralInteger::value.
--
-- The specified Integer value.
overriding procedure Set_Value
(Self : not null access UML_Literal_Integer_Proxy;
To : Integer);
-- Setter of LiteralInteger::value.
--
-- The specified Integer value.
overriding function Get_Type
(Self : not null access constant UML_Literal_Integer_Proxy)
return AMF.UML.Types.UML_Type_Access;
-- Getter of TypedElement::type.
--
-- The type of the TypedElement.
-- This information is derived from the return result for this Operation.
overriding procedure Set_Type
(Self : not null access UML_Literal_Integer_Proxy;
To : AMF.UML.Types.UML_Type_Access);
-- Setter of TypedElement::type.
--
-- The type of the TypedElement.
-- This information is derived from the return result for this Operation.
overriding function Get_Client_Dependency
(Self : not null access constant UML_Literal_Integer_Proxy)
return AMF.UML.Dependencies.Collections.Set_Of_UML_Dependency;
-- Getter of NamedElement::clientDependency.
--
-- Indicates the dependencies that reference the client.
overriding function Get_Name_Expression
(Self : not null access constant UML_Literal_Integer_Proxy)
return AMF.UML.String_Expressions.UML_String_Expression_Access;
-- Getter of NamedElement::nameExpression.
--
-- The string expression used to define the name of this named element.
overriding procedure Set_Name_Expression
(Self : not null access UML_Literal_Integer_Proxy;
To : AMF.UML.String_Expressions.UML_String_Expression_Access);
-- Setter of NamedElement::nameExpression.
--
-- The string expression used to define the name of this named element.
overriding function Get_Namespace
(Self : not null access constant UML_Literal_Integer_Proxy)
return AMF.UML.Namespaces.UML_Namespace_Access;
-- Getter of NamedElement::namespace.
--
-- Specifies the namespace that owns the NamedElement.
overriding function Get_Qualified_Name
(Self : not null access constant UML_Literal_Integer_Proxy)
return AMF.Optional_String;
-- Getter of NamedElement::qualifiedName.
--
-- A name which allows the NamedElement to be identified within a
-- hierarchy of nested Namespaces. It is constructed from the names of the
-- containing namespaces starting at the root of the hierarchy and ending
-- with the name of the NamedElement itself.
overriding function Get_Owning_Template_Parameter
(Self : not null access constant UML_Literal_Integer_Proxy)
return AMF.UML.Template_Parameters.UML_Template_Parameter_Access;
-- Getter of ParameterableElement::owningTemplateParameter.
--
-- The formal template parameter that owns this element.
overriding procedure Set_Owning_Template_Parameter
(Self : not null access UML_Literal_Integer_Proxy;
To : AMF.UML.Template_Parameters.UML_Template_Parameter_Access);
-- Setter of ParameterableElement::owningTemplateParameter.
--
-- The formal template parameter that owns this element.
overriding function Get_Template_Parameter
(Self : not null access constant UML_Literal_Integer_Proxy)
return AMF.UML.Template_Parameters.UML_Template_Parameter_Access;
-- Getter of ParameterableElement::templateParameter.
--
-- The template parameter that exposes this element as a formal parameter.
overriding procedure Set_Template_Parameter
(Self : not null access UML_Literal_Integer_Proxy;
To : AMF.UML.Template_Parameters.UML_Template_Parameter_Access);
-- Setter of ParameterableElement::templateParameter.
--
-- The template parameter that exposes this element as a formal parameter.
overriding function Integer_Value
(Self : not null access constant UML_Literal_Integer_Proxy)
return Integer;
-- Operation LiteralInteger::integerValue.
--
-- The query integerValue() gives the value.
overriding function Is_Computable
(Self : not null access constant UML_Literal_Integer_Proxy)
return Boolean;
-- Operation LiteralInteger::isComputable.
--
-- The query isComputable() is redefined to be true.
overriding function Integer_Value
(Self : not null access constant UML_Literal_Integer_Proxy)
return AMF.Optional_Integer;
-- Operation ValueSpecification::integerValue.
--
-- The query integerValue() gives a single Integer value when one can be
-- computed.
overriding function Is_Compatible_With
(Self : not null access constant UML_Literal_Integer_Proxy;
P : AMF.UML.Parameterable_Elements.UML_Parameterable_Element_Access)
return Boolean;
-- Operation ValueSpecification::isCompatibleWith.
--
-- The query isCompatibleWith() determines if this parameterable element
-- is compatible with the specified parameterable element. By default
-- parameterable element P is compatible with parameterable element Q if
-- the kind of P is the same or a subtype as the kind of Q. In addition,
-- for ValueSpecification, the type must be conformant with the type of
-- the specified parameterable element.
overriding function All_Owning_Packages
(Self : not null access constant UML_Literal_Integer_Proxy)
return AMF.UML.Packages.Collections.Set_Of_UML_Package;
-- Operation NamedElement::allOwningPackages.
--
-- The query allOwningPackages() returns all the directly or indirectly
-- owning packages.
overriding function Is_Distinguishable_From
(Self : not null access constant UML_Literal_Integer_Proxy;
N : AMF.UML.Named_Elements.UML_Named_Element_Access;
Ns : AMF.UML.Namespaces.UML_Namespace_Access)
return Boolean;
-- Operation NamedElement::isDistinguishableFrom.
--
-- The query isDistinguishableFrom() determines whether two NamedElements
-- may logically co-exist within a Namespace. By default, two named
-- elements are distinguishable if (a) they have unrelated types or (b)
-- they have related types but different names.
overriding function Namespace
(Self : not null access constant UML_Literal_Integer_Proxy)
return AMF.UML.Namespaces.UML_Namespace_Access;
-- Operation NamedElement::namespace.
--
-- Missing derivation for NamedElement::/namespace : Namespace
overriding function Is_Template_Parameter
(Self : not null access constant UML_Literal_Integer_Proxy)
return Boolean;
-- Operation ParameterableElement::isTemplateParameter.
--
-- The query isTemplateParameter() determines if this parameterable
-- element is exposed as a formal template parameter.
overriding procedure Enter_Element
(Self : not null access constant UML_Literal_Integer_Proxy;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Control : in out AMF.Visitors.Traverse_Control);
-- Dispatch call to corresponding subprogram of visitor interface.
overriding procedure Leave_Element
(Self : not null access constant UML_Literal_Integer_Proxy;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Control : in out AMF.Visitors.Traverse_Control);
-- Dispatch call to corresponding subprogram of visitor interface.
overriding procedure Visit_Element
(Self : not null access constant UML_Literal_Integer_Proxy;
Iterator : in out AMF.Visitors.Abstract_Iterator'Class;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Control : in out AMF.Visitors.Traverse_Control);
-- Dispatch call to corresponding subprogram of iterator interface.
end AMF.Internals.UML_Literal_Integers;
|
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Ada Modeling Framework --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2011-2012, Vadim Godunko <vgodunko@gmail.com> --
-- All rights reserved. --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions --
-- are met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
-- This file is generated, don't edit it.
------------------------------------------------------------------------------
with AMF.Elements.Generic_Hash;
function AMF.UML.Interaction_Uses.Hash is
new AMF.Elements.Generic_Hash (UML_Interaction_Use, UML_Interaction_Use_Access);
|
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- S Y S T E M . S T R I N G S . S T R E A M _ O P S --
-- --
-- B o d y --
-- --
-- Copyright (C) 2008-2013, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
pragma Compiler_Unit_Warning;
with Ada.Streams; use Ada.Streams;
with Ada.Streams.Stream_IO; use Ada.Streams.Stream_IO;
with Ada.Unchecked_Conversion;
with System; use System;
with System.Storage_Elements; use System.Storage_Elements;
with System.Stream_Attributes;
package body System.Strings.Stream_Ops is
-- The following type describes the low-level IO mechanism used in package
-- Stream_Ops_Internal.
type IO_Kind is (Byte_IO, Block_IO);
-- The following package provides an IO framework for strings. Depending
-- on the version of System.Stream_Attributes as well as the size of
-- formal parameter Element_Type, the package will either utilize block
-- IO or element-by-element IO.
generic
type Element_Type is private;
type Index_Type is range <>;
type Array_Type is array (Index_Type range <>) of Element_Type;
package Stream_Ops_Internal is
function Input
(Strm : access Root_Stream_Type'Class;
IO : IO_Kind) return Array_Type;
procedure Output
(Strm : access Root_Stream_Type'Class;
Item : Array_Type;
IO : IO_Kind);
procedure Read
(Strm : access Root_Stream_Type'Class;
Item : out Array_Type;
IO : IO_Kind);
procedure Write
(Strm : access Root_Stream_Type'Class;
Item : Array_Type;
IO : IO_Kind);
end Stream_Ops_Internal;
-------------------------
-- Stream_Ops_Internal --
-------------------------
package body Stream_Ops_Internal is
-- The following value represents the number of BITS allocated for the
-- default block used in string IO. The sizes of all other types are
-- calculated relative to this value.
Default_Block_Size : constant := 512 * 8;
-- Shorthand notation for stream element and element type sizes
ET_Size : constant Integer := Element_Type'Size;
SE_Size : constant Integer := Stream_Element'Size;
-- The following constants describe the number of array elements or
-- stream elements that can fit into a default block.
AE_In_Default_Block : constant Index_Type :=
Index_Type (Default_Block_Size / ET_Size);
-- Number of array elements in a default block
SE_In_Default_Block : constant Integer := Default_Block_Size / SE_Size;
-- Number of storage elements in a default block
-- Buffer types
subtype Default_Block is Stream_Element_Array
(1 .. Stream_Element_Offset (SE_In_Default_Block));
subtype Array_Block is
Array_Type (Index_Type range 1 .. AE_In_Default_Block);
-- Conversions to and from Default_Block
function To_Default_Block is
new Ada.Unchecked_Conversion (Array_Block, Default_Block);
function To_Array_Block is
new Ada.Unchecked_Conversion (Default_Block, Array_Block);
-----------
-- Input --
-----------
function Input
(Strm : access Root_Stream_Type'Class;
IO : IO_Kind) return Array_Type
is
begin
if Strm = null then
raise Constraint_Error;
end if;
declare
Low : Index_Type;
High : Index_Type;
begin
-- Read the bounds of the string
Index_Type'Read (Strm, Low);
Index_Type'Read (Strm, High);
-- Read the character content of the string
declare
Item : Array_Type (Low .. High);
begin
Read (Strm, Item, IO);
return Item;
end;
end;
end Input;
------------
-- Output --
------------
procedure Output
(Strm : access Root_Stream_Type'Class;
Item : Array_Type;
IO : IO_Kind)
is
begin
if Strm = null then
raise Constraint_Error;
end if;
-- Write the bounds of the string
Index_Type'Write (Strm, Item'First);
Index_Type'Write (Strm, Item'Last);
-- Write the character content of the string
Write (Strm, Item, IO);
end Output;
----------
-- Read --
----------
procedure Read
(Strm : access Root_Stream_Type'Class;
Item : out Array_Type;
IO : IO_Kind)
is
begin
if Strm = null then
raise Constraint_Error;
end if;
-- Nothing to do if the desired string is empty
if Item'Length = 0 then
return;
end if;
-- Block IO
if IO = Block_IO and then Stream_Attributes.Block_IO_OK then
declare
-- Determine the size in BITS of the block necessary to contain
-- the whole string.
Block_Size : constant Natural :=
Integer (Item'Last - Item'First + 1) * ET_Size;
-- Item can be larger than what the default block can store,
-- determine the number of whole reads necessary to read the
-- string.
Blocks : constant Natural := Block_Size / Default_Block_Size;
-- The size of Item may not be a multiple of the default block
-- size, determine the size of the remaining chunk in BITS.
Rem_Size : constant Natural :=
Block_Size mod Default_Block_Size;
-- String indexes
Low : Index_Type := Item'First;
High : Index_Type := Low + AE_In_Default_Block - 1;
-- End of stream error detection
Last : Stream_Element_Offset := 0;
Sum : Stream_Element_Offset := 0;
begin
-- Step 1: If the string is too large, read in individual
-- chunks the size of the default block.
if Blocks > 0 then
declare
Block : Default_Block;
begin
for Counter in 1 .. Blocks loop
Read (Strm.all, Block, Last);
Item (Low .. High) := To_Array_Block (Block);
Low := High + 1;
High := Low + AE_In_Default_Block - 1;
Sum := Sum + Last;
Last := 0;
end loop;
end;
end if;
-- Step 2: Read in any remaining elements
if Rem_Size > 0 then
declare
subtype Rem_Block is Stream_Element_Array
(1 .. Stream_Element_Offset (Rem_Size / SE_Size));
subtype Rem_Array_Block is
Array_Type (Index_Type range
1 .. Index_Type (Rem_Size / ET_Size));
function To_Rem_Array_Block is new
Ada.Unchecked_Conversion (Rem_Block, Rem_Array_Block);
Block : Rem_Block;
begin
Read (Strm.all, Block, Last);
Item (Low .. Item'Last) := To_Rem_Array_Block (Block);
Sum := Sum + Last;
end;
end if;
-- Step 3: Potential error detection. The sum of all the
-- chunks is less than we initially wanted to read. In other
-- words, the stream does not contain enough elements to fully
-- populate Item.
if (Integer (Sum) * SE_Size) / ET_Size < Item'Length then
raise End_Error;
end if;
end;
-- Byte IO
else
declare
E : Element_Type;
begin
for Index in Item'First .. Item'Last loop
Element_Type'Read (Strm, E);
Item (Index) := E;
end loop;
end;
end if;
end Read;
-----------
-- Write --
-----------
procedure Write
(Strm : access Root_Stream_Type'Class;
Item : Array_Type;
IO : IO_Kind)
is
begin
if Strm = null then
raise Constraint_Error;
end if;
-- Nothing to do if the input string is empty
if Item'Length = 0 then
return;
end if;
-- Block IO
if IO = Block_IO and then Stream_Attributes.Block_IO_OK then
declare
-- Determine the size in BITS of the block necessary to contain
-- the whole string.
Block_Size : constant Natural := Item'Length * ET_Size;
-- Item can be larger than what the default block can store,
-- determine the number of whole writes necessary to output the
-- string.
Blocks : constant Natural := Block_Size / Default_Block_Size;
-- The size of Item may not be a multiple of the default block
-- size, determine the size of the remaining chunk.
Rem_Size : constant Natural :=
Block_Size mod Default_Block_Size;
-- String indexes
Low : Index_Type := Item'First;
High : Index_Type := Low + AE_In_Default_Block - 1;
begin
-- Step 1: If the string is too large, write out individual
-- chunks the size of the default block.
for Counter in 1 .. Blocks loop
Write (Strm.all, To_Default_Block (Item (Low .. High)));
Low := High + 1;
High := Low + AE_In_Default_Block - 1;
end loop;
-- Step 2: Write out any remaining elements
if Rem_Size > 0 then
declare
subtype Rem_Block is Stream_Element_Array
(1 .. Stream_Element_Offset (Rem_Size / SE_Size));
subtype Rem_Array_Block is
Array_Type (Index_Type range
1 .. Index_Type (Rem_Size / ET_Size));
function To_Rem_Block is new
Ada.Unchecked_Conversion (Rem_Array_Block, Rem_Block);
begin
Write (Strm.all, To_Rem_Block (Item (Low .. Item'Last)));
end;
end if;
end;
-- Byte IO
else
for Index in Item'First .. Item'Last loop
Element_Type'Write (Strm, Item (Index));
end loop;
end if;
end Write;
end Stream_Ops_Internal;
-- Specific instantiations for all Ada array types handled
package Storage_Array_Ops is
new Stream_Ops_Internal
(Element_Type => Storage_Element,
Index_Type => Storage_Offset,
Array_Type => Storage_Array);
package Stream_Element_Array_Ops is
new Stream_Ops_Internal
(Element_Type => Stream_Element,
Index_Type => Stream_Element_Offset,
Array_Type => Stream_Element_Array);
package String_Ops is
new Stream_Ops_Internal
(Element_Type => Character,
Index_Type => Positive,
Array_Type => String);
package Wide_String_Ops is
new Stream_Ops_Internal
(Element_Type => Wide_Character,
Index_Type => Positive,
Array_Type => Wide_String);
package Wide_Wide_String_Ops is
new Stream_Ops_Internal
(Element_Type => Wide_Wide_Character,
Index_Type => Positive,
Array_Type => Wide_Wide_String);
-------------------------
-- Storage_Array_Input --
-------------------------
function Storage_Array_Input
(Strm : access Ada.Streams.Root_Stream_Type'Class) return Storage_Array
is
begin
return Storage_Array_Ops.Input (Strm, Byte_IO);
end Storage_Array_Input;
--------------------------------
-- Storage_Array_Input_Blk_IO --
--------------------------------
function Storage_Array_Input_Blk_IO
(Strm : access Ada.Streams.Root_Stream_Type'Class) return Storage_Array
is
begin
return Storage_Array_Ops.Input (Strm, Block_IO);
end Storage_Array_Input_Blk_IO;
--------------------------
-- Storage_Array_Output --
--------------------------
procedure Storage_Array_Output
(Strm : access Ada.Streams.Root_Stream_Type'Class;
Item : Storage_Array)
is
begin
Storage_Array_Ops.Output (Strm, Item, Byte_IO);
end Storage_Array_Output;
---------------------------------
-- Storage_Array_Output_Blk_IO --
---------------------------------
procedure Storage_Array_Output_Blk_IO
(Strm : access Ada.Streams.Root_Stream_Type'Class;
Item : Storage_Array)
is
begin
Storage_Array_Ops.Output (Strm, Item, Block_IO);
end Storage_Array_Output_Blk_IO;
------------------------
-- Storage_Array_Read --
------------------------
procedure Storage_Array_Read
(Strm : access Ada.Streams.Root_Stream_Type'Class;
Item : out Storage_Array)
is
begin
Storage_Array_Ops.Read (Strm, Item, Byte_IO);
end Storage_Array_Read;
-------------------------------
-- Storage_Array_Read_Blk_IO --
-------------------------------
procedure Storage_Array_Read_Blk_IO
(Strm : access Ada.Streams.Root_Stream_Type'Class;
Item : out Storage_Array)
is
begin
Storage_Array_Ops.Read (Strm, Item, Block_IO);
end Storage_Array_Read_Blk_IO;
-------------------------
-- Storage_Array_Write --
-------------------------
procedure Storage_Array_Write
(Strm : access Ada.Streams.Root_Stream_Type'Class;
Item : Storage_Array)
is
begin
Storage_Array_Ops.Write (Strm, Item, Byte_IO);
end Storage_Array_Write;
--------------------------------
-- Storage_Array_Write_Blk_IO --
--------------------------------
procedure Storage_Array_Write_Blk_IO
(Strm : access Ada.Streams.Root_Stream_Type'Class;
Item : Storage_Array)
is
begin
Storage_Array_Ops.Write (Strm, Item, Block_IO);
end Storage_Array_Write_Blk_IO;
--------------------------------
-- Stream_Element_Array_Input --
--------------------------------
function Stream_Element_Array_Input
(Strm : access Ada.Streams.Root_Stream_Type'Class)
return Stream_Element_Array
is
begin
return Stream_Element_Array_Ops.Input (Strm, Byte_IO);
end Stream_Element_Array_Input;
---------------------------------------
-- Stream_Element_Array_Input_Blk_IO --
---------------------------------------
function Stream_Element_Array_Input_Blk_IO
(Strm : access Ada.Streams.Root_Stream_Type'Class)
return Stream_Element_Array
is
begin
return Stream_Element_Array_Ops.Input (Strm, Block_IO);
end Stream_Element_Array_Input_Blk_IO;
---------------------------------
-- Stream_Element_Array_Output --
---------------------------------
procedure Stream_Element_Array_Output
(Strm : access Ada.Streams.Root_Stream_Type'Class;
Item : Stream_Element_Array)
is
begin
Stream_Element_Array_Ops.Output (Strm, Item, Byte_IO);
end Stream_Element_Array_Output;
----------------------------------------
-- Stream_Element_Array_Output_Blk_IO --
----------------------------------------
procedure Stream_Element_Array_Output_Blk_IO
(Strm : access Ada.Streams.Root_Stream_Type'Class;
Item : Stream_Element_Array)
is
begin
Stream_Element_Array_Ops.Output (Strm, Item, Block_IO);
end Stream_Element_Array_Output_Blk_IO;
-------------------------------
-- Stream_Element_Array_Read --
-------------------------------
procedure Stream_Element_Array_Read
(Strm : access Ada.Streams.Root_Stream_Type'Class;
Item : out Stream_Element_Array)
is
begin
Stream_Element_Array_Ops.Read (Strm, Item, Byte_IO);
end Stream_Element_Array_Read;
--------------------------------------
-- Stream_Element_Array_Read_Blk_IO --
--------------------------------------
procedure Stream_Element_Array_Read_Blk_IO
(Strm : access Ada.Streams.Root_Stream_Type'Class;
Item : out Stream_Element_Array)
is
begin
Stream_Element_Array_Ops.Read (Strm, Item, Block_IO);
end Stream_Element_Array_Read_Blk_IO;
--------------------------------
-- Stream_Element_Array_Write --
--------------------------------
procedure Stream_Element_Array_Write
(Strm : access Ada.Streams.Root_Stream_Type'Class;
Item : Stream_Element_Array)
is
begin
Stream_Element_Array_Ops.Write (Strm, Item, Byte_IO);
end Stream_Element_Array_Write;
---------------------------------------
-- Stream_Element_Array_Write_Blk_IO --
---------------------------------------
procedure Stream_Element_Array_Write_Blk_IO
(Strm : access Ada.Streams.Root_Stream_Type'Class;
Item : Stream_Element_Array)
is
begin
Stream_Element_Array_Ops.Write (Strm, Item, Block_IO);
end Stream_Element_Array_Write_Blk_IO;
------------------
-- String_Input --
------------------
function String_Input
(Strm : access Ada.Streams.Root_Stream_Type'Class) return String
is
begin
return String_Ops.Input (Strm, Byte_IO);
end String_Input;
-------------------------
-- String_Input_Blk_IO --
-------------------------
function String_Input_Blk_IO
(Strm : access Ada.Streams.Root_Stream_Type'Class) return String
is
begin
return String_Ops.Input (Strm, Block_IO);
end String_Input_Blk_IO;
-------------------
-- String_Output --
-------------------
procedure String_Output
(Strm : access Ada.Streams.Root_Stream_Type'Class;
Item : String)
is
begin
String_Ops.Output (Strm, Item, Byte_IO);
end String_Output;
--------------------------
-- String_Output_Blk_IO --
--------------------------
procedure String_Output_Blk_IO
(Strm : access Ada.Streams.Root_Stream_Type'Class;
Item : String)
is
begin
String_Ops.Output (Strm, Item, Block_IO);
end String_Output_Blk_IO;
-----------------
-- String_Read --
-----------------
procedure String_Read
(Strm : access Ada.Streams.Root_Stream_Type'Class;
Item : out String)
is
begin
String_Ops.Read (Strm, Item, Byte_IO);
end String_Read;
------------------------
-- String_Read_Blk_IO --
------------------------
procedure String_Read_Blk_IO
(Strm : access Ada.Streams.Root_Stream_Type'Class;
Item : out String)
is
begin
String_Ops.Read (Strm, Item, Block_IO);
end String_Read_Blk_IO;
------------------
-- String_Write --
------------------
procedure String_Write
(Strm : access Ada.Streams.Root_Stream_Type'Class;
Item : String)
is
begin
String_Ops.Write (Strm, Item, Byte_IO);
end String_Write;
-------------------------
-- String_Write_Blk_IO --
-------------------------
procedure String_Write_Blk_IO
(Strm : access Ada.Streams.Root_Stream_Type'Class;
Item : String)
is
begin
String_Ops.Write (Strm, Item, Block_IO);
end String_Write_Blk_IO;
-----------------------
-- Wide_String_Input --
-----------------------
function Wide_String_Input
(Strm : access Ada.Streams.Root_Stream_Type'Class) return Wide_String
is
begin
return Wide_String_Ops.Input (Strm, Byte_IO);
end Wide_String_Input;
------------------------------
-- Wide_String_Input_Blk_IO --
------------------------------
function Wide_String_Input_Blk_IO
(Strm : access Ada.Streams.Root_Stream_Type'Class) return Wide_String
is
begin
return Wide_String_Ops.Input (Strm, Block_IO);
end Wide_String_Input_Blk_IO;
------------------------
-- Wide_String_Output --
------------------------
procedure Wide_String_Output
(Strm : access Ada.Streams.Root_Stream_Type'Class;
Item : Wide_String)
is
begin
Wide_String_Ops.Output (Strm, Item, Byte_IO);
end Wide_String_Output;
-------------------------------
-- Wide_String_Output_Blk_IO --
-------------------------------
procedure Wide_String_Output_Blk_IO
(Strm : access Ada.Streams.Root_Stream_Type'Class;
Item : Wide_String)
is
begin
Wide_String_Ops.Output (Strm, Item, Block_IO);
end Wide_String_Output_Blk_IO;
----------------------
-- Wide_String_Read --
----------------------
procedure Wide_String_Read
(Strm : access Ada.Streams.Root_Stream_Type'Class;
Item : out Wide_String)
is
begin
Wide_String_Ops.Read (Strm, Item, Byte_IO);
end Wide_String_Read;
-----------------------------
-- Wide_String_Read_Blk_IO --
-----------------------------
procedure Wide_String_Read_Blk_IO
(Strm : access Ada.Streams.Root_Stream_Type'Class;
Item : out Wide_String)
is
begin
Wide_String_Ops.Read (Strm, Item, Block_IO);
end Wide_String_Read_Blk_IO;
-----------------------
-- Wide_String_Write --
-----------------------
procedure Wide_String_Write
(Strm : access Ada.Streams.Root_Stream_Type'Class;
Item : Wide_String)
is
begin
Wide_String_Ops.Write (Strm, Item, Byte_IO);
end Wide_String_Write;
------------------------------
-- Wide_String_Write_Blk_IO --
------------------------------
procedure Wide_String_Write_Blk_IO
(Strm : access Ada.Streams.Root_Stream_Type'Class;
Item : Wide_String)
is
begin
Wide_String_Ops.Write (Strm, Item, Block_IO);
end Wide_String_Write_Blk_IO;
----------------------------
-- Wide_Wide_String_Input --
----------------------------
function Wide_Wide_String_Input
(Strm : access Ada.Streams.Root_Stream_Type'Class) return Wide_Wide_String
is
begin
return Wide_Wide_String_Ops.Input (Strm, Byte_IO);
end Wide_Wide_String_Input;
-----------------------------------
-- Wide_Wide_String_Input_Blk_IO --
-----------------------------------
function Wide_Wide_String_Input_Blk_IO
(Strm : access Ada.Streams.Root_Stream_Type'Class) return Wide_Wide_String
is
begin
return Wide_Wide_String_Ops.Input (Strm, Block_IO);
end Wide_Wide_String_Input_Blk_IO;
-----------------------------
-- Wide_Wide_String_Output --
-----------------------------
procedure Wide_Wide_String_Output
(Strm : access Ada.Streams.Root_Stream_Type'Class;
Item : Wide_Wide_String)
is
begin
Wide_Wide_String_Ops.Output (Strm, Item, Byte_IO);
end Wide_Wide_String_Output;
------------------------------------
-- Wide_Wide_String_Output_Blk_IO --
------------------------------------
procedure Wide_Wide_String_Output_Blk_IO
(Strm : access Ada.Streams.Root_Stream_Type'Class;
Item : Wide_Wide_String)
is
begin
Wide_Wide_String_Ops.Output (Strm, Item, Block_IO);
end Wide_Wide_String_Output_Blk_IO;
---------------------------
-- Wide_Wide_String_Read --
---------------------------
procedure Wide_Wide_String_Read
(Strm : access Ada.Streams.Root_Stream_Type'Class;
Item : out Wide_Wide_String)
is
begin
Wide_Wide_String_Ops.Read (Strm, Item, Byte_IO);
end Wide_Wide_String_Read;
----------------------------------
-- Wide_Wide_String_Read_Blk_IO --
----------------------------------
procedure Wide_Wide_String_Read_Blk_IO
(Strm : access Ada.Streams.Root_Stream_Type'Class;
Item : out Wide_Wide_String)
is
begin
Wide_Wide_String_Ops.Read (Strm, Item, Block_IO);
end Wide_Wide_String_Read_Blk_IO;
----------------------------
-- Wide_Wide_String_Write --
----------------------------
procedure Wide_Wide_String_Write
(Strm : access Ada.Streams.Root_Stream_Type'Class;
Item : Wide_Wide_String)
is
begin
Wide_Wide_String_Ops.Write (Strm, Item, Byte_IO);
end Wide_Wide_String_Write;
-----------------------------------
-- Wide_Wide_String_Write_Blk_IO --
-----------------------------------
procedure Wide_Wide_String_Write_Blk_IO
(Strm : access Ada.Streams.Root_Stream_Type'Class;
Item : Wide_Wide_String)
is
begin
Wide_Wide_String_Ops.Write (Strm, Item, Block_IO);
end Wide_Wide_String_Write_Blk_IO;
end System.Strings.Stream_Ops;
|
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- F R O N T E N D --
-- --
-- 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. See the GNU General Public License --
-- for more details. You should have received a copy of the GNU General --
-- Public License distributed with GNAT; see file COPYING3. If not, go to --
-- http://www.gnu.org/licenses for a complete copy of the license. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
with System.Strings; use System.Strings;
with Atree; use Atree;
with Checks;
with CStand;
with Debug; use Debug;
with Elists;
with Exp_Dbug;
with Exp_Unst;
with Fmap;
with Fname.UF;
with Ghost; use Ghost;
with Inline; use Inline;
with Lib; use Lib;
with Lib.Load; use Lib.Load;
with Lib.Xref; use Lib.Xref;
with Live; use Live;
with Namet; use Namet;
with Nlists; use Nlists;
with Opt; use Opt;
with Osint;
with Par;
with Prep;
with Prepcomp;
with Restrict; use Restrict;
with Rident; use Rident;
with Rtsfind; use Rtsfind;
with Snames; use Snames;
with Sprint;
with Scn; use Scn;
with Sem; use Sem;
with Sem_Aux;
with Sem_Ch8; use Sem_Ch8;
with Sem_SCIL;
with Sem_Elab; use Sem_Elab;
with Sem_Prag; use Sem_Prag;
with Sem_Warn; use Sem_Warn;
with Sinfo; use Sinfo;
with Sinput; use Sinput;
with Sinput.L; use Sinput.L;
with SCIL_LL; use SCIL_LL;
with Tbuild; use Tbuild;
with Types; use Types;
procedure Frontend is
Config_Pragmas : List_Id;
-- Gather configuration pragmas
begin
-- Carry out package initializations. These are initializations which might
-- logically be performed at elaboration time, were it not for the fact
-- that we may be doing things more than once in the big loop over files.
-- Like elaboration, the order in which these calls are made is in some
-- cases important. For example, Lib cannot be initialized before Namet,
-- since it uses names table entries.
Rtsfind.Initialize;
Nlists.Initialize;
Elists.Initialize;
Lib.Load.Initialize;
Sem_Aux.Initialize;
Sem_Ch8.Initialize;
Sem_Prag.Initialize;
Fname.UF.Initialize;
Checks.Initialize;
Sem_Warn.Initialize;
Prep.Initialize;
if Generate_SCIL then
SCIL_LL.Initialize;
end if;
-- Create package Standard
CStand.Create_Standard;
-- Check possible symbol definitions specified by -gnateD switches
Prepcomp.Process_Command_Line_Symbol_Definitions;
-- If -gnatep= was specified, parse the preprocessing data file
if Preprocessing_Data_File /= null then
Name_Len := Preprocessing_Data_File'Length;
Name_Buffer (1 .. Name_Len) := Preprocessing_Data_File.all;
Prepcomp.Parse_Preprocessing_Data_File (Name_Find);
-- Otherwise, check if there were preprocessing symbols on the command
-- line and set preprocessing if there are.
else
Prepcomp.Check_Symbols;
end if;
-- We set Parsing_Main_Extended_Source true here to cover processing of all
-- the configuration pragma files, as well as the main source unit itself.
Parsing_Main_Extended_Source := True;
-- Now that the preprocessing situation is established, we are able to
-- load the main source (this is no longer done by Lib.Load.Initialize).
Lib.Load.Load_Main_Source;
-- Return immediately if the main source could not be found
if Sinput.Main_Source_File = No_Source_File then
return;
end if;
-- Read and process configuration pragma files if present
declare
Save_Style_Check : constant Boolean := Opt.Style_Check;
-- Save style check mode so it can be restored later
Source_Config_File : Source_File_Index;
-- Source reference for -gnatec configuration file
Prag : Node_Id;
Temp_File : Boolean;
begin
-- We always analyze config files with style checks off, since we
-- don't want a miscellaneous gnat.adc that is around to discombobulate
-- intended -gnatg or -gnaty compilations. We also disconnect checking
-- for maximum line length.
Opt.Style_Check := False;
Style_Check := False;
-- Capture current suppress options, which may get modified
Scope_Suppress := Opt.Suppress_Options;
-- First deal with gnat.adc file
if Opt.Config_File then
Name_Buffer (1 .. 8) := "gnat.adc";
Name_Len := 8;
Source_gnat_adc := Load_Config_File (Name_Enter);
-- Case of gnat.adc file present
if Source_gnat_adc /= No_Source_File then
-- Parse the gnat.adc file for configuration pragmas
Initialize_Scanner (No_Unit, Source_gnat_adc);
Config_Pragmas := Par (Configuration_Pragmas => True);
-- We unconditionally add a compilation dependency for gnat.adc
-- so that if it changes, we force a recompilation. This is a
-- fairly recent (2014-03-28) change.
Prepcomp.Add_Dependency (Source_gnat_adc);
-- Case of no gnat.adc file present
else
Config_Pragmas := Empty_List;
end if;
else
Config_Pragmas := Empty_List;
end if;
-- Now deal with specified config pragmas files if there are any
if Opt.Config_File_Names /= null then
-- Loop through config pragmas files
for Index in Opt.Config_File_Names'Range loop
-- See if extension is .TMP/.tmp indicating a temporary config
-- file (which we ignore from the dependency point of view).
Name_Len := Config_File_Names (Index)'Length;
Name_Buffer (1 .. Name_Len) := Config_File_Names (Index).all;
Temp_File :=
Name_Len > 4
and then
(Name_Buffer (Name_Len - 3 .. Name_Len) = ".TMP"
or else
Name_Buffer (Name_Len - 3 .. Name_Len) = ".tmp");
-- Load the file, error if we did not find it
Source_Config_File := Load_Config_File (Name_Enter);
if Source_Config_File = No_Source_File then
Osint.Fail
("cannot find configuration pragmas file "
& Config_File_Names (Index).all);
-- If we did find the file, and it is not a temporary file, then
-- we unconditionally add a compilation dependency for it so
-- that if it changes, we force a recompilation. This is a
-- fairly recent (2014-03-28) change.
elsif not Temp_File then
Prepcomp.Add_Dependency (Source_Config_File);
end if;
-- Parse the config pragmas file, and accumulate results
Initialize_Scanner (No_Unit, Source_Config_File);
Append_List_To
(Config_Pragmas, Par (Configuration_Pragmas => True));
end loop;
end if;
-- Now analyze all pragmas except those whose analysis must be
-- deferred till after the main unit is analyzed.
if Config_Pragmas /= Error_List
and then Operating_Mode /= Check_Syntax
then
Prag := First (Config_Pragmas);
while Present (Prag) loop
if not Delay_Config_Pragma_Analyze (Prag) then
Analyze_Pragma (Prag);
end if;
Next (Prag);
end loop;
end if;
-- Restore style check, but if config file turned on checks, leave on
Opt.Style_Check := Save_Style_Check or Style_Check;
-- Capture any modifications to suppress options from config pragmas
Opt.Suppress_Options := Scope_Suppress;
end;
-- If a target dependency info file has been read through switch -gnateT=,
-- add it to the dependencies.
if Target_Dependent_Info_Read_Name /= null then
declare
Index : Source_File_Index;
begin
Name_Len := 0;
Add_Str_To_Name_Buffer (Target_Dependent_Info_Read_Name.all);
Index := Load_Config_File (Name_Enter);
Prepcomp.Add_Dependency (Index);
end;
end if;
-- This is where we can capture the value of the compilation unit specific
-- restrictions that have been set by the config pragma files (or from
-- Targparm), for later restoration when processing e.g. subunits.
Save_Config_Cunit_Boolean_Restrictions;
-- If there was a -gnatem switch, initialize the mappings of unit names to
-- file names and of file names to path names from the mapping file.
if Mapping_File_Name /= null then
Fmap.Initialize (Mapping_File_Name.all);
end if;
-- Adjust Optimize_Alignment mode from debug switches if necessary
if Debug_Flag_Dot_SS then
Optimize_Alignment := 'S';
elsif Debug_Flag_Dot_TT then
Optimize_Alignment := 'T';
end if;
-- We have now processed the command line switches, and the configuration
-- pragma files, so this is the point at which we want to capture the
-- values of the configuration switches (see Opt for further details).
Opt.Register_Opt_Config_Switches;
-- Check for file which contains No_Body pragma
if Source_File_Is_No_Body (Source_Index (Main_Unit)) then
Change_Main_Unit_To_Spec;
end if;
-- Initialize the scanner. Note that we do this after the call to
-- Create_Standard, which uses the scanner in its processing of
-- floating-point bounds.
Initialize_Scanner (Main_Unit, Source_Index (Main_Unit));
-- Here we call the parser to parse the compilation unit (or units in
-- the check syntax mode, but in that case we won't go on to the
-- semantics in any case).
Discard_List (Par (Configuration_Pragmas => False));
Parsing_Main_Extended_Source := False;
-- The main unit is now loaded, and subunits of it can be loaded,
-- without reporting spurious loading circularities.
Set_Loading (Main_Unit, False);
-- Now that the main unit is installed, we can complete the analysis
-- of the pragmas in gnat.adc and the configuration file, that require
-- a context for their semantic processing.
if Config_Pragmas /= Error_List
and then Operating_Mode /= Check_Syntax
-- Do not attempt to process deferred configuration pragmas if the main
-- unit failed to load, to avoid cascaded inconsistencies that can lead
-- to a compiler crash.
and then Fatal_Error (Main_Unit) /= Error_Detected
then
-- Pragmas that require some semantic activity, such as Interrupt_State,
-- cannot be processed until the main unit is installed, because they
-- require a compilation unit on which to attach with_clauses, etc. So
-- analyze them now.
declare
Prag : Node_Id;
begin
Prag := First (Config_Pragmas);
while Present (Prag) loop
-- Guard against the case where a configuration pragma may be
-- split into multiple pragmas and the original rewritten as a
-- null statement.
if Nkind (Prag) = N_Pragma
and then Delay_Config_Pragma_Analyze (Prag)
then
Analyze_Pragma (Prag);
end if;
Next (Prag);
end loop;
end;
end if;
-- If we have restriction No_Exception_Propagation, and we did not have an
-- explicit switch turning off Warn_On_Non_Local_Exception, then turn on
-- this warning by default if we have encountered an exception handler.
if Restriction_Check_Required (No_Exception_Propagation)
and then not No_Warn_On_Non_Local_Exception
and then Exception_Handler_Encountered
then
Warn_On_Non_Local_Exception := True;
end if;
-- Now on to the semantics. Skip if in syntax only mode
if Operating_Mode /= Check_Syntax then
-- Install the configuration pragmas in the tree
Set_Config_Pragmas (Aux_Decls_Node (Cunit (Main_Unit)), Config_Pragmas);
-- Following steps are skipped if we had a fatal error during parsing
if Fatal_Error (Main_Unit) /= Error_Detected then
-- Reset Operating_Mode to Check_Semantics for subunits. We cannot
-- actually generate code for subunits, so we suppress expansion.
-- This also corrects certain problems that occur if we try to
-- incorporate subunits at a lower level.
if Operating_Mode = Generate_Code
and then Nkind (Unit (Cunit (Main_Unit))) = N_Subunit
then
Operating_Mode := Check_Semantics;
end if;
-- Analyze (and possibly expand) main unit
Scope_Suppress := Suppress_Options;
Semantics (Cunit (Main_Unit));
-- Cleanup processing after completing main analysis
-- Comment needed for ASIS mode test and GNATprove mode test???
pragma Assert
(Operating_Mode = Generate_Code
or else Operating_Mode = Check_Semantics);
if Operating_Mode = Generate_Code
or else (ASIS_Mode or GNATprove_Mode)
then
Instantiate_Bodies;
end if;
-- Analyze inlined bodies and check elaboration rules in GNATprove
-- mode as well as during compilation.
if Operating_Mode = Generate_Code or else GNATprove_Mode then
if Inline_Processing_Required then
Analyze_Inlined_Bodies;
end if;
-- Remove entities from program that do not have any execution
-- time references.
if Debug_Flag_UU then
Collect_Garbage_Entities;
end if;
Check_Elab_Calls;
-- Remove any ignored Ghost code as it must not appear in the
-- executable.
Remove_Ignored_Ghost_Code;
end if;
-- At this stage we can unnest subprogram bodies if required
Exp_Unst.Unnest_Subprograms (Cunit (Main_Unit));
-- List library units if requested
if List_Units then
Lib.List;
end if;
-- Output waiting warning messages
Lib.Xref.Process_Deferred_References;
Sem_Warn.Output_Non_Modified_In_Out_Warnings;
Sem_Warn.Output_Unreferenced_Messages;
Sem_Warn.Check_Unused_Withs;
Sem_Warn.Output_Unused_Warnings_Off_Warnings;
end if;
end if;
-- Qualify all entity names in inner packages, package bodies, etc
Exp_Dbug.Qualify_All_Entity_Names;
-- SCIL backend requirement. Check that SCIL nodes associated with
-- dispatching calls reference subprogram calls.
if Generate_SCIL then
pragma Debug (Sem_SCIL.Check_SCIL_Nodes (Cunit (Main_Unit)));
null;
end if;
-- Dump the source now. Note that we do this as soon as the analysis
-- of the tree is complete, because it is not just a dump in the case
-- of -gnatD, where it rewrites all source locations in the tree.
Sprint.Source_Dump;
-- Check again for configuration pragmas that appear in the context
-- of the main unit. These pragmas only affect the main unit, and the
-- corresponding flag is reset after each call to Semantics, but they
-- may affect the generated ali for the unit, and therefore the flag
-- must be set properly after compilation. Currently we only check for
-- Initialize_Scalars, but others should be checked: as well???
declare
Item : Node_Id;
begin
Item := First (Context_Items (Cunit (Main_Unit)));
while Present (Item) loop
if Nkind (Item) = N_Pragma
and then Pragma_Name (Item) = Name_Initialize_Scalars
then
Initialize_Scalars := True;
end if;
Next (Item);
end loop;
end;
-- If a mapping file has been specified by a -gnatem switch, update
-- it if there has been some sources that were not in the mappings.
if Mapping_File_Name /= null then
Fmap.Update_Mapping_File (Mapping_File_Name.all);
end if;
return;
end Frontend;
|
package TLSF.Proof.Model with SPARK_Mode, Pure, Preelaborate, Ghost is
end TLSF.Proof.Model;
|
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- XML Processor --
-- --
-- Testsuite Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2016, Vadim Godunko <vgodunko@gmail.com> --
-- All rights reserved. --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions --
-- are met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
with League.Holders.JSON_Arrays;
with League.JSON.Arrays;
with League.JSON.Documents;
with League.Strings;
with XML.SAX.Pretty_Writers;
with XML.SAX.Simple_Readers;
with XML.SAX.String_Input_Sources;
with XML.SAX.String_Output_Destinations;
with XML.Templates.Processors;
procedure Test_467 is
use type League.Strings.Universal_String;
Data : constant League.Strings.Universal_String
:= League.Strings.To_Universal_String
("["
& "{""name"": null,""value"": null},"
& "{""name"": null,""value"": 1},"
& "{""name"": 2,""value"": null},"
& "{""name"": 3,""value"": 4}"
& "]");
Page : constant League.Strings.Universal_String
:= League.Strings.To_Universal_String
("<html xmlns='http://www.w3.org/1999/xhtml'"
& " xmlns:mtl='http://forge.ada-ru.org/matreshka/template'>"
& " <body>"
& " <mtl:for expression='item of posts'>"
& " <mtl:if expression='item.name is null'>"
& " <mtl:if expression='item.value is null'>1"
& " <mtl:else/>2"
& " </mtl:if>"
& " <mtl:elsif expression='item.value is null'/>3"
& " <mtl:else/>4"
& " </mtl:if>"
& " </mtl:for>"
& " </body>"
& "</html>");
Expected : constant League.Strings.Universal_String
:= League.Strings.To_Universal_String
("<?xml version='1.0'?>"
& "<html xmlns='http://www.w3.org/1999/xhtml'>"
& " <body> 1"
& " 2"
& " 3"
& " 4"
& " </body></html>");
Posts : constant League.JSON.Arrays.JSON_Array
:= League.JSON.Documents.From_JSON (Data).To_JSON_Array;
Input : aliased XML.SAX.String_Input_Sources.String_Input_Source;
Reader : aliased XML.SAX.Simple_Readers.Simple_Reader;
Filter : aliased XML.Templates.Processors.Template_Processor;
Writer : aliased XML.SAX.Pretty_Writers.XML_Pretty_Writer;
Output : aliased
XML.SAX.String_Output_Destinations.String_Output_Destination;
begin
Input.Set_String (Page);
-- Configure reader.
Reader.Set_Input_Source (Input'Unchecked_Access);
Reader.Set_Content_Handler (Filter'Unchecked_Access);
Reader.Set_Lexical_Handler (Filter'Unchecked_Access);
-- Configure template processor.
Filter.Set_Content_Handler (Writer'Unchecked_Access);
Filter.Set_Lexical_Handler (Writer'Unchecked_Access);
Filter.Set_Parameter
(League.Strings.To_Universal_String ("posts"),
League.Holders.JSON_Arrays.To_Holder (Posts));
-- Configure XML writer.
Writer.Set_Output_Destination (Output'Unchecked_Access);
-- Process template.
Reader.Parse;
-- Output result.
if Output.Get_Text /= Expected then
raise Program_Error;
end if;
end Test_467;
|
with Ada.Unchecked_Deallocation;
with Ada.Containers.Vectors;
with Ada.Containers.Indefinite_Vectors;
with Protypo.Tokens;
private
package Protypo.Code_Trees is
use Ada.Strings.Unbounded;
package ID_Lists is
new Ada.Containers.Indefinite_Vectors (Index_Type => Positive,
Element_Type => ID);
subtype Id_List is ID_Lists.Vector;
type Non_Terminal is
(
Statement_Sequence,
Defun,
Assignment,
Return_Statement,
Procedure_Call,
Exit_Statement,
If_Block,
Loop_Block,
For_Block,
While_Block,
Binary_Op,
Unary_Op,
Int_Constant,
Real_Constant,
Text_Constant,
Capture_Call,
Selected,
Indexed,
Identifier,
List_Of_Names,
List_Of_Expressions,
Parameter_Signature
);
subtype Expression is Non_Terminal range Binary_Op .. Identifier;
subtype Name is Non_Terminal range Selected .. Identifier;
subtype Statement_Classes is Non_Terminal range Statement_Sequence .. While_Block;
type Parsed_Code is private;
Empty_Tree : constant Parsed_Code;
function Is_Empty (X : Parsed_Code) return Boolean;
type Tree_Array is array (Positive range <>) of Parsed_Code;
Empty_Tree_Array : constant Tree_Array;
function Class (X : Parsed_Code) return Non_Terminal;
function If_Then_Else (Conditions : Tree_Array;
Then_Branches : Tree_Array;
Else_Branch : Parsed_Code)
return Parsed_Code
with
Pre =>
Conditions'Length = Then_Branches'Length
and (for all Cond of Conditions => Class (Cond) in Expression)
and (for all B of Then_Branches => Class (B) in Statement_Sequence),
Post =>
Class (If_Then_Else'Result) = If_Block;
function Assignment (LHS : Tree_Array;
Value : Tree_Array)
return Parsed_Code
with
Pre =>
(for all Item of Lhs => Class (Item) in Name) and
(for all Item of Value => Class (Item) in Expression),
Post =>
Class (Assignment'Result) = Assignment;
function Parameter_List (Names : Id_List;
Default : Tree_Array;
Position : Tokens.Token_Position := Tokens.No_Position)
return Parsed_Code
with
Pre => (for all Val of Default => Is_Empty (Val) or else (Class (Val) in Expression)),
Post => Class (Parameter_List'Result) = Parameter_Signature;
function Empty_Parameter_List return Parsed_Code;
function Definition (Name : String;
Parameter_List : Parsed_Code;
Function_Body : Parsed_Code;
Is_Function : Boolean;
Position : Tokens.Token_Position := Tokens.No_Position)
return Parsed_Code
with
Pre =>
Class (Function_Body) = Statement_Sequence
and (Parameter_List = Empty_Tree
or else
Class (Parameter_List) = Parameter_Signature),
Post =>
Class (Definition'Result) = Defun;
function Statement_Sequence (Statements : Tree_Array;
Position : Tokens.Token_Position := Tokens.No_Position)
return Parsed_Code
with
Post => Class (Statement_Sequence'Result) = Statement_Sequence;
-- function Naked_Expression (Statements : Tree_Array)
-- return Parsed_Code
-- with
-- Post => Class (Naked_Expression'Result) = Naked;
function Binary_Operation (Left : Parsed_Code;
Right : Parsed_Code;
Operation : Tokens.Binary_Operator;
Position : Tokens.Token_Position := Tokens.No_Position)
return Parsed_Code
with
Post => Class (Binary_Operation'Result) = Binary_Op;
function Unary_Operation (X : Parsed_Code;
Operation : Tokens.Unary_Operator;
Position : Tokens.Token_Position := Tokens.No_Position)
return Parsed_Code
with
Post => Class (Unary_Operation'Result) = Unary_Op;
function String_Constant (Val : String;
Position : Tokens.Token_Position := Tokens.No_Position)
return Parsed_Code
with
Post => Class (String_Constant'Result) = Text_Constant;
function Integer_Constant (Val : String;
Position : Tokens.Token_Position := Tokens.No_Position)
return Parsed_Code
with
Post => Class (Integer_Constant'Result) = Int_Constant;
function Float_Constant (Val : String;
Position : Tokens.Token_Position := Tokens.No_Position)
return Parsed_Code
with
Post => Class (Float_Constant'Result) = Real_Constant;
function Identifier (Id : String;
Position : Tokens.Token_Position := Tokens.No_Position)
return Parsed_Code
with
Post => Class (Identifier'Result) = Identifier;
function Indexed_Name (Function_Ref : Parsed_Code;
Parameters : Tree_Array;
Position : Tokens.Token_Position := Tokens.No_Position)
return Parsed_Code
with
Post => Class (Indexed_Name'Result) = Indexed;
function Procedure_Call (Procedure_Name : String;
Parameters : Tree_Array;
Position : Tokens.Token_Position := Tokens.No_Position)
return Parsed_Code
with
Post => Class (Procedure_Call'Result) = Procedure_Call;
function Procedure_Call (Procedure_Name : String)
return Parsed_Code
with
Post => Class (Procedure_Call'Result) = Procedure_Call;
function Capture (Name : Unbounded_Id;
Parameters : Tree_Array;
Position : Tokens.Token_Position := Tokens.No_Position)
return Parsed_Code
with
Post => Class (Capture'Result) = Capture_Call;
function Selector (Ref : Parsed_Code;
Field : String;
Position : Tokens.Token_Position := Tokens.No_Position)
return Parsed_Code
with
Post => Class (Selector'Result) = Selected;
function Loop_Exit (Label : String;
Position : Tokens.Token_Position := Tokens.No_Position)
return Parsed_Code;
function Basic_Loop (Loop_Body : Parsed_Code;
Label : String;
Position : Tokens.Token_Position := Tokens.No_Position)
return Parsed_Code
with
Post => Class (Basic_Loop'Result) = Loop_Block;
function For_Loop (Variable : String;
Iterator : Parsed_Code;
Loop_Body : Parsed_Code;
Position : Tokens.Token_Position := Tokens.No_Position)
return Parsed_Code
with
Post => Class (For_Loop'Result) = For_Block,
Pre =>
Class (Loop_Body) = Loop_Block;
function While_Loop (Condition : Parsed_Code;
Loop_Body : Parsed_Code;
Position : Tokens.Token_Position := Tokens.No_Position)
return Parsed_Code
with
Pre => Class (Loop_Body) = Loop_Block and (Class (Condition) in Expression),
Post => Class (While_Loop'Result) = While_Block;
function Return_To_Caller (Values : Tree_Array;
Position : Tokens.Token_Position := Tokens.No_Position)
return Parsed_Code
with
Pre => (for all V of Values => Class (V) in Expression),
Post => Class (Return_To_Caller'Result) = Return_Statement;
procedure Delete (Code : in out Parsed_Code);
procedure Dump (Code : Parsed_Code);
private
subtype Label_Type is Unbounded_String;
subtype Loops is Non_Terminal range Loop_Block .. While_Block;
type Node;
type Node_Access is access Node;
package Node_Vectors is
new Ada.Containers.Vectors (Index_Type => Positive,
Element_Type => Node_Access);
type Parameter_Specs is
record
Names : Id_List;
Default : Node_Vectors.Vector;
end record;
type Conditional_Branch is
record
Condition : Node_Access;
Code : Node_Access;
end record;
package Conditional_Branch_Vectors is
new Ada.Containers.Vectors (Index_Type => Positive,
Element_Type => Conditional_Branch);
type Node (Class : Non_Terminal) is
record
Source_Position : Tokens.Token_Position;
case Class is
when Parameter_Signature =>
Signature : Parameter_Specs;
when Defun =>
Is_Function : Boolean;
Definition_Name : Unbounded_String;
Function_Body : Node_Vectors.Vector;
Parameters : Parameter_Specs;
when Statement_Sequence =>
Statements : Node_Vectors.Vector;
-- when Naked =>
-- Naked_Values : Node_Vectors.Vector;
when Assignment =>
Lhs : Node_Vectors.Vector;
Rvalues : Node_Vectors.Vector;
when Return_Statement =>
Return_Values : Node_Vectors.Vector;
when Procedure_Call | Capture_Call =>
Name : Unbounded_Id;
Params : Node_Vectors.Vector;
when Exit_Statement =>
Loop_Label : Label_Type;
when If_Block =>
Branches : Conditional_Branch_Vectors.Vector;
Else_Branch : Node_Access;
when List_Of_Names =>
Names : Node_Vectors.Vector;
when List_Of_Expressions =>
Exprs : Node_Vectors.Vector;
when Binary_Op =>
Operator : Tokens.Binary_Operator;
Left : Node_Access;
Right : Node_Access;
when Unary_Op =>
Uni_Op : Tokens.Unary_Operator;
Operand : Node_Access;
when Int_Constant =>
N : Integer;
when Real_Constant =>
X : Float;
when Text_Constant =>
S : Unbounded_String;
when Selected =>
Record_Var : Node_Access;
Field_Name : Unbounded_ID;
when Indexed =>
Indexed_Var : Node_Access;
Indexes : Node_Vectors.Vector;
when Identifier =>
Id_Value : Unbounded_Id;
when Loop_Block | For_Block | While_Block =>
Loop_Body : Node_Vectors.Vector;
Labl : Label_Type;
case Class is
when Loop_Block =>
null;
when For_Block =>
Variable : Unbounded_String;
Iterator : Node_Access;
when While_Block =>
Condition : Node_Access;
when others =>
null;
end case;
end case;
end record;
subtype Indexed_Name_Node is Node (Indexed);
procedure Free is
new Ada.Unchecked_Deallocation (Object => Node,
Name => Node_Access);
procedure Delete (Item : in out Node_Access);
procedure Delete (Item : in out Node_Vectors.Vector);
procedure Dump (Item : Node_Access;
Level : Natural;
Label : String := "");
type Parsed_Code is
record
Pt : Node_Access;
end record;
Empty_Tree : constant Parsed_Code := (Pt => null);
Empty_Tree_Array : constant Tree_Array (2 .. 1) := (others => <>);
function Empty_Parameter_List return Parsed_Code
is (Pt => new Node
'(Class => Parameter_Signature,
Source_Position => Tokens.No_Position,
Signature => Parameter_Specs'(Names => ID_Lists.Empty_Vector,
Default => Node_Vectors.Empty_Vector)));
function Is_Empty (X : Parsed_Code) return Boolean
is (X.Pt = null);
end Protypo.Code_Trees;
|
with Progress_Indicators.Work_Trackers;
package SP.Progress is
package PI renames Progress_Indicators;
task type Update_Progress (Work : access PI.Work_Trackers.Work_Tracker) with CPU => 1 is
entry Stop;
end Update_Progress;
end SP.Progress;
|
-- This package has been generated automatically by GNATtest.
-- You are allowed to add your code to the bodies of test routines.
-- Such changes will be kept during further regeneration of this file.
-- All code placed outside of test routine bodies will be lost. The
-- code intended to set up and tear down the test environment should be
-- placed into Tk.TtkButton.Test_Data.
with AUnit.Assertions; use AUnit.Assertions;
with System.Assertions;
-- begin read only
-- id:2.2/00/
--
-- This section can be used to add with clauses if necessary.
--
-- end read only
with Ada.Environment_Variables; use Ada.Environment_Variables;
with Tcl.Variables; use Tcl.Variables;
-- begin read only
-- end read only
package body Tk.TtkButton.Test_Data.Tests is
-- begin read only
-- id:2.2/01/
--
-- This section can be used to add global variables and other elements.
--
-- end read only
-- begin read only
-- end read only
-- begin read only
procedure Wrap_Test_Invoke_05a9d3_1d715e(Button: Ttk_Button) is
begin
begin
pragma Assert(Button /= Null_Widget);
null;
exception
when System.Assertions.Assert_Failure =>
AUnit.Assertions.Assert
(False,
"req_sloc(tk-ttkbutton.ads:0):Test_Invoke_TtkButton1 test requirement violated");
end;
GNATtest_Generated.GNATtest_Standard.Tk.TtkButton.Invoke(Button);
begin
pragma Assert(True);
null;
exception
when System.Assertions.Assert_Failure =>
AUnit.Assertions.Assert
(False,
"ens_sloc(tk-ttkbutton.ads:0:):Test_Invoke_TtkButton1 test commitment violated");
end;
end Wrap_Test_Invoke_05a9d3_1d715e;
-- end read only
-- begin read only
procedure Test_1_Invoke_test_invoke_ttkbutton1(Gnattest_T: in out Test);
procedure Test_Invoke_05a9d3_1d715e(Gnattest_T: in out Test) renames
Test_1_Invoke_test_invoke_ttkbutton1;
-- id:2.2/05a9d3a88a18a5a9/Invoke/1/0/test_invoke_ttkbutton1/
procedure Test_1_Invoke_test_invoke_ttkbutton1(Gnattest_T: in out Test) is
procedure Invoke(Button: Ttk_Button) renames
Wrap_Test_Invoke_05a9d3_1d715e;
-- end read only
pragma Unreferenced(Gnattest_T);
Button: Ttk_Button;
begin
if Value("DISPLAY", "")'Length = 0 then
Assert(True, "No display, can't test");
return;
end if;
Create
(Button, ".mybutton",
Ttk_Button_Options'
(Command => To_Tcl_String("set buttonvar 2"), others => <>));
Invoke(Button);
Assert
(Tcl_Get_Var("buttonvar") = "2",
"Failed to invoke Tcl command related to the Ttk button.");
Destroy(Button);
-- begin read only
end Test_1_Invoke_test_invoke_ttkbutton1;
-- end read only
-- begin read only
function Wrap_Test_Invoke_89eee4_5d3252(Button: Ttk_Button) return String is
begin
begin
pragma Assert(Button /= Null_Widget);
null;
exception
when System.Assertions.Assert_Failure =>
AUnit.Assertions.Assert
(False,
"req_sloc(tk-ttkbutton.ads:0):Test_Invoke_TtkButton2 test requirement violated");
end;
declare
Test_Invoke_89eee4_5d3252_Result: constant String :=
GNATtest_Generated.GNATtest_Standard.Tk.TtkButton.Invoke(Button);
begin
begin
pragma Assert(True);
null;
exception
when System.Assertions.Assert_Failure =>
AUnit.Assertions.Assert
(False,
"ens_sloc(tk-ttkbutton.ads:0:):Test_Invoke_TtkButton2 test commitment violated");
end;
return Test_Invoke_89eee4_5d3252_Result;
end;
end Wrap_Test_Invoke_89eee4_5d3252;
-- end read only
-- begin read only
procedure Test_2_Invoke_test_invoke_ttkbutton2(Gnattest_T: in out Test);
procedure Test_Invoke_89eee4_5d3252(Gnattest_T: in out Test) renames
Test_2_Invoke_test_invoke_ttkbutton2;
-- id:2.2/89eee4a7b544ee30/Invoke/0/0/test_invoke_ttkbutton2/
procedure Test_2_Invoke_test_invoke_ttkbutton2(Gnattest_T: in out Test) is
function Invoke(Button: Ttk_Button) return String renames
Wrap_Test_Invoke_89eee4_5d3252;
-- end read only
pragma Unreferenced(Gnattest_T);
Button: Ttk_Button;
Result: String(1 .. 4);
begin
if Value("DISPLAY", "")'Length = 0 then
Assert(True, "No display, can't test");
return;
end if;
Create
(Button, ".mybutton",
Ttk_Button_Options'
(Command => To_Tcl_String(".mybutton cget -text"),
Text => To_Tcl_String("Quit"), others => <>));
Result := Invoke(Button);
Assert
(Result = "Quit",
"Failed to invoke Tcl command related to the Ttk button.");
Destroy(Button);
-- begin read only
end Test_2_Invoke_test_invoke_ttkbutton2;
-- end read only
-- begin read only
-- id:2.2/02/
--
-- This section can be used to add elaboration code for the global state.
--
begin
-- end read only
null;
-- begin read only
-- end read only
end Tk.TtkButton.Test_Data.Tests;
|
package body NXP.Board is
procedure Initialize_Board
is
Configuration : GPIO_Port_Configuration;
begin
Enable_Clock (LEDs);
Configuration.Mode := Mode_Out;
Configuration.Output_Type := Push_Pull;
Configuration.Speed := Speed_Low;
Configuration.Resistors := Floating;
Configure_IO (LEDs,
Config => Configuration);
for Point of LEDs loop
Turn_Off (Point);
end loop;
end Initialize_Board;
end NXP.Board;
|
-- This spec has been automatically generated from STM32L4x6.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package STM32_SVD.HASH is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype CR_DATATYPE_Field is HAL.UInt2;
subtype CR_NBW_Field is HAL.UInt4;
-- control register
type CR_Register is record
-- unspecified
Reserved_0_1 : HAL.UInt2 := 16#0#;
-- Write-only. Initialize message digest calculation
INIT : Boolean := False;
-- DMA enable
DMAE : Boolean := False;
-- Data type selection
DATATYPE : CR_DATATYPE_Field := 16#0#;
-- Mode selection
MODE : Boolean := False;
-- Algorithm selection
ALGO0 : Boolean := False;
-- Read-only. Number of words already pushed
NBW : CR_NBW_Field := 16#0#;
-- Read-only. DIN not empty
DINNE : Boolean := False;
-- Multiple DMA Transfers
MDMAT : Boolean := False;
-- unspecified
Reserved_14_15 : HAL.UInt2 := 16#0#;
-- Long key selection
LKEY : Boolean := False;
-- unspecified
Reserved_17_17 : HAL.Bit := 16#0#;
-- ALGO
ALGO1 : 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 CR_Register use record
Reserved_0_1 at 0 range 0 .. 1;
INIT at 0 range 2 .. 2;
DMAE at 0 range 3 .. 3;
DATATYPE at 0 range 4 .. 5;
MODE at 0 range 6 .. 6;
ALGO0 at 0 range 7 .. 7;
NBW at 0 range 8 .. 11;
DINNE at 0 range 12 .. 12;
MDMAT at 0 range 13 .. 13;
Reserved_14_15 at 0 range 14 .. 15;
LKEY at 0 range 16 .. 16;
Reserved_17_17 at 0 range 17 .. 17;
ALGO1 at 0 range 18 .. 18;
Reserved_19_31 at 0 range 19 .. 31;
end record;
subtype STR_NBLW_Field is HAL.UInt5;
-- start register
type STR_Register is record
-- Number of valid bits in the last word of the message
NBLW : STR_NBLW_Field := 16#0#;
-- unspecified
Reserved_5_7 : HAL.UInt3 := 16#0#;
-- Write-only. Digest calculation
DCAL : Boolean := False;
-- unspecified
Reserved_9_31 : HAL.UInt23 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for STR_Register use record
NBLW at 0 range 0 .. 4;
Reserved_5_7 at 0 range 5 .. 7;
DCAL at 0 range 8 .. 8;
Reserved_9_31 at 0 range 9 .. 31;
end record;
-- interrupt enable register
type IMR_Register is record
-- Data input interrupt enable
DINIE : Boolean := False;
-- Digest calculation completion interrupt enable
DCIE : Boolean := False;
-- unspecified
Reserved_2_31 : HAL.UInt30 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for IMR_Register use record
DINIE at 0 range 0 .. 0;
DCIE at 0 range 1 .. 1;
Reserved_2_31 at 0 range 2 .. 31;
end record;
-- status register
type SR_Register is record
-- Data input interrupt status
DINIS : Boolean := True;
-- Digest calculation completion interrupt status
DCIS : Boolean := False;
-- Read-only. DMA Status
DMAS : Boolean := False;
-- Read-only. Busy bit
BUSY : Boolean := False;
-- unspecified
Reserved_4_31 : HAL.UInt28 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for SR_Register use record
DINIS at 0 range 0 .. 0;
DCIS at 0 range 1 .. 1;
DMAS at 0 range 2 .. 2;
BUSY at 0 range 3 .. 3;
Reserved_4_31 at 0 range 4 .. 31;
end record;
-----------------
-- Peripherals --
-----------------
-- Hash processor
type HASH_Peripheral is record
-- control register
CR : aliased CR_Register;
-- data input register
DIN : aliased HAL.UInt32;
-- start register
STR : aliased STR_Register;
-- digest registers
HR0 : aliased HAL.UInt32;
-- interrupt enable register
IMR : aliased IMR_Register;
-- status register
SR : aliased SR_Register;
-- context swap registers
CSR0 : aliased HAL.UInt32;
-- context swap registers
CSR1 : aliased HAL.UInt32;
-- context swap registers
CSR2 : aliased HAL.UInt32;
-- context swap registers
CSR3 : aliased HAL.UInt32;
-- context swap registers
CSR4 : aliased HAL.UInt32;
-- context swap registers
CSR5 : aliased HAL.UInt32;
-- context swap registers
CSR6 : aliased HAL.UInt32;
-- context swap registers
CSR7 : aliased HAL.UInt32;
-- context swap registers
CSR8 : aliased HAL.UInt32;
-- context swap registers
CSR9 : aliased HAL.UInt32;
-- context swap registers
CSR10 : aliased HAL.UInt32;
-- context swap registers
CSR11 : aliased HAL.UInt32;
-- context swap registers
CSR12 : aliased HAL.UInt32;
-- context swap registers
CSR13 : aliased HAL.UInt32;
-- context swap registers
CSR14 : aliased HAL.UInt32;
-- context swap registers
CSR15 : aliased HAL.UInt32;
-- context swap registers
CSR16 : aliased HAL.UInt32;
-- context swap registers
CSR17 : aliased HAL.UInt32;
-- context swap registers
CSR18 : aliased HAL.UInt32;
-- context swap registers
CSR19 : aliased HAL.UInt32;
-- context swap registers
CSR20 : aliased HAL.UInt32;
-- context swap registers
CSR21 : aliased HAL.UInt32;
-- context swap registers
CSR22 : aliased HAL.UInt32;
-- context swap registers
CSR23 : aliased HAL.UInt32;
-- context swap registers
CSR24 : aliased HAL.UInt32;
-- context swap registers
CSR25 : aliased HAL.UInt32;
-- context swap registers
CSR26 : aliased HAL.UInt32;
-- context swap registers
CSR27 : aliased HAL.UInt32;
-- context swap registers
CSR28 : aliased HAL.UInt32;
-- context swap registers
CSR29 : aliased HAL.UInt32;
-- context swap registers
CSR30 : aliased HAL.UInt32;
-- context swap registers
CSR31 : aliased HAL.UInt32;
-- context swap registers
CSR32 : aliased HAL.UInt32;
-- context swap registers
CSR33 : aliased HAL.UInt32;
-- context swap registers
CSR34 : aliased HAL.UInt32;
-- context swap registers
CSR35 : aliased HAL.UInt32;
-- context swap registers
CSR36 : aliased HAL.UInt32;
-- context swap registers
CSR37 : aliased HAL.UInt32;
-- context swap registers
CSR38 : aliased HAL.UInt32;
-- context swap registers
CSR39 : aliased HAL.UInt32;
-- context swap registers
CSR40 : aliased HAL.UInt32;
-- context swap registers
CSR41 : aliased HAL.UInt32;
-- context swap registers
CSR42 : aliased HAL.UInt32;
-- context swap registers
CSR43 : aliased HAL.UInt32;
-- context swap registers
CSR44 : aliased HAL.UInt32;
-- context swap registers
CSR45 : aliased HAL.UInt32;
-- context swap registers
CSR46 : aliased HAL.UInt32;
-- context swap registers
CSR47 : aliased HAL.UInt32;
-- context swap registers
CSR48 : aliased HAL.UInt32;
-- context swap registers
CSR49 : aliased HAL.UInt32;
-- context swap registers
CSR50 : aliased HAL.UInt32;
-- context swap registers
CSR51 : aliased HAL.UInt32;
-- context swap registers
CSR52 : aliased HAL.UInt32;
-- context swap registers
CSR53 : aliased HAL.UInt32;
-- HASH digest register
HASH_HR0 : aliased HAL.UInt32;
-- read-only
HASH_HR1 : aliased HAL.UInt32;
-- read-only
HASH_HR2 : aliased HAL.UInt32;
-- read-only
HASH_HR3 : aliased HAL.UInt32;
-- read-only
HASH_HR4 : aliased HAL.UInt32;
-- read-only
HASH_HR5 : aliased HAL.UInt32;
-- read-only
HASH_HR6 : aliased HAL.UInt32;
-- read-only
HASH_HR7 : aliased HAL.UInt32;
end record
with Volatile;
for HASH_Peripheral use record
CR at 16#0# range 0 .. 31;
DIN at 16#4# range 0 .. 31;
STR at 16#8# range 0 .. 31;
HR0 at 16#C# range 0 .. 31;
IMR at 16#20# range 0 .. 31;
SR at 16#24# range 0 .. 31;
CSR0 at 16#F8# range 0 .. 31;
CSR1 at 16#FC# range 0 .. 31;
CSR2 at 16#100# range 0 .. 31;
CSR3 at 16#104# range 0 .. 31;
CSR4 at 16#108# range 0 .. 31;
CSR5 at 16#10C# range 0 .. 31;
CSR6 at 16#110# range 0 .. 31;
CSR7 at 16#114# range 0 .. 31;
CSR8 at 16#118# range 0 .. 31;
CSR9 at 16#11C# range 0 .. 31;
CSR10 at 16#120# range 0 .. 31;
CSR11 at 16#124# range 0 .. 31;
CSR12 at 16#128# range 0 .. 31;
CSR13 at 16#12C# range 0 .. 31;
CSR14 at 16#130# range 0 .. 31;
CSR15 at 16#134# range 0 .. 31;
CSR16 at 16#138# range 0 .. 31;
CSR17 at 16#13C# range 0 .. 31;
CSR18 at 16#140# range 0 .. 31;
CSR19 at 16#144# range 0 .. 31;
CSR20 at 16#148# range 0 .. 31;
CSR21 at 16#14C# range 0 .. 31;
CSR22 at 16#150# range 0 .. 31;
CSR23 at 16#154# range 0 .. 31;
CSR24 at 16#158# range 0 .. 31;
CSR25 at 16#15C# range 0 .. 31;
CSR26 at 16#160# range 0 .. 31;
CSR27 at 16#164# range 0 .. 31;
CSR28 at 16#168# range 0 .. 31;
CSR29 at 16#16C# range 0 .. 31;
CSR30 at 16#170# range 0 .. 31;
CSR31 at 16#174# range 0 .. 31;
CSR32 at 16#178# range 0 .. 31;
CSR33 at 16#17C# range 0 .. 31;
CSR34 at 16#180# range 0 .. 31;
CSR35 at 16#184# range 0 .. 31;
CSR36 at 16#188# range 0 .. 31;
CSR37 at 16#18C# range 0 .. 31;
CSR38 at 16#190# range 0 .. 31;
CSR39 at 16#194# range 0 .. 31;
CSR40 at 16#198# range 0 .. 31;
CSR41 at 16#19C# range 0 .. 31;
CSR42 at 16#1A0# range 0 .. 31;
CSR43 at 16#1A4# range 0 .. 31;
CSR44 at 16#1A8# range 0 .. 31;
CSR45 at 16#1AC# range 0 .. 31;
CSR46 at 16#1B0# range 0 .. 31;
CSR47 at 16#1B4# range 0 .. 31;
CSR48 at 16#1B8# range 0 .. 31;
CSR49 at 16#1BC# range 0 .. 31;
CSR50 at 16#1C0# range 0 .. 31;
CSR51 at 16#1C4# range 0 .. 31;
CSR52 at 16#1C8# range 0 .. 31;
CSR53 at 16#1CC# range 0 .. 31;
HASH_HR0 at 16#310# range 0 .. 31;
HASH_HR1 at 16#314# range 0 .. 31;
HASH_HR2 at 16#318# range 0 .. 31;
HASH_HR3 at 16#31C# range 0 .. 31;
HASH_HR4 at 16#320# range 0 .. 31;
HASH_HR5 at 16#324# range 0 .. 31;
HASH_HR6 at 16#328# range 0 .. 31;
HASH_HR7 at 16#32C# range 0 .. 31;
end record;
-- Hash processor
HASH_Periph : aliased HASH_Peripheral
with Import, Address => System'To_Address (16#50060400#);
end STM32_SVD.HASH;
|
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- S Y S T E M . S T A N D A R D _ L I B R A R Y --
-- --
-- S p e c --
-- --
-- $Revision$
-- --
-- Copyright (C) 1992-2001 Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 2, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
-- for more details. You should have received a copy of the GNU General --
-- Public License distributed with GNAT; see file COPYING. If not, write --
-- to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, --
-- MA 02111-1307, USA. --
-- --
-- As a special exception, if other files instantiate generics from this --
-- unit, or you link this unit with other files to produce an executable, --
-- this unit does not by itself cause the resulting executable to be --
-- covered by the GNU General Public License. This exception does not --
-- however invalidate any other reasons why the executable file might be --
-- covered by the GNU Public License. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
-- This package is included in all programs. It contains declarations that
-- are required to be part of every Ada program. A special mechanism is
-- required to ensure that these are loaded, since it may be the case in
-- some programs that the only references to these required packages are
-- from C code or from code generated directly by Gigi, an in both cases
-- the binder is not aware of such references.
-- System.Standard_Library also includes data that must be present in every
-- program, in particular the definitions of all the standard and also some
-- subprograms that must be present in every program.
-- The binder unconditionally includes s-stalib.ali, which ensures that this
-- package and the packages it references are included in all Ada programs,
-- together with the included data.
pragma Polling (Off);
-- We must turn polling off for this unit, because otherwise we get
-- elaboration circularities with Ada.Exceptions if polling is on.
with System;
with Unchecked_Conversion;
package System.Standard_Library is
pragma Suppress (All_Checks);
-- Suppress explicitly all the checks to work around the Solaris linker
-- bug when using gnatmake -f -a (but without -gnatp). This is not needed
-- with Solaris 2.6, so eventually can be removed ???
type Big_String_Ptr is access all String (Positive);
-- A non-fat pointer type for null terminated strings
function To_Ptr is
new Unchecked_Conversion (System.Address, Big_String_Ptr);
---------------------------------------------
-- Type For Enumeration Image Index Tables --
---------------------------------------------
-- Note: these types are declared at the start of this unit, since
-- they must appear before any enumeration types declared in this
-- unit. Note that the spec of system is already elaborated at
-- this point (since we are a child of system), which means that
-- enumeration types in package System cannot use these types.
type Image_Index_Table_8 is
array (Integer range <>) of Short_Short_Integer;
type Image_Index_Table_16 is
array (Integer range <>) of Short_Integer;
type Image_Index_Table_32 is
array (Integer range <>) of Integer;
-- These types are used to generate the index vector used for enumeration
-- type image tables. See spec of Exp_Imgv in the main GNAT sources for a
-- full description of the data structures that are used here.
-------------------------------------
-- Exception Declarations and Data --
-------------------------------------
type Exception_Data;
type Exception_Data_Ptr is access all Exception_Data;
-- An equivalent of Exception_Id that is public
-- The following record defines the underlying representation of exceptions
-- WARNING! Any changes to this may need to be reflectd in the following
-- locations in the compiler and runtime code:
-- 1. The Internal_Exception routine in s-exctab.adb
-- 2. The processing in gigi that tests Not_Handled_By_Others
-- 3. Expand_N_Exception_Declaration in Exp_Ch11
-- 4. The construction of the exception type in Cstand
type Exception_Data is record
Not_Handled_By_Others : Boolean;
-- Normally set False, indicating that the exception is handled in the
-- usual way by others (i.e. an others handler handles the exception).
-- Set True to indicate that this exception is not caught by others
-- handlers, but must be explicitly named in a handler. This latter
-- setting is currently used by the Abort_Signal.
Lang : Character;
-- A character indicating the language raising the exception.
-- Set to "A" for exceptions defined by an Ada program.
-- Set to "V" for imported VMS exceptions.
Name_Length : Natural;
-- Length of fully expanded name of exception
Full_Name : Big_String_Ptr;
-- Fully expanded name of exception, null terminated
HTable_Ptr : Exception_Data_Ptr;
-- Hash table pointer used to link entries together in the hash table
-- built (by Register_Exception in s-exctab.adb) for converting between
-- identities and names.
Import_Code : Integer;
-- Value for imported exceptions. Needed only for the handling of
-- Import/Export_Exception for the VMS case, but present in all
-- implementations (we might well extend this mechanism for other
-- systems in the future).
end record;
-- Definitions for standard predefined exceptions defined in Standard,
-- Why are the Nul's necessary here, seems like they should not be
-- required, since Gigi is supposed to add a Nul to each name ???
Constraint_Error_Name : constant String := "CONSTRAINT_ERROR" & ASCII.NUL;
Program_Error_Name : constant String := "PROGRAM_ERROR" & ASCII.NUL;
Storage_Error_Name : constant String := "STORAGE_ERROR" & ASCII.NUL;
Tasking_Error_Name : constant String := "TASKING_ERROR" & ASCII.NUL;
Abort_Signal_Name : constant String := "_ABORT_SIGNAL" & ASCII.NUL;
Numeric_Error_Name : constant String := "NUMERIC_ERROR" & ASCII.NUL;
-- This is used only in the Ada 83 case, but it is not worth having a
-- separate version of s-stalib.ads for use in Ada 83 mode.
Constraint_Error_Def : aliased Exception_Data :=
(Not_Handled_By_Others => False,
Lang => 'A',
Name_Length => Constraint_Error_Name'Length,
Full_Name => To_Ptr (Constraint_Error_Name'Address),
HTable_Ptr => null,
Import_Code => 0);
Numeric_Error_Def : aliased Exception_Data :=
(Not_Handled_By_Others => False,
Lang => 'A',
Name_Length => Numeric_Error_Name'Length,
Full_Name => To_Ptr (Numeric_Error_Name'Address),
HTable_Ptr => null,
Import_Code => 0);
Program_Error_Def : aliased Exception_Data :=
(Not_Handled_By_Others => False,
Lang => 'A',
Name_Length => Program_Error_Name'Length,
Full_Name => To_Ptr (Program_Error_Name'Address),
HTable_Ptr => null,
Import_Code => 0);
Storage_Error_Def : aliased Exception_Data :=
(Not_Handled_By_Others => False,
Lang => 'A',
Name_Length => Storage_Error_Name'Length,
Full_Name => To_Ptr (Storage_Error_Name'Address),
HTable_Ptr => null,
Import_Code => 0);
Tasking_Error_Def : aliased Exception_Data :=
(Not_Handled_By_Others => False,
Lang => 'A',
Name_Length => Tasking_Error_Name'Length,
Full_Name => To_Ptr (Tasking_Error_Name'Address),
HTable_Ptr => null,
Import_Code => 0);
Abort_Signal_Def : aliased Exception_Data :=
(Not_Handled_By_Others => True,
Lang => 'A',
Name_Length => Abort_Signal_Name'Length,
Full_Name => To_Ptr (Abort_Signal_Name'Address),
HTable_Ptr => null,
Import_Code => 0);
pragma Export (C, Constraint_Error_Def, "constraint_error");
pragma Export (C, Numeric_Error_Def, "numeric_error");
pragma Export (C, Program_Error_Def, "program_error");
pragma Export (C, Storage_Error_Def, "storage_error");
pragma Export (C, Tasking_Error_Def, "tasking_error");
pragma Export (C, Abort_Signal_Def, "_abort_signal");
Local_Partition_ID : Natural := 0;
-- This variable contains the local Partition_ID that will be used when
-- building exception occurrences. In distributed mode, it will be
-- set by each partition to the correct value during the elaboration.
type Exception_Trace_Kind is
(RM_Convention,
-- No particular trace is requested, only unhandled exceptions
-- in the environment task (following the RM) will be printed.
-- This is the default behavior.
Every_Raise,
-- Denotes every possible raise event, either explicit or due to
-- a specific language rule, within the context of a task or not.
Unhandled_Raise
-- Denotes the raise events corresponding to exceptions for which
-- there is no user defined handler.
);
-- Provide a way to denote different kinds of automatic traces related
-- to exceptions that can be requested.
Exception_Trace : Exception_Trace_Kind := RM_Convention;
pragma Atomic (Exception_Trace);
-- By default, follow the RM convention.
-----------------
-- Subprograms --
-----------------
procedure Abort_Undefer_Direct;
pragma Inline (Abort_Undefer_Direct);
-- A little procedure that just calls Abort_Undefer.all, for use in
-- clean up procedures, which only permit a simple subprogram name.
procedure Adafinal;
-- Performs the Ada Runtime finalization the first time it is invoked.
-- All subsequent calls are ignored.
end System.Standard_Library;
|
--------------------------------------------------------------------------------------------------------------------
-- Copyright (c) 2013-2018 Luke A. Guest
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising from the use of this software.
--
-- Permission is granted to anyone to use this software for any purpose,
-- including commercial applications, and to alter it and redistribute it
-- freely, subject to the following restrictions:
--
-- 1. The origin of this software must not be misrepresented; you must not
-- claim that you wrote the original software. If you use this software
-- in a product, an acknowledgment in the product documentation would be
-- appreciated but is not required.
--
-- 2. Altered source versions must be plainly marked as such, and must not be
-- misrepresented as being the original software.
--
-- 3. This notice may not be removed or altered from any source
-- distribution.
--------------------------------------------------------------------------------------------------------------------
-- SDL.Video.Palettes
--
-- Palettes, colours and various conversions.
--------------------------------------------------------------------------------------------------------------------
with Ada.Finalization;
with Ada.Iterator_Interfaces;
with Interfaces.C.Pointers;
package SDL.Video.Palettes is
package C renames Interfaces.C;
type Colour_Component is range 0 .. 255 with
Size => 8,
Convention => C;
type Colour is
record
Red : Colour_Component;
Green : Colour_Component;
Blue : Colour_Component;
Alpha : Colour_Component;
end record with
Convention => C_Pass_by_Copy,
Size => Colour_Component'Size * 4;
Null_Colour : constant Colour := Colour'(others => Colour_Component'First);
type RGB_Colour is
record
Red : Colour_Component;
Green : Colour_Component;
Blue : Colour_Component;
end record with
Convention => C_Pass_by_Copy,
Size => Colour_Component'Size * 4;
Null_RGB_Colour : constant RGB_Colour := RGB_Colour'(others => Colour_Component'First);
-- Cursor type for our iterator.
type Cursor is private;
No_Element : constant Cursor;
function Element (Position : in Cursor) return Colour;
function Has_Element (Position : Cursor) return Boolean;
-- Create the iterator interface package.
package Palette_Iterator_Interfaces is new
Ada.Iterator_Interfaces (Cursor, Has_Element);
type Palette is tagged limited private with
Default_Iterator => Iterate,
Iterator_Element => Colour,
Constant_Indexing => Constant_Reference;
type Palette_Access is access Palette;
function Constant_Reference
(Container : aliased Palette;
Position : Cursor) return Colour;
function Iterate (Container : Palette)
return Palette_Iterator_Interfaces.Forward_Iterator'Class;
function Create (Total_Colours : in Positive) return Palette;
procedure Free (Container : in out Palette);
Empty_Palette : constant Palette;
private
type Colour_Array is array (C.size_t range <>) of aliased Colour with
Convention => C;
package Colour_Array_Pointer is new Interfaces.C.Pointers
(Index => C.size_t,
Element => Colour,
Element_Array => Colour_Array,
Default_Terminator => Null_Colour);
type Internal_Palette is
record
Total : C.int;
Colours : Colour_Array_Pointer.Pointer;
Version : Interfaces.Unsigned_32;
Ref_Count : C.int;
end record with
Convention => C;
type Internal_Palette_Access is access Internal_Palette with
Convention => C;
type Palette is tagged limited
record
Data : Internal_Palette_Access;
end record;
type Palette_Constant_Access is access constant Palette;
type Cursor is
record
Container : Palette_Constant_Access;
Index : Natural;
Current : Colour_Array_Pointer.Pointer;
end record;
No_Element : constant Cursor := Cursor'(Container => null,
Index => Natural'First,
Current => null);
Empty_Palette : constant Palette := Palette'(Data => null);
end SDL.Video.Palettes;
|
-- SPDX-FileCopyrightText: 2021 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Ada.Streams;
with League.Strings;
package Network.Addresses is
pragma Preelaborate;
type Address is private;
-- Composable and future-proof network addresses
function To_String
(Self : Address) return League.Strings.Universal_String;
-- Return textual representation of the multiaddr. Example:
-- "/ip4/127.0.0.1/tcp/8080". See Multiaddr for details.
function To_Stream_Element_Array
(Self : Address) return Ada.Streams.Stream_Element_Array;
-- Return binary representation of the multiaddr
function To_Address
(Value : League.Strings.Universal_String) return Address
with Pre => Is_Valid (Value);
-- Construct multiaddr from the string
function To_Address
(Value : Ada.Streams.Stream_Element_Array) return Address
with Pre => Is_Valid (Value);
-- Construct multiaddr from bytes
function Is_Valid
(Value : League.Strings.Universal_String) return Boolean;
-- Check is given string represents a multiaddr
function Is_Valid
(Ignore : Ada.Streams.Stream_Element_Array) return Boolean is (True);
-- TBD
type Address_Array is array (Positive range <>) of Address;
private
type Address is record
Value : League.Strings.Universal_String;
end record;
type Simple_Stream (Size : Ada.Streams.Stream_Element_Count) is
new Ada.Streams.Root_Stream_Type with
record
Last : Ada.Streams.Stream_Element_Count := 0;
Data : Ada.Streams.Stream_Element_Array (1 .. Size);
end record;
overriding procedure Read
(Self : in out Simple_Stream;
Item : out Ada.Streams.Stream_Element_Array;
Last : out Ada.Streams.Stream_Element_Offset);
overriding procedure Write
(Self : in out Simple_Stream;
Item : Ada.Streams.Stream_Element_Array);
procedure Write
(Self : access Ada.Streams.Root_Stream_Type'Class;
Value : Ada.Streams.Stream_Element_Count);
procedure Read
(Self : access Ada.Streams.Root_Stream_Type'Class;
Value : out Ada.Streams.Stream_Element_Count);
end Network.Addresses;
|
------------------------------------------------------------------------------
-- --
-- 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 := 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.AHB2ENR.GPIOAEN := True;
elsif This'Address = GPIOB_Base then
RCC_Periph.AHB2ENR.GPIOBEN := True;
elsif This'Address = GPIOC_Base then
RCC_Periph.AHB2ENR.GPIOCEN := True;
elsif This'Address = GPIOH_Base then
RCC_Periph.AHB2ENR.GPIOHEN := 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.AHB2RSTR.GPIOARST := True;
RCC_Periph.AHB2RSTR.GPIOARST := False;
elsif This'Address = GPIOB_Base then
RCC_Periph.AHB2RSTR.GPIOBRST := True;
RCC_Periph.AHB2RSTR.GPIOBRST := False;
elsif This'Address = GPIOC_Base then
RCC_Periph.AHB2RSTR.GPIOCRST := True;
RCC_Periph.AHB2RSTR.GPIOCRST := 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 UInt3 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 = GPIOH_Base then
return 7;
else
raise Program_Error;
end if;
end GPIO_Port_Representation;
------------------
-- 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.APB1ENR1.I2C1EN := True;
when I2C_Id_2 =>
RCC_Periph.APB1ENR1.I2C2EN := True;
when I2C_Id_3 =>
RCC_Periph.APB1ENR1.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.APB1RSTR1.I2C1RST := True;
RCC_Periph.APB1RSTR1.I2C1RST := False;
when I2C_Id_2 =>
RCC_Periph.APB1RSTR1.I2C2RST := True;
RCC_Periph.APB1RSTR1.I2C2RST := False;
when I2C_Id_3 =>
RCC_Periph.APB1RSTR1.I2C3RST := True;
RCC_Periph.APB1RSTR1.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.APB1ENR1.SPI2S2EN := True;
elsif This.Periph.all'Address = SPI3_Base then
RCC_Periph.APB3ENR.SUBGHZSPIEN := True;
else
raise Unknown_Device;
end if;
end Enable_Clock;
-----------
-- Reset --
-----------
procedure Reset (This : in out 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.APB1RSTR1.SPI2S2RST := True;
RCC_Periph.APB1RSTR1.SPI2S2RST := False;
elsif This.Periph.all'Address = SPI3_Base then
RCC_Periph.APB3RSTR.SUBGHZSPIRST := True;
RCC_Periph.APB3RSTR.SUBGHZSPIRST := 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.APB1ENR1.TIM2EN := True;
elsif This'Address = TIM16_Base then
RCC_Periph.APB2ENR.TIM16EN := True;
elsif This'Address = TIM17_Base then
RCC_Periph.APB2ENR.TIM17EN := 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.APB1RSTR1.TIM2RST := True;
RCC_Periph.APB1RSTR1.TIM2RST := False;
else
raise Unknown_Device;
end if;
end Reset;
------------------
-- Enable_Clock --
------------------
-- procedure Enable_Clock (This : aliased in out Analog_To_Digital_Converter)
-- is
-- begin
-- if This'Address = ADC_Base then
-- RCC_Periph.APB2ENR.ADCEN := True;
-- RCC_Periph.CCIPR.ADCSEL := 3; -- clock sel. Default is... none!
-- 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;
------------------------------
-- 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;
return Result;
end System_Clock_Frequencies;
------------------
-- 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.AHBRSTR.CRCRST := True;
-- RCC_Periph.AHBRSTR.CRCRST := False;
null;
end Reset;
end STM32.Device;
|
package Packet is
Sensor_Reading_Tag : constant Natural := 6;
Voltage_Tag : constant Natural := 7;
Temperature_Tag : constant Natural := 8;
Humidity_Tag : constant Natural := 9;
Pressure_Tag : constant Natural := 10;
Lux_Tag : constant Natural := 11;
UV_Index_Tag : constant Natural := 12;
Motion_Tag : constant Natural := 13;
Sound_Level_Tag : constant Natural := 14;
CO2_Tag : constant Natural := 15;
Test_Packet_Tag : constant Natural := 64;
Heartbeat_Tag : constant Natural := 65;
Log_Message_Tag : constant Natural := 66;
Ping_Tag : constant Natural := 67;
Register_Value_Tag : constant Natural := 68;
Error_Message_Tag : constant Natural := 69;
Status_Cmd_Tag : constant Natural := 256;
Ping_Cmd_Tag : constant Natural := 257;
Reset_Cmd_Tag : constant Natural := 258;
end Packet;
|
-------------------------------------------------------------------------------
-- Copyright (c) 2016 Daniel King
--
-- Permission is hereby granted, free of charge, to any person obtaining a
-- copy of this software and associated documentation files (the "Software"),
-- to deal in the Software without restriction, including without limitation
-- the rights to use, copy, modify, merge, publish, distribute, sublicense,
-- and/or sell copies of the Software, and to permit persons to whom the
-- Software is furnished to do so, subject to the following conditions:
--
-- The above copyright notice and this permission notice shall be included in
-- all copies or substantial portions of the Software.
--
-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
-- FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
-- DEALINGS IN THE SOFTWARE.
-------------------------------------------------------------------------------
with DW1000.Types; use DW1000.Types;
package body DW1000.Ranging.Single_Sided
with SPARK_Mode => On
is
------------------------
-- Compute_Distance --
------------------------
function Compute_Distance
(Tag_Tx_Poll_Timestamp : in Fine_System_Time;
Anchor_Rx_Poll_Timestamp : in Fine_System_Time;
Anchor_Tx_Resp_Timestamp : in Fine_System_Time;
Tag_Rx_Resp_Timestamp : in Fine_System_Time) return Biased_Distance is
Max_Time_Of_Flight : constant := 0.000_1;
-- Limit the Time of Flight to a maximum of 0.000_1 seconds (100 us).
--
-- This prevents overflow during the conversion from time of flight
-- to distance.
--
-- This limits the maximum computable distance to 29970 meters, but this
-- should be plenty as the operational range of the DW1000 is about
-- 100 times below this limit (300 m).
type System_Time_Span_Div2 is
delta System_Time_Span'Delta / 2.0
range 0.0 .. System_Time_Span'Last / 2.0
with Small => System_Time_Span'Small / 2.0;
type Large_Meters is
delta Meters'Delta
range 0.0 .. (Max_Time_Of_Flight / System_Time_Span_Div2'Delta) * Speed_Of_Light_In_Vacuum;
-- A fixed-point type with a large enough integer part to store the
-- integer representation of a System_Time_Span_Div2 value.
T_Tag : constant System_Time_Span := Calculate_Span
(Start_Time => Tag_Tx_Poll_Timestamp,
End_Time => Tag_Rx_Resp_Timestamp);
T_Anchor : constant System_Time_Span := Calculate_Span
(Start_Time => Anchor_Rx_Poll_Timestamp,
End_Time => Anchor_Tx_Resp_Timestamp);
Diff : System_Time_Span;
Time_Of_Flight : System_Time_Span_Div2;
Result : Large_Meters;
begin
if T_Anchor >= T_Tag then
Time_Of_Flight := 0.0;
else
Diff := T_Tag - T_Anchor;
Time_Of_Flight := System_Time_Span_Div2 (Diff / System_Time_Span (2.0));
end if;
-- Limit the Time_
if Time_Of_Flight >= Max_Time_Of_Flight then
Time_Of_Flight := Max_Time_Of_Flight;
end if;
pragma Assert_And_Cut (Time_Of_Flight <= Max_Time_Of_Flight);
-- Convert the fixed-point representation to its integer represention
-- (in multiples of the 'Delta).
Result := Large_Meters (Time_Of_Flight / System_Time_Span_Div2 (System_Time_Span_Div2'Delta));
-- Multiply the ToF (s) with the speed of light (m/s) to yield
-- the distance (m) in meters.
Result := Result * Large_Meters (Speed_Of_Light_In_Vacuum);
-- Convert back from integer representation to fixed-point representation.
Result := Result / Large_Meters (1.0 / System_Time_Span_Div2'Delta);
return Biased_Distance (Result);
end Compute_Distance;
------------------------
-- Compute_Distance --
------------------------
function Compute_Distance
(Tag_Tx_Poll_Timestamp : in Fine_System_Time;
Anchor_Rx_Poll_Timestamp : in Fine_System_Time;
Anchor_Tx_Resp_Timestamp : in Fine_System_Time;
Tag_Rx_Resp_Timestamp : in Fine_System_Time;
Channel : in DW1000.Driver.Channel_Number;
PRF : in DW1000.Driver.PRF_Type) return Meters is
Distance_With_Bias : Biased_Distance;
begin
Distance_With_Bias := Compute_Distance
(Tag_Tx_Poll_Timestamp => Tag_Tx_Poll_Timestamp,
Anchor_Rx_Poll_Timestamp => Anchor_Rx_Poll_Timestamp,
Anchor_Tx_Resp_Timestamp => Anchor_Tx_Resp_Timestamp,
Tag_Rx_Resp_Timestamp => Tag_Rx_Resp_Timestamp);
return Remove_Ranging_Bias
(Measured_Distance => Distance_With_Bias,
Channel => Channel,
PRF => PRF);
end Compute_Distance;
end DW1000.Ranging.Single_Sided;
|
------------------------------------------------------------------------------
-- A d a r u n - t i m e s p e c i f i c a t i o n --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
-- - - - - - - - - - - - - - - - --
-- Read copyright and license at the end of ada.ads file --
------------------------------------------------------------------------------
-- $Revision: 209 $ $Date: 2013-11-30 21:03:24 +0200 (Сб., 30 нояб. 2013) $
with Ada.Task_Identification; -- See C.7.1
with System;
package Ada.Dynamic_Priorities is
pragma Preelaborate (Dynamic_Priorities);
procedure Set_Priority (Priority : in System.Any_Priority;
T : in Ada.Task_Identification.Task_Id
:= Ada.Task_Identification.Current_Task);
function Get_Priority (T : in Ada.Task_Identification.Task_Id
:= Ada.Task_Identification.Current_Task)
return System.Any_Priority;
end Ada.Dynamic_Priorities;
|
pragma Ada_2012;
pragma Style_Checks (Off);
pragma Warnings ("U");
with Interfaces.C; use Interfaces.C;
package stddef_h is
-- unsupported macro: NULL ((void *)0)
-- arg-macro: procedure offsetof (TYPE, MEMBER)
-- __builtin_offsetof (TYPE, MEMBER)
subtype ptrdiff_t is int; -- /home/synack/.config/alire/cache/dependencies/gnat_arm_elf_11.2.3_811265cb/lib/gcc/arm-eabi/11.2.0/include/stddef.h:143
subtype size_t is unsigned; -- /home/synack/.config/alire/cache/dependencies/gnat_arm_elf_11.2.3_811265cb/lib/gcc/arm-eabi/11.2.0/include/stddef.h:209
subtype wchar_t is unsigned; -- /home/synack/.config/alire/cache/dependencies/gnat_arm_elf_11.2.3_811265cb/lib/gcc/arm-eabi/11.2.0/include/stddef.h:321
subtype wint_t is unsigned; -- /home/synack/.config/alire/cache/dependencies/gnat_arm_elf_11.2.3_811265cb/lib/gcc/arm-eabi/11.2.0/include/stddef.h:350
type max_align_t is record
uu_max_align_ll : aliased Long_Long_Integer; -- /home/synack/.config/alire/cache/dependencies/gnat_arm_elf_11.2.3_811265cb/lib/gcc/arm-eabi/11.2.0/include/stddef.h:416
uu_max_align_ld : aliased long_double; -- /home/synack/.config/alire/cache/dependencies/gnat_arm_elf_11.2.3_811265cb/lib/gcc/arm-eabi/11.2.0/include/stddef.h:417
end record
with Convention => C_Pass_By_Copy; -- /home/synack/.config/alire/cache/dependencies/gnat_arm_elf_11.2.3_811265cb/lib/gcc/arm-eabi/11.2.0/include/stddef.h:426
end stddef_h;
|
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Localization, Internationalization, Globalization for Ada --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2009-2011, Vadim Godunko <vgodunko@gmail.com> --
-- All rights reserved. --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions --
-- are met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
with Ada.Unchecked_Deallocation;
with Matreshka.Internals.Locales.Defaults;
package body Matreshka.Internals.Locales is
Application_Locale : Locale_Data_Access := null;
Thread_Locale : Locale_Data_Access := null;
pragma Thread_Local_Storage (Thread_Locale);
-----------------
-- Dereference --
-----------------
procedure Dereference (Self : in out Locale_Data_Access) is
procedure Free is
new Ada.Unchecked_Deallocation (Locale_Data, Locale_Data_Access);
begin
if Matreshka.Atomics.Counters.Decrement (Self.Counter) then
pragma Assert (Self /= Defaults.Default_Locale'Access);
Free (Self);
end if;
end Dereference;
--------------
-- Get_Core --
--------------
function Get_Core
(Self : not null access Locale_Data'Class;
Code : Unicode.Code_Point)
return Unicode.Ucd.Core_Values
is
function Element is
new Matreshka.Internals.Unicode.Ucd.Generic_Element
(Matreshka.Internals.Unicode.Ucd.Core_Values,
Matreshka.Internals.Unicode.Ucd.Core_Second_Stage,
Matreshka.Internals.Unicode.Ucd.Core_Second_Stage_Access,
Matreshka.Internals.Unicode.Ucd.Core_First_Stage);
begin
return Element (Self.Core.all, Code);
end Get_Core;
----------------
-- Get_Locale --
----------------
function Get_Locale return not null Locale_Data_Access is
begin
if Thread_Locale /= null then
Reference (Thread_Locale);
return Thread_Locale;
elsif Application_Locale /= null then
Reference (Application_Locale);
return Application_Locale;
else
Reference
(Matreshka.Internals.Locales.Defaults.Default_Locale'Access);
return Matreshka.Internals.Locales.Defaults.Default_Locale'Access;
end if;
end Get_Locale;
---------------
-- Reference --
---------------
procedure Reference (Self : Locale_Data_Access) is
begin
Matreshka.Atomics.Counters.Increment (Self.Counter);
end Reference;
-----------------------
-- Set_Thread_Locale --
-----------------------
procedure Set_Thread_Locale (Self : Locale_Data_Access) is
begin
if Thread_Locale /= null then
Dereference (Thread_Locale);
end if;
Thread_Locale := Self;
if Thread_Locale /= null then
Reference (Thread_Locale);
end if;
end Set_Thread_Locale;
end Matreshka.Internals.Locales;
|
-----------------------------------------------------------------------
-- util-beans-objects-tests -- Unit tests for objects
-- Copyright (C) 2017 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
-----------------------------------------------------------------------
with Util.Test_Caller;
with Util.Beans.Objects.Maps;
package body Util.Beans.Objects.Tests is
package Caller is new Util.Test_Caller (Test, "Objects");
procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite) is
begin
Caller.Add_Test (Suite, "Test Util.Beans.Objects.Is_Array",
Test_Is_Array'Access);
Caller.Add_Test (Suite, "Test Util.Beans.Objects.Get_Count",
Test_Get_Count'Access);
Caller.Add_Test (Suite, "Test Util.Beans.Objects.Get_Value",
Test_Get_Value'Access);
Caller.Add_Test (Suite, "Test Util.Beans.Objects.Set_Value",
Test_Set_Value'Access);
end Add_Tests;
-- ------------------------------
-- Test the creation, initialization and retrieval of objects holding arrays.
-- ------------------------------
procedure Test_Is_Array (T : in out Test) is
List : Object_Array (1 .. 10);
Value : Object;
begin
for I in List'Range loop
List (I) := To_Object (I);
end loop;
Value := To_Object (List);
T.Assert (not Is_Null (Value), "Array object must not be null");
T.Assert (not Is_Empty (Value), "Array object must not be empty");
T.Assert (Is_Array (Value), "Array object must be an array");
for I in List'Range loop
T.Assert (not Is_Array (List (I)), "Is_Array returned true for non array object");
end loop;
T.Assert (not Is_Array (Null_Object), "The Null_Object is not an array");
end Test_Is_Array;
-- ------------------------------
-- Test the Get_Count operation.
-- ------------------------------
procedure Test_Get_Count (T : in out Test) is
List : Object_Array (1 .. 10);
Value : Object;
begin
for I in List'Range loop
List (I) := To_Object (I);
end loop;
Value := To_Object (List);
Util.Tests.Assert_Equals (T, List'Length, Get_Count (Value), "Get_Count is invalid");
Util.Tests.Assert_Equals (T, 0, Get_Count (Null_Object), "Get_Count is invalid");
end Test_Get_Count;
-- ------------------------------
-- Test the Get_Value operation.
-- ------------------------------
procedure Test_Get_Value (T : in out Test) is
List : Object_Array (1 .. 10);
Value : Object;
Item : Object;
begin
for I in List'Range loop
List (I) := To_Object (I);
end loop;
Value := To_Object (List);
for I in 1 .. Get_Count (Value) loop
Item := Get_Value (Value, I);
T.Assert (not Is_Null (Item), "Item at " & Positive'Image (I) & " is null");
end loop;
end Test_Get_Value;
-- ------------------------------
-- Test the Set_Value operation.
-- ------------------------------
procedure Test_Set_Value (T : in out Test) is
Value : constant Object := Maps.Create;
begin
Set_Value (Value, "username", To_Object (String '("joe")));
Set_Value (Value, "age", To_Object (Integer (32)));
Util.Tests.Assert_Equals (T, "joe", To_String (Get_Value (Value, "username")));
Util.Tests.Assert_Equals (T, 32, To_Integer (Get_Value (Value, "age")));
end Test_Set_Value;
end Util.Beans.Objects.Tests;
|
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE boost_serialization>
<boost_serialization signature="serialization::archive" version="15">
<syndb class_id="0" tracking_level="0" version="0">
<userIPLatency>-1</userIPLatency>
<userIPName></userIPName>
<cdfg class_id="1" tracking_level="1" version="0" object_id="_0">
<name>memAccess</name>
<ret_bitwidth>0</ret_bitwidth>
<ports class_id="2" tracking_level="0" version="0">
<count>3</count>
<item_version>0</item_version>
<item class_id="3" tracking_level="1" version="0" object_id="_1">
<Value class_id="4" tracking_level="0" version="0">
<Obj class_id="5" tracking_level="0" version="0">
<type>1</type>
<id>1</id>
<name>rdDataOut_V_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>rdDataOut.V.V</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>512</bitwidth>
</Value>
<direction>1</direction>
<if_type>0</if_type>
<array_size>0</array_size>
<bit_vecs class_id="7" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
<item class_id_reference="3" object_id="_2">
<Value>
<Obj>
<type>1</type>
<id>2</id>
<name>wrDataIn_V_V</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>wrDataIn.V.V</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>512</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>7</id>
<name>aggregateMemCmd_V</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName>FIFO_SRL</coreName>
</Obj>
<bitwidth>21</bitwidth>
</Value>
<direction>0</direction>
<if_type>3</if_type>
<array_size>0</array_size>
<bit_vecs>
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
</ports>
<nodes class_id="8" tracking_level="0" version="0">
<count>51</count>
<item_version>0</item_version>
<item class_id="9" tracking_level="1" version="0" object_id="_4">
<Value>
<Obj>
<type>0</type>
<id>14</id>
<name>memState_load</name>
<fileName>sources/otherModules/dramModel/dramModel.cpp</fileName>
<fileDirectory>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</fileDirectory>
<lineNumber>43</lineNumber>
<contextFuncName>memAccess</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item class_id="10" tracking_level="0" version="0">
<first>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</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>sources/otherModules/dramModel/dramModel.cpp</first>
<second>memAccess</second>
</first>
<second>43</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>82</item>
</oprand_edges>
<opcode>load</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_delay>0.00</m_delay>
</item>
<item class_id_reference="9" object_id="_5">
<Value>
<Obj>
<type>0</type>
<id>15</id>
<name>inputWord_load</name>
<fileName>sources/otherModules/dramModel/dramModel.cpp</fileName>
<fileDirectory>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</fileDirectory>
<lineNumber>54</lineNumber>
<contextFuncName>memAccess</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>sources/otherModules/dramModel/dramModel.cpp</first>
<second>memAccess</second>
</first>
<second>54</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>12</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>83</item>
</oprand_edges>
<opcode>load</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_delay>0.00</m_delay>
</item>
<item class_id_reference="9" object_id="_6">
<Value>
<Obj>
<type>0</type>
<id>16</id>
<name>t_V</name>
<fileName>sources/otherModules/dramModel/dramModel.cpp</fileName>
<fileDirectory>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</fileDirectory>
<lineNumber>55</lineNumber>
<contextFuncName>memAccess</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>sources/otherModules/dramModel/dramModel.cpp</first>
<second>memAccess</second>
</first>
<second>55</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>t.V</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>84</item>
</oprand_edges>
<opcode>load</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_delay>0.00</m_delay>
</item>
<item class_id_reference="9" object_id="_7">
<Value>
<Obj>
<type>0</type>
<id>17</id>
<name>inputWord_rdOrWr_V_l</name>
<fileName>sources/otherModules/dramModel/dramModel.cpp</fileName>
<fileDirectory>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</fileDirectory>
<lineNumber>53</lineNumber>
<contextFuncName>memAccess</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>sources/otherModules/dramModel/dramModel.cpp</first>
<second>memAccess</second>
</first>
<second>53</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>85</item>
</oprand_edges>
<opcode>load</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_delay>0.00</m_delay>
</item>
<item class_id_reference="9" object_id="_8">
<Value>
<Obj>
<type>0</type>
<id>18</id>
<name></name>
<fileName>sources/otherModules/dramModel/dramModel.cpp</fileName>
<fileDirectory>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</fileDirectory>
<lineNumber>43</lineNumber>
<contextFuncName>memAccess</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>sources/otherModules/dramModel/dramModel.cpp</first>
<second>memAccess</second>
</first>
<second>43</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>86</item>
<item>87</item>
<item>88</item>
</oprand_edges>
<opcode>br</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_delay>0.00</m_delay>
</item>
<item class_id_reference="9" object_id="_9">
<Value>
<Obj>
<type>0</type>
<id>20</id>
<name>tmp</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>tmp</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>90</item>
<item>91</item>
<item>93</item>
</oprand_edges>
<opcode>nbreadreq</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_delay>0.00</m_delay>
</item>
<item class_id_reference="9" object_id="_10">
<Value>
<Obj>
<type>0</type>
<id>21</id>
<name></name>
<fileName>sources/otherModules/dramModel/dramModel.cpp</fileName>
<fileDirectory>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</fileDirectory>
<lineNumber>46</lineNumber>
<contextFuncName>memAccess</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>sources/otherModules/dramModel/dramModel.cpp</first>
<second>memAccess</second>
</first>
<second>46</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>94</item>
<item>95</item>
<item>96</item>
</oprand_edges>
<opcode>br</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_delay>0.00</m_delay>
</item>
<item class_id_reference="9" object_id="_11">
<Value>
<Obj>
<type>0</type>
<id>23</id>
<name>tmp_2</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>tmp</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>21</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>98</item>
<item>99</item>
<item>298</item>
</oprand_edges>
<opcode>read</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_delay>2.39</m_delay>
</item>
<item class_id_reference="9" object_id="_12">
<Value>
<Obj>
<type>0</type>
<id>24</id>
<name>tmp_3</name>
<fileName>sources/otherModules/dramModel/dramModel.h</fileName>
<fileDirectory>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</fileDirectory>
<lineNumber>54</lineNumber>
<contextFuncName>operator=</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</first>
<second>
<count>3</count>
<item_version>0</item_version>
<item>
<first>
<first>/home/pratik0509/xillinx/Vivado/2018.2/common/technology/autopilot/hls_stream.h</first>
<second>read</second>
</first>
<second>127</second>
</item>
<item>
<first>
<first>sources/otherModules/dramModel/dramModel.cpp</first>
<second>memAccess</second>
</first>
<second>48</second>
</item>
<item>
<first>
<first>sources/otherModules/dramModel/dramModel.h</first>
<second>operator=</second>
</first>
<second>54</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>12</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>100</item>
</oprand_edges>
<opcode>trunc</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_delay>0.00</m_delay>
</item>
<item class_id_reference="9" object_id="_13">
<Value>
<Obj>
<type>0</type>
<id>25</id>
<name></name>
<fileName>sources/otherModules/dramModel/dramModel.h</fileName>
<fileDirectory>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</fileDirectory>
<lineNumber>54</lineNumber>
<contextFuncName>operator=</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</first>
<second>
<count>3</count>
<item_version>0</item_version>
<item>
<first>
<first>/home/pratik0509/xillinx/Vivado/2018.2/common/technology/autopilot/hls_stream.h</first>
<second>read</second>
</first>
<second>127</second>
</item>
<item>
<first>
<first>sources/otherModules/dramModel/dramModel.cpp</first>
<second>memAccess</second>
</first>
<second>48</second>
</item>
<item>
<first>
<first>sources/otherModules/dramModel/dramModel.h</first>
<second>operator=</second>
</first>
<second>54</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>101</item>
<item>102</item>
<item>289</item>
</oprand_edges>
<opcode>store</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_delay>0.92</m_delay>
</item>
<item class_id_reference="9" object_id="_14">
<Value>
<Obj>
<type>0</type>
<id>26</id>
<name>tmp_count_V_load_new</name>
<fileName>sources/otherModules/dramModel/dramModel.h</fileName>
<fileDirectory>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</fileDirectory>
<lineNumber>54</lineNumber>
<contextFuncName>operator=</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</first>
<second>
<count>3</count>
<item_version>0</item_version>
<item>
<first>
<first>/home/pratik0509/xillinx/Vivado/2018.2/common/technology/autopilot/hls_stream.h</first>
<second>read</second>
</first>
<second>127</second>
</item>
<item>
<first>
<first>sources/otherModules/dramModel/dramModel.cpp</first>
<second>memAccess</second>
</first>
<second>48</second>
</item>
<item>
<first>
<first>sources/otherModules/dramModel/dramModel.h</first>
<second>operator=</second>
</first>
<second>54</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>104</item>
<item>105</item>
<item>107</item>
<item>109</item>
</oprand_edges>
<opcode>partselect</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_delay>0.00</m_delay>
</item>
<item class_id_reference="9" object_id="_15">
<Value>
<Obj>
<type>0</type>
<id>27</id>
<name></name>
<fileName>sources/otherModules/dramModel/dramModel.h</fileName>
<fileDirectory>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</fileDirectory>
<lineNumber>54</lineNumber>
<contextFuncName>operator=</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</first>
<second>
<count>3</count>
<item_version>0</item_version>
<item>
<first>
<first>/home/pratik0509/xillinx/Vivado/2018.2/common/technology/autopilot/hls_stream.h</first>
<second>read</second>
</first>
<second>127</second>
</item>
<item>
<first>
<first>sources/otherModules/dramModel/dramModel.cpp</first>
<second>memAccess</second>
</first>
<second>48</second>
</item>
<item>
<first>
<first>sources/otherModules/dramModel/dramModel.h</first>
<second>operator=</second>
</first>
<second>54</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>110</item>
<item>111</item>
<item>290</item>
</oprand_edges>
<opcode>store</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_delay>0.92</m_delay>
</item>
<item class_id_reference="9" object_id="_16">
<Value>
<Obj>
<type>0</type>
<id>28</id>
<name>tmp_4</name>
<fileName>sources/otherModules/dramModel/dramModel.h</fileName>
<fileDirectory>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</fileDirectory>
<lineNumber>54</lineNumber>
<contextFuncName>operator=</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</first>
<second>
<count>3</count>
<item_version>0</item_version>
<item>
<first>
<first>/home/pratik0509/xillinx/Vivado/2018.2/common/technology/autopilot/hls_stream.h</first>
<second>read</second>
</first>
<second>127</second>
</item>
<item>
<first>
<first>sources/otherModules/dramModel/dramModel.cpp</first>
<second>memAccess</second>
</first>
<second>48</second>
</item>
<item>
<first>
<first>sources/otherModules/dramModel/dramModel.h</first>
<second>operator=</second>
</first>
<second>54</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>113</item>
<item>114</item>
<item>116</item>
</oprand_edges>
<opcode>bitselect</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_delay>0.00</m_delay>
</item>
<item class_id_reference="9" object_id="_17">
<Value>
<Obj>
<type>0</type>
<id>29</id>
<name></name>
<fileName>sources/otherModules/dramModel/dramModel.h</fileName>
<fileDirectory>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</fileDirectory>
<lineNumber>54</lineNumber>
<contextFuncName>operator=</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</first>
<second>
<count>3</count>
<item_version>0</item_version>
<item>
<first>
<first>/home/pratik0509/xillinx/Vivado/2018.2/common/technology/autopilot/hls_stream.h</first>
<second>read</second>
</first>
<second>127</second>
</item>
<item>
<first>
<first>sources/otherModules/dramModel/dramModel.cpp</first>
<second>memAccess</second>
</first>
<second>48</second>
</item>
<item>
<first>
<first>sources/otherModules/dramModel/dramModel.h</first>
<second>operator=</second>
</first>
<second>54</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>117</item>
<item>118</item>
<item>291</item>
</oprand_edges>
<opcode>store</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_delay>0.00</m_delay>
</item>
<item class_id_reference="9" object_id="_18">
<Value>
<Obj>
<type>0</type>
<id>30</id>
<name></name>
<fileName>sources/otherModules/dramModel/dramModel.cpp</fileName>
<fileDirectory>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</fileDirectory>
<lineNumber>49</lineNumber>
<contextFuncName>memAccess</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>sources/otherModules/dramModel/dramModel.cpp</first>
<second>memAccess</second>
</first>
<second>49</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>120</item>
<item>121</item>
<item>288</item>
</oprand_edges>
<opcode>store</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_delay>0.85</m_delay>
</item>
<item class_id_reference="9" object_id="_19">
<Value>
<Obj>
<type>0</type>
<id>31</id>
<name></name>
<fileName>sources/otherModules/dramModel/dramModel.cpp</fileName>
<fileDirectory>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</fileDirectory>
<lineNumber>50</lineNumber>
<contextFuncName>memAccess</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>sources/otherModules/dramModel/dramModel.cpp</first>
<second>memAccess</second>
</first>
<second>50</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>122</item>
</oprand_edges>
<opcode>br</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_delay>0.00</m_delay>
</item>
<item class_id_reference="9" object_id="_20">
<Value>
<Obj>
<type>0</type>
<id>33</id>
<name></name>
<fileName>sources/otherModules/dramModel/dramModel.cpp</fileName>
<fileDirectory>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</fileDirectory>
<lineNumber>51</lineNumber>
<contextFuncName>memAccess</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>sources/otherModules/dramModel/dramModel.cpp</first>
<second>memAccess</second>
</first>
<second>51</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>123</item>
</oprand_edges>
<opcode>br</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_delay>0.00</m_delay>
</item>
<item class_id_reference="9" object_id="_21">
<Value>
<Obj>
<type>0</type>
<id>35</id>
<name></name>
<fileName>sources/otherModules/dramModel/dramModel.cpp</fileName>
<fileDirectory>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</fileDirectory>
<lineNumber>53</lineNumber>
<contextFuncName>memAccess</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>sources/otherModules/dramModel/dramModel.cpp</first>
<second>memAccess</second>
</first>
<second>53</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>124</item>
<item>125</item>
<item>126</item>
</oprand_edges>
<opcode>br</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_delay>0.00</m_delay>
</item>
<item class_id_reference="9" object_id="_22">
<Value>
<Obj>
<type>0</type>
<id>37</id>
<name>tmp_6_i</name>
<fileName>sources/otherModules/dramModel/dramModel.cpp</fileName>
<fileDirectory>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</fileDirectory>
<lineNumber>54</lineNumber>
<contextFuncName>memAccess</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>sources/otherModules/dramModel/dramModel.cpp</first>
<second>memAccess</second>
</first>
<second>54</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>64</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>127</item>
</oprand_edges>
<opcode>zext</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_delay>0.00</m_delay>
</item>
<item class_id_reference="9" object_id="_23">
<Value>
<Obj>
<type>0</type>
<id>38</id>
<name>memArray_V_addr</name>
<fileName>sources/otherModules/dramModel/dramModel.cpp</fileName>
<fileDirectory>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</fileDirectory>
<lineNumber>54</lineNumber>
<contextFuncName>memAccess</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>sources/otherModules/dramModel/dramModel.cpp</first>
<second>memAccess</second>
</first>
<second>54</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>12</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>128</item>
<item>130</item>
<item>131</item>
</oprand_edges>
<opcode>getelementptr</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_delay>0.00</m_delay>
</item>
<item class_id_reference="9" object_id="_24">
<Value>
<Obj>
<type>0</type>
<id>39</id>
<name>tmp_V</name>
<fileName>sources/otherModules/dramModel/dramModel.cpp</fileName>
<fileDirectory>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</fileDirectory>
<lineNumber>54</lineNumber>
<contextFuncName>memAccess</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>sources/otherModules/dramModel/dramModel.cpp</first>
<second>memAccess</second>
</first>
<second>54</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>tmp.V</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>512</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>132</item>
</oprand_edges>
<opcode>load</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_delay>2.26</m_delay>
</item>
<item class_id_reference="9" object_id="_25">
<Value>
<Obj>
<type>0</type>
<id>40</id>
<name></name>
<fileName>sources/otherModules/dramModel/dramModel.cpp</fileName>
<fileDirectory>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</fileDirectory>
<lineNumber>54</lineNumber>
<contextFuncName>memAccess</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>sources/otherModules/dramModel/dramModel.cpp</first>
<second>memAccess</second>
</first>
<second>54</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>134</item>
<item>135</item>
<item>136</item>
</oprand_edges>
<opcode>write</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_delay>0.00</m_delay>
</item>
<item class_id_reference="9" object_id="_26">
<Value>
<Obj>
<type>0</type>
<id>41</id>
<name>tmp_8_i</name>
<fileName>sources/otherModules/dramModel/dramModel.cpp</fileName>
<fileDirectory>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</fileDirectory>
<lineNumber>55</lineNumber>
<contextFuncName>memAccess</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>sources/otherModules/dramModel/dramModel.cpp</first>
<second>memAccess</second>
</first>
<second>55</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>137</item>
<item>139</item>
</oprand_edges>
<opcode>icmp</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_delay>0.86</m_delay>
</item>
<item class_id_reference="9" object_id="_27">
<Value>
<Obj>
<type>0</type>
<id>42</id>
<name></name>
<fileName>sources/otherModules/dramModel/dramModel.cpp</fileName>
<fileDirectory>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</fileDirectory>
<lineNumber>55</lineNumber>
<contextFuncName>memAccess</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>sources/otherModules/dramModel/dramModel.cpp</first>
<second>memAccess</second>
</first>
<second>55</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>140</item>
<item>141</item>
<item>142</item>
</oprand_edges>
<opcode>br</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_delay>0.00</m_delay>
</item>
<item class_id_reference="9" object_id="_28">
<Value>
<Obj>
<type>0</type>
<id>44</id>
<name>tmp_5_i</name>
<fileName>sources/otherModules/dramModel/dramModel.cpp</fileName>
<fileDirectory>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</fileDirectory>
<lineNumber>59</lineNumber>
<contextFuncName>memAccess</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>sources/otherModules/dramModel/dramModel.cpp</first>
<second>memAccess</second>
</first>
<second>59</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>147</item>
<item>149</item>
</oprand_edges>
<opcode>add</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_delay>1.35</m_delay>
</item>
<item class_id_reference="9" object_id="_29">
<Value>
<Obj>
<type>0</type>
<id>45</id>
<name></name>
<fileName>sources/otherModules/dramModel/dramModel.cpp</fileName>
<fileDirectory>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</fileDirectory>
<lineNumber>59</lineNumber>
<contextFuncName>memAccess</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>sources/otherModules/dramModel/dramModel.cpp</first>
<second>memAccess</second>
</first>
<second>59</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>150</item>
<item>151</item>
<item>294</item>
</oprand_edges>
<opcode>store</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_delay>0.92</m_delay>
</item>
<item class_id_reference="9" object_id="_30">
<Value>
<Obj>
<type>0</type>
<id>46</id>
<name>tmp_7_i</name>
<fileName>sources/otherModules/dramModel/dramModel.cpp</fileName>
<fileDirectory>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</fileDirectory>
<lineNumber>60</lineNumber>
<contextFuncName>memAccess</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>sources/otherModules/dramModel/dramModel.cpp</first>
<second>memAccess</second>
</first>
<second>60</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>12</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>152</item>
<item>154</item>
</oprand_edges>
<opcode>add</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_delay>1.33</m_delay>
</item>
<item class_id_reference="9" object_id="_31">
<Value>
<Obj>
<type>0</type>
<id>47</id>
<name></name>
<fileName>sources/otherModules/dramModel/dramModel.cpp</fileName>
<fileDirectory>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</fileDirectory>
<lineNumber>60</lineNumber>
<contextFuncName>memAccess</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>sources/otherModules/dramModel/dramModel.cpp</first>
<second>memAccess</second>
</first>
<second>60</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>155</item>
<item>156</item>
<item>293</item>
</oprand_edges>
<opcode>store</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_delay>0.92</m_delay>
</item>
<item class_id_reference="9" object_id="_32">
<Value>
<Obj>
<type>0</type>
<id>48</id>
<name></name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>157</item>
</oprand_edges>
<opcode>br</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_delay>0.00</m_delay>
</item>
<item class_id_reference="9" object_id="_33">
<Value>
<Obj>
<type>0</type>
<id>50</id>
<name></name>
<fileName>sources/otherModules/dramModel/dramModel.cpp</fileName>
<fileDirectory>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</fileDirectory>
<lineNumber>56</lineNumber>
<contextFuncName>memAccess</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>sources/otherModules/dramModel/dramModel.cpp</first>
<second>memAccess</second>
</first>
<second>56</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>144</item>
<item>145</item>
<item>292</item>
</oprand_edges>
<opcode>store</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_delay>0.85</m_delay>
</item>
<item class_id_reference="9" object_id="_34">
<Value>
<Obj>
<type>0</type>
<id>51</id>
<name></name>
<fileName>sources/otherModules/dramModel/dramModel.cpp</fileName>
<fileDirectory>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</fileDirectory>
<lineNumber>56</lineNumber>
<contextFuncName>memAccess</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>sources/otherModules/dramModel/dramModel.cpp</first>
<second>memAccess</second>
</first>
<second>56</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>146</item>
</oprand_edges>
<opcode>br</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_delay>0.00</m_delay>
</item>
<item class_id_reference="9" object_id="_35">
<Value>
<Obj>
<type>0</type>
<id>53</id>
<name></name>
<fileName>sources/otherModules/dramModel/dramModel.cpp</fileName>
<fileDirectory>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</fileDirectory>
<lineNumber>62</lineNumber>
<contextFuncName>memAccess</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>sources/otherModules/dramModel/dramModel.cpp</first>
<second>memAccess</second>
</first>
<second>62</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>158</item>
</oprand_edges>
<opcode>br</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_delay>0.00</m_delay>
</item>
<item class_id_reference="9" object_id="_36">
<Value>
<Obj>
<type>0</type>
<id>55</id>
<name>tmp_1</name>
<fileName>sources/otherModules/dramModel/dramModel.cpp</fileName>
<fileDirectory>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</fileDirectory>
<lineNumber>63</lineNumber>
<contextFuncName>memAccess</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>sources/otherModules/dramModel/dramModel.cpp</first>
<second>memAccess</second>
</first>
<second>63</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>tmp</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>160</item>
<item>161</item>
<item>162</item>
</oprand_edges>
<opcode>nbreadreq</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_delay>0.00</m_delay>
</item>
<item class_id_reference="9" object_id="_37">
<Value>
<Obj>
<type>0</type>
<id>56</id>
<name></name>
<fileName>sources/otherModules/dramModel/dramModel.cpp</fileName>
<fileDirectory>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</fileDirectory>
<lineNumber>63</lineNumber>
<contextFuncName>memAccess</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>sources/otherModules/dramModel/dramModel.cpp</first>
<second>memAccess</second>
</first>
<second>63</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>163</item>
<item>164</item>
<item>165</item>
</oprand_edges>
<opcode>br</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_delay>0.00</m_delay>
</item>
<item class_id_reference="9" object_id="_38">
<Value>
<Obj>
<type>0</type>
<id>58</id>
<name>tmp_9_i</name>
<fileName>sources/otherModules/dramModel/dramModel.cpp</fileName>
<fileDirectory>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</fileDirectory>
<lineNumber>64</lineNumber>
<contextFuncName>memAccess</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>sources/otherModules/dramModel/dramModel.cpp</first>
<second>memAccess</second>
</first>
<second>64</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>64</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>166</item>
</oprand_edges>
<opcode>zext</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_delay>0.00</m_delay>
</item>
<item class_id_reference="9" object_id="_39">
<Value>
<Obj>
<type>0</type>
<id>59</id>
<name>tmp_V_1</name>
<fileName>sources/otherModules/dramModel/dramModel.cpp</fileName>
<fileDirectory>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</fileDirectory>
<lineNumber>64</lineNumber>
<contextFuncName>memAccess</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>sources/otherModules/dramModel/dramModel.cpp</first>
<second>memAccess</second>
</first>
<second>64</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>tmp.V</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>512</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>168</item>
<item>169</item>
<item>299</item>
</oprand_edges>
<opcode>read</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_delay>0.00</m_delay>
</item>
<item class_id_reference="9" object_id="_40">
<Value>
<Obj>
<type>0</type>
<id>60</id>
<name>memArray_V_addr_1</name>
<fileName>sources/otherModules/dramModel/dramModel.cpp</fileName>
<fileDirectory>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</fileDirectory>
<lineNumber>64</lineNumber>
<contextFuncName>memAccess</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>sources/otherModules/dramModel/dramModel.cpp</first>
<second>memAccess</second>
</first>
<second>64</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>12</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>170</item>
<item>171</item>
<item>172</item>
</oprand_edges>
<opcode>getelementptr</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_delay>0.00</m_delay>
</item>
<item class_id_reference="9" object_id="_41">
<Value>
<Obj>
<type>0</type>
<id>61</id>
<name></name>
<fileName>sources/otherModules/dramModel/dramModel.cpp</fileName>
<fileDirectory>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</fileDirectory>
<lineNumber>64</lineNumber>
<contextFuncName>memAccess</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>sources/otherModules/dramModel/dramModel.cpp</first>
<second>memAccess</second>
</first>
<second>64</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>173</item>
<item>174</item>
</oprand_edges>
<opcode>store</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_delay>2.26</m_delay>
</item>
<item class_id_reference="9" object_id="_42">
<Value>
<Obj>
<type>0</type>
<id>62</id>
<name>tmp_i</name>
<fileName>sources/otherModules/dramModel/dramModel.cpp</fileName>
<fileDirectory>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</fileDirectory>
<lineNumber>65</lineNumber>
<contextFuncName>memAccess</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>sources/otherModules/dramModel/dramModel.cpp</first>
<second>memAccess</second>
</first>
<second>65</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>175</item>
<item>176</item>
</oprand_edges>
<opcode>icmp</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_delay>0.86</m_delay>
</item>
<item class_id_reference="9" object_id="_43">
<Value>
<Obj>
<type>0</type>
<id>63</id>
<name></name>
<fileName>sources/otherModules/dramModel/dramModel.cpp</fileName>
<fileDirectory>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</fileDirectory>
<lineNumber>65</lineNumber>
<contextFuncName>memAccess</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>sources/otherModules/dramModel/dramModel.cpp</first>
<second>memAccess</second>
</first>
<second>65</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>177</item>
<item>178</item>
<item>179</item>
</oprand_edges>
<opcode>br</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_delay>0.00</m_delay>
</item>
<item class_id_reference="9" object_id="_44">
<Value>
<Obj>
<type>0</type>
<id>65</id>
<name>tmp_3_i</name>
<fileName>sources/otherModules/dramModel/dramModel.cpp</fileName>
<fileDirectory>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</fileDirectory>
<lineNumber>68</lineNumber>
<contextFuncName>memAccess</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>sources/otherModules/dramModel/dramModel.cpp</first>
<second>memAccess</second>
</first>
<second>68</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>183</item>
<item>184</item>
</oprand_edges>
<opcode>add</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_delay>1.35</m_delay>
</item>
<item class_id_reference="9" object_id="_45">
<Value>
<Obj>
<type>0</type>
<id>66</id>
<name></name>
<fileName>sources/otherModules/dramModel/dramModel.cpp</fileName>
<fileDirectory>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</fileDirectory>
<lineNumber>68</lineNumber>
<contextFuncName>memAccess</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>sources/otherModules/dramModel/dramModel.cpp</first>
<second>memAccess</second>
</first>
<second>68</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>185</item>
<item>186</item>
<item>297</item>
</oprand_edges>
<opcode>store</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_delay>0.92</m_delay>
</item>
<item class_id_reference="9" object_id="_46">
<Value>
<Obj>
<type>0</type>
<id>67</id>
<name>tmp_4_i</name>
<fileName>sources/otherModules/dramModel/dramModel.cpp</fileName>
<fileDirectory>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</fileDirectory>
<lineNumber>69</lineNumber>
<contextFuncName>memAccess</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>sources/otherModules/dramModel/dramModel.cpp</first>
<second>memAccess</second>
</first>
<second>69</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>12</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>187</item>
<item>188</item>
</oprand_edges>
<opcode>add</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_delay>1.33</m_delay>
</item>
<item class_id_reference="9" object_id="_47">
<Value>
<Obj>
<type>0</type>
<id>68</id>
<name></name>
<fileName>sources/otherModules/dramModel/dramModel.cpp</fileName>
<fileDirectory>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</fileDirectory>
<lineNumber>69</lineNumber>
<contextFuncName>memAccess</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>sources/otherModules/dramModel/dramModel.cpp</first>
<second>memAccess</second>
</first>
<second>69</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>189</item>
<item>190</item>
<item>296</item>
</oprand_edges>
<opcode>store</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_delay>0.92</m_delay>
</item>
<item class_id_reference="9" object_id="_48">
<Value>
<Obj>
<type>0</type>
<id>69</id>
<name></name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>191</item>
</oprand_edges>
<opcode>br</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_delay>0.00</m_delay>
</item>
<item class_id_reference="9" object_id="_49">
<Value>
<Obj>
<type>0</type>
<id>71</id>
<name></name>
<fileName>sources/otherModules/dramModel/dramModel.cpp</fileName>
<fileDirectory>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</fileDirectory>
<lineNumber>66</lineNumber>
<contextFuncName>memAccess</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>sources/otherModules/dramModel/dramModel.cpp</first>
<second>memAccess</second>
</first>
<second>66</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>180</item>
<item>181</item>
<item>295</item>
</oprand_edges>
<opcode>store</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_delay>0.85</m_delay>
</item>
<item class_id_reference="9" object_id="_50">
<Value>
<Obj>
<type>0</type>
<id>72</id>
<name></name>
<fileName>sources/otherModules/dramModel/dramModel.cpp</fileName>
<fileDirectory>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</fileDirectory>
<lineNumber>66</lineNumber>
<contextFuncName>memAccess</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>sources/otherModules/dramModel/dramModel.cpp</first>
<second>memAccess</second>
</first>
<second>66</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>182</item>
</oprand_edges>
<opcode>br</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_delay>0.00</m_delay>
</item>
<item class_id_reference="9" object_id="_51">
<Value>
<Obj>
<type>0</type>
<id>74</id>
<name></name>
<fileName>sources/otherModules/dramModel/dramModel.cpp</fileName>
<fileDirectory>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</fileDirectory>
<lineNumber>71</lineNumber>
<contextFuncName>memAccess</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>sources/otherModules/dramModel/dramModel.cpp</first>
<second>memAccess</second>
</first>
<second>71</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>192</item>
</oprand_edges>
<opcode>br</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_delay>0.00</m_delay>
</item>
<item class_id_reference="9" object_id="_52">
<Value>
<Obj>
<type>0</type>
<id>76</id>
<name></name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>193</item>
</oprand_edges>
<opcode>br</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_delay>0.00</m_delay>
</item>
<item class_id_reference="9" object_id="_53">
<Value>
<Obj>
<type>0</type>
<id>78</id>
<name></name>
<fileName>sources/otherModules/dramModel/dramModel.cpp</fileName>
<fileDirectory>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</fileDirectory>
<lineNumber>72</lineNumber>
<contextFuncName>memAccess</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/pratik0509/Projects/HLx_Examples/Acceleration/memcached/hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>sources/otherModules/dramModel/dramModel.cpp</first>
<second>memAccess</second>
</first>
<second>72</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>194</item>
</oprand_edges>
<opcode>br</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_delay>0.00</m_delay>
</item>
<item class_id_reference="9" object_id="_54">
<Value>
<Obj>
<type>0</type>
<id>80</id>
<name></name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>0</count>
<item_version>0</item_version>
</oprand_edges>
<opcode>ret</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_delay>0.00</m_delay>
</item>
</nodes>
<consts class_id="15" tracking_level="0" version="0">
<count>10</count>
<item_version>0</item_version>
<item class_id="16" tracking_level="1" version="0" object_id="_55">
<Value>
<Obj>
<type>2</type>
<id>92</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="_56">
<Value>
<Obj>
<type>2</type>
<id>106</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>12</content>
</item>
<item class_id_reference="16" object_id="_57">
<Value>
<Obj>
<type>2</type>
<id>108</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>19</content>
</item>
<item class_id_reference="16" object_id="_58">
<Value>
<Obj>
<type>2</type>
<id>115</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>20</content>
</item>
<item class_id_reference="16" object_id="_59">
<Value>
<Obj>
<type>2</type>
<id>119</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<const_type>0</const_type>
<content>1</content>
</item>
<item class_id_reference="16" object_id="_60">
<Value>
<Obj>
<type>2</type>
<id>129</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>64</bitwidth>
</Value>
<const_type>0</const_type>
<content>0</content>
</item>
<item class_id_reference="16" object_id="_61">
<Value>
<Obj>
<type>2</type>
<id>138</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<const_type>0</const_type>
<content>1</content>
</item>
<item class_id_reference="16" object_id="_62">
<Value>
<Obj>
<type>2</type>
<id>143</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<const_type>0</const_type>
<content>0</content>
</item>
<item class_id_reference="16" object_id="_63">
<Value>
<Obj>
<type>2</type>
<id>148</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<const_type>0</const_type>
<content>255</content>
</item>
<item class_id_reference="16" object_id="_64">
<Value>
<Obj>
<type>2</type>
<id>153</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>12</bitwidth>
</Value>
<const_type>0</const_type>
<content>1</content>
</item>
</consts>
<blocks class_id="17" tracking_level="0" version="0">
<count>17</count>
<item_version>0</item_version>
<item class_id="18" tracking_level="1" version="0" object_id="_65">
<Obj>
<type>3</type>
<id>19</id>
<name>entry</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<node_objs>
<count>5</count>
<item_version>0</item_version>
<item>14</item>
<item>15</item>
<item>16</item>
<item>17</item>
<item>18</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_66">
<Obj>
<type>3</type>
<id>22</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>2</count>
<item_version>0</item_version>
<item>20</item>
<item>21</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_67">
<Obj>
<type>3</type>
<id>32</id>
<name></name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<node_objs>
<count>9</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>
</node_objs>
</item>
<item class_id_reference="18" object_id="_68">
<Obj>
<type>3</type>
<id>34</id>
<name>._crit_edge3.i</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<node_objs>
<count>1</count>
<item_version>0</item_version>
<item>33</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_69">
<Obj>
<type>3</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>
<node_objs>
<count>1</count>
<item_version>0</item_version>
<item>35</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_70">
<Obj>
<type>3</type>
<id>43</id>
<name></name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<node_objs>
<count>6</count>
<item_version>0</item_version>
<item>37</item>
<item>38</item>
<item>39</item>
<item>40</item>
<item>41</item>
<item>42</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_71">
<Obj>
<type>3</type>
<id>49</id>
<name></name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<node_objs>
<count>5</count>
<item_version>0</item_version>
<item>44</item>
<item>45</item>
<item>46</item>
<item>47</item>
<item>48</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_72">
<Obj>
<type>3</type>
<id>52</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>2</count>
<item_version>0</item_version>
<item>50</item>
<item>51</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_73">
<Obj>
<type>3</type>
<id>54</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>53</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_74">
<Obj>
<type>3</type>
<id>57</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>2</count>
<item_version>0</item_version>
<item>55</item>
<item>56</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_75">
<Obj>
<type>3</type>
<id>64</id>
<name></name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<node_objs>
<count>6</count>
<item_version>0</item_version>
<item>58</item>
<item>59</item>
<item>60</item>
<item>61</item>
<item>62</item>
<item>63</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_76">
<Obj>
<type>3</type>
<id>70</id>
<name></name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<node_objs>
<count>5</count>
<item_version>0</item_version>
<item>65</item>
<item>66</item>
<item>67</item>
<item>68</item>
<item>69</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_77">
<Obj>
<type>3</type>
<id>73</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>2</count>
<item_version>0</item_version>
<item>71</item>
<item>72</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_78">
<Obj>
<type>3</type>
<id>75</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>74</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_79">
<Obj>
<type>3</type>
<id>77</id>
<name>._crit_edge5.i</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<node_objs>
<count>1</count>
<item_version>0</item_version>
<item>76</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_80">
<Obj>
<type>3</type>
<id>79</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>78</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_81">
<Obj>
<type>3</type>
<id>81</id>
<name>memAccess.exit</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<node_objs>
<count>1</count>
<item_version>0</item_version>
<item>80</item>
</node_objs>
</item>
</blocks>
<edges class_id="19" tracking_level="0" version="0">
<count>123</count>
<item_version>0</item_version>
<item class_id="20" tracking_level="1" version="0" object_id="_82">
<id>82</id>
<edge_type>1</edge_type>
<source_obj>3</source_obj>
<sink_obj>14</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_83">
<id>83</id>
<edge_type>1</edge_type>
<source_obj>4</source_obj>
<sink_obj>15</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_84">
<id>84</id>
<edge_type>1</edge_type>
<source_obj>5</source_obj>
<sink_obj>16</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_85">
<id>85</id>
<edge_type>1</edge_type>
<source_obj>6</source_obj>
<sink_obj>17</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_86">
<id>86</id>
<edge_type>1</edge_type>
<source_obj>14</source_obj>
<sink_obj>18</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_87">
<id>87</id>
<edge_type>2</edge_type>
<source_obj>22</source_obj>
<sink_obj>18</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_88">
<id>88</id>
<edge_type>2</edge_type>
<source_obj>36</source_obj>
<sink_obj>18</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_89">
<id>91</id>
<edge_type>1</edge_type>
<source_obj>7</source_obj>
<sink_obj>20</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_90">
<id>93</id>
<edge_type>1</edge_type>
<source_obj>92</source_obj>
<sink_obj>20</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_91">
<id>94</id>
<edge_type>1</edge_type>
<source_obj>20</source_obj>
<sink_obj>21</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_92">
<id>95</id>
<edge_type>2</edge_type>
<source_obj>34</source_obj>
<sink_obj>21</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_93">
<id>96</id>
<edge_type>2</edge_type>
<source_obj>32</source_obj>
<sink_obj>21</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_94">
<id>99</id>
<edge_type>1</edge_type>
<source_obj>7</source_obj>
<sink_obj>23</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_95">
<id>100</id>
<edge_type>1</edge_type>
<source_obj>23</source_obj>
<sink_obj>24</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_96">
<id>101</id>
<edge_type>1</edge_type>
<source_obj>24</source_obj>
<sink_obj>25</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_97">
<id>102</id>
<edge_type>1</edge_type>
<source_obj>4</source_obj>
<sink_obj>25</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_98">
<id>105</id>
<edge_type>1</edge_type>
<source_obj>23</source_obj>
<sink_obj>26</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_99">
<id>107</id>
<edge_type>1</edge_type>
<source_obj>106</source_obj>
<sink_obj>26</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_100">
<id>109</id>
<edge_type>1</edge_type>
<source_obj>108</source_obj>
<sink_obj>26</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_101">
<id>110</id>
<edge_type>1</edge_type>
<source_obj>26</source_obj>
<sink_obj>27</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_102">
<id>111</id>
<edge_type>1</edge_type>
<source_obj>5</source_obj>
<sink_obj>27</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_103">
<id>114</id>
<edge_type>1</edge_type>
<source_obj>23</source_obj>
<sink_obj>28</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_104">
<id>116</id>
<edge_type>1</edge_type>
<source_obj>115</source_obj>
<sink_obj>28</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_105">
<id>117</id>
<edge_type>1</edge_type>
<source_obj>28</source_obj>
<sink_obj>29</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_106">
<id>118</id>
<edge_type>1</edge_type>
<source_obj>6</source_obj>
<sink_obj>29</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_107">
<id>120</id>
<edge_type>1</edge_type>
<source_obj>119</source_obj>
<sink_obj>30</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_108">
<id>121</id>
<edge_type>1</edge_type>
<source_obj>3</source_obj>
<sink_obj>30</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_109">
<id>122</id>
<edge_type>2</edge_type>
<source_obj>34</source_obj>
<sink_obj>31</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_110">
<id>123</id>
<edge_type>2</edge_type>
<source_obj>81</source_obj>
<sink_obj>33</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_111">
<id>124</id>
<edge_type>1</edge_type>
<source_obj>17</source_obj>
<sink_obj>35</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_112">
<id>125</id>
<edge_type>2</edge_type>
<source_obj>43</source_obj>
<sink_obj>35</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_113">
<id>126</id>
<edge_type>2</edge_type>
<source_obj>57</source_obj>
<sink_obj>35</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_114">
<id>127</id>
<edge_type>1</edge_type>
<source_obj>15</source_obj>
<sink_obj>37</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_115">
<id>128</id>
<edge_type>1</edge_type>
<source_obj>8</source_obj>
<sink_obj>38</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_116">
<id>130</id>
<edge_type>1</edge_type>
<source_obj>129</source_obj>
<sink_obj>38</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_117">
<id>131</id>
<edge_type>1</edge_type>
<source_obj>37</source_obj>
<sink_obj>38</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_118">
<id>132</id>
<edge_type>1</edge_type>
<source_obj>38</source_obj>
<sink_obj>39</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_119">
<id>135</id>
<edge_type>1</edge_type>
<source_obj>1</source_obj>
<sink_obj>40</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_120">
<id>136</id>
<edge_type>1</edge_type>
<source_obj>39</source_obj>
<sink_obj>40</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_121">
<id>137</id>
<edge_type>1</edge_type>
<source_obj>16</source_obj>
<sink_obj>41</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_122">
<id>139</id>
<edge_type>1</edge_type>
<source_obj>138</source_obj>
<sink_obj>41</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_123">
<id>140</id>
<edge_type>1</edge_type>
<source_obj>41</source_obj>
<sink_obj>42</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_124">
<id>141</id>
<edge_type>2</edge_type>
<source_obj>49</source_obj>
<sink_obj>42</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_125">
<id>142</id>
<edge_type>2</edge_type>
<source_obj>52</source_obj>
<sink_obj>42</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_126">
<id>144</id>
<edge_type>1</edge_type>
<source_obj>143</source_obj>
<sink_obj>50</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_127">
<id>145</id>
<edge_type>1</edge_type>
<source_obj>3</source_obj>
<sink_obj>50</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_128">
<id>146</id>
<edge_type>2</edge_type>
<source_obj>54</source_obj>
<sink_obj>51</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_129">
<id>147</id>
<edge_type>1</edge_type>
<source_obj>16</source_obj>
<sink_obj>44</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_130">
<id>149</id>
<edge_type>1</edge_type>
<source_obj>148</source_obj>
<sink_obj>44</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_131">
<id>150</id>
<edge_type>1</edge_type>
<source_obj>44</source_obj>
<sink_obj>45</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_132">
<id>151</id>
<edge_type>1</edge_type>
<source_obj>5</source_obj>
<sink_obj>45</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_133">
<id>152</id>
<edge_type>1</edge_type>
<source_obj>15</source_obj>
<sink_obj>46</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_134">
<id>154</id>
<edge_type>1</edge_type>
<source_obj>153</source_obj>
<sink_obj>46</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_135">
<id>155</id>
<edge_type>1</edge_type>
<source_obj>46</source_obj>
<sink_obj>47</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_136">
<id>156</id>
<edge_type>1</edge_type>
<source_obj>4</source_obj>
<sink_obj>47</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_137">
<id>157</id>
<edge_type>2</edge_type>
<source_obj>54</source_obj>
<sink_obj>48</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_138">
<id>158</id>
<edge_type>2</edge_type>
<source_obj>79</source_obj>
<sink_obj>53</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_139">
<id>161</id>
<edge_type>1</edge_type>
<source_obj>2</source_obj>
<sink_obj>55</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_140">
<id>162</id>
<edge_type>1</edge_type>
<source_obj>92</source_obj>
<sink_obj>55</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_141">
<id>163</id>
<edge_type>1</edge_type>
<source_obj>55</source_obj>
<sink_obj>56</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_142">
<id>164</id>
<edge_type>2</edge_type>
<source_obj>77</source_obj>
<sink_obj>56</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_143">
<id>165</id>
<edge_type>2</edge_type>
<source_obj>64</source_obj>
<sink_obj>56</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_144">
<id>166</id>
<edge_type>1</edge_type>
<source_obj>15</source_obj>
<sink_obj>58</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_145">
<id>169</id>
<edge_type>1</edge_type>
<source_obj>2</source_obj>
<sink_obj>59</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_146">
<id>170</id>
<edge_type>1</edge_type>
<source_obj>8</source_obj>
<sink_obj>60</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_147">
<id>171</id>
<edge_type>1</edge_type>
<source_obj>129</source_obj>
<sink_obj>60</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_148">
<id>172</id>
<edge_type>1</edge_type>
<source_obj>58</source_obj>
<sink_obj>60</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_149">
<id>173</id>
<edge_type>1</edge_type>
<source_obj>59</source_obj>
<sink_obj>61</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_150">
<id>174</id>
<edge_type>1</edge_type>
<source_obj>60</source_obj>
<sink_obj>61</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_151">
<id>175</id>
<edge_type>1</edge_type>
<source_obj>16</source_obj>
<sink_obj>62</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_152">
<id>176</id>
<edge_type>1</edge_type>
<source_obj>138</source_obj>
<sink_obj>62</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_153">
<id>177</id>
<edge_type>1</edge_type>
<source_obj>62</source_obj>
<sink_obj>63</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_154">
<id>178</id>
<edge_type>2</edge_type>
<source_obj>70</source_obj>
<sink_obj>63</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_155">
<id>179</id>
<edge_type>2</edge_type>
<source_obj>73</source_obj>
<sink_obj>63</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_156">
<id>180</id>
<edge_type>1</edge_type>
<source_obj>143</source_obj>
<sink_obj>71</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_157">
<id>181</id>
<edge_type>1</edge_type>
<source_obj>3</source_obj>
<sink_obj>71</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_158">
<id>182</id>
<edge_type>2</edge_type>
<source_obj>75</source_obj>
<sink_obj>72</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_159">
<id>183</id>
<edge_type>1</edge_type>
<source_obj>16</source_obj>
<sink_obj>65</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_160">
<id>184</id>
<edge_type>1</edge_type>
<source_obj>148</source_obj>
<sink_obj>65</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_161">
<id>185</id>
<edge_type>1</edge_type>
<source_obj>65</source_obj>
<sink_obj>66</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_162">
<id>186</id>
<edge_type>1</edge_type>
<source_obj>5</source_obj>
<sink_obj>66</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_163">
<id>187</id>
<edge_type>1</edge_type>
<source_obj>15</source_obj>
<sink_obj>67</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_164">
<id>188</id>
<edge_type>1</edge_type>
<source_obj>153</source_obj>
<sink_obj>67</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_165">
<id>189</id>
<edge_type>1</edge_type>
<source_obj>67</source_obj>
<sink_obj>68</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_166">
<id>190</id>
<edge_type>1</edge_type>
<source_obj>4</source_obj>
<sink_obj>68</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_167">
<id>191</id>
<edge_type>2</edge_type>
<source_obj>75</source_obj>
<sink_obj>69</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_168">
<id>192</id>
<edge_type>2</edge_type>
<source_obj>77</source_obj>
<sink_obj>74</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_169">
<id>193</id>
<edge_type>2</edge_type>
<source_obj>79</source_obj>
<sink_obj>76</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_170">
<id>194</id>
<edge_type>2</edge_type>
<source_obj>81</source_obj>
<sink_obj>78</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_171">
<id>266</id>
<edge_type>2</edge_type>
<source_obj>19</source_obj>
<sink_obj>36</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_172">
<id>267</id>
<edge_type>2</edge_type>
<source_obj>19</source_obj>
<sink_obj>22</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_173">
<id>268</id>
<edge_type>2</edge_type>
<source_obj>22</source_obj>
<sink_obj>32</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_174">
<id>269</id>
<edge_type>2</edge_type>
<source_obj>22</source_obj>
<sink_obj>34</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_175">
<id>270</id>
<edge_type>2</edge_type>
<source_obj>32</source_obj>
<sink_obj>34</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_176">
<id>271</id>
<edge_type>2</edge_type>
<source_obj>34</source_obj>
<sink_obj>81</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_177">
<id>272</id>
<edge_type>2</edge_type>
<source_obj>36</source_obj>
<sink_obj>57</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_178">
<id>273</id>
<edge_type>2</edge_type>
<source_obj>36</source_obj>
<sink_obj>43</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_179">
<id>274</id>
<edge_type>2</edge_type>
<source_obj>43</source_obj>
<sink_obj>52</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_180">
<id>275</id>
<edge_type>2</edge_type>
<source_obj>43</source_obj>
<sink_obj>49</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_181">
<id>276</id>
<edge_type>2</edge_type>
<source_obj>49</source_obj>
<sink_obj>54</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_182">
<id>277</id>
<edge_type>2</edge_type>
<source_obj>52</source_obj>
<sink_obj>54</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_183">
<id>278</id>
<edge_type>2</edge_type>
<source_obj>54</source_obj>
<sink_obj>79</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_184">
<id>279</id>
<edge_type>2</edge_type>
<source_obj>57</source_obj>
<sink_obj>64</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_185">
<id>280</id>
<edge_type>2</edge_type>
<source_obj>57</source_obj>
<sink_obj>77</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_186">
<id>281</id>
<edge_type>2</edge_type>
<source_obj>64</source_obj>
<sink_obj>73</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_187">
<id>282</id>
<edge_type>2</edge_type>
<source_obj>64</source_obj>
<sink_obj>70</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_188">
<id>283</id>
<edge_type>2</edge_type>
<source_obj>70</source_obj>
<sink_obj>75</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_189">
<id>284</id>
<edge_type>2</edge_type>
<source_obj>73</source_obj>
<sink_obj>75</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_190">
<id>285</id>
<edge_type>2</edge_type>
<source_obj>75</source_obj>
<sink_obj>77</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_191">
<id>286</id>
<edge_type>2</edge_type>
<source_obj>77</source_obj>
<sink_obj>79</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_192">
<id>287</id>
<edge_type>2</edge_type>
<source_obj>79</source_obj>
<sink_obj>81</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_193">
<id>288</id>
<edge_type>4</edge_type>
<source_obj>14</source_obj>
<sink_obj>30</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_194">
<id>289</id>
<edge_type>4</edge_type>
<source_obj>15</source_obj>
<sink_obj>25</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_195">
<id>290</id>
<edge_type>4</edge_type>
<source_obj>16</source_obj>
<sink_obj>27</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_196">
<id>291</id>
<edge_type>4</edge_type>
<source_obj>17</source_obj>
<sink_obj>29</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_197">
<id>292</id>
<edge_type>4</edge_type>
<source_obj>14</source_obj>
<sink_obj>50</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_198">
<id>293</id>
<edge_type>4</edge_type>
<source_obj>15</source_obj>
<sink_obj>47</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_199">
<id>294</id>
<edge_type>4</edge_type>
<source_obj>16</source_obj>
<sink_obj>45</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_200">
<id>295</id>
<edge_type>4</edge_type>
<source_obj>14</source_obj>
<sink_obj>71</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_201">
<id>296</id>
<edge_type>4</edge_type>
<source_obj>15</source_obj>
<sink_obj>68</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_202">
<id>297</id>
<edge_type>4</edge_type>
<source_obj>16</source_obj>
<sink_obj>66</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_203">
<id>298</id>
<edge_type>4</edge_type>
<source_obj>20</source_obj>
<sink_obj>23</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_204">
<id>299</id>
<edge_type>4</edge_type>
<source_obj>55</source_obj>
<sink_obj>59</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
</edges>
</cdfg>
<cdfg_regions class_id="21" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="22" tracking_level="1" version="0" object_id="_205">
<mId>1</mId>
<mTag>memAccess</mTag>
<mType>0</mType>
<sub_regions>
<count>0</count>
<item_version>0</item_version>
</sub_regions>
<basic_blocks>
<count>17</count>
<item_version>0</item_version>
<item>19</item>
<item>22</item>
<item>32</item>
<item>34</item>
<item>36</item>
<item>43</item>
<item>49</item>
<item>52</item>
<item>54</item>
<item>57</item>
<item>64</item>
<item>70</item>
<item>73</item>
<item>75</item>
<item>77</item>
<item>79</item>
<item>81</item>
</basic_blocks>
<mII>1</mII>
<mDepth>3</mDepth>
<mMinTripCount>-1</mMinTripCount>
<mMaxTripCount>-1</mMaxTripCount>
<mMinLatency>2</mMinLatency>
<mMaxLatency>2</mMaxLatency>
<mIsDfPipe>0</mIsDfPipe>
<mDfPipe class_id="-1"></mDfPipe>
</item>
</cdfg_regions>
<fsm class_id="24" tracking_level="1" version="0" object_id="_206">
<states class_id="25" tracking_level="0" version="0">
<count>3</count>
<item_version>0</item_version>
<item class_id="26" tracking_level="1" version="0" object_id="_207">
<id>1</id>
<operations class_id="27" tracking_level="0" version="0">
<count>39</count>
<item_version>0</item_version>
<item class_id="28" tracking_level="1" version="0" object_id="_208">
<id>14</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_209">
<id>15</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_210">
<id>16</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_211">
<id>17</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_212">
<id>18</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_213">
<id>20</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_214">
<id>21</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_215">
<id>23</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_216">
<id>24</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_217">
<id>25</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_218">
<id>26</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_219">
<id>27</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_220">
<id>28</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_221">
<id>29</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_222">
<id>30</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_223">
<id>35</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_224">
<id>37</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_225">
<id>38</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_226">
<id>39</id>
<stage>2</stage>
<latency>2</latency>
</item>
<item class_id_reference="28" object_id="_227">
<id>41</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_228">
<id>42</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_229">
<id>44</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_230">
<id>45</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_231">
<id>46</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_232">
<id>47</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_233">
<id>50</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_234">
<id>55</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_235">
<id>56</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_236">
<id>58</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_237">
<id>59</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_238">
<id>60</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_239">
<id>61</id>
<stage>2</stage>
<latency>2</latency>
</item>
<item class_id_reference="28" object_id="_240">
<id>62</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_241">
<id>63</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_242">
<id>65</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_243">
<id>66</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_244">
<id>67</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_245">
<id>68</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_246">
<id>71</id>
<stage>1</stage>
<latency>1</latency>
</item>
</operations>
</item>
<item class_id_reference="26" object_id="_247">
<id>2</id>
<operations>
<count>3</count>
<item_version>0</item_version>
<item class_id_reference="28" object_id="_248">
<id>39</id>
<stage>1</stage>
<latency>2</latency>
</item>
<item class_id_reference="28" object_id="_249">
<id>40</id>
<stage>2</stage>
<latency>2</latency>
</item>
<item class_id_reference="28" object_id="_250">
<id>61</id>
<stage>1</stage>
<latency>2</latency>
</item>
</operations>
</item>
<item class_id_reference="26" object_id="_251">
<id>3</id>
<operations>
<count>17</count>
<item_version>0</item_version>
<item class_id_reference="28" object_id="_252">
<id>9</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_253">
<id>10</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_254">
<id>11</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_255">
<id>12</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_256">
<id>13</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_257">
<id>31</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_258">
<id>33</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_259">
<id>40</id>
<stage>1</stage>
<latency>2</latency>
</item>
<item class_id_reference="28" object_id="_260">
<id>48</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_261">
<id>51</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_262">
<id>53</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_263">
<id>69</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_264">
<id>72</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_265">
<id>74</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_266">
<id>76</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_267">
<id>78</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_268">
<id>80</id>
<stage>1</stage>
<latency>1</latency>
</item>
</operations>
</item>
</states>
<transitions class_id="29" tracking_level="0" version="0">
<count>2</count>
<item_version>0</item_version>
<item class_id="30" tracking_level="1" version="0" object_id="_269">
<inState>1</inState>
<outState>2</outState>
<condition class_id="31" tracking_level="0" version="0">
<id>78</id>
<sop class_id="32" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="33" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
<item class_id_reference="30" object_id="_270">
<inState>2</inState>
<outState>3</outState>
<condition>
<id>79</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="35" tracking_level="0" version="0">
<count>51</count>
<item_version>0</item_version>
<item class_id="36" tracking_level="0" version="0">
<first>14</first>
<second class_id="37" 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>16</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>17</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>18</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>20</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>21</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>23</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>24</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>25</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>26</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>27</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>28</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>29</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>30</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>31</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>33</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>35</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>37</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>38</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>39</first>
<second>
<first>0</first>
<second>1</second>
</second>
</item>
<item>
<first>40</first>
<second>
<first>1</first>
<second>1</second>
</second>
</item>
<item>
<first>41</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>42</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>44</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>45</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>46</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>47</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>48</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>50</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>51</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>53</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>55</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>56</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>58</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>59</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>60</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>61</first>
<second>
<first>0</first>
<second>1</second>
</second>
</item>
<item>
<first>62</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>63</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>65</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>66</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>67</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>68</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>69</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>71</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>72</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>74</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>76</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>78</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>80</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
</node_label_latency>
<bblk_ent_exit class_id="38" tracking_level="0" version="0">
<count>17</count>
<item_version>0</item_version>
<item class_id="39" tracking_level="0" version="0">
<first>19</first>
<second class_id="40" tracking_level="0" version="0">
<first>0</first>
<second>2</second>
</second>
</item>
<item>
<first>22</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>32</first>
<second>
<first>0</first>
<second>2</second>
</second>
</item>
<item>
<first>34</first>
<second>
<first>2</first>
<second>2</second>
</second>
</item>
<item>
<first>36</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>43</first>
<second>
<first>0</first>
<second>2</second>
</second>
</item>
<item>
<first>49</first>
<second>
<first>0</first>
<second>2</second>
</second>
</item>
<item>
<first>52</first>
<second>
<first>0</first>
<second>2</second>
</second>
</item>
<item>
<first>54</first>
<second>
<first>2</first>
<second>2</second>
</second>
</item>
<item>
<first>57</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>64</first>
<second>
<first>0</first>
<second>1</second>
</second>
</item>
<item>
<first>70</first>
<second>
<first>0</first>
<second>2</second>
</second>
</item>
<item>
<first>73</first>
<second>
<first>0</first>
<second>2</second>
</second>
</item>
<item>
<first>75</first>
<second>
<first>2</first>
<second>2</second>
</second>
</item>
<item>
<first>77</first>
<second>
<first>2</first>
<second>2</second>
</second>
</item>
<item>
<first>79</first>
<second>
<first>2</first>
<second>2</second>
</second>
</item>
<item>
<first>81</first>
<second>
<first>2</first>
<second>2</second>
</second>
</item>
</bblk_ent_exit>
<regions class_id="41" tracking_level="0" version="0">
<count>2</count>
<item_version>0</item_version>
<item class_id="42" tracking_level="1" version="0" object_id="_271">
<region_name>memAccess</region_name>
<basic_blocks>
<count>17</count>
<item_version>0</item_version>
<item>19</item>
<item>22</item>
<item>32</item>
<item>34</item>
<item>36</item>
<item>43</item>
<item>52</item>
<item>49</item>
<item>54</item>
<item>57</item>
<item>64</item>
<item>73</item>
<item>70</item>
<item>75</item>
<item>77</item>
<item>79</item>
<item>81</item>
</basic_blocks>
<nodes>
<count>56</count>
<item_version>0</item_version>
<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>20</item>
<item>21</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>33</item>
<item>35</item>
<item>37</item>
<item>38</item>
<item>39</item>
<item>40</item>
<item>41</item>
<item>42</item>
<item>50</item>
<item>51</item>
<item>44</item>
<item>45</item>
<item>46</item>
<item>47</item>
<item>48</item>
<item>53</item>
<item>55</item>
<item>56</item>
<item>58</item>
<item>59</item>
<item>60</item>
<item>61</item>
<item>62</item>
<item>63</item>
<item>71</item>
<item>72</item>
<item>65</item>
<item>66</item>
<item>67</item>
<item>68</item>
<item>69</item>
<item>74</item>
<item>76</item>
<item>78</item>
<item>80</item>
</nodes>
<anchor_node>-1</anchor_node>
<region_type>2</region_type>
<interval>0</interval>
<pipe_depth>0</pipe_depth>
</item>
<item class_id_reference="42" object_id="_272">
<region_name>memAccess</region_name>
<basic_blocks>
<count>17</count>
<item_version>0</item_version>
<item>19</item>
<item>22</item>
<item>32</item>
<item>34</item>
<item>36</item>
<item>43</item>
<item>49</item>
<item>52</item>
<item>54</item>
<item>57</item>
<item>64</item>
<item>70</item>
<item>73</item>
<item>75</item>
<item>77</item>
<item>79</item>
<item>81</item>
</basic_blocks>
<nodes>
<count>0</count>
<item_version>0</item_version>
</nodes>
<anchor_node>-1</anchor_node>
<region_type>8</region_type>
<interval>1</interval>
<pipe_depth>3</pipe_depth>
</item>
</regions>
<dp_fu_nodes class_id="43" tracking_level="0" version="0">
<count>27</count>
<item_version>0</item_version>
<item class_id="44" tracking_level="0" version="0">
<first>70</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>20</item>
</second>
</item>
<item>
<first>78</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>23</item>
</second>
</item>
<item>
<first>84</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>55</item>
</second>
</item>
<item>
<first>92</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>59</item>
</second>
</item>
<item>
<first>98</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>40</item>
<item>40</item>
</second>
</item>
<item>
<first>105</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>38</item>
</second>
</item>
<item>
<first>112</first>
<second>
<count>4</count>
<item_version>0</item_version>
<item>39</item>
<item>39</item>
<item>61</item>
<item>61</item>
</second>
</item>
<item>
<first>119</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>60</item>
</second>
</item>
<item>
<first>128</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>41</item>
<item>62</item>
</second>
</item>
<item>
<first>133</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>44</item>
<item>65</item>
</second>
</item>
<item>
<first>138</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>45</item>
<item>66</item>
</second>
</item>
<item>
<first>144</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>46</item>
<item>67</item>
</second>
</item>
<item>
<first>149</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>47</item>
<item>68</item>
</second>
</item>
<item>
<first>155</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>50</item>
<item>71</item>
</second>
</item>
<item>
<first>161</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>14</item>
</second>
</item>
<item>
<first>165</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>15</item>
</second>
</item>
<item>
<first>170</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>16</item>
</second>
</item>
<item>
<first>176</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>17</item>
</second>
</item>
<item>
<first>180</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>24</item>
</second>
</item>
<item>
<first>184</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>25</item>
</second>
</item>
<item>
<first>190</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>26</item>
</second>
</item>
<item>
<first>200</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>27</item>
</second>
</item>
<item>
<first>206</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>28</item>
</second>
</item>
<item>
<first>214</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>29</item>
</second>
</item>
<item>
<first>220</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>30</item>
</second>
</item>
<item>
<first>226</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>37</item>
</second>
</item>
<item>
<first>231</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>58</item>
</second>
</item>
</dp_fu_nodes>
<dp_fu_nodes_expression class_id="46" tracking_level="0" version="0">
<count>10</count>
<item_version>0</item_version>
<item class_id="47" tracking_level="0" version="0">
<first>grp_fu_128</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>41</item>
<item>62</item>
</second>
</item>
<item>
<first>grp_fu_133</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>44</item>
<item>65</item>
</second>
</item>
<item>
<first>grp_fu_144</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>46</item>
<item>67</item>
</second>
</item>
<item>
<first>memArray_V_addr_1_gep_fu_119</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>60</item>
</second>
</item>
<item>
<first>memArray_V_addr_gep_fu_105</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>38</item>
</second>
</item>
<item>
<first>tmp_3_fu_180</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>24</item>
</second>
</item>
<item>
<first>tmp_4_fu_206</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>28</item>
</second>
</item>
<item>
<first>tmp_6_i_fu_226</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>37</item>
</second>
</item>
<item>
<first>tmp_9_i_fu_231</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>58</item>
</second>
</item>
<item>
<first>tmp_count_V_load_new_fu_190</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>26</item>
</second>
</item>
</dp_fu_nodes_expression>
<dp_fu_nodes_module>
<count>0</count>
<item_version>0</item_version>
</dp_fu_nodes_module>
<dp_fu_nodes_io>
<count>16</count>
<item_version>0</item_version>
<item>
<first>StgValue_13_store_fu_184</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>25</item>
</second>
</item>
<item>
<first>StgValue_15_store_fu_200</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>27</item>
</second>
</item>
<item>
<first>StgValue_17_store_fu_214</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>29</item>
</second>
</item>
<item>
<first>StgValue_18_store_fu_220</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>30</item>
</second>
</item>
<item>
<first>grp_store_fu_138</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>45</item>
<item>66</item>
</second>
</item>
<item>
<first>grp_store_fu_149</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>47</item>
<item>68</item>
</second>
</item>
<item>
<first>grp_store_fu_155</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>50</item>
<item>71</item>
</second>
</item>
<item>
<first>grp_write_fu_98</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>40</item>
<item>40</item>
</second>
</item>
<item>
<first>inputWord_load_load_fu_165</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>15</item>
</second>
</item>
<item>
<first>inputWord_rdOrWr_V_l_load_fu_176</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>17</item>
</second>
</item>
<item>
<first>memState_load_load_fu_161</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>14</item>
</second>
</item>
<item>
<first>t_V_load_fu_170</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>16</item>
</second>
</item>
<item>
<first>tmp_1_nbreadreq_fu_84</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>55</item>
</second>
</item>
<item>
<first>tmp_2_read_fu_78</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>23</item>
</second>
</item>
<item>
<first>tmp_V_1_read_fu_92</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>59</item>
</second>
</item>
<item>
<first>tmp_nbreadreq_fu_70</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>20</item>
</second>
</item>
</dp_fu_nodes_io>
<return_ports>
<count>0</count>
<item_version>0</item_version>
</return_ports>
<dp_mem_port_nodes class_id="48" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="49" tracking_level="0" version="0">
<first class_id="50" tracking_level="0" version="0">
<first>memArray_V</first>
<second>0</second>
</first>
<second>
<count>4</count>
<item_version>0</item_version>
<item>39</item>
<item>39</item>
<item>61</item>
<item>61</item>
</second>
</item>
</dp_mem_port_nodes>
<dp_reg_nodes>
<count>10</count>
<item_version>0</item_version>
<item>
<first>236</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>14</item>
</second>
</item>
<item>
<first>240</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>17</item>
</second>
</item>
<item>
<first>244</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>20</item>
</second>
</item>
<item>
<first>248</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>38</item>
</second>
</item>
<item>
<first>253</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>41</item>
</second>
</item>
<item>
<first>257</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>55</item>
</second>
</item>
<item>
<first>261</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>59</item>
</second>
</item>
<item>
<first>266</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>60</item>
</second>
</item>
<item>
<first>271</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>62</item>
</second>
</item>
<item>
<first>275</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>39</item>
</second>
</item>
</dp_reg_nodes>
<dp_regname_nodes>
<count>10</count>
<item_version>0</item_version>
<item>
<first>inputWord_rdOrWr_V_l_reg_240</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>17</item>
</second>
</item>
<item>
<first>memArray_V_addr_1_reg_266</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>60</item>
</second>
</item>
<item>
<first>memArray_V_addr_reg_248</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>38</item>
</second>
</item>
<item>
<first>memState_load_reg_236</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>14</item>
</second>
</item>
<item>
<first>tmp_1_reg_257</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>55</item>
</second>
</item>
<item>
<first>tmp_8_i_reg_253</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>41</item>
</second>
</item>
<item>
<first>tmp_V_1_reg_261</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>59</item>
</second>
</item>
<item>
<first>tmp_V_reg_275</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>39</item>
</second>
</item>
<item>
<first>tmp_i_reg_271</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>62</item>
</second>
</item>
<item>
<first>tmp_reg_244</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>20</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="51" tracking_level="0" version="0">
<count>3</count>
<item_version>0</item_version>
<item class_id="52" tracking_level="0" version="0">
<first>aggregateMemCmd_V</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>nbreadreq</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>20</item>
</second>
</item>
<item>
<first>read</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>23</item>
</second>
</item>
</second>
</item>
<item>
<first>rdDataOut_V_V</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>write</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>40</item>
</second>
</item>
</second>
</item>
<item>
<first>wrDataIn_V_V</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>nbreadreq</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>55</item>
</second>
</item>
<item>
<first>read</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>59</item>
</second>
</item>
</second>
</item>
</dp_port_io_nodes>
<port2core class_id="53" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="54" tracking_level="0" version="0">
<first>7</first>
<second>FIFO_SRL</second>
</item>
</port2core>
<node2core>
<count>0</count>
<item_version>0</item_version>
</node2core>
</syndb>
</boost_serialization>
|
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Web Framework --
-- --
-- Tools Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2015, Vadim Godunko <vgodunko@gmail.com> --
-- All rights reserved. --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions --
-- are met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
with Asis.Declarations;
package body Properties.Declarations.Ordinary_Type is
---------------
-- Alignment --
---------------
function Alignment
(Engine : access Engines.Contexts.Context;
Element : Asis.Declaration;
Name : Engines.Integer_Property) return Integer is
begin
return Engine.Integer.Get_Property
(Asis.Declarations.Type_Declaration_View (Element), Name);
end Alignment;
----------
-- Code --
----------
function Code
(Engine : access Engines.Contexts.Context;
Element : Asis.Declaration;
Name : Engines.Text_Property) return League.Strings.Universal_String
is
Inside_Package : constant Boolean := Engine.Boolean.Get_Property
(Element, Engines.Inside_Package);
Result : League.Strings.Universal_String;
Down : League.Strings.Universal_String;
Name_Image : constant League.Strings.Universal_String :=
Engine.Text.Get_Property
(Asis.Declarations.Names (Element) (1), Name);
begin
if Inside_Package then
Result.Append ("_ec.");
else
Result.Append ("var ");
end if;
Result.Append (Name_Image);
Result.Append ("=");
Down := Engine.Text.Get_Property
(Asis.Declarations.Type_Declaration_View (Element), Name);
if Down.Is_Empty then
Result.Clear;
else
Result.Append (Down);
Result.Append (";");
end if;
return Result;
end Code;
----------------
-- Initialize --
----------------
function Initialize
(Engine : access Engines.Contexts.Context;
Element : Asis.Declaration;
Name : Engines.Text_Property) return League.Strings.Universal_String
is
begin
return Engine.Text.Get_Property
(Asis.Declarations.Type_Declaration_View (Element), Name);
end Initialize;
--------------------
-- Is_Simple_Type --
--------------------
function Is_Simple_Type
(Engine : access Engines.Contexts.Context;
Element : Asis.Declaration;
Name : Engines.Boolean_Property) return Boolean is
begin
return Engine.Boolean.Get_Property
(Asis.Declarations.Type_Declaration_View (Element), Name);
end Is_Simple_Type;
end Properties.Declarations.Ordinary_Type;
|
-- C34006D.ADA
-- Grant of Unlimited Rights
--
-- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687,
-- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained
-- unlimited rights in the software and documentation contained herein.
-- Unlimited rights are defined in DFAR 252.227-7013(a)(19). By making
-- this public release, the Government intends to confer upon all
-- recipients unlimited rights equal to those held by the Government.
-- These rights include rights to use, duplicate, release or disclose the
-- released technical data and computer software in whole or in part, in
-- any manner and for any purpose whatsoever, and to have or permit others
-- to do so.
--
-- DISCLAIMER
--
-- ALL MATERIALS OR INFORMATION HEREIN RELEASED, MADE AVAILABLE OR
-- DISCLOSED ARE AS IS. THE GOVERNMENT MAKES NO EXPRESS OR IMPLIED
-- WARRANTY AS TO ANY MATTER WHATSOEVER, INCLUDING THE CONDITIONS OF THE
-- SOFTWARE, DOCUMENTATION OR OTHER INFORMATION RELEASED, MADE AVAILABLE
-- OR DISCLOSED, OR THE OWNERSHIP, MERCHANTABILITY, OR FITNESS FOR A
-- PARTICULAR PURPOSE OF SAID MATERIAL.
--*
-- OBJECTIVE:
-- CHECK THAT THE REQUIRED PREDEFINED OPERATIONS ARE DECLARED
-- (IMPLICITLY) FOR DERIVED RECORD TYPES WITH DISCRIMINANTS AND WITH
-- NON-LIMITED COMPONENT TYPES.
-- HISTORY:
-- JRK 09/22/86 CREATED ORIGINAL TEST.
-- BCB 11/13/87 CHANGED TEST SO AN OBJECT'S SIZE MAY BE LESS THAN
-- THAT OF ITS TYPE.
-- RJW 08/21/89 MODIFIED CHECKS FOR SIZE.
-- PWN 01/31/95 REMOVED INCONSISTENCIES WITH ADA 9X.
WITH SYSTEM; USE SYSTEM;
WITH REPORT; USE REPORT;
PROCEDURE C34006D IS
SUBTYPE COMPONENT IS INTEGER;
PACKAGE PKG IS
MAX_LEN : CONSTANT := 10;
SUBTYPE LENGTH IS NATURAL RANGE 0 .. MAX_LEN;
TYPE PARENT (B : BOOLEAN := TRUE; L : LENGTH := 1) IS
RECORD
I : INTEGER;
CASE B IS
WHEN TRUE =>
S : STRING (1 .. L);
C : COMPONENT;
WHEN FALSE =>
F : FLOAT := 5.0;
END CASE;
END RECORD;
FUNCTION CREATE ( B : BOOLEAN;
L : LENGTH;
I : INTEGER;
S : STRING;
C : COMPONENT;
F : FLOAT;
X : PARENT -- TO RESOLVE OVERLOADING.
) RETURN PARENT;
END PKG;
USE PKG;
TYPE T IS NEW PARENT (IDENT_BOOL (TRUE), IDENT_INT (3));
X : T := (TRUE, 3, 2, "AAA", 2);
W : PARENT := (TRUE, 3, 2, "AAA", 2);
C : COMPONENT := 1;
B : BOOLEAN := FALSE;
PROCEDURE A (X : ADDRESS) IS
BEGIN
B := IDENT_BOOL (TRUE);
END A;
PACKAGE BODY PKG IS
FUNCTION CREATE
( B : BOOLEAN;
L : LENGTH;
I : INTEGER;
S : STRING;
C : COMPONENT;
F : FLOAT;
X : PARENT
) RETURN PARENT
IS
BEGIN
CASE B IS
WHEN TRUE =>
RETURN (TRUE, L, I, S, C);
WHEN FALSE =>
RETURN (FALSE, L, I, F);
END CASE;
END CREATE;
END PKG;
FUNCTION IDENT (X : T) RETURN T IS
BEGIN
IF EQUAL (X.I, X.I) THEN
RETURN X; -- ALWAYS EXECUTED.
END IF;
RETURN (TRUE, 3, -1, "---", -1);
END IDENT;
BEGIN
TEST ("C34006D", "CHECK THAT THE REQUIRED PREDEFINED OPERATIONS " &
"ARE DECLARED (IMPLICITLY) FOR DERIVED " &
"RECORD TYPES WITH DISCRIMINANTS AND WITH " &
"NON-LIMITED COMPONENT TYPES");
X := IDENT ((TRUE, 3, 1, "ABC", 4));
IF X /= (TRUE, 3, 1, "ABC", 4) THEN
FAILED ("INCORRECT :=");
END IF;
IF T'(X) /= (TRUE, 3, 1, "ABC", 4) THEN
FAILED ("INCORRECT QUALIFICATION");
END IF;
IF T (X) /= (TRUE, 3, 1, "ABC", 4) THEN
FAILED ("INCORRECT SELF CONVERSION");
END IF;
IF EQUAL (3, 3) THEN
W := (TRUE, 3, 1, "ABC", 4);
END IF;
IF T (W) /= (TRUE, 3, 1, "ABC", 4) THEN
FAILED ("INCORRECT CONVERSION FROM PARENT");
END IF;
BEGIN
IF PARENT (X) /= (TRUE, 3, 1, "ABC", 4) OR
PARENT (CREATE (FALSE, 2, 3, "XX", 5, 6.0, X)) /=
(FALSE, 2, 3, 6.0) THEN
FAILED ("INCORRECT CONVERSION TO PARENT");
END IF;
EXCEPTION
WHEN CONSTRAINT_ERROR =>
FAILED ("CALL TO CREATE RAISED CONSTRAINT_ERROR - 1");
WHEN OTHERS =>
FAILED ("CALL TO CREATE RAISED EXCEPTION - 1");
END;
IF IDENT ((TRUE, 3, 1, "ABC", 4)) /= (TRUE, 3, 1, "ABC", 4) OR
X = (FALSE, 3, 1, 4.0) THEN
FAILED ("INCORRECT AGGREGATE");
END IF;
BEGIN
IF X.B /= TRUE OR X.L /= 3 OR
CREATE (FALSE, 2, 3, "XX", 5, 6.0, X) . B /= FALSE OR
CREATE (FALSE, 2, 3, "XX", 5, 6.0, X) . L /= 2 THEN
FAILED ("INCORRECT SELECTION (DISCRIMINANT)");
END IF;
EXCEPTION
WHEN CONSTRAINT_ERROR =>
FAILED ("CALL TO CREATE RAISED CONSTRAINT_ERROR - 2");
WHEN OTHERS =>
FAILED ("CALL TO CREATE RAISED EXCEPTION - 2");
END;
BEGIN
IF X.I /= 1 OR X.S /= "ABC" OR X.C /= 4 OR
CREATE (FALSE, 2, 3, "XX", 5, 6.0, X) . I /= 3 OR
CREATE (FALSE, 2, 3, "XX", 5, 6.0, X) . F /= 6.0 THEN
FAILED ("INCORRECT SELECTION (VALUE)");
END IF;
EXCEPTION
WHEN CONSTRAINT_ERROR =>
FAILED ("CALL TO CREATE RAISED CONSTRAINT_ERROR - 3");
WHEN OTHERS =>
FAILED ("CALL TO CREATE RAISED EXCEPTION - 3");
END;
X.I := IDENT_INT (7);
X.S := IDENT_STR ("XYZ");
X.C := IDENT_INT (9);
IF X /= (TRUE, 3, 7, "XYZ", 9) THEN
FAILED ("INCORRECT SELECTION (ASSIGNMENT)");
END IF;
X := IDENT ((TRUE, 3, 1, "ABC", 4));
IF X = IDENT ((TRUE, 3, 1, "ABC", 5)) OR
X = (FALSE, 2, 3, 6.0) THEN
FAILED ("INCORRECT =");
END IF;
IF X /= IDENT ((TRUE, 3, 1, "ABC", 4)) OR
NOT (X /= (FALSE, 2, 3, 6.0)) THEN
FAILED ("INCORRECT /=");
END IF;
IF NOT (X IN T) OR (FALSE, 2, 3, 6.0) IN T THEN
FAILED ("INCORRECT ""IN""");
END IF;
IF X NOT IN T OR NOT ((FALSE, 2, 3, 6.0) NOT IN T) THEN
FAILED ("INCORRECT ""NOT IN""");
END IF;
B := FALSE;
A (X'ADDRESS);
IF NOT B THEN
FAILED ("INCORRECT 'ADDRESS");
END IF;
IF NOT X'CONSTRAINED THEN
FAILED ("INCORRECT 'CONSTRAINED");
END IF;
IF X.C'FIRST_BIT < 0 THEN
FAILED ("INCORRECT 'FIRST_BIT");
END IF;
IF X.C'LAST_BIT < 0 OR
X.C'LAST_BIT - X.C'FIRST_BIT + 1 /= X.C'SIZE THEN
FAILED ("INCORRECT 'LAST_BIT");
END IF;
IF X.C'POSITION < 0 THEN
FAILED ("INCORRECT 'POSITION");
END IF;
RESULT;
END C34006D;
|
-- SPDX-FileCopyrightText: 2021 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
package WebIDL is
pragma Pure;
end WebIDL;
|
with Ada.Text_IO;
procedure Octal is
package IIO is new Ada.Text_IO.Integer_IO(Integer);
begin
for I in 0 .. Integer'Last loop
IIO.Put(I, Base => 8);
Ada.Text_IO.New_Line;
end loop;
end Octal;
|
-- { dg-do compile }
with Deques;
procedure Show_Deques_Priority is
use Deques;
PD : aliased P_Deque := Create;
begin
PD.Pop;
end Show_Deques_Priority;
|
with Interfaces; use Interfaces;
-- @summary functions to provide a string image of numbers
-- overapproximating the length, otherwise too much code needed.
package Generic_Bounded_Image with SPARK_Mode is
generic
type T is (<>); -- any modular type or discrete
function Image_32 (item : T) return String
with Post => Image_32'Result'Length in 1 .. 32 and Image_32'Result'First = 1, Inline;
generic
type T is (<>); -- any modular type or discrete
function Image_4 (item : T) return String
with Post => Image_4'Result'Length in 1 .. 4 and Image_4'Result'First = 1, Inline;
end Generic_Bounded_Image;
|
-----------------------------------------------------------------------
-- gen-artifacts -- Artifacts for Code Generator
-- Copyright (C) 2011, 2012, 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 Ada.Finalization;
with DOM.Core;
with Util.Log;
with Gen.Model;
with Gen.Model.Packages;
with Gen.Model.Projects;
-- The <b>Gen.Artifacts</b> package represents the methods and process to prepare,
-- control and realize the code generation.
package Gen.Artifacts is
type Iteration_Mode is (ITERATION_PACKAGE, ITERATION_TABLE);
type Generator is limited interface and Util.Log.Logging;
-- Report an error and set the exit status accordingly
procedure Error (Handler : in out Generator;
Message : in String;
Arg1 : in String;
Arg2 : in String := "") is abstract;
-- Get the config directory path.
function Get_Config_Directory (Handler : in Generator) return String is abstract;
-- Get the result directory path.
function Get_Result_Directory (Handler : in Generator) return String is abstract;
-- Get the configuration parameter.
function Get_Parameter (Handler : in Generator;
Name : in String;
Default : in String := "") return String is abstract;
-- Get the configuration parameter.
function Get_Parameter (Handler : in Generator;
Name : in String;
Default : in Boolean := False) return Boolean is abstract;
-- Tell the generator to activate the generation of the given template name.
-- The name is a property name that must be defined in generator.properties to
-- indicate the template file. Several artifacts can trigger the generation
-- of a given template. The template is generated only once.
procedure Add_Generation (Handler : in out Generator;
Name : in String;
Mode : in Iteration_Mode;
Mapping : in String) is abstract;
-- Scan the dynamo directories and execute the <b>Process</b> procedure with the
-- directory path.
procedure Scan_Directories (Handler : in Generator;
Process : not null access
procedure (Dir : in String)) is abstract;
-- ------------------------------
-- Model Definition
-- ------------------------------
type Artifact is abstract new Ada.Finalization.Limited_Controlled with private;
-- 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);
-- Prepare the model after all the configuration files have been read and before
-- actually invoking the generation.
procedure Prepare (Handler : in out Artifact;
Model : in out Gen.Model.Packages.Model_Definition'Class;
Context : in out Generator'Class) is null;
-- After the generation, perform a finalization step for the generation process.
procedure Finish (Handler : in out Artifact;
Model : in out Gen.Model.Packages.Model_Definition'Class;
Project : in out Gen.Model.Projects.Project_Definition'Class;
Context : in out Generator'Class) is null;
-- Check whether this artifact has been initialized.
function Is_Initialized (Handler : in Artifact) return Boolean;
private
type Artifact is abstract new Ada.Finalization.Limited_Controlled with record
Initialized : Boolean := False;
end record;
end Gen.Artifacts;
|
-- This spec has been automatically generated from STM32WB55x.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package STM32_SVD.CRS is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype CR_TRIM_Field is HAL.UInt6;
type CR_Register is record
SYNCOKIE : Boolean := False;
SYNCWARNIE : Boolean := False;
ERRIE : Boolean := False;
ESYNCIE : Boolean := False;
-- unspecified
Reserved_4_4 : HAL.Bit := 16#0#;
CEN : Boolean := False;
AUTOTRIMEN : Boolean := False;
SWSYNC : Boolean := False;
TRIM : CR_TRIM_Field := 16#0#;
-- unspecified
Reserved_14_31 : HAL.UInt18 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for CR_Register use record
SYNCOKIE at 0 range 0 .. 0;
SYNCWARNIE at 0 range 1 .. 1;
ERRIE at 0 range 2 .. 2;
ESYNCIE at 0 range 3 .. 3;
Reserved_4_4 at 0 range 4 .. 4;
CEN at 0 range 5 .. 5;
AUTOTRIMEN at 0 range 6 .. 6;
SWSYNC at 0 range 7 .. 7;
TRIM at 0 range 8 .. 13;
Reserved_14_31 at 0 range 14 .. 31;
end record;
subtype CFGR_RELOAD_Field is HAL.UInt16;
subtype CFGR_FELIM_Field is HAL.UInt8;
subtype CFGR_SYNCDIV_Field is HAL.UInt3;
subtype CFGR_SYNCSRC_Field is HAL.UInt2;
type CFGR_Register is record
RELOAD : CFGR_RELOAD_Field := 16#0#;
FELIM : CFGR_FELIM_Field := 16#0#;
SYNCDIV : CFGR_SYNCDIV_Field := 16#0#;
-- unspecified
Reserved_27_27 : HAL.Bit := 16#0#;
SYNCSRC : CFGR_SYNCSRC_Field := 16#0#;
-- unspecified
Reserved_30_30 : HAL.Bit := 16#0#;
SYNCPOL : Boolean := False;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for CFGR_Register use record
RELOAD at 0 range 0 .. 15;
FELIM at 0 range 16 .. 23;
SYNCDIV at 0 range 24 .. 26;
Reserved_27_27 at 0 range 27 .. 27;
SYNCSRC at 0 range 28 .. 29;
Reserved_30_30 at 0 range 30 .. 30;
SYNCPOL at 0 range 31 .. 31;
end record;
subtype ISR_FECAP_Field is HAL.UInt16;
type ISR_Register is record
SYNCOKF : Boolean := False;
SYNCWARNF : Boolean := False;
ERRF : Boolean := False;
ESYNCF : Boolean := False;
-- unspecified
Reserved_4_7 : HAL.UInt4 := 16#0#;
SYNCERR : Boolean := False;
SYNCMISS : Boolean := False;
TRIMOVF : Boolean := False;
-- unspecified
Reserved_11_14 : HAL.UInt4 := 16#0#;
FEDIR : Boolean := False;
FECAP : ISR_FECAP_Field := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for ISR_Register use record
SYNCOKF at 0 range 0 .. 0;
SYNCWARNF at 0 range 1 .. 1;
ERRF at 0 range 2 .. 2;
ESYNCF at 0 range 3 .. 3;
Reserved_4_7 at 0 range 4 .. 7;
SYNCERR at 0 range 8 .. 8;
SYNCMISS at 0 range 9 .. 9;
TRIMOVF at 0 range 10 .. 10;
Reserved_11_14 at 0 range 11 .. 14;
FEDIR at 0 range 15 .. 15;
FECAP at 0 range 16 .. 31;
end record;
type ICR_Register is record
SYNCOKC : Boolean := False;
SYNCWARNC : Boolean := False;
ERRC : Boolean := False;
ESYNCC : Boolean := False;
-- unspecified
Reserved_4_31 : HAL.UInt28 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for ICR_Register use record
SYNCOKC at 0 range 0 .. 0;
SYNCWARNC at 0 range 1 .. 1;
ERRC at 0 range 2 .. 2;
ESYNCC at 0 range 3 .. 3;
Reserved_4_31 at 0 range 4 .. 31;
end record;
-----------------
-- Peripherals --
-----------------
type CRS_Peripheral is record
CR : aliased CR_Register;
CFGR : aliased CFGR_Register;
ISR : aliased ISR_Register;
ICR : aliased ICR_Register;
end record
with Volatile;
for CRS_Peripheral use record
CR at 16#0# range 0 .. 31;
CFGR at 16#4# range 0 .. 31;
ISR at 16#8# range 0 .. 31;
ICR at 16#C# range 0 .. 31;
end record;
CRS_Periph : aliased CRS_Peripheral
with Import, Address => System'To_Address (16#40006000#);
end STM32_SVD.CRS;
|
------------------------------------------------------------------------------
-- --
-- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- S Y S T E M . T A S K I N G . E N T R Y _ C A L L S --
-- --
-- B o d y --
-- --
-- $Revision$
-- --
-- Copyright (C) 1991-2001, Florida State University --
-- --
-- GNARL is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 2, or (at your option) any later ver- --
-- sion. GNARL is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
-- for more details. You should have received a copy of the GNU General --
-- Public License distributed with GNARL; see file COPYING. If not, write --
-- to the Free Software Foundation, 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. --
-- --
-- GNARL was developed by the GNARL team at Florida State University. It is --
-- now maintained by Ada Core Technologies Inc. in cooperation with Florida --
-- State University (http://www.gnat.com). --
-- --
------------------------------------------------------------------------------
-- This package provides internal RTS calls implementing operations
-- that apply to general entry calls, that is, calls to either
-- protected or task entries.
-- These declarations are not part of the GNARL interface
with System.Task_Primitives.Operations;
-- used for STPO.Write_Lock
-- Unlock
-- STPO.Get_Priority
-- Sleep
-- Timed_Sleep
with System.Tasking.Initialization;
-- used for Change_Base_Priority
-- Poll_Base_Priority_Change_At_Entry_Call
-- Dynamic_Priority_Support
-- Defer_Abort/Undefer_Abort
with System.Tasking.Protected_Objects.Entries;
-- used for To_Protection
with System.Tasking.Protected_Objects.Operations;
-- used for PO_Service_Entries
with System.Tasking.Queuing;
-- used for Requeue_Call_With_New_Prio
-- Onqueue
-- Dequeue_Call
with System.Tasking.Utilities;
-- used for Exit_One_ATC_Level
package body System.Tasking.Entry_Calls is
package STPO renames System.Task_Primitives.Operations;
use System.Task_Primitives;
use System.Tasking.Protected_Objects.Entries;
use System.Tasking.Protected_Objects.Operations;
-- DO NOT use Protected_Objects.Lock or Protected_Objects.Unlock
-- internally. Those operations will raise Program_Error, which
-- we do are not prepared to handle inside the RTS. Instead, use
-- System.Task_Primitives lock operations directly on Protection.L.
-----------------------
-- Local Subprograms --
-----------------------
procedure Lock_Server (Entry_Call : Entry_Call_Link);
-- This locks the server targeted by Entry_Call.
--
-- This may be a task or a protected object,
-- depending on the target of the original call or any subsequent
-- requeues.
--
-- This routine is needed because the field specifying the server
-- for this call must be protected by the server's mutex. If it were
-- protected by the caller's mutex, accessing the server's queues would
-- require locking the caller to get the server, locking the server,
-- and then accessing the queues. This involves holding two ATCB
-- locks at once, something which we can guarantee that it will always
-- be done in the same order, or locking a protected object while we
-- hold an ATCB lock, something which is not permitted. Since
-- the server cannot be obtained reliably, it must be obtained unreliably
-- and then checked again once it has been locked.
procedure Unlock_Server (Entry_Call : Entry_Call_Link);
-- STPO.Unlock the server targeted by Entry_Call. The server must
-- be locked before calling this.
procedure Unlock_And_Update_Server
(Self_ID : Task_ID;
Entry_Call : Entry_Call_Link);
-- Similar to Unlock_Server, but services entry calls if the
-- server is a protected object.
procedure Check_Pending_Actions_For_Entry_Call
(Self_ID : Task_ID;
Entry_Call : Entry_Call_Link);
pragma Inline (Check_Pending_Actions_For_Entry_Call);
-- This procedure performs priority change of a queued call and
-- dequeuing of an entry call when an the call is cancelled.
-- If the call is dequeued the state should be set to Cancelled.
procedure Poll_Base_Priority_Change_At_Entry_Call
(Self_ID : Task_ID;
Entry_Call : Entry_Call_Link);
pragma Inline (Poll_Base_Priority_Change_At_Entry_Call);
-- Has to be called with the Self_ID's ATCB write-locked.
-- May temporariliy release the lock.
---------------------
-- Check_Exception --
---------------------
-- Raise any pending exception from the Entry_Call.
-- This should be called at the end of every compiler interface
-- procedure that implements an entry call.
-- In principle, the caller should not be abort-deferred (unless
-- the application program violates the Ada language rules by doing
-- entry calls from within protected operations -- an erroneous practice
-- apparently followed with success by some adventurous GNAT users).
-- Absolutely, the caller should not be holding any locks, or there
-- will be deadlock.
procedure Check_Exception
(Self_ID : Task_ID;
Entry_Call : Entry_Call_Link)
is
use type Ada.Exceptions.Exception_Id;
procedure Internal_Raise (X : Ada.Exceptions.Exception_Id);
pragma Import (C, Internal_Raise, "__gnat_raise_with_msg");
E : constant Ada.Exceptions.Exception_Id :=
Entry_Call.Exception_To_Raise;
begin
-- pragma Assert (Self_ID.Deferral_Level = 0);
-- The above may be useful for debugging, but the Florist packages
-- contain critical sections that defer abort and then do entry calls,
-- which causes the above Assert to trip.
if E /= Ada.Exceptions.Null_Id then
Internal_Raise (E);
end if;
end Check_Exception;
-----------------------------------------
-- Check_Pending_Actions_For_Entry_Call --
-----------------------------------------
-- Call only with abort deferred and holding lock of Self_ID. This
-- is a bit of common code for all entry calls. The effect is to do
-- any deferred base priority change operation, in case some other
-- task called STPO.Set_Priority while the current task had abort deferred,
-- and to dequeue the call if the call has been aborted.
procedure Check_Pending_Actions_For_Entry_Call
(Self_ID : Task_ID;
Entry_Call : Entry_Call_Link)
is
begin
pragma Assert (Self_ID = Entry_Call.Self);
Poll_Base_Priority_Change_At_Entry_Call (Self_ID, Entry_Call);
if Self_ID.Pending_ATC_Level < Self_ID.ATC_Nesting_Level
and then Entry_Call.State = Now_Abortable
then
STPO.Unlock (Self_ID);
Lock_Server (Entry_Call);
if Queuing.Onqueue (Entry_Call)
and then Entry_Call.State = Now_Abortable
then
Queuing.Dequeue_Call (Entry_Call);
if Entry_Call.Cancellation_Attempted then
Entry_Call.State := Cancelled;
else
Entry_Call.State := Done;
end if;
Unlock_And_Update_Server (Self_ID, Entry_Call);
else
Unlock_Server (Entry_Call);
end if;
STPO.Write_Lock (Self_ID);
end if;
end Check_Pending_Actions_For_Entry_Call;
-----------------
-- Lock_Server --
-----------------
-- This should only be called by the Entry_Call.Self.
-- It should be holding no other ATCB locks at the time.
procedure Lock_Server (Entry_Call : Entry_Call_Link) is
Test_Task : Task_ID;
Test_PO : Protection_Entries_Access;
Ceiling_Violation : Boolean;
Failures : Integer := 0;
begin
Test_Task := Entry_Call.Called_Task;
loop
if Test_Task = null then
-- Entry_Call was queued on a protected object,
-- or in transition, when we last fetched Test_Task.
Test_PO := To_Protection (Entry_Call.Called_PO);
if Test_PO = null then
-- We had very bad luck, interleaving with TWO different
-- requeue operations. Go around the loop and try again.
STPO.Yield;
else
Lock_Entries (Test_PO, Ceiling_Violation);
-- ????
-- The following code allows Lock_Server to be called
-- when cancelling a call, to allow for the possibility
-- that the priority of the caller has been raised
-- beyond that of the protected entry call by
-- Ada.Dynamic_Priorities.STPO.Set_Priority.
-- If the current task has a higher priority than the ceiling
-- of the protected object, temporarily lower it. It will
-- be reset in Unlock.
if Ceiling_Violation then
declare
Current_Task : Task_ID := STPO.Self;
Old_Base_Priority : System.Any_Priority;
begin
STPO.Write_Lock (Current_Task);
Old_Base_Priority := Current_Task.Common.Base_Priority;
Current_Task.New_Base_Priority := Test_PO.Ceiling;
System.Tasking.Initialization.Change_Base_Priority
(Current_Task);
STPO.Unlock (Current_Task);
-- Following lock should not fail
Lock_Entries (Test_PO);
Test_PO.Old_Base_Priority := Old_Base_Priority;
Test_PO.Pending_Action := True;
end;
end if;
exit when To_Address (Test_PO) = Entry_Call.Called_PO;
Unlock_Entries (Test_PO);
end if;
else
STPO.Write_Lock (Test_Task);
exit when Test_Task = Entry_Call.Called_Task;
STPO.Unlock (Test_Task);
end if;
Test_Task := Entry_Call.Called_Task;
Failures := Failures + 1;
pragma Assert (Failures <= 5);
end loop;
end Lock_Server;
---------------------------------------------
-- Poll_Base_Priority_Change_At_Entry_Call --
---------------------------------------------
-- A specialized version of Poll_Base_Priority_Change,
-- that does the optional entry queue reordering.
procedure Poll_Base_Priority_Change_At_Entry_Call
(Self_ID : Task_ID;
Entry_Call : Entry_Call_Link)
is
begin
if Initialization.Dynamic_Priority_Support
and then Self_ID.Pending_Priority_Change
then
-- Check for ceiling violations ???
Self_ID.Pending_Priority_Change := False;
if Self_ID.Common.Base_Priority = Self_ID.New_Base_Priority then
STPO.Unlock (Self_ID);
STPO.Yield;
STPO.Write_Lock (Self_ID);
else
if Self_ID.Common.Base_Priority < Self_ID.New_Base_Priority then
-- Raising priority
Self_ID.Common.Base_Priority := Self_ID.New_Base_Priority;
STPO.Set_Priority (Self_ID, Self_ID.Common.Base_Priority);
else
-- Lowering priority
Self_ID.Common.Base_Priority := Self_ID.New_Base_Priority;
STPO.Set_Priority (Self_ID, Self_ID.Common.Base_Priority);
STPO.Unlock (Self_ID);
STPO.Yield;
STPO.Write_Lock (Self_ID);
end if;
end if;
-- Requeue the entry call at the new priority.
-- We need to requeue even if the new priority is the same than
-- the previous (see ACVC cxd4006).
STPO.Unlock (Self_ID);
Lock_Server (Entry_Call);
Queuing.Requeue_Call_With_New_Prio
(Entry_Call, STPO.Get_Priority (Self_ID));
Unlock_And_Update_Server (Self_ID, Entry_Call);
STPO.Write_Lock (Self_ID);
end if;
end Poll_Base_Priority_Change_At_Entry_Call;
--------------------
-- Reset_Priority --
--------------------
-- Reset the priority of a task completing an accept statement to
-- the value it had before the call.
procedure Reset_Priority
(Acceptor_Prev_Priority : Rendezvous_Priority;
Acceptor : Task_ID) is
begin
if Acceptor_Prev_Priority /= Priority_Not_Boosted then
STPO.Set_Priority (Acceptor, Acceptor_Prev_Priority,
Loss_Of_Inheritance => True);
end if;
end Reset_Priority;
-- ???
-- Check why we don't need any kind of lock to do this.
-- Do we limit this kind of "active" priority change to be done
-- by the task for itself only?
------------------------------
-- Try_To_Cancel_Entry_Call --
------------------------------
-- This is used to implement the Cancel_Task_Entry_Call and
-- Cancel_Protected_Entry_Call.
-- Try to cancel async. entry call.
-- Effect includes Abort_To_Level and Wait_For_Completion.
-- Cancelled = True iff the cancelation was successful, i.e.,
-- the call was not Done before this call.
-- On return, the call is off-queue and the ATC level is reduced by one.
procedure Try_To_Cancel_Entry_Call (Succeeded : out Boolean) is
Entry_Call : Entry_Call_Link;
Self_ID : constant Task_ID := STPO.Self;
use type Ada.Exceptions.Exception_Id;
begin
Entry_Call := Self_ID.Entry_Calls (Self_ID.ATC_Nesting_Level)'Access;
-- Experimentation has shown that abort is sometimes (but not
-- always) already deferred when Cancel_X_Entry_Call is called.
-- That may indicate an error. Find out what is going on. ???
pragma Assert (Entry_Call.Mode = Asynchronous_Call);
pragma Assert (Self_ID = Self);
Initialization.Defer_Abort_Nestable (Self_ID);
STPO.Write_Lock (Self_ID);
Entry_Call.Cancellation_Attempted := True;
if Self_ID.Pending_ATC_Level >= Entry_Call.Level then
Self_ID.Pending_ATC_Level := Entry_Call.Level - 1;
end if;
Entry_Calls.Wait_For_Completion (Self_ID, Entry_Call);
STPO.Unlock (Self_ID);
Succeeded := Entry_Call.State = Cancelled;
if Succeeded then
Initialization.Undefer_Abort_Nestable (Self_ID);
else
-- ????
Initialization.Undefer_Abort_Nestable (Self_ID);
-- Ideally, abort should no longer be deferred at this
-- point, so we should be able to call Check_Exception.
-- The loop below should be considered temporary,
-- to work around the possiblility that abort may be deferred
-- more than one level deep.
if Entry_Call.Exception_To_Raise /= Ada.Exceptions.Null_Id then
while Self_ID.Deferral_Level > 0 loop
System.Tasking.Initialization.Undefer_Abort_Nestable (Self_ID);
end loop;
Entry_Calls.Check_Exception (Self_ID, Entry_Call);
end if;
end if;
end Try_To_Cancel_Entry_Call;
------------------------------
-- Unlock_And_Update_Server --
------------------------------
procedure Unlock_And_Update_Server
(Self_ID : Task_ID;
Entry_Call : Entry_Call_Link)
is
Called_PO : Protection_Entries_Access;
Caller : Task_ID;
begin
if Entry_Call.Called_Task /= null then
STPO.Unlock (Entry_Call.Called_Task);
else
Called_PO := To_Protection (Entry_Call.Called_PO);
PO_Service_Entries (Self_ID, Called_PO);
if Called_PO.Pending_Action then
Called_PO.Pending_Action := False;
Caller := STPO.Self;
STPO.Write_Lock (Caller);
Caller.New_Base_Priority := Called_PO.Old_Base_Priority;
Initialization.Change_Base_Priority (Caller);
STPO.Unlock (Caller);
end if;
Unlock_Entries (Called_PO);
end if;
end Unlock_And_Update_Server;
-------------------
-- Unlock_Server --
-------------------
procedure Unlock_Server (Entry_Call : Entry_Call_Link) is
Caller : Task_ID;
Called_PO : Protection_Entries_Access;
begin
if Entry_Call.Called_Task /= null then
STPO.Unlock (Entry_Call.Called_Task);
else
Called_PO := To_Protection (Entry_Call.Called_PO);
if Called_PO.Pending_Action then
Called_PO.Pending_Action := False;
Caller := STPO.Self;
STPO.Write_Lock (Caller);
Caller.New_Base_Priority := Called_PO.Old_Base_Priority;
Initialization.Change_Base_Priority (Caller);
STPO.Unlock (Caller);
end if;
Unlock_Entries (Called_PO);
end if;
end Unlock_Server;
-------------------------
-- Wait_For_Completion--
-------------------------
-- Call this only when holding Self_ID locked
-- If this is a conditional call, it should be cancelled when it
-- becomes abortable. This is checked in the loop below.
-- We do the same thing for Asynchronous_Call. Executing the following
-- loop will clear the Pending_Action field if there is no
-- Pending_Action. We want the call made from Cancel_Task_Entry_Call
-- to check the abortion level so that we make sure that the Cancelled
-- field reflect the status of an Asynchronous_Call properly.
-- This problem came up when the triggered statement and the abortable
-- part depend on entries of the same task. When a cancellation is
-- delivered, Undefer_Abort in the call made from abortable part
-- sets the Pending_Action bit to false. However, the call is actually
-- made to cancel the Asynchronous Call so that we need to check its
-- status here again. Otherwise we may end up waiting for a cancelled
-- call forever.
-- ????? .........
-- Recheck the logic of the above old comment. It may be stale.
procedure Wait_For_Completion
(Self_ID : Task_ID;
Entry_Call : Entry_Call_Link)
is
begin
pragma Assert (Self_ID = Entry_Call.Self);
Self_ID.Common.State := Entry_Caller_Sleep;
loop
Check_Pending_Actions_For_Entry_Call (Self_ID, Entry_Call);
exit when Entry_Call.State >= Done;
STPO.Sleep (Self_ID, Entry_Caller_Sleep);
end loop;
Self_ID.Common.State := Runnable;
Utilities.Exit_One_ATC_Level (Self_ID);
end Wait_For_Completion;
--------------------------------------
-- Wait_For_Completion_With_Timeout --
--------------------------------------
-- This routine will lock Self_ID.
-- This procedure waits for the entry call to
-- be served, with a timeout. It tries to cancel the
-- call if the timeout expires before the call is served.
-- If we wake up from the timed sleep operation here,
-- it may be for several possible reasons:
-- 1) The entry call is done being served.
-- 2) There is an abort or priority change to be served.
-- 3) The timeout has expired (Timedout = True)
-- 4) There has been a spurious wakeup.
-- Once the timeout has expired we may need to continue to wait if
-- the call is already being serviced. In that case, we want to go
-- back to sleep, but without any timeout. The variable Timedout is
-- used to control this. If the Timedout flag is set, we do not need
-- to STPO.Sleep with a timeout. We just sleep until we get a wakeup for
-- some status change.
-- The original call may have become abortable after waking up.
-- We want to check Check_Pending_Actions_For_Entry_Call again
-- in any case.
procedure Wait_For_Completion_With_Timeout
(Self_ID : Task_ID;
Entry_Call : Entry_Call_Link;
Wakeup_Time : Duration;
Mode : Delay_Modes)
is
Timedout : Boolean := False;
Yielded : Boolean := False;
use type Ada.Exceptions.Exception_Id;
begin
Initialization.Defer_Abort_Nestable (Self_ID);
STPO.Write_Lock (Self_ID);
pragma Assert (Entry_Call.Self = Self_ID);
pragma Assert (Entry_Call.Mode = Timed_Call);
Self_ID.Common.State := Entry_Caller_Sleep;
-- Looping is necessary in case the task wakes up early from the
-- timed sleep, due to a "spurious wakeup". Spurious wakeups are
-- a weakness of POSIX condition variables. A thread waiting for
-- a condition variable is allowed to wake up at any time, not just
-- when the condition is signaled. See the same loop in the
-- ordinary Wait_For_Completion, above.
loop
Check_Pending_Actions_For_Entry_Call (Self_ID, Entry_Call);
exit when Entry_Call.State >= Done;
STPO.Timed_Sleep (Self_ID, Wakeup_Time, Mode,
Entry_Caller_Sleep, Timedout, Yielded);
if Timedout then
-- Try to cancel the call (see Try_To_Cancel_Entry_Call for
-- corresponding code in the ATC case).
Entry_Call.Cancellation_Attempted := True;
if Self_ID.Pending_ATC_Level >= Entry_Call.Level then
Self_ID.Pending_ATC_Level := Entry_Call.Level - 1;
end if;
-- The following loop is the same as the loop and exit code
-- from the ordinary Wait_For_Completion. If we get here, we
-- have timed out but we need to keep waiting until the call
-- has actually completed or been cancelled successfully.
loop
Check_Pending_Actions_For_Entry_Call (Self_ID, Entry_Call);
exit when Entry_Call.State >= Done;
STPO.Sleep (Self_ID, Entry_Caller_Sleep);
end loop;
Self_ID.Common.State := Runnable;
Utilities.Exit_One_ATC_Level (Self_ID);
STPO.Unlock (Self_ID);
if Entry_Call.State = Cancelled then
Initialization.Undefer_Abort_Nestable (Self_ID);
else
-- ????
Initialization.Undefer_Abort_Nestable (Self_ID);
-- Ideally, abort should no longer be deferred at this
-- point, so we should be able to call Check_Exception.
-- The loop below should be considered temporary,
-- to work around the possiblility that abort may be
-- deferred more than one level deep.
if Entry_Call.Exception_To_Raise /=
Ada.Exceptions.Null_Id then
while Self_ID.Deferral_Level > 0 loop
Initialization.Undefer_Abort_Nestable (Self_ID);
end loop;
Entry_Calls.Check_Exception (Self_ID, Entry_Call);
end if;
end if;
return;
end if;
end loop;
-- This last part is the same as ordinary Wait_For_Completion,
-- and is only executed if the call completed without timing out.
Self_ID.Common.State := Runnable;
Utilities.Exit_One_ATC_Level (Self_ID);
STPO.Unlock (Self_ID);
Initialization.Undefer_Abort_Nestable (Self_ID);
if not Yielded then
STPO.Yield;
end if;
end Wait_For_Completion_With_Timeout;
--------------------------
-- Wait_Until_Abortable --
--------------------------
-- Wait to start the abortable part of an async. select statement
-- until the trigger entry call becomes abortable.
procedure Wait_Until_Abortable
(Self_ID : Task_ID;
Call : Entry_Call_Link)
is
begin
pragma Assert (Self_ID.ATC_Nesting_Level > 0);
pragma Assert (Call.Mode = Asynchronous_Call);
STPO.Write_Lock (Self_ID);
Self_ID.Common.State := Entry_Caller_Sleep;
loop
Check_Pending_Actions_For_Entry_Call (Self_ID, Call);
exit when Call.State >= Was_Abortable;
STPO.Sleep (Self_ID, Async_Select_Sleep);
end loop;
Self_ID.Common.State := Runnable;
STPO.Unlock (Self_ID);
end Wait_Until_Abortable;
-- It might seem that we should be holding the server's lock when
-- we test Call.State above.
-- In an earlier version, the code above temporarily unlocked the
-- caller and locked the server just for checking Call.State.
-- The unlocking of the caller risked missing a wakeup
-- (an error) and locking the server had no apparent value.
-- We should not need the server's lock, since once Call.State
-- is set to Was_Abortable or beyond, it never goes back below
-- Was_Abortable until this task starts another entry call.
-- ????
-- It seems that other calls to Lock_Server may also risk missing
-- wakeups. We need to check that they do not have this problem.
end System.Tasking.Entry_Calls;
|
with Primes.PrimeNumberRequest_DataReader;
with Primes.PrimeNumberReply_DataWriter;
with DDS.Request_Reply.Replier.Typed_Replier_Generic;
package Primes.PrimeNumberReplier is new DDS.Request_Reply.Replier.Typed_Replier_Generic
(Request_DataReader => Primes.PrimeNumberRequest_DataReader,
Reply_DataWriter => Primes.PrimeNumberReply_DataWriter);
|
pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
package shaintrin_h is
-- Copyright (C) 2013-2017 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/>.
-- skipped func _mm_sha1msg1_epu32
-- skipped func _mm_sha1msg2_epu32
-- skipped func _mm_sha1nexte_epu32
-- skipped func _mm_sha256msg1_epu32
-- skipped func _mm_sha256msg2_epu32
-- skipped func _mm_sha256rnds2_epu32
end shaintrin_h;
|
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- I N T E R F A C E S . X 8 6 _ 6 4 --
-- --
-- B o d y --
-- --
-- Copyright (C) 2020-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. --
-- --
-- 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.Text_IO; use Ada.Text_IO;
package body Interfaces.X86_64.Exception_Handler is
use System.BB.CPU_Specific;
use System.BB.Interrupts;
procedure Os_Abort
with Import, External_Name => "abort";
procedure Fatal_Exception (ID : SBI.Interrupt_ID; Code : SBC.Error_Code) is
pragma Unreferenced (Code);
begin
Put ("FATAL PROCESSOR EXCEPTION RAISED: ");
case ID is
when NMI_Interrupt =>
Put ("unhandled NMI interrupt");
when Invalid_Opcode_Exception =>
Put ("Invalid Opcode");
when Device_Not_Available_Exception =>
Put ("Device Not Available");
when Double_Fault_Exception =>
Put ("Double Fault");
when Invalid_TSS_Exception =>
Put ("Invalid TSS");
when General_Protection_Exception =>
Put ("General Protection Exception");
when Alignment_Check_Exception =>
Put ("Alignment Check Exception");
when Machine_Check_Exception =>
Put ("Machine Check Exception");
when Virtualization_Exception =>
Put ("Virtualization Exception");
when Control_Protection_Exception =>
Put ("Control Protection Exception");
when others =>
Put ("Unknown exception raised. Number " & ID'Image);
end case;
New_Line;
Put_Line ("Rebooting...");
Os_Abort;
end Fatal_Exception;
end Interfaces.X86_64.Exception_Handler;
|
---------------------------------------------------------------------------------
-- Copyright 2004-2005 © Luke A. Guest
--
-- This code is to be used for tutorial purposes only.
-- You may not redistribute this code in any form without my express permission.
---------------------------------------------------------------------------------
with Interfaces.C;
with Interfaces.C.Strings;
with Unchecked_Conversion;
with Ada.Strings.Fixed;
with GL;
with GLU;
with SDL.Video;
with System;
package body GLUtils is
package C renames Interfaces.C;
function To_chars_ptr is new Unchecked_Conversion(Source => GL.GLubytePtr, Target => C.Strings.chars_ptr);
function GL_Vendor return String is
begin
return C.Strings.Value(To_chars_ptr(GL.glGetString(GL.GL_VENDOR)));
end GL_Vendor;
function GL_Version return String is
begin
return C.Strings.Value(To_chars_ptr(GL.glGetString(GL.GL_VERSION)));
end GL_Version;
function GL_Renderer return String is
begin
return C.Strings.Value(To_chars_ptr(GL.glGetString(GL.GL_RENDERER)));
end GL_Renderer;
function GL_Extensions return String is
begin
return C.Strings.Value(To_chars_ptr(GL.glGetString(GL.GL_EXTENSIONS)));
end GL_Extensions;
function GLU_Version return String is
begin
return C.Strings.Value(To_chars_ptr(GLU.gluGetString(GLU.GLU_VERSION)));
end GLU_Version;
function GLU_Extensions return String is
begin
return C.Strings.Value(To_chars_ptr(GLU.gluGetString(GLU.GLU_EXTENSIONS)));
end GLU_Extensions;
function IsExtensionAvailable(ExtensionToFind : in String) return Boolean is
Extensions : String := GL_Extensions;
Start : Integer := Ada.Strings.Fixed.Index(Extensions, ExtensionToFind);
Finish : Integer := Start + ExtensionToFind'Length - 1;
begin
if ExtensionToFind = Extensions(Start .. Finish) then
return True;
end if;
return False;
end IsExtensionAvailable;
function GetProc(Name : in String) return ELEMENT is
function To_EXT is new Unchecked_Conversion(Source => System.Address, Target => ELEMENT);
begin
return To_EXT(SDL.Video.GL_GetProcAddress(Interfaces.C.Strings.New_String(Name)));
end GetProc;
end GLUtils;
|
with Numerics, Numerics.Sparse_Matrices;
use Numerics, Numerics.Sparse_Matrices;
package Forward_AD is
type AD_Type is tagged private;
type AD_Vector is array (Nat range <>) of AD_Type;
function Var (X : in Real;
I, N : in Nat;
Dx : in Real := 1.0) return AD_Type;
function Zero (N : in Nat) return AD_Type;
function Var (X : in Real_Array;
Length : in Nat;
Start : in Nat := 1) return AD_Vector;
function Var (X : in Real_Array) return AD_Vector is
(Var (X => X, Length => X'Length));
function Val (X : in AD_Type) return Real;
function Grad (X : in AD_Type) return Sparse_Vector;
function Grad (X : in AD_Type) return Real_Array;
function Length (X : in AD_Type) return Pos;
function "+" (X, Y : in AD_Type) return AD_Type with Pre => X.Length = Y.Length;
function "-" (X, Y : in AD_Type) return AD_Type with Pre => X.Length = Y.Length;
function "*" (X, Y : in AD_Type) return AD_Type with Pre => X.Length = Y.Length;
function "/" (X, Y : in AD_Type) return AD_Type with Pre => X.Length = Y.Length;
function "**" (X : in AD_Type; N : in Pos) return AD_Type;
function Sin (X : in AD_Type) return AD_Type;
function Cos (X : in AD_Type) return AD_Type;
function Tan (X : in AD_Type) return AD_Type;
function Exp (X : in AD_Type) return AD_Type;
function Log (X : in AD_Type) return AD_Type;
function "+" (X : in AD_Type) return AD_Type;
function "-" (X : in AD_Type) return AD_Type;
function "*" (Y : in Real; X : in AD_Type) return AD_Type;
function "*" (X : in AD_Type; Y : in Real) return AD_Type is (Y * X);
function "/" (X : in AD_Type; Y : in Real) return AD_Type with Pre => Y /= 0.0;
function "*" (X : in Real; Y : in AD_Vector) return AD_Vector;
function "*" (X : in Real_Matrix; Y : in AD_Vector) return AD_Vector;
procedure Print (X : in AD_Type);
-- functions for AD_Vectors
function Jacobian_Matrix (X : in AD_Vector) return Sparse_Matrix;
private
type AD_Type is tagged
record
N : Pos := 0;
Val : Real;
Grad : Numerics.Sparse_Vector;
end record;
end Forward_AD;
|
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Ada Modeling Framework --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2011-2012, Vadim Godunko <vgodunko@gmail.com> --
-- All rights reserved. --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions --
-- are met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
with AMF.Internals.UML_Named_Elements;
with AMF.UML.Classifiers.Collections;
with AMF.UML.Dependencies.Collections;
with AMF.UML.Named_Elements;
with AMF.UML.Namespaces;
with AMF.UML.Packages.Collections;
with AMF.UML.Redefinable_Elements.Collections;
with AMF.UML.Redefinable_Template_Signatures.Collections;
with AMF.UML.String_Expressions;
with AMF.UML.Template_Parameters.Collections;
with AMF.UML.Templateable_Elements;
with AMF.Visitors;
package AMF.Internals.UML_Redefinable_Template_Signatures is
type UML_Redefinable_Template_Signature_Proxy is
limited new AMF.Internals.UML_Named_Elements.UML_Named_Element_Proxy
and AMF.UML.Redefinable_Template_Signatures.UML_Redefinable_Template_Signature with null record;
overriding function Get_Classifier
(Self : not null access constant UML_Redefinable_Template_Signature_Proxy)
return AMF.UML.Classifiers.UML_Classifier_Access;
-- Getter of RedefinableTemplateSignature::classifier.
--
-- The classifier that owns this template signature.
overriding procedure Set_Classifier
(Self : not null access UML_Redefinable_Template_Signature_Proxy;
To : AMF.UML.Classifiers.UML_Classifier_Access);
-- Setter of RedefinableTemplateSignature::classifier.
--
-- The classifier that owns this template signature.
overriding function Get_Extended_Signature
(Self : not null access constant UML_Redefinable_Template_Signature_Proxy)
return AMF.UML.Redefinable_Template_Signatures.Collections.Set_Of_UML_Redefinable_Template_Signature;
-- Getter of RedefinableTemplateSignature::extendedSignature.
--
-- The template signature that is extended by this template signature.
overriding function Get_Inherited_Parameter
(Self : not null access constant UML_Redefinable_Template_Signature_Proxy)
return AMF.UML.Template_Parameters.Collections.Set_Of_UML_Template_Parameter;
-- Getter of RedefinableTemplateSignature::inheritedParameter.
--
-- The formal template parameters of the extendedSignature.
overriding function Get_Is_Leaf
(Self : not null access constant UML_Redefinable_Template_Signature_Proxy)
return Boolean;
-- Getter of RedefinableElement::isLeaf.
--
-- Indicates whether it is possible to further redefine a
-- RedefinableElement. If the value is true, then it is not possible to
-- further redefine the RedefinableElement. Note that this property is
-- preserved through package merge operations; that is, the capability to
-- redefine a RedefinableElement (i.e., isLeaf=false) must be preserved in
-- the resulting RedefinableElement of a package merge operation where a
-- RedefinableElement with isLeaf=false is merged with a matching
-- RedefinableElement with isLeaf=true: the resulting RedefinableElement
-- will have isLeaf=false. Default value is false.
overriding procedure Set_Is_Leaf
(Self : not null access UML_Redefinable_Template_Signature_Proxy;
To : Boolean);
-- Setter of RedefinableElement::isLeaf.
--
-- Indicates whether it is possible to further redefine a
-- RedefinableElement. If the value is true, then it is not possible to
-- further redefine the RedefinableElement. Note that this property is
-- preserved through package merge operations; that is, the capability to
-- redefine a RedefinableElement (i.e., isLeaf=false) must be preserved in
-- the resulting RedefinableElement of a package merge operation where a
-- RedefinableElement with isLeaf=false is merged with a matching
-- RedefinableElement with isLeaf=true: the resulting RedefinableElement
-- will have isLeaf=false. Default value is false.
overriding function Get_Redefined_Element
(Self : not null access constant UML_Redefinable_Template_Signature_Proxy)
return AMF.UML.Redefinable_Elements.Collections.Set_Of_UML_Redefinable_Element;
-- Getter of RedefinableElement::redefinedElement.
--
-- The redefinable element that is being redefined by this element.
overriding function Get_Redefinition_Context
(Self : not null access constant UML_Redefinable_Template_Signature_Proxy)
return AMF.UML.Classifiers.Collections.Set_Of_UML_Classifier;
-- Getter of RedefinableElement::redefinitionContext.
--
-- References the contexts that this element may be redefined from.
overriding function Get_Client_Dependency
(Self : not null access constant UML_Redefinable_Template_Signature_Proxy)
return AMF.UML.Dependencies.Collections.Set_Of_UML_Dependency;
-- Getter of NamedElement::clientDependency.
--
-- Indicates the dependencies that reference the client.
overriding function Get_Name_Expression
(Self : not null access constant UML_Redefinable_Template_Signature_Proxy)
return AMF.UML.String_Expressions.UML_String_Expression_Access;
-- Getter of NamedElement::nameExpression.
--
-- The string expression used to define the name of this named element.
overriding procedure Set_Name_Expression
(Self : not null access UML_Redefinable_Template_Signature_Proxy;
To : AMF.UML.String_Expressions.UML_String_Expression_Access);
-- Setter of NamedElement::nameExpression.
--
-- The string expression used to define the name of this named element.
overriding function Get_Namespace
(Self : not null access constant UML_Redefinable_Template_Signature_Proxy)
return AMF.UML.Namespaces.UML_Namespace_Access;
-- Getter of NamedElement::namespace.
--
-- Specifies the namespace that owns the NamedElement.
overriding function Get_Qualified_Name
(Self : not null access constant UML_Redefinable_Template_Signature_Proxy)
return AMF.Optional_String;
-- Getter of NamedElement::qualifiedName.
--
-- A name which allows the NamedElement to be identified within a
-- hierarchy of nested Namespaces. It is constructed from the names of the
-- containing namespaces starting at the root of the hierarchy and ending
-- with the name of the NamedElement itself.
overriding function Get_Owned_Parameter
(Self : not null access constant UML_Redefinable_Template_Signature_Proxy)
return AMF.UML.Template_Parameters.Collections.Ordered_Set_Of_UML_Template_Parameter;
-- Getter of TemplateSignature::ownedParameter.
--
-- The formal template parameters that are owned by this template
-- signature.
overriding function Get_Parameter
(Self : not null access constant UML_Redefinable_Template_Signature_Proxy)
return AMF.UML.Template_Parameters.Collections.Ordered_Set_Of_UML_Template_Parameter;
-- Getter of TemplateSignature::parameter.
--
-- The ordered set of all formal template parameters for this template
-- signature.
overriding function Get_Template
(Self : not null access constant UML_Redefinable_Template_Signature_Proxy)
return AMF.UML.Templateable_Elements.UML_Templateable_Element_Access;
-- Getter of TemplateSignature::template.
--
-- The element that owns this template signature.
overriding procedure Set_Template
(Self : not null access UML_Redefinable_Template_Signature_Proxy;
To : AMF.UML.Templateable_Elements.UML_Templateable_Element_Access);
-- Setter of TemplateSignature::template.
--
-- The element that owns this template signature.
overriding function Inherited_Parameter
(Self : not null access constant UML_Redefinable_Template_Signature_Proxy)
return AMF.UML.Template_Parameters.Collections.Set_Of_UML_Template_Parameter;
-- Operation RedefinableTemplateSignature::inheritedParameter.
--
-- Missing derivation for
-- RedefinableTemplateSignature::/inheritedParameter : TemplateParameter
overriding function Is_Consistent_With
(Self : not null access constant UML_Redefinable_Template_Signature_Proxy;
Redefinee : AMF.UML.Redefinable_Elements.UML_Redefinable_Element_Access)
return Boolean;
-- Operation RedefinableTemplateSignature::isConsistentWith.
--
-- The query isConsistentWith() specifies, for any two
-- RedefinableTemplateSignatures in a context in which redefinition is
-- possible, whether redefinition would be logically consistent. A
-- redefining template signature is always consistent with a redefined
-- template signature, since redefinition only adds new formal parameters.
overriding function Is_Redefinition_Context_Valid
(Self : not null access constant UML_Redefinable_Template_Signature_Proxy;
Redefined : AMF.UML.Redefinable_Elements.UML_Redefinable_Element_Access)
return Boolean;
-- Operation RedefinableElement::isRedefinitionContextValid.
--
-- The query isRedefinitionContextValid() specifies whether the
-- redefinition contexts of this RedefinableElement are properly related
-- to the redefinition contexts of the specified RedefinableElement to
-- allow this element to redefine the other. By default at least one of
-- the redefinition contexts of this element must be a specialization of
-- at least one of the redefinition contexts of the specified element.
overriding function All_Owning_Packages
(Self : not null access constant UML_Redefinable_Template_Signature_Proxy)
return AMF.UML.Packages.Collections.Set_Of_UML_Package;
-- Operation NamedElement::allOwningPackages.
--
-- The query allOwningPackages() returns all the directly or indirectly
-- owning packages.
overriding function Is_Distinguishable_From
(Self : not null access constant UML_Redefinable_Template_Signature_Proxy;
N : AMF.UML.Named_Elements.UML_Named_Element_Access;
Ns : AMF.UML.Namespaces.UML_Namespace_Access)
return Boolean;
-- Operation NamedElement::isDistinguishableFrom.
--
-- The query isDistinguishableFrom() determines whether two NamedElements
-- may logically co-exist within a Namespace. By default, two named
-- elements are distinguishable if (a) they have unrelated types or (b)
-- they have related types but different names.
overriding function Namespace
(Self : not null access constant UML_Redefinable_Template_Signature_Proxy)
return AMF.UML.Namespaces.UML_Namespace_Access;
-- Operation NamedElement::namespace.
--
-- Missing derivation for NamedElement::/namespace : Namespace
overriding procedure Enter_Element
(Self : not null access constant UML_Redefinable_Template_Signature_Proxy;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Control : in out AMF.Visitors.Traverse_Control);
-- Dispatch call to corresponding subprogram of visitor interface.
overriding procedure Leave_Element
(Self : not null access constant UML_Redefinable_Template_Signature_Proxy;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Control : in out AMF.Visitors.Traverse_Control);
-- Dispatch call to corresponding subprogram of visitor interface.
overriding procedure Visit_Element
(Self : not null access constant UML_Redefinable_Template_Signature_Proxy;
Iterator : in out AMF.Visitors.Abstract_Iterator'Class;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Control : in out AMF.Visitors.Traverse_Control);
-- Dispatch call to corresponding subprogram of iterator interface.
end AMF.Internals.UML_Redefinable_Template_Signatures;
|
-----------------------------------------------------------------------
-- Render Tests - Unit tests for AWA Wiki rendering
-- Copyright (C) 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 Util.Tests;
with Ada.Strings.Unbounded;
with AWA.Wikis.Parsers;
package AWA.Wikis.Writers.Tests is
procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite);
type Test is new Util.Tests.Test_Case with record
Writer : Integer;
Name : Ada.Strings.Unbounded.Unbounded_String;
File : Ada.Strings.Unbounded.Unbounded_String;
Expect : Ada.Strings.Unbounded.Unbounded_String;
Result : Ada.Strings.Unbounded.Unbounded_String;
Format : AWA.Wikis.Parsers.Wiki_Syntax_Type;
Is_Html : Boolean := False;
end record;
type Test_Case_Access is access all Test;
-- Test case name
overriding
function Name (T : Test) return Util.Tests.Message_String;
-- Perform the test.
overriding
procedure Run_Test (T : in out Test);
-- Test rendering a wiki text in HTML or text.
procedure Test_Render (T : in out Test);
end AWA.Wikis.Writers.Tests;
|
with
GL_Types,
Interfaces.C;
package GL
--
-- Provides types and constants common to all openGL profiles.
--
is
pragma Pure;
use Interfaces;
---------
-- Types
--
-- GLvoid
--
subtype GLvoid is GL_Types.GLvoid;
type GLvoid_array is array (C.size_t range <>) of aliased GLvoid;
-- GLenum
--
subtype GLenum is GL_Types.GLenum;
type GLenum_array is array (C.size_t range <>) of aliased GLenum;
-- GLboolean
--
subtype GLboolean is GL_Types.GLboolean;
type GLboolean_array is array (C.size_t range <>) of aliased GLboolean;
-- GLbitfield
--
subtype GLbitfield is GL_Types.GLbitfield;
type GLbitfield_array is array (C.size_t range <>) of aliased GLbitfield;
-- GLshort
--
subtype GLshort is GL_Types.GLshort;
type GLshort_array is array (C.size_t range <>) of aliased GLshort;
-- GLint
--
subtype GLint is GL_Types.GLint;
type GLint_array is array (C.size_t range <>) of aliased GLint;
-- GLsizei
--
subtype GLsizei is GL_Types.GLsizei;
type GLsizei_array is array (C.size_t range <>) of aliased GLsizei;
-- GLushort
--
subtype GLushort is GL_Types.GLushort;
type GLushort_array is array (C.size_t range <>) of aliased GLushort;
-- GLuint
--
subtype GLuint is GL_Types.GLuint;
type GLuint_array is array (C.size_t range <>) of aliased GLuint;
-- GLbyte
--
subtype GLbyte is GL_Types.GLbyte;
type GLbyte_array is array (C.size_t range <>) of aliased GLbyte;
-- GLubyte
--
subtype GLubyte is GL_Types.GLubyte;
type GLubyte_array is array (C.size_t range <>) of aliased GLubyte;
-- GLfloat
--
subtype GLfloat is GL_Types.GLfloat;
type GLfloat_array is array (C.size_t range <>) of aliased GLfloat;
-- GLclampf
--
subtype GLclampf is GL_Types.GLclampf;
type GLclampf_array is array (C.size_t range <>) of aliased GLclampf;
-------------
-- Constants
--
-- ClearBufferMask
GL_DEPTH_BUFFER_BIT : constant := 16#100#;
GL_STENCIL_BUFFER_BIT : constant := 16#400#;
GL_COLOR_BUFFER_BIT : constant := 16#4000#;
-- Boolean
GL_FALSE : constant := 0;
GL_TRUE : constant := 1;
-- BeginMode
GL_POINTS : constant := 16#0#;
GL_LINES : constant := 16#1#;
GL_LINE_LOOP : constant := 16#2#;
GL_LINE_STRIP : constant := 16#3#;
GL_TRIANGLES : constant := 16#4#;
GL_TRIANGLE_STRIP : constant := 16#5#;
GL_TRIANGLE_FAN : constant := 16#6#;
-- BlendingFactorDest
GL_ZERO : constant := 0;
GL_ONE : constant := 1;
GL_ONE_MINUS_SRC_ALPHA : constant := 16#303#;
-- BlendingFactorSrc
GL_SRC_ALPHA : constant := 16#302#;
GL_SRC_ALPHA_SATURATE : constant := 16#308#;
-- CullFaceMode
GL_FRONT : constant := 16#404#;
GL_BACK : constant := 16#405#;
GL_FRONT_AND_BACK : constant := 16#408#;
-- EnableCap
GL_TEXTURE_2D : constant := 16#de1#;
GL_CULL_FACE : constant := 16#b44#;
GL_BLEND : constant := 16#be2#;
GL_STENCIL_TEST : constant := 16#b90#;
GL_DEPTH_TEST : constant := 16#b71#;
GL_SCISSOR_TEST : constant := 16#c11#;
GL_POLYGON_OFFSET_FILL : constant := 16#8037#;
-- ErrorCode
GL_NO_ERROR : constant := 0;
GL_INVALID_ENUM : constant := 16#500#;
GL_INVALID_VALUE : constant := 16#501#;
GL_INVALID_OPERATION : constant := 16#502#;
GL_OUT_OF_MEMORY : constant := 16#505#;
-- FrontFaceDirection
GL_CW : constant := 16#900#;
GL_CCW : constant := 16#901#;
-- TODO: As above, categorise and add category comment for the following ...
--
GL_LINE_WIDTH : constant := 16#b21#;
GL_ALIASED_POINT_SIZE_RANGE : constant := 16#846d#;
GL_ALIASED_LINE_WIDTH_RANGE : constant := 16#846e#;
GL_CULL_FACE_MODE : constant := 16#b45#;
GL_FRONT_FACE : constant := 16#b46#;
GL_DEPTH_RANGE : constant := 16#b70#;
GL_DEPTH_WRITEMASK : constant := 16#b72#;
GL_DEPTH_CLEAR_VALUE : constant := 16#b73#;
GL_DEPTH_FUNC : constant := 16#b74#;
GL_STENCIL_CLEAR_VALUE : constant := 16#b91#;
GL_STENCIL_FUNC : constant := 16#b92#;
GL_STENCIL_FAIL : constant := 16#b94#;
GL_STENCIL_PASS_DEPTH_FAIL : constant := 16#b95#;
GL_STENCIL_PASS_DEPTH_PASS : constant := 16#b96#;
GL_STENCIL_REF : constant := 16#b97#;
GL_STENCIL_VALUE_MASK : constant := 16#b93#;
GL_STENCIL_WRITEMASK : constant := 16#b98#;
GL_VIEWPORT : constant := 16#ba2#;
GL_SCISSOR_BOX : constant := 16#c10#;
GL_COLOR_CLEAR_VALUE : constant := 16#c22#;
GL_COLOR_WRITEMASK : constant := 16#c23#;
GL_UNPACK_ALIGNMENT : constant := 16#cf5#;
GL_PACK_ALIGNMENT : constant := 16#d05#;
GL_MAX_TEXTURE_SIZE : constant := 16#d33#;
GL_MAX_VIEWPORT_DIMS : constant := 16#d3a#;
GL_SUBPIXEL_BITS : constant := 16#d50#;
GL_RED_BITS : constant := 16#d52#;
GL_GREEN_BITS : constant := 16#d53#;
GL_BLUE_BITS : constant := 16#d54#;
GL_ALPHA_BITS : constant := 16#d55#;
GL_DEPTH_BITS : constant := 16#d56#;
GL_STENCIL_BITS : constant := 16#d57#;
GL_POLYGON_OFFSET_UNITS : constant := 16#2a00#;
GL_POLYGON_OFFSET_FACTOR : constant := 16#8038#;
GL_TEXTURE_BINDING_2D : constant := 16#8069#;
GL_DONT_CARE : constant := 16#1100#;
GL_FASTEST : constant := 16#1101#;
GL_NICEST : constant := 16#1102#;
GL_BYTE : constant := 16#1400#;
GL_UNSIGNED_BYTE : constant := 16#1401#;
GL_INT : constant := 16#1404#;
GL_UNSIGNED_INT : constant := 16#1405#;
GL_FLOAT : constant := 16#1406#;
GL_ALPHA : constant := 16#1906#;
GL_RGB : constant := 16#1907#;
GL_RGBA : constant := 16#1908#;
GL_LUMINANCE : constant := 16#1909#;
GL_LUMINANCE_ALPHA : constant := 16#190a#;
GL_NEVER : constant := 16#200#;
GL_LESS : constant := 16#201#;
GL_EQUAL : constant := 16#202#;
GL_LEQUAL : constant := 16#203#;
GL_GREATER : constant := 16#204#;
GL_NOTEQUAL : constant := 16#205#;
GL_GEQUAL : constant := 16#206#;
GL_ALWAYS : constant := 16#207#;
GL_KEEP : constant := 16#1e00#;
GL_REPLACE : constant := 16#1e01#;
GL_INCR : constant := 16#1e02#;
GL_DECR : constant := 16#1e03#;
GL_INVERT : constant := 16#150a#;
GL_VENDOR : constant := 16#1f00#;
GL_RENDERER : constant := 16#1f01#;
GL_VERSION : constant := 16#1f02#;
GL_EXTENSIONS : constant := 16#1f03#;
GL_MAJOR_VERSION : constant := 16#821B#;
GL_MINOR_VERSION : constant := 16#821C#;
GL_NEAREST : constant := 16#2600#;
GL_LINEAR : constant := 16#2601#;
GL_NEAREST_MIPMAP_NEAREST : constant := 16#2700#;
GL_LINEAR_MIPMAP_NEAREST : constant := 16#2701#;
GL_NEAREST_MIPMAP_LINEAR : constant := 16#2702#;
GL_LINEAR_MIPMAP_LINEAR : constant := 16#2703#;
GL_TEXTURE_MAG_FILTER : constant := 16#2800#;
GL_TEXTURE_MIN_FILTER : constant := 16#2801#;
GL_TEXTURE_WRAP_S : constant := 16#2802#;
GL_TEXTURE_WRAP_T : constant := 16#2803#;
GL_TEXTURE0 : constant := 16#84c0#;
GL_TEXTURE1 : constant := 16#84c1#;
GL_TEXTURE2 : constant := 16#84c2#;
GL_TEXTURE3 : constant := 16#84c3#;
GL_TEXTURE4 : constant := 16#84c4#;
GL_TEXTURE5 : constant := 16#84c5#;
GL_TEXTURE6 : constant := 16#84c6#;
GL_TEXTURE7 : constant := 16#84c7#;
GL_TEXTURE8 : constant := 16#84c8#;
GL_TEXTURE9 : constant := 16#84c9#;
GL_TEXTURE10 : constant := 16#84ca#;
GL_TEXTURE11 : constant := 16#84cb#;
GL_TEXTURE12 : constant := 16#84cc#;
GL_TEXTURE13 : constant := 16#84cd#;
GL_TEXTURE14 : constant := 16#84ce#;
GL_TEXTURE15 : constant := 16#84cf#;
GL_TEXTURE16 : constant := 16#84d0#;
GL_TEXTURE17 : constant := 16#84d1#;
GL_TEXTURE18 : constant := 16#84d2#;
GL_TEXTURE19 : constant := 16#84d3#;
GL_TEXTURE20 : constant := 16#84d4#;
GL_TEXTURE21 : constant := 16#84d5#;
GL_TEXTURE22 : constant := 16#84d6#;
GL_TEXTURE23 : constant := 16#84d7#;
GL_TEXTURE24 : constant := 16#84d8#;
GL_TEXTURE25 : constant := 16#84d9#;
GL_TEXTURE26 : constant := 16#84da#;
GL_TEXTURE27 : constant := 16#84db#;
GL_TEXTURE28 : constant := 16#84dc#;
GL_TEXTURE29 : constant := 16#84dd#;
GL_TEXTURE30 : constant := 16#84de#;
GL_TEXTURE31 : constant := 16#84df#;
GL_ACTIVE_TEXTURE : constant := 16#84e0#;
GL_REPEAT : constant := 16#2901#;
GL_CLAMP_TO_EDGE : constant := 16#812f#;
end GL;
|
-- $Header: /dc/uc/self/arcadia/ayacc/src/RCS/output_file_body.a,v 1.2 1993/05/31 22:36:35 self Exp self $
-- Copyright (c) 1990 Regents of the University of California.
-- All rights reserved.
--
-- The primary authors of ayacc were David Taback and Deepak Tolani.
-- Enhancements were made by Ronald J. Schmalz.
--
-- Send requests for ayacc information to ayacc-info@ics.uci.edu
-- Send bug reports for ayacc to ayacc-bugs@ics.uci.edu
--
-- Redistribution and use in source and binary forms are permitted
-- provided that the above copyright notice and this paragraph are
-- duplicated in all such forms and that any documentation,
-- advertising materials, and other materials related to such
-- distribution and use acknowledge that the software was developed
-- by the University of California, Irvine. The name of the
-- University may not be used to endorse or promote products derived
-- from this software without specific prior written permission.
-- THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
-- IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
-- WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
-- Module : output_file_body.ada
-- Component of : ayacc
-- Version : 1.2
-- Date : 11/21/86 12:32:10
-- SCCS File : disk21~/rschm/hasee/sccs/ayacc/sccs/sxoutput_file_body.ada
-- $Header: /dc/uc/self/arcadia/ayacc/src/RCS/output_file_body.a,v 1.2 1993/05/31 22:36:35 self Exp self $
-- $Log: output_file_body.a,v $
-- Revision 1.2 1993/05/31 22:36:35 self
-- added exception handler when opening files
--
-- Revision 1.1 1993/05/31 22:05:03 self
-- Initial revision
--
--Revision 1.1 88/08/08 14:16:40 arcadia
--Initial revision
--
-- Revision 0.1 86/04/01 15:08:26 ada
-- This version fixes some minor bugs with empty grammars
-- and $$ expansion. It also uses vads5.1b enhancements
-- such as pragma inline.
--
--
-- Revision 0.0 86/02/19 18:37:50 ada
--
-- These files comprise the initial version of Ayacc
-- designed and implemented by David Taback and Deepak Tolani.
-- Ayacc has been compiled and tested under the Verdix Ada compiler
-- version 4.06 on a vax 11/750 running Unix 4.2BSD.
--
with Actions_File, Ayacc_File_Names, Lexical_Analyzer, Options, Parse_Table,
Parse_Template_File, Source_File, Text_IO;
use Actions_File, Ayacc_File_Names, Lexical_Analyzer, Options, Parse_Table,
Parse_Template_File, Source_File, Text_IO;
package body Output_File is
SCCS_ID : constant String := "@(#) output_file_body.ada, Version 1.2";
Outfile : File_Type;
procedure Open is
begin
Create(Outfile, Out_File, Get_Out_File_Name);
exception
when Name_Error | Use_Error =>
Put_Line("Ayacc: Error Opening """ & Get_Out_File_Name & """.");
raise;
end Open;
procedure Close is
begin
Close(Outfile);
end Close;
-- Make the parser body section by reading the source --
-- and template files and merging them appropriately --
procedure Make_Output_File is
Text : String(1..260);
Length : Natural;
I : Integer;
-- UMASS CODES :
Umass_Codes : Boolean := False;
-- Indicates whether or not current line of the template
-- is the Umass codes.
UCI_Codes_Deleted : Boolean := False;
-- Indicates whether or not current line of the template
-- is UCI codes which should be deleted in Ayacc-extension.
-- END OF UMASS CODES.
begin
Open; -- Open the output file.
-- Read the first part of the source file up to '##'
-- or to end of file.
while not Source_File.Is_End_of_File loop
Source_File.Read_Line(Text, Length);
if Length > 1 then
I := 1;
while (I < Length - 1 and then Text(I) = ' ') loop
I := I + 1;
end loop;
if Text(I..I+1) = "##" then
exit;
end if;
end if;
Put_Line(Outfile, Text(1..Length));
end loop;
Parse_Template_File.Open;
-- Copy the header from the parse template
loop
Parse_Template_File.Read(Text,Length);
if Length > 1 and then Text(1..2) = "%%" then
exit;
else
-- UMASS CODES :
-- In the template, the codes between "-- UMASS CODES : " and
-- "-- END OF UMASS CODES." are specific to be used by Ayacc-extension.
-- Also the codes between "-- UCI CODES DELETED : " and
-- "-- END OF UCI CODES DELETED." should only be generated in
-- Ayacc and should be deleted in Ayacc-extension.
-- Ayacc-extension has more power in error recovery. So we
-- generate Umass codes only when Error_Recovery_Extension is True.
-- And we delete the necessary UCI codes when Error_Recovery_
-- Extension is True.
if Length = 16 and then Text(1..16) = "-- UMASS CODES :" then
Umass_Codes := True;
end if;
if Length = 22 and then Text(1..22) = "-- UCI CODES DELETED :" then
UCI_CODES_Deleted := True;
Parse_Template_File.Read(Text,Length);
-- We read next line because we do not want to generate
-- the comment "-- UCI CODES DELETED :" anyway.
elsif Length = 28 and then Text(1..28) = "-- END OF UCI CODES DELETED." then
UCI_CODES_Deleted := False;
Parse_Template_File.Read(Text,Length);
-- We read next line because we do not want to generate
-- the comment "-- END OF UCI CODES DELETED :" anyway.
end if;
if Options.Error_Recovery_Extension then
-- Do not generate UCI codes which should be deleted.
if not UCI_CODES_Deleted then
PUT_LINE(Outfile,Text(1..Length));
end if;
else
-- Do not generate UMASS codes.
if not Umass_Codes then
PUT_LINE(Outfile,Text(1..Length));
end if;
end if;
if Length = 22 and then Text(1..22) = "-- END OF UMASS CODES." then
Umass_Codes := False;
end if;
-- END OF UMASS CODES.
-- UCI CODES commented out :
-- The following line is commented out because it is done in Umass codes.
-- Put_Line(Outfile, Text(1..Length));
end if;
end loop;
Put_Line (Outfile, " package yy_goto_tables renames");
Put_Line (Outfile, " " & Goto_Tables_Unit_Name & ';');
Put_Line (Outfile, " package yy_shift_reduce_tables renames");
Put_Line (Outfile, " " & Shift_Reduce_Tables_Unit_Name & ';');
Put_Line (Outfile, " package yy_tokens renames");
Put_Line (Outfile, " " & Tokens_Unit_Name & ';');
-- UMASS CODES :
if Options.Error_Recovery_Extension then
Put_Line (OutFile, " -- UMASS CODES :" );
Put_Line (Outfile, " package yy_error_report renames");
Put_Line (OutFile, " " & Error_Report_Unit_Name & ";");
Put_Line (OutFile, " -- END OF UMASS CODES." );
end if;
-- END OF UMASS CODES.
-- Copy the first half of the parse template
loop
Parse_Template_File.Read(Text,Length);
if Length > 1 and then Text(1..2) = "%%" then
exit;
else
-- UMASS CODES :
-- In the template, the codes between "-- UMASS CODES : " and
-- "-- END OF UMASS CODES." are specific to be used by Ayacc-extension.
-- Also the codes between "-- UCI CODES DELETED : " and
-- "-- END OF UCI CODES DELETED." should only be generated in
-- Ayacc and should be deleted in Ayacc-extension.
-- Ayacc-extension has more power in error recovery. So we
-- generate Umass codes only when Error_Recovery_Extension is True.
-- And we delete the necessary UCI codes when Error_Recovery_
-- Extension is True.
if Length = 16 and then Text(1..16) = "-- UMASS CODES :" then
Umass_Codes := True;
end if;
if Length = 22 and then Text(1..22) = "-- UCI CODES DELETED :" then
UCI_CODES_Deleted := True;
Parse_Template_File.Read(Text,Length);
-- We read next line because we do not want to generate
-- the comment "-- UCI CODES DELETED :" anyway.
elsif Length = 28 and then Text(1..28) = "-- END OF UCI CODES DELETED." then
UCI_CODES_Deleted := False;
Parse_Template_File.Read(Text,Length);
-- We read next line because we do not want to generate
-- the comment "-- END OF UCI CODES DELETED :" anyway.
end if;
if Options.Error_Recovery_Extension then
-- Do not generate UCI codes which should be deleted.
if not UCI_CODES_Deleted then
PUT_LINE(Outfile,Text(1..Length));
end if;
else
-- Do not generate UMASS codes.
if not Umass_Codes then
PUT_LINE(Outfile,Text(1..Length));
end if;
end if;
if Length = 22 and then Text(1..22) = "-- END OF UMASS CODES." then
Umass_Codes := False;
end if;
-- END OF UMASS CODES.
-- UCI CODES commented out :
-- The following line is commented out because it is done in Umass codes.
-- Put_Line(Outfile, Text(1..Length));
end if;
end loop;
-- Copy declarations and procedures needed in the parse template
Put_Line (Outfile," DEBUG : constant boolean := " &
Boolean'Image (Options.Debug) & ';');
-- Consume Template Up To User Action Routines.
loop
Parse_Template_File.Read(Text,Length);
if Length > 1 and then Text(1..2) = "%%" then
exit;
else
-- UMASS CODES :
-- In the template, the codes between "-- UMASS CODES : " and
-- "-- END OF UMASS CODES." are specific to be used by Ayacc-extension.
-- Also the codes between "-- UCI CODES DELETED : " and
-- "-- END OF UCI CODES DELETED." should only be generated in
-- Ayacc and should be deleted in Ayacc-extension.
-- Ayacc-extension has more power in error recovery. So we
-- generate Umass codes only when Error_Recovery_Extension is True.
-- And we delete the necessary UCI codes when Error_Recovery_
-- Extension is True.
if Length = 16 and then Text(1..16) = "-- UMASS CODES :" then
Umass_Codes := True;
end if;
if Length = 22 and then Text(1..22) = "-- UCI CODES DELETED :" then
UCI_CODES_Deleted := True;
Parse_Template_File.Read(Text,Length);
-- We read next line because we do not want to generate
-- the comment "-- UCI CODES DELETED :" anyway.
elsif Length = 28 and then Text(1..28) = "-- END OF UCI CODES DELETED." then
UCI_CODES_Deleted := False;
Parse_Template_File.Read(Text,Length);
-- We read next line because we do not want to generate
-- the comment "-- END OF UCI CODES DELETED :" anyway.
end if;
if Options.Error_Recovery_Extension then
-- Do not generate UCI codes which should be deleted.
if not UCI_CODES_Deleted then
PUT_LINE(Outfile,Text(1..Length));
end if;
else
-- Do not generate UMASS codes.
if not Umass_Codes then
PUT_LINE(Outfile,Text(1..Length));
end if;
end if;
if Length = 22 and then Text(1..22) = "-- END OF UMASS CODES." then
Umass_Codes := False;
end if;
-- END OF UMASS CODES.
-- UCI CODES commented out :
-- The following line is commented out because it is done in Umass codes.
-- Put_Line(Outfile, Text(1..Length));
end if;
end loop;
Actions_File.Open(Actions_File.Read_File);
loop
exit when Actions_File.Is_End_of_File;
Actions_File.Read_Line(Text,Length);
Put_Line(Outfile, Text(1..Length));
end loop;
Actions_File.Delete;
-- Finish writing the template file
loop
exit when Parse_Template_File.Is_End_of_File;
Parse_Template_File.Read(Text,Length);
-- UMASS CODES :
-- In the template, the codes between "-- UMASS CODES : " and
-- "-- END OF UMASS CODES." are specific to be used by Ayacc-extension.
-- Also the codes between "-- UCI CODES DELETED : " and
-- "-- END OF UCI CODES DELETED." should only be generated in
-- Ayacc and should be deleted in Ayacc-extension.
-- Ayacc-extension has more power in error recovery. So we
-- generate Umass codes only when Error_Recovery_Extension is True.
-- And we delete the necessary UCI codes when Error_Recovery_
-- Extension is True.
if Length = 16 and then Text(1..16) = "-- UMASS CODES :" then
Umass_Codes := True;
end if;
if Length = 22 and then Text(1..22) = "-- UCI CODES DELETED :" then
UCI_CODES_Deleted := True;
Parse_Template_File.Read(Text,Length);
-- We read next line because we do not want to generate
-- the comment "-- UCI CODES DELETED :" anyway.
elsif Length = 28 and then Text(1..28) = "-- END OF UCI CODES DELETED." then
UCI_CODES_Deleted := False;
Parse_Template_File.Read(Text,Length);
-- We read next line because we do not want to generate
-- the comment "-- END OF UCI CODES DELETED :" anyway.
end if;
if Options.Error_Recovery_Extension then
-- Do not generate UCI codes which should be deleted.
if not UCI_CODES_Deleted then
PUT_LINE(Outfile,Text(1..Length));
end if;
else
-- Do not generate UMASS codes.
if not Umass_Codes then
PUT_LINE(Outfile,Text(1..Length));
end if;
end if;
if Length = 22 and then Text(1..22) = "-- END OF UMASS CODES." then
Umass_Codes := False;
end if;
-- END OF UMASS CODES.
-- UCI CODES commented out :
-- The following line is commented out because it is done in Umass codes.
-- Put_Line(Outfile, Text(1..Length));
end loop;
Parse_Template_File.Close;
-- Copy rest of input file after ##
while not Source_File.Is_End_of_File loop
Source_File.Read_Line(Text, Length);
-- UMASS CODES :
-- If the generated codes has the extension of
-- error recovery, there may be another section
-- for error reporting. So we return if we find "%%".
if Options.Error_Recovery_Extension then
if Length > 1 and then Text(1..2) = "%%" then
exit;
end if;
end if;
-- END OF UMASS CODES.
Put_Line(Outfile, Text(1..Length));
end loop;
Close;
end Make_Output_File;
end Output_File;
|
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Ada Modeling Framework --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2011-2012, Vadim Godunko <vgodunko@gmail.com> --
-- All rights reserved. --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions --
-- are met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
-- This file is generated, don't edit it.
------------------------------------------------------------------------------
-- A sequence node is a structured activity node that executes its actions in
-- order.
------------------------------------------------------------------------------
limited with AMF.UML.Executable_Nodes.Collections;
with AMF.UML.Structured_Activity_Nodes;
package AMF.UML.Sequence_Nodes is
pragma Preelaborate;
type UML_Sequence_Node is limited interface
and AMF.UML.Structured_Activity_Nodes.UML_Structured_Activity_Node;
type UML_Sequence_Node_Access is
access all UML_Sequence_Node'Class;
for UML_Sequence_Node_Access'Storage_Size use 0;
not overriding function Get_Executable_Node
(Self : not null access constant UML_Sequence_Node)
return AMF.UML.Executable_Nodes.Collections.Ordered_Set_Of_UML_Executable_Node is abstract;
-- Getter of SequenceNode::executableNode.
--
-- An ordered set of executable nodes.
end AMF.UML.Sequence_Nodes;
|
------------------------------------------------------------------------------
-- --
-- Ada User Repository Annex (AURA) --
-- ANNEXI-STRAYLINE Reference Implementation --
-- --
-- Command Line Interface --
-- --
-- ------------------------------------------------------------------------ --
-- --
-- Copyright (C) 2019-2020, ANNEXI-STRAYLINE Trans-Human Ltd. --
-- All rights reserved. --
-- --
-- Original Contributors: --
-- * Richard Wai (ANNEXI-STRAYLINE) --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions are --
-- met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in --
-- the documentation and/or other materials provided with the --
-- distribution. --
-- --
-- * Neither the name of the copyright holder nor the names of its --
-- contributors may be used to endorse or promote products derived --
-- from this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A --
-- PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT --
-- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, --
-- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY --
-- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT --
-- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE --
-- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- This package implements the Subsystem type for use in tracking Subsystem
-- dependencies for an AURA project when invoking the CLI. This type is
-- intended to act as the Element_Type for the Hashed Set declared in the
-- Subsystems.Subsystem_Sets child package.
with Ada.Strings.Unbounded;
with Ada.Strings.Wide_Wide_Unbounded;
with Ada.Containers.Vectors;
with Ada.Containers.Hashed_Sets;
with Unit_Names;
with Unit_Names.Hash;
with Unit_Names.Sets;
with Repositories;
with Registrar.Source_Files;
package Registrar.Subsystems is
-- Subsystem_State --
---------------------
-- The Subsystem_State pertains to each Subsystem referenced by withed
-- library units of a project. The Subsystem_State begings at Registered
-- when entered into a Set, and will never regress. If a Subsystem can never
-- reach Available, AURA fails
type Subsystem_State is
(Requested,
-- Subsystem must be aquired and entered into the AURA project
--
-- Once all Subsystems in a Set have reached Registered, each Subsystem
-- is checked for existence in the current project. If the Subsystem
-- has been aquired previously, the Status for the Subsystem advances
-- to Aquired. Otherwise, the Subsystem needs to be aquired, and is
-- advanced to Requested.
Aquired,
-- Requested Subsystems must be aquired. Failure to aquire any Requested
-- Subsystem causes AURA to fail.
--
-- Aquired means that the Subsystem's sources have been checked-out into
-- the appropriate subdirectory, but that Configuration has not been
-- completed. Units in the subsystem root directory have been entered,
-- but special codepaths have not been, as this must happen after
-- configuration
Unavailable,
-- Aquisition of the subsystem failed. The reason for this failure is
-- assigned to the Aquisition_Note component (and thus only applies
-- to AURA subsystems)
Available);
-- The subsystem has been Configured, and is now available for
-- compilation
-- Configuration_Pack --
------------------------
-- The Configuration_Pack contains all of the important configuration
-- parameters for configuration a subsystem for the local system.
--
-- These values are loaded from a configuration unit, and are a collection
-- of named strings, where the names are just for readability of the
-- configuration unit, but have no other significant meaning
package WWU renames Ada.Strings.Wide_Wide_Unbounded;
package UBS renames Ada.Strings.Unbounded;
type Configuration_Pair is
record
Name : WWU.Unbounded_Wide_Wide_String;
Value: UBS.Unbounded_String;
end record;
package Configuration_Vectors is new Ada.Containers.Vectors
(Index_Type => Positive,
Element_Type => Configuration_Pair);
subtype Configuration_Vector is Configuration_Vectors.Vector;
type Configuration_Pack is
record
External_Libraries: Configuration_Vector;
Ada_Compiler_Opts : Configuration_Vector;
C_Compiler_Opts : Configuration_Vector;
C_Definitions : Configuration_Vector;
Codepaths : Configuration_Vector;
Information : Configuration_Vector;
end record;
---------------
-- Subsystem --
---------------
use type Unit_Names.Unit_Name;
type Subsystem (AURA: Boolean := False) is
-- AURA = True => the Subsystem is an AURA subsystem
-- False => the Subsystem is part of the root project
record
Name : Unit_Names.Unit_Name;
State: Subsystem_State := Requested;
Configuration: Configuration_Pack;
-- Mostly for AURA subsystems, however the root project also
-- contains configuration, which is registered with the
-- "AURA" subsystem itself (which is a non AURA subsystem!)
case AURA is
when True =>
Source_Repository : Repositories.Repository_Index;
-- Checkout repository information
Aquisition_Failure: UBS.Unbounded_String;
-- Reason for failure to aquire, set by the checkout process,
-- and valid only if State = Unavailable
when False =>
-- the Subsystem is part of the core project
null;
end case;
end record;
-- For implementation of Subsystems.Subsystem_Sets
function Subsystem_Name_Hash (SS: Subsystem) return Ada.Containers.Hash_Type
is (Unit_Names.Hash (SS.Name));
function Equivalent_Subsystems (Left, Right: Subsystem) return Boolean
is (Left.Name = Right.Name);
--------------------
-- Subsystem_Sets --
--------------------
package Subsystem_Sets is new Ada.Containers.Hashed_Sets
(Element_Type => Subsystem,
Hash => Subsystem_Name_Hash,
Equivalent_Elements => Equivalent_Subsystems);
end Registrar.Subsystems;
|
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- SYSTEM.MULTIPROCESSORS.DISPATCHING_DOMAINS --
-- --
-- B o d y --
-- --
-- Copyright (C) 2011-2019, Free Software Foundation, Inc. --
-- --
-- GNARL is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- GNARL was developed by the GNARL team at Florida State University. --
-- Extensive contributions were provided by Ada Core Technologies, Inc. --
-- --
------------------------------------------------------------------------------
-- Body used on targets where the operating system supports setting task
-- affinities.
with System.Tasking.Initialization;
with System.Task_Primitives.Operations; use System.Task_Primitives.Operations;
with Ada.Unchecked_Conversion;
package body System.Multiprocessors.Dispatching_Domains is
package ST renames System.Tasking;
-----------------------
-- Local subprograms --
-----------------------
function Convert_Ids is new
Ada.Unchecked_Conversion (Ada.Task_Identification.Task_Id, ST.Task_Id);
procedure Unchecked_Set_Affinity
(Domain : ST.Dispatching_Domain_Access;
CPU : CPU_Range;
T : ST.Task_Id);
-- Internal procedure to move a task to a target domain and CPU. No checks
-- are performed about the validity of the domain and the CPU because they
-- are done by the callers of this procedure (either Assign_Task or
-- Set_CPU).
procedure Freeze_Dispatching_Domains;
pragma Export
(Ada, Freeze_Dispatching_Domains, "__gnat_freeze_dispatching_domains");
-- Signal the time when no new dispatching domains can be created. It
-- should be called before the environment task calls the main procedure
-- (and after the elaboration code), so the binder-generated file needs to
-- import and call this procedure.
-----------------
-- Assign_Task --
-----------------
procedure Assign_Task
(Domain : in out Dispatching_Domain;
CPU : CPU_Range := Not_A_Specific_CPU;
T : Ada.Task_Identification.Task_Id :=
Ada.Task_Identification.Current_Task)
is
Target : constant ST.Task_Id := Convert_Ids (T);
begin
-- The exception Dispatching_Domain_Error is propagated if T is already
-- assigned to a Dispatching_Domain other than
-- System_Dispatching_Domain, or if CPU is not one of the processors of
-- Domain (and is not Not_A_Specific_CPU).
if Dispatching_Domain (Target.Common.Domain) /= System_Dispatching_Domain
then
raise Dispatching_Domain_Error with
"task already in user-defined dispatching domain";
elsif CPU /= Not_A_Specific_CPU and then CPU not in Domain'Range then
raise Dispatching_Domain_Error with
"processor does not belong to dispatching domain";
end if;
-- Assigning a task to System_Dispatching_Domain that is already
-- assigned to that domain has no effect.
if Domain = System_Dispatching_Domain then
return;
else
-- Set the task affinity once we know it is possible
Unchecked_Set_Affinity
(ST.Dispatching_Domain_Access (Domain), CPU, Target);
end if;
end Assign_Task;
------------
-- Create --
------------
function Create (First : CPU; Last : CPU_Range) return Dispatching_Domain is
begin
return Create ((First .. Last => True));
end Create;
function Create (Set : CPU_Set) return Dispatching_Domain is
ST_DD : aliased constant ST.Dispatching_Domain :=
ST.Dispatching_Domain (Set);
First : constant CPU := Get_First_CPU (ST_DD'Unrestricted_Access);
Last : constant CPU_Range := Get_Last_CPU (ST_DD'Unrestricted_Access);
subtype Rng is CPU_Range range First .. Last;
use type ST.Dispatching_Domain;
use type ST.Dispatching_Domain_Access;
use type ST.Task_Id;
T : ST.Task_Id;
New_System_Domain : ST.Dispatching_Domain := ST.System_Domain.all;
ST_DD_Slice : constant ST.Dispatching_Domain := ST_DD (Rng);
begin
-- The set of processors for creating a dispatching domain must
-- comply with the following restrictions:
-- - Not exceeding the range of available processors.
-- - CPUs from the System_Dispatching_Domain.
-- - The calling task must be the environment task.
-- - The call to Create must take place before the call to the main
-- subprogram.
-- - Set does not contain a processor with a task assigned to it.
-- - The allocation cannot leave System_Dispatching_Domain empty.
-- Note that a previous version of the language forbade empty domains.
if Rng'Last > Number_Of_CPUs then
raise Dispatching_Domain_Error with
"CPU not supported by the target";
end if;
declare
System_Domain_Slice : constant ST.Dispatching_Domain :=
ST.System_Domain (Rng);
Actual : constant ST.Dispatching_Domain :=
ST_DD_Slice and not System_Domain_Slice;
Expected : constant ST.Dispatching_Domain := (Rng => False);
begin
if Actual /= Expected then
raise Dispatching_Domain_Error with
"CPU not currently in System_Dispatching_Domain";
end if;
end;
if Self /= Environment_Task then
raise Dispatching_Domain_Error with
"only the environment task can create dispatching domains";
end if;
if ST.Dispatching_Domains_Frozen then
raise Dispatching_Domain_Error with
"cannot create dispatching domain after call to main procedure";
end if;
for Proc in Rng loop
if ST_DD (Proc) and then
ST.Dispatching_Domain_Tasks (Proc) /= 0
then
raise Dispatching_Domain_Error with "CPU has tasks assigned";
end if;
end loop;
New_System_Domain (Rng) := New_System_Domain (Rng) and not ST_DD_Slice;
if New_System_Domain = (New_System_Domain'Range => False) then
raise Dispatching_Domain_Error with
"would leave System_Dispatching_Domain empty";
end if;
return Result : constant Dispatching_Domain :=
new ST.Dispatching_Domain'(ST_DD_Slice)
do
-- At this point we need to fix the processors belonging to the
-- system domain, and change the affinity of every task that has
-- been created and assigned to the system domain.
ST.Initialization.Defer_Abort (Self);
Lock_RTS;
ST.System_Domain (Rng) := New_System_Domain (Rng);
pragma Assert (ST.System_Domain.all = New_System_Domain);
-- Iterate the list of tasks belonging to the default system
-- dispatching domain and set the appropriate affinity.
T := ST.All_Tasks_List;
while T /= null loop
if T.Common.Domain = ST.System_Domain then
Set_Task_Affinity (T);
end if;
T := T.Common.All_Tasks_Link;
end loop;
Unlock_RTS;
ST.Initialization.Undefer_Abort (Self);
end return;
end Create;
-----------------------------
-- Delay_Until_And_Set_CPU --
-----------------------------
procedure Delay_Until_And_Set_CPU
(Delay_Until_Time : Ada.Real_Time.Time;
CPU : CPU_Range)
is
begin
-- Not supported atomically by the underlying operating systems.
-- Operating systems use to migrate the task immediately after the call
-- to set the affinity.
delay until Delay_Until_Time;
Set_CPU (CPU);
end Delay_Until_And_Set_CPU;
--------------------------------
-- Freeze_Dispatching_Domains --
--------------------------------
procedure Freeze_Dispatching_Domains is
begin
-- Signal the end of the elaboration code
ST.Dispatching_Domains_Frozen := True;
end Freeze_Dispatching_Domains;
-------------
-- Get_CPU --
-------------
function Get_CPU
(T : Ada.Task_Identification.Task_Id :=
Ada.Task_Identification.Current_Task) return CPU_Range
is
begin
return Convert_Ids (T).Common.Base_CPU;
end Get_CPU;
-----------------
-- Get_CPU_Set --
-----------------
function Get_CPU_Set (Domain : Dispatching_Domain) return CPU_Set is
begin
return CPU_Set (Domain.all);
end Get_CPU_Set;
----------------------------
-- Get_Dispatching_Domain --
----------------------------
function Get_Dispatching_Domain
(T : Ada.Task_Identification.Task_Id :=
Ada.Task_Identification.Current_Task) return Dispatching_Domain
is
begin
return Result : constant Dispatching_Domain :=
Dispatching_Domain (Convert_Ids (T).Common.Domain)
do
pragma Assert (Result /= null);
end return;
end Get_Dispatching_Domain;
-------------------
-- Get_First_CPU --
-------------------
function Get_First_CPU (Domain : Dispatching_Domain) return CPU is
begin
for Proc in Domain'Range loop
if Domain (Proc) then
return Proc;
end if;
end loop;
return CPU'First;
end Get_First_CPU;
------------------
-- Get_Last_CPU --
------------------
function Get_Last_CPU (Domain : Dispatching_Domain) return CPU_Range is
begin
for Proc in reverse Domain'Range loop
if Domain (Proc) then
return Proc;
end if;
end loop;
return CPU_Range'First;
end Get_Last_CPU;
-------------
-- Set_CPU --
-------------
procedure Set_CPU
(CPU : CPU_Range;
T : Ada.Task_Identification.Task_Id :=
Ada.Task_Identification.Current_Task)
is
Target : constant ST.Task_Id := Convert_Ids (T);
begin
-- The exception Dispatching_Domain_Error is propagated if CPU is not
-- one of the processors of the Dispatching_Domain on which T is
-- assigned (and is not Not_A_Specific_CPU).
if CPU /= Not_A_Specific_CPU and then
(CPU not in Target.Common.Domain'Range or else
not Target.Common.Domain (CPU))
then
raise Dispatching_Domain_Error with
"processor does not belong to the task's dispatching domain";
end if;
Unchecked_Set_Affinity (Target.Common.Domain, CPU, Target);
end Set_CPU;
----------------------------
-- Unchecked_Set_Affinity --
----------------------------
procedure Unchecked_Set_Affinity
(Domain : ST.Dispatching_Domain_Access;
CPU : CPU_Range;
T : ST.Task_Id)
is
Source_CPU : constant CPU_Range := T.Common.Base_CPU;
use type ST.Dispatching_Domain_Access;
begin
Write_Lock (T);
-- Move to the new domain
T.Common.Domain := Domain;
-- Attach the CPU to the task
T.Common.Base_CPU := CPU;
-- Change the number of tasks attached to a given task in the system
-- domain if needed.
if not ST.Dispatching_Domains_Frozen
and then (Domain = null or else Domain = ST.System_Domain)
then
-- Reduce the number of tasks attached to the CPU from which this
-- task is being moved, if needed.
if Source_CPU /= Not_A_Specific_CPU then
ST.Dispatching_Domain_Tasks (Source_CPU) :=
ST.Dispatching_Domain_Tasks (Source_CPU) - 1;
end if;
-- Increase the number of tasks attached to the CPU to which this
-- task is being moved, if needed.
if CPU /= Not_A_Specific_CPU then
ST.Dispatching_Domain_Tasks (CPU) :=
ST.Dispatching_Domain_Tasks (CPU) + 1;
end if;
end if;
-- Change the actual affinity calling the operating system level
Set_Task_Affinity (T);
Unlock (T);
end Unchecked_Set_Affinity;
end System.Multiprocessors.Dispatching_Domains;
|
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- C L E A N --
-- --
-- B o d y --
-- --
-- Copyright (C) 2003-2015, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
-- for more details. You should have received a copy of the GNU General --
-- Public License distributed with GNAT; see file COPYING3. If not, go to --
-- http://www.gnu.org/licenses for a complete copy of the license. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
with ALI; use ALI;
with Csets;
with Makeutl; use Makeutl;
with MLib.Tgt; use MLib.Tgt;
with Namet; use Namet;
with Opt; use Opt;
with Osint; use Osint;
with Osint.M; use Osint.M;
with Prj; use Prj;
with Prj.Env;
with Prj.Ext;
with Prj.Pars;
with Prj.Tree; use Prj.Tree;
with Prj.Util; use Prj.Util;
with Sdefault;
with Snames;
with Stringt;
with Switch; use Switch;
with Table;
with Targparm; use Targparm;
with Types; use Types;
with Ada.Command_Line; use Ada.Command_Line;
with GNAT.Command_Line; use GNAT.Command_Line;
with GNAT.Directory_Operations; use GNAT.Directory_Operations;
with GNAT.IO; use GNAT.IO;
with GNAT.OS_Lib; use GNAT.OS_Lib;
package body Clean is
Initialized : Boolean := False;
-- Set to True by the first call to Initialize to avoid reinitialization
-- of some packages.
-- Suffixes of various files
Assembly_Suffix : constant String := ".s";
ALI_Suffix : constant String := ".ali";
Tree_Suffix : constant String := ".adt";
Object_Suffix : constant String := Get_Target_Object_Suffix.all;
Debug_Suffix : constant String := ".dg";
Repinfo_Suffix : constant String := ".rep";
-- Suffix of representation info files
B_Start : constant String := "b~";
-- Prefix of binder generated file, and number of actual characters used
Project_Tree : constant Project_Tree_Ref :=
new Project_Tree_Data (Is_Root_Tree => True);
-- The project tree
Object_Directory_Path : String_Access := null;
-- The path name of the object directory, set with switch -D
Force_Deletions : Boolean := False;
-- Set to True by switch -f. When True, attempts to delete non writable
-- files will be done.
Do_Nothing : Boolean := False;
-- Set to True when switch -n is specified. When True, no file is deleted.
-- gnatclean only lists the files that would have been deleted if the
-- switch -n had not been specified.
File_Deleted : Boolean := False;
-- Set to True if at least one file has been deleted
Copyright_Displayed : Boolean := False;
Usage_Displayed : Boolean := False;
Project_File_Name : String_Access := null;
Project_Node_Tree : Project_Node_Tree_Ref;
Main_Project : Prj.Project_Id := Prj.No_Project;
All_Projects : Boolean := False;
-- Packages of project files where unknown attributes are errors
Naming_String : aliased String := "naming";
Builder_String : aliased String := "builder";
Compiler_String : aliased String := "compiler";
Binder_String : aliased String := "binder";
Linker_String : aliased String := "linker";
Gnatmake_Packages : aliased String_List :=
(Naming_String 'Access,
Builder_String 'Access,
Compiler_String 'Access,
Binder_String 'Access,
Linker_String 'Access);
Packages_To_Check_By_Gnatmake : constant String_List_Access :=
Gnatmake_Packages'Access;
package Processed_Projects is new Table.Table
(Table_Component_Type => Project_Id,
Table_Index_Type => Natural,
Table_Low_Bound => 0,
Table_Initial => 10,
Table_Increment => 100,
Table_Name => "Clean.Processed_Projects");
-- Table to keep track of what project files have been processed, when
-- switch -r is specified.
package Sources is new Table.Table
(Table_Component_Type => File_Name_Type,
Table_Index_Type => Natural,
Table_Low_Bound => 0,
Table_Initial => 10,
Table_Increment => 100,
Table_Name => "Clean.Processed_Projects");
-- Table to store all the source files of a library unit: spec, body and
-- subunits, to detect .dg files and delete them.
-----------------------------
-- Other local subprograms --
-----------------------------
procedure Add_Source_Dir (N : String);
-- Call Add_Src_Search_Dir and output one line when in verbose mode
procedure Add_Source_Directories is
new Prj.Env.For_All_Source_Dirs (Action => Add_Source_Dir);
procedure Add_Object_Dir (N : String);
-- Call Add_Lib_Search_Dir and output one line when in verbose mode
procedure Add_Object_Directories is
new Prj.Env.For_All_Object_Dirs (Action => Add_Object_Dir);
function ALI_File_Name (Source : File_Name_Type) return String;
-- Returns the name of the ALI file corresponding to Source
function Assembly_File_Name (Source : File_Name_Type) return String;
-- Returns the assembly file name corresponding to Source
procedure Clean_Archive (Project : Project_Id; Global : Boolean);
-- Delete a global archive or library project archive and the dependency
-- file, if they exist.
procedure Clean_Executables;
-- Do the cleaning work when no project file is specified
procedure Clean_Interface_Copy_Directory (Project : Project_Id);
-- Delete files in an interface copy directory: any file that is a copy of
-- a source of the project.
procedure Clean_Library_Directory (Project : Project_Id);
-- Delete the library file in a library directory and any ALI file of a
-- source of the project in a library ALI directory.
procedure Clean_Project (Project : Project_Id);
-- Do the cleaning work when a project file is specified. This procedure
-- calls itself recursively when there are several project files in the
-- tree rooted at the main project file and switch -r has been specified.
function Debug_File_Name (Source : File_Name_Type) return String;
-- Name of the expanded source file corresponding to Source
procedure Delete (In_Directory : String; File : String);
-- Delete one file, or list the file name if switch -n is specified
procedure Delete_Binder_Generated_Files
(Dir : String;
Source : File_Name_Type);
-- Delete the binder generated file in directory Dir for Source, if they
-- exist: for Unix these are b~<source>.ads, b~<source>.adb,
-- b~<source>.ali and b~<source>.o.
procedure Display_Copyright;
-- Display the Copyright notice. If called several times, display the
-- Copyright notice only the first time.
procedure Initialize;
-- Call the necessary package initializations
function Object_File_Name (Source : File_Name_Type) return String;
-- Returns the object file name corresponding to Source
procedure Parse_Cmd_Line;
-- Parse the command line
function Repinfo_File_Name (Source : File_Name_Type) return String;
-- Returns the repinfo file name corresponding to Source
function Tree_File_Name (Source : File_Name_Type) return String;
-- Returns the tree file name corresponding to Source
function In_Extension_Chain
(Of_Project : Project_Id;
Prj : Project_Id) return Boolean;
-- Returns True iff Prj is an extension of Of_Project or if Of_Project is
-- an extension of Prj.
procedure Usage;
-- Display the usage. If called several times, the usage is displayed only
-- the first time.
--------------------
-- Add_Object_Dir --
--------------------
procedure Add_Object_Dir (N : String) is
begin
Add_Lib_Search_Dir (N);
if Opt.Verbose_Mode then
Put ("Adding object directory """);
Put (N);
Put (""".");
New_Line;
end if;
end Add_Object_Dir;
--------------------
-- Add_Source_Dir --
--------------------
procedure Add_Source_Dir (N : String) is
begin
Add_Src_Search_Dir (N);
if Opt.Verbose_Mode then
Put ("Adding source directory """);
Put (N);
Put (""".");
New_Line;
end if;
end Add_Source_Dir;
-------------------
-- ALI_File_Name --
-------------------
function ALI_File_Name (Source : File_Name_Type) return String is
Src : constant String := Get_Name_String (Source);
begin
-- If the source name has an extension, then replace it with
-- the ALI suffix.
for Index in reverse Src'First + 1 .. Src'Last loop
if Src (Index) = '.' then
return Src (Src'First .. Index - 1) & ALI_Suffix;
end if;
end loop;
-- If there is no dot, or if it is the first character, just add the
-- ALI suffix.
return Src & ALI_Suffix;
end ALI_File_Name;
------------------------
-- Assembly_File_Name --
------------------------
function Assembly_File_Name (Source : File_Name_Type) return String is
Src : constant String := Get_Name_String (Source);
begin
-- If the source name has an extension, then replace it with
-- the assembly suffix.
for Index in reverse Src'First + 1 .. Src'Last loop
if Src (Index) = '.' then
return Src (Src'First .. Index - 1) & Assembly_Suffix;
end if;
end loop;
-- If there is no dot, or if it is the first character, just add the
-- assembly suffix.
return Src & Assembly_Suffix;
end Assembly_File_Name;
-------------------
-- Clean_Archive --
-------------------
procedure Clean_Archive (Project : Project_Id; Global : Boolean) is
Current_Dir : constant Dir_Name_Str := Get_Current_Dir;
Lib_Prefix : String_Access;
Archive_Name : String_Access;
-- The name of the archive file for this project
Archive_Dep_Name : String_Access;
-- The name of the archive dependency file for this project
Obj_Dir : constant String :=
Get_Name_String (Project.Object_Directory.Display_Name);
begin
Change_Dir (Obj_Dir);
-- First, get the lib prefix, the archive file name and the archive
-- dependency file name.
if Global then
Lib_Prefix :=
new String'("lib" & Get_Name_String (Project.Display_Name));
else
Lib_Prefix :=
new String'("lib" & Get_Name_String (Project.Library_Name));
end if;
Archive_Name := new String'(Lib_Prefix.all & '.' & Archive_Ext);
Archive_Dep_Name := new String'(Lib_Prefix.all & ".deps");
-- Delete the archive file and the archive dependency file, if they
-- exist.
if Is_Regular_File (Archive_Name.all) then
Delete (Obj_Dir, Archive_Name.all);
end if;
if Is_Regular_File (Archive_Dep_Name.all) then
Delete (Obj_Dir, Archive_Dep_Name.all);
end if;
Change_Dir (Current_Dir);
end Clean_Archive;
-----------------------
-- Clean_Executables --
-----------------------
procedure Clean_Executables is
Main_Source_File : File_Name_Type;
-- Current main source
Main_Lib_File : File_Name_Type;
-- ALI file of the current main
Lib_File : File_Name_Type;
-- Current ALI file
Full_Lib_File : File_Name_Type;
-- Full name of the current ALI file
Text : Text_Buffer_Ptr;
The_ALI : ALI_Id;
Found : Boolean;
Source : Queue.Source_Info;
begin
Queue.Initialize (Queue_Per_Obj_Dir => False);
-- It does not really matter if there is or not an object file
-- corresponding to an ALI file: if there is one, it will be deleted.
Opt.Check_Object_Consistency := False;
-- Proceed each executable one by one. Each source is marked as it is
-- processed, so common sources between executables will not be
-- processed several times.
for N_File in 1 .. Osint.Number_Of_Files loop
Main_Source_File := Next_Main_Source;
Main_Lib_File :=
Osint.Lib_File_Name (Main_Source_File, Current_File_Index);
if Main_Lib_File /= No_File then
Queue.Insert
((Format => Format_Gnatmake,
File => Main_Lib_File,
Unit => No_Unit_Name,
Index => 0,
Project => No_Project,
Sid => No_Source));
end if;
while not Queue.Is_Empty loop
Sources.Set_Last (0);
Queue.Extract (Found, Source);
pragma Assert (Found);
pragma Assert (Source.File /= No_File);
Lib_File := Source.File;
Full_Lib_File := Osint.Full_Lib_File_Name (Lib_File);
-- If we have existing ALI file that is not read-only, process it
if Full_Lib_File /= No_File
and then not Is_Readonly_Library (Full_Lib_File)
then
Text := Read_Library_Info (Lib_File);
if Text /= null then
The_ALI :=
Scan_ALI (Lib_File, Text, Ignore_ED => False, Err => True);
Free (Text);
-- If no error was produced while loading this ALI file,
-- insert into the queue all the unmarked withed sources.
if The_ALI /= No_ALI_Id then
for J in ALIs.Table (The_ALI).First_Unit ..
ALIs.Table (The_ALI).Last_Unit
loop
Sources.Increment_Last;
Sources.Table (Sources.Last) :=
ALI.Units.Table (J).Sfile;
for K in ALI.Units.Table (J).First_With ..
ALI.Units.Table (J).Last_With
loop
if Withs.Table (K).Afile /= No_File then
Queue.Insert
((Format => Format_Gnatmake,
File => Withs.Table (K).Afile,
Unit => No_Unit_Name,
Index => 0,
Project => No_Project,
Sid => No_Source));
end if;
end loop;
end loop;
-- Look for subunits and put them in the Sources table
for J in ALIs.Table (The_ALI).First_Sdep ..
ALIs.Table (The_ALI).Last_Sdep
loop
if Sdep.Table (J).Subunit_Name /= No_Name then
Sources.Increment_Last;
Sources.Table (Sources.Last) :=
Sdep.Table (J).Sfile;
end if;
end loop;
end if;
end if;
-- Now delete all existing files corresponding to this ALI file
declare
Obj_Dir : constant String :=
Dir_Name (Get_Name_String (Full_Lib_File));
Obj : constant String := Object_File_Name (Lib_File);
Adt : constant String := Tree_File_Name (Lib_File);
Asm : constant String := Assembly_File_Name (Lib_File);
begin
Delete (Obj_Dir, Get_Name_String (Lib_File));
if Is_Regular_File (Obj_Dir & Dir_Separator & Obj) then
Delete (Obj_Dir, Obj);
end if;
if Is_Regular_File (Obj_Dir & Dir_Separator & Adt) then
Delete (Obj_Dir, Adt);
end if;
if Is_Regular_File (Obj_Dir & Dir_Separator & Asm) then
Delete (Obj_Dir, Asm);
end if;
-- Delete expanded source files (.dg) and/or repinfo files
-- (.rep) if any
for J in 1 .. Sources.Last loop
declare
Deb : constant String :=
Debug_File_Name (Sources.Table (J));
Rep : constant String :=
Repinfo_File_Name (Sources.Table (J));
begin
if Is_Regular_File (Obj_Dir & Dir_Separator & Deb) then
Delete (Obj_Dir, Deb);
end if;
if Is_Regular_File (Obj_Dir & Dir_Separator & Rep) then
Delete (Obj_Dir, Rep);
end if;
end;
end loop;
end;
end if;
end loop;
-- Delete the executable, if it exists, and the binder generated
-- files, if any.
if not Compile_Only then
declare
Source : constant File_Name_Type :=
Strip_Suffix (Main_Lib_File);
Executable : constant String :=
Get_Name_String (Executable_Name (Source));
begin
if Is_Regular_File (Executable) then
Delete ("", Executable);
end if;
Delete_Binder_Generated_Files (Get_Current_Dir, Source);
end;
end if;
end loop;
end Clean_Executables;
------------------------------------
-- Clean_Interface_Copy_Directory --
------------------------------------
procedure Clean_Interface_Copy_Directory (Project : Project_Id) is
Current : constant String := Get_Current_Dir;
Direc : Dir_Type;
Name : String (1 .. 200);
Last : Natural;
Delete_File : Boolean;
Unit : Unit_Index;
begin
if Project.Library
and then Project.Library_Src_Dir /= No_Path_Information
then
declare
Directory : constant String :=
Get_Name_String (Project.Library_Src_Dir.Display_Name);
begin
Change_Dir (Directory);
Open (Direc, ".");
-- For each regular file in the directory, if switch -n has not
-- been specified, make it writable and delete the file if it is
-- a copy of a source of the project.
loop
Read (Direc, Name, Last);
exit when Last = 0;
declare
Filename : constant String := Name (1 .. Last);
begin
if Is_Regular_File (Filename) then
Canonical_Case_File_Name (Name (1 .. Last));
Delete_File := False;
Unit := Units_Htable.Get_First (Project_Tree.Units_HT);
-- Compare with source file names of the project
while Unit /= No_Unit_Index loop
if Unit.File_Names (Impl) /= null
and then Ultimate_Extending_Project_Of
(Unit.File_Names (Impl).Project) = Project
and then
Get_Name_String (Unit.File_Names (Impl).File) =
Name (1 .. Last)
then
Delete_File := True;
exit;
end if;
if Unit.File_Names (Spec) /= null
and then Ultimate_Extending_Project_Of
(Unit.File_Names (Spec).Project) = Project
and then
Get_Name_String
(Unit.File_Names (Spec).File) = Name (1 .. Last)
then
Delete_File := True;
exit;
end if;
Unit := Units_Htable.Get_Next (Project_Tree.Units_HT);
end loop;
if Delete_File then
if not Do_Nothing then
Set_Writable (Filename);
end if;
Delete (Directory, Filename);
end if;
end if;
end;
end loop;
Close (Direc);
-- Restore the initial working directory
Change_Dir (Current);
end;
end if;
end Clean_Interface_Copy_Directory;
-----------------------------
-- Clean_Library_Directory --
-----------------------------
Empty_String : aliased String := "";
procedure Clean_Library_Directory (Project : Project_Id) is
Current : constant String := Get_Current_Dir;
Lib_Filename : constant String := Get_Name_String (Project.Library_Name);
DLL_Name : String :=
DLL_Prefix & Lib_Filename & "." & DLL_Ext;
Archive_Name : String :=
"lib" & Lib_Filename & "." & Archive_Ext;
Direc : Dir_Type;
Name : String (1 .. 200);
Last : Natural;
Delete_File : Boolean;
Minor : String_Access := Empty_String'Access;
Major : String_Access := Empty_String'Access;
begin
if Project.Library then
if Project.Library_Kind /= Static
and then MLib.Tgt.Library_Major_Minor_Id_Supported
and then Project.Lib_Internal_Name /= No_Name
then
Minor := new String'(Get_Name_String (Project.Lib_Internal_Name));
Major := new String'(MLib.Major_Id_Name (DLL_Name, Minor.all));
end if;
declare
Lib_Directory : constant String :=
Get_Name_String (Project.Library_Dir.Display_Name);
Lib_ALI_Directory : constant String :=
Get_Name_String (Project.Library_ALI_Dir.Display_Name);
begin
Canonical_Case_File_Name (Archive_Name);
Canonical_Case_File_Name (DLL_Name);
if Is_Directory (Lib_Directory) then
Change_Dir (Lib_Directory);
Open (Direc, ".");
-- For each regular file in the directory, if switch -n has not
-- not been specified, make it writable and delete the file if
-- it is the library file.
loop
Read (Direc, Name, Last);
exit when Last = 0;
declare
Filename : constant String := Name (1 .. Last);
begin
if Is_Regular_File (Filename)
or else Is_Symbolic_Link (Filename)
then
Canonical_Case_File_Name (Name (1 .. Last));
Delete_File := False;
if (Project.Library_Kind = Static
and then Name (1 .. Last) = Archive_Name)
or else
((Project.Library_Kind = Dynamic
or else
Project.Library_Kind = Relocatable)
and then
(Name (1 .. Last) = DLL_Name
or else
Name (1 .. Last) = Minor.all
or else
Name (1 .. Last) = Major.all))
then
if not Do_Nothing then
Set_Writable (Filename);
end if;
Delete (Lib_Directory, Filename);
end if;
end if;
end;
end loop;
Close (Direc);
end if;
if not Is_Directory (Lib_ALI_Directory) then
-- Nothing more to do, return now
return;
end if;
Change_Dir (Lib_ALI_Directory);
Open (Direc, ".");
-- For each regular file in the directory, if switch -n has not
-- been specified, make it writable and delete the file if it is
-- any ALI file of a source of the project.
loop
Read (Direc, Name, Last);
exit when Last = 0;
declare
Filename : constant String := Name (1 .. Last);
begin
if Is_Regular_File (Filename) then
Canonical_Case_File_Name (Name (1 .. Last));
Delete_File := False;
if Last > 4 and then Name (Last - 3 .. Last) = ".ali" then
declare
Unit : Unit_Index;
begin
-- Compare with ALI file names of the project
Unit :=
Units_Htable.Get_First (Project_Tree.Units_HT);
while Unit /= No_Unit_Index loop
if Unit.File_Names (Impl) /= null
and then Unit.File_Names (Impl).Project /=
No_Project
then
if Ultimate_Extending_Project_Of
(Unit.File_Names (Impl).Project) =
Project
then
Get_Name_String
(Unit.File_Names (Impl).File);
Name_Len :=
Name_Len -
File_Extension
(Name (1 .. Name_Len))'Length;
if Name_Buffer (1 .. Name_Len) =
Name (1 .. Last - 4)
then
Delete_File := True;
exit;
end if;
end if;
elsif Unit.File_Names (Spec) /= null
and then Ultimate_Extending_Project_Of
(Unit.File_Names (Spec).Project) =
Project
then
Get_Name_String (Unit.File_Names (Spec).File);
Name_Len :=
Name_Len -
File_Extension
(Name (1 .. Name_Len))'Length;
if Name_Buffer (1 .. Name_Len) =
Name (1 .. Last - 4)
then
Delete_File := True;
exit;
end if;
end if;
Unit :=
Units_Htable.Get_Next (Project_Tree.Units_HT);
end loop;
end;
end if;
if Delete_File then
if not Do_Nothing then
Set_Writable (Filename);
end if;
Delete (Lib_ALI_Directory, Filename);
end if;
end if;
end;
end loop;
Close (Direc);
-- Restore the initial working directory
Change_Dir (Current);
end;
end if;
end Clean_Library_Directory;
-------------------
-- Clean_Project --
-------------------
procedure Clean_Project (Project : Project_Id) is
Main_Source_File : File_Name_Type;
-- Name of executable on the command line without directory info
Executable : File_Name_Type;
-- Name of the executable file
Current_Dir : constant Dir_Name_Str := Get_Current_Dir;
Unit : Unit_Index;
File_Name1 : File_Name_Type;
Index1 : Int;
File_Name2 : File_Name_Type;
Index2 : Int;
Lib_File : File_Name_Type;
Global_Archive : Boolean := False;
begin
-- Check that we don't specify executable on the command line for
-- a main library project.
if Project = Main_Project
and then Osint.Number_Of_Files /= 0
and then Project.Library
then
Osint.Fail
("Cannot specify executable(s) for a Library Project File");
end if;
-- Nothing to clean in an externally built project
if Project.Externally_Built then
if Verbose_Mode then
Put ("Nothing to do to clean externally built project """);
Put (Get_Name_String (Project.Name));
Put_Line ("""");
end if;
else
if Verbose_Mode then
Put ("Cleaning project """);
Put (Get_Name_String (Project.Name));
Put_Line ("""");
end if;
-- Add project to the list of processed projects
Processed_Projects.Increment_Last;
Processed_Projects.Table (Processed_Projects.Last) := Project;
if Project.Object_Directory /= No_Path_Information
and then Is_Directory
(Get_Name_String (Project.Object_Directory.Display_Name))
then
declare
Obj_Dir : constant String :=
Get_Name_String (Project.Object_Directory.Display_Name);
begin
Change_Dir (Obj_Dir);
-- First, deal with Ada
-- Look through the units to find those that are either
-- immediate sources or inherited sources of the project.
-- Extending projects may have no language specified, if
-- Source_Dirs or Source_Files is specified as an empty list,
-- so always look for Ada units in extending projects.
if Has_Ada_Sources (Project)
or else Project.Extends /= No_Project
then
Unit := Units_Htable.Get_First (Project_Tree.Units_HT);
while Unit /= No_Unit_Index loop
File_Name1 := No_File;
File_Name2 := No_File;
-- If either the spec or the body is a source of the
-- project, check for the corresponding ALI file in the
-- object directory.
if (Unit.File_Names (Impl) /= null
and then
In_Extension_Chain
(Unit.File_Names (Impl).Project, Project))
or else
(Unit.File_Names (Spec) /= null
and then
In_Extension_Chain
(Unit.File_Names (Spec).Project, Project))
then
if Unit.File_Names (Impl) /= null then
File_Name1 := Unit.File_Names (Impl).File;
Index1 := Unit.File_Names (Impl).Index;
else
File_Name1 := No_File;
Index1 := 0;
end if;
if Unit.File_Names (Spec) /= null then
File_Name2 := Unit.File_Names (Spec).File;
Index2 := Unit.File_Names (Spec).Index;
else
File_Name2 := No_File;
Index2 := 0;
end if;
-- If there is no body file name, then there may be
-- only a spec.
if File_Name1 = No_File then
File_Name1 := File_Name2;
Index1 := Index2;
File_Name2 := No_File;
Index2 := 0;
end if;
end if;
-- If there is either a spec or a body, look for files
-- in the object directory.
if File_Name1 /= No_File then
Lib_File := Osint.Lib_File_Name (File_Name1, Index1);
declare
Asm : constant String :=
Assembly_File_Name (Lib_File);
ALI : constant String :=
ALI_File_Name (Lib_File);
Obj : constant String :=
Object_File_Name (Lib_File);
Adt : constant String :=
Tree_File_Name (Lib_File);
Deb : constant String :=
Debug_File_Name (File_Name1);
Rep : constant String :=
Repinfo_File_Name (File_Name1);
Del : Boolean := True;
begin
-- If the ALI file exists and is read-only, no file
-- is deleted.
if Is_Regular_File (ALI) then
if Is_Writable_File (ALI) then
Delete (Obj_Dir, ALI);
else
Del := False;
if Verbose_Mode then
Put ('"');
Put (Obj_Dir);
if Obj_Dir (Obj_Dir'Last) /=
Dir_Separator
then
Put (Dir_Separator);
end if;
Put (ALI);
Put_Line (""" is read-only");
end if;
end if;
end if;
if Del then
-- Object file
if Is_Regular_File (Obj) then
Delete (Obj_Dir, Obj);
end if;
-- Assembly file
if Is_Regular_File (Asm) then
Delete (Obj_Dir, Asm);
end if;
-- Tree file
if Is_Regular_File (Adt) then
Delete (Obj_Dir, Adt);
end if;
-- First expanded source file
if Is_Regular_File (Deb) then
Delete (Obj_Dir, Deb);
end if;
-- Repinfo file
if Is_Regular_File (Rep) then
Delete (Obj_Dir, Rep);
end if;
-- Second expanded source file
if File_Name2 /= No_File then
declare
Deb : constant String :=
Debug_File_Name (File_Name2);
Rep : constant String :=
Repinfo_File_Name (File_Name2);
begin
if Is_Regular_File (Deb) then
Delete (Obj_Dir, Deb);
end if;
if Is_Regular_File (Rep) then
Delete (Obj_Dir, Rep);
end if;
end;
end if;
end if;
end;
end if;
Unit := Units_Htable.Get_Next (Project_Tree.Units_HT);
end loop;
end if;
-- Check if a global archive and it dependency file could have
-- been created and, if they exist, delete them.
if Project = Main_Project and then not Project.Library then
Global_Archive := False;
declare
Proj : Project_List;
begin
Proj := Project_Tree.Projects;
while Proj /= null loop
-- For gnatmake, when the project specifies more than
-- just Ada as a language (even if course we could not
-- find any source file for the other languages), we
-- will take all the object files found in the object
-- directories. Since we know the project supports at
-- least Ada, we just have to test whether it has at
-- least two languages, and we do not care about the
-- sources.
if Proj.Project.Languages /= null
and then Proj.Project.Languages.Next /= null
then
Global_Archive := True;
exit;
end if;
Proj := Proj.Next;
end loop;
end;
if Global_Archive then
Clean_Archive (Project, Global => True);
end if;
end if;
end;
end if;
-- If this is a library project, clean the library directory, the
-- interface copy dir and, for a Stand-Alone Library, the binder
-- generated files of the library.
-- The directories are cleaned only if switch -c is not specified
if Project.Library then
if not Compile_Only then
Clean_Library_Directory (Project);
if Project.Library_Src_Dir /= No_Path_Information then
Clean_Interface_Copy_Directory (Project);
end if;
end if;
if Project.Standalone_Library /= No
and then Project.Object_Directory /= No_Path_Information
then
Delete_Binder_Generated_Files
(Get_Name_String (Project.Object_Directory.Display_Name),
File_Name_Type (Project.Library_Name));
end if;
end if;
if Verbose_Mode then
New_Line;
end if;
end if;
-- If switch -r is specified, call Clean_Project recursively for the
-- imported projects and the project being extended.
if All_Projects then
declare
Imported : Project_List;
Process : Boolean;
begin
-- For each imported project, call Clean_Project if the project
-- has not been processed already.
Imported := Project.Imported_Projects;
while Imported /= null loop
Process := True;
for
J in Processed_Projects.First .. Processed_Projects.Last
loop
if Imported.Project = Processed_Projects.Table (J) then
Process := False;
exit;
end if;
end loop;
if Process then
Clean_Project (Imported.Project);
end if;
Imported := Imported.Next;
end loop;
-- If this project extends another project, call Clean_Project for
-- the project being extended. It is guaranteed that it has not
-- called before, because no other project may import or extend
-- this project.
if Project.Extends /= No_Project then
Clean_Project (Project.Extends);
end if;
end;
end if;
-- For the main project, delete the executables and the binder
-- generated files.
-- The executables are deleted only if switch -c is not specified
if Project = Main_Project
and then Project.Exec_Directory /= No_Path_Information
then
declare
Exec_Dir : constant String :=
Get_Name_String (Project.Exec_Directory.Display_Name);
begin
Change_Dir (Exec_Dir);
for N_File in 1 .. Osint.Number_Of_Files loop
Main_Source_File := Next_Main_Source;
if not Compile_Only then
Executable :=
Executable_Of
(Main_Project,
Project_Tree.Shared,
Main_Source_File,
Current_File_Index);
declare
Exec_File_Name : constant String :=
Get_Name_String (Executable);
begin
if Is_Absolute_Path (Name => Exec_File_Name) then
if Is_Regular_File (Exec_File_Name) then
Delete ("", Exec_File_Name);
end if;
else
if Is_Regular_File (Exec_File_Name) then
Delete (Exec_Dir, Exec_File_Name);
end if;
end if;
end;
end if;
if Project.Object_Directory /= No_Path_Information
and then
Is_Directory
(Get_Name_String (Project.Object_Directory.Display_Name))
then
Delete_Binder_Generated_Files
(Get_Name_String (Project.Object_Directory.Display_Name),
Strip_Suffix (Main_Source_File));
end if;
end loop;
end;
end if;
-- Change back to previous directory
Change_Dir (Current_Dir);
end Clean_Project;
---------------------
-- Debug_File_Name --
---------------------
function Debug_File_Name (Source : File_Name_Type) return String is
begin
return Get_Name_String (Source) & Debug_Suffix;
end Debug_File_Name;
------------
-- Delete --
------------
procedure Delete (In_Directory : String; File : String) is
Full_Name : String (1 .. In_Directory'Length + File'Length + 1);
Last : Natural := 0;
Success : Boolean;
begin
-- Indicate that at least one file is deleted or is to be deleted
File_Deleted := True;
-- Build the path name of the file to delete
Last := In_Directory'Length;
Full_Name (1 .. Last) := In_Directory;
if Last > 0 and then Full_Name (Last) /= Directory_Separator then
Last := Last + 1;
Full_Name (Last) := Directory_Separator;
end if;
Full_Name (Last + 1 .. Last + File'Length) := File;
Last := Last + File'Length;
-- If switch -n was used, simply output the path name
if Do_Nothing then
Put_Line (Full_Name (1 .. Last));
-- Otherwise, delete the file if it is writable
else
if Force_Deletions
or else Is_Writable_File (Full_Name (1 .. Last))
or else Is_Symbolic_Link (Full_Name (1 .. Last))
then
Delete_File (Full_Name (1 .. Last), Success);
-- Here if no deletion required
else
Success := False;
end if;
if Verbose_Mode or else not Quiet_Output then
if not Success then
Put ("Warning: """);
Put (Full_Name (1 .. Last));
Put_Line (""" could not be deleted");
else
Put ("""");
Put (Full_Name (1 .. Last));
Put_Line (""" has been deleted");
end if;
end if;
end if;
end Delete;
-----------------------------------
-- Delete_Binder_Generated_Files --
-----------------------------------
procedure Delete_Binder_Generated_Files
(Dir : String;
Source : File_Name_Type)
is
Source_Name : constant String := Get_Name_String (Source);
Current : constant String := Get_Current_Dir;
Last : constant Positive := B_Start'Length + Source_Name'Length;
File_Name : String (1 .. Last + 4);
begin
Change_Dir (Dir);
-- Build the file name (before the extension)
File_Name (1 .. B_Start'Length) := B_Start;
File_Name (B_Start'Length + 1 .. Last) := Source_Name;
-- Spec
File_Name (Last + 1 .. Last + 4) := ".ads";
if Is_Regular_File (File_Name (1 .. Last + 4)) then
Delete (Dir, File_Name (1 .. Last + 4));
end if;
-- Body
File_Name (Last + 1 .. Last + 4) := ".adb";
if Is_Regular_File (File_Name (1 .. Last + 4)) then
Delete (Dir, File_Name (1 .. Last + 4));
end if;
-- ALI file
File_Name (Last + 1 .. Last + 4) := ".ali";
if Is_Regular_File (File_Name (1 .. Last + 4)) then
Delete (Dir, File_Name (1 .. Last + 4));
end if;
-- Object file
File_Name (Last + 1 .. Last + Object_Suffix'Length) := Object_Suffix;
if Is_Regular_File (File_Name (1 .. Last + Object_Suffix'Length)) then
Delete (Dir, File_Name (1 .. Last + Object_Suffix'Length));
end if;
-- Change back to previous directory
Change_Dir (Current);
end Delete_Binder_Generated_Files;
-----------------------
-- Display_Copyright --
-----------------------
procedure Display_Copyright is
begin
if not Copyright_Displayed then
Copyright_Displayed := True;
Display_Version ("GNATCLEAN", "2003");
end if;
end Display_Copyright;
---------------
-- Gnatclean --
---------------
procedure Gnatclean is
begin
-- Do the necessary initializations
Clean.Initialize;
-- Parse the command line, getting the switches and the executable names
Parse_Cmd_Line;
-- Add the default project search directories now, after the directories
-- that have been specified by switches -aP<dir>.
Prj.Env.Initialize_Default_Project_Path
(Root_Environment.Project_Path,
Target_Name => Sdefault.Target_Name.all);
if Verbose_Mode then
Display_Copyright;
end if;
if Project_File_Name /= null then
-- Warn about 'gnatclean -P'
if Project_File_Name /= null then
Put_Line
("warning: gnatclean -P is obsolete and will not be available" &
" in the next release; use gprclean instead.");
end if;
-- A project file was specified by a -P switch
if Opt.Verbose_Mode then
New_Line;
Put ("Parsing Project File """);
Put (Project_File_Name.all);
Put_Line (""".");
New_Line;
end if;
-- Set the project parsing verbosity to whatever was specified
-- by a possible -vP switch.
Prj.Pars.Set_Verbosity (To => Current_Verbosity);
-- Parse the project file. If there is an error, Main_Project
-- will still be No_Project.
Prj.Pars.Parse
(Project => Main_Project,
In_Tree => Project_Tree,
In_Node_Tree => Project_Node_Tree,
Project_File_Name => Project_File_Name.all,
Env => Root_Environment,
Packages_To_Check => Packages_To_Check_By_Gnatmake);
if Main_Project = No_Project then
Fail ("""" & Project_File_Name.all & """ processing failed");
elsif Main_Project.Qualifier = Aggregate then
Fail ("aggregate projects are not supported");
elsif Aggregate_Libraries_In (Project_Tree) then
Fail ("aggregate library projects are not supported");
end if;
if Opt.Verbose_Mode then
New_Line;
Put ("Parsing of Project File """);
Put (Project_File_Name.all);
Put (""" is finished.");
New_Line;
end if;
-- Add source directories and object directories to the search paths
Add_Source_Directories (Main_Project, Project_Tree);
Add_Object_Directories (Main_Project, Project_Tree);
end if;
Osint.Add_Default_Search_Dirs;
-- If a project file was specified, but no executable name, put all
-- the mains of the project file (if any) as if there were on the
-- command line.
if Main_Project /= No_Project and then Osint.Number_Of_Files = 0 then
declare
Main : String_Element;
Value : String_List_Id := Main_Project.Mains;
begin
while Value /= Prj.Nil_String loop
Main := Project_Tree.Shared.String_Elements.Table (Value);
Osint.Add_File
(File_Name => Get_Name_String (Main.Value),
Index => Main.Index);
Value := Main.Next;
end loop;
end;
end if;
-- If neither a project file nor an executable were specified, exit
-- displaying the usage if there were no arguments on the command line.
if Main_Project = No_Project and then Osint.Number_Of_Files = 0 then
if Argument_Count = 0 then
Usage;
else
Try_Help;
end if;
return;
end if;
if Verbose_Mode then
New_Line;
end if;
if Main_Project /= No_Project then
-- If a project file has been specified, call Clean_Project with the
-- project id of this project file, after resetting the list of
-- processed projects.
Processed_Projects.Init;
Clean_Project (Main_Project);
else
-- If no project file has been specified, the work is done in
-- Clean_Executables.
Clean_Executables;
end if;
-- In verbose mode, if Delete has not been called, indicate that no file
-- needs to be deleted.
if Verbose_Mode and (not File_Deleted) then
New_Line;
if Do_Nothing then
Put_Line ("No file needs to be deleted");
else
Put_Line ("No file has been deleted");
end if;
end if;
end Gnatclean;
------------------------
-- In_Extension_Chain --
------------------------
function In_Extension_Chain
(Of_Project : Project_Id;
Prj : Project_Id) return Boolean
is
Proj : Project_Id;
begin
if Prj = No_Project or else Of_Project = No_Project then
return False;
end if;
if Of_Project = Prj then
return True;
end if;
Proj := Of_Project;
while Proj.Extends /= No_Project loop
if Proj.Extends = Prj then
return True;
end if;
Proj := Proj.Extends;
end loop;
Proj := Prj;
while Proj.Extends /= No_Project loop
if Proj.Extends = Of_Project then
return True;
end if;
Proj := Proj.Extends;
end loop;
return False;
end In_Extension_Chain;
----------------
-- Initialize --
----------------
procedure Initialize is
begin
if not Initialized then
Initialized := True;
-- Get default search directories to locate system.ads when calling
-- Targparm.Get_Target_Parameters.
Osint.Add_Default_Search_Dirs;
-- Initialize some packages
Csets.Initialize;
Snames.Initialize;
Stringt.Initialize;
Prj.Tree.Initialize (Root_Environment, Gnatmake_Flags);
Project_Node_Tree := new Project_Node_Tree_Data;
Prj.Tree.Initialize (Project_Node_Tree);
Prj.Initialize (Project_Tree);
Targparm.Get_Target_Parameters;
end if;
-- Reset global variables
Free (Object_Directory_Path);
Do_Nothing := False;
File_Deleted := False;
Copyright_Displayed := False;
Usage_Displayed := False;
Free (Project_File_Name);
Main_Project := Prj.No_Project;
All_Projects := False;
end Initialize;
----------------------
-- Object_File_Name --
----------------------
function Object_File_Name (Source : File_Name_Type) return String is
Src : constant String := Get_Name_String (Source);
begin
-- If the source name has an extension, then replace it with
-- the Object suffix.
for Index in reverse Src'First + 1 .. Src'Last loop
if Src (Index) = '.' then
return Src (Src'First .. Index - 1) & Object_Suffix;
end if;
end loop;
-- If there is no dot, or if it is the first character, just add the
-- ALI suffix.
return Src & Object_Suffix;
end Object_File_Name;
--------------------
-- Parse_Cmd_Line --
--------------------
procedure Parse_Cmd_Line is
Last : constant Natural := Argument_Count;
Index : Positive;
Source_Index : Int := 0;
procedure Check_Version_And_Help is new Check_Version_And_Help_G (Usage);
begin
-- First, check for --version and --help
Check_Version_And_Help ("GNATCLEAN", "2003");
-- First, check for switch -P and, if found and gprclean is available,
-- silently invoke gprclean, with switch --target if not on a native
-- platform.
declare
Arg_Len : Positive := Argument_Count;
Call_Gprclean : Boolean := False;
Gprclean : String_Access := null;
Pos : Natural := 0;
Success : Boolean;
Target : String_Access := null;
begin
Find_Program_Name;
if Name_Len >= 9
and then Name_Buffer (Name_Len - 8 .. Name_Len) = "gnatclean"
then
if Name_Len > 9 then
Target := new String'(Name_Buffer (1 .. Name_Len - 10));
Arg_Len := Arg_Len + 1;
end if;
for J in 1 .. Argument_Count loop
declare
Arg : constant String := Argument (J);
begin
if Arg'Length >= 2
and then Arg (Arg'First .. Arg'First + 1) = "-P"
then
Call_Gprclean := True;
exit;
end if;
end;
end loop;
if Call_Gprclean then
Gprclean := Locate_Exec_On_Path (Exec_Name => "gprclean");
if Gprclean /= null then
declare
Args : Argument_List (1 .. Arg_Len);
begin
if Target /= null then
Args (1) := new String'("--target=" & Target.all);
Pos := 1;
end if;
for J in 1 .. Argument_Count loop
Pos := Pos + 1;
Args (Pos) := new String'(Argument (J));
end loop;
Spawn (Gprclean.all, Args, Success);
Free (Gprclean);
if Success then
Exit_Program (E_Success);
end if;
end;
end if;
end if;
end if;
end;
Index := 1;
while Index <= Last loop
declare
Arg : constant String := Argument (Index);
procedure Bad_Argument;
-- Signal bad argument
------------------
-- Bad_Argument --
------------------
procedure Bad_Argument is
begin
Fail ("invalid argument """ & Arg & """");
end Bad_Argument;
begin
if Arg'Length /= 0 then
if Arg (1) = '-' then
if Arg'Length = 1 then
Bad_Argument;
end if;
case Arg (2) is
when '-' =>
if Arg'Length > Subdirs_Option'Length
and then
Arg (1 .. Subdirs_Option'Length) = Subdirs_Option
then
Subdirs :=
new String'
(Arg (Subdirs_Option'Length + 1 .. Arg'Last));
elsif Arg = Makeutl.Unchecked_Shared_Lib_Imports then
Opt.Unchecked_Shared_Lib_Imports := True;
else
Bad_Argument;
end if;
when 'a' =>
if Arg'Length < 4 then
Bad_Argument;
end if;
if Arg (3) = 'O' then
Add_Lib_Search_Dir (Arg (4 .. Arg'Last));
elsif Arg (3) = 'P' then
Prj.Env.Add_Directories
(Root_Environment.Project_Path,
Arg (4 .. Arg'Last));
else
Bad_Argument;
end if;
when 'c' =>
Compile_Only := True;
when 'D' =>
if Object_Directory_Path /= null then
Fail ("duplicate -D switch");
elsif Project_File_Name /= null then
Fail ("-P and -D cannot be used simultaneously");
end if;
if Arg'Length > 2 then
declare
Dir : constant String := Arg (3 .. Arg'Last);
begin
if not Is_Directory (Dir) then
Fail (Dir & " is not a directory");
else
Add_Lib_Search_Dir (Dir);
end if;
end;
else
if Index = Last then
Fail ("no directory specified after -D");
end if;
Index := Index + 1;
declare
Dir : constant String := Argument (Index);
begin
if not Is_Directory (Dir) then
Fail (Dir & " is not a directory");
else
Add_Lib_Search_Dir (Dir);
end if;
end;
end if;
when 'e' =>
if Arg = "-eL" then
Follow_Links_For_Files := True;
Follow_Links_For_Dirs := True;
else
Bad_Argument;
end if;
when 'f' =>
Force_Deletions := True;
Directories_Must_Exist_In_Projects := False;
when 'F' =>
Full_Path_Name_For_Brief_Errors := True;
when 'h' =>
Usage;
when 'i' =>
if Arg'Length = 2 then
Bad_Argument;
end if;
Source_Index := 0;
for J in 3 .. Arg'Last loop
if Arg (J) not in '0' .. '9' then
Bad_Argument;
end if;
Source_Index :=
(20 * Source_Index) +
(Character'Pos (Arg (J)) - Character'Pos ('0'));
end loop;
when 'I' =>
if Arg = "-I-" then
Opt.Look_In_Primary_Dir := False;
else
if Arg'Length = 2 then
Bad_Argument;
end if;
Add_Lib_Search_Dir (Arg (3 .. Arg'Last));
end if;
when 'n' =>
Do_Nothing := True;
when 'P' =>
if Project_File_Name /= null then
Fail ("multiple -P switches");
elsif Object_Directory_Path /= null then
Fail ("-D and -P cannot be used simultaneously");
end if;
if Arg'Length > 2 then
declare
Prj : constant String := Arg (3 .. Arg'Last);
begin
if Prj'Length > 1
and then Prj (Prj'First) = '='
then
Project_File_Name :=
new String'
(Prj (Prj'First + 1 .. Prj'Last));
else
Project_File_Name := new String'(Prj);
end if;
end;
else
if Index = Last then
Fail ("no project specified after -P");
end if;
Index := Index + 1;
Project_File_Name := new String'(Argument (Index));
end if;
when 'q' =>
Quiet_Output := True;
when 'r' =>
All_Projects := True;
when 'v' =>
if Arg = "-v" then
Verbose_Mode := True;
elsif Arg = "-vP0" then
Current_Verbosity := Prj.Default;
elsif Arg = "-vP1" then
Current_Verbosity := Prj.Medium;
elsif Arg = "-vP2" then
Current_Verbosity := Prj.High;
else
Bad_Argument;
end if;
when 'X' =>
if Arg'Length = 2 then
Bad_Argument;
end if;
declare
Ext_Asgn : constant String := Arg (3 .. Arg'Last);
Start : Positive := Ext_Asgn'First;
Stop : Natural := Ext_Asgn'Last;
OK : Boolean := True;
begin
if Ext_Asgn (Start) = '"' then
if Ext_Asgn (Stop) = '"' then
Start := Start + 1;
Stop := Stop - 1;
else
OK := False;
end if;
end if;
if not OK
or else not
Prj.Ext.Check (Root_Environment.External,
Ext_Asgn (Start .. Stop))
then
Fail
("illegal external assignment '"
& Ext_Asgn
& "'");
end if;
end;
when others =>
Bad_Argument;
end case;
else
Add_File (Arg, Source_Index);
end if;
end if;
end;
Index := Index + 1;
end loop;
end Parse_Cmd_Line;
-----------------------
-- Repinfo_File_Name --
-----------------------
function Repinfo_File_Name (Source : File_Name_Type) return String is
begin
return Get_Name_String (Source) & Repinfo_Suffix;
end Repinfo_File_Name;
--------------------
-- Tree_File_Name --
--------------------
function Tree_File_Name (Source : File_Name_Type) return String is
Src : constant String := Get_Name_String (Source);
begin
-- If source name has an extension, then replace it with the tree suffix
for Index in reverse Src'First + 1 .. Src'Last loop
if Src (Index) = '.' then
return Src (Src'First .. Index - 1) & Tree_Suffix;
end if;
end loop;
-- If there is no dot, or if it is the first character, just add the
-- tree suffix.
return Src & Tree_Suffix;
end Tree_File_Name;
-----------
-- Usage --
-----------
procedure Usage is
begin
if not Usage_Displayed then
Usage_Displayed := True;
Display_Copyright;
Put_Line ("Usage: gnatclean [switches] {[-innn] name}");
New_Line;
Display_Usage_Version_And_Help;
Put_Line (" names is one or more file names from which " &
"the .adb or .ads suffix may be omitted");
Put_Line (" names may be omitted if -P<project> is specified");
New_Line;
Put_Line (" --subdirs=dir real obj/lib/exec dirs are subdirs");
Put_Line (" " & Makeutl.Unchecked_Shared_Lib_Imports);
Put_Line (" Allow shared libraries to import static libraries");
New_Line;
Put_Line (" -c Only delete compiler generated files");
Put_Line (" -D dir Specify dir as the object library");
Put_Line (" -eL Follow symbolic links when processing " &
"project files");
Put_Line (" -f Force deletions of unwritable files");
Put_Line (" -F Full project path name " &
"in brief error messages");
Put_Line (" -h Display this message");
Put_Line (" -innn Index of unit in source for following names");
Put_Line (" -n Nothing to do: only list files to delete");
Put_Line (" -Pproj Use GNAT Project File proj");
Put_Line (" -q Be quiet/terse");
Put_Line (" -r Clean all projects recursively");
Put_Line (" -v Verbose mode");
Put_Line (" -vPx Specify verbosity when parsing " &
"GNAT Project Files");
Put_Line (" -Xnm=val Specify an external reference " &
"for GNAT Project Files");
New_Line;
Put_Line (" -aPdir Add directory dir to project search path");
New_Line;
Put_Line (" -aOdir Specify ALI/object files search path");
Put_Line (" -Idir Like -aOdir");
Put_Line (" -I- Don't look for source/library files " &
"in the default directory");
New_Line;
end if;
end Usage;
end Clean;
|
with Ada.Text_IO; use Ada.Text_IO;
procedure Man_Or_Boy is
function Zero return Integer is begin return 0; end Zero;
function One return Integer is begin return 1; end One;
function Neg return Integer is begin return -1; end Neg;
function A
( K : Integer;
X1, X2, X3, X4, X5 : access function return Integer
) return Integer is
M : Integer := K; -- K is read-only in Ada. Here is a mutable copy of
function B return Integer is
begin
M := M - 1;
return A (M, B'Access, X1, X2, X3, X4);
end B;
begin
if M <= 0 then
return X4.all + X5.all;
else
return B;
end if;
end A;
begin
Put_Line
( Integer'Image
( A
( 10,
One'Access, -- Returns 1
Neg'Access, -- Returns -1
Neg'Access, -- Returns -1
One'Access, -- Returns 1
Zero'Access -- Returns 0
) ) );
end Man_Or_Boy;
|
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Lexical_Elements;
with Program.Elements.Defining_Names;
with Program.Elements.Aspect_Specifications;
with Program.Element_Vectors;
with Program.Elements.Exception_Handlers;
with Program.Elements.Expressions;
with Program.Elements.Package_Body_Declarations;
with Program.Element_Visitors;
package Program.Nodes.Package_Body_Declarations is
pragma Preelaborate;
type Package_Body_Declaration is
new Program.Nodes.Node
and Program.Elements.Package_Body_Declarations
.Package_Body_Declaration
and Program.Elements.Package_Body_Declarations
.Package_Body_Declaration_Text
with private;
function Create
(Package_Token : not null Program.Lexical_Elements
.Lexical_Element_Access;
Body_Token : not null Program.Lexical_Elements
.Lexical_Element_Access;
Name : not null Program.Elements.Defining_Names
.Defining_Name_Access;
With_Token : Program.Lexical_Elements.Lexical_Element_Access;
Aspects : Program.Elements.Aspect_Specifications
.Aspect_Specification_Vector_Access;
Is_Token : not null Program.Lexical_Elements
.Lexical_Element_Access;
Declarations : Program.Element_Vectors.Element_Vector_Access;
Begin_Token : Program.Lexical_Elements.Lexical_Element_Access;
Statements : Program.Element_Vectors.Element_Vector_Access;
Exception_Token : Program.Lexical_Elements.Lexical_Element_Access;
Exception_Handlers : Program.Elements.Exception_Handlers
.Exception_Handler_Vector_Access;
End_Token : not null Program.Lexical_Elements
.Lexical_Element_Access;
End_Name : Program.Elements.Expressions.Expression_Access;
Semicolon_Token : not null Program.Lexical_Elements
.Lexical_Element_Access)
return Package_Body_Declaration;
type Implicit_Package_Body_Declaration is
new Program.Nodes.Node
and Program.Elements.Package_Body_Declarations
.Package_Body_Declaration
with private;
function Create
(Name : not null Program.Elements.Defining_Names
.Defining_Name_Access;
Aspects : Program.Elements.Aspect_Specifications
.Aspect_Specification_Vector_Access;
Declarations : Program.Element_Vectors.Element_Vector_Access;
Statements : Program.Element_Vectors.Element_Vector_Access;
Exception_Handlers : Program.Elements.Exception_Handlers
.Exception_Handler_Vector_Access;
End_Name : 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_Package_Body_Declaration
with Pre =>
Is_Part_Of_Implicit or Is_Part_Of_Inherited or Is_Part_Of_Instance;
private
type Base_Package_Body_Declaration is
abstract new Program.Nodes.Node
and Program.Elements.Package_Body_Declarations.Package_Body_Declaration
with record
Name : not null Program.Elements.Defining_Names
.Defining_Name_Access;
Aspects : Program.Elements.Aspect_Specifications
.Aspect_Specification_Vector_Access;
Declarations : Program.Element_Vectors.Element_Vector_Access;
Statements : Program.Element_Vectors.Element_Vector_Access;
Exception_Handlers : Program.Elements.Exception_Handlers
.Exception_Handler_Vector_Access;
End_Name : Program.Elements.Expressions.Expression_Access;
end record;
procedure Initialize (Self : in out Base_Package_Body_Declaration'Class);
overriding procedure Visit
(Self : not null access Base_Package_Body_Declaration;
Visitor : in out Program.Element_Visitors.Element_Visitor'Class);
overriding function Name
(Self : Base_Package_Body_Declaration)
return not null Program.Elements.Defining_Names.Defining_Name_Access;
overriding function Aspects
(Self : Base_Package_Body_Declaration)
return Program.Elements.Aspect_Specifications
.Aspect_Specification_Vector_Access;
overriding function Declarations
(Self : Base_Package_Body_Declaration)
return Program.Element_Vectors.Element_Vector_Access;
overriding function Statements
(Self : Base_Package_Body_Declaration)
return Program.Element_Vectors.Element_Vector_Access;
overriding function Exception_Handlers
(Self : Base_Package_Body_Declaration)
return Program.Elements.Exception_Handlers
.Exception_Handler_Vector_Access;
overriding function End_Name
(Self : Base_Package_Body_Declaration)
return Program.Elements.Expressions.Expression_Access;
overriding function Is_Package_Body_Declaration
(Self : Base_Package_Body_Declaration)
return Boolean;
overriding function Is_Declaration
(Self : Base_Package_Body_Declaration)
return Boolean;
type Package_Body_Declaration is
new Base_Package_Body_Declaration
and Program.Elements.Package_Body_Declarations
.Package_Body_Declaration_Text
with record
Package_Token : not null Program.Lexical_Elements
.Lexical_Element_Access;
Body_Token : not null Program.Lexical_Elements
.Lexical_Element_Access;
With_Token : Program.Lexical_Elements.Lexical_Element_Access;
Is_Token : not null Program.Lexical_Elements
.Lexical_Element_Access;
Begin_Token : Program.Lexical_Elements.Lexical_Element_Access;
Exception_Token : Program.Lexical_Elements.Lexical_Element_Access;
End_Token : not null Program.Lexical_Elements
.Lexical_Element_Access;
Semicolon_Token : not null Program.Lexical_Elements
.Lexical_Element_Access;
end record;
overriding function To_Package_Body_Declaration_Text
(Self : in out Package_Body_Declaration)
return Program.Elements.Package_Body_Declarations
.Package_Body_Declaration_Text_Access;
overriding function Package_Token
(Self : Package_Body_Declaration)
return not null Program.Lexical_Elements.Lexical_Element_Access;
overriding function Body_Token
(Self : Package_Body_Declaration)
return not null Program.Lexical_Elements.Lexical_Element_Access;
overriding function With_Token
(Self : Package_Body_Declaration)
return Program.Lexical_Elements.Lexical_Element_Access;
overriding function Is_Token
(Self : Package_Body_Declaration)
return not null Program.Lexical_Elements.Lexical_Element_Access;
overriding function Begin_Token
(Self : Package_Body_Declaration)
return Program.Lexical_Elements.Lexical_Element_Access;
overriding function Exception_Token
(Self : Package_Body_Declaration)
return Program.Lexical_Elements.Lexical_Element_Access;
overriding function End_Token
(Self : Package_Body_Declaration)
return not null Program.Lexical_Elements.Lexical_Element_Access;
overriding function Semicolon_Token
(Self : Package_Body_Declaration)
return not null Program.Lexical_Elements.Lexical_Element_Access;
type Implicit_Package_Body_Declaration is
new Base_Package_Body_Declaration
with record
Is_Part_Of_Implicit : Boolean;
Is_Part_Of_Inherited : Boolean;
Is_Part_Of_Instance : Boolean;
end record;
overriding function To_Package_Body_Declaration_Text
(Self : in out Implicit_Package_Body_Declaration)
return Program.Elements.Package_Body_Declarations
.Package_Body_Declaration_Text_Access;
overriding function Is_Part_Of_Implicit
(Self : Implicit_Package_Body_Declaration)
return Boolean;
overriding function Is_Part_Of_Inherited
(Self : Implicit_Package_Body_Declaration)
return Boolean;
overriding function Is_Part_Of_Instance
(Self : Implicit_Package_Body_Declaration)
return Boolean;
end Program.Nodes.Package_Body_Declarations;
|
-------------------------------------------------------------------------------
-- This file is part of libsparkcrypto.
--
-- Copyright (C) 2018 Componolit GmbH
-- 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 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 AUnit.Assertions; use AUnit.Assertions;
with Util; use Util;
with LSC.SHA1.HMAC;
with LSC.Types;
pragma Style_Checks ("-s-M");
pragma Warnings (Off, "formal parameter ""T"" is not referenced");
package body LSC_Test_HMAC_SHA1 is
procedure Test_HMAC (Key : String;
Msg : String;
Mac : String;
Textkey : Boolean := False;
Textmsg : Boolean := False)
is
use type LSC.Types.Bytes;
Converted_Key : constant LSC.Types.Bytes := (if Textkey then T2B (Key) else S2B (Key));
Converted_Msg : constant LSC.Types.Bytes := (if Textmsg then T2B (Msg) else S2B (Msg));
Converted_Mac : constant LSC.Types.Bytes := S2B (Mac);
Len : constant Natural := Converted_Mac'Length;
Result : constant LSC.Types.Bytes :=
LSC.SHA1.HMAC.HMAC (Key => Converted_Key,
Message => Converted_Msg);
begin
Assert (Result (Result'First .. Result'First + Len - 1) = Converted_Mac,
"Invalid HMAC: got " & B2S (Result) & ", expected " & Mac);
end Test_HMAC;
---------------------------------------------------------------------------
-- RFC 2202 Test vectors
---------------------------------------------------------------------------
procedure Test_HMAC_RFC (T : in out Test_Cases.Test_Case'Class)
is
begin
Test_HMAC (Key => "0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b",
Msg => "Hi There",
Mac => "b617318655057264e28bc0b6fb378c8ef146be00",
Textmsg => True);
Test_HMAC (Key => "Jefe",
Msg => "what do ya want for nothing?",
Mac => "effcdf6ae5eb2fa2d27416d5f184df9c259a7c79",
Textmsg => True, Textkey => True);
Test_HMAC (Key => "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
Msg => "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd",
Mac => "125d7342b9ac11cd91a39af48aa17b4f63f175d3");
Test_HMAC (Key => "0102030405060708090a0b0c0d0e0f10111213141516171819",
Msg => "cdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcd",
Mac => "4c9007f4026250c6bc8414f9bf50c86c2d7235da");
Test_HMAC (Key => "0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c",
Msg => "Test With Truncation",
Mac => "4c1a03424b55e07fe7f27be1d58bb9324a9a5a04",
Textmsg => True);
Test_HMAC (Key => "0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c",
Msg => "Test With Truncation",
Mac => "4c1a03424b55e07fe7f27be1",
Textmsg => True);
Test_HMAC (Key => "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" &
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
Msg => "Test Using Larger Than Block-Size Key - Hash Key First",
Mac => "aa4ae5e15272d00e95705637ce8a3b55ed402112",
Textmsg => True);
Test_HMAC (Key => "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" &
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
Msg => "Test Using Larger Than Block-Size Key and Larger Than One Block-Size Data",
Mac => "e8e99d0f45237d786d6bbaa7965c7808bbff1a91",
Textmsg => True);
end Test_HMAC_RFC;
---------------------------------------------------------------------------
-- NIST test vectors are from
-- CAVP Testing: Keyed-Hash Message Authentication Code (HMAC)
-- https://csrc.nist.gov/CSRC/media/Projects/Cryptographic-Algorithm-Validation-Program/documents/mac/hmactestvectors.zip
---------------------------------------------------------------------------
procedure Test_HMAC_NIST (T : in out Test_Cases.Test_Case'Class)
is
begin
Test_HMAC
(Key => "82f3b69a1bff4de15c33",
Msg => "fcd6d98bef45ed6850806e96f255fa0c8114b72873abe8f43c10bea7c1df706f10458e6d4e1c9201f057b8492fa10fe4b541d0fc9d41ef839acff1bc76e3fdfebf2235b5bd0347a9a6303e83152f9f8db941b1b94a8a1ce5c273b55dc94d99a171377969234134e7dad1ab4c8e46d18df4dc016764cf95a11ac4b491a2646be1",
Mac => "1ba0e66cf72efc349207");
Test_HMAC
(Key => "4766e6fe5dffc98a5c50",
Msg => "d68b828a153f5198c005ee36c0af2ff92e84907517f01d9b7c7993469df5c21078fa356a8c9715ece2414be94e10e547f32cbb8d0582523ed3bb0066046e51722094aa44533d2c876e82db402fbb00a6c2f2cc3487973dfc1674463e81e42a39d9402941f39b5e126bafe864ea1648c0a5be0a912697a87e4f8eabf79cbf130e",
Mac => "007e4504041a12f9e345");
Test_HMAC
(Key => "0f942d98a5c406155967",
Msg => "f84d0d813d2e9e779e8570bddbdf6fdc6baade5acb3c4cde1618c494d66d45d319e071fec88b89a8354699fbf325f05aea42d345aabc737d00ff1c69c746aeb9015f514927ae6548bd75b8992853fc79c40a78633285fd30ef191c832b0b9664d852142b019f18a05d9b3460246f7a83218a337b099ed43f0bec2daaa8c2e41d",
Mac => "c19d05a808054b8039f9");
Test_HMAC
(Key => "78cb194a958fc1b95e35",
Msg => "d6eb23c5ea87fd67b943928be0521823dc508acb2ad5f0fdac49e0844ffa4533eb6b5fd66bf00b692d774588aca9eb275c32c383d55cc05834e38155be051bcdc7d818afd3e0c0b8fae197e791f2263206d3fe770c80fbb5f806c67c6b969da232d857386a81a2bce8289090d85652aba3dc438f1769287bc25bb5e19ed6541a",
Mac => "539d5cbb60739e152196");
Test_HMAC
(Key => "2baa6731c367e0f818ab",
Msg => "a64ec0d93360976b75f50ea532c3d501464a392c00aba572c9bd6977065ebb294007fbf282a43c3203a2ffec054941c0fd4cb919f49e5ba72d88201008f909e2261d62cdce30440f90955d2f2822f3eea5bf277bca2f77e6b42d87d7bdbb2180a1b77ad0dfafb7e962f6afd561f7f37484ca0cb948050316a4d52735ed4d0ae9",
Mac => "2ddc8c4803e5a4c7871c");
Test_HMAC
(Key => "c1f4f1ac1adf93df6e58",
Msg => "5f458657da5aec73d8aa5e348bedc6af487341593a0a741256222362912fff02514fc09e222d74d9ab251792e0a9636579e3e975a29b6169f45c3fb5a4d2871bfa77e171056ff0a48eafe0fd4a653ea353940d62d9ff16aa15497fdb7f5a9fbf41051158ebe707dd6892e1ff31ebff70c0d0d3a648fe3adda3320c5b8c8ff1f7",
Mac => "c1ebf896bd26a30cf668");
Test_HMAC
(Key => "5de237ba1edadf54d566",
Msg => "20100ed997ab74370607aeeb0bd2f64f6a56c7040d64fd8a498a380d638c8182531230f3c79f0c176bc2b52668903feb2a51201b677a4ce55ddc9eca5b1a7aaf8260b131cd52a4384f43adcfbca8ba332bcc3b291ac53f95b3a6d9494ef6c91b3661583ab0ae84c239f15d8d1002af4df42de1d72f2b1dc2d351b2314408b6ed",
Mac => "8a3e105bffc04ba113cd");
Test_HMAC
(Key => "ed00f3c4c227d07cf2d1",
Msg => "3223744302f481dd32a9d4d1ceaf72229b45f413a1e82d3ce70f0dde7e19c574c0842c8ada5f62d28802b37520fcbea7d24dd67e2ed6a804e60d1e8bd6f58440414eea035e08c97613fee95400e18105bf72a16f6af5cd0e5ee2ea473fdd5ff93de8745695d8fdf15a053d1775460563eb1d1c8d5e2ee383d7f639bbc2b99dc7",
Mac => "4104ef3c144bcfaf8dd3");
Test_HMAC
(Key => "3b6af34ae3ea52d3962d",
Msg => "fb091ddd95b100dfcf892d78e5e770d3a37b8c3885df803c1d6f0935b55b68f136fb65a84862942ebb35d76d26be2413cd3c8988c87d6d2362af189dc07476c6c33417762eb77bc70cf38d814c226dd6af187250e4d47007f1553617d4af5b516a5d3b3191d93c10896a569ba13dd2840fb851781f0b115090086c8b3a34a1fc",
Mac => "838ba0117e413095d056");
Test_HMAC
(Key => "6445f6d884fbd57a1eec",
Msg => "97f2769dc081f1fd7138ad61bd30743cd81a4565cf22a41a761a3544a2d489fc99cf384fc716303eb3664c09318f29aed81c35acb636080c43c6f8a294dae791d14a600de99be36584237c403a6e9a2602e11f43ed9db46814a75f53ce45573027ab17608ed6b178ceb9658d409772af3eb02cb3da1f4f36d00393debadd80e3",
Mac => "cdcff19dc81026983e6c");
Test_HMAC
(Key => "b9ec31346806acaa9221",
Msg => "76a69cdd9ff87ee6b07ffe6d496c54560de1e9f64c061acbe059386a5445d3b84cf7385d206d3876cbcf2b8a040335c0aa7cc84f65526a358b98b92c40eaacdae2451b48a41b829578a702ec337fa8b3eb68f205a46d8f632c3367a64487db3800394e84712de4ab81af89791d0736979a4d6f02517f11bb8dd14ac1a844e93c",
Mac => "f069430eb49866d7d39b");
Test_HMAC
(Key => "518a96ff0a44f95d97ee",
Msg => "3658212a14b65ac3bd9e3d9039c631a94bb43c4e493877852a3abf05e1b5ae53ea04c92b225dfb21db9b43883040a99396ba76bab4e5a45f75d294b25bc7ffd216862f3555d26f49dc30c05bd6ebcdb96d5a2113996598273546139e588d7030e267ba0f551f9c83e7e51cd1d5cf8662f91da5219fc13925951fa6908111eab7",
Mac => "0f4fae1d2b5960a54b82");
Test_HMAC
(Key => "a79032a4f7f740f6d13e",
Msg => "fcd6d3ab67574d8f0bbf5ad14937966dbd4386a928e62a53ad0dd14a412b31405d20b7bdf55f1c67ae5039824cf31cb369c75b096deaa83dba81a639275afcd8b0d0a7ed6cef9486bfd96e72d068b5003d15100a0e19e432e8d2256c83676cbd5eaf4a42b24fdd73a423a0a9bee087dea0f74cb4f3bc03b99fc7f5ea3e9aab76",
Mac => "7d809c2533c47f832046");
Test_HMAC
(Key => "ab6b1fd8231147512309",
Msg => "c8f16efe636581b6ab7ab7f39426bd033ddccb8ec50d1b3160ef9f69aa7df3b33bbf91f17b4b4410b70cdfe875422e6305ca2de259a078dc17a203c8eb960b3e226f4c5975cc755f22c2d9a442db67ab565edc8f23d137a1c0bd6d53edb15f55a68909fdf8f0fcec14240eefa2fa50235721405dcaaa40c883c847d055d5d73f",
Mac => "0c7799c513f4a3308de3");
Test_HMAC
(Key => "d7f2be75aaebb90d87a8",
Msg => "cad534c86629fc600b38138a7f3e1a701bc4bd1f865f96dac39a4eb46e31065e4280f53ddf3a52bfca5e74f0b667384802c4a3c78287c8458261ec0308cee9855a8dd0a4c053d2df8bc061f2569292aa8c19c6f72beb8943c7d8ba02d120ed8a19e40d2592db4665554621b8e926f13cc2ac6fd507f1a17c99e700da5090d915",
Mac => "00e416c156dc85d4d47d");
Test_HMAC
(Key => "1379a7afcc0905a5fc81",
Msg => "96fa5619fac648843db788cb8e90dc6ffd6efe1332abf0815f0390ee73f56c7f916cd70cc09f3d23e436b350edaed29b4efec653b07ba20ae8f9f6e12733a406716def7a5157d518ca359fd3903db63f7940b8532e8dcb6d26133296d5c51e072043c6ed15b6b96ad9fb73dce1052f61657cfd9b12aa14b000986995e374818d",
Mac => "42537b22520a085577587616");
Test_HMAC
(Key => "80a0db49d039b316ae12",
Msg => "91f8ec848d6f811431cbdeee150b93af6f678be99c903f81fc38295503d57c228da212a672e7a6015b7b4361d487fcdea28cdea356a8234f2215a89becf2a23ca1468c0bcc42646367c616caf02739d4c030f945996654767e908afac777ce8074eb42fbc2062201fcb53f719473b0597258c4178c533bbeb7b4b5bbbced6ab8",
Mac => "ecae138322d2d4086aa2bec6");
Test_HMAC
(Key => "261812249e1338ac5a22",
Msg => "5a529114ba6bdab69bada5e8916fb6eb222c71256f919dd117d369f65846ac95772c712762cab34795c265ab3a9cb65894a692169dfe6c22eeed3b24e076c260f12f1530695059b23d0acbbe331a041b479d7bf24d264b82d90e36165c0bea348f048418152453615c2ede09c410289a03ba329fc830c2599ede63b4132dad79",
Mac => "2fe2bd1355a64e4661a6567a");
Test_HMAC
(Key => "07a27c1b24094dd9a0b9",
Msg => "f6d9565ef97ea11748689e263f52b4af880ff5c8ed1295226a34a1ec87b2edf4e5754f1016970abcb1228d04a61b5ea5d0bf516fc90cfded02837048132d22694fdc285e9cb3aaff82e897d181c9972aa8fd4296630d8f7a95238ff7e6115b115f944b1134da6827e04324547765498738523007621d33104a9a64c1a9668036",
Mac => "144d3a67685bf4ac70bb7fe6");
Test_HMAC
(Key => "aeb526731e1d0ca809f6",
Msg => "68de2a68bd4215ac21bfe2b6f0d26ffd90d4ffc9f972dd47745e43dda24479bbc10041b32b0e734a1f41e50fc4b88d2b6b0fea3a15d29f5935376280b70c141340ee31b3b8bc6b5a064b92a71a5bb77631ca91b45408207222cb8f37d0045f9b6e11c2116c3445055c44b227f9a23506696fbde0bffca5b8c48294aaf714a27c",
Mac => "c3b94fdb9a6bc9b8e0b7ecb4");
Test_HMAC
(Key => "bce413c5612019be937e",
Msg => "e1db8f7bcc0e5c22eea3e8dce39ac250c8681d3095f8c861adf0605cb435c4d4a1b1c99914542fbce958d4f40dca28409046e1cefc02f01ce60db35dc2d96c1efcf8f2294423a6a92980a990e9254c3687d8c8421f1830ce7762a3c6d6adc691193771f40383a933d5a2cf791eb31679d5a63b56a54570c08874996197b7ba77",
Mac => "2eca333903bf60931eb08ba7");
Test_HMAC
(Key => "10fd56ddc8f64b9fd800",
Msg => "285d7249ef30bf4b6e5f6bdc3cba5570c77f115de0d08aee7a63ecb2ae7cc11a03185a43ed6b7011938d0b7dd571a3308e1685501601799a0ceaa2b152b6a5b558a50e189ecdefad74c7c90205a8b0f09332ab70044c5ab09eb0db670fe4ed65b06b566e0a3c83489a736f13d147c6d95f3c4966b199745ab81d5e7cedeee251",
Mac => "04614d9e215e11546ef411dd");
Test_HMAC
(Key => "8b09ea6af3ed29288222",
Msg => "2b7e03680c9ca6c759b6929383cadf567e4e38dd7216313cb477db12f4ad970eb87a27b209100b576b310a7213950f15558c36b95ce4273a1d0da3238d7b5c2c124c0a01382bbb45a6746ad75098d454eec487ddacbd3c1a230f667e88660bcd233cd3dc03b45f99f1c6db4aa29dd71a313d52d1cc6918e3adc44fac4b364cfa",
Mac => "f5ec42b8e5e3ef658223c8a1");
Test_HMAC
(Key => "71ab12ca4795505deadd",
Msg => "5988c794c1f1e85d23d65be040c0129bb8a6bbccd86c3b1eb3a9588774adb571f2c3041885b37733198b77d6809f99970dcfcef05e08dae4790e07e51b781af64cfc860d37ece0bb3901930e3858d5b736bad96825204680fd76e9ea0da0a6428ebbb53a7ea50b3dacbf15520ff1ac425bef46fdd6bb693a686c665ef22d439f",
Mac => "a055bb1256afef8fac818a39");
Test_HMAC
(Key => "5f24aa8bbc1eca3eab79",
Msg => "e8bfc5c09ec4807319d8f7369556e7654e981639e8c5dd3f0feae3085b4d2b2276fe514880ae10d6b2c4088042aebe428775e59a5e95dcf6cc0b7768e5af02a1ecc4831dbbce409b65a381d01bc5975c4cef1dfd10ee7e03c7b2b804fda55fd0923ce4a717cb17aa7a9deb90e644799ae52e48c9c879cc4e48082c426dd74997",
Mac => "449a3eaf1aaeedc860a7c522");
Test_HMAC
(Key => "be881a061074ed05e5ba",
Msg => "7d70cff8df77770eaf0ce671b7a15daf5bdd75482ae15812b3cf30dc9a8de052ebc6f321ad32d15bbb18391ccf11eb6ee00ea56aae9c51a09b677db9bcfd0b5b30d52a4db09085dc687eba7d05640db3107d5e337abe5847785eec709196fd4ff4a65dc51018f95a5f4850db82242a47933186edb7cfd4cef2bd644840df1ff6",
Mac => "d991f360f28b18086fc552f6");
Test_HMAC
(Key => "67f385228039427df681",
Msg => "f9598e9f4ece159beb897317f625a6a708e9aaeb8e9df706709c4c52f12bab53d709a4e9cb48d7c9025ab52d1d6f86cb4effb004bda2365f2a287f35d3e659ae984e3dec5dc3d585b0abbb37abc584d71cbcfd8be4fdb4399dc6ba3f8080a865854fe00fcbe715b83ba10e9b69cea6b3ba4b18e6cc56797e129f86d8bfa2a060",
Mac => "3f99eb6518dcdcfb45eda5e8");
Test_HMAC
(Key => "ed01edde5f8bee443346",
Msg => "0f80ccfe5ade386b40e43f48136aedbe69849330274b761edee1c44a5bafcc1979f16d3b3a75cf8e169f524093b1c4351649d7a8f92cd214dd41865542e1840a554e8d3f08804a4968283df02ceff8d489fe8d094ec445052cf395bc55cc4d094a9d1350ed881062de85e9a004aaf1646aab9d9c4d9d38b873ffd7c7befa90dc",
Mac => "e4183c3f9245e63ac093e070");
Test_HMAC
(Key => "ab692b9e0d9cc9632754",
Msg => "49867dfd015a50df8c676141eeef02fa2c347515bb25028d393d47555ba9d09b27a9e74e6338adde4def6a438c272240675e69e935dc776314957febde523d19590ccf66ae98c5ed1d8a7b6eee53a798abac2e888c383c8d3364932e9993236e4978db4eccc2c09464ff3ccbfdbab88b60e76dfaaa827693fc722a2675b3aa20",
Mac => "6a31ddbafa486d1a847e0b1a");
Test_HMAC
(Key => "2541c892495452ed89dc",
Msg => "204cdf0f384280e3d55f8dd010e88666080d2d722a1ce7cfaff5647f65be82fab3d86fc6d7110e48731b9dda483d941e4148d091b3cdf063e38d0086c9315505133bb7976d3dc6740048966738a89d24cbcecfddf78e07100b8ba9a328ef8532495fffa8812e6d0c84d0c19e69926823ae89727d7dc8f27e2dd6a8fe0c60dd2b",
Mac => "e2cfa49f38958405705dc320");
Test_HMAC
(Key => "f5731a6e8925f74306fa",
Msg => "44c7cc06ad290f3a54a970b640014cb5d1e6182352459901cdcd570c23ad4f995b9fe8c43b2528c9151228b2e44dc53398d299d2adf92a4a02fb6032e9b23dda7aa0c8762e334a7ea947bd54d6ed8228396b52198184779c5df93c22914fa2f549d35463addcdd1fb55019e43f69e95b5fb92b3ff66ceabf86ced124440de6b3",
Mac => "73b083d8be0d19ee7a697f9e5d76362f");
Test_HMAC
(Key => "290566d777b0eee984fa",
Msg => "787fdaa90a2de3937e7942e6711f165a89b9e077fe322cab597d749a7c8741b5e36a930e29e3836ace0627983730b602f63eec824cfcb077ece0f51702f9de0774222529687bbdb5061ab68b7ffd62c74e43b696be9cf249acff85a88e9b2a89b40f58a1ceddd999af1cb864506e61d11832045c5afb3a4a2040ebf527556f64",
Mac => "d72b370a1d8290105173c83aeedb8358");
Test_HMAC
(Key => "a7e54ce234b0d5c839b8",
Msg => "f9a9c16e3a4beff0d36430c0e7e1d6bd68349498d240d8dc19755a2cdf3cf5cceb95b764d7fe340008981f5ae4851b5c3e94cee1152037bc7f3542fbe0f59a6d5f3abf619b7d58b199f7caff0205093f8bd1af75b42f4bc0b5c5fb98b56f3d543ee202efee8f040b6fca5a36a92b496d35345ede1535b9f2a36dac8bc872858b",
Mac => "657db872e6e9aefcc3d69110c7591057");
Test_HMAC
(Key => "2918c7779c43fdf21748",
Msg => "b949df3b02871bea0976873a9c76942ac934ce63ac2956d2856492970d8a231e0b1b178b22f6605ced2085494ec1986f026f68ae79aff750e5b92feb927cd08875e2ad04075518b754829b544e5de910686513076029ffdb5c0b179e39443ef22028086e5aab2a4465252f2147526d55229d3834099e55bc12e1b178ace953a3",
Mac => "7bc8883375527df5ac60fe47357e105e");
Test_HMAC
(Key => "9e8c665ba53854f0fd27",
Msg => "850d673723789c780040620ad945ece61850a94f41efc64c8c81f45bd48d6b64af582eecdfb6918be920f9a00307e4433368297bb6a180b19f834465c0a87820cd0609aabfc5527c774ee578a4a589d8e6f87f6534780ae97b672ee68772b78827427dd98c4ee734f3f3aefc84c6e38d79293473821c6bdb68563746f1952f85",
Mac => "805a8f3cbb5ce17139cf8bb03db6b9b4");
Test_HMAC
(Key => "41164988752465a8f929",
Msg => "b4c30b451325a9621e258a5d91de6dcb421cfe7957c1a7f5b667aa50bd466d23345814d07fbc550a185988983dc3fe55e662947cfad18822c2848b049eae1783f76102ed74f754fe71b256a7ad9feb0d42c023d5db690e9f21ebced07670f095e626fd255aa04b460f791912473adbfb3f7dd30d6053e173b9e49c3dad55a160",
Mac => "b9b6e8e09db8509ac5a6609ad5e6390b");
Test_HMAC
(Key => "ea66bf3a628dd1a968c9",
Msg => "487ee933a49275727c8e36588e4c68c295a5516ab441c85b18aef8a9dab0625e22d821b792587291e216731ec7ff2bdc1a9ecbc836ed33cfa26bb885f06e2519e4bbff89d9540e12619118eb2c72f0322b34b027f422429869ae259c94c06d84d64e0c0f412d51dd4227ae26834dbeac0f8e86eeb889fc9fb6a0c556904e4387",
Mac => "571b3401f273a16d9d6011993c78bcfc");
Test_HMAC
(Key => "14f43e5424ac9aeb97e7",
Msg => "9c3a8524f8d6d9ec907be803baefee0aa08b74ad4ff60f860a334a3ee4dee1f68eb230e56d4fea42ef3a0e642026172878727493f7f237b875f211dc33787ed9b5ca3dc0d43003c20ffb705122c64282dafcc9b6279b9b79733788aa3241d0ddba8994fd55028b3695c5f611e859d6e16c325c5f0577a191ac0997f00ac040c9",
Mac => "6c82c5f72dba335ff85181131dbeb990");
Test_HMAC
(Key => "6251c2a2976b8757adca",
Msg => "f1f9c895ab63fcdd69aed763d998a788e92ddb5294477313fc56b545ba5d22b9723da8f1aa3619cadcabdc5dc925e328119bdc6901f1accbacbe19443d52c63e8bf865f5ee78282052e078d38984eaa4e6446f0d070dcb11f2a34822649dab4365b1676a20311128f2d6148bc1bda6448faffa054ea5b72df68baaa7d645b70f",
Mac => "9502475fa252e5bf4318e451c7f5fe41");
Test_HMAC
(Key => "036fc94fafab92ba5539",
Msg => "5b1a6754c3c30cc29d041779325922781454897c9c3f7cc69703521e3d49201863de8b96f15cda8e9507500eb9f5b87db37241233ca28cec2468046844876e17b307c0e43ddb37ef10c0a48fb96807984fd85ed9ee0fbfe967e8a524364188f0b55db0458f874a6c76f8bc0619fb3651504f89a79acd3d47ca4add58fdbf962b",
Mac => "736c3332227a1b48acce71465f5726cb");
Test_HMAC
(Key => "c07d47559b6759f09651",
Msg => "434a42273f11fc06bc8eed402450f1915399d7e0a71c12205605b174053a929696e0d2794122872de62db204a17f6ff3a0626f3a31b3a8471fe84bd83f52f761469e2caddda202c7f8571b1b6321d6d99d57c59aeaff6246a4d9fd35d2a0f994fc8c380b3d1bd49c991110cf91bd8e0cf57fc248fa87a6e48cdfafd1e5ac00f9",
Mac => "66af7ccfa98bcb8d01ead88d046f1038");
Test_HMAC
(Key => "a32e28d4b458ceb7cb13",
Msg => "f753f3e9b4bd1895a259492ba160713f00ac8e24dbbfab0da7070e720b61b2b6f1dbf806debe99847eccdfa584c615d7b1313c68315affa32e98e93ca0d1d6ee623fa7628b743a53fb9c9af0340372816cd7c84ee02ee7bc6a4a9dba561ca75b72086ac464e8e4494053e1d35a1f728559249b9f8d434ca283a892b5d64b0f47",
Mac => "2993b746cb98445019cb1ed31ed34070");
Test_HMAC
(Key => "9fc05ef49579aaef45c0",
Msg => "c5ff34dd398c10fc020277ab85050c51a1c4d238887e9b34cd46c386be031dfff3ba2e6927109922470adb0ac918389f3f52f5672c01c88f16618dd1dca53a9b4a3c156deb5325821e9be6b46c4c419a196abaf3f947ec47854932cb2eeda886f20c52b22c5d9a65b03c007017a90d87589488a39958eda544851b3c5ce24d08",
Mac => "287a4765a91fe81c21c4593f985a1253");
Test_HMAC
(Key => "fe5df14e5888fad138ea",
Msg => "5e09b42139c3e0c709527f4f86d73697aabcdbec1d518accf1b7f6f08ffefe8af18a81cb12bb72a8a3cd2fde00fc0e3362ec39ff5649bdec6eaaddfa36bcacc6699cdb0b6584cf69ddaaf665ce655cb2b49279affd364e30be65b081a562e3a82f076aeb1a671e921eb37eeed85a469a07744301fa61652049ad168ec437cab9",
Mac => "a8483672c40305d7630f3e86b80fa4b0");
Test_HMAC
(Key => "6c56890c603bd3833d21",
Msg => "6ed7bb6653ef66ce21b7ba0ee616d07114c64d9228642b158ac3bc94b486ebdc97eec65a3af039d0a58b1c4cfd58715bf063e67a5439a2cd0a423d14295110da587ab0ef7c24b519945ec007e077bc8649c863f8fdd504015a9584830d0da4cd7b24810f60b26111b5daac25d89a395be7a0cbf36c5fdc18406399cba9e12d1d",
Mac => "a7df6225fc8a9bc8b91e4c39eef870eb");
Test_HMAC
(Key => "59785928d72516e31272",
Msg => "a3ce8899df1022e8d2d539b47bf0e309c66f84095e21438ec355bf119ce5fdcb4e73a619cdf36f25b369d8c38ff419997f0c59830108223606e31223483fd39edeaa4d3f0d21198862d239c9fd26074130ff6c86493f5227ab895c8f244bd42c7afce5d147a20a590798c68e708e964902d124dadecdbda9dbd0051ed710e9bf",
Mac => "3c8162589aafaee024fc9a5ca50dd2336fe3eb28");
Test_HMAC
(Key => "c52109c9d0da9258eb73",
Msg => "52b113614b80b970510f65a25d46edc023d9c7b8e7ca7c41923059c205366870ad669fb7572856dc4685ffe0833111a775c9455ab1590509132121950e99c5cd40b2a8d74a5f85d2de54cfb91a0da18a1413f4a8b67b147eccaf55665b7101c9341c9687ca2d2e9941033ff5c7e384b1273f3b6c9b3891eae2615bfe93c606ad",
Mac => "2fecb466bc920f610e3eae9949e00f454a714ab5");
Test_HMAC
(Key => "aa6197d4afd5eef5187a",
Msg => "9f3360cf8f5465c7d24d7cbd7bef00315cd4f4ac29f245f6db714e8853baa14440d1056442e4bbb1502406f557d3eab2239e3314832eb925a8fae340cf5f6ac820f25f19d51570bf9ec867e744c2f3128dc1ab11611e502d2aa452a681a2965f063f77d78f0e0b5b86e2a77a8ce4a5ba62e264890aea91762918a5a1b0acaf70",
Mac => "3745829991354a1eb42277bb9aff04ab2abcaa47");
Test_HMAC
(Key => "9e0be94ed707458d5cec",
Msg => "f5a07e3741f03174c6efcb1f9f186d1f233b367073c56e814f4204db2e203b048db6a0a387853fe4a6bd161ef903cab46671993942de90d71f60fef1e5102807250d3edaa9c48ed1506ef89c19d9a2177d6ced710266a78d0d6682a8f730c43d64ae4125d03586036b0a58df27255d110f341861dae31b6cc05b774a8c08786d",
Mac => "e7c051682dfbbdecc828606868a8fe2eb85919ba");
Test_HMAC
(Key => "65e06954b0350fb3db19",
Msg => "da82641c0e59bfabc0618cd5cfcec107050ca4c1ed4b3b3fe93b04587f14e7a6f4da69e71cdf22a37089711061556e32ec1c20466f96f161bb1c5e556ab2f3d4734477d8fb3064416e059ac0cf8a53f54c035ad416af784d6f952f2c0581ab3e7e49f6b554546bcde35d6db0c07559974d47b8338aa0ba4b2e2fe0a6f789f82b",
Mac => "60d775c440e378a5b3df018edb08c33c063bd8a5");
Test_HMAC
(Key => "e89defd40777fe173167",
Msg => "1a40e896d0c0c13e7824c3ef86e02355feb629ea887ce4d2c71f1d02e7e889a875fe42c7742d7822ade5645c46867e5d96daf0f838e34aca5ed87765686af0aeb64b2f83baf167a1519872c553860b1268923db31ee71bc13906b2674b0a3c4484309710ca96f5830c43d472d468313c1ce5f864630fc07f00b1b551b551d533",
Mac => "3fdaec4c28dd5758d937efb8cd4ada0cd40a5d13");
Test_HMAC
(Key => "1501b98cd2b030d62660",
Msg => "5935a870229c7251fcd0c5c6956144f251ab2a39d74de951d0dc119cebd872b525de854947200828b013e99b546765f9053c7175f293593a6d02a7baf1ad46426371e7d29862a42d1878e32c21857e57ef6a21b63b8bf3e502807867870eb63c9b5596b61c4a8e88bc687d2003a3d637989e01a6bc1dfe7b17bd4c4cb7e309cb",
Mac => "c3b30827b4e2bba31b6fc0985fa597eb4896c7a2");
Test_HMAC
(Key => "bc28be9d8fbb1d766360",
Msg => "eb5de69eb1371bfce00ab629a1362f0d4885af7a71f9c90f4ec9655d3fa6fc49a3420bb1ef13c153fd55fbeaa64e739992d5348d4f1552dfa18fd7b7195e00b7e9bfaa97f7d0070c309895ef1f48519bbec028978c55ae75dfd212f97cbc527e65dbab96f2f554f123dd6b8035ad30d9734f71de4f424599b19afd6b8f495866",
Mac => "d7264b214307520629ee5e76aa4a8dda4b556b3a");
Test_HMAC
(Key => "aff7d836880232f8132d",
Msg => "10ca186baa79d9029eb618a2e5a636b9893b30e20b062258034c0ab1065bcfc9cc1e82fc92f0e398beae2791c210f8774239bea6798c1dbdd9c2be51f13953e2948fd50d387010049cac623cae8dc065ab67f99f88703feb91d2e3df50ff609fb0459b0862a2692e80d9520970c5956b0cee6b35ff5a90cb72a600c5e955fee8",
Mac => "42ddd9b92c2a45420a770b9727bf53dcffc84d20");
Test_HMAC
(Key => "efe1c65a8a230e96cfa6",
Msg => "5369745bbccbba88780ed2e2cc2d57e2591d02b5aa0cd59d0ae79995981e8b349dab53d31c5135f2ab218bd88243737ad2f3c59e58ca4840313f2535f06d9b0eee17f53fe1e9b981b000237486add1892676c01f7e5e77ec7e67829f2a5422c3eeb343e7321baefc2fb380fe01f3dbd7fdafdb804451cc6998669a1b6f5c881c",
Mac => "b099c135065fb0c4c71a4fcb37a95b13cff95437");
Test_HMAC
(Key => "4fb2514d3d73b4770a69",
Msg => "a413ed98dd6e0901b1074381e1a90d59fbb60e2282bd6706494f3a2f200f6d80b209ab83ae45aca3259bb79c34c8652fe2c2a71a4b490a47ffbf3a44a539c5f3e4d622838350f29eced085e43c07a099507a7e9abd1d1496cd249a7a0316462d00235b7ea3b7625b744fb743438c48fd0c859a8b1e620d5a7c2760bb84cd7797",
Mac => "d8fdc66e0c97c0738f236f3dde60af8ac6c3d29a");
Test_HMAC
(Key => "1b6c5146ea28dca9f6a4",
Msg => "25aee305cda093a71094bc5ca6f570fbd67fcb4239f3d724c00fad64f8bddd638d8b10370e5becfcef5b386fd43841b90d8f7c885ca56c64ff57c641ea54d4505589171b76dd30d1901f01de2c3c0fbfa6b62a15ec5151f88310d08dcb5fabdb83923fda8f8e27cdf9c65dd2376aa1b8acda1f1071614c875420117321482bab",
Mac => "be13212ac81902215c85a7697a2d1870ef74f9ac");
Test_HMAC
(Key => "2d544e003b09cde4a4c7",
Msg => "9d31b168ce6ec3184d7c36243acb4e1404d81dfd82f73f603f4fc84f15267bd1fd5f3d882540c9914379a4ac2a62549d9a85cdd25d5c2c458f5ca7a43e32c4b0334ccae30e9b75559997eee05684fa825af472045e8ef3d9140dd649b78c63cfe60041bfb206312bf6dffd08e7b8aa8deb2ff5dcaf14fee4736c3e86a9bcbef6",
Mac => "c87995813b3156fd712c511c328bace2d05cab41");
Test_HMAC
(Key => "1b5cddff531babb51b4c",
Msg => "a785aba75e6829f93f7a141c715763b64effeed00ce131899d394c0bd39c4fbfc8d1b5bd7de32e87c174a2f6555472744d53016cb95373ff85a1b4f99e85bc035617121a0a558f3f02736570987260d89df46b43f84f55d490e0d5fa6da2cca01afecba44de5d58bc91d667384d8b348058b343b11fd6070869fb8f7871b06fe",
Mac => "57e9692b230b55a8a206ca48838d8d1f920202b6");
Test_HMAC
(Key => "8d8d15d8a9579adb2d62",
Msg => "edb2ba099961d38fd0a0a6a235d61271cb4d493b64d9de135cbb1fe086c4a4a767be280da2079817b47f6a35e1a4307f6efc6d3e11b4a7aea686bd0223e07ba9ce426cd0aee7ef283fa98de96a1f8a17b308ba04b5ec9616cb008fca114ba3f98b072d5aa34a0149d9e5b8c6b68c49c10138da9536cad5d234f13d3f364d431f",
Mac => "0c662e4793938cc37f3d51d2b40548ec55914f0d");
Test_HMAC
(Key => "191a700f3dc560a589f9c2ca784e970cb1e552a0e6b3df54fc1ce3c56cc446d2",
Msg => "1948c7120a0618c544a39e5957408b89220ae398ec053039b00978adb70a6c2b6c9ce2846db58507deb5cba202a5284b0cbc829e3228e4c8040b76a3fcc3ad22566ebff021ad5a5497a99558aa54272adff2d6c25fd733c54c7285aa518a031b7dc8469e5176fd741786e3c176d6eeee44b2c94c9b9b85fa2f468c08dee8d6dc",
Mac => "402493fac26c2454d0cb");
Test_HMAC
(Key => "dcb463a13ae337414151a31aa0c3e8bab3ee781b9f3aaa869dc5b1b196abcf2b",
Msg => "44c9bf3ae8f14cc9d6935deda3c24de69c67f0885a87c89996c47c7b3e27850ac71c2bc8c6beb038ba55cb872c1d5871fb4a4d63f148f0dd9947471b55f7d0f4ab907302e016b503c8db2e7fdc453dac8dd1fa8ed8586c621b92fd3d27d82af1962e7f305f80c3f4a72c701ddac1665cfb06df51383fa6f0c2ab8429db51fbc8",
Mac => "b96de3a219d76614aaa4");
Test_HMAC
(Key => "93e7402cb2b1b594670e656a6ca4ef247231ac09b7cce194d76e3919e4b072aa",
Msg => "cb2a072d74a5749481030ee46edce28c471ef412c8a4814ac40b87cbc3c188a3ef5e8a4a313862d59731326cf9d431fedca1aa3396a448a3b34d9045987baf2a66da766b216fa36012716212695b13f3273f4ecd3b5d24f9ebf4a8d17658af67f845d3788d73be9bb96aa5be089812d3f1a1e7c700f6a0b435a9d857a7800ec4",
Mac => "2eb0b56949f78f796b9b");
Test_HMAC
(Key => "ac286e206d88a3c00e6705df211b5ead6a693625445351874131790911037ec9",
Msg => "c7f4612dc47f7ce6b499af0a51e4a3ecb2ef40251cb420351c65436dd268040c90a04ba8a4ee05cf71f7d1efc528fc7366f8b02fee6d68fed9e2a7a9dd07ea0b7a29db73d1b4c74ab9f652f610256afd4fa4796e6182df7db6449f6d93e458b3ac197858f4d9ac9fb41c9be8dae4d3d4947a03aa1efa6cf9d911927f9c06374a",
Mac => "5cee7667d0a29278aea8");
Test_HMAC
(Key => "d50ff2c5448b5c2b695f61dc55de55ee96f7bbe57067ae856a2d80e50d3ea0c5",
Msg => "4c259ed53a1faa09d9cf2a1454cc2e5acfb3ab8893bfc3ca6b9a473f4d737baa3d51196a6fa798acac28addff6dc13686f74889777db18da150d9d31982c87e27ed1d96e94a074c35f1f98b3bbc8a8a5c25c2d8bef7b1e1483725f222854877ed54ce6cbf131c7b8bb5bf27ae9b5757a8f14a44a43c75fde7f7093f9471203e5",
Mac => "476d8d8db76e87df0a3f");
Test_HMAC
(Key => "607e645e1bd7fcefa0e34602d34471dd71173130ff1c59530017acd06b76f021",
Msg => "1b8747af6d82c61f98ccc3d79c7acebe18bd1fb5b0ba1f15b1952b58f8cf941610d3ea349acb7a58f2b8159f0fc21393abcc9857a44c1625a35a13fbfb072d90d4ef5b8d881275fa4ddff7f6159202acb2c0a3823e305893baedd060f599f3c2af042224fffec0eef269f1447592a1f175c1c99e440eed483f77eaf1ae30ee95",
Mac => "3bddf9f7384c84b3a66d");
Test_HMAC
(Key => "ba60ee3734a54ae42cfeb678233ecafd8d55c783ca742865577279cd466f6c7a",
Msg => "4617b323bc286d7680df7eddc101aecfa46c6dcc394367a1ae4b5ae8c29524ce7d5e21191e33b369565922bdb36ba73a5f45c3280a21d53e2500ec1f514cda2417bb8a5cd97693d1087b0c0d983fa3ddb198e955a8dbf0142d4118cac69026f77cf796f5d3393338000ee4d557c6c941032f865bf9b9dfad2fd886ef08aa30cd",
Mac => "c4b0bc18c2784c858754");
Test_HMAC
(Key => "861ae84f596bd23cd37970454e8908686022111154b546e1da84faaefdbcabcb",
Msg => "a0cfcc6559f2bdc8d0efe0519e8d311d3af585bfbf666d90ef2b5d4678ca0ec9777f20423be804744b02194faa5415c2596aa7d21e855be98491bd702357c19f21f46294f98a8aa37b3532ee1541ca35509adbef9d83eb99528ba14ef0bd2998a718da861c3f16fe6971725565ba171d276b693ec5c9e6496102500867650e5a",
Mac => "e42a3482a658c651f55c");
Test_HMAC
(Key => "304e23c570eb7887270d73abba9c3268d0ae42aafb9e62c09a5e8954fe0e2aa1",
Msg => "2fa33c03ada40c598f8800e017dc802a1c6a3ff0ff5ecb58e1a7637713a00815cef0d6b125af95c537ca8c4ca9a89580540d77e83a3f6f92bf68109e163c4efcf9dbd5759df99ff0e53cc5eed6e595584bb3e67ae904a84f563ebfffa66d12a6162ede57fdcb5161ffa754d084dda837682434adf5f69d160ef118a4ac7d7c9d",
Mac => "d623d5ce7f0e22c269af");
Test_HMAC
(Key => "cb3c6fb3fcd464d5d2dcebac4fa41cba7a60706d9c888ba1af7e586714725b05",
Msg => "0f546834a313fe3981ef450f3e3b16bc184e3d6bdad57e65006ed63c1c72024978114659fda567a45340f9ff4a87e15279c4124b25369a5464ace2c381523151a3ca73ceaa7e39135a350037bbe5b606bfc87aae26b2a4bc9fa205473097706bd7a578fa72477c6ddcf7e12159fc9fc03484fffca6f2a384fa79c630efeac57f",
Mac => "6cc56c226b22110fb13d");
Test_HMAC
(Key => "d50df8aba7273e6427ea6bc0a4fdd4d5b0364f336cc696b906b1edae7f82050d",
Msg => "6fb3ec66f9eb070a719bebbe708b93a65b201b78e2d26d8cccdf1c33f741904a9ade640fce000c334d04bb30795683dca09dbf3e7e32aea103d760e857a6d6211c47655df3665bbe4164e5d1334d301eff0bcffe6dd95dad97fa63a0ecaa7b197b55b6f86f073cd4d524324aa659e19501d2145fb8adc1d70eafec04bf36c959",
Mac => "51ae4aaf0de1921b08cb");
Test_HMAC
(Key => "1daebe36007d26b988f8c4fcaa0b5a07658ef6ff528325927d98649673f4d7ec",
Msg => "1d7f6833333d6f99cc4de86dcb1a668af36966074c31d4adc9acd0ae27aeb19318364a77a1426d73c1e8ae5953a369a535eb07b0aa087c27fd2714bc68ae701b33cdcb202055834707ced464bec4e6943b610a73fd41408fa881fe1def192cebb66c7396781eb7fde726e2f5d324e43f4df4f8b70c8328cd10e113398498eeeb",
Mac => "a03712aad2fc0e59732d");
Test_HMAC
(Key => "fdefd6dbd43cb817b132754633c0ce724be5572e4e732b7d4813ddef9489b20d",
Msg => "3f5fe1a8a13c8357149f68bce47360bd6e73c98932ec4a7d2ac4c5495bbb864ea9f1c14befa93b394f4c4773c7b1f41a059b85b87d832123b898cca5ef059659d87212d8c0cd0a15da4a7186d7a89985b6b7a7f5de1743286a429400c4cc6b5575eabe973b3259b55ca1d03d3be2b8c429cd16887d2f1854e7c903a4019b6d0a",
Mac => "af6a6235395d057c6d2a");
Test_HMAC
(Key => "e32e6acc16d4f6ed9cc3e23ac65a259c65704a3f8437c598576687a76e97d079",
Msg => "a04d563eec5c909dee3f6fa8133c70f862d46333b9f5cade59718273a4afa5b426a1ae3ed3f5de618f90df2ff438a8d34f90a025eb4a067b939890c152e352cc7dc0e2ebf320babfa4c6dd4d50ffbe52918d5dd61ce4b30444995039c017435bad943a6cd743ea5f34cbb12ab1f97a1c31b1e271d32b9924745c0a0476b13e0a",
Mac => "190e04e5dfa9eab70cce");
Test_HMAC
(Key => "128ffb7d52b710de97ee921cc9d2bc5e0750d3a2e10dfc49c80550d6c27332f3",
Msg => "bec8d88f65e49567f23cc953d9ca9bad9a5ab34f38334c55edf98a251cd20ead87c8c9ecc26f0db4e8c7eaae8c63b79ef2cbefe87f203f546ffedc0ec6a61af1895d3b042d0f8445503897a6a705fc5638b60141c946c4da984e8e184c2762be2c4ed6e08f0d22a39358774412f6925cd2e19062fcee0471d0b0474b969a0f9f",
Mac => "2394aef32f606989812a");
Test_HMAC
(Key => "a12794057de3b3ea426fbe0195ee17b4873ef7e6ba87b22bc6143c38da62ec98",
Msg => "d199875bb7071c434ab236e6d10f8405978fca259f7c34939424eaa6ff3ae444bd7900a7af8a5161b328ba9ed382bcaabde18db3738a6acf44e62d41fbe022f8568f1758ba15b23d24c7083d638e6a2e858c82e88f03a04c71734e8638032a8e8622f5f53f6ee7de86d5454be8fa369ad6dad34f59af7d13011573fd1f6ba311",
Mac => "445aa92b032c6b65b28a6541");
Test_HMAC
(Key => "2a432b462ebb78835008b4aa8a92b40f6fe9dc53a963352ea507c06c8da90a36",
Msg => "ac76a7db964e9fad2f98c18c06f929f23b6217ee35ef4525920f771764e653a39aef73cdbce6b9c0dce5e20fc9cd5e4085e75f8bf9cb31dfe881c92622e7a0cafa52c278f9782124d48e304d9cadad82357abe250906406ffdf35cb4a5d95be8b3e7bb63b6ce82e101dad2cde862bebf33635c43cc681bdcbbad574854832b06",
Mac => "2f8e18b75cb37402d6e87355");
Test_HMAC
(Key => "232eabc478501f246e73e76bf0227e0356a4161f97687540baa702fe8e442005",
Msg => "bf465c887060c762cccd43e4a65c76e9fd685f44e7fdea03c83dc2f5c702676983c5803901bf7207ea4d31c7f399577d9c7773481d8da3a09db765dca6aaaaf7d6d72c93d792023e917371f59dfc06e6fd7de17a0b355493b0baad13d69b4f9d2043089fd8209e902905ab768ecdabac8a4254e29a3d2665680e42a1411d7fe4",
Mac => "9dc9ffa7894d69c67295c994");
Test_HMAC
(Key => "aae20e01f6185d8073f40fd7648098fcfaf3dd8b6c7becb14a39ea480e8d4c43",
Msg => "635a508c6c44c1eb78e3dbf5961acab6ee7d9b92a8aa473609dcedcedfbd5f78207ce0f9ce202cb01d1cb9c8d8233db1013d70d0b81b13755da7310ef9e0a59bdae5dc627e4fdce4b3c4850ffbca17b535d8f53d7ab3a99946f82778d8f456bcdbbccc2e457ad9708006c834c8b661acd476b341b81b10880af4587243a27bc3",
Mac => "a246956f07f6af8830fcd392");
Test_HMAC
(Key => "58d259d3651b6533f98cd0f7da9cc4f3a251bc02cd063bed116bbe8feecdef37",
Msg => "6349e3265d2630d1e14bea680d342ce9f76aefb789027f3d8f6630d50e584ce8d73351565d745918c47ada243a8a8f908a16b6fbee3f7c292598b6edc62dd14cd4c40cdf9262e4799911d00a27e12fc3ba2d7f7bde1fcf5243767794128706e081827c89a6f7ba3c889936e37c41f3caaf36b100ffab61010f89db919a6fd3eb",
Mac => "cbdb6ff2298283b4ddec7526");
Test_HMAC
(Key => "e0421039b649a0d72d2b5dba7aa02ef7f1f83303bd0110bdd32b89af29ea5091",
Msg => "64f3d0ce82097d36385b6717fe155d0fc5ed85bf80a1fed9e3a1c37a6b08d3bb9ed18f839448639fb6bea814c681c9b3200ca5ef3f7a35ec82416fd8301c6a7ebb49c21841f53e6558f5b0fc0bb61de020771e549db586f18ae745f5f76c8dde41c2333892f857b3a7664778d69ba1bd4f97b897a23b391081fd0f7ac7e08303",
Mac => "d7fa45de6ac34e2d3ddeeb97");
Test_HMAC
(Key => "59b818b12c95be441ff52d8bd19286300f8cb877e25ea4cfcb117fa74db07782",
Msg => "9c84d18b6ec339247482cc3ee52a1bbd6bd4ae918216912d211c103a9dfbbe8dca43bc5763d3379cacf233e7559b873ba217294cc9d2acef9c6707d067fd98631cd6691dad25b1e3ba209ec36c5751e2a1442bb5492347740f0447cc3d1e54d5d96660431460aee0e635953af2078198af813a33c9b269a3c51b5898e506f9ca",
Mac => "7fed72bdb85fbd6fd73f9656");
Test_HMAC
(Key => "4def685532999b6352a6741ba47bd2aa393961e12ae4267ecfc558ad310c72ce",
Msg => "8436228556a7569274bb14ad6271abfb82391e809363cb3877d84a63390898204e23753d1b8c0a4eb88bcffcf442aca099e25f11f11e1db988e07cef343b908153a2548f54574ca0792569efda522d06aed00f8ec6b321665ae8f0f20823acb61a19892308f064b03df3aa2d1e8b7654496af9a21a0a1f6574566f15bea734e7",
Mac => "1dd37b69db9cf4a7494697f1");
Test_HMAC
(Key => "a3e983e3e959ad38b9bc4b4516589b263ad2c141884e5c84c2d65dee7c001951",
Msg => "e01e4133819800b30445984a5f12d6e3e1e29e1bc6d428a209c569e37917cee70fb030767f4505800dd8d3bca27feb8f1f68532ff11a0408e6fd555f3e1db835062ba46ea1c5d232a8f6ac94f4010371f85a009b54f65d37a8c4d464a67cd81e6c978461109ed1917ca80b197c1f865315c28da819f09bf8f823ce3bd9bb9869",
Mac => "24a2f45f719e993e63adcf23");
Test_HMAC
(Key => "b1b6d5e0b9b1efb608912da48d561f4489102abaa09f399631beb0fce340a202",
Msg => "99d4482daecfeeb8d44226a39f85b42f9513fdc2d798c698044c3eb55a803f1e1e76d1483e76f0d1361e8f6e30fadc256f55c6bced4ebc71432eb8ebcaf87d7100421d5a2d44bdc4462f9c8911c0526f8a14569f86bec35996175ce52ed5cdcd06df3449c160dffbcd1a57dc8afe9e77aef9b655e81062b8c3af318cce3eb79a",
Mac => "cd4057acd7ab2b1909ade91e");
Test_HMAC
(Key => "c913fe12cb76e574a23bf46c9032105848ce2c71f61e6d5880ff8cf20b917d76",
Msg => "d83c04027297bacaa0ba8bedb834169fea05aef6c60e00fcfec5f6036e2ddc385906c27bf640216e2bb6c1cc9819d9fdd72a79e7022d2506769ac2bfd715b7f155a04cce2d1055e972bd158f0d7e5d5b03d5f405f6663b7befae11335af1f5bf52746aa21feda062fd3850de1f4be8e2f46ce8f9a9a28c82ef69ab06fea9dfc9",
Mac => "0695b866fc28c2a3390e8449");
Test_HMAC
(Key => "d3dded60911343bca3af35d2dccbca9d2344b60c74b4819e27a0e62f75f37a12",
Msg => "0e9b073a31c8fd215af1d8d0ce54ac9ae109036e1794250988b7966a898adf8688cd913e387c888eefa46d074c767e7f1c9992077ec5571d468edf23a07d5b10f665266613f405648889ad7c4e458507ae65ae385ecf414eedead70e60b34f711e0ecb9a0959fc0aee47a0171fec489a5e145fe9fdd968054475871413544311",
Mac => "1b0dd1dec270305c1a669ca8");
Test_HMAC
(Key => "04d31106098fbda19af28e84339c736eec54e5859d9f288f4591ce64ade47ea3",
Msg => "86c7c82bba165b31ad74d92ba22a3bbff926807e5396f414f7b6b2c275e6680f89005aba41e8aaf26265d6c9092f82e78e49787bad90ed78e89506fd27a89a14a2353aa000546e91c09b425ad93601a59d3a4145e3371f6c650dcc1e670049e59a0e6ec73f7f31758fbf25c55b694162f0a4e3c23db2145938c60e0d7d16fce9",
Mac => "8e2916ef6b7bb91c15901210");
Test_HMAC
(Key => "addde2c62bfa0722f73b99add65f2b3c9bfdc93c4b1839ec7ff380ca0a26a94a",
Msg => "a64ad96be224dceef6563f18c63fb7555ad926933f8e1cb02a4d9e2edfdc272e5170ed9c0b7b65a7cec509747cbe5913341320b2bf7ff8102be41035b59a2d61ed06ef42146f5669c90e84ffe564c5b4a3d1ccf90461406f71e9779fa25381ebc03668c4c6aab61e2d5a3821c8da0222ed3bb3d1d5ddfab4458559d46eaf29b6",
Mac => "1930cb1a51265b09b0aaba99");
Test_HMAC
(Key => "ab40bb089199ccc0ea49c6f5216280f5dd3eff7c771f8f7bb1121217a51999f5",
Msg => "22eeed3b24e076c260f12f1530695059b23d0acbbe331a041b479d7bf24d264b82d90e36165c0bea348f048418152453615c2ede09c410289a03ba329fc830c2599ede63b4132dad791a53c6c5af6f29bab9d5a67434a6aa3f8fa5c107534559100607c9e74f0292985bc3e4217e5864271ea82ce8cd061371b5052f10398d99",
Mac => "e1c43cb277d8c07146fbc6e1");
Test_HMAC
(Key => "58102423a4168fa60a5aa7f79092d52326c98e22ee5f3dffdb527d397dbb8c68",
Msg => "480be758a9b7ba9af001bf21db00c451cfd66f06c9d8d5d698ef47974a3d6f21e4049d5556c45b5fada447378b13226ed4af2427ab6692649ddb93831b0b40082e30fa9c66e60056148c403ab8ed6effbd1f541664ac69e7fff0a45e5fc292a68f57a734c362d2088b80532f4cd4d18df1eea7d9def280e925f62330fdab9085",
Mac => "4c41bea823ee6791e83636bf752c1240");
Test_HMAC
(Key => "816aa4c3ee066310ac1e6666cf830c375355c3c8ba18cfe1f50a48c988b46272",
Msg => "220248f5e6d7a49335b3f91374f18bb8b0ff5e8b9a5853f3cfb293855d78301d837a0a2eb9e4f056f06c08361bd07180ee802651e69726c28910d2baef379606815dcbab01d0dc7acb0ba8e65a2928130da0522f2b2b3d05260885cf1c64f14ca3145313c685b0274bf6a1cb38e4f99895c6a8cc72fbe0e52c01766fede78a1a",
Mac => "17cb2e9e98b748b5ae0f7078ea5519e5");
Test_HMAC
(Key => "edbc48ed948cccc421efc7a6475a2dc2479dd9996f5e2f10e0c600c3957aad9d",
Msg => "6dcc3949424fefabd4b3b7b4cbd098a677878101640380ec2f3f34d699c8855ddac5926f3834ebafd776011ad30edbea8ca60aba4152deece119da481db266e5c28bc44d461045dca029bd695d043429f116decf4b5c4ef8ace7e6c7b89792ccce27b62b956964fad7d3d3ea933b0c2a4ddfe788a9a836da38b0409c920171da",
Mac => "9005e6ded766f31ca4277bb116c483cc");
Test_HMAC
(Key => "420e70ecc3cdaffb726a183c793845315f730fa4dac9fe46e4180397107a6a05",
Msg => "f53ee3e2ce4467de8b3b30aece9404dc90aed0675b3f8454baf62465ef5f1c29e306d53563df85b088e54b1577027b344b2f377a50dc3f737292098df5d7151f66527ba9d12fc65e34c504df34761e4a0fd76673d2116f71cc88215d42ba0c566469fdc880fccfee762384966cba9525c2f085da48a8bc57af1f935d3ecfacd7",
Mac => "9a148fc9f2372f9c07c328e832b96430");
Test_HMAC
(Key => "78b8b8aa70fcb2b0cbe835941275a5405cef6d8013aae759f6f17c9d643f0cbc",
Msg => "538e379b06f1d89a9ea978a8f17ecd6f8a22d1d15a1418e4aac5603b54fa6a68337108bed8c7785c7e99f06740ea7a968ac402f4ce22ade1780e6d5a2307d37b0da52442c880ae96334d5c88a94a89d878dd12bb9577afdb8ebf83a0bfedf1aec973b2af40e32452a40de5939367a13e3cb328ae17dbc4dbd420c99491736d08",
Mac => "85543d27b8a34ed9e222172ce308c672");
Test_HMAC
(Key => "aa01f699da8d42261e3b04ba1389d2631e985fdba28a4c0a762e40cb96df3af3",
Msg => "426090153dd06665123aa375cb992e221cdd03068b827aa7d367cced8bded3da03ff11756f43f407474e588aed0b4e5f91fe1c3f52d68574a5424a49fb06f0bf9e4ec481dc421d1a68dae166fdf44a4644a4ea98f8cbed6748eb9f5e7d392e83dcf4b022cef667063e8944ef437bab41ff7576fac7883ce68309d316589f138e",
Mac => "d9f1dbeb901ac73bab9b5d40065c21e6");
Test_HMAC
(Key => "6733498582e94a58cef983b1f52f215da1612e8e48f605814aa9095d398b965f",
Msg => "3c17d3274495dcc86f2722398db60237fc70fc0e63b30aa4a32c30b90b40556dccaa5103ac6647e4fece35e7d104c9cf688f7716ea49c8e95b78f573cb3bb45ecd2852972b330252d8d1754f265eaa5b39bc0819bc3eaa02d2c4faab5027814629d7fd6c2ac2b41ae77809f9f58d4de2593fd7a1415957f9f25867e902cb632e",
Mac => "adbffa3c88f82e0991fe2128ba2798a6");
Test_HMAC
(Key => "3a239ff156058ea4ff05e0f672b7ecb5d106fad5d31e9d6fb989430a84970a1a",
Msg => "4ae231eafe77a158c2472143faf169db29bf2b53c3288d8b3c9added65778095f85e2cb471ab58362041f0a27d874c42bbb06385a0403ca193cba67cf70029cdb7e73c7e2267b856fa0b8dd4c706b45e7174659b0ee2891df911724324f7ca5daf07c912b9b2abff762e62a1817688757492975db7185c4695f3a90895634b8d",
Mac => "9411d3cf30e359f33328f80a07b7ba6d");
Test_HMAC
(Key => "a3abb893aa5f82c4a8ef754460628af6b75af02168f45b72f8f09e45ed127c20",
Msg => "00bf40f1efb6484fb6f9fcff80510bc8817959cde43a98ca04d5189bdea1e0fec7f5fd995a481a3fb597516fe508411d9ecc61b52f49935eb679fd7c908d147814d7f9c381e6091834f3b0021f7c7d9f762e7ca3ab08c09f9dbe3f840d5be363512bdd764cd83d649dd3bfc117f5e8d47167529e3fbf4517216b86bb3b537445",
Mac => "79fffaa6767b3bacde8078aabcfbda9b");
Test_HMAC
(Key => "c3070d79ebe3c6a98ac13e50ae4710e602485a68a04329fb272c31d30d6fc253",
Msg => "fb9cfb8a89761e4c02117be850006b26aede2a205f342d459f9cb6a4da27a5681cfd919ec943173f8e42726a97c54cf102c2d417943d1198ab6a76ea7412b6c35e37dadbcffb90f315bec6169f87771f6da5c57bc59649302827a71e84dd6585ab94fdc80466307180ce9e74d00d94b8d6cd25d359057c16fc1c70c9715159b7",
Mac => "8aef0e90bd29fd1ad4d80c37e070dbf7");
Test_HMAC
(Key => "a9d599a9d003686e2a3b2a27407644b73bc4d7c7ef3ee75d193cbdb0e5c8893b",
Msg => "e7462835e38509f5bee74c3133482ad4d7fb7ddcfb18c754d2177682d79e66616998a852b887820ee51bb6df65030710a703faa1f647da40a0f7fe75580b4f1dd9610419cc0cb047ecf07fb1688cbc058816974694cd26c0f28ba9418e9912867fc8c5f4e7bd9c891a8d2e11038a519dc45cdd319d53b3bd0ffbfe4e41f1b986",
Mac => "11ddc4d89e463be1338373f0a1cb22f8");
Test_HMAC
(Key => "8ef73e17f2dc9e063230a3352fe5c549c1fd526c43f90f57539522b0d3b22f97",
Msg => "757d2b41484741e4f9a9fc4c30fc633d31be09c856362715bd5bed603ef31a42a0f8cb320c3f904bc15cc5500ac020ed6d24863f262b2397d442b97b71cb38ee877c90f2a101c34a00e93e8490bf69371b777d8abb0d96f59568094cc484f7f994d02288f1d5006a1f190ef2ab4367a4a17f95afff24a7b86a9583d920657eea",
Mac => "7a5efb96b080064a05fd021e31f1dbc1");
Test_HMAC
(Key => "a535c38a4f69ccbc134306f5f158019b7c79992625e462e9bcba4a2f34b4798a",
Msg => "71db63e8b1392644e6fcf7c3d81a03a7518290f4d30048768a61d40580d7ad08109f2f389de0f0a784d74f004e3150102bb8a7859c3212f66f86ec24f02100805e989bed9c8fe5c629d9702352e11258a648f0bfabcfdcb8cf78e1eda1e81bdb4110cc8e150cadabbe4b82b44bf1f188ac799429699f4dc2947ddae9fcf4a921",
Mac => "c070e020d56f7e294f10fd586bc3e063");
Test_HMAC
(Key => "2b3a5890de01a30f88d4f7eaaf702f6129a5e7718dfe8f9ce7a4bfe8b080ca2a",
Msg => "179645a0885bf0f1deb9f6c105bdbf2bbdf728e6ed81786c3a3e955bd960781ba12ddec1650240338098068db186f8c42a07f58ae3fee7713437f652a3f0fcf0fb9839d99ed6498d1bcd52e2039f82a7f92fb988092c82313b4b48b767d3c7334a5fc0b0dadff147d7e14488a30f471c53f8dca9061332f67500f350cc12bf2c",
Mac => "3d866bc71d43209d97bb596fa59460c4");
Test_HMAC
(Key => "c05d6b83a27ef65cef5571222d24adbcc18958640548bc959a4baa2b00e7b0c6",
Msg => "b20f96997b0603a0bb860070369885f3bb1908939f6195fd6b232124d2941c89e6d045bb8b79c2192ba170dfabea78619eeb2391b9d6efc78758e2c25ec11eea9265b6d7e842c0174ee3ab2cc984d3d5ae76538f15c51a5a8b1942c007da9d14209790f87ca924218c135a5f76adbfd7538241939b76413edd2ce928b426c091",
Mac => "15eec3c6d6f4e7f2b1426d01259ae8b6");
Test_HMAC
(Key => "895868f19695c1f5a26d8ae339c567e5ab43b0fcc8056050e9922ec53010f9ce",
Msg => "883e6ca2b19ef54640bb8333f85a9380e17211f6ee3d1dc7dc8f0e7c5d67b73076c3eafc26b93bb248c406ceba5cb4a9bfc939f0a238e1559d0f4d84f87eb85975568050ec1fe13d3365033d405237ec92827dd8cd124b36a4fa89d4fb9de04f4d9f34864cf76f4ec8458168d265a5b02144e596b5f2e0d2b9f9cb54aeeeb67a",
Mac => "374c88f4480f5e8aaa9f448b777557c50065e9ac");
Test_HMAC
(Key => "950fb0cde30f34f597af5caa2b16fc86a5c3ef065d36ffdd06ec048eec915039",
Msg => "e463626506144cece55dfb7aa22eb21ea3a4277d892c211762ea45cc205c2d9e4b3abbb8f2a1adb0e77171092cf43afca8c053771edeb467602bd333c0ffbc88c80d645c2b8a3a2dfa92008a1bc7d9d5f83ba34774908634235dcd91bad4f5b3c4a2045997171ded8787500759f0b633fbdcbef47289c2091348deeef62301a6",
Mac => "8c90480ea6414553df17e53cf96dcb166b94be35");
Test_HMAC
(Key => "a31acd1af261a1e7f751140a580b91d476792a9f96e1dd013fba1645e2bf761b",
Msg => "6cd70039a77e420d999b57caaeb53aceddbab11739447faac31adb3583fa22f3d796c9d00adc95ce287a0ea711a231b4cd0a650d1f38b0f25dfc2b697e3eb32975f9e2b7be883dcf3621af052f9f37acc484ddf76a3eea5ec8a95843c9d688d6ef0b3336ea0aa3d96996232d3034b47f6a2f011d41de95b7ad294c0b894a07c2",
Mac => "1b6a55344a48f62f8b351c69acb3a33b4c57c024");
Test_HMAC
(Key => "8ddf3be2ab49f11f12f392a09f5b72fcddec1e186dd3e49aab0e95a08ec589b1",
Msg => "8a2db96a4df188ec323ef6eaa7d58b56216b0097beb5013929c231e3be8d6f89eed358e2e5220c1d6b3335d0087946316cfa01880d5e3ce41245e40d70de42bb53b67d05bfcd611c77ef5e391e41d4d49c1b8e17c3158c92336505307a68ac6a807e33ba231b0d531e1b790f2f56bca97975ad2c270477ab52c89b33245234fe",
Mac => "7652e4b24051283af4caf67079955373f6604c9a");
Test_HMAC
(Key => "90aea6f7c6c3815718ba1959ececaf53128020b7039a51e766d0cf4bd9deb7a2",
Msg => "1e691365ad90646031e01e737cb3c65a665409621d05ad86bd47c9d721553121f8f235cb1b648bff1ec1890b24699707f8d4e5b85a8e59b5977fccc85d707597cccba584d0a2b5d1aff33d08de2b879a19e844c6b2037dbc2acecc03fe9acb18c37dcd587552cc1f0d00a33251007d5af0198e52ce6e01e39dbb314eaddc1bea",
Mac => "8a536922cc905ed4c321180ebbf4f000e2a809fc");
Test_HMAC
(Key => "5e6a489725810a85fe4505fab03d3b3c78771075e913b759f701ea084e0ade36",
Msg => "212a0448f4b39f0d22f9a0d5a42066167056368b9c668272c78a6bf8b58184f239e2d9cd58b030c8ab2e8e6005f5fd0c56438d2bcf96993b477a4b4bde9f62b3e02e3302ec5dee3855422336c8e485722f98edefd68ba26dcc9bd7dd8d6b7517ddb61bcff7e363c5e7da683d351785afc3fc5fbff86c256f1e951694090d4487",
Mac => "9e35e4bc678997c18bfb39568e1f77cc49ad153e");
Test_HMAC
(Key => "618406f43dd79acd2cd384b3d12709e43d267d76febf63ed58afd60dd2f528ed",
Msg => "2d9313691868161ff609b6f0b094317198dd94cb41fb2e62930744b41e200683afb2c23621f8587d76c0ee34276fe48ab7440a628ee111f9050740c9bea168ae36041a489d7517a0e5eb080e1917705af0a2de21a2b6677afabf53daac731735ea10846632e43dd16a136e472e95bb2a697e77d12282172d99b8e6ad939efa60",
Mac => "46d9d7c519e520029320b48451faed81f9112f44");
Test_HMAC
(Key => "ad445da48d46abfef103f9c6c5473444ffbbae90275cc4a8162bbec0fe26f6d9",
Msg => "81c94be426eaf01864e813a03e4674491b61516bc95d8a77c15f03d0adfc4adc27f27a5ac4165ff6518eda1a5c408708f78a9e26b834179804a312148d4f75f21a77d78387139da40c0a6293c2a59d0162437d68504f189ed970c5abb9ffc6d8e1be2b0877c7f24b1dc273b1765bfc5ce6f4b8d99a96d5b1c92ee53a39f685b3",
Mac => "91bc355fb0221825307af876d11404b473222d5a");
Test_HMAC
(Key => "05905a6ecb1679364090c9510f06fb3c0e09321b21fe0aad5cb9d980674e3561",
Msg => "b34e5b0832128d3a8794c2ab447132857ac0a83475f6d96ea607f470e1ce7a8bc9af50e0887b1368c393ab37cc5123011aa3b7ddf7f92f4979626c6eb3f141a62c66843c910a6473a6dbfcc982e9297cfc00994e6187258568a8613767b271c4c6bb1ea4b48929631ab3dee9cd03edff081f760f1968632b5a23fa5163d7b2ee",
Mac => "f76d200078fb5b3d3aacc3d90efd4edc5612a777");
Test_HMAC
(Key => "3e9eebe9add8e8315892c6b3bbeb77abf60dcdae1961e2839fffb73538691b66",
Msg => "f184d3809b13c417e06c7ed51d89e79c026fbfbbf1022662a61d5e5a1de2d3f2b04f583d8112b47a179f5dd44c7f834c66eb50f384996f5c3cd6cb5182d599c5cb47980a732b97445ce8391ed999f5bbcaa860f0089eafb0033977c7a9c0b8cb8a931a503a06765cf76f981b8c7e44d375cd761944b8ee46446fec255b4939ee",
Mac => "99fbfd85069f25da97f9621fff93ea599f61d0c2");
Test_HMAC
(Key => "c116c698b12c153b57c9d57d4eeb97f7dd8eff14cc2a2dbd767e7c35208c6f41",
Msg => "bc74041ea20c9b7489dce3ba9e279c00c124b6bf94b90cbfd2864f37e3254037adb02343ac8470404545cb955723368a145b86f30f00131395fbb4bb4151ebb2cba45c5921fd848fb9c8a7d325200aa8e84d633e888b8e4ee40d8146c84282a6bf5798aa28fd3f298c6c5fbd2fa87f24e50336e627e3e33866c59e219f826fdb",
Mac => "8da25f1b52990f59dad1405161c54eb148f002fb");
Test_HMAC
(Key => "ff73004a8aa629ca5c72414ea652a6533fd282e847a492650af12c5926ed80c4",
Msg => "2f42a2ad39f842c355d46670455817e689ddd9e7e8d8e12b4d5b8302d4dfea3a25400b430109db911af2c04228a7460139cb142a483d1e2e129a1c3a25033a133a201145c464d67cc993d132f182118add1f5f7cb9b0703315605fb3f0f75abf16e99bfaad92994c0ac08087c972df4b1cdfa12763ba3f00fdb534b75e44b006",
Mac => "ed84ee8c4d99c5dbe7a253be436ac0c4e4b5e0bc");
Test_HMAC
(Key => "bedb392f8a77a470858a9c366b7255f3b25c9a5d10b76d793de9eef8fa407ec7",
Msg => "eeb955b959c48f359e05da6fe4992c907c1c0134671c007818cedb547a00772c354f4da12e9a10ad4cb78fef8264de430a80b096ee7b08f9cd0b11f3dc20491c2b1be5e72a3a72c06b57b857a9d3e33b0acde5aaa19716a8376a1d4e4b5814655783e733558dfd95824f1b4e62ce859f046a6618875971addd54c90ccf901e2e",
Mac => "7ab9416ae1d32bbbd13277aeda805d66b006461e");
Test_HMAC
(Key => "863bbe40cb6694f736b532b95e38fbabe0e49c15f7dc42c54def09ae1161b7d5",
Msg => "1552df9bae4fc97985bcf7d5fa01799332423bff194a2a61a7c298d263a7e24d26fb500922ba3c06220f77e613c8e8ffc40876aeea3b29ee674f8b29cc22554e1c364723d3ac58dd26700fee8db1311e7f949cdd7c2973d7519e7bca98b2c5947e6d8e91c90e6323194689926da39b17ea4f7533d8fa5145ee15305ccf417c4a",
Mac => "ccf2155306cf89a73f55a0560d32337e266432af");
Test_HMAC
(Key => "b476d28aeb5fac74fcf4cdb1ab00a38571231db06624b4586588ac436a649749",
Msg => "4d4481936f523035b921005101ba206b85f55e272ea49016160e32d0479f5043c6dda74ad09e07826378fb59007aac67b0190302456d0e0ce29ea510bd994d8d24075c92be7f5e8b14fab85b4f888bab4342db81ad80f114b94cfddfc81600f46fa9e993c35dfefbd48e7e80774e85de49572fcdf04300d5a4008464ef7e321e",
Mac => "65437f28501640304b1ff95db6a6437cac37d10a");
Test_HMAC
(Key => "268b0e1f110052aaa2eee327e34ab349029806daf702306867a7a03bc8351d8ac7ba50eee6b783166a77a8bd749e9dd96e05ae15a8c55c8243925c894f4be325",
Msg => "7c881de00388a00f8ceea887b8e87ef7ceb23ea05dad950623b0caeb2ea2fb7d4149aacf795d788630e12fd522b306abce61212a203e585c4cb53921fdde506caf4fa6af5935879450a388ee6829c9ef5ca9789b7066967c545efe984cdaa3a08e43196aeb3757a1b2dcbbbcd2744e2c3e324ada964cd9d00352203663be7c81",
Mac => "e06c086d3434d79595d3");
Test_HMAC
(Key => "77c192472253685d52a6fc393bb7a9d5bd73f5af2b6e742050d7eae9b4acb00f1b2a59ea4f8894781fe454f7a87e2fb2d324041b1fede11aa12a24a5499ae091",
Msg => "837dc190bf0a96d9c7879d8d998c5c21a263475180bc9c700ca28cfc98ae9b75757b496fb959f2e73e46f3d3ee1a0efc3e011010f92eb0f33fcebb57cd3b6e8c7f73239912c8318b2fd90d0da5c0b539f78d4eae16f40be36f4252bb28951a59a74d983555be1a6fa127336447e81880d2ef4a535f7475e6a5e6984f32256783",
Mac => "2d0f6c935a06d9d48e10");
Test_HMAC
(Key => "79a557102517e406b26557d026cf06429a5be840ecc0f0c9b38399357860c3ba23ebbd35b377a3273237eafee8a33997d01d7a0048d532820cea0ddf65d2bed8",
Msg => "d60812433098c44623159153de7cd2721b349f685c43388a74c2a3d04a8e972ada4199177c61657369d78f907ba26a8934cc29d3029d4415c1101e3a8283e4c48bb2b8639fe60fc67f6a57b1b03fde507f10efcb43683e1ae223851b962370e1f144b74f1f9189e66cb831dc05bbf46e03e93877a50dec40dde5239a0fd5022a",
Mac => "6cdbed1cff27b79ac20b");
Test_HMAC
(Key => "3a4182af8c3914d1df57b6321fa5dec68748ad746e0369bb64fc2d9b7dc3dfb3ed9063a7d5cc0ec45dd35ee703f9e89a33cb9181179701f5b02e55ee26e81426",
Msg => "a16b3fdcaa7eb6a2135159aa6948c6a8dce747519f9f54cb92e759621f8fb97c615112cf8caac3d189e8ab70e0833404dbb09082e93443f24076e223c6d91a9d3248f3d76e1356aa40f9ce062a868be48f9fac7b165bbeb754147fe7a5bee8b65a786b5c1a617a1582ad48d20ff8d32f3ed922a6f1bbcb0215e8b91682e72cae",
Mac => "bb7654e63c2ef4313c63");
Test_HMAC
(Key => "3510c8f6da91371b5c81468b714d05284becdad01d5a2476dc481f784312082c19f181bcb6723635c426c1da439bcbbecf8c74922655f5bbe5a984a892877962",
Msg => "04e4798b90beaee2ecca6a4c1463ad9c1f9661e0718332e731059f00fe955105dd6bac9876e7a5ad8130d3497b1bc8889d4ea1e50ea5dcb658d46af6194e0547fb66c437e5b4edc373bb0a1aa4c83fa3d31dda40e94f2cd5d0ed98042b62e93b441de8f145ef2f2cacb43847f935b9f2a94d347a684bc94b839850b39c9aa4e8",
Mac => "df4a9f32c2b911138a7d");
Test_HMAC
(Key => "23904039640d48e163676d16198884a825604ba86329a1cdc0f0f6164d5100b19282af1c2493648a7af35e88fc3774e05d170abe2bb93e11a4336234cc4bafce",
Msg => "2d201194f73a9ca6e44834d8a44aa948287d1536062c647020c9140d813c3a5e877bc622475b07f92da6721ce36d9f4a749f9406b2db46ffd5835dd0641238e959af31cd8002227f20462836dd9fa658ddae8da62a63dbb45713629d67cbcbf4eae3dafe69d6f41e0451de905a89c75aa9d28980366e2c78f0a2abdd500ffb68",
Mac => "9238de28fd468cc27d76");
Test_HMAC
(Key => "d4471c7f6186e8c0ed3dfa2b0ef2cd184d6041c0921ea5fddc7c155135ae062ae62c1f64e7584b1099610c74b76812528ae20c6e5d3ebe4a31c75334b2cbf582",
Msg => "1b3b012e5a3147207350e981c05f20f268b4792078f986a23630d325b2f51bc69d03bcbf5efa694663601fb2b5e55ae0d0eb88d5b145bea4303faa9290dfc979556bd96a552b92961270916f47d6950ac1c5edc8703e3135bed431301ff82b4dea7a4177674d29da298b27009eb83839e44b9041de6a471d88f6504687c7aa09",
Mac => "65d6db01f95625fcb481");
Test_HMAC
(Key => "de6cc5a186dc79b9e21b0578b5ac6e2440a115e713162d7522fe72ee1b221806f7660263d04e3547f2c28c6e340ead3a892d3b0dd2474ef6f678209135d30928",
Msg => "f80c55de4b5ad74e4f8dc14b6a45c019e1826654ed66d9d5123dcddaacbaaf60cb8323d440f1b1ebf810bbcf89eeb37b0b128b68294a6c6977aaaad307d1f8e2376ed858cc03566745e9f6d16995eb4e2319892e8fedfd3f55f03cf136aa39b8e4d45bb2171a2e8add1f599c31c2d05ad0a04aee48d9f6215218697b61cddbab",
Mac => "c4953ddadc2acf38e677");
Test_HMAC
(Key => "8989b2299f9db5a5df0253a97b775c94e8e9195ad698e1cd6576e71b96cf5698ff2fa0bec4811272c274ad890d23318b9df47ab744c00f47e335f9f5de79d1bd",
Msg => "9f65a426106db99dcb2130be14839241d4a92c8becc108d2c9521b8238c5c0df7c2365ec9f20848c0559d6e847dac3103ee31ce55dec0c3644e64c2993c497ddfc3a5e4d9dc4bc788cebacbfb3c47a8edeb9773e128bf13a219862617b5ae8ac4731f511b26248a7875f1c0a01499f01ddb3a55eb2a99e2685f0c5f298909b95",
Mac => "616a0dfee4c59643e047");
Test_HMAC
(Key => "8f55e53e046e6d6d64c4468d44aa49a4e07742dd04d8f4812c6b5e22ea893d1a8863d234ee50e5a8c7650a4de047230ad03d268dde8921401ff97b79dfb97cf2",
Msg => "5f172973852b947ad8406fe004de6e94127c7fe2e9f3658c1433a21dc5359b7a1a31f7baa01048371624ede5731737e32a21ca50ac7e46602e2027afada1ead5307b723a4e7ba92cef736a2e57309f9360aba64c0683faff29ab0f598f607da4295f619c9754007eed95ae63b810efcc3c83db7e00ebc7908d3e21c2725c9c10",
Mac => "145ce9119643c0c9c23a");
Test_HMAC
(Key => "d5bbd2a2a536e6204259cbc2aa7e88452ffc2a5270485cb8876038fa84695d091b964252994dcafb1c85186a0473a408a5658e443eee33da2f43ff5566e582d2",
Msg => "e84dc3e5a3e9c59b8d4c80fee20b43f388c935d5fd5ce9b98f2b32f7cbda39e6372acce6441af9a47e53dc9906c2b5d442873dfad30e3b8bc77b5266104c1d9035397e31485f32df189ea91fa7401529dfdbc2ec8078a5525df437c5c8a784f24b447ecd990098d5c3f79099afcb8c7bc78e69b4eee25098b85e8a1bda349595",
Mac => "0f6585d0203aedecad76");
Test_HMAC
(Key => "4c34132786865ebba9bd1aa5d2d3675637744f7e5e619e8a8e16f36b84ab189a66f88f59fdfc6d3b1e806ce669f73b1837a918e8cd10a14fd682e7e61011c5f1",
Msg => "aaa05c3e8c3337306abc752b9b044dd7349c9604da693749d461dfea648ff6ff585dd3d3dc122f8b929ad908e586ac0e9a53bfa5a7efdbbf4979321c51484d6bbe3047b2910039efdd4ff5001e79f7c0cbe498732f88856474ae70cc01f705f606a120a154063da6736530daeee51636f2d78b35173c1d7e7e8701c31ca405e9",
Mac => "fd4032c4adf2a19e69e5");
Test_HMAC
(Key => "d7931174ea188b2c8a1f045978346592014283a1d20f992c0e06f5959e39f11ec9a6255104b9db9f0b13c347308ae979f371e3bbd4194f8d65977d48a3c8684c",
Msg => "c8dc1345a06e53e6d7b7eef4519d82a43f1977cde9e8e242ac84a95e3e52e9e03a1d94f9d8c35fa4fb2edb367286e13677a5346e7ccc62422894eb419c27a5fafaaf5f11280fc592d1d28484ad60aec203785f066cdaa147d9448d45d7a0b362127cbcb318ba4e57608930078b94afefe97940bc3f7c66f7c87dd6917927dabf",
Mac => "8e99a60f575dff478d99");
Test_HMAC
(Key => "454262ab05cca57ff00f12d653f08a5e2e441e324493c6b86e1b56c93418af139e4332bc48997b48b55d4bbde560c5052a80de93376f0f4a7ab64c9aacf93aec",
Msg => "77c192472253685d52a6fc393bb7a9d5bd73f5af2b6e742050d7eae9b4acb00f1b2a59ea4f8894781fe454f7a87e2fb2d324041b1fede11aa12a24a5499ae09166dd82a76c2bb4fbf546817907adbac195139935480fa54f7f15d53994a5f89761c254a702a68e8dddb4cae8e0ae12a90a28fc252d3d8769f28047cd1d35c2cc",
Mac => "d52b5f1b01dc36d76d8e");
Test_HMAC
(Key => "66ecea6ce6274578ae5283c8de9576f5865a38c321b9ca3d5f33fb0828a48bf1dd7391c8e10c1a71589013382eca69655b666e10665d7f3728b4e40ed366f796",
Msg => "2272579ca6eb22dc3f558314c47c2ef8ab4d678a7d8017e0877a1f28d371ece956d14b8c6bde7f1a809b92470febe8b0d1f71a612ecf019af75410d35755e7fd07f8260bc25c7fb1f97c106bc757efc2274e06cb65cd21f0d22d45f2bcd9442f9db08e2193ab4a2810c0a589d3066ab61719d4d00ac0a06a80cd6590e9452807",
Mac => "6ece755234adba6cd01a");
Test_HMAC
(Key => "b244d305bfd534de7b05b66cda0b7bd3c2414956b5364611b0feffea53cdafc541c5bff7ca0b89fdc820616fc66fd62f682235e6073a4fb19bdf7c17def4e03f",
Msg => "f54c5e14a29abb699fea3504f4b9a077bd40a4dd72a61cb56c75bdf0a54bf848c0d221d449f1d0d93d4488e4cdca96155fde3cbed6690f2d13559ec5bb4554543b83a0a00a3952432ee549b902074bb8361c34bf17d053f211701125729ed337704822a16edb0a4e7bb3bfae1cd787064be3d30abf45afad6eac5d3851be3d99",
Mac => "e685c26a4ef766a1ac244bf7");
Test_HMAC
(Key => "f3cb2cbaafe6281ebb546af88c052e6658a58407cd7ba30502918052ae159f3198ff29f94ef440151a6a8f50320e25502f62835fc0abf372a00a1c63c5e9d482",
Msg => "8f636070d8c5c1f979734ae36acfe63f0c0817531a3f8de1dde9f7ada0751939642e1ed3d56230d17cc4471c350f3eebe4ec2cd16416f1fac0bc0fb2a627bc26189c356f658454cc58ca652faf8536fcced76d0db5141ef930279d964d3291bc13754a4c71715571754d4d26bf78f3f93490810ef7833c6695f449617fe0c182",
Mac => "3bf0f6f4ac757afb9deafdb3");
Test_HMAC
(Key => "5ed96404ce1f0ae00c32ada5f605c10253d5de41135f211bd84fd0d1b6fb3c783751ec94a30ef7e97e32b28e51b08b43ae6935046e5b06df3d169d025970c718",
Msg => "a89bbaa86a339951ddcd37799e21b5d1688e4abedbc72daf7cc9b5adfe10be34c00a504196cc7baccc0485b8682e48e9b00bd515ec4f5dbe6d9a529fceaac9857acf23606e9fec9a41ea03a761f1fbde9fd2c287ee4780356790c25691aed808e0d27b2e7b15b4c34269f96f10d098583dcc593b68165ebb73924ff9ce83b464",
Mac => "a8028cb31b89d1e668eb4196");
Test_HMAC
(Key => "c92660b2f009f47d3589c74e22daca9f60d0147fcea28e7cd0eff0c5eafeec908d4aa8ba303e72ada33db087a0e51579a4951b6cfc2cadeb2314233d4b8074d1",
Msg => "46252e54907ec102948e8233e7254a6ad0fe414250aa00025fcaf272798100ed59296db80545fe920ab75f8c0934c21b72f4c96c90aea6f7c6c3815718ba1959ececaf53128020b7039a51e766d0cf4bd9deb7a2ed9ad495722a0892f674edd788d6bbcdc2176d98069e1fec07e2bb228b22d48b7056d204ed6550ca1b98c290",
Mac => "515a7febe556a317919eb3dc");
Test_HMAC
(Key => "2ab04d9a3af659171d80653a1f7ab9bc64863e6ccf0f882523d913fd68ddcdc09155d59d5b13831e7816a85eed5f1776b9016438b778eb20c53b14872695d61a",
Msg => "8d5044a308c18e305d0a13bda0c69555bdfa93c9549bc053c751b37a917be035d973c75346136b1a1678062f6a05fbb6e4ab0cb97468cdce6f0e58f4e24643bf25d4cfb5b31d62f738e63824ec5e557a205fbe3e16f1e85e16107156beaf0e509afcc58ff5e65c0deedc1163ced88bea989d1120e23dfa4de4dd6466cfbc2931",
Mac => "a3bc85d2694d7868120934ce");
Test_HMAC
(Key => "2c66bc60707a1da0c194e5422ba022acd049a0058a0fb2e9d2992e61e14cba12141c46b495a2dac6386f9280a3a1e70ab2b42feb1a9a67c44c0d313e9c241941",
Msg => "f39dcfd65ab7d025bbea7aa405f6d64a22aec28f7c64937fc0a2ff0de21b3ba961e06015ccd71374856a65a4c57cf8cde0a1643aca8ed868dace055dcfb7373b119dc5153945ac01d29c776f61a962b9a4c1befb18fa9724bde2954d1d70204a8b3ac77fa9e9e3f52dea77aee4675b35f7769a786d9018daf1447885d52c3cfd",
Mac => "03368545751957bda8ff9db3");
Test_HMAC
(Key => "67856f8f84dba19cb38a23b0efad6eed229c536f45753f81c8fbbe1134a43e620fed160100f1c6fa333a804bffd7e899c6ae19221d14e8f32d9b6c5b592bbe9f",
Msg => "a18a27748ef39b49be984e8d18520110008bc8a1d5aeb424bedcaee5a7e1a62c8666ee12e367e09297e8c7e3d4e4fd056587509b379daaf81949f27cc0fa2d210e9be951940adbfb55ccc7e5ccffa044318ff18af9ad7b7f9c7d1f939a0fff72c091e1daa7c3d4a97fab153b0a8933f2eb0d721621c86de0cfe100d13e096548",
Mac => "e2ac4a0e354277a62cc82573");
Test_HMAC
(Key => "cde363485e01d4d36242665f35a6e910b991fd9041211c05adbfdb40d6f46c372c7e68b69da4cb51b9c6419d1438a0a0ec51b5850cbe4394f01c49622ac78445",
Msg => "9eeb079c552e421f703085b9b275d5b05c0c922efe14f2e78c7faefbb416fb1e6fbdbcf6d7f9f6c438af8447692f0cde5d7031ecf59d0a8018d1d3360620e358e9d6de49ae032c241237aaa0008a9f371adff187966a99f84b70549f0b4e9b6234bdd65d8254cd85274f5f8b1e8e7604bce13ac6888285954ce397ff6caa0c84",
Mac => "31a0920da97a3e94b151bfc8");
Test_HMAC
(Key => "74c6bd81ed71bebacf5f7263cad715951c690afe4cd127e41b1e5468b813540833cde26834a60052ed5a8cfb4d68148876bbebd0728a7c64217ddfcd7611aa14",
Msg => "b8ec3714f0f54c83d7e1e5e187b110d0abbaddf1ec4a71a9ac8e5625f7b3159bb64c07d326f468e78934ad471ca717ff485b893d1c7b970dfb2bdf6892b49c6d0de178ee8ba9a22ecf0d21e938446895f3162ae86f866f9a11b3e86c2a007f692673336c065b23e21036e8d1c4d1281a13b168fbccb222d757ee183aa5e0e718",
Mac => "ea5be261fbfdf4e083358099");
Test_HMAC
(Key => "18f10073e71422a3d223c1a95fdfa6f3d5c27172f0e4ec9ed91f99bb55718d5b3da381252e2827d48148ba837e7ed927cc1e955d2c3ac96668c7aa6f85fc9e16",
Msg => "bdff024f5c8c625bf0e557c138e02f1fa7329bf70b846d616ccaa1fc37d09a2a9c15af7d34dde66ce782ff4b0d0bb57ad3ff40dce07c1e8a398313c962966f3ac7858f515a85a6087c82bed521b6f9d92f7b1d5a285d4f7309741f0a72f1c50306f6aab315ab2b98798e9947bd0a84a5854c395a29528983a444cca7ad0826ed",
Mac => "96f596dc5ce8952cb2b0f914");
Test_HMAC
(Key => "fd4e7dfc0c21461f69fb237fa283378413f1e5d25db7e613146798f6b8d19977e76b9562d0f75c12eb5f387fe8e47d78e577612ce3670eef7b3df63bcde567f5",
Msg => "8d8094c0736564175a29e567309809ea14e090745e8e2904dfb9da996a7da14792ac5c89b6bfe6d93b13837e19527ea6992e10b45d5684dba0a299ecbf91286cf8f606ea72ee2c8f7e1515f71dfa683fc2d0d760596647bb875931f53488480447c85c8ab0d97e62ac996579447810e0172cad1f5aa6bacb1d446a5bd0484a37",
Mac => "ab8810c9a05afb0169fd36df");
Test_HMAC
(Key => "0293926e81c051a6c0945d2594644b824c100c368a85634751869c245ead7cd0bcac744393d9190e41ead93dabfce681d5db778fb17d30c335cfde09b0b568fd",
Msg => "69969242b77bb69e8d7d63bb08d63ebe8be96a460778f4447a176f0db6e1dbad6469cc7e48f4c8fac7e5f0cea678e22f14b3df71eb9a29d633a3afa4e869ec7afca40de3a059522cc04eb673ccc1d201be59ffda595dbb91ae244e61e5cdad7a3a309e9946131ddb80a2fed30319d5da92c413a6d929711ff584926d3773e356",
Mac => "078437f1a1089c5724eebf2e");
Test_HMAC
(Key => "75dfc0b734046aa2ef9d82f7596269e100793e5223f853a2c3a5e179fc00faee9683c0f0d828d5e59c2c1292a9127c3b3cec730be8d62db6a0c3635c137c4ab1",
Msg => "e68ccc21d4d7e9155773e9d612813f99baf6d72c3336562cf6e5a478b6f9a8e543145234ae12df41aedd587c42895c9d989d20942eaeb4bf3733886040942e4e138461ebdc9147558af9f3e178c02ec54dff7714217f48f0e1869bfbf4f1ad0e1e83022ea57da9bbb36fc1ebfc4d3c77a0c5e39453d09a25bb88e62f1939ac8d",
Mac => "a1147bb0ba909865a46b4720");
Test_HMAC
(Key => "8af2e72ed2ad3be1e81a21e6fcbddff62d45385bf061ed60b6d58306c9cd47f8777190c173b9443d78839d4d2fe32dcf53ba20ce138ac2f5b888414a87f3b319",
Msg => "657fcef962db04bd269ae5fef2cbd5e6558d072946d235e8706394d4cd250796769a926fbaaa121b6da42cfc82808474dd672f9362756af252bd8cded78d39b9ddf4d99e24824844934fcf25d03e54df0d83cdda2563fb2be73b54b8b1c4419d429589cfc9ea0dff41a3b7c20190adee8febca47b6264e5bd8e8d4aa8552850a",
Mac => "6eb55c6365a8957cf579ca2f");
Test_HMAC
(Key => "81b7e464796841368cda2cf7048055643e8d38dea614abb3e36db39f4eda9c93a96a49b40e1ec8a7254b290c9a3f9148ce278a88cd319d0381ed237f25f95816",
Msg => "422e4cbdbcb7128f1966ef7432049d13a407cb27c8b4b7cbe686fff4a5d3b53fc6adb1ed12072b2b91188997fd05750176ba336e771831630956e06037a1c3aac106c64d1592d0627ab89b8e8ff2c4cbf4ab1e6b475d4c5a52f78fa38281dc359b0232e8aba22abb3d0cd05fce16b1fa85a435251ec92f362830b3c570bb2869",
Mac => "9609b20113e61797397a428f");
Test_HMAC
(Key => "8eccd467d875839cb4b0a0170a976f6056876859fb242f69d99dc6da2132028068f33b9cfbca48ff73bbaa73896b08562bdfdc88cf876b88077bfad955043fab",
Msg => "a67b1dc3633d30c4ef2bf3185fd44865d2af5e72015cdf8c182e6b28c5e746c98ec24d2467b72f8284fad9676cc532714f570982993d4b22c7d07a1e79ff5a75c94eee75dc1fa222b630cad753664b30f3c99826b5cfe17c67dd875b9d0bd2390028e6ffe9fef36a2fd6adb13d3ffc69670cf4a67e9c0764a15e7925579315db",
Mac => "f35a4323cab7ade7168c8b9f7276744e");
Test_HMAC
(Key => "b488332a10f2bc7d9042a1933da85dcc892504be3ea8d57bb5780f1648d1076309d276ffb5971790e3a2724e817ff2c381a73eced0a6c6ee88799cbd663a86bb",
Msg => "a9174a67603a4d5fbaa8cfb562f07393abadbc80d1b57231829347a29c38ba6639ed3c3ce98c91e23ef07a2e8eaa915af4f574a098ed250630fbb17cc7941024bd234df11043e773d93276f11a8291b9b612f0b4c13dce3dfa5191339643ad4d40a1c6ae5dc715ba94560c278ee23d57faeb78e5d50f337ee87d2ff292ad598a",
Mac => "59a116a249eacaffc54498957787f8f4");
Test_HMAC
(Key => "9dcb2ac482979d2b4f69b86154a66286c10a73dd5e8f0ecf7d9031332e2e8accb1f38d1331b5c337afbd65633c29293f6b8f5cb906e33105009b59e2ab10d320",
Msg => "5c97f13331db20f6351f9aef4e0b7c9c92a2cabf476903a80ecbf8b65bbcdd1c289da1e1eb5f7b2bc5ecc6bcfcc20ebdabe16bbab8e80def077b19c2ede7b490e8095cac8d6c7fa5c1b146c82c34b2e6ebeceb588593d53f2107e310f6f1305102a4cc9dff4853ee9337c51cc7a791a0ba8af39e97b28023c43900ab5c207be6",
Mac => "86d4b3a747285f26530e364b659a3c15");
Test_HMAC
(Key => "5f360b2be1b1d9473ec74ffe0bca455c7150cfb2d33e0645b1250c43cdd24afb8c20fc4c9e11f05ee11d8a9183ca0cb3687d1476cb90672127a4ec855839fc33",
Msg => "179645a0885bf0f1deb9f6c105bdbf2bbdf728e6ed81786c3a3e955bd960781ba12ddec1650240338098068db186f8c42a07f58ae3fee7713437f652a3f0fcf0fb9839d99ed6498d1bcd52e2039f82a7f92fb988092c82313b4b48b767d3c7334a5fc0b0dadff147d7e14488a30f471c53f8dca9061332f67500f350cc12bf2c",
Mac => "924243335c2eebd348ea23efcb442cc3");
Test_HMAC
(Key => "c05d6b83a27ef65cef5571222d24adbcc18958640548bc959a4baa2b00e7b0c66361926fb8b1f87e098565ba0d8968c3fce616ada108b7eeb1a5c07a5bfb022c",
Msg => "a782b87323a0ec6abd8f27e50e976184847e166a04a001f1d442289cb923184e5c5472b9f24aa6181c32ff210c84e035eadb4ddb7604ac6cee54cd10323f29e82627678d587225bae3dff445931aa454498ec3cda17a600ed34714dfd71944a4cda4a0d89b41efb6d8400f39e9803747693e8029cf2ba43f4ac105f2f0d6f1e9",
Mac => "c05fea12c1594631fa9a5b7e35cc74e0");
Test_HMAC
(Key => "2af1053d2cca20406b7814ab9013677feeaeb773ade5fb2d27b50bb892916333e0b123c6e3ae5bdbb54c868a579654549831ad1538eaf2344e91861de70a8df1",
Msg => "f7a519f3b5ae6fd988eae92a9bdfbecf81e7b405d73ee50e2559c32606795ab98981d5d3d60444d815a39c758b96ffd606883e1a7ca89d04effdd6f393f960143352f0d6d10d419e8ddc11bdc8a96c9f88732c441e59c1f407f42e2f11ea54e4bec073e3edf0ee93b73c4ee898418a90cf4f866d0778d94836e7d3c4c674bf90",
Mac => "34515b41c4af316223ae43e6869a38c1");
Test_HMAC
(Key => "9c9445d7df7eab77c9a5c7afbd2f38707d26efb89d1d415938173afce1a43565dc4da9f98f32467d33f24120cfcbecbc67038959708660f388d00f7d640d2225",
Msg => "2fb3b04e1f5e7fade5abfb52efe19edd2ebc80181a657b85f7a18d3957497fede1fac453500da4a6bfca9a8523d8fa0119f8d6f5e2f42396abd1184a124cd7bee7854f322ff561186fa541de27a220089cac0881da2e0733fa738fd5a1161d04c9ba1996c4fcfd2b7da6ba04022558193f3edc650cfc6e856bedbb810a8e99ea",
Mac => "8bbe93e9a0e39128595251c7a0504f10");
Test_HMAC
(Key => "64169fd4b7ba1e5a62412b8719a2b622d5031aa777cee7f5ae06e4471adc5465b27d791c632f57ebf99cbaff436d7a62721bfe6fc302ff895eb88e0c7d9c5984",
Msg => "7f7577736313f725fb872d0703a3759c422a55db25e34ae0a7ebc8e2734f7c654ddad4b1ae2cc182ae0cbc01270007f3181a35314714ec582ba0eac108f946b45cbef8d87a009cee759a73bf3fc0ab5312dbe0640f94e212262fb9d9351be6bf74c7ecd210b70fd116d65c2a930ee924fa165e5ec58bb4785f433d1042dee5f0",
Mac => "b3d266e44d21fea613913002229b7994");
Test_HMAC
(Key => "c49505be68196bf7b874b25353de09d677a847856a1477d5186a9464fd4891e7453a9c63328aa4a1bf5a19dc83eff3bcd750f5883b103397f668d207fd890fb2",
Msg => "cad04d5a15ec41e28c9944fd13bafcc52f54aa86c5420d17252a846b46af726353e8e6e667117c3496817e772cdc4f9c398a0a604d6866ae80bddd28b56f0d0420775e190692e539c43988c213d463708a2b6b75651d51cc8494aacab7b84cf63863fb1a79d5459a20aaaa05500900ea2b1d16ed95c998193a973278d2f2f8e1",
Mac => "45d9e3d8155dd1d7aac1faa36827402d");
Test_HMAC
(Key => "5a905c63f9660429ac7b7be84766c71ba5a443458fea9fe3e0ba289fe73549c60d3052fcb889792f6fbb1fc93eb1542a5cd89c550b78f3e9c04410548430e743",
Msg => "55ceb7328ec045967807a80790b5f55b2a66aa1f6d2edc2c9fd0927ba3316c3bbf0c8820a3e6a5fda7458995551da1af278be86891c509cd4252c8a9a8769e9cb2f1a36dd9e9b2a16124c74ddc7aab28f18ad4e45bad86bf34283f5574a652b8b5e5d2c239afb1aa2d0c29d62fb65bf00fcd373cd2cc9b29fdbcbf2610a7d0b6",
Mac => "f5d0c72599bd5f8323a599ca7d2d54f1");
Test_HMAC
(Key => "c9b74b2ba807d65ae62728882a32c4c0a0b2d9019fb50ced8a2477c5f451f29507cf91ac26866e4fd106a8afc91cab1875a3b26a859d8bcdd5839aa194d921b4",
Msg => "de66e519983ba074220640d09848cf606f6f959c4e588de61f11156e67e3e953d290520b13d99b04ea43c58b861b7cee0eb849dd7b000816a82e9d42acd2e3196718e5cd5b4e51a6bda129e9cc27bcff6223d5d3c984327ccfae371c1d7de408c487052919a2a8a2c3a7d4b2127578dc9338a246e1ebf160bd1b4dc561eed566",
Mac => "2c77d71152e343414dab1c83fc5f6429");
Test_HMAC
(Key => "3af349f3647218e4be26fa863ac71381b64fccaa7e66761e121e308e2ae00ad9f8a76ae0ad6baf963ee115566861d87af2279d2932bf0d70d2bbc394d4a768a7",
Msg => "aca7f7f326453435b2ec9e17f0c8823f3cdab1cb8d4783429df61cca4b59ee9c3d8b7fb6c99c6dcf1629af907e2f1d01372033423337127b4409c715845ed02bf43edc3b634fd322925e1647953b08167ccacdb0335752e0a72a8d522a5b06ff19e896ecbc056e146db35ca2fd944a6453fe087d564e4b5a0e7ff5e705fb9602",
Mac => "ddc60e14dc64399f48c2629cd9ef9551");
Test_HMAC
(Key => "23d992873b968a5106f95b3693e230420ae819d993a80ba8735d29db78b2419098d49a8cd5caed2d6409b1a00d439b54d58166afdb71d0ff8001e5b3ca2c7fcb",
Msg => "13475d77c30210f6beedff5c38b926803e950da0a54f55a540bc90a8565b56b6523595d0bd0728366aa3abe6f0948e5f5d0169aa29d48f9b691ae65545adf60cac113f0f479dd005abdb1576d231f18eccc00c1eb28c6fe4dcdd4e0c53e624f689a5063a480a30eae95be517c6d77696f29aa00327c01a07ffcd6fd7674d0afd",
Mac => "2c47a1dfc80df9195ccac2b006904088");
Test_HMAC
(Key => "2e4a7b49eb4ff970dc932c156e9a1a7be9616217009c6ff2a742f14f244b8e8e69b9d450a1d573dc09bba9c10118fdbd633330de132a71e7d77ed0f569d2f562",
Msg => "3c5a85e4d4ccc1b8ff94c7c7af3031136b58e1c7452994790c83baacc2b086995046412f794ee3580da5e47e5fa3504ef8fb1abb8de2b2462f74d97dc253b5c2b091204edfd04676e0a76f2c694819c805604a090a3f2456cb39ba4a104c2270c303cc4bec99119ae0620fd9b467b50bf8501ab7a2881331499b041a94e3f62a",
Mac => "f253721edace08cccce596b231bdef4b");
Test_HMAC
(Key => "bbfc60ad853142be6f602fd1eef95f882f478915aaad0ea0fa2f75e8ec33172ed6891b4f2aaaa5304a3d4b5e9ee0c9f6e524f5c3c8d9f5a7b58daf3cea4f81ba",
Msg => "0e16a3bf115933403b178eb58a604ee203393afc54a61060b80882851ba97e2f7f96b2e69ead50a7d0f60ed930377282fac24cbb389284629e96150eb24d5a48309389f8acbb7d1d79ddb8c1ca71a82d171d2959c2cc4ca6fb0056cfe1690c1de9b62edb84ab420afc7492569f39784820f2d9bc3a7df09696ed4db1ef261d18",
Mac => "32e3a37e8ca379cd7b604840059480d6");
Test_HMAC
(Key => "b9575f4d5ecc0f4f62e4a0556bb89464ba97d4570e55acd4c5e5177e452a3d6c9a0b3adb60c6211fe48640e08637a6826299e3e52f930f4f66cb0ea6a77311e3",
Msg => "8c8387f4ae2ca1a6dd13d29e93580b1cdf6268da66cf589ca8b1ff0884f7d8b8fe299f8e41596e47e0562653612210e4fca6c446a0a54a6e37ef80d52bd7bb8729e6b17625d197159ea98622235223c316367fd5b03a3c8145f2f210c910d00094238757627e63379e75bbb3e0d08ce1b47961309d7876fc59211c60678c5f4c",
Mac => "15af23331648171499b58042dbe7b2d5df72d152");
Test_HMAC
(Key => "d291adbf05b06596c2f36f41a8cd8070370c42f687b8a6cc3a3e7b59afcd40f07801369b0fbfba17c460d21ffa1106ee937971ffa99d17177f017985b71067a8",
Msg => "50bcdf31389eadac5bb8197ee949f2864ede284c07d039a0b40eed7e6f1c43355d5cabc8828d7595da918a34a5735aa202a8159fbf951e547052bd39beae14360273540913eb30e75ba29266316e8d9a63ad947e11cee996c21357d3b19424b7688842b990c0c5eb08749ada344275b698740bb3a58282aed2d72514efd85d00",
Mac => "5f7a57d42e3ebbcb85b08565304dab941d6234f3");
Test_HMAC
(Key => "902c2af0d13fb353f14a93eaba7e8a8f768eccacb264ef954114071b840e105ee9978ce2b27a6ce5f8fa34f0ef0c5bad6bc3f0f8a30c8438359b43f06b256491",
Msg => "65bf93633e3a4cf878ddb21a5aa2672fbec644fc6bcc4ec59ec6e5b5ead03f8042dd154655b69cbb1a3fb785abfc6be556d5939af116d5026fbad483b1e9a7299ebf8b90764fd40563e82ae85297f15400ec09035801b86bfcb9e42d224686b0a1ee5b094b0edd1f7e5f710cf678e2c6e5940efe4696df486e4a7d7de4eec25d",
Mac => "5921643e2713d10428843447df91f482f3922aeb");
Test_HMAC
(Key => "b9f4ccde4dbc27f1e6bb0fc9e854aa084249029cf32eaadacd1ea5d178ac83d8bb1ccd6af7d4a334f40da46be0ce0e63951b265e1b6adba26e56a6ce8197b46d",
Msg => "cf7210d4240cbba95a8635c1c37ef8bc4bbef2dbfdb32e16c922b0688416a16e301dac307eb3a73f91ff760005bd2c47307c7427a7093009042b5ffce790444c3b08c556bbf1119ab4f285120cedd1c3832e569139e9d35771e34137946ffb2f799c22ede3ad40e54bc92ba0e0f42d57cd3e61c0ba3a602895b21dc292990e3f",
Mac => "3f74a3b2a77c173b8b6e20c2ededffd43103e4f6");
Test_HMAC
(Key => "a1aa034687ddffdd659326c6d11f58f1451f8524c4996da8c04aaa433c3af1662e9495a627b54c70358336f909001b75551ff58978d6ae025d742ac7a035880c",
Msg => "5d118ebeeb1a9774901045f4af19392c0a3f641b351618934b9e653ddf6aa2dd35024ad7b2870af39295175dd96dc5f08c5456b320360fa4338f92b57a8c6715fb6ddcb07c2d0ff93b6549e7df6e8d3dafc5710f02b42d82f62ff2d365fd7d9b1518eb512f55cf10f347829aa961ba9edb5c5e36c1d899b4fd462e9e89050bf7",
Mac => "3b0ce0fd9eed9287527edb23c0ceaaee4026b570");
Test_HMAC
(Key => "8fc7e719ff492846f151bdc5f6f6ed15a6452442ef42e806ac2a0f3479fb2f56c63657952be4fcdafbd736331c322d78162ccd2e6910c2ab2488a07bb31c6103",
Msg => "155f60ad0a95bddede2a10f0c8447acd23a541f37b768062e8431db99a48fc9cb6eb72586189fdca1975327d4c3ef6122331f1e59f1f40ede8616ae4e21896a800b9fbe25dca97e509e624d9a007481822050cd8fe598f0b7027fc830d7cb95a9dd4e19128dff5f75484ce4cee27d6a7c6277815c0abd583289fb9de46f9cd78",
Mac => "c6c30cc650546dee441ad83d2c01b0bb50319da0");
Test_HMAC
(Key => "cd7fd6beaf8ecdada5a4dfb800617e9b5b83bf23215a0340507cd65c7cb917eb16515a43ee658aaef7acd3be4a67bee16e979e35d76d2c9eac026e15ce48dd43",
Msg => "a5bddb41035156670818c030d2893f7eca39a429795de6a19e8aced57dc0f35379a7e9b0e518b62a18df858cbfc09f5278b8960e9c84c30a5b68f32f0f295e25ca5bd9bc31e34c8b8eb465d720dc8eb6b6c41d737cb3cb35149568dce8fbcd2cbf62112d8fb800d1921cc8d89ce6f6f1ace7a122c1f2e569ef9a94a4b13e27ae",
Mac => "3e87e626a2014346f4d3b545f0c47043a657c82f");
Test_HMAC
(Key => "5657c22933cb8f8ee35b3ab821ab6b01ef8554252b1ee4a3639b3d66ead369a52b5748083eb0cd0cb9e76aa8c94bc931816ebd7b717178417b81fec6e2a2dabd",
Msg => "3280224a9c75f01da9fd8bef8b925a1b7e901604ac8cd0064ee836ad15a41225c87713f22e1fd0e12ef50a3f35c43148d8db2ae2bb61508cb1e9b9912446ba81b8a1ade12bc9f12280c933d05cc0ec0cb0ed2b3c980a950183dbaa6a95064a67492577805b1a5cc6e5a28e0ac82e934e4deea1790c2ea74f0de5929f2e8bc9be",
Mac => "46251e1b289f217c0b1f0f7dfd988aa62425efc6");
Test_HMAC
(Key => "589e1c67214c34f4380e1bfa3629ce139b297b3fb8318bd9cc90e0ca6d945bfc29a3a2126e872056a70a4df2a8c32f644c2f212c5c04d3c7b3c192e1a08ac9c7",
Msg => "012870169ad72eb37a51b676597a2a8c0104464fb33fe6bdc632c82891ea922e8b1217ecb1c4d66f289fc36b241a4b30081792d9cfbcffc7aa7efa4eea7ef4ad2119a84484baa10194f3fd1cfecd7004bf5c8c998b963f9b70659d62b7fadfd00b65ac85dd6298510676ebefae3ba3f06df8bcf5b175ae21600e38cebe055c7f",
Mac => "79cd6dd6ad3d3aaf11617b0a9303ed3645ab71b2");
Test_HMAC
(Key => "95ece1c8ae5e94d16ec9983b1089a37395ad5b1d660916c13c87e4c13dbecf8f68c6611c324a679471def5487a93aaec86c935025b4518962884ac2cb04e66f7",
Msg => "4432f43f1b00d306dfab2c2a2409d049e1c30e897450d42ce62418657124766a3f5e1bcb75f7e1027064bb4b4edd54b6b10ff37abf12a28c6e9a8f70fe71b250c725b04b34fe000f10324caa005c1a9d512bab32f4572310c7daeb0d175c544362ef7d6661fc7655457da5ee426d69274a7dfe5a1b09a1e17b4af4e3c2cda36d",
Mac => "cdae582296f2c18e05c47a2c3885b24e4976fd00");
Test_HMAC
(Key => "91650ed89aaa63a8fd43907daaf3985c6404ee02c23b92777a0b7de6de093faca7a0e7aff20623f1886ea8656280d4016d0692148ae87fdad95a4b4d3754613f",
Msg => "7ac33ace5b4a6a3292b72d0dd4bdf853509d9bdf87a5bc155ef684c6718b9853ab774b16146e12fde9873878f240d29610c3f66b166828b4d97a15be8b3e848344318916e292fb421320296eb025c9c44db331930e2ecaf1bc0ac1a417d6ff436e7a5c986ebd0f49380a69b7b673c4272ef6b62017ff8a132c2ff042c05cf3da",
Mac => "d985cf29d85533af9b58113d7153732678830390");
Test_HMAC
(Key => "caa2f077c0bde9e98c2f54a98caba4a9f95de80e742bfe92e23b03267ab50ddb1cca1d02e5f54f92008054cbbf4b2219eac9ea3b574b4ba4ba81c522bf3d70bd",
Msg => "f4d7a8f73898fe68c398588dfe2e019231131e194517908cce121bb2491ec781a1038634f9f3189da5782cbb79aac88f47a5ea2ca33a700ee9e535ac82ff7d5062359327d539b0947cb71fca928b9f9a74310989617d32267e8c139b1dfa27813e5515f956d28ff8503f7ae2d2394f5bc19fc15a0747a07e94effda6a2768fbc",
Mac => "790315ef7d9441b0ea3382471dd217dde2143788");
Test_HMAC
(Key => "ac049e1a39d6039ce480416f058e06995b54a23c4d26696b76cc583c6130fc1f915a906ec59e66457a148893b0499e71f13412b3906c73bd2f98179983260546",
Msg => "504ccaaaf09c8e8a0c567ab7f1a1eca78ebfedced9e3b7126e43757e796f493ad7e193bb78d57137085b825cceaaf041d4b7ad9d4806fc3722c0349d0707c0196d866be1014cdb8e45da5acf7e7add5fcdd33e349cbbcdfa3b4c07bfcb3aa5f05c63d98452a8d4770dfc8b7ac9babbe9c23c2afd9ca93143030e774c8fb1ffa6",
Mac => "2258ded89a07b87e3397aa8a033f151e3c1a23a3");
Test_HMAC
(Key => "82c16c68eca59a92986938366de60c16f60c98bd66d43e10d975a826dcdb67593055da9dcb8e521120be73d4a021de1a81a90d7fbef07d9b5f7013d6faf6b97d",
Msg => "7416ef51d9ee9710b83b2f0bba9345aa7cb4f4ab8f7308bac4f66242a6239f824758f4e3405d5c89f397f628137ea819675109adca087ec1778aa3928320ecd3ab298cfd501095e7c07c6196b7c6325626b0150932540cc0805a6b88b06e838727f17e4712ef8a51a7523afeae55288a413be06ad040f9df68d085cc34f7acc5",
Mac => "43673696e3003a2a06ab0f4bf07870fca1b51415");
Test_HMAC
(Key => "e262a7385aa3282c5d4298376acd1b7b6c978b029a0c75ac9c41656cefd064b48ae2be2ec28d09ad6b616263403dfa548567d20aeadcc28bb3e5c08816eb5fd7",
Msg => "0c6908b5053e858bd901c18bfe5f85e73328301465a5b6c2d42de91172f3f7028b22342bab2c1ab0bd5e8e6e70b96579dffd27c970061330fc5b638f3105d14a359d59f98ca941613c2957a22f6c7ab1d8285b091aca859e650b9b1322c4e12c5103fe86705e01869f87a18f0321c97868d2543d2a9a15f455631a030bd93191",
Mac => "449121a13d619ca26cfd574204fc9643df12cc8b");
Test_HMAC
(Key => "150d3aa309a3669af99a70f2cec52d3da16b1c137ff7466269f268059f2f54981f45958b68425276839e75ac446e0b13cedaee3355d1a28c28fc7e2deef00c822fa7b26e1731",
Msg => "07355ac818ce6b46d34163aeec45ab172d4b850b0dbb42e68381b67f1cc8e90a4c050f3d0138bab27e6f4f8d678bb65e184656493b7541649a8bab60315fa16c882ff85640e483f3eb9789c2215575ccd01fd0ced3356d9ac695e3bb19be405864b9fc5bfa5a2cd1c1c4f894412b4f28fadedae4fb842e52b0a545d8fc6d2f97",
Mac => "c73d3cf2bd6c5c9dcb91");
Test_HMAC
(Key => "c9c8b891b82567757dbf1a15b317628d98c486dbbe5ed4e6049a35bfc5b604264f182050973240e72ba8875367b55938eccb6c3f4e79221a0d9216c2c78cf403ab268f3b314d",
Msg => "17925952af30959b1a5a136ff11b3de10db6e4cee19f31080dcbdeb43129a5f1ff71f9bb951cf50e09b3924e454d1ce61554e7307e873e9552459cf501081f48b23039869202a9c56cf0a9a17b1a69e17c16bd5806ec12081e65a78e0786faba5757807d50e998086c96c2323a8b0c1a6984ce0e22d797ac9cb46747eaab1f8d",
Mac => "3b89bc8d9f3fbedb86a8");
Test_HMAC
(Key => "f3ca2dbf8a94697d351f5f18320749aeae13e6d57e15cd980f1201bda0a3c54aae9bb247b0ea06c405c23f1e2bf8e97f31acb4a46f2cc9e374165e6c40bd88cfb4ce51be4634",
Msg => "00bd47d752532988758406e3cf718baf9bb9ed1be09a80fe9f59866351e4444591b75c9715fc5688e2f68004c09ff87eec9007ed0e22b0146ad389075aebcaebfc5fa4fd28f5d4d6a5a977ed9c4f205d4c7b28e8009e453c3e715e7642979ee5ab7ec8107386cafa246594a449ca2ad42340f8159e5567ff83fcadb8ef31e9bb",
Mac => "d6d0b96cfd9fcbacd20a");
Test_HMAC
(Key => "e552f4fff6f6bbd14ec50aee19491452ac917aa36a835a1fe87488d34ff61b0d02f12c1581f6da188ecf91658e5b8ddc319999a255021d1a281c57118d4ce939c2eb94d93f9d",
Msg => "ca7e275113faea9fa709a4ff193bb035ae1985a5c9c3d316a6d8cfb74b96ca5fbc4309196fcbd1e0ffaac1a7240c659de33307ae021ac84dbf58f071c24683dd4f6415a5c0f9deee33fa11f5802d6a536e8e067f26f27894e7ea1954fcea9f6debabf2fcf0cd3b50a9c13df013e6e8dfb5f22b1e1b940b738658f269e2ca4998",
Mac => "4fa9b60a5cde90c2c0a5");
Test_HMAC
(Key => "9d4219ed569eb35a9f5513eb1b938842371a995856da49b82bc299eb65d74f339283f67c3d2f268f5a140589e54d0e8bc53111b4f6e17b4ce71dd842215c96d92a1b0c9ea975",
Msg => "f211cbcbf3f7a9c489ebe8f76922fad5cd3d0fa66b6e9fd0a4dd4256ff4ac89fd5f386794eb8ee5d8c7d63f525d04bdbd7cb65a4773c5c1d2b049dd4d9bd66dadfa020c805a5ef00afeb8735585b412e3b896ec653daeb3886ecf6991e323fa678df42c00006d5355dfffdc1e80c0655633cd316e89072a91f5df3aeb4f17b8a",
Mac => "b621d1fa15d9345096b2");
Test_HMAC
(Key => "4e1acb25c41216f48b66627320abc5f5e0dd1a7427f548cbbab9c82562d861b6da3636a9eb850359d615a4c3f2edd73c961a425f3947b84ad88eb80a998e3653adbe9e747a00",
Msg => "dc59a9d3b6d846f0c7b2ce52eba31d3bf192915e4c7260e70b662fbc0c28e0026cababe441ff708f8c764b8169056a0489ec1bf5e29929caa5ca69d471f390c0c6df4764bc9982b9f58d0d23d0eb67f9df4cd4419c98aebb5727fc22732646aed23da7dd8e6e2373ea413bbf881ebf21dcfae4c9e03696c109c30f2e7a8ba9d3",
Mac => "5686971a145ca79e0b63");
Test_HMAC
(Key => "4f047d37c653ac9434b9ac3e79628864179aee4f448ee0443d57adacdc3420726d17f7adbe64967f75f5fd3ca661f8cfa57e955a1924db1d5234b999ddd93df5550e07a07b61",
Msg => "62e2a73bc77ac85b1aa812463dce29a097cf3c6973d98b76a28226226817f74196300255f388ec05e00cbaca3c32dcec868c6aad419dadc39debe10c5355397ed1a7245d976ccfb0e104ebf586f6b014208722926d8b9307f57b69d2edc8210b5c6f94b97cce794563b52c2fe2c1ae00aee5ec80bd4a4428f35945dafe16b6d0",
Mac => "8ca1bbe34502616b975d");
Test_HMAC
(Key => "22329812517b7a7a31d3cbbe04c3004e07e65a36a34abca4e71abaa4367af22f3db39f6428906b1516088585ca1cf470a3032b4cce85ddcfbaa512b1cc827bb3557f02e0c1a2",
Msg => "34576ce2cbe2173bf40de23050851aed2fe7341f5678b34f00154d6e226d49b1f36d2b9facfc93688ce963782021204cc1269b845ebcd03a7ce60e937a1058931a8e0c363d45c2bceea87744a2e7eb9cbe6247585a640321450e0750499110bcb0a156cf06266ce0213467bc5f3d42862f8581c2d3d715ac647780ce165739d1",
Mac => "970c9b7981a9b706806d");
Test_HMAC
(Key => "09e5e326d7c2b5b17381094933ea11a5030c36d9b8390d7ba15187045f44687af7d2fa4c2695027ef542f3058c2c62754b09bad917f931e2f2c4fa45cf63bc5ea4c34419c0c5",
Msg => "c8ce9813cc18ff5ac309ea9e2a79e5091387a258d2814ae1fa0511d488660dc15d51485af2b1147b47cf9e671cbec65564f62e2bf73f918987d15709d5b966c5247e3a1aee0538acd7b23faadfd08154db3391ba261bbcc6945c9d7ca7bcec81069d97da2adc14f75bf8f5f0db77bd0e6185f28dc8df73a009ef0cb6673848fc",
Mac => "fb8e0cd4a7656f1aa4da");
Test_HMAC
(Key => "25ff10f4312ecc23b4af653fef943c7272f9847031d1f959dae5cfe16619e9aeeff14c02c155d399b39124d5b8a0e218b1aa257185cb277c74164083a8da14e90d230bc96384",
Msg => "c4c45cc235592317741f8ee232cffc52e9cdd87d6f66c9bacc56284b498eb740c93490975cea5ba81253c4c10dd32d0dda979fba02d6075adb569f8aa431aad2d1d964cda45a398afddf35317378bceaa31a7bfac8e89e2f8db0437f1fb92fec85bcc0ab34302384decac77c8c4512b2ec5f5287ec24f601876efe72dfadb054",
Mac => "dc82b94bb291d36a94a6");
Test_HMAC
(Key => "81168b80d79f8ddecbd9e411cc41a22eb02b63b304be3bb5a140ed3b80945ee5d00049d1453433beb288a272da868a5a84a80871cd625262c263eff12e192397b173ae6c12ea",
Msg => "2c869831696381346890bd7be46d798e15dd5c8879fa6b6dd4072abe76a5044bbc4aed49d9f046a4d60a0197d8bc0579a24bd4da5ad36bce90386a897c5e742c879dd9df0e6f7220626ccd5a13798aba6e3c053e44d3360fedc5d5108d38c1b79665a21c8e4acd4f139e69ef1c0ad0f8819638ddbe6293d7f496b47c309bb293",
Mac => "e61320faa6b1a7b6796d");
Test_HMAC
(Key => "c6c9fd575759c0f6010ecb932fb29559b5dc24c36e09d35423ee5289af0dee0c6187132aa2310f87d8e918108a2b9132c4df8949bd75855cb7347f0727cf2eb8163a881fc7bb",
Msg => "008cfd9f494b35d937ef3e1d8dbf95015f1284bdd206ff822375cd0deb25e87ba13f255f60031712eab9314aeeeb2cee86d1a829040d16beee99d59b47fd9bb010c517010f32d5facf306103e888af558057ba0c12bf6c7d6fdcbec902f920b357041baedf40353aed3a157105fee7dd568a028d8583c868ac27cec1a3833e2b",
Mac => "490d70fc32e3c5f6c17b");
Test_HMAC
(Key => "560d76c1bdde2e56ff54567df6713e4e243c1a42f7fe62fd4bb1786a31b68c0defc6bd95482b80b1fd30462593d6591d57c807c1a0910309540d08d3ad1dbf333d9fe30a309e",
Msg => "07128bc2e31dcb22aa5b9f3ed1b852041d36f022168f59cab91c95b26df56760385a25a43351c6663b913da1ea9f06b0c537fec9b7ed77c7bf148c2ce5dfb26672c69051602b11fe103eb7b33b1e32322b41313e2b15785c3ce732d7090589061d1f75d154f3d1728f2ab479ac7cfe13b61b318b584f8311985d31bbc2ae15c9",
Mac => "e271addca04e8f983680");
Test_HMAC
(Key => "a193b558891e947e0ee76f912ad51c607cdb59ffe033052143e790c9b696b022c07555aaf994e096d4638f73bd743c096482488458b3d2d6d71a2c57e5808fae9b640df5c240",
Msg => "58dbed97e835ff418e9b06c0943d43e2e3727edf23504b8b24798cd07d37375c73cc59971c035bd8c40b84d88f85c06760dca05dfad5a1d46567b19494ccefcf44d8b30f278ace6c42e1130293f016a2f83533c84c27d2cdd30eea5ed817c42d94a802e652f1df65d1c4b826eaa6ccfd72264007626d66e035173e1692413dde",
Mac => "e2280710a35f000d2ca5");
Test_HMAC
(Key => "dc986d3d92368e2a19f49b6e537aaf845acbce31716c79c43ac8809d29d318ec38ee2dbbdc0bfa2f3811d60a91825175035b7ffd723b94dbc3c8b1784b4efe3087aaf9560e67",
Msg => "10ae29e78abbd1c4ba1a24bc417b6122f5e9b87628fdb0382e51c6fa193856b9c7acbf6d1f88c3df97f82cbbf92db5e6685527119ecac38f7789e063b3e7d59ef77f19e8166fa95c8fc4aa9957325015d809feb53964af9be0a39440351cfec2a90e7f7ff8d64ce2aa66e67de0f2fa584dec858983333b0570882ab628419bce",
Mac => "2a7d988c3a8ed31c16e5");
Test_HMAC
(Key => "086d40b5bbe75dfa5905545f83bcd52d712f092fce2c0f5cc9faacb569523e7120abf258a4bb376dfa3a73cfd3e9f4e11cd329a9d1d212761256f5c678625366a9d71adb2af5",
Msg => "33fcb8eff417866344632d0f9e8198c4dbee1c139edafebdef37356b2610729f0b1c5eeb3b932261ce402d4a36d8311b6a8a6fa445d7358b28a4a5f9e78db793e37d82ac737bb7b889c76e04922625a59d7a05afc09568a7b74f993acfd6da2e0346ac9a647a4a52be2177a67814794cbce7669ad8bd9ef8e4619996a593e35a",
Mac => "14ad915c8190567f889160f9");
Test_HMAC
(Key => "5744618fe8e5c1e4cad95cf43505cc032df1cfe50434ed13202d5bfefef420a377907660426b7306bb03e82fe2e18ad2a7cf4f1465461b61ac269cbc43a972536d9a94576cc2",
Msg => "90a02bc5f26d2ccc030b1503c6c712b8e6ef4b41ec33b887b45137c122f2dc8211ce88f68c17bd684115b008320ea0ecae68675480114f32661f26eac5b495569a25ad0db45bc3e521797eb6e6be2e61f3ae5f11556cafc1ae6bdcffe24521ef14ebc392d1ffe7488a7ea69448a263209b075c01d30c803b737c8188e36e2955",
Mac => "43bf1001ad1f5c5adf0f59c2");
Test_HMAC
(Key => "6154b5d6d233c4e630b4b2094155954ee63f80cbf4ccfa3d4047afeef9f366dc3b4e3317e096ee6b9a8de33f3f7acbbd6370fc332cd2dcb962179b15c6cb22dba5d646d9ac01",
Msg => "ae3897b902c499faa6e54fcf8864ae65eff6e24903b5ef7e8fd198cd0683805cc4438f82973b97da7efb3796b06e0016e00dd7bac0529af4c47007a12841d99934803384bf3842f0f27c1fa14e59f228f0095db814691834d9aed88c4453764a86554d6882a3e4658ad0cd98690cccc3a7523ceb08e3af6756f2d53860a19f98",
Mac => "72ad19cc01c8933dc6a37cc5");
Test_HMAC
(Key => "1e8602e3f3a12b3f9ab21c3a7add7fa9a5381eff4f74f51385c08c231cea8418e7c76f0b2dd6e5095920d413f4621769d16e4a0987cfdd7224ac68ad20ef3e8e90a545389ca8",
Msg => "7ac33ace5b4a6a3292b72d0dd4bdf853509d9bdf87a5bc155ef684c6718b9853ab774b16146e12fde9873878f240d29610c3f66b166828b4d97a15be8b3e848344318916e292fb421320296eb025c9c44db331930e2ecaf1bc0ac1a417d6ff436e7a5c986ebd0f49380a69b7b673c4272ef6b62017ff8a132c2ff042c05cf3da",
Mac => "639410b3e778003a9d66c317");
Test_HMAC
(Key => "caa2f077c0bde9e98c2f54a98caba4a9f95de80e742bfe92e23b03267ab50ddb1cca1d02e5f54f92008054cbbf4b2219eac9ea3b574b4ba4ba81c522bf3d70bd567beee24e9f",
Msg => "820037b251f283a52f6c19177dda02fe2416060fd593158e96dbe6647a3bde72afbc3325be56514a0f617d24ac4cb8bc4691e6797de82ff05cbca6fd23db28134a7187d0c237e8d57ee86ad432f509ea5b79c1307f6ff68db62313ce69e672f85a067cdce4fd11ed85e92a4f993cbc3068b5e05b638f320aabf876fcd3c482c8",
Mac => "ac6f7955adb9610c7a30a046");
Test_HMAC
(Key => "12145ff87225dabfb7c8dc370ec61b16e6219c14a4fb10f298b464bb3053944a6c27c00c92ae810723b57d1b0dc1398822ae2fb1c9962120f4f4acc952092093c57f8f14164d",
Msg => "097abbed69ebf2e5e87e4ed54fe38d10f32f4073962ed25088fac6ab11cc40a91413c745ecc349459af05f6c229bd3f232cc603105e1b8a18725cc06baa447e8583e5b44bafbc181f89efba5527dddc9ce8f4bcb23c74442d6a020b7a3fa15121e2400529a3a62814ab1a9e7a630b27f10a18ba7b8897d1bbd944a249575b30d",
Mac => "abee151bbe2d515b07c63a23");
Test_HMAC
(Key => "495539a68141fc099393ad40555a70ebb45e3d37f9573fb14b5c7a5c759eb100ea5687c606fce40297ba9a509c2049e24d1980185b1e245178a916021aed10057cc4d033e6e9",
Msg => "3f61d4e1b7b2014510544a12ed367d378f6204bcebc8a4a8003d6b2367c3e3d82c0b8c9ddc388956dfe69a16086b4a886b5c6a8e6f54bd2724f0f596d61edec1e298dad7c8ab8d35823dd98b140e0d3a653e59014d1086d9efede31d49ac83ee0910a5d6a29274aba061f1b738a82d15240fbb5eae8465860a3b1e00e8f33829",
Mac => "21b96662150e4f742128dfa3");
Test_HMAC
(Key => "387ca57d6cea7ece2adf507ee497bbc1cd043b32e3c04d6b2d45d4d34160bab80ae3da9ec89b1ed65881e452b634a7b7c0a7dbb43d1718931d417b0d02d14a63001dd6aaa113",
Msg => "0f31992894b41db6dd3e8c807caca260b2ca46b5320e6bb5288734057a105b874ec9d373ccc8aca9250b3845d4b16c74246a8887f22dfb46b4298087bafd8effb42bef5775caae82f67c374f9ea0ba3ac0c9d088666e61934de3c5623087297c494035fe1624ecec5979d3c562e0555a90cd66df163a6743fb9d49bd6517f6a8",
Mac => "aaf4e6bc966753260f912e95");
Test_HMAC
(Key => "bf1512506858d2b38e387a1e65aa813bc1c1f6e6d96a6a864b59099e61430a9f934e4a014dc63391f211e30d20e58aee36b8148513780949217db17093bc7bbcea3d9f98becf",
Msg => "8eeabcffbbe968425ff795fabaa1a9c77a2ce9a931338fc205921c5eaa83ef308d0717de528866c181bcc6e67cccd058b5b69ba11df0d28ee04e0a334f25522f1db10b31cfb4fabb6e609b267f77b8e735b13b10e45e411ab94c6fe1a9eb89f0a7af40ff1ab64cba8eabbbc4a9ea89fc61e470ff6dc501eef955f4719e1cbdfb",
Mac => "6ea8c31c4035c2084be1743a");
Test_HMAC
(Key => "332c022cd7cdbb71fcc3eaf48635a8bb6e03e73f5c08a9cd799c702d7e5df58212301c7152822885b1d42bd20276c1d9d392feacfd6da55379ea9b6d75509b1aa74c2a19e23a",
Msg => "07e23ba57979f53aad3bcd9341e6de6fc64ff3770c9cf019a0b36e9394f3a64e7e21906ec3a54ca716f6c0523b5383c011b4f9cecf00c0b98e804b340894cdb89fa4591ca15a4765ca0ed9df0a821f6d89d0171de9a019ffcb9e7238942c50527153ded69800af1dd16d606335dd791d368c958ce0e6c3935ff72bc6c023f5c3",
Mac => "07c6d34628e28c8ba39a619a");
Test_HMAC
(Key => "ae1ba736e20691bcc3495be8e438d9cd5aa469de20ac7c5dbad753161960074cbfd1ccf423d3762157453dc0e88bbd8506294125e49040c6623728b3eaee5b559770775f9d37",
Msg => "8c79f911b301a8718cc4b19a81d5f0cb6312d87c5b4b079e23a61d247541cfc2c41a37f52b2c6e43a3db5dc47892d0e1feabcc5c808f2391791e45fb065159f99c1d8dd2f69baaf75267eb89dd460f1b6c0badb96cbbc8291cefa370fa7ad6997a4ca2b1fe968216032f02f29837d40215fa219c09161df074e1de8e37056e28",
Mac => "ff39e0b4fd5cd0c40be32024");
Test_HMAC
(Key => "25117774deaf7c068cbd4ce82a595a584ecc9dfd541ad81eb9d71f12c53b97f76d797da7774d6ae8dfd4d5e37aa1d9d8d90d380f70cea112f7cc2e19113031c62cbd3012a863",
Msg => "08dd4f5c7afbdb4363a7df60d247776d6c7c122eb155d44981c23858de4bfa3df30134b555b5c7318a69fce1c8046b11fe4a1cb8190aed4e809933dfe080a45e2f72753beb81bf37a3912778b90cbed866d72683fe85f7c176cb601023341276c4165915c3c58c00b806a84d2fc7386cab0d78b7eb2db9496b3f07142ed00a2e",
Mac => "a52411b649601f629bb75f5c");
Test_HMAC
(Key => "aac2322ffd2efaebccf8389eabb3411ab55f21087d90322c48cceeeb7934020a4c66a3b8c7a325cfee2dca5737f3d84c3d70eea0b8d19784ad5620e4e2faa730955675626dc3",
Msg => "7261818aa26ad3861426af03ae6ddcba10f19213d473def6143747de2db5b230c39183cc06cd05e1333e0c055d3cd9856d9e3df968e6021cf0b886db0e91a9ac2eb5e9216b69ccbd0d637f06507fbcdb68b3f008c1459e188b3bfe6b7614eb88bab5fcb35ba6f0c3ab7e4f2e109c4e660718f36869f97b91eea9f9b4efa63f6b",
Mac => "2785abca097ad771fcaeed6e");
Test_HMAC
(Key => "100bd00e9c4c9f2becaec6145640e57d1363a9e8e8dc95610627026c300e643c1b7bd0251a8bbb54fbe305be2b47365621690783fafe24d1611730e7b2af09b95f804efe921c",
Msg => "725400784625df22bbb897e7df2bdc801f8e8c1f724788f5d4b5c3f7f61498e234a1617cc7fe451d3cd7516f24c6ca720e74c2c3b202ea1d6fa7a720f89a68514a323663e14b8db52bed6a1b3d28a5e1c542810d3f1582e56cb27eb1004af7c29b4fa8b3fbd65eef70400973901913d62b40f0868248f754b31f703378edee3c",
Mac => "86d5e21fca7caf63426a9a4f");
Test_HMAC
(Key => "e01b54dfcebf64fdc61bc0d9a46f3850db32f7350958b6abcfd130d1df52d6a55657c3224d69f2acaa9cafae3c5d4b82086a1491dd2284bb2fffb9f922612540e48d87a940f5",
Msg => "abc9ccdfbd92b6919a5d6c6b5a765a39662ed90080d3549204dfaa5f6d70d48e1af8c84d53369d658765ef11d7b38510d9f431f99598f8cfd4da73d59b3b75a3f22fef7ae91610d5dd6db040f846ee6df7f51885300dccbcd38b5d28705078d3b9d5080f8a1a560926df75a1c417dd794a9a564c581a188288583001f4972545",
Mac => "0aa1a8368477289bdcd2bb2f");
Test_HMAC
(Key => "4a25e3a88eae864851b4c6d01c6b98b799a70f0ca49f1860a4f167df1ce7b1c07df91ce03f93f4a92f189f390b26d3c04c1c062a43d926ff67c78b87ee192a319a500b35d604",
Msg => "7272eff0b28964a1aabfa08f37527a8607043fedf31ba6ee8fad05d8ff1ac4c10cda126f7779d8798cdfeba9fbd586a5e4c5f7ce31c1986928c701fd40447cfb34d6baa45756c4282716330b2467a4cde35f67ca5ed9775f8ebcaf4e3c813a6414ef4c59fb290ff7a2ebe17e5b11bc482c59f5a922692a19e814769598d9e642",
Mac => "76122c5582fea3b4f59181cb1d83a5ee");
Test_HMAC
(Key => "13e8b6568b1d83ee06235223caf6be6e76897ffc950a9a0f7468d5a231136e4c15030c6623fbf670f10f83b1b764d21ea637ba7d7b2004ca5398d8dac1ba763e1e46276a20eb",
Msg => "c2c1ad604e21c2c869193d6797ae657ee740649c7805eeb83cb6237dfc88b7e59d5e5009a13d2f38f1001346d94d5a2654c76abb8a854fec97c4a5f78ed8b907bd69eb0833db57ba800eb404bc487b8ccb6f4c84de7c8fc73d2c572445f88bf9ac4847040de48077a0abe74a488710d5d4a0d49e7ed0f470b858fead29d175e4",
Mac => "87ae0952132a3b0583317997e5907ae4");
Test_HMAC
(Key => "583e7b26715647c6c50482866f84c9a097ef1f1bf4b18ee48e3e1120c901b2c19f95f0572d386329717da38552416554e0dfe7f1dea88f3c7e8dcfea6b1f4b1f0cba3e3e08fc",
Msg => "a20f4cfde1c12ac3aa4d11b13dc4590ad9395f0ed28032d8e4368f87c701109c0319a0a30608321674aeb37ebe873cdbf6318d46e228b7d54fd518bfa7c78cc0c640e2bf0af38dafa90c9cb34871ed85c9479d1864b9c27cf9f45d03a4768aa29389fa99140aa356f26fb6970209d2d0f98577cc80b9bd968b9e469ae6987108",
Mac => "702a4317f0e27c16ad95ec8217917285");
Test_HMAC
(Key => "381dfe5c3405f0c67216a34475d453af05f8ae8fd47b92d561f119cd1d18d34ecdb152342f8eec0fe0edbc1d7d04ea7608dd2c878e648dc107bf6e927eddca957252be067b62",
Msg => "3b8bcf1cdcd4b5673d298f8df1e226c1a7ff4a2552bd15f588677402286fe26340bd77672e4722ce05e2333832571cdd5fba787f97f74c9dabae8dead541e3fd9c2bad4af7934551b52085151c108ad0d184b7e5f81efd169bce5af750e9a0a2167c78ad81dfa659178d8f0cf932f802c606103fbc5ab1c82070e312e090a2bb",
Mac => "dfc632da93cb1a878ae38c0cdf5db11a");
Test_HMAC
(Key => "772619f048d8cfa9cb846e1ac8deb0ab56b0029eff70d0441f1802718d32c72d7d3291aca50961819ff7440e8fa11d3f0563a67825e7b2cb05f7b56f568f856d4737629da68f",
Msg => "5a84d46560d7ec2d1ab663c984022cb24393463581c5361af733b4844bc2a5189de249615d10b6735f9f85cf31b9cb87aca14ba3c93ae9c2b6cd620529073b28f541f7f2db058dd0a2cd19bd690dd2643d743c89e76f9fa507f0b7d0676dade4892b46e082bc5b8a0bc78959d60729911e9682b0826c3e0913221bafacfce394",
Mac => "490c969829f9413c70287001488b0f18");
Test_HMAC
(Key => "f39adca21ff0939639ff8d6da236d519572de92a742364e7f7aada9ec7a10438f5631d10413e8b06e027c2cf7cab668f7d29afa9873f12d543821e746372a421e0ad1a898662",
Msg => "9ead422c9e22b885a422c37ea49c271f9d65f28d297fae76519bdbafa5dc9d1c8ddeb1d1daf7a576a0bd49f048c8613ee1b99ca0b77acaff27c84989b1efc09c4fd510e5053a88c9ba3e59034624498fcc55abc74aa88ecd6ee03528ac77c7b28d9a48b14a74c84499afda01c73848dc0743054a0a9063a7cfec86d5bdfa1927",
Mac => "a7549bb8be315b3a8fd3e62c8d960758");
Test_HMAC
(Key => "cf20eaca221a646675f696c2c9ffab2cca83cdfa0135f4154ad0fbb489fdf96a9977ce63856dfcebfb28b92ffded4248da2571755dbb92a844c67345f368ba266af57be27558",
Msg => "0f7251cc8687e3e02c363af2ed4551233cf2bfbb10e5ddbe2c622bc0a4c3f0f99d26219c54638465624115713ee9a953039ad164739f015a3c7ef21d7b7344d67f1c6848cf76bd636e08f9165d5ecb6662b9bfbd08056184e70ba5f325e886283dbeee77ffa9d602d9f5ae89548eff83e1b74f6dd6ff4562b4710decab0cfe1a",
Mac => "9d0b8ca2dfa14e8aea28a65698796da2");
Test_HMAC
(Key => "8c26d9e739fef007ecf426612f7408daa6a8e41aaa918b3e335755cdfbdd66eee09930d88aa339894f0b1ebb5370d914f4ce3f9d6598cc759807a3c762b1d1f9da5dd2260216",
Msg => "e437f8b6ecad318267ddf85d7ee05b35382e3d6b40564129e9f3eaf66fdb0087809935d8fa1e087cf7b3ea3207329fb8bc76e8e46c105ff0323ba2163613b35c2e019fb2257a5e3a7be9fbe72ee9f54957b8e4a7f8e85f4ff4581e2a5f635c93f8577f69f429fb63fe6774a47b6d239012dc7add6c480bed3831a65b7335c1d4",
Mac => "0d5aed6fd871560f8123439d476e19bd");
Test_HMAC
(Key => "f1e95a2ac2982a63584af1b7aab0ee739bacccaac5058187755e77e1f669e910135891ffd794808397b24deb33a371d9982af25089933f0da0a35b1b8fcb3ea2aca07900ad90",
Msg => "5ad21401118c89f381a8343b12fd5a96d95d587dbc26e758d7149eef1f59b92145f018d8de2e8b3cc09a4c27affecdd939beb4eede69248d748e3fe1cad1e9cd8c3dcedb66dca6766c85b85abaf69c48572346fe60cd40666255370e07d3b9d8f5633df3f3bf64094d137eba7a0c504afd3215968979c24d68128e5c1e87b2aa",
Mac => "f137933e9b264f559dfd0fc262a69c0f");
Test_HMAC
(Key => "4c1624a9407697dd3feb1bddd4a9ad07f99039e12df356fdc69d30208916c5a278225518eb8b1331e22021de9afebbb65e0eb398a0cf1d9248564b014c93fcfa81d5d0e9b190",
Msg => "e3a90651f7652c0c7dea981f8167c7e3879f81cdc249b1ef86b773c200b76f2225b7669ae82c0ae2b03413a609798f899959796a57458ee6f7675c1ea8889cba0230c12e3a0fd13b999b74b92cfb4b95bc2482160042a9641259bf4a202c903b645e429356d72a202069e4e152b3a20dd746c4572807a971bfd5c5cfcf6bf4ad",
Mac => "b4276d71392026f683012521bda55952");
Test_HMAC
(Key => "0531b92d1b218c08cd8630dd4861f7c80aced6f75d7e0db81e670ad6c3ba8b269d16045d59fb4024cd814a6ff24a8e0a2cb53c74d254edf1eaa189db34ec68396b98b793c787",
Msg => "b9b8f4c824377a6cd1a31b1f3a21b551dfc16baf8bb002f4d8b08b02f5c64331a732b7e78ea42c69aaad3df01e74c60033aa01f59fc0efdf0857fa8fc4f8d8f2e305b29e6fef86abf2aacac4395e527d586073e7ee606963aae4f6b30ef54c5773172d164e7f51dbb18108c21548207356c909affff93728c83ec8965d246707",
Mac => "6369914b2350ed960f0e8128c02f04c9");
Test_HMAC
(Key => "ecd29cbb1a39d7fdbc5c92a096c0cef1d4b2363e9e895537ec2b079a9cd32d10c211a5523f127a8f95215712f96e4220aa0e861f8244f1fecaff40d053a3d8bac20cb7102cd1",
Msg => "84c514e4714119a9e4e47fccb9e82404dd5a785060d631decc92402cb69d036d9269bc2ecc88423914b3f6b9f910f9a0b9b59c4657681852efa880de47f2f3d6a63d16a1e9c7c104d313f943a5321f89ee436689a5368b6675d5c0d05804e97167470a87f18600d2ca0d70b0e5d7fe87250cbf6371c8f0e0071ee84b125d4b04",
Mac => "d598d7af92d2d65d418a116484cdad9a");
Test_HMAC
(Key => "f54e514eb70f39579c9f175afd7cbdf1de2fdf102b8276e042ee63cab25355d142ecec2636811ff6cddedb870e85ec83c4a02194c839ab307eadc7b7a25e9dbb45a9679e1218",
Msg => "3d31cf76288ba777d0da29e9ce21d69dc6419c153e7a4d2eb02f5001dde9970c659fd08d9535e02f80428de851167a22dffc591982bc5c842664ec779d489e883a4863319b51ff75c627bcc678615f27b9b55b8eb475458cc65a882fd5815a28e3b3ee29e2e9eb91ca0f1e4bea096bf37bf40a3b7baef08eb9988af32c9ab133",
Mac => "0dfdb14b000d0420880f83192888bdea");
Test_HMAC
(Key => "e88006364955d8110c553fdfd59db9baaa310ae50f9081026f8b7e85be5631685de0a4213e60fcd14830fcbefddfca035a82f686fe4ab82b8f5c79475adc9558394b60f3ba14",
Msg => "4bbb7596f19aa5ded4017a81cac28e7d6a685253c01a5e0c45c2057a0d6e2dc043f65d15d3df18c4667f6a779362c0b653edfdabb641c928d5622ceb08995d205916d42738daa69870d41284594a57fe4f7bc9da648324b5527e2036b4f04692756501568854f861d9499b2f8443fc5e465be16a30a717bca35e09e3783d9121",
Mac => "dba4d87dc72e6187afd8381a490b0d0d");
Test_HMAC
(Key => "deca6cc2bec006c19ae4b3b2246fd63608aca28b225ae80bee522df5406a007035988bcd695b670d6a56b5a36d3e6a7b40f7ea3a80fad9c80cfa2d0cb9c788f64872c6c395b2",
Msg => "f4a65ebf30900ab9860490c7bd7c0ce4f46cb5bb38830f10522e625ce25f6ab7b28c50fb44fad927ad3bde01a6f6fc00e1e68c689925d5b76dab81406e114e16779b062bbd76b1b9a63e09e1dfc42e93a90d9bad739e5967aef672eedd5da94febdc6897c28dfa381915faaf8d6e0c64f4eacbd2ee7402e7bc191eae56c8e32b",
Mac => "97f6e4631174e11964193a37a916f257");
Test_HMAC
(Key => "f0dae6d8753076b1895c01262ca9b57633eb28b3f963a7c752e2cbb4c0314c20eab11a10493faaf4255a8ee4c0884929d1f561ff335eb699df2d116618e60093e5c1e2d1c499",
Msg => "61cb9e1f1e4b3a3b3bdff8cd5f24566b987f75c8a05377855f772b49b0e7ec1368b9c6cf9553db2803dc059e05f0bdd871983c3bed79dfbb694bd0f1ed8de36e9577be50da313d13124215a93a4bb7ccf4f57793cc28ed43bf7e9b68fef7d125efeecec9754b28a271fb6e16899d0bef287e6df7c5c867c569f6d4d66b8b7ee0",
Mac => "62ac956ada19f04be50c23f2328a32477cd58fb9");
Test_HMAC
(Key => "65af1f17cd7fdaa523b9b7a9829d497cac7303d450c59e9888cbbaf3a627c8a830d327a529578dda923fa94b31cc076491ea338d4a6221ff8251ccd6b4d91e67b11610d3e453",
Msg => "9ab4667b2df7eb4be8863aa53e9bf9af8bae0fc09de94f7373dc56fa4472b6b5c4235403a26c0e59557ca1911831ca843342acda7dbe72211fb5351d9a34205f0c77d219af5b0331a2126b94ec1adfcdbe70bed6f8018b2eef61db2b6dbf7292fa19a9655aac13fc57af5f57c14080b3b29f0c5b169ae2c16b4810cdc6faf475",
Mac => "a279d055e2d73306a8187344fc32cb0b5b80cd35");
Test_HMAC
(Key => "538b4a4753183ce5607fa03636db2fdc84722aeb9d98a6ed70d0282aba3571267a189b6aa6eb65871c5dcc59dbc7db8973c7c355ba2a2e94c110d1f4064a4087eb07077e67b0",
Msg => "a1c7f3c9a79b071b49301aac754a2e89d971fd90a7a2dfc99544effa295d6975330657359b1d6d295c3931d0d1e35f0630038b1e54980830bfac09b4df880650902461efe3e14a131d7ae06c033898a95566e38e99050b4719c15efc2f238fa5c00759200751658094dc6ea994b3a31a52844d09fe51b1b5ae6938f8a297cd1b",
Mac => "05598da96093f17687d9cca772ef61ea2af8ee40");
Test_HMAC
(Key => "1e7982d0975b36da4144041fac9a7f70b4d5180bed489f11453e073be4496ac957d74cbcee06244562ba197dbbec09567145cfd2d2ebc673a39b89f20af8fd34ac229279128b",
Msg => "8c5337d74388cbbfe0f400f403879687887b6b2f5cddefeb8f49d8e9abf517a745f00a58d1acf389bbbba904b3d68df44823c04bb8b89361065b3fdd4e8bd7d956c57a416500cd7c587aa84ff2b610fe74c566b46dc6dd24d4a932715438974be757f05ca68a41e2e0b9679d693007eb34eac532240fb67e20bb176b66013f46",
Mac => "f174bb064880c9b111d71be221ceedd9add971ee");
Test_HMAC
(Key => "ff5f9fb03fc15b2143ef638bbaac07557d3efda920bb9bd5c68349f13a0e37c23ce84bdf19f95e127f0aa7018e85770e327c277bb1ed4fd2804539845b2296d0945d6fe6ac48",
Msg => "b9b50774715edeb6947842ae807d18bed911c4c9ce3491fd9ebb53f05b014befefda4a935cc81994487219e2b85127f21cadc2568cc8709151595d29a73b46fec16795d90e20ce48bb6d29aa79cc818680256c21d3fdac4fc6ecc689be51f040394430710eccc37af552bc2c4956ed210d610a4f2e3b0cde075dd4372aa9115e",
Mac => "2f5e0b070c0e268578ac6e868b364b144abf84ad");
Test_HMAC
(Key => "06ec0e5bc833caaf766f8a531b09621c0c93e859280196ac5f166f18711ce55af8d8fb7da9bda7a9d7607a3c382c821bec57704bbb14f6bb9f0b73648206d29448edaf8710f4",
Msg => "15b186bce73456813d85a50e68c4e2a5fa4ec9a3288fe5f7731753d888efcab8642dd873bbc66ecd9ba49f1b4df8a5407cd225db98efb4bf7dd199a45015d41caa0260c8f95eb6cb2385927f6cbcf96799c27b6555a8b62dd5e31bfab8a0f5803157a62167a334631c5105a28db6e7029a4654a82763f32ac2736143863532cc",
Mac => "4bbcf1bf06f47a720078e2a886d70c8e90ced8da");
Test_HMAC
(Key => "a52069d08c729eec3f803df6adcfc53c7eb6456549bf29fa084f5425c98a6fb8a6718070f64dbe7cc551a439827b4440f8bbdea28057b172748e1184e67cba75923d64eb1255",
Msg => "5967ebc2c80785c87cda84a888f4bab97312ff49e981819ab13b5c2adf546b374b945d8341660b557af008c04b847a271d3729011dcfd6da35e3ce9a3a3dbf0a6783c9940a17d84b7d3b322b58794ca1e542e24ed4d546083062f921926f78ec957c587e89e295b26c012870169ad72eb37a51b676597a2a8c0104464fb33fe6",
Mac => "2835d14142e4b662578b4c0879c1831bb7245a5c");
Test_HMAC
(Key => "5a04585891a5ddc97a7ce83bab92eba55133905c7ff4aa34c5f56be80564d7bc824278603a6a541876cf1c1a9f05a63753039dbeb827789e107aa8ca8e3616e26885cc0f2e8c",
Msg => "ecc714bd81aac0002a987a81d35d328872a23a2e8f63ec6e03a4937f0060896151c39cb7e399b6d48505be18ec76b97dfad7356d4006e7d7c1889381f87b2ca01dcb3da6a5a9875b0839eb2fc68b8bceaccd2df653bfe085eb67e1d73605bf4ed749be32cdc479bc3b9dcc6d6a85f1a410ece970d3751ea309a84628c2e88a96",
Mac => "b8ffe657b108b8367502a28c0fa1d595ffa853b6");
Test_HMAC
(Key => "d5ed1cdaae3edacf80ee9487eb317df46ba293b07ddbdd350443f150ea28bad30a0e788b4e46087114c26624d72770970b24ed074803cd31ab7db2c17ad3b00d061a5103d6d6",
Msg => "f753f3e9b4bd1895a259492ba160713f00ac8e24dbbfab0da7070e720b61b2b6f1dbf806debe99847eccdfa584c615d7b1313c68315affa32e98e93ca0d1d6ee623fa7628b743a53fb9c9af0340372816cd7c84ee02ee7bc6a4a9dba561ca75b72086ac464e8e4494053e1d35a1f728559249b9f8d434ca283a892b5d64b0f47",
Mac => "7056292af9371cf9ad3e1b9c2743cbc1f52b4e16");
Test_HMAC
(Key => "9fc05ef49579aaef45c00586c8a35dc0960513483e8951715bb29e77c348af0801fd80020650a47f1bb2da0f1ae7e044deb08c74f8a718baa36abe3efbfb84b669675a2d62a6",
Msg => "4e7c667a38bee08ac51afde3f22f2e38736a7f7d3f7b32f94e05a79ba19a809184e60217102abd8df3ed6fcd74ee26bbb15ca51e2b4909ae855dac6d89c74a3b6c7962a55395dfff1522f8b2430455d6662b7304870a4965f54b2c0f42c1f0928f9e50cd09e68f07b423603b685b04b2193fb2d75ba53b482438ee29d46eb9bd",
Mac => "4dcd504d883e2b9d5d1e1ee15c0ff396f4d1c42b");
Test_HMAC
(Key => "3e3b577a9cc800d2dc69362837878d4f7ec0fbf3fe3ae08aa63745886cea61d2ec8a627652a46a997bb5d7b157f8c7f4927ddb0f737b3c1c04e7dcce7345ffefb8bff90d7874",
Msg => "7a000b03fce176de620f0df2d9d3886bee54014da45ea65bc361b13874bd9acc0b3c8ae924e0142ef1e0202cd2ed27c826b9a6e062bacc32602c7679f9555ed8d50c8f7c827c1d7ec42612062c25abb6ecb6c546eaf7926b13ef90fef2cfbc5a817703063f3cf99482e9cdc80f037dfde85246c5659c5fd086b4e60f88b41b18",
Mac => "49d70fcedd5029673d8027f34a4282968237cfef");
Test_HMAC
(Key => "98fdfe9b591008fa03fcc480809410a53a2a4175de480de360a1a95f3f462eab0a1d41ea2390f3fac382e6033e87b2508854865ef87413334d3da5f1ef0393ab778bda7770c2",
Msg => "9eeb079c552e421f703085b9b275d5b05c0c922efe14f2e78c7faefbb416fb1e6fbdbcf6d7f9f6c438af8447692f0cde5d7031ecf59d0a8018d1d3360620e358e9d6de49ae032c241237aaa0008a9f371adff187966a99f84b70549f0b4e9b6234bdd65d8254cd85274f5f8b1e8e7604bce13ac6888285954ce397ff6caa0c84",
Mac => "e887df3367b67f8c9e7386d13d1a07a08de9ec68");
Test_HMAC
(Key => "74c6bd81ed71bebacf5f7263cad715951c690afe4cd127e41b1e5468b813540833cde26834a60052ed5a8cfb4d68148876bbebd0728a7c64217ddfcd7611aa14e33d0a881256",
Msg => "3af349f3647218e4be26fa863ac71381b64fccaa7e66761e121e308e2ae00ad9f8a76ae0ad6baf963ee115566861d87af2279d2932bf0d70d2bbc394d4a768a7d43f1c5a8ddf18129f3a923e904fe1e71099e28881869a21b62b1d87fb36aefe562427090db49c81689b3be5b87976f1980c657273a3655847d6060da8752405",
Mac => "97284bd4e44b2e7a034a2f2795d70250ed5c84da");
Test_HMAC
(Key => "cea65320f0ca8dc160c5ff83100e523a16b7651d5e4d9cca9c007b8b850373d83f36fb1d1603e3bd7085e55603f07e47452dfc6f24c4d738f8ff44d4b64d08c766e48aa6d7aa",
Msg => "13aaeb074c23597bf5557b221300ad3df211aedc75b198feaa8116f8a124d11b7fff2b91ce3c30881715c993b34f334cde04b03f0da67d03824103aa1d00515c75f3ca3e270f1b986e777138f4fae811e8dc462851d9e9b1a267fe748e3cf4761d1030d600a403f52203d9d97f07b3d43920d760e851c54e327b6e209ddea1b3",
Mac => "0819f3d43c19965373a3fc72c446508c969d154e");
Test_HMAC
(Key => "314743435cf8e0a1e1c4a321433bafec55ec262de77aebc5a4f3ad3f3b5e2106bd938ed546508f70e0881592a4feab262313feb904dc9c30ee78fcb6a8a1bff97e803596e7c6",
Msg => "0136ea476e2e823f8e00bbcc7f9fc7272e951bc4caa67e1d78b060b248d66e4e67dd638b97d62198ddfe003a79e266111bc7981d5448cf814b418f86b1ec34e2f74ace3bbec52ee78f1341f6cc5d9d72e6a15ae5d155231cb54d8c2be7dea6b11744d25dcb41d2b10c0726065e5895d1f6ec0a242813a1781f9b02a9d0f4ee42",
Mac => "ad4892f36828b64ff5c3fc2dfd780dee39ea30d6");
Test_HMAC
(Key => "13fb1ed6389f32d1de3139cb04bcdd53525c9889b85379d3535a25d290351c95938a3d0cdaf38dbf1d5234bf7965c8ddce9ace1b66247e60d74ec7702a0f931a3cdf4cb465ca9fc458c380004a3a6e79",
Msg => "0c36ca43e7c113ed9fb71670b3ea73bfd6928c839f36db1a82d08ae0ff2c3dae199133a10aa38d1d3588ed115c4a437c137ce4307421ddd615c9863237fd5aa840dd05ff6c08bf66bfbcd9b43e3f95f45e7d3b21bdf2692e10caab495c474b616a646be675b850d0259c01e2c1901130a0dbb9dfe0722a2c5b1b20afd7d2bbe1",
Mac => "7653dc1ca2b70f058614");
Test_HMAC
(Key => "5cf59e34f1ae4ed732a95cee65eb494c1f7e89e1a2727cde68229f1a00b904b519f4fffbdd29238b80886cb818a1be2faf268eda96f2df05fd4b71c0c16435848526031904308fb6a51d9a6b510565bc",
Msg => "ab5da4a64fbbf3c60f5ab1f7776ed6a55751e39a5ec81967ea88e9061ff9adbd373995451864e42c2c135c786d22f68dbfb7d751837f808d693b4597857c002ea6aa06a5e34b5a44768221ebced656f8df35bf6bbd39204869aaae3dea43c685a0b9df0cd6f9bed496b1e997c1135dae5fd68331337d616092db0d4176d7688b",
Mac => "8db94baaaf03a51acc87");
Test_HMAC
(Key => "909d3891b6a5ef3c812128cc630711861b6e73dce4f289efec5a12520778a511a55145f2027e35fa9cd20d33ea3d0ead4bf0b3c33dc2889fcfd33f01596f013b6a3502810278585f01e50d8be06673dd",
Msg => "b7b3580daf783c070fa8fd143f5a65a18115ed1a26388c670299cdb71d6d247cab6882b63f2527753bc7b8998be191dd93935c1465f6e2b238ba228d160ea0e5d4c000a247a6d3deb53cb1a38a8e88f64c593314d16d4ffbb0554a2cf53abcb01905fb5931c4ea4a654f11b9a42bf3f496ae9ba2d264794c52b26c1c23b920e4",
Mac => "670c4e2d2661928b8262");
Test_HMAC
(Key => "b51ec038eaf03b3acecf407f43e2f0f4961516850f5e5d87c645c153b9a344341caae284f025c611d701bec6270ded873dfec05c14b623d216c6f49e3131b7842e738c773ec15f02d6935fe6bd60b105",
Msg => "2ab533078b3314949c1f34c68bfdd76750f75105902c11e8c14ade47905f61bb7fece4f3d33c59aaadf39ed677eaff22813afd9fec974db6c8e0246279f3b29c5fc6ec16b6b48f2bba1462160f10bb6361b544a44846ff656ed68862f3159bf7106bd5d7fb43bf010baa08f01d181212368db17c6ae02fdcfc5493afc66d22b4",
Mac => "e7007d2f4a194a8b8144");
Test_HMAC
(Key => "d4c892aca8c9574a48b761f33f44aa867bf0c61a4929734280b77290fb5795574da61ab5b14137d1402bf662676f43719706435f3efae829f7ccc3ebfd1419a3e66738388e7d0bbb5193edec7d0fbb00",
Msg => "d1a31b1f3a21b551dfc16baf8bb002f4d8b08b02f5c64331a732b7e78ea42c69aaad3df01e74c60033aa01f59fc0efdf0857fa8fc4f8d8f2e305b29e6fef86abf2aacac4395e527d586073e7ee606963aae4f6b30ef54c5773172d164e7f51dbb18108c21548207356c909affff93728c83ec8965d24670761527076b3bc54a0",
Mac => "b58e9dfdb9d88df4c71a");
Test_HMAC
(Key => "b6294d160b6df30fa4546b63ae64effcbcf74415694984f13ecf21ccd6ca27123f1dc1cfa45bff662925d68717b3695b39b08601864b743eff8bec70dbe265c4e20695a917fc3485997503a6cb5e0d7b",
Msg => "4c76c4e416be43ac382abf32f44d9632a75c333740d8285ff66d7d5e3b1b48c5eb937e85cae409ae2d561b7df796c196c714bb8e70aa8bacaa7eccf10729c55528193e54303392a979bd065a867c59f439199d1846ca4536e82e7e99d378c3a469cfab5b30f50625842729cf894586d5643380ddab7f7d8519443c5e874e6938",
Mac => "97eb7dab4c4d89026158");
Test_HMAC
(Key => "3b1cbf6f4212f6bfb9bc106dfb5568395643de58bffa2774c31e67f5c1e7017f57caadbb1a56cc5b8a5cf9584552e17e7af9542ba13e9c54695e0dc8f24eddb93d5a3678e10c8a80ff4f27b677d40bef",
Msg => "34f6d2877d880c45408f53a1d8ff956146ec6b488e579f8e5e48ec8df11d04bd3321d8e22660138484bae7a0a6370d9da49a0781be39a965fa0bd7270f03905e829c2c930fb6e1ae4aa08cae8676ae9df6adb5c312ec7e1b3c1d1703a4c5c9376990560001317fa9da68c9334164814a844cfe77531926966ca6348b780ab831",
Mac => "d56a5de69805f8a9906c");
Test_HMAC
(Key => "09c8f4a892b2efd209af0a8135c15756c528213c86cac5edd9d8c3b965af158309fcc00c1424a874b9e3a8fdbd33e213736f5489eab8ad2665985e600be5f367e0e8a465f4bf2704db00c9325c9fbd21",
Msg => "cf3fd262068f490c203d8ba57809e693ee284f4a3744536e77c55137114fe71abd8baaa6dc2b1aac0928d5a2f14e0a4964fb318eac24f9ae1d98829eed89cdaa4648715c9a508f9f378607241bbfec05098336a9dc11b7e71ca2516ecff2656491fd8e4de706902fd1de8bf39e63750f0447c6627013755f9b6b246e5e93988f",
Mac => "583bc1ca3c68ecebd811");
Test_HMAC
(Key => "ae69e1f10bcc8ea9e47a1795c916a3132b9d4ba7104970fa0bb551236c43dc26b4bbc5ba4c34d650763886508323cca647cc357dca67354a40aaba0d3b2f07d4201ac080d7fb41cbc7f6348a02216330",
Msg => "f570273a4e5dbab38410e4af672995eb088408461e0e4730a8d7f15fd4693bc3205935bdbf1b4f8c3e1a1b08670854926673204b2a9a92840e7e7376b93c4233429979dd98df121622e84ab7a278a5c55fd032a1837f107ec27c31183c725ea4a55b7b02a3500d3a779ff926e01f8e6c3cc0c6b0f166c9070bf8b3ae27b397fc",
Mac => "d4225a4949faca02f3ef");
Test_HMAC
(Key => "7f0568cca4ff79dcf1e5a306b419d25d47dd4cdd42bb86f3ef243c40fe57c09a7a849353fc3132be1fde32f033e48fc436a3422200dc1180bd5caba8a0dbf4bcd6239e78b975f9b847280c3ad293e4a4",
Msg => "2512718e7c139acdcd324303db3adb70348d09b058baf0e91d52b24952f832b0a3b81fa9bc9a2e9fb276a64e9e0922778b4992d892f6845b4372a28e47d27b53443586d9015463cacb5b65c617f84e1168b15988737a7eda8187f1f4165fecbdd032ae04916cc4b6e18a87558d2ce6a5946c65a9446f66cda139a76506c60d56",
Mac => "85a83e94fd8b941124e7");
Test_HMAC
(Key => "0daf68d47caecbcb7373b693bbfa4b98a39d88ad3e7e1b99cb2478d2756928883d9364e534c1e294ed89ef8032dfbedef638006d8bf0b4fc15e9412e3f76c27a2c77a175b1c56754c1d0d2ac2886297d",
Msg => "b3fa42c51aabb708a64e4056402fc97bd8964820c09c4541523c99e2d9ad76feafefa7c1a2a519f79c229bc384c6e2945f8bd055bbdbf6e44da557c6d9af6e19522e73c94394db076da91ef7b1ddbca931dc824bb364099d465381a52705aca3e5dc2d47c42003225f0a515b921b60a397b2e66a6fde895384719fe68c563886",
Mac => "9d835f06dd733eeca888");
Test_HMAC
(Key => "01663b65d9d258268b1f8c770f713cbc857c1870d399e7ce901887d121d82f5f2116f8c107839c5702997d8a282ee901d04a9c183c36868e7cd5cf7d8e371990ca6c05707e96f87fd5421fc9fdf9b038",
Msg => "64971ce186ec2dbe037ca714f212f62fc863d080799e72dbe0442de3613a22c2cd1d4a1d85d5b946e36d23b4d5219fb1cbb9ab53d41670ad030b4846186e7ecb5c6e5500cd264bfc7b739e963203101b59afe7421a0b3961c43b66e06d08e6eedb334574a5086b47953721a251e0d1d33aed8d3495a4535de97c9098a730e296",
Mac => "be05ae222904afc2c266");
Test_HMAC
(Key => "ab6832846f39aa9be6dedcdce2f0d5ad7d331129b8b340d16212497e3c20909b5aac7590cc9a1d817e3674395dc87261bb699ef6f514d1fa53003d692f2dad6e5a3d0ed7bb862fc73965c5aadcd5b26e",
Msg => "33d8e9e9c066e53f1b7d689f82f33fb1ccd9872aa7ad15a125d1159f773cf0f5f87074526dac2f148a621b5fb9eb816c187a1724c04f6bee4d2d85c59b0dc88dcd141aa794c345c3ae6e9cf5acefe10cf99b661f187573682da2e855bf1d23ddbcac2411bd13eff38c87328ae46528367724bd423589f3b8cc1984796bd4c98c",
Mac => "a5095b5f7a26ab55a37d");
Test_HMAC
(Key => "d14474fe023c284a27f7be751ced9ae210a4fe5ee681889bdbdefce06a5d44fe6d7bb58684689439ba16d9c0668f329e508d4b6215444d21cd83a523eafb06dd63deb11f13adf48f5c4bf0560f55a019",
Msg => "6af0473b68f389d5b6f20efc60dddc2f3551e62170b0d5699877077ba4ccd8d7635721801b53ffb071e5d6ca88ac95906d993b96b3019af65af05a46f6c142c70cebb3dfc01e75caad8fb78c1590502a3a634b190b50a3f703f54b794fde71a52f5504419e7b748b3598b92a4db0966564571f93c2c579d25b2de1fcf84befd7",
Mac => "51d76d949452cbf42262");
Test_HMAC
(Key => "1f9284000341a262e7b61f949523b7744277e99013d5a03be04413e137a8ea97a4f1a2f62f92322a2734ef461eacadda352b27c89ab5a1534ed5cb792c8ee983279431dad3bd741c27b2016f81eac716",
Msg => "8e7aae5ed6832b58cf200019101822d0d54c4278fea6f5685b4c112626195a7dd14d5ecf03839dacdde4eda2819b1d57d588d9d68439cd2746160e2262dbb584714ccd4364246f1fc84e2b7a4957aa697524920bc3e0aa1ad4393fbff8ccc6abf4ddc263034ce8db1ac481477036112e3e8636c0c384d2698c1d6ca6f2d3d418",
Mac => "7832413077e6bc1ee994");
Test_HMAC
(Key => "24d8938c1644cbb080c4505539e44c8a61567ca74443363b80dfaa466b4068a9af7022da37c1b3dc4f60616f062d5f84d7ca96f389f2a670540d27bc45013418e44a2aff134dad1439e9ec5aa05026a3",
Msg => "c0b184c7b9e4cb8dd19af377306516c563b3b878baa250c1ee1605b90708b5527d213b8e9e87f2ef2ff7752e5614a930b8fefe35de27f153dd62d623363dd4bafb9131da3357cf6a80bdf724ff7a568e705e452b972d4ef2e1adebff4bfe9089802aec1441fd6de70a1702c1f33f24c8d4fa17c2ac5c6d87441fcdb60ff2f2a8",
Mac => "1d1d12f4ff4e0debb715b9cb");
Test_HMAC
(Key => "4bdc4b8862956899373d3df4da7281c0ea2bdd57634059efb82d157a221339cb37ff2ef9be6f0f08c2125ac6e5d0ecf4f70a2ca6c72386ed393f1bb2994ab6e52f3d02d8149cfbe54443a357f363f688",
Msg => "28aab2e4a0e55c11d5503c4dcab584545c4923a61b313c2c5a44d61d8213d523ac2629ba6e8945d9f488d2d553b6a5821b34ef9b2b2fb464caab7f8df37f535aefa1e4012aa407543f7f689f55907bd4aee1b5e57da9fb72f8165ba4af49fa591ca34d817b3f8cc7dcbf6475764ced913ed8db4cb8a6f89e0d0dd22a5f79b067",
Mac => "b3ebb567bef1fea5d4f954bb");
Test_HMAC
(Key => "732957d1867047f2904817b4f559649059870d38b2bce77ea2e8b27205464ccbc6e02589f655f3d81fdaa736d57f9fd88fb41d4ab50bf857fa3f9128ec7609b0c9c3b14795efc29469794fb10edb778a",
Msg => "fbdbc0f366d4678654544804b8d6fd6f171668f2832e4623cdff0785f7d2de51e83f1476634fa1de3addfdf3bf4234627c31391e24df7ca9c967be8f4e6e243320028bcd21c81cb4e55720d921df1594600e01a4f83406713da53793f45faa980becce02878aff90bd8a58bfc5f6c98f2c76698ae9740d03927f199cd0ed960b",
Mac => "243785864b714d4132b916a3");
Test_HMAC
(Key => "0541279805ec5e82ddea16897848b0dd584fe59f2dc1ff44a65f493b87aec4cffcfb1b4e2c9dd96b127adae188cdff59a526268e49b25aaff6bc4605e274f0d54aefa48808702d0968e64c6f38b562dc",
Msg => "39b971d28692e9a0b5781c9d4090e839a7ea7021b5b4791004ad14e8c3dd7e01b78444c18050aa6d1ed24e3eb33309b88a231637591376cbc3a49245215f239282a64f48f0ea147ff61feae25f6da4063f2998fa3803ff1ff6819f39fcaca7c7a309da905fcaef7f454638b0caa783cbcee23e91d9eddeb4a42c81ecdb2cd147",
Mac => "3528e08689fac23da65b7024");
Test_HMAC
(Key => "68ed9fb90aa9c95ff1add2476ed9a8f9f894a3bfc514b70797daef0ad97b16abeaa6b7a2b96349d99299a31637d3b6db33437a8b6b0829cdf6acac352ef1522207cdc8e2a0b3461d18140670a326fa58",
Msg => "224e8d76f92822915a2fd36a510c398460090421d118ec654b17ebb9a452a96ef64a38a2f5b501687fc5fe2375ad2a33ca6236d4d99e7e42fc2b3b225a5efa1d00e24dce34b6c0de05790e6d27e695b4fe9b08e9f91e6463212125fff205b9c2699e35c05e36473c14d46b100fbe6250253ce12ad89f8610e3820f1a1350cea5",
Mac => "3f172df211dc9da262936060");
Test_HMAC
(Key => "772326bc0d10921a489a82e3651daf798b2e2a39f72fa1ad5620de0272b890bc11b54ea81a70d912fab4a13946d08b00a2ebf2e6e198ec386eabce86ea4af2531647b710f4adca4c2998a425a64a5402",
Msg => "f5c05a093ad994096deba25858e5c50168cff2f361b0280651b00039c37a863d34e44738cbd2abc3445785342e1ee92356093e27831793e1638b373cc64b83f20a86fb53d69996420c345980f8b82a2dcee4e48b53b1a706da7a72717260f3935eed9de2c5f8fc8eabc845c1207c3226b7a90ca83a46097c9cc5d9612f837c26",
Mac => "46a5b300d160deae52b0dc0a");
Test_HMAC
(Key => "ab7b932494ccb9a4792cafbf75988ff49535f837903761f5b201ad521a8dffb5250fcf862ad53e366872a6803c1b76ef98513da1b0c1044af668e17b49fac9256985a659af51a951fb0ce2b4ed230e16",
Msg => "231b4a2a2e6a517a55f10aa8047cdf05941091df707f7eb077392096a265d703e730e8b65d65c5eaa03f8fcd777bd933b4b0af8c5ce3d613085656498ba236a2d505877e18fda45a2916b74828007f9c63e451e978f85d2cba523346d6fa86b0b7422f6aa65a7434b61f8b015f345aa9695481de0be69a6155d2bf75cb944d95",
Mac => "d012486da17a6c96d6ec6a85");
Test_HMAC
(Key => "1f8509c8553d0d77593d261fc9fcff90bf77b24c4bd3de472144faeb8e2de85fb189cd09e7892152877e02a9d0faceca1f32f04065a7fa28d906f539ea4cf401782df07143b7cf9ca433c6bc7b4ce176",
Msg => "ee59b47d837ce466a5c6361ac4f64365ce5007de53372d17e8fe8d16c9fcf409c2de23354f411a300281965025cbd863a17aa8a01ea09ade6ce29004218a80c184d7777daa97de8fdff8fdb0489cbdafc6ebb2671cad58ef55d89d1060a6a0fcfeebb93cdea6b9eb05d67322748f7bb3054c2d1a9787f1b06a87be22cc7add22",
Mac => "f5eddca9a528054bc587c7a0");
Test_HMAC
(Key => "24b2d6332eba8fd719b4b37463b456e44b9140d9909adc287c85516821a8eebce36ccbed36feadbca9472b76241f0fc86dbdffd5f1725d86c2986b21dcc5b31eac44a636d3c583bc27537a30fa871212",
Msg => "1dc026b6adffd69b6005aba5e5d179ec42620f8c75cc04565b8ab4c6d21685351ab76f50829abbc940250a4da0889ab56195c5805bd1ca8166cbd0d578ac28180d10d3d8cc14444a67b0663cc348e14b597d9a56dc4978331b4b6ea02a5fb67cbc725a37d495f9879d4fc85c9538d717f1c396f63e5c97d344b3950f2f57b6c9",
Mac => "109f370cfa011ede8627fe4a");
Test_HMAC
(Key => "b712f94e606e293683b2968806ff6a1485504a3eebb8895c3feb9b60c100cdb7367534718074e3a171546107e1635becfee3954ee452263d6eefe5854b791f8d543a8b7f1c447fa9c9fb632423d367b3",
Msg => "8a7fdf734fe3e03017ce96e9a154d7e6a2a52578ba333b3aa713e697b9a6168c857835afde68b771010af3a010493130c251043a58acda45d3aad1c56407cce124c8c77905666768082ed506b1e8cdf1b9b7f20e024065cad00e95a6353559f2cd363cd8ac23179d9504e6246c78d4b4eea098faa03804520507db42147ae447",
Mac => "3072ddb57d76181c164e08b8");
Test_HMAC
(Key => "e199ddb8612936d2e46b4e301a1e772b0312d5a903e713f9381754fe0b376d900579511fe576cc99ef2a758e8640de93fd900de4abe7304d3d068c4a50edb76d405907003a8b4aec994bb7d96f2d2597",
Msg => "0e0e09152ca3b8f9e77d4f0781a0500ba7d8e5d202fd188e0976467b19fcd1c3c7a016a075109fc0231699ed886188ed618839a70a4cf8884b1e042574e14022acf02b528663121fd58e852dc2cb073a1b7a0949ee451aff57a9584d96b12a4f6405317488247be0a5eefa0e566535ba7cb43efed771e4bbd41f293aa6f7f713",
Mac => "5b3a0278b3e71a3a93951b84");
Test_HMAC
(Key => "483d3190b2bfaf492e9688e61db2b9ff0b7dd864d76b555314d201eeb0fdccebd37cd38e0abd9ad4a5e195f25ec8eefd3b6e82ebb57b2dba191547ef2ff96e421aca86987fa8ff31e90556236cb4df07",
Msg => "35a2b369b9e1d7999354b2a6d3a2e301355f3d833ed2775588fc250d5bd5e7197cd9e1614ac36b280699093373e89d2e9f51db4b0044fe2cc20cb903600c71f87248a9cbc627bebab177d4a5a7b110700a7e08a9407b776a083936810e8967cfbdf6f3ee549238173cf6fb429984a48e1fefaae426fe4cd7018c82cf8cd43367",
Mac => "994e9838eaa0bb1d6515c12a");
Test_HMAC
(Key => "2aa3cc87deb165b2c4114d1e5038b882732338786de33223e3588f16313db3710164b34d1d43c25b81b0edc7b5e9096359d7e9010194d420442a35cc109e95bf402dc7cc71d5627e111775fcb8fc752f",
Msg => "189aed1c0cf7700829333e5751bfd718a4450879e8836a3a2e5a2d61b222132e0441bf5165fc305b748d89730a75134a621384517d768229c470635af0eb374927800864674660a028e80c253dfb2047fc8e3bb99e020cfde91c151f0c58afa3ca804fbcda7e07bf8e6f50d6b4f806f9baddb41a15cf12a0e286cc17ce108526",
Mac => "5a745e9ceda09b0332cb4cfe");
Test_HMAC
(Key => "4de1ed235e4247d73df86fc57e56360f0ca78c6c137d8e1d1d46c0237b2096afe6ef3ada66ac899673005ee45a111448e39c467a3144d95fe9293d3797bdef184dd3439b8df960d568088c89e8f9aa9b",
Msg => "f08dac1d4d6a7ac4672b447a46cbeb3162f247ea09c6b4290004cda66d4f7746f4c8224921de4bc50668455325f13a0890526da74e87c11401bb7f0cc6a554145d1799af8ad4d7d4baa38b9feaa12647c5db58500c1c8e023b04ba196a5a52be71a39bb64ff427dacd049cc75e85b8d64ab5924f0b3023d9f70804352017792c",
Mac => "7f25062caa0a514034f793a6");
Test_HMAC
(Key => "e48825a5503a6afe0bf9a240c67f27acd4a8f6993834645e03c80c72dd370cd2e10071a3ae18ef19bae9d697ea9a4118609190cd95361907a7fa1b58f499f3f5e79b935f12212f437dde399e3e649024",
Msg => "8c84810e4c90bf6e1e88c8b944398b35c422d48c6a7070680c2d913f11b474713468409086a532feb2f7f7be858a5984aee21e0ec2cc2db78395f34a61790514415e073d7ec3cc582df3be38a67e810540e9d3905ba5b7e4a43ed21e94d5157e3ad09cbd3bd0d6a117e3e7d0adfc4ae202a0bbb93ee15415f790f663b2afead6",
Mac => "cf0b256cb91aeb1bf3877d4c");
Test_HMAC
(Key => "b5438e3845f39afe7deb0fcfb86e2dbe4fbc489f55f01c0f842961b576e89fc719b944cf5d16f4af2f8820e2ab0fda068dc4e797e9bd16fe1d31d1ca03dcf23d6ba5d80ac87fb95d298d391c6b893c6c",
Msg => "8ecdcd8176d8a164f6259733bc77ef783b48d40cffc547353d195912afee9d399e31dd9e41160cb7455d7cddadd351f6dc1b3651f0ae4ed152216d4e8ba789385ad66b7d03aeaaade9d7da5d5f2a01c9bc734abdad75feb5d02faf437e5eb7b1e843e1e765a665900a1b1a797c84e73902d77a17de223d28decc86b82e1d0feb",
Mac => "a95cf7bb2f67983469d4fc489e3192d3");
Test_HMAC
(Key => "95f2c1509dff6d162edd5de32ded423866dfda682bc7b7503e734142f2fcfe428c9c1175efbf01d6795dbc2b2886dc38013f2832b28c5e7676ce307b394f8c05fd1c209c7c131e3d0e3c3c4fce5d00d8",
Msg => "1c4396f7b7f9228e832a13692002ba2aff439dcb7fddbfd456c022d133ee8903a2d482562fdaa493ce3916d77a0c51441dab26f6b0340238a36a71f87fc3e179cabca9482b704971ce69f3f20ab64b70413d6c2908532b2a888a9fc224cae1365da410b6f2e298904b63b4a41726321835a4774dd063c211cfc8b5166c2d11a2",
Mac => "0a060735b4799eeb204c5203e617a776");
Test_HMAC
(Key => "9da0c114682f82c1d1e9b54430580b9c569489ca16b92ee10498d55d7cad5db5e652063439311e04beffde8c17688ffc7f45f0255315dc8fd2ab28c52124cbf4911c41b4252231264f684d3ffbbf7963",
Msg => "7c287ca52d40f53f92b00432984595cd20e644494ac7c3a4f3e07cad7c9e785bcdd880629a048208e5ab3635c51a00ca655b19344f63ea41eb8db83242478611080b3745da92f463c444cd4706f2a36418c74558eb7cd9c372cc7e5a61282f3735abea73745012f73663138fe4354441401411dca57a59d39085154c60a73b75",
Mac => "d2f6e9f1ea2cbb0519df68fde357979c");
Test_HMAC
(Key => "acc3e67746033c73958992fd94f457d6d12c29367050f66372f06181387d67ac42fd42443d038d883ddfaa67471261921205c9d60efa6ca9a642a603c2b04e6f914f986185503aca9f46ceeaec967865",
Msg => "dd3e68b757ffe06068e52005889bfbc1b43bf0a11164f35cd38d713e5d998e66a9abb131eb3b42f6716ab2f4ce92bc883722eba42da95d7c5d30c682c4cdb795167521756112157bedd5cd8768cef0393fba12644f1c7abfbd8f29de225a1861ec45c06c01abdf57a5d17aa69d761e3b94ab6ccabfe5d58ebd51a13ac1673633",
Mac => "104ac1da3bc023eb3a94c45f7c42be51");
Test_HMAC
(Key => "545514c74c932e3ed856e93d878ad42cedf8e04434bd09a1d4fa38989ece684aff8108798302a19b9894b92d95c4f74afa9e887cf920c0d236ef0533cc49e9f1903b96a199146f2b0019f41de47ae645",
Msg => "0a20bb48b5a3e4f47b2fe7312c223cec1271936281eb0a88afc2a2aac647f45238f5206b53b107a61550ba1d415a3137b20d41cbf0a5c88801db2b9482ac0273f65b112b5db97ba509a43257adceb220b7c0ef73df1e8bb8002c4def2791cf97ea5b76cefc44a7b9fe33382697062570c68f85a377dcbce155bcf105e07ec385",
Mac => "f72b19e31efa84db9775dcdab258b91a");
Test_HMAC
(Key => "e79461f00c4c05e2e01808de1926f41aa8f45ea5ebb5baf124f674902a813c3b5e81a118e1e8e13d040eff70009a1730e8a6effadb1ecec57e6991cfa94cfb9b610b4d3a07d116cbce514d3e73ae9d5d",
Msg => "166cdbea93469428e66efe853b6c4df9fb13db05f4126deab4c5b81a355124ecc0efcf930b88d551a583cfe893db99523c7459b182afbc89323c832d9e2f3f77885658bc42ca54ff14c55665deb3e5e9fe8cef5174600e614434094e1c0c9e7637497f4d81359a9bfcdd9de5621fba280c03a8ce124feadab4555366f910ca4f",
Mac => "04d599b40b7623ca25c8ea694aec3afd");
Test_HMAC
(Key => "48eff7d489f9b25c0c65cb3a37d4efba3a84f79be7cf62b5c3f403e05d1af712de92dac7e25d3aa686ee4c61c230deddfacb8d93cfa438363ba2b595ddb8c2c491203e7644e499ae07a389976192feaf",
Msg => "c2412a6d1d52d12c0a54b8f5701ea58adaa11a767ad57a9e6ff46c1943e78441b8fd210ac4e39193dad17cfb6b017f76ad6517a09b99c1113d175f3129aade4d4a2516ebe054f15bc833d08ffe5e2a2d60c976e1b4b14cf8edd2c72baadb2db8001fd2b8798d39ac5ce27d592f1defd67b3301e3cf05637c078f6baece62baaa",
Mac => "7bf44b98d95c3a57d83f8e8bf82a1cb3");
Test_HMAC
(Key => "6ad25e9dabd163d092e124fa0ad1867fbb3e020389074a7c5e01308c2aecc40f28a6bdf0629f1b40778d0a899c61085fe1794a39b6175c7fad1209e481cb7af65863a2f3452bd9df115cc6d33b098398",
Msg => "77517dbfda50493a04445d72430ea3f6fd54bb31fc81f2920a0d72eabefeb61595af41dc44d0901a4dae4d1ed1b4c551a5329c18a85ebffc53999b0991f38d73d1f099805a8d5ea1df7e49e254ba0a85003944ead2fc89b3f84f8525ae4b79d0549eec72c48f9d19e23cbb88752658dc35f01c6f246436fd22b79805bc0e6472",
Mac => "69211fd5573b030e379f7661ae6e6d57");
Test_HMAC
(Key => "58812ce4018d2cb65571271492fef87c06d703d4d52819b8f7959c138071e3ec2431df83fa20ff9d8054521ce0e0ecd2714b8a97814179995289b3f462374c83ef230cf5bb995e230d5268a0f8a37c92",
Msg => "e88b88545af54f3559594239f0e4f0854770d576d3f02c2aca0f0543da1497e71a09d70b411c4af2164517f027296074be3fd24611317b0cb985dc13657c404cd03a4c95f028d63a7197fbbc61a66bd12d6508abcc3ab07d3a84563c287f58a3f2680c79d1e19c16529615240621baa37b2b9e2f6cd4728635559b4589e488f2",
Mac => "85c9afe1502539c3140777de9b5afe35");
Test_HMAC
(Key => "20c0db0aab2f9be21d2bf0421a16c6390a0bdd57c9c11cb4a0b22933757c36083e871e78bce8b0e065854af9a27aab5a3abc023f0efc4a8808cfda054e0b38f0bb742fbb8f98210d65f79e07666734cb",
Msg => "02140f7b50f2600961ced8b36dd48b8e3f70c2108c55ef2d83c4e6c0a50b492dd74c4444b57f7b692aba41f23db00bd12e792473c291a2e8db2298434b868d44ea072d34e7ea3f115badd7eb248ccd8ef04a6d61982d708eb04b2c635c0407f964d031138b3b93481d2d0265c86fb90dac6b06a2b533436929c508e87d8e9f93",
Mac => "66aacb93fac3b3ab7f9a61ea907f863b");
Test_HMAC
(Key => "282d222b848ce96372409931abe8e1db709914b2d6dd213d62fbc593d579ff0949e0c50d7dbff5526ef28e2e27242040d99381552e13c28cdb5661b9756ac0088583d6e3defb25152e97ec2fd40c9d2a",
Msg => "7b7ba2a854840b24fd75ae12ebc2c6144bb2065c95abd31164b0b0f58528fa464ee1d5e2315466ae912b4337d300279ab968eba2eb30b131d7e663e1bb9b5cea00e86447ca2fe214cd234d3b628be44fda439fb81283651147637fce2c9f4d223a983720489ce7205b67b564bfea63fb574b0be6312c557a5d30ed0500bb35b4",
Mac => "5e671f68bee18089e4fb7fb8ce85e66d");
Test_HMAC
(Key => "82a19090190ef59e77a26cde0e1799ec5b0a796bc64e5af8ca862b5d55f3f607728aabbb254a1f8496cc54f0721cfb7b8fc7374ccf35a41f463998839fe7a945bba66f2c9c868be682d3e74353ea40a1",
Msg => "c1e969ae81507ce3dd94ef0a21da24935129daceca79f3a4270d7a856203e4a13b2a965bde13a8fac06be9a2ca872384b941a051c503ecf48021dd80026cd167430437eec86d51dd82e5377bf3f520b99247ddae71b7a6431dac1930c5a980279f1f534e8886fef3ebabe37ce34ca39ca4e299cd17bea8fac457377bf5e37947",
Mac => "b1fbf176cb48f5a90db4af7a555a0c65");
Test_HMAC
(Key => "76280c24849f0c384d6e5b512a9fb1dd2131da0307b2ffdce71027e0a8acfd9ee9b0d4b130a3e8ef443ae7e3d771b07e68db5a096836785e9c439b58c2d5198877270d2958729f5668bf867bb2facb0a",
Msg => "09caedbd5568cc3ad0590b7d409fbc26547a2a20d9d0b22630d2d58500dd8b23289ed9c0f87aa57ca02dca99e8b1688322617d0d5d5ebafedc328fccc7b389a71f2addb9f7b545ade2ea0a6ea8bd62313da4fdb5f3f9dbc9ee9f6010d8e8aa01d7b62231bce151d57ed9f682e68d55388b8bd19f0168bd904e6270d79d449738",
Mac => "d65dfc5a7d8477da3f29a4ea7809f265");
Test_HMAC
(Key => "72ce9cfd27b714419bde4dcd9b377dc840bdc3adaf5a734c0307af128834378b2a6a81252d2f0d371e2af3410987be76ec9d7c776cce1662c7afde0b0a696789846099f57a12046e1c417560b854c706",
Msg => "08df48713db1b8ab2b51e05cde25dc3dfbce1b12045bc181d8bc492479796fdd12a44d6a390cc43971b31d7df382f081ae3c453c8cb1fa27f734654b9c4e399e6eb4ae8fee77dce0aa7b68b4042a63e935696fa792cb24390d05b21cfea3c75624f9b309e65bca48df9109299a85fd1c9a3fe17b9e130762231979c029dedfae",
Mac => "cb314cbfe1f935b03adb10e5a8b88c96");
Test_HMAC
(Key => "34991e9f5b19fc2b847a87be72ff49c99ecf19d837ee3e23686cd760d9dd7adc78091bca79e42fdb9bc0120faec1a6ca52913e2a0156ba9850e1f39d712859f7fdf7daedf0e206dff67e7121e5d1590a",
Msg => "a204be1fc04372eed3c9e5ccd1435a02b357317e78960b6e6cac2f0eaada2dbee0a7c15852d2f9c0228a9abdcee1c107fa7fc6a170936568651020edfe15df8012acda8d32b8b82ce629f8f33a72910e793dd592395d9b0f97049d65c4361fd8c17dd26666dff757a90dc7171ddd1341b9fa28fcdbdaf58a8cf1701e062535ee",
Mac => "548cba2de5c3944be4d48ec1a2a34d9e");
Test_HMAC
(Key => "4ddd00d0ab6aab2100ce9754c3b3987c06f7e58656011d26e3518711e15b9e6d2d96cd8534d077c211c43ad7f5ee753bcc9e07dc1d4c5a12322ba1d17a005d242b3526d62b29a87231cbec6f2867d9a4",
Msg => "28be0d9e62dc89e2a913064c0d3dbfb35a0c7766f756741b0eafcc28ed3ddff6adc825b211112a45b065d6875771f2afa958e80f0803cafeb9b9961542efb99e1761d1497661b721906fbdbfe90b34bd01c7326e34a092ccdf8e3bb2c45aa64cb0b09acb5b753a5d8f5a425c8cb28ec5ac81dced43d5d26fc95943693b27aee8",
Mac => "393238d3afdb7d970b966d374fe097ec8797a870");
Test_HMAC
(Key => "7a31553b05e96a8da0a4d5b81a857d192afb6aabb1f127d740456a8eda7cf696fbb4c121d8d952a4e91c6ee6a5a1f3588d7804a46bcf6688dc662ae50c438d13c1a61c789b3f1c599a9f28efe0ed1cbe",
Msg => "fb091ddd95b100dfcf892d78e5e770d3a37b8c3885df803c1d6f0935b55b68f136fb65a84862942ebb35d76d26be2413cd3c8988c87d6d2362af189dc07476c6c33417762eb77bc70cf38d814c226dd6af187250e4d47007f1553617d4af5b516a5d3b3191d93c10896a569ba13dd2840fb851781f0b115090086c8b3a34a1fc",
Mac => "0fdd3f836dd7e5c506ab21adde9ae5dc09cb359d");
Test_HMAC
(Key => "6445f6d884fbd57a1eec0716f893aa9f4728aaa07d2038da62f3782e66217abe35776c508d8e0ef34c9666e4ce51b4b27562a8a189c8d34c43a65c8f2445f4a48b5b0b8c878e44b1ea3427c99f5d17fd",
Msg => "9f63b0edfaf83bafce6c4e680bc075c7b3baf15733e5aea7f3d975a82cbc6356fa099a9ab290366f75bf8345051f6da2d821370f6b1b7032d98e2338acaa4f76f314964f95e63958e4f844ba755e06d83031c432a393af899bed1245f67bd013b30b0ed24b012db0449ffb9003832ab0e2710188825351f5637eab96b137d076",
Mac => "090cedb3f2833a3f260b0937baae56267a6cd935");
Test_HMAC
(Key => "2967fa4c626d18a77aee781aa5200c227ffe703ca0901e4a706ce1393c7d8ce18a03eb2caadbfa7b8e015545dc53f0014097084707c05932ea6d920827b3061dd71ca4f47bef29a8d8b2948a05eeda0c",
Msg => "b02dcae915a6a6be9d3c9bf3fc61a99ec3f181b4e3b0321f6cf304119b9da497144d82716cd67821eaf0ac428f2db71b532e0774b21681a8673f6bfc782c8a2f72bf8753f6ac98db742e5cf437f90619a26fbde1b916431ce34ad51fed2f535c53eaa136bb114d13c35f72b2fcaddcbf361d6ca4ff99bea3667c0a21058e4845",
Mac => "ccbecd82cf4b29b535a9d57137b853076de78ddd");
Test_HMAC
(Key => "58fcc3895930c2fcf0d7c934a4ec3625633509e3c776466f98e49bd091dc436667d52a7c0794521c1f9f7527e1f3eca504f9cf590bb75e98c9439f5c257e49951bfee1bf034c23b91650a3d52e09b42c",
Msg => "ee880b8150bc9b86607012a9a3e737e2407598d659897ffc9beb22fe14411a6245d8166979a1d137557a4135afaf12b4a4c152d3e4666ea251d05d87c9321be13f8159ec117873e595dea26ef50b73333ea977ceb3b83ce867d47da10bbb9632040a3ad1c14768d64b249b1b1d0242a837b56f906e87d316067fea1482e3739e",
Mac => "d8013127f8491c97f1d5d275cabeb1ba3b71a2a4");
Test_HMAC
(Key => "f6fb322a18bac34c75998040511cf04877344e7d2b6324135f201cde2a7d121575076d57f8eeb0eb65664c4ce24cb9e5bd0dc4195bc42b8672a2678b7893c9075c1ec864738d9ad5b54f01db299a680e",
Msg => "c280f5b782a0ba40a15699d680129b7207aa89c8ea94511c2b59aa57e146fb5a37657992b7ac90ccc973854b762c5918724ef09a5a9273663a62f258528e4ee31a4256a58335303f8022fb63c57cb22fce5e53b924c141ebdcf1e79160429fb072fed2196da3603fce4b4246f46c6e5c24c1fa4cd088855019eed32792c8b768",
Mac => "75cb23746c04f583b8ac78998537d98022ef2440");
Test_HMAC
(Key => "e03e23e502700421f0018449c0fc9164ea488c1d00849fc69936519e8f25574f6a03adbb1b4fe6f8ee7ac199ba49fc305a7a6d1161aa4e580a76d92d6ee11546faf5efae1fae8cc54b13de8919a67513",
Msg => "b949df3b02871bea0976873a9c76942ac934ce63ac2956d2856492970d8a231e0b1b178b22f6605ced2085494ec1986f026f68ae79aff750e5b92feb927cd08875e2ad04075518b754829b544e5de910686513076029ffdb5c0b179e39443ef22028086e5aab2a4465252f2147526d55229d3834099e55bc12e1b178ace953a3",
Mac => "d78807f2a69d8e348cbd2c2d745f342397e20a41");
Test_HMAC
(Key => "9e8c665ba53854f0fd27ec45eccfd03d58d1360a3a94f5f24f2ddf52118352e3e5b00a3c96aa39980222dada13ac42cef121f8b27641c6f5e39d103ed1b565b06a5d546dd8658158fe78f8206645c07a",
Msg => "d1d94bc59465657e9cf4020239e6164e00c707f8c4764d70c2873b871ce51c2d89bc827f4a96db0160c44527fcffa41b374ff1ba032cd5df61e376e5d53c9167175ac94a0ce23efef4606200e5e608a478f6be11c2a15d8d86f1defba8856fa1e57bc62fc293b6fdc2900095dce26b712c831706e91f0e0197771cd07e07e164",
Mac => "9602a3a1fd2dc3c55df5815ac0517001f8c6593b");
Test_HMAC
(Key => "05b0363fc500dccbe78ca18ac7d3521d539dee9e10e9c4325e27d5ddfca77f9bce525dacde98692fa2a963f27de87789879c1a9d91e935876400851d4a9241ccd08afee8c9fbd13f9657b3f4a5e3298b",
Msg => "a60c0e1ca329b27be58968171049a625d76154731e341b9e6066df854fee8afdbb6c0cc7b5bca0bff4cb505578a9bb416ce0167351057149598c3b0511e0097e43b493161b93ffeb88bf6352e5388581d91be58b7c2dfd92bbb8c737fd968056078bacf11cd85a69690ca9f4a11e8b4be5b9c9a3e6d747df4d918a045b3577ed",
Mac => "b95df20e4e63936b74af4ceb7ad94d4e4b56ea8d");
Test_HMAC
(Key => "5efb39ea8bbf4bdc7bd985dabab07db427bca4a85550c8d832b7ddfbe683fc52fe22acddcab261d003164241b14a2f234cf30377223b16c1f8db07b9f479b844bb3599a2d67f2ae95a2bbbb2c8c77612",
Msg => "4996ec69eb2522599ccb47ed1dd6bb0f79b585be8b68f419c03585b91f9d0844868eff3f36da472491e8fab523aa938fe0ce5302ac39e42021b13d148cd9c5b63863bb5cf081d5f2bf9c274dfa4947bc8079afe041ef62befdf8d3134e5602e7e97de865210215eaad50985caa9d1fbde41c5f005174b61bde720f5d6efa0702",
Mac => "5f009c918e2f8d7c9f9087b78af44f54518e1c5a");
Test_HMAC
(Key => "3724e4bed1e72985fd1f879394543ac9448cfb8b3363c771e55ee13f607d1a188e0f50eee2ca353d3e1b51f915bb4bc5cd83646567814476614bf95cdb933d7dfafcf7ad8a2c05e8e72339471dcba12d",
Msg => "01069a2a048aac5791e0e922efcd5292d7af1e19c0b3156d60483a936fd4ac3caea5ce55282aa6dab76383ebcb96e321674493226c5b18731aad4e8ed4a14f3523289605fef3654e49e463229bc28aac443040c38fe0c4bf4404cc8c71056dfd6a783a620f4eb05c4d4ad2f0e8b910db775d6d25b0aae1f9e535fcb4cf69cd3c",
Mac => "f92f9c4b8d423b14ac7ad924f183a1cc27de6afd");
Test_HMAC
(Key => "4718ad423439cc9d3b1f691718e34a30df9b3c4dee7ea9011f496d8a42e1e69fca394a69c6763ecf1351a4f6d0bdb40813ca4e35daca8ef845b2a29c02c3d8fe0869fb948863e0ae20243cfc5379b851",
Msg => "6ef99052e93de72a0928886350c3a86b3e1b75c81beffc65f0ad4a29d79dd1ce745b0ef1c48a696515c75dcd56dcd86a9136e531b69a88219a13e9d33f2fb553566ac22e02ebf2ccdf6e59004382a2dec4f4aecdfa8b7fdd86f5555a520216a11b10f3322dc749076e06c5249e1ccc70dd3c1ac36e2ba940ba3cd4e5987ebc60",
Mac => "f476bd42bae22e645cedf601511b1ab8f2852b2c");
Test_HMAC
(Key => "7fc4aa492a3d12da5d2de0cf9a61c0fbf9e4a2571920554a5c45582754efedf878036e7a1cd9e468a0a1d6fce7ff5fb40af983524e13c32654b8ef8f90dc3cc0fce097c00eb638b4e7457961cd0fe9ed",
Msg => "e36b3b02b86b02996c1cc21fcb70b5b30327afada1f0afdebcd1b41970c8d2f18fb384c5926d44fad63a59880565f1b8d1276f2ce9cb061f251087ee04cf77d759dd650141337abd584c520c2dcf0a61f36e9ba8790e66865c2810e37b6f8fa6abb385bfac05cd6b5c1c54b32bf72b36cfc4da293901f69cc7e1f6ffbbf142e4",
Mac => "48d48ceb4c1f3e6b1e9c0fb8515f1121b846c19b");
Test_HMAC
(Key => "b6ec7ce6448428c34fc6819d50507a2d74ae4175fd2ac53ee5e576c5c5274bb2f6f40a49f6e0c4e40d249ea130f0d858250307d0e87aa5324ee5ccbde8a03fbc2a61aab5cc0d2be471d010e7876ce3bb",
Msg => "dde1c090446d11f936517eac73d6776695c1ff3051850e32fab734cc46c280e355dca079ef3949810e7edaf19c783c187d0e0c32d074fc3a72a276ffc405837aaf74ec5fe5659ff26961531c51b56fbecb6b28455e78ea7f7237faad131659d9f290eb69ac5bd8f54fe233561bf5daff85bf9d9182f9a2a9015e07fcb95fcaa7",
Mac => "9e51be58cf2d5c8e85556b8f3d484109fb49553a");
Test_HMAC
(Key => "ceb9aedf8d6efcf0ae52bea0fa99a9e26ae81bacea0cff4d5eecf201e3bca3c3577480621b818fd717ba99d6ff958ea3d59b2527b019c343bb199e648090225867d994607962f5866aa62930d75b58f6",
Msg => "99958aa459604657c7bf6e4cdfcc8785f0abf06ffe636b5b64ecd931bd8a456305592421fc28dbcccb8a82acea2be8e54161d7a78e0399a6067ebaca3f2510274dc9f92f2c8ae4265eec13d7d42e9f8612d7bc258f913ecb5a3a5c610339b49fb90e9037b02d684fc60da835657cb24eab352750c8b463b1a8494660d36c3ab2",
Mac => "4ac41ab89f625c60125ed65ffa958c6b490ea670");
end Test_HMAC_NIST;
---------------------------------------------------------------------------
procedure Register_Tests (T : in out Test_Case) is
use AUnit.Test_Cases.Registration;
begin
Register_Routine (T, Test_HMAC_RFC'Access, "HMAC SHA-1 (RFC 2202)");
Register_Routine (T, Test_HMAC_NIST'Access, "HMAC SHA-1 (NIST L=20)");
end Register_Tests;
---------------------------------------------------------------------------
function Name (T : Test_Case) return Test_String is
begin
return Format ("HMAC SHA1");
end Name;
end LSC_Test_HMAC_SHA1;
|
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- R I D E N T --
-- --
-- S p e c --
-- --
-- Copyright (C) 1992-2012, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
-- This package defines the set of restriction identifiers for use by the
-- compiler and binder. It is in a separate package from Restrict so that
-- it can be used by the binder without dragging in unneeded compiler
-- packages.
-- Note: the actual definitions of the types are in package System.Rident,
-- and this package is merely an instantiation of that package. The point
-- of this level of generic indirection is to allow the compile time use
-- to have the image tables available (this package is not compiled with
-- Discard_Names), while at run-time we do not want those image tables.
-- Rather than have clients instantiate System.Rident directly, we have the
-- single instantiation here at the library level, which means that we only
-- have one copy of the image tables
with System.Rident;
package Rident is new System.Rident;
|
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- S Y S T E M . F A T _ F L T --
-- --
-- S p e c --
-- --
-- Copyright (C) 1992-2020, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
-- This package contains an instantiation of the floating-point attribute
-- runtime routines for the type Float.
with System.Fat_Gen;
package System.Fat_Flt is
pragma Pure;
-- Note the only entity from this package that is accessed by Rtsfind
-- is the name of the package instantiation. Entities within this package
-- (i.e. the individual floating-point attribute routines) are accessed
-- by name using selected notation.
package Attr_Float is new System.Fat_Gen (Float);
end System.Fat_Flt;
|
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
package body Program.Nodes.Type_Declarations is
function Create
(Type_Token : not null Program.Lexical_Elements
.Lexical_Element_Access;
Name : not null Program.Elements.Defining_Identifiers
.Defining_Identifier_Access;
Discriminant_Part : Program.Elements.Definitions.Definition_Access;
Is_Token : Program.Lexical_Elements.Lexical_Element_Access;
Definition : not null Program.Elements.Definitions
.Definition_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 Type_Declaration is
begin
return Result : Type_Declaration :=
(Type_Token => Type_Token, Name => Name,
Discriminant_Part => Discriminant_Part, Is_Token => Is_Token,
Definition => Definition, With_Token => With_Token,
Aspects => Aspects, Semicolon_Token => Semicolon_Token,
Enclosing_Element => null)
do
Initialize (Result);
end return;
end Create;
function Create
(Name : not null Program.Elements.Defining_Identifiers
.Defining_Identifier_Access;
Discriminant_Part : Program.Elements.Definitions.Definition_Access;
Definition : not null Program.Elements.Definitions
.Definition_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_Type_Declaration is
begin
return Result : Implicit_Type_Declaration :=
(Name => Name, Discriminant_Part => Discriminant_Part,
Definition => Definition, 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 Name
(Self : Base_Type_Declaration)
return not null Program.Elements.Defining_Identifiers
.Defining_Identifier_Access is
begin
return Self.Name;
end Name;
overriding function Discriminant_Part
(Self : Base_Type_Declaration)
return Program.Elements.Definitions.Definition_Access is
begin
return Self.Discriminant_Part;
end Discriminant_Part;
overriding function Definition
(Self : Base_Type_Declaration)
return not null Program.Elements.Definitions.Definition_Access is
begin
return Self.Definition;
end Definition;
overriding function Aspects
(Self : Base_Type_Declaration)
return Program.Elements.Aspect_Specifications
.Aspect_Specification_Vector_Access is
begin
return Self.Aspects;
end Aspects;
overriding function Type_Token
(Self : Type_Declaration)
return not null Program.Lexical_Elements.Lexical_Element_Access is
begin
return Self.Type_Token;
end Type_Token;
overriding function Is_Token
(Self : Type_Declaration)
return Program.Lexical_Elements.Lexical_Element_Access is
begin
return Self.Is_Token;
end Is_Token;
overriding function With_Token
(Self : Type_Declaration)
return Program.Lexical_Elements.Lexical_Element_Access is
begin
return Self.With_Token;
end With_Token;
overriding function Semicolon_Token
(Self : Type_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_Type_Declaration)
return Boolean is
begin
return Self.Is_Part_Of_Implicit;
end Is_Part_Of_Implicit;
overriding function Is_Part_Of_Inherited
(Self : Implicit_Type_Declaration)
return Boolean is
begin
return Self.Is_Part_Of_Inherited;
end Is_Part_Of_Inherited;
overriding function Is_Part_Of_Instance
(Self : Implicit_Type_Declaration)
return Boolean is
begin
return Self.Is_Part_Of_Instance;
end Is_Part_Of_Instance;
procedure Initialize (Self : in out Base_Type_Declaration'Class) is
begin
Set_Enclosing_Element (Self.Name, Self'Unchecked_Access);
if Self.Discriminant_Part.Assigned then
Set_Enclosing_Element (Self.Discriminant_Part, Self'Unchecked_Access);
end if;
Set_Enclosing_Element (Self.Definition, Self'Unchecked_Access);
for Item in Self.Aspects.Each_Element loop
Set_Enclosing_Element (Item.Element, Self'Unchecked_Access);
end loop;
null;
end Initialize;
overriding function Is_Type_Declaration
(Self : Base_Type_Declaration)
return Boolean is
pragma Unreferenced (Self);
begin
return True;
end Is_Type_Declaration;
overriding function Is_Declaration
(Self : Base_Type_Declaration)
return Boolean is
pragma Unreferenced (Self);
begin
return True;
end Is_Declaration;
overriding procedure Visit
(Self : not null access Base_Type_Declaration;
Visitor : in out Program.Element_Visitors.Element_Visitor'Class) is
begin
Visitor.Type_Declaration (Self);
end Visit;
overriding function To_Type_Declaration_Text
(Self : in out Type_Declaration)
return Program.Elements.Type_Declarations.Type_Declaration_Text_Access is
begin
return Self'Unchecked_Access;
end To_Type_Declaration_Text;
overriding function To_Type_Declaration_Text
(Self : in out Implicit_Type_Declaration)
return Program.Elements.Type_Declarations.Type_Declaration_Text_Access is
pragma Unreferenced (Self);
begin
return null;
end To_Type_Declaration_Text;
end Program.Nodes.Type_Declarations;
|
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- P R E P C O M P --
-- --
-- B o d y --
-- --
-- Copyright (C) 2003-2020, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
-- for more details. You should have received a copy of the GNU General --
-- Public License distributed with GNAT; see file COPYING3. If not, go to --
-- http://www.gnu.org/licenses for a complete copy of the license. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
with Atree; use Atree;
with Errout; use Errout;
with Lib.Writ; use Lib.Writ;
with Opt; use Opt;
with Osint; use Osint;
with Prep; use Prep;
with Scans; use Scans;
with Scn; use Scn;
with Sinput.L; use Sinput.L;
with Stringt; use Stringt;
with Table;
package body Prepcomp is
No_Preprocessing : Boolean := True;
-- Set to False if there is at least one source that needs to be
-- preprocessed.
Source_Index_Of_Preproc_Data_File : Source_File_Index := No_Source_File;
-- The following variable should be a constant, but this is not possible
-- because its type GNAT.Dynamic_Tables.Instance has a component P of
-- uninitialized private type GNAT.Dynamic_Tables.Table_Private and there
-- are no exported values for this private type. Warnings are Off because
-- it is never assigned a value.
pragma Warnings (Off);
No_Mapping : Prep.Symbol_Table.Instance;
pragma Warnings (On);
type Preproc_Data is record
Mapping : Symbol_Table.Instance;
File_Name : File_Name_Type := No_File;
Deffile : String_Id := No_String;
Undef_False : Boolean := False;
Always_Blank : Boolean := False;
Comments : Boolean := False;
No_Deletion : Boolean := False;
List_Symbols : Boolean := False;
Processed : Boolean := False;
end record;
-- Structure to keep the preprocessing data for a file name or for the
-- default (when Name_Id = No_Name).
No_Preproc_Data : constant Preproc_Data :=
(Mapping => No_Mapping,
File_Name => No_File,
Deffile => No_String,
Undef_False => False,
Always_Blank => False,
Comments => False,
No_Deletion => False,
List_Symbols => False,
Processed => False);
Default_Data : Preproc_Data := No_Preproc_Data;
-- The preprocessing data to be used when no specific preprocessing data
-- is specified for a source.
Default_Data_Defined : Boolean := False;
-- True if source for which no specific preprocessing is specified need to
-- be preprocess with the Default_Data.
Current_Data : Preproc_Data := No_Preproc_Data;
package Preproc_Data_Table is new Table.Table
(Table_Component_Type => Preproc_Data,
Table_Index_Type => Int,
Table_Low_Bound => 1,
Table_Initial => 5,
Table_Increment => 100,
Table_Name => "Prepcomp.Preproc_Data_Table");
-- Table to store the specific preprocessing data
Command_Line_Symbols : Symbol_Table.Instance;
-- A table to store symbol definitions specified on the command line with
-- -gnateD switches.
package Dependencies is new Table.Table
(Table_Component_Type => Source_File_Index,
Table_Index_Type => Int,
Table_Low_Bound => 1,
Table_Initial => 10,
Table_Increment => 100,
Table_Name => "Prepcomp.Dependencies");
-- Table to store the dependencies on preprocessing files
procedure Add_Command_Line_Symbols;
-- Add the command line symbol definitions, if any, to Prep.Mapping table
procedure Skip_To_End_Of_Line;
-- Ignore errors and scan up to the next end of line or the end of file
------------------------------
-- Add_Command_Line_Symbols --
------------------------------
procedure Add_Command_Line_Symbols is
Symbol_Id : Prep.Symbol_Id;
begin
for J in 1 .. Symbol_Table.Last (Command_Line_Symbols) loop
Symbol_Id := Prep.Index_Of (Command_Line_Symbols.Table (J).Symbol);
if Symbol_Id = No_Symbol then
Symbol_Table.Increment_Last (Prep.Mapping);
Symbol_Id := Symbol_Table.Last (Prep.Mapping);
end if;
Prep.Mapping.Table (Symbol_Id) := Command_Line_Symbols.Table (J);
end loop;
end Add_Command_Line_Symbols;
--------------------
-- Add_Dependency --
--------------------
procedure Add_Dependency (S : Source_File_Index) is
begin
Dependencies.Increment_Last;
Dependencies.Table (Dependencies.Last) := S;
end Add_Dependency;
----------------------
-- Add_Dependencies --
----------------------
procedure Add_Dependencies is
begin
for Index in 1 .. Dependencies.Last loop
Add_Preprocessing_Dependency (Dependencies.Table (Index));
end loop;
end Add_Dependencies;
-------------------
-- Check_Symbols --
-------------------
procedure Check_Symbols is
begin
-- If there is at least one switch -gnateD specified
if Symbol_Table.Last (Command_Line_Symbols) >= 1 then
Current_Data := No_Preproc_Data;
No_Preprocessing := False;
Current_Data.Processed := True;
-- Start with an empty, initialized mapping table; use Prep.Mapping,
-- because Prep.Index_Of uses Prep.Mapping.
Prep.Mapping := No_Mapping;
Symbol_Table.Init (Prep.Mapping);
-- Add the command line symbols
Add_Command_Line_Symbols;
-- Put the resulting Prep.Mapping in Current_Data, and immediately
-- set Prep.Mapping to nil.
Current_Data.Mapping := Prep.Mapping;
Prep.Mapping := No_Mapping;
-- Set the default data
Default_Data := Current_Data;
Default_Data_Defined := True;
end if;
end Check_Symbols;
-----------------------------------
-- Parse_Preprocessing_Data_File --
-----------------------------------
procedure Parse_Preprocessing_Data_File (N : File_Name_Type) is
OK : Boolean := False;
Dash_Location : Source_Ptr;
Symbol_Data : Prep.Symbol_Data;
Symbol_Id : Prep.Symbol_Id;
T : constant Nat := Total_Errors_Detected;
begin
-- Load the preprocessing data file
Source_Index_Of_Preproc_Data_File := Load_Preprocessing_Data_File (N);
-- Fail if preprocessing data file cannot be found
if Source_Index_Of_Preproc_Data_File = No_Source_File then
Get_Name_String (N);
Fail ("preprocessing data file """
& Name_Buffer (1 .. Name_Len)
& """ not found");
end if;
-- Initialize scanner and set its behavior for processing a data file
Scn.Scanner.Initialize_Scanner (Source_Index_Of_Preproc_Data_File);
Scn.Scanner.Set_End_Of_Line_As_Token (True);
Scn.Scanner.Reset_Special_Characters;
For_Each_Line : loop
<<Scan_Line>>
Scan;
exit For_Each_Line when Token = Tok_EOF;
if Token = Tok_End_Of_Line then
goto Scan_Line;
end if;
-- Line is not empty
OK := False;
No_Preprocessing := False;
Current_Data := No_Preproc_Data;
case Token is
when Tok_Asterisk =>
-- Default data
if Default_Data_Defined then
Error_Msg
("multiple default preprocessing data", Token_Ptr);
else
OK := True;
Default_Data_Defined := True;
end if;
when Tok_String_Literal =>
-- Specific data
String_To_Name_Buffer (String_Literal_Id);
Canonical_Case_File_Name (Name_Buffer (1 .. Name_Len));
Current_Data.File_Name := Name_Find;
OK := True;
for Index in 1 .. Preproc_Data_Table.Last loop
if Current_Data.File_Name =
Preproc_Data_Table.Table (Index).File_Name
then
Error_Msg_File_1 := Current_Data.File_Name;
Error_Msg
("multiple preprocessing data for{", Token_Ptr);
OK := False;
exit;
end if;
end loop;
when others =>
Error_Msg ("`'*` or literal string expected", Token_Ptr);
end case;
-- If there is a problem, skip the line
if not OK then
Skip_To_End_Of_Line;
goto Scan_Line;
end if;
-- Scan past the * or the literal string
Scan;
-- A literal string in second position is a definition file
if Token = Tok_String_Literal then
Current_Data.Deffile := String_Literal_Id;
Current_Data.Processed := False;
Scan;
else
-- If there is no definition file, set Processed to True now
Current_Data.Processed := True;
end if;
-- Start with an empty, initialized mapping table; use Prep.Mapping,
-- because Prep.Index_Of uses Prep.Mapping.
Prep.Mapping := No_Mapping;
Symbol_Table.Init (Prep.Mapping);
-- Check the switches that may follow
while Token /= Tok_End_Of_Line and then Token /= Tok_EOF loop
if Token /= Tok_Minus then
Error_Msg -- CODEFIX
("`'-` expected", Token_Ptr);
Skip_To_End_Of_Line;
goto Scan_Line;
end if;
-- Keep the location of the '-' for possible error reporting
Dash_Location := Token_Ptr;
-- Scan past the '-'
Scan;
OK := False;
Change_Reserved_Keyword_To_Symbol;
-- An identifier (or a reserved word converted to an
-- identifier) is expected and there must be no blank space
-- between the '-' and the identifier.
if Token = Tok_Identifier
and then Token_Ptr = Dash_Location + 1
then
Get_Name_String (Token_Name);
-- Check the character in the source, because the case is
-- significant.
case Sinput.Source (Token_Ptr) is
when 'a' =>
-- All source text preserved (also implies -u)
if Name_Len = 1 then
Current_Data.No_Deletion := True;
Current_Data.Undef_False := True;
OK := True;
end if;
when 'u' =>
-- Undefined symbol are False
if Name_Len = 1 then
Current_Data.Undef_False := True;
OK := True;
end if;
when 'b' =>
-- Blank lines
if Name_Len = 1 then
Current_Data.Always_Blank := True;
OK := True;
end if;
when 'c' =>
-- Comment removed lines
if Name_Len = 1 then
Current_Data.Comments := True;
OK := True;
end if;
when 's' =>
-- List symbols
if Name_Len = 1 then
Current_Data.List_Symbols := True;
OK := True;
end if;
when 'D' =>
-- Symbol definition
OK := Name_Len > 1;
if OK then
-- A symbol must be an Ada identifier; it cannot start
-- with an underline or a digit.
if Name_Buffer (2) = '_'
or else Name_Buffer (2) in '0' .. '9'
then
Error_Msg ("symbol expected", Token_Ptr + 1);
Skip_To_End_Of_Line;
goto Scan_Line;
end if;
-- Get the name id of the symbol
Symbol_Data.On_The_Command_Line := True;
Name_Buffer (1 .. Name_Len - 1) :=
Name_Buffer (2 .. Name_Len);
Name_Len := Name_Len - 1;
Symbol_Data.Symbol := Name_Find;
if Name_Buffer (1 .. Name_Len) = "if"
or else Name_Buffer (1 .. Name_Len) = "else"
or else Name_Buffer (1 .. Name_Len) = "elsif"
or else Name_Buffer (1 .. Name_Len) = "end"
or else Name_Buffer (1 .. Name_Len) = "not"
or else Name_Buffer (1 .. Name_Len) = "and"
or else Name_Buffer (1 .. Name_Len) = "then"
then
Error_Msg ("symbol expected", Token_Ptr + 1);
Skip_To_End_Of_Line;
goto Scan_Line;
end if;
-- Get the name id of the original symbol, with
-- possibly capital letters.
Name_Len := Integer (Scan_Ptr - Token_Ptr - 1);
for J in 1 .. Name_Len loop
Name_Buffer (J) :=
Sinput.Source (Token_Ptr + Text_Ptr (J));
end loop;
Symbol_Data.Original := Name_Find;
-- Scan past D<symbol>
Scan;
if Token /= Tok_Equal then
Error_Msg -- CODEFIX
("`=` expected", Token_Ptr);
Skip_To_End_Of_Line;
goto Scan_Line;
end if;
-- Scan past '='
Scan;
-- Here any reserved word is OK
Change_Reserved_Keyword_To_Symbol
(All_Keywords => True);
-- Value can be an identifier (or a reserved word)
-- or a literal string.
case Token is
when Tok_String_Literal =>
Symbol_Data.Is_A_String := True;
Symbol_Data.Value := String_Literal_Id;
when Tok_Identifier =>
Symbol_Data.Is_A_String := False;
Start_String;
for J in Token_Ptr .. Scan_Ptr - 1 loop
Store_String_Char (Sinput.Source (J));
end loop;
Symbol_Data.Value := End_String;
when others =>
Error_Msg
("literal string or identifier expected",
Token_Ptr);
Skip_To_End_Of_Line;
goto Scan_Line;
end case;
-- If symbol already exists, replace old definition
-- by new one.
Symbol_Id := Prep.Index_Of (Symbol_Data.Symbol);
-- Otherwise, add a new entry in the table
if Symbol_Id = No_Symbol then
Symbol_Table.Increment_Last (Prep.Mapping);
Symbol_Id := Symbol_Table.Last (Mapping);
end if;
Prep.Mapping.Table (Symbol_Id) := Symbol_Data;
end if;
when others =>
null;
end case;
Scan;
end if;
if not OK then
Error_Msg ("invalid switch", Dash_Location);
Skip_To_End_Of_Line;
goto Scan_Line;
end if;
end loop;
-- Add the command line symbols, if any, possibly replacing symbols
-- just defined.
Add_Command_Line_Symbols;
-- Put the resulting Prep.Mapping in Current_Data, and immediately
-- set Prep.Mapping to nil.
Current_Data.Mapping := Prep.Mapping;
Prep.Mapping := No_Mapping;
-- Record Current_Data
if Current_Data.File_Name = No_File then
Default_Data := Current_Data;
else
Preproc_Data_Table.Increment_Last;
Preproc_Data_Table.Table (Preproc_Data_Table.Last) := Current_Data;
end if;
Current_Data := No_Preproc_Data;
end loop For_Each_Line;
Scn.Scanner.Set_End_Of_Line_As_Token (False);
-- Fail if there were errors in the preprocessing data file
if Total_Errors_Detected > T then
Errout.Finalize (Last_Call => True);
Errout.Output_Messages;
Fail ("errors found in preprocessing data file """
& Get_Name_String (N) & """");
end if;
-- Record the dependency on the preprocessor data file
Add_Dependency (Source_Index_Of_Preproc_Data_File);
end Parse_Preprocessing_Data_File;
---------------------------
-- Prepare_To_Preprocess --
---------------------------
procedure Prepare_To_Preprocess
(Source : File_Name_Type;
Preprocessing_Needed : out Boolean)
is
Default : Boolean := False;
Index : Int := 0;
begin
-- By default, preprocessing is not needed
Preprocessing_Needed := False;
if No_Preprocessing then
return;
end if;
-- First, look for preprocessing data specific to the current source
for J in 1 .. Preproc_Data_Table.Last loop
if Preproc_Data_Table.Table (J).File_Name = Source then
Index := J;
Current_Data := Preproc_Data_Table.Table (J);
exit;
end if;
end loop;
-- If no specific preprocessing data, then take the default
if Index = 0 then
if Default_Data_Defined then
Current_Data := Default_Data;
Default := True;
else
-- If no default, then nothing to do
return;
end if;
end if;
-- Set the preprocessing flags according to the preprocessing data
if Current_Data.Comments and not Current_Data.Always_Blank then
Comment_Deleted_Lines := True;
Blank_Deleted_Lines := False;
else
Comment_Deleted_Lines := False;
Blank_Deleted_Lines := True;
end if;
No_Deletion := Current_Data.No_Deletion;
Undefined_Symbols_Are_False := Current_Data.Undef_False;
List_Preprocessing_Symbols := Current_Data.List_Symbols;
-- If not already done it, process the definition file
if Current_Data.Processed then
-- Set Prep.Mapping
Prep.Mapping := Current_Data.Mapping;
else
-- First put the mapping in Prep.Mapping, because Prep.Parse_Def_File
-- works on Prep.Mapping.
Prep.Mapping := Current_Data.Mapping;
String_To_Name_Buffer (Current_Data.Deffile);
declare
N : constant File_Name_Type := Name_Find;
Deffile : constant Source_File_Index := Load_Definition_File (N);
T : constant Nat := Total_Errors_Detected;
Add_Deffile : Boolean := True;
begin
if Deffile <= No_Source_File then
Fail
("definition file """ & Get_Name_String (N) & """ not found");
end if;
-- Initialize the preprocessor and set the characteristics of the
-- scanner for a definition file.
Prep.Setup_Hooks
(Error_Msg => Errout.Error_Msg'Access,
Scan => Scn.Scanner.Scan'Access,
Set_Ignore_Errors => Errout.Set_Ignore_Errors'Access,
Put_Char => null,
New_EOL => null);
Scn.Scanner.Set_End_Of_Line_As_Token (True);
Scn.Scanner.Reset_Special_Characters;
-- Initialize the scanner and process the definition file
Scn.Scanner.Initialize_Scanner (Deffile);
Prep.Parse_Def_File;
-- Reset the behavior of the scanner to the default
Scn.Scanner.Set_End_Of_Line_As_Token (False);
-- Fail if errors were found while processing the definition file
if T /= Total_Errors_Detected then
Errout.Finalize (Last_Call => True);
Errout.Output_Messages;
Fail ("errors found in definition file """
& Get_Name_String (N)
& """");
end if;
for Index in 1 .. Dependencies.Last loop
if Dependencies.Table (Index) = Deffile then
Add_Deffile := False;
exit;
end if;
end loop;
if Add_Deffile then
Add_Dependency (Deffile);
end if;
end;
-- Get back the mapping, indicate that the definition file is
-- processed and store back the preprocessing data.
Current_Data.Mapping := Prep.Mapping;
Current_Data.Processed := True;
if Default then
Default_Data := Current_Data;
else
Preproc_Data_Table.Table (Index) := Current_Data;
end if;
end if;
Preprocessing_Needed := True;
end Prepare_To_Preprocess;
---------------------------------------------
-- Process_Command_Line_Symbol_Definitions --
---------------------------------------------
procedure Process_Command_Line_Symbol_Definitions is
Symbol_Data : Prep.Symbol_Data;
Found : Boolean := False;
begin
Symbol_Table.Init (Command_Line_Symbols);
-- The command line definitions have been stored temporarily in
-- array Symbol_Definitions.
for Index in 1 .. Preprocessing_Symbol_Last loop
-- Check each symbol definition, fail immediately if syntax is not
-- correct.
Check_Command_Line_Symbol_Definition
(Definition => Preprocessing_Symbol_Defs (Index).all,
Data => Symbol_Data);
Found := False;
-- If there is already a definition for this symbol, replace the old
-- definition by this one.
for J in 1 .. Symbol_Table.Last (Command_Line_Symbols) loop
if Command_Line_Symbols.Table (J).Symbol = Symbol_Data.Symbol then
Command_Line_Symbols.Table (J) := Symbol_Data;
Found := True;
exit;
end if;
end loop;
-- Otherwise, create a new entry in the table
if not Found then
Symbol_Table.Increment_Last (Command_Line_Symbols);
Command_Line_Symbols.Table
(Symbol_Table.Last (Command_Line_Symbols)) := Symbol_Data;
end if;
end loop;
end Process_Command_Line_Symbol_Definitions;
-------------------------
-- Skip_To_End_Of_Line --
-------------------------
procedure Skip_To_End_Of_Line is
begin
Set_Ignore_Errors (To => True);
while Token /= Tok_End_Of_Line and then Token /= Tok_EOF loop
Scan;
end loop;
Set_Ignore_Errors (To => False);
end Skip_To_End_Of_Line;
end Prepcomp;
|
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Program.Elements.Declarations;
with Program.Lexical_Elements;
with Program.Elements.Defining_Names;
with Program.Elements.Parameter_Specifications;
with Program.Elements.Expressions;
with Program.Elements.Aspect_Specifications;
package Program.Elements.Function_Renaming_Declarations is
pragma Pure (Program.Elements.Function_Renaming_Declarations);
type Function_Renaming_Declaration is
limited interface and Program.Elements.Declarations.Declaration;
type Function_Renaming_Declaration_Access is
access all Function_Renaming_Declaration'Class with Storage_Size => 0;
not overriding function Name
(Self : Function_Renaming_Declaration)
return not null Program.Elements.Defining_Names.Defining_Name_Access
is abstract;
not overriding function Parameters
(Self : Function_Renaming_Declaration)
return Program.Elements.Parameter_Specifications
.Parameter_Specification_Vector_Access is abstract;
not overriding function Result_Subtype
(Self : Function_Renaming_Declaration)
return not null Program.Elements.Element_Access is abstract;
not overriding function Renamed_Function
(Self : Function_Renaming_Declaration)
return Program.Elements.Expressions.Expression_Access is abstract;
not overriding function Aspects
(Self : Function_Renaming_Declaration)
return Program.Elements.Aspect_Specifications
.Aspect_Specification_Vector_Access is abstract;
not overriding function Has_Not
(Self : Function_Renaming_Declaration)
return Boolean is abstract;
not overriding function Has_Overriding
(Self : Function_Renaming_Declaration)
return Boolean is abstract;
not overriding function Has_Not_Null
(Self : Function_Renaming_Declaration)
return Boolean is abstract;
type Function_Renaming_Declaration_Text is limited interface;
type Function_Renaming_Declaration_Text_Access is
access all Function_Renaming_Declaration_Text'Class
with Storage_Size => 0;
not overriding function To_Function_Renaming_Declaration_Text
(Self : aliased in out Function_Renaming_Declaration)
return Function_Renaming_Declaration_Text_Access is abstract;
not overriding function Not_Token
(Self : Function_Renaming_Declaration_Text)
return Program.Lexical_Elements.Lexical_Element_Access is abstract;
not overriding function Overriding_Token
(Self : Function_Renaming_Declaration_Text)
return Program.Lexical_Elements.Lexical_Element_Access is abstract;
not overriding function Function_Token
(Self : Function_Renaming_Declaration_Text)
return not null Program.Lexical_Elements.Lexical_Element_Access
is abstract;
not overriding function Left_Bracket_Token
(Self : Function_Renaming_Declaration_Text)
return Program.Lexical_Elements.Lexical_Element_Access is abstract;
not overriding function Right_Bracket_Token
(Self : Function_Renaming_Declaration_Text)
return Program.Lexical_Elements.Lexical_Element_Access is abstract;
not overriding function Return_Token
(Self : Function_Renaming_Declaration_Text)
return not null Program.Lexical_Elements.Lexical_Element_Access
is abstract;
not overriding function Not_Token_2
(Self : Function_Renaming_Declaration_Text)
return Program.Lexical_Elements.Lexical_Element_Access is abstract;
not overriding function Null_Token
(Self : Function_Renaming_Declaration_Text)
return Program.Lexical_Elements.Lexical_Element_Access is abstract;
not overriding function Renames_Token
(Self : Function_Renaming_Declaration_Text)
return Program.Lexical_Elements.Lexical_Element_Access is abstract;
not overriding function With_Token
(Self : Function_Renaming_Declaration_Text)
return Program.Lexical_Elements.Lexical_Element_Access is abstract;
not overriding function Semicolon_Token
(Self : Function_Renaming_Declaration_Text)
return not null Program.Lexical_Elements.Lexical_Element_Access
is abstract;
end Program.Elements.Function_Renaming_Declarations;
|
-- The Village of Vampire by YT, このソースコードはNYSLです
with Ada.Containers.Indefinite_Doubly_Linked_Lists;
with Ada.Containers.Ordered_Maps;
with Ada.Strings.Unbounded;
package Tabula.Villages.Lists is
package User_Lists is
new Ada.Containers.Indefinite_Doubly_Linked_Lists (String);
type Village_Summary is record
Type_Code : aliased Ada.Strings.Unbounded.Unbounded_String; -- YAML type
Name : aliased Ada.Strings.Unbounded.Unbounded_String;
By : aliased Ada.Strings.Unbounded.Unbounded_String;
Term : Village_Term;
State : Village_State;
Today : Natural;
People : User_Lists.List;
end record;
function Summary (Type_Code : String; Village : Village_Type'Class)
return Village_Summary;
package Summary_Maps is
new Ada.Containers.Ordered_Maps (Village_Id, Village_Summary);
type Village_List (<>) is limited private;
type Load_Summary_Function is access function (
List : Village_List;
Id : Village_Id)
return Village_Summary;
type Create_Log_Procedure is access procedure (
List : Village_List;
Id : in Villages.Village_Id);
type Create_Index_Procedure is access procedure (
Summaries : in Summary_Maps.Map;
Update : in Boolean);
type Registered_Type is record
Type_Code : Static_String_Access;
Load_Summary : Load_Summary_Function;
Create_Log : Create_Log_Procedure;
end record;
type Registered_Type_Array is array (Positive range <>) of Registered_Type;
function Create (
Data_Directory : not null Static_String_Access;
HTML_Directory : not null Static_String_Access;
Blocking_Short_Term_File_Name : not null Static_String_Access;
Cache_File_Name : not null Static_String_Access;
Create_Index : not null Create_Index_Procedure;
Types : Registered_Type_Array)
return Village_List;
-- 村ID
function File_Name (List : Village_List; Id : Village_Id) return String;
function HTML_File_Name (List : Village_List; Id : Village_Id; Day : Natural)
return String;
function Exists (List : Village_List; Id : Village_Id) return Boolean;
function New_Village_Id (List : Village_List) return Village_Id;
-- 問い合わせ
procedure Get_Summaries (
List : in out Village_List;
Result : out Summary_Maps.Map);
-- あるユーザーが村を作っているか
function Exists_Opened_By (
Summaries : Summary_Maps.Map;
User_Id : String;
Excluding : Village_Id := Invalid_Village_Id)
return Boolean;
-- 参加数
type Village_State_Set is array (Village_State) of Boolean;
function Count_Joined_By (
Summaries : Summary_Maps.Map;
User_Id : String;
Filter : Village_State_Set;
Long_Only : Boolean := False;
Including_Escaped : Boolean := False)
return Natural;
-- 更新
procedure Update (
List : in out Village_List;
Id : Village_Id;
Summary : Village_Summary);
procedure Refresh (List : in out Village_List); -- 全部を再作成
-- 短期村作成禁止
function Blocking_Short_Term (List : Village_List) return Boolean;
private
Registered_Type_Capacity : constant := 2;
type Village_List is limited record
Data_Directory : not null Static_String_Access;
HTML_Directory : not null Static_String_Access;
Blocking_Short_Term_File_Name : not null Static_String_Access;
Cache_File_Name : not null Static_String_Access;
Create_Index : not null Create_Index_Procedure;
Map : aliased Summary_Maps.Map;
Map_Read : Boolean;
Registered_Type_Count : Natural;
Registered_Types : Registered_Type_Array (1 .. Registered_Type_Capacity);
end record;
end Tabula.Villages.Lists;
|
------------------------------------------------------------------------------
-- --
-- GNAT RUNTIME COMPONENTS --
-- --
-- S Y S T E M . W I D _ L L I --
-- --
-- B o d y --
-- --
-- $Revision$
-- --
-- Copyright (C) 1992,1993,1994 Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 2, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
-- for more details. You should have received a copy of the GNU General --
-- Public License distributed with GNAT; see file COPYING. If not, write --
-- to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, --
-- MA 02111-1307, USA. --
-- --
-- As a special exception, if other files instantiate generics from this --
-- unit, or you link this unit with other files to produce an executable, --
-- this unit does not by itself cause the resulting executable to be --
-- covered by the GNU General Public License. This exception does not --
-- however invalidate any other reasons why the executable file might be --
-- covered by the GNU Public License. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
package body System.Wid_LLI is
-----------------------------
-- Width_Long_Long_Integer --
-----------------------------
function Width_Long_Long_Integer
(Lo, Hi : Long_Long_Integer)
return Natural
is
W : Natural;
T : Long_Long_Integer;
begin
if Lo > Hi then
return 0;
else
-- Minimum value is 2, one for sign, one for digit
W := 2;
-- Get max of absolute values, but avoid bomb if we have the maximum
-- negative number (note that First + 1 has same digits as First)
T := Long_Long_Integer'Max (
abs (Long_Long_Integer'Max (Lo, Long_Long_Integer'First + 1)),
abs (Long_Long_Integer'Max (Hi, Long_Long_Integer'First + 1)));
-- Increase value if more digits required
while T >= 10 loop
T := T / 10;
W := W + 1;
end loop;
return W;
end if;
end Width_Long_Long_Integer;
end System.Wid_LLI;
|
with
AdaM.Factory;
package body AdaM.Comment
is
-- Storage Pool
--
record_Version : constant := 1;
max_Comments : constant := 5_000;
package Pool is new AdaM.Factory.Pools (".adam-store",
"comments",
max_Comments,
record_Version,
Comment.item,
Comment.view);
-- Forge
--
procedure define (Self : in out Item)
is
begin
null;
end define;
procedure destruct (Self : in out Item)
is
begin
null;
end destruct;
function new_Comment return View
is
new_View : constant Comment.view := Pool.new_Item;
begin
define (Comment.item (new_View.all));
return new_View;
end new_Comment;
procedure free (Self : in out Comment.view)
is
begin
destruct (Comment.item (Self.all));
Pool.free (Self);
end free;
-- Attributes
--
overriding
function Name (Self : in Item) return Identifier
is
pragma Unreferenced (Self);
begin
return "a_Comment";
end Name;
overriding
function Id (Self : access Item) return AdaM.Id
is
begin
return Pool.to_Id (Self);
end Id;
function Lines (Self : in Item) return text_Lines
is
begin
return Self.Lines;
end Lines;
procedure Lines_are (Self : in out Item; Now : in text_Lines)
is
begin
Self.Lines := Now;
end Lines_are;
overriding
function to_Source (Self : in Item) return text_Vectors.Vector
is
the_Source : text_Vectors.Vector;
begin
for i in 1 .. Self.Lines.Length
loop
declare
the_Line : Text renames Self.Lines.Element (Integer (i));
begin
the_Source.append ("-- " & the_Line);
end;
end loop;
return the_Source;
end to_Source;
-- Streams
--
procedure View_write (Stream : not null access Ada.Streams.Root_Stream_Type'Class;
Self : in View)
renames Pool.View_write;
procedure View_read (Stream : not null access Ada.Streams.Root_Stream_Type'Class;
Self : out View)
renames Pool.View_read;
end AdaM.Comment;
|
with
AdaM.Any,
Ada.Containers.Vectors,
Ada.Streams;
private
with
AdaM.context_Item;
package AdaM.context_Clause
is
type Item is new Any.item with private;
-- View
--
type View is access all Item'Class;
procedure View_write (Stream : not null access Ada.Streams.Root_Stream_Type'Class;
Self : in View);
procedure View_read (Stream : not null access Ada.Streams.Root_Stream_Type'Class;
Self : out View);
for View'write use View_write;
for View'read use View_read;
-- Vector
--
package Vectors is new ada.Containers.Vectors (Positive, View);
subtype Vector is Vectors.Vector;
-- Forge
--
function new_Subprogram return context_Clause.view;
procedure free (Self : in out context_Clause.view);
procedure destruct (Self : in out context_Clause.item);
-- Attributes
--
overriding
function Id (Self : access Item) return AdaM.Id;
private
type Item is new Any.item with
record
Items : context_Item.vector;
end record;
end AdaM.context_Clause;
|
-- C95086D.ADA
-- Grant of Unlimited Rights
--
-- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687,
-- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained
-- unlimited rights in the software and documentation contained herein.
-- Unlimited rights are defined in DFAR 252.227-7013(a)(19). By making
-- this public release, the Government intends to confer upon all
-- recipients unlimited rights equal to those held by the Government.
-- These rights include rights to use, duplicate, release or disclose the
-- released technical data and computer software in whole or in part, in
-- any manner and for any purpose whatsoever, and to have or permit others
-- to do so.
--
-- DISCLAIMER
--
-- ALL MATERIALS OR INFORMATION HEREIN RELEASED, MADE AVAILABLE OR
-- DISCLOSED ARE AS IS. THE GOVERNMENT MAKES NO EXPRESS OR IMPLIED
-- WARRANTY AS TO ANY MATTER WHATSOEVER, INCLUDING THE CONDITIONS OF THE
-- SOFTWARE, DOCUMENTATION OR OTHER INFORMATION RELEASED, MADE AVAILABLE
-- OR DISCLOSED, OR THE OWNERSHIP, MERCHANTABILITY, OR FITNESS FOR A
-- PARTICULAR PURPOSE OF SAID MATERIAL.
--*
-- CHECK THAT CONSTRAINT_ERROR IS NOT RAISED FOR ACCESS PARAMETERS
-- BEFORE OR AFTER THE ENTRY CALL, WHEN AN UNCONSTRAINED ACTUAL
-- OUT ACCESS PARAMETER DESIGNATES AN OBJECT (PRIOR TO THE
-- ENTRY CALL) WITH CONSTRAINTS DIFFERENT FROM THE FORMAL
-- PARAMETER.
--
-- SUBTESTS ARE:
-- (A) STATIC LIMITED PRIVATE DISCRIMINANT.
-- (B) DYNAMIC ONE DIMENSIONAL BOUNDS.
-- RJW 2/3/86
WITH REPORT; USE REPORT;
PROCEDURE C95086D IS
BEGIN
TEST ("C95086D", "CHECK THAT CONSTRAINT_ERROR IS NOT RAISED " &
"BEFORE AND AFTER THE ENTRY CALL, WHEN AN UNCONSTRAINED " &
"ACTUAL OUT ACCESS PARAMETER DESIGNATES AN OBJECT (PRIOR " &
"TO THE ENTRY CALL) WITH CONSTRAINTS DIFFERENT FROM THE " &
"FORMAL PARAMETER");
--------------------------------------------------
DECLARE -- (A)
PACKAGE PKG IS
SUBTYPE INT IS INTEGER RANGE 0..5;
TYPE T (I : INT := 0) IS LIMITED PRIVATE;
PRIVATE
TYPE ARR IS ARRAY (INTEGER RANGE <>) OF INTEGER;
TYPE T (I : INT := 0) IS
RECORD
J : INTEGER;
A : ARR (1..I);
END RECORD;
END PKG;
USE PKG;
TYPE A IS ACCESS T;
SUBTYPE SA IS A (3);
V : A := NEW T (2);
CALLED : BOOLEAN := FALSE;
TASK T1 IS
ENTRY P (X : OUT SA);
END T1;
TASK BODY T1 IS
BEGIN
ACCEPT P (X : OUT SA) DO
CALLED := TRUE;
X := NEW T (3);
END P;
EXCEPTION
WHEN OTHERS =>
FAILED ("EXCEPTION RAISED IN TASK - (A)");
END T1;
BEGIN -- (A)
T1.P (V);
EXCEPTION
WHEN CONSTRAINT_ERROR =>
IF NOT CALLED THEN
FAILED ("EXCEPTION RAISED BEFORE ENTRY CALL - (A)");
ELSE
FAILED ("EXCEPTION RAISED ON RETURN - (A)");
END IF;
WHEN OTHERS =>
FAILED ("EXCEPTION RAISED - (A)");
END; -- (A)
--------------------------------------------------
DECLARE -- (B)
TYPE A IS ACCESS STRING;
SUBTYPE SA IS A (1..2);
V : A := NEW STRING (IDENT_INT(5) .. IDENT_INT(7));
CALLED : BOOLEAN := FALSE;
TASK T1 IS
ENTRY P (X : OUT SA);
END T1;
TASK BODY T1 IS
BEGIN
ACCEPT P (X : OUT SA) DO
CALLED := TRUE;
X := NEW STRING (IDENT_INT(1) .. IDENT_INT(2));
END P;
EXCEPTION
WHEN OTHERS =>
FAILED ("EXCEPTION RAISED IN TASK - (B)");
END T1;
BEGIN -- (B)
T1.P (V);
EXCEPTION
WHEN CONSTRAINT_ERROR =>
IF NOT CALLED THEN
FAILED ("EXCEPTION RAISED BEFORE ENTRY CALL - (B)");
ELSE
FAILED ("EXCEPTION RAISED ON RETURN - (B)");
END IF;
WHEN OTHERS =>
FAILED ("EXCEPTION RAISED - (B)");
END; -- (B)
--------------------------------------------------
RESULT;
END C95086D;
|
with ada.text_io, ada.Integer_text_IO, Ada.Text_IO.Text_Streams, Ada.Strings.Fixed, Interfaces.C;
use ada.text_io, ada.Integer_text_IO, Ada.Strings, Ada.Strings.Fixed, Interfaces.C;
procedure sumDiv is
type stringptr is access all char_array;
procedure PInt(i : in Integer) is
begin
String'Write (Text_Streams.Stream (Current_Output), Trim(Integer'Image(i), Left));
end;
procedure foo is
a : Integer;
begin
a := 0;
-- test
a := a + 1;
-- test 2
end;
procedure foo2 is
begin
NULL;
end;
procedure foo3 is
begin
if 1 = 1
then
NULL;
end if;
end;
function sumdiv(n : in Integer) return Integer is
out0 : Integer;
begin
-- On désire renvoyer la somme des diviseurs
out0 := 0;
-- On déclare un entier qui contiendra la somme
for i in integer range 1..n loop
-- La boucle : i est le diviseur potentiel
if n rem i = 0
then
-- Si i divise
out0 := out0 + i;
-- On incrémente
else
NULL;
end if;
end loop;
return out0;
--On renvoie out
end;
n : Integer;
begin
-- Programme principal
n := 0;
Get(n);
-- Lecture de l'entier
PInt(sumdiv(n));
end;
|
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE boost_serialization>
<boost_serialization signature="serialization::archive" version="15">
<syndb class_id="0" tracking_level="0" version="0">
<userIPLatency>-1</userIPLatency>
<userIPName></userIPName>
<cdfg class_id="1" tracking_level="1" version="0" object_id="_0">
<name>binary_threshold</name>
<ret_bitwidth>0</ret_bitwidth>
<ports class_id="2" tracking_level="0" version="0">
<count>17</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>input_image_data_V</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo class_id="6" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>input_image.data.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>input_image_keep_V</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>input_image.keep.V</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>4</bitwidth>
</Value>
<direction>0</direction>
<if_type>0</if_type>
<array_size>0</array_size>
<bit_vecs>
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
<item class_id_reference="3" object_id="_3">
<Value>
<Obj>
<type>1</type>
<id>3</id>
<name>input_image_strb_V</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>input_image.strb.V</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>4</bitwidth>
</Value>
<direction>0</direction>
<if_type>0</if_type>
<array_size>0</array_size>
<bit_vecs>
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
<item class_id_reference="3" object_id="_4">
<Value>
<Obj>
<type>1</type>
<id>4</id>
<name>input_image_user_V</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>input_image.user.V</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>2</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>input_image_last_V</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>input_image.last.V</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<direction>0</direction>
<if_type>0</if_type>
<array_size>0</array_size>
<bit_vecs>
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
<item class_id_reference="3" object_id="_6">
<Value>
<Obj>
<type>1</type>
<id>6</id>
<name>input_image_id_V</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>input_image.id.V</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>5</bitwidth>
</Value>
<direction>0</direction>
<if_type>0</if_type>
<array_size>0</array_size>
<bit_vecs>
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
<item class_id_reference="3" object_id="_7">
<Value>
<Obj>
<type>1</type>
<id>7</id>
<name>input_image_dest_V</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>input_image.dest.V</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>6</bitwidth>
</Value>
<direction>0</direction>
<if_type>0</if_type>
<array_size>0</array_size>
<bit_vecs>
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
<item class_id_reference="3" object_id="_8">
<Value>
<Obj>
<type>1</type>
<id>8</id>
<name>output_image_data_V</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>output_image.data.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="_9">
<Value>
<Obj>
<type>1</type>
<id>9</id>
<name>output_image_keep_V</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>output_image.keep.V</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>4</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="_10">
<Value>
<Obj>
<type>1</type>
<id>10</id>
<name>output_image_strb_V</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>output_image.strb.V</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>4</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="_11">
<Value>
<Obj>
<type>1</type>
<id>11</id>
<name>output_image_user_V</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>output_image.user.V</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>2</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="_12">
<Value>
<Obj>
<type>1</type>
<id>12</id>
<name>output_image_last_V</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>output_image.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>
<item class_id_reference="3" object_id="_13">
<Value>
<Obj>
<type>1</type>
<id>13</id>
<name>output_image_id_V</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>output_image.id.V</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>5</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="_14">
<Value>
<Obj>
<type>1</type>
<id>14</id>
<name>output_image_dest_V</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>output_image.dest.V</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>6</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="_15">
<Value>
<Obj>
<type>1</type>
<id>15</id>
<name>length_V</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>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="_16">
<Value>
<Obj>
<type>1</type>
<id>16</id>
<name>threshold_V</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>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="_17">
<Value>
<Obj>
<type>1</type>
<id>17</id>
<name>max_val_V</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>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>24</count>
<item_version>0</item_version>
<item class_id="9" tracking_level="1" version="0" object_id="_18">
<Value>
<Obj>
<type>0</type>
<id>18</id>
<name>max_val_V_read</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>76</item>
<item>77</item>
</oprand_edges>
<opcode>read</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>1.00</m_delay>
<m_topoIndex>1</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_19">
<Value>
<Obj>
<type>0</type>
<id>19</id>
<name>threshold_V_read</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>78</item>
<item>79</item>
</oprand_edges>
<opcode>read</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>1.00</m_delay>
<m_topoIndex>2</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_20">
<Value>
<Obj>
<type>0</type>
<id>20</id>
<name>length_V_read</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>80</item>
<item>81</item>
</oprand_edges>
<opcode>read</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>1.00</m_delay>
<m_topoIndex>3</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_21">
<Value>
<Obj>
<type>0</type>
<id>45</id>
<name>icmp_ln895</name>
<fileName>binary_threshold.cpp</fileName>
<fileDirectory>/home/semi/Project/vivado_hls</fileDirectory>
<lineNumber>41</lineNumber>
<contextFuncName>binary_threshold</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item class_id="11" tracking_level="0" version="0">
<first>/home/semi/Project/vivado_hls</first>
<second class_id="12" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="13" tracking_level="0" version="0">
<first class_id="14" tracking_level="0" version="0">
<first>binary_threshold.cpp</first>
<second>binary_threshold</second>
</first>
<second>41</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>82</item>
<item>83</item>
</oprand_edges>
<opcode>icmp</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>2.47</m_delay>
<m_topoIndex>4</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_22">
<Value>
<Obj>
<type>0</type>
<id>46</id>
<name>_ln41</name>
<fileName>binary_threshold.cpp</fileName>
<fileDirectory>/home/semi/Project/vivado_hls</fileDirectory>
<lineNumber>41</lineNumber>
<contextFuncName>binary_threshold</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/semi/Project/vivado_hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>binary_threshold.cpp</first>
<second>binary_threshold</second>
</first>
<second>41</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>84</item>
<item>85</item>
<item>86</item>
</oprand_edges>
<opcode>br</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>5</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_23">
<Value>
<Obj>
<type>0</type>
<id>48</id>
<name>_ln46</name>
<fileName>binary_threshold.cpp</fileName>
<fileDirectory>/home/semi/Project/vivado_hls</fileDirectory>
<lineNumber>46</lineNumber>
<contextFuncName>binary_threshold</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/semi/Project/vivado_hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>binary_threshold.cpp</first>
<second>binary_threshold</second>
</first>
<second>46</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>87</item>
</oprand_edges>
<opcode>br</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>1.76</m_delay>
<m_topoIndex>6</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_24">
<Value>
<Obj>
<type>0</type>
<id>50</id>
<name>i_op_assign</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>i</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>88</item>
<item>89</item>
<item>91</item>
<item>92</item>
</oprand_edges>
<opcode>phi</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>7</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_25">
<Value>
<Obj>
<type>0</type>
<id>51</id>
<name>icmp_ln46</name>
<fileName>binary_threshold.cpp</fileName>
<fileDirectory>/home/semi/Project/vivado_hls</fileDirectory>
<lineNumber>46</lineNumber>
<contextFuncName>binary_threshold</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/semi/Project/vivado_hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>binary_threshold.cpp</first>
<second>binary_threshold</second>
</first>
<second>46</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>93</item>
<item>94</item>
</oprand_edges>
<opcode>icmp</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>2.47</m_delay>
<m_topoIndex>8</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_26">
<Value>
<Obj>
<type>0</type>
<id>52</id>
<name>i</name>
<fileName>binary_threshold.cpp</fileName>
<fileDirectory>/home/semi/Project/vivado_hls</fileDirectory>
<lineNumber>46</lineNumber>
<contextFuncName>binary_threshold</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/semi/Project/vivado_hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>binary_threshold.cpp</first>
<second>binary_threshold</second>
</first>
<second>46</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>i</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>95</item>
<item>97</item>
</oprand_edges>
<opcode>add</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>2.55</m_delay>
<m_topoIndex>9</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_27">
<Value>
<Obj>
<type>0</type>
<id>53</id>
<name>_ln46</name>
<fileName>binary_threshold.cpp</fileName>
<fileDirectory>/home/semi/Project/vivado_hls</fileDirectory>
<lineNumber>46</lineNumber>
<contextFuncName>binary_threshold</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/semi/Project/vivado_hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>binary_threshold.cpp</first>
<second>binary_threshold</second>
</first>
<second>46</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>98</item>
<item>99</item>
<item>100</item>
</oprand_edges>
<opcode>br</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>10</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_28">
<Value>
<Obj>
<type>0</type>
<id>57</id>
<name>empty</name>
<fileName>binary_threshold.cpp</fileName>
<fileDirectory>/home/semi/Project/vivado_hls</fileDirectory>
<lineNumber>27</lineNumber>
<contextFuncName>binary_threshold</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/semi/Project/vivado_hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>binary_threshold.cpp</first>
<second>binary_threshold</second>
</first>
<second>27</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>54</bitwidth>
</Value>
<oprand_edges>
<count>8</count>
<item_version>0</item_version>
<item>102</item>
<item>103</item>
<item>104</item>
<item>105</item>
<item>106</item>
<item>107</item>
<item>108</item>
<item>109</item>
</oprand_edges>
<opcode>read</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>11</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_29">
<Value>
<Obj>
<type>0</type>
<id>58</id>
<name>input_image_data_V_t</name>
<fileName>binary_threshold.cpp</fileName>
<fileDirectory>/home/semi/Project/vivado_hls</fileDirectory>
<lineNumber>27</lineNumber>
<contextFuncName>binary_threshold</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/semi/Project/vivado_hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>binary_threshold.cpp</first>
<second>binary_threshold</second>
</first>
<second>27</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>110</item>
</oprand_edges>
<opcode>extractvalue</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>12</m_topoIndex>
<m_clusterGroupNumber>1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_30">
<Value>
<Obj>
<type>0</type>
<id>59</id>
<name>input_image_keep_V_t</name>
<fileName>binary_threshold.cpp</fileName>
<fileDirectory>/home/semi/Project/vivado_hls</fileDirectory>
<lineNumber>27</lineNumber>
<contextFuncName>binary_threshold</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/semi/Project/vivado_hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>binary_threshold.cpp</first>
<second>binary_threshold</second>
</first>
<second>27</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>4</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>111</item>
</oprand_edges>
<opcode>extractvalue</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>13</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_31">
<Value>
<Obj>
<type>0</type>
<id>60</id>
<name>input_image_strb_V_t</name>
<fileName>binary_threshold.cpp</fileName>
<fileDirectory>/home/semi/Project/vivado_hls</fileDirectory>
<lineNumber>27</lineNumber>
<contextFuncName>binary_threshold</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/semi/Project/vivado_hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>binary_threshold.cpp</first>
<second>binary_threshold</second>
</first>
<second>27</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>4</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>112</item>
</oprand_edges>
<opcode>extractvalue</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>14</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_32">
<Value>
<Obj>
<type>0</type>
<id>61</id>
<name>input_image_user_V_t</name>
<fileName>binary_threshold.cpp</fileName>
<fileDirectory>/home/semi/Project/vivado_hls</fileDirectory>
<lineNumber>27</lineNumber>
<contextFuncName>binary_threshold</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/semi/Project/vivado_hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>binary_threshold.cpp</first>
<second>binary_threshold</second>
</first>
<second>27</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>2</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>113</item>
</oprand_edges>
<opcode>extractvalue</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>15</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_33">
<Value>
<Obj>
<type>0</type>
<id>62</id>
<name>input_image_last_V_t</name>
<fileName>binary_threshold.cpp</fileName>
<fileDirectory>/home/semi/Project/vivado_hls</fileDirectory>
<lineNumber>27</lineNumber>
<contextFuncName>binary_threshold</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/semi/Project/vivado_hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>binary_threshold.cpp</first>
<second>binary_threshold</second>
</first>
<second>27</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>114</item>
</oprand_edges>
<opcode>extractvalue</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>16</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_34">
<Value>
<Obj>
<type>0</type>
<id>63</id>
<name>input_image_id_V_tmp</name>
<fileName>binary_threshold.cpp</fileName>
<fileDirectory>/home/semi/Project/vivado_hls</fileDirectory>
<lineNumber>27</lineNumber>
<contextFuncName>binary_threshold</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/semi/Project/vivado_hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>binary_threshold.cpp</first>
<second>binary_threshold</second>
</first>
<second>27</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>5</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>115</item>
</oprand_edges>
<opcode>extractvalue</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>17</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_35">
<Value>
<Obj>
<type>0</type>
<id>64</id>
<name>input_image_dest_V_t</name>
<fileName>binary_threshold.cpp</fileName>
<fileDirectory>/home/semi/Project/vivado_hls</fileDirectory>
<lineNumber>27</lineNumber>
<contextFuncName>binary_threshold</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/semi/Project/vivado_hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>binary_threshold.cpp</first>
<second>binary_threshold</second>
</first>
<second>27</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>6</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>116</item>
</oprand_edges>
<opcode>extractvalue</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>18</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_36">
<Value>
<Obj>
<type>0</type>
<id>65</id>
<name>icmp_ln895_1</name>
<fileName>binary_threshold.cpp</fileName>
<fileDirectory>/home/semi/Project/vivado_hls</fileDirectory>
<lineNumber>51</lineNumber>
<contextFuncName>binary_threshold</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/semi/Project/vivado_hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>binary_threshold.cpp</first>
<second>binary_threshold</second>
</first>
<second>51</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>117</item>
<item>118</item>
</oprand_edges>
<opcode>icmp</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>2.47</m_delay>
<m_topoIndex>19</m_topoIndex>
<m_clusterGroupNumber>1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_37">
<Value>
<Obj>
<type>0</type>
<id>66</id>
<name>select_ln51</name>
<fileName>binary_threshold.cpp</fileName>
<fileDirectory>/home/semi/Project/vivado_hls</fileDirectory>
<lineNumber>51</lineNumber>
<contextFuncName>binary_threshold</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/semi/Project/vivado_hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>binary_threshold.cpp</first>
<second>binary_threshold</second>
</first>
<second>51</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>val</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>119</item>
<item>120</item>
<item>121</item>
</oprand_edges>
<opcode>select</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.69</m_delay>
<m_topoIndex>20</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_38">
<Value>
<Obj>
<type>0</type>
<id>67</id>
<name>output_image_data_V_write_ln27</name>
<fileName>binary_threshold.cpp</fileName>
<fileDirectory>/home/semi/Project/vivado_hls</fileDirectory>
<lineNumber>27</lineNumber>
<contextFuncName>binary_threshold</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/semi/Project/vivado_hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>binary_threshold.cpp</first>
<second>binary_threshold</second>
</first>
<second>27</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>15</count>
<item_version>0</item_version>
<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>
</oprand_edges>
<opcode>write</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>21</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_39">
<Value>
<Obj>
<type>0</type>
<id>69</id>
<name>_ln46</name>
<fileName>binary_threshold.cpp</fileName>
<fileDirectory>/home/semi/Project/vivado_hls</fileDirectory>
<lineNumber>46</lineNumber>
<contextFuncName>binary_threshold</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/semi/Project/vivado_hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>binary_threshold.cpp</first>
<second>binary_threshold</second>
</first>
<second>46</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>138</item>
</oprand_edges>
<opcode>br</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>22</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_40">
<Value>
<Obj>
<type>0</type>
<id>71</id>
<name>_ln0</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>139</item>
</oprand_edges>
<opcode>br</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>23</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_41">
<Value>
<Obj>
<type>0</type>
<id>73</id>
<name>_ln73</name>
<fileName>binary_threshold.cpp</fileName>
<fileDirectory>/home/semi/Project/vivado_hls</fileDirectory>
<lineNumber>73</lineNumber>
<contextFuncName>binary_threshold</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/semi/Project/vivado_hls</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>binary_threshold.cpp</first>
<second>binary_threshold</second>
</first>
<second>73</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>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>24</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
</nodes>
<consts class_id="15" tracking_level="0" version="0">
<count>2</count>
<item_version>0</item_version>
<item class_id="16" tracking_level="1" version="0" object_id="_42">
<Value>
<Obj>
<type>2</type>
<id>90</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>0</content>
</item>
<item class_id_reference="16" object_id="_43">
<Value>
<Obj>
<type>2</type>
<id>96</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>
</consts>
<blocks class_id="17" tracking_level="0" version="0">
<count>6</count>
<item_version>0</item_version>
<item class_id="18" tracking_level="1" version="0" object_id="_44">
<Obj>
<type>3</type>
<id>47</id>
<name></name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<node_objs>
<count>5</count>
<item_version>0</item_version>
<item>18</item>
<item>19</item>
<item>20</item>
<item>45</item>
<item>46</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_45">
<Obj>
<type>3</type>
<id>49</id>
<name>.preheader.preheader</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<node_objs>
<count>1</count>
<item_version>0</item_version>
<item>48</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_46">
<Obj>
<type>3</type>
<id>54</id>
<name>.preheader</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<node_objs>
<count>4</count>
<item_version>0</item_version>
<item>50</item>
<item>51</item>
<item>52</item>
<item>53</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_47">
<Obj>
<type>3</type>
<id>70</id>
<name>hls_label_0</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>12</count>
<item_version>0</item_version>
<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>69</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_48">
<Obj>
<type>3</type>
<id>72</id>
<name>.loopexit.loopexit</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<node_objs>
<count>1</count>
<item_version>0</item_version>
<item>71</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_49">
<Obj>
<type>3</type>
<id>74</id>
<name>.loopexit</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<node_objs>
<count>1</count>
<item_version>0</item_version>
<item>73</item>
</node_objs>
</item>
</blocks>
<edges class_id="19" tracking_level="0" version="0">
<count>62</count>
<item_version>0</item_version>
<item class_id="20" tracking_level="1" version="0" object_id="_50">
<id>77</id>
<edge_type>1</edge_type>
<source_obj>17</source_obj>
<sink_obj>18</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_51">
<id>79</id>
<edge_type>1</edge_type>
<source_obj>16</source_obj>
<sink_obj>19</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_52">
<id>81</id>
<edge_type>1</edge_type>
<source_obj>15</source_obj>
<sink_obj>20</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_53">
<id>82</id>
<edge_type>1</edge_type>
<source_obj>19</source_obj>
<sink_obj>45</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_54">
<id>83</id>
<edge_type>1</edge_type>
<source_obj>18</source_obj>
<sink_obj>45</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_55">
<id>84</id>
<edge_type>1</edge_type>
<source_obj>45</source_obj>
<sink_obj>46</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_56">
<id>85</id>
<edge_type>2</edge_type>
<source_obj>49</source_obj>
<sink_obj>46</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_57">
<id>86</id>
<edge_type>2</edge_type>
<source_obj>74</source_obj>
<sink_obj>46</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_58">
<id>87</id>
<edge_type>2</edge_type>
<source_obj>54</source_obj>
<sink_obj>48</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_59">
<id>88</id>
<edge_type>1</edge_type>
<source_obj>52</source_obj>
<sink_obj>50</sink_obj>
<is_back_edge>1</is_back_edge>
</item>
<item class_id_reference="20" object_id="_60">
<id>89</id>
<edge_type>2</edge_type>
<source_obj>70</source_obj>
<sink_obj>50</sink_obj>
<is_back_edge>1</is_back_edge>
</item>
<item class_id_reference="20" object_id="_61">
<id>91</id>
<edge_type>1</edge_type>
<source_obj>90</source_obj>
<sink_obj>50</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_62">
<id>92</id>
<edge_type>2</edge_type>
<source_obj>49</source_obj>
<sink_obj>50</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_63">
<id>93</id>
<edge_type>1</edge_type>
<source_obj>50</source_obj>
<sink_obj>51</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_64">
<id>94</id>
<edge_type>1</edge_type>
<source_obj>20</source_obj>
<sink_obj>51</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_65">
<id>95</id>
<edge_type>1</edge_type>
<source_obj>50</source_obj>
<sink_obj>52</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_66">
<id>97</id>
<edge_type>1</edge_type>
<source_obj>96</source_obj>
<sink_obj>52</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_67">
<id>98</id>
<edge_type>1</edge_type>
<source_obj>51</source_obj>
<sink_obj>53</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_68">
<id>99</id>
<edge_type>2</edge_type>
<source_obj>70</source_obj>
<sink_obj>53</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_69">
<id>100</id>
<edge_type>2</edge_type>
<source_obj>72</source_obj>
<sink_obj>53</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_70">
<id>103</id>
<edge_type>1</edge_type>
<source_obj>1</source_obj>
<sink_obj>57</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_71">
<id>104</id>
<edge_type>1</edge_type>
<source_obj>2</source_obj>
<sink_obj>57</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_72">
<id>105</id>
<edge_type>1</edge_type>
<source_obj>3</source_obj>
<sink_obj>57</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_73">
<id>106</id>
<edge_type>1</edge_type>
<source_obj>4</source_obj>
<sink_obj>57</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_74">
<id>107</id>
<edge_type>1</edge_type>
<source_obj>5</source_obj>
<sink_obj>57</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_75">
<id>108</id>
<edge_type>1</edge_type>
<source_obj>6</source_obj>
<sink_obj>57</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_76">
<id>109</id>
<edge_type>1</edge_type>
<source_obj>7</source_obj>
<sink_obj>57</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_77">
<id>110</id>
<edge_type>1</edge_type>
<source_obj>57</source_obj>
<sink_obj>58</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_78">
<id>111</id>
<edge_type>1</edge_type>
<source_obj>57</source_obj>
<sink_obj>59</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_79">
<id>112</id>
<edge_type>1</edge_type>
<source_obj>57</source_obj>
<sink_obj>60</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_80">
<id>113</id>
<edge_type>1</edge_type>
<source_obj>57</source_obj>
<sink_obj>61</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_81">
<id>114</id>
<edge_type>1</edge_type>
<source_obj>57</source_obj>
<sink_obj>62</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_82">
<id>115</id>
<edge_type>1</edge_type>
<source_obj>57</source_obj>
<sink_obj>63</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_83">
<id>116</id>
<edge_type>1</edge_type>
<source_obj>57</source_obj>
<sink_obj>64</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_84">
<id>117</id>
<edge_type>1</edge_type>
<source_obj>58</source_obj>
<sink_obj>65</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_85">
<id>118</id>
<edge_type>1</edge_type>
<source_obj>19</source_obj>
<sink_obj>65</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_86">
<id>119</id>
<edge_type>1</edge_type>
<source_obj>65</source_obj>
<sink_obj>66</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_87">
<id>120</id>
<edge_type>1</edge_type>
<source_obj>18</source_obj>
<sink_obj>66</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_88">
<id>121</id>
<edge_type>1</edge_type>
<source_obj>90</source_obj>
<sink_obj>66</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_89">
<id>124</id>
<edge_type>1</edge_type>
<source_obj>8</source_obj>
<sink_obj>67</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_90">
<id>125</id>
<edge_type>1</edge_type>
<source_obj>9</source_obj>
<sink_obj>67</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_91">
<id>126</id>
<edge_type>1</edge_type>
<source_obj>10</source_obj>
<sink_obj>67</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_92">
<id>127</id>
<edge_type>1</edge_type>
<source_obj>11</source_obj>
<sink_obj>67</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_93">
<id>128</id>
<edge_type>1</edge_type>
<source_obj>12</source_obj>
<sink_obj>67</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_94">
<id>129</id>
<edge_type>1</edge_type>
<source_obj>13</source_obj>
<sink_obj>67</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_95">
<id>130</id>
<edge_type>1</edge_type>
<source_obj>14</source_obj>
<sink_obj>67</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_96">
<id>131</id>
<edge_type>1</edge_type>
<source_obj>66</source_obj>
<sink_obj>67</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_97">
<id>132</id>
<edge_type>1</edge_type>
<source_obj>59</source_obj>
<sink_obj>67</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_98">
<id>133</id>
<edge_type>1</edge_type>
<source_obj>60</source_obj>
<sink_obj>67</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_99">
<id>134</id>
<edge_type>1</edge_type>
<source_obj>61</source_obj>
<sink_obj>67</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_100">
<id>135</id>
<edge_type>1</edge_type>
<source_obj>62</source_obj>
<sink_obj>67</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_101">
<id>136</id>
<edge_type>1</edge_type>
<source_obj>63</source_obj>
<sink_obj>67</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_102">
<id>137</id>
<edge_type>1</edge_type>
<source_obj>64</source_obj>
<sink_obj>67</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_103">
<id>138</id>
<edge_type>2</edge_type>
<source_obj>54</source_obj>
<sink_obj>69</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_104">
<id>139</id>
<edge_type>2</edge_type>
<source_obj>74</source_obj>
<sink_obj>71</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_105">
<id>322</id>
<edge_type>2</edge_type>
<source_obj>47</source_obj>
<sink_obj>74</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_106">
<id>323</id>
<edge_type>2</edge_type>
<source_obj>47</source_obj>
<sink_obj>49</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_107">
<id>324</id>
<edge_type>2</edge_type>
<source_obj>49</source_obj>
<sink_obj>54</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_108">
<id>325</id>
<edge_type>2</edge_type>
<source_obj>54</source_obj>
<sink_obj>72</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_109">
<id>326</id>
<edge_type>2</edge_type>
<source_obj>54</source_obj>
<sink_obj>70</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_110">
<id>327</id>
<edge_type>2</edge_type>
<source_obj>70</source_obj>
<sink_obj>54</sink_obj>
<is_back_edge>1</is_back_edge>
</item>
<item class_id_reference="20" object_id="_111">
<id>328</id>
<edge_type>2</edge_type>
<source_obj>72</source_obj>
<sink_obj>74</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
</edges>
</cdfg>
<cdfg_regions class_id="21" tracking_level="0" version="0">
<count>5</count>
<item_version>0</item_version>
<item class_id="22" tracking_level="1" version="0" object_id="_112">
<mId>1</mId>
<mTag>binary_threshold</mTag>
<mType>0</mType>
<sub_regions>
<count>4</count>
<item_version>0</item_version>
<item>2</item>
<item>3</item>
<item>4</item>
<item>5</item>
</sub_regions>
<basic_blocks>
<count>0</count>
<item_version>0</item_version>
</basic_blocks>
<mII>-1</mII>
<mDepth>-1</mDepth>
<mMinTripCount>-1</mMinTripCount>
<mMaxTripCount>-1</mMaxTripCount>
<mMinLatency>-1</mMinLatency>
<mMaxLatency>-1</mMaxLatency>
<mIsDfPipe>0</mIsDfPipe>
<mDfPipe class_id="-1"></mDfPipe>
</item>
<item class_id_reference="22" object_id="_113">
<mId>2</mId>
<mTag>Entry</mTag>
<mType>0</mType>
<sub_regions>
<count>0</count>
<item_version>0</item_version>
</sub_regions>
<basic_blocks>
<count>2</count>
<item_version>0</item_version>
<item>47</item>
<item>49</item>
</basic_blocks>
<mII>-1</mII>
<mDepth>-1</mDepth>
<mMinTripCount>-1</mMinTripCount>
<mMaxTripCount>-1</mMaxTripCount>
<mMinLatency>1</mMinLatency>
<mMaxLatency>1</mMaxLatency>
<mIsDfPipe>0</mIsDfPipe>
<mDfPipe class_id="-1"></mDfPipe>
</item>
<item class_id_reference="22" object_id="_114">
<mId>3</mId>
<mTag>Loop 1</mTag>
<mType>1</mType>
<sub_regions>
<count>0</count>
<item_version>0</item_version>
</sub_regions>
<basic_blocks>
<count>2</count>
<item_version>0</item_version>
<item>54</item>
<item>70</item>
</basic_blocks>
<mII>1</mII>
<mDepth>3</mDepth>
<mMinTripCount>-1</mMinTripCount>
<mMaxTripCount>-1</mMaxTripCount>
<mMinLatency>-1</mMinLatency>
<mMaxLatency>-1</mMaxLatency>
<mIsDfPipe>0</mIsDfPipe>
<mDfPipe class_id="-1"></mDfPipe>
</item>
<item class_id_reference="22" object_id="_115">
<mId>4</mId>
<mTag>Region 1</mTag>
<mType>0</mType>
<sub_regions>
<count>0</count>
<item_version>0</item_version>
</sub_regions>
<basic_blocks>
<count>1</count>
<item_version>0</item_version>
<item>72</item>
</basic_blocks>
<mII>-1</mII>
<mDepth>-1</mDepth>
<mMinTripCount>-1</mMinTripCount>
<mMaxTripCount>-1</mMaxTripCount>
<mMinLatency>0</mMinLatency>
<mMaxLatency>0</mMaxLatency>
<mIsDfPipe>0</mIsDfPipe>
<mDfPipe class_id="-1"></mDfPipe>
</item>
<item class_id_reference="22" object_id="_116">
<mId>5</mId>
<mTag>Return</mTag>
<mType>0</mType>
<sub_regions>
<count>0</count>
<item_version>0</item_version>
</sub_regions>
<basic_blocks>
<count>1</count>
<item_version>0</item_version>
<item>74</item>
</basic_blocks>
<mII>-1</mII>
<mDepth>-1</mDepth>
<mMinTripCount>-1</mMinTripCount>
<mMaxTripCount>-1</mMaxTripCount>
<mMinLatency>0</mMinLatency>
<mMaxLatency>0</mMaxLatency>
<mIsDfPipe>0</mIsDfPipe>
<mDfPipe class_id="-1"></mDfPipe>
</item>
</cdfg_regions>
<fsm class_id="24" tracking_level="1" version="0" object_id="_117">
<states class_id="25" tracking_level="0" version="0">
<count>6</count>
<item_version>0</item_version>
<item class_id="26" tracking_level="1" version="0" object_id="_118">
<id>1</id>
<operations 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="_119">
<id>18</id>
<stage>2</stage>
<latency>2</latency>
</item>
<item class_id_reference="28" object_id="_120">
<id>19</id>
<stage>2</stage>
<latency>2</latency>
</item>
<item class_id_reference="28" object_id="_121">
<id>20</id>
<stage>2</stage>
<latency>2</latency>
</item>
</operations>
</item>
<item class_id_reference="26" object_id="_122">
<id>2</id>
<operations>
<count>30</count>
<item_version>0</item_version>
<item class_id_reference="28" object_id="_123">
<id>18</id>
<stage>1</stage>
<latency>2</latency>
</item>
<item class_id_reference="28" object_id="_124">
<id>19</id>
<stage>1</stage>
<latency>2</latency>
</item>
<item class_id_reference="28" object_id="_125">
<id>20</id>
<stage>1</stage>
<latency>2</latency>
</item>
<item class_id_reference="28" object_id="_126">
<id>21</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_127">
<id>22</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_128">
<id>23</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_129">
<id>24</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_130">
<id>25</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_131">
<id>26</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_132">
<id>27</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_133">
<id>28</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_134">
<id>29</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_135">
<id>30</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_136">
<id>31</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_137">
<id>32</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_138">
<id>33</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_139">
<id>34</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_140">
<id>35</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_141">
<id>36</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_142">
<id>37</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_143">
<id>38</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_144">
<id>39</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_145">
<id>40</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_146">
<id>41</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_147">
<id>42</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_148">
<id>43</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_149">
<id>44</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_150">
<id>45</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_151">
<id>46</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_152">
<id>48</id>
<stage>1</stage>
<latency>1</latency>
</item>
</operations>
</item>
<item class_id_reference="26" object_id="_153">
<id>3</id>
<operations>
<count>13</count>
<item_version>0</item_version>
<item class_id_reference="28" object_id="_154">
<id>50</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_155">
<id>51</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_156">
<id>52</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_157">
<id>53</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_158">
<id>57</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_159">
<id>58</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_160">
<id>59</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_161">
<id>60</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_162">
<id>61</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_163">
<id>62</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_164">
<id>63</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_165">
<id>64</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_166">
<id>65</id>
<stage>1</stage>
<latency>1</latency>
</item>
</operations>
</item>
<item class_id_reference="26" object_id="_167">
<id>4</id>
<operations>
<count>2</count>
<item_version>0</item_version>
<item class_id_reference="28" object_id="_168">
<id>66</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_169">
<id>67</id>
<stage>2</stage>
<latency>2</latency>
</item>
</operations>
</item>
<item class_id_reference="26" object_id="_170">
<id>5</id>
<operations>
<count>5</count>
<item_version>0</item_version>
<item class_id_reference="28" object_id="_171">
<id>55</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_172">
<id>56</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_173">
<id>67</id>
<stage>1</stage>
<latency>2</latency>
</item>
<item class_id_reference="28" object_id="_174">
<id>68</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_175">
<id>69</id>
<stage>1</stage>
<latency>1</latency>
</item>
</operations>
</item>
<item class_id_reference="26" object_id="_176">
<id>6</id>
<operations>
<count>2</count>
<item_version>0</item_version>
<item class_id_reference="28" object_id="_177">
<id>71</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_178">
<id>73</id>
<stage>1</stage>
<latency>1</latency>
</item>
</operations>
</item>
</states>
<transitions class_id="29" tracking_level="0" version="0">
<count>7</count>
<item_version>0</item_version>
<item class_id="30" tracking_level="1" version="0" object_id="_179">
<inState>1</inState>
<outState>2</outState>
<condition class_id="31" tracking_level="0" version="0">
<id>-1</id>
<sop class_id="32" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="33" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
<item class_id_reference="30" object_id="_180">
<inState>2</inState>
<outState>6</outState>
<condition>
<id>-1</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>1</count>
<item_version>0</item_version>
<item class_id="34" tracking_level="0" version="0">
<first class_id="35" tracking_level="0" version="0">
<first>45</first>
<second>0</second>
</first>
<second>0</second>
</item>
</item>
</sop>
</condition>
</item>
<item class_id_reference="30" object_id="_181">
<inState>2</inState>
<outState>3</outState>
<condition>
<id>-1</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>45</first>
<second>0</second>
</first>
<second>1</second>
</item>
</item>
</sop>
</condition>
</item>
<item class_id_reference="30" object_id="_182">
<inState>4</inState>
<outState>5</outState>
<condition>
<id>-1</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
<item class_id_reference="30" object_id="_183">
<inState>5</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="30" object_id="_184">
<inState>3</inState>
<outState>6</outState>
<condition>
<id>-1</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>51</first>
<second>0</second>
</first>
<second>0</second>
</item>
</item>
</sop>
</condition>
</item>
<item class_id_reference="30" object_id="_185">
<inState>3</inState>
<outState>4</outState>
<condition>
<id>-1</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>51</first>
<second>0</second>
</first>
<second>1</second>
</item>
</item>
</sop>
</condition>
</item>
</transitions>
</fsm>
<res class_id="-1"></res>
<node_label_latency class_id="37" tracking_level="0" version="0">
<count>24</count>
<item_version>0</item_version>
<item class_id="38" tracking_level="0" version="0">
<first>18</first>
<second class_id="39" tracking_level="0" version="0">
<first>0</first>
<second>1</second>
</second>
</item>
<item>
<first>19</first>
<second>
<first>0</first>
<second>1</second>
</second>
</item>
<item>
<first>20</first>
<second>
<first>0</first>
<second>1</second>
</second>
</item>
<item>
<first>45</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>46</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>48</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>50</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>51</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>52</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>53</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>57</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>58</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>59</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>60</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>61</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>62</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>63</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>64</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>65</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>66</first>
<second>
<first>3</first>
<second>0</second>
</second>
</item>
<item>
<first>67</first>
<second>
<first>3</first>
<second>1</second>
</second>
</item>
<item>
<first>69</first>
<second>
<first>4</first>
<second>0</second>
</second>
</item>
<item>
<first>71</first>
<second>
<first>5</first>
<second>0</second>
</second>
</item>
<item>
<first>73</first>
<second>
<first>5</first>
<second>0</second>
</second>
</item>
</node_label_latency>
<bblk_ent_exit class_id="40" tracking_level="0" version="0">
<count>6</count>
<item_version>0</item_version>
<item class_id="41" tracking_level="0" version="0">
<first>47</first>
<second class_id="42" tracking_level="0" version="0">
<first>0</first>
<second>1</second>
</second>
</item>
<item>
<first>49</first>
<second>
<first>1</first>
<second>1</second>
</second>
</item>
<item>
<first>54</first>
<second>
<first>2</first>
<second>2</second>
</second>
</item>
<item>
<first>70</first>
<second>
<first>2</first>
<second>4</second>
</second>
</item>
<item>
<first>72</first>
<second>
<first>3</first>
<second>3</second>
</second>
</item>
<item>
<first>74</first>
<second>
<first>3</first>
<second>3</second>
</second>
</item>
</bblk_ent_exit>
<regions class_id="43" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="44" tracking_level="1" version="0" object_id="_186">
<region_name>Loop 1</region_name>
<basic_blocks>
<count>2</count>
<item_version>0</item_version>
<item>54</item>
<item>70</item>
</basic_blocks>
<nodes>
<count>0</count>
<item_version>0</item_version>
</nodes>
<anchor_node>-1</anchor_node>
<region_type>8</region_type>
<interval>1</interval>
<pipe_depth>3</pipe_depth>
</item>
</regions>
<dp_fu_nodes class_id="45" tracking_level="0" version="0">
<count>18</count>
<item_version>0</item_version>
<item class_id="46" tracking_level="0" version="0">
<first>72</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>18</item>
<item>18</item>
</second>
</item>
<item>
<first>78</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>19</item>
<item>19</item>
</second>
</item>
<item>
<first>84</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>20</item>
<item>20</item>
</second>
</item>
<item>
<first>90</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>57</item>
</second>
</item>
<item>
<first>108</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>67</item>
<item>67</item>
</second>
</item>
<item>
<first>137</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>50</item>
</second>
</item>
<item>
<first>144</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>45</item>
</second>
</item>
<item>
<first>150</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>51</item>
</second>
</item>
<item>
<first>155</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>52</item>
</second>
</item>
<item>
<first>161</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>58</item>
</second>
</item>
<item>
<first>165</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>59</item>
</second>
</item>
<item>
<first>169</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>60</item>
</second>
</item>
<item>
<first>173</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>61</item>
</second>
</item>
<item>
<first>177</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>62</item>
</second>
</item>
<item>
<first>181</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>63</item>
</second>
</item>
<item>
<first>185</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>64</item>
</second>
</item>
<item>
<first>189</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>65</item>
</second>
</item>
<item>
<first>194</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>66</item>
</second>
</item>
</dp_fu_nodes>
<dp_fu_nodes_expression class_id="48" tracking_level="0" version="0">
<count>13</count>
<item_version>0</item_version>
<item class_id="49" tracking_level="0" version="0">
<first>i_fu_155</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>52</item>
</second>
</item>
<item>
<first>i_op_assign_phi_fu_137</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>50</item>
</second>
</item>
<item>
<first>icmp_ln46_fu_150</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>51</item>
</second>
</item>
<item>
<first>icmp_ln895_1_fu_189</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>65</item>
</second>
</item>
<item>
<first>icmp_ln895_fu_144</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>45</item>
</second>
</item>
<item>
<first>input_image_data_V_t_fu_161</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>58</item>
</second>
</item>
<item>
<first>input_image_dest_V_t_fu_185</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>64</item>
</second>
</item>
<item>
<first>input_image_id_V_tmp_fu_181</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>63</item>
</second>
</item>
<item>
<first>input_image_keep_V_t_fu_165</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>59</item>
</second>
</item>
<item>
<first>input_image_last_V_t_fu_177</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>62</item>
</second>
</item>
<item>
<first>input_image_strb_V_t_fu_169</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>60</item>
</second>
</item>
<item>
<first>input_image_user_V_t_fu_173</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>61</item>
</second>
</item>
<item>
<first>select_ln51_fu_194</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>66</item>
</second>
</item>
</dp_fu_nodes_expression>
<dp_fu_nodes_module>
<count>0</count>
<item_version>0</item_version>
</dp_fu_nodes_module>
<dp_fu_nodes_io>
<count>5</count>
<item_version>0</item_version>
<item>
<first>empty_read_fu_90</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>57</item>
</second>
</item>
<item>
<first>grp_read_fu_72</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>18</item>
<item>18</item>
</second>
</item>
<item>
<first>grp_read_fu_78</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>19</item>
<item>19</item>
</second>
</item>
<item>
<first>grp_read_fu_84</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>20</item>
<item>20</item>
</second>
</item>
<item>
<first>grp_write_fu_108</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>67</item>
<item>67</item>
</second>
</item>
</dp_fu_nodes_io>
<return_ports>
<count>0</count>
<item_version>0</item_version>
</return_ports>
<dp_mem_port_nodes class_id="50" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</dp_mem_port_nodes>
<dp_reg_nodes>
<count>15</count>
<item_version>0</item_version>
<item>
<first>133</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>50</item>
</second>
</item>
<item>
<first>201</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>18</item>
</second>
</item>
<item>
<first>206</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>19</item>
</second>
</item>
<item>
<first>211</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>20</item>
</second>
</item>
<item>
<first>216</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>45</item>
</second>
</item>
<item>
<first>220</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>51</item>
</second>
</item>
<item>
<first>224</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>52</item>
</second>
</item>
<item>
<first>229</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>59</item>
</second>
</item>
<item>
<first>234</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>60</item>
</second>
</item>
<item>
<first>239</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>61</item>
</second>
</item>
<item>
<first>244</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>62</item>
</second>
</item>
<item>
<first>249</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>63</item>
</second>
</item>
<item>
<first>254</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>64</item>
</second>
</item>
<item>
<first>259</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>65</item>
</second>
</item>
<item>
<first>264</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>66</item>
</second>
</item>
</dp_reg_nodes>
<dp_regname_nodes>
<count>15</count>
<item_version>0</item_version>
<item>
<first>i_op_assign_reg_133</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>50</item>
</second>
</item>
<item>
<first>i_reg_224</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>52</item>
</second>
</item>
<item>
<first>icmp_ln46_reg_220</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>51</item>
</second>
</item>
<item>
<first>icmp_ln895_1_reg_259</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>65</item>
</second>
</item>
<item>
<first>icmp_ln895_reg_216</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>45</item>
</second>
</item>
<item>
<first>input_image_dest_V_t_reg_254</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>64</item>
</second>
</item>
<item>
<first>input_image_id_V_tmp_reg_249</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>63</item>
</second>
</item>
<item>
<first>input_image_keep_V_t_reg_229</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>59</item>
</second>
</item>
<item>
<first>input_image_last_V_t_reg_244</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>62</item>
</second>
</item>
<item>
<first>input_image_strb_V_t_reg_234</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>60</item>
</second>
</item>
<item>
<first>input_image_user_V_t_reg_239</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>61</item>
</second>
</item>
<item>
<first>length_V_read_reg_211</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>20</item>
</second>
</item>
<item>
<first>max_val_V_read_reg_201</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>18</item>
</second>
</item>
<item>
<first>select_ln51_reg_264</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>66</item>
</second>
</item>
<item>
<first>threshold_V_read_reg_206</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>19</item>
</second>
</item>
</dp_regname_nodes>
<dp_reg_phi>
<count>1</count>
<item_version>0</item_version>
<item>
<first>133</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>50</item>
</second>
</item>
</dp_reg_phi>
<dp_regname_phi>
<count>1</count>
<item_version>0</item_version>
<item>
<first>i_op_assign_reg_133</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>50</item>
</second>
</item>
</dp_regname_phi>
<dp_port_io_nodes class_id="51" tracking_level="0" version="0">
<count>17</count>
<item_version>0</item_version>
<item class_id="52" tracking_level="0" version="0">
<first>input_image_data_V</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>read</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>57</item>
</second>
</item>
</second>
</item>
<item>
<first>input_image_dest_V</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>read</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>57</item>
</second>
</item>
</second>
</item>
<item>
<first>input_image_id_V</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>read</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>57</item>
</second>
</item>
</second>
</item>
<item>
<first>input_image_keep_V</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>read</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>57</item>
</second>
</item>
</second>
</item>
<item>
<first>input_image_last_V</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>read</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>57</item>
</second>
</item>
</second>
</item>
<item>
<first>input_image_strb_V</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>read</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>57</item>
</second>
</item>
</second>
</item>
<item>
<first>input_image_user_V</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>read</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>57</item>
</second>
</item>
</second>
</item>
<item>
<first>length_V</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>read</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>20</item>
</second>
</item>
</second>
</item>
<item>
<first>max_val_V</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>read</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>18</item>
</second>
</item>
</second>
</item>
<item>
<first>output_image_data_V</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>write</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>67</item>
</second>
</item>
</second>
</item>
<item>
<first>output_image_dest_V</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>write</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>67</item>
</second>
</item>
</second>
</item>
<item>
<first>output_image_id_V</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>write</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>67</item>
</second>
</item>
</second>
</item>
<item>
<first>output_image_keep_V</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>write</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>67</item>
</second>
</item>
</second>
</item>
<item>
<first>output_image_last_V</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>write</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>67</item>
</second>
</item>
</second>
</item>
<item>
<first>output_image_strb_V</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>write</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>67</item>
</second>
</item>
</second>
</item>
<item>
<first>output_image_user_V</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>write</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>67</item>
</second>
</item>
</second>
</item>
<item>
<first>threshold_V</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>read</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>19</item>
</second>
</item>
</second>
</item>
</dp_port_io_nodes>
<port2core class_id="53" 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>
|
-- This spec has been automatically generated from STM32L4x3.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package STM32_SVD.CRC is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype IDR_IDR_Field is HAL.UInt8;
-- Independent data register
type IDR_Register is record
-- General-purpose 8-bit data register bits
IDR : IDR_IDR_Field := 16#0#;
-- unspecified
Reserved_8_31 : HAL.UInt24 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for IDR_Register use record
IDR at 0 range 0 .. 7;
Reserved_8_31 at 0 range 8 .. 31;
end record;
subtype CR_POLYSIZE_Field is HAL.UInt2;
subtype CR_REV_IN_Field is HAL.UInt2;
-- Control register
type CR_Register is record
-- Write-only. RESET bit
RESET : Boolean := False;
-- unspecified
Reserved_1_2 : HAL.UInt2 := 16#0#;
-- Polynomial size
POLYSIZE : CR_POLYSIZE_Field := 16#0#;
-- Reverse input data
REV_IN : CR_REV_IN_Field := 16#0#;
-- Reverse output data
REV_OUT : Boolean := False;
-- unspecified
Reserved_8_31 : HAL.UInt24 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for CR_Register use record
RESET at 0 range 0 .. 0;
Reserved_1_2 at 0 range 1 .. 2;
POLYSIZE at 0 range 3 .. 4;
REV_IN at 0 range 5 .. 6;
REV_OUT at 0 range 7 .. 7;
Reserved_8_31 at 0 range 8 .. 31;
end record;
-----------------
-- Peripherals --
-----------------
-- Cyclic redundancy check calculation unit
type CRC_Peripheral is record
-- Data register
DR : aliased HAL.UInt32;
-- Independent data register
IDR : aliased IDR_Register;
-- Control register
CR : aliased CR_Register;
-- Initial CRC value
INIT : aliased HAL.UInt32;
-- polynomial
POL : aliased HAL.UInt32;
end record
with Volatile;
for CRC_Peripheral use record
DR at 16#0# range 0 .. 31;
IDR at 16#4# range 0 .. 31;
CR at 16#8# range 0 .. 31;
INIT at 16#10# range 0 .. 31;
POL at 16#14# range 0 .. 31;
end record;
-- Cyclic redundancy check calculation unit
CRC_Periph : aliased CRC_Peripheral
with Import, Address => CRC_Base;
end STM32_SVD.CRC;
|
-- Mean lunar phase computations
-- Given a date expressed as a decimal Julian day,
-- compute the mean lunar phase (and later the next mean new moon).
-- The algorithm is in the public domain
----------------------------------------------------------------------------
-- 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 Scaliger; use Scaliger;
package Lunar_phase_computations is
subtype Lunar_age is Historical_Duration range 0.0 .. 29.9*Day_unit;
-- A duration that is not more than a real lunar month.
-- subtype Lunar_phase is Duration range -86_400.0 .. 86_400.0;
-- a cyclic unit of -24 hours to + 24 hours in seconds,
-- aimed at giving a lunar time representing the moon's azimut
-- the same way as you estimate the sun's position from your clock's hour.
-- The lunar phase is the duration
-- to be substracted from the clock hour
-- to obtain the lunar time.
function Mean_lunar_age (This_day : Historical_Time) return Lunar_age;
-- The number of fractional days since the last mean new moon.
function Mean_lunar_residue (This_day : Historical_Time) return Lunar_age;
-- The number of fractional days until the next mean new moon.
function Mean_lunar_time_shift (This_day : Historical_Time)
return H24_Historical_Duration;
-- Duration to be substracted from the clock hour modulo 86_400.0 s
-- in order to obtain the lunar time
-- function Mean_lunar_phase (This_day : Historical_Time) return Lunar_phase;
-- Mean lunar phase, a duration in the range 0.0 .. 24.0 in sesconds;
-- Practically, value 24.0 is displayed when rounding.
end Lunar_phase_computations;
|
-- gamma(1+x) = x! for x=0,1,2 ...
-- Calls 2 important Test procedures from Factorial, then quick test.
with Factorial;
with text_io; use text_io;
with ada.numerics.generic_elementary_functions;
procedure Factorial_tst_1 is
type Real is digits 15;
package F is new Factorial (Real); use F;
package Math is new ada.numerics.generic_elementary_functions(Real); use Math;
function Factorial (n : in Natural) return Real is
Prod : Real := 1.0;
begin
if n < 2 then
return 1.0;
end if;
for j in 2 .. n loop
Prod := Prod * Real(j);
end loop;
return Prod;
end;
begin
Test_Stieltjes_Coefficients;
Test_Log_Factorial_Table;
new_line;
new_line; put(real'image( (log_factorial(1) - Log (Factorial(1)) )));
new_line; put(real'image( (log_factorial(2) - Log (Factorial(2)) )));
new_line; put(real'image( (log_factorial(6) - Log (Factorial(6)) )));
new_line; put(real'image( (log_factorial(10) - Log (Factorial(10)) )));
new_line; put(real'image( (log_factorial(14) - Log (Factorial(14)) )));
new_line; put(real'image( (log_factorial(20) - Log (Factorial(20)) )));
new_line; put(real'image( (log_factorial(21) - Log (Factorial(21)) )));
new_line; put(real'image( (log_factorial(27) - Log (Factorial(27)) )));
new_line; put(real'image( (log_factorial(37) - Log (Factorial(37)) )));
new_line; put(real'image( (log_factorial(47) - Log (Factorial(47)) )));
new_line; put(real'image( (log_factorial(52) - Log (Factorial(52)) )));
new_line; put(real'image( (log_factorial(57) - Log (Factorial(57)) )));
new_line; put(real'image( (log_factorial(87) - Log (Factorial(87)) )));
end;
|
with Ada.Strings.Fixed;
with Ada.Integer_Text_IO;
-- Copyright 2021 Melwyn Francis Carlo
procedure A040 is
use Ada.Strings.Fixed;
use Ada.Integer_Text_IO;
Max_E : constant Integer := 7; -- 1E+x
N : constant array (Integer range 1 .. Max_E) of Integer :=
(1, 10, 100, 1000, 10000, 100000, 1000000);
Indices : array (Integer range 1 .. Max_E) of Integer;
Product_Val : Integer := 1;
J, Num, Index_Val : Integer;
begin
Indices (1) := 1;
for I in 2 .. Max_E loop
Indices (I) := Indices (I - 1) + (9 * (I - 1) * Integer (10 ** (I - 2)));
end loop;
for I in 1 .. Max_E loop
J := 1;
while J <= Max_E loop
if N (I) < Indices (J) then
exit;
end if;
J := J + 1;
end loop;
J := J - 2;
Num := Integer (10 ** J) + Integer ((N (I) - Indices (J + 1)) / (J + 1));
Index_Val := ((N (I) - Indices (J + 1)) mod (J + 1)) + 1;
Product_Val := Product_Val * (Character'Pos (
Trim (Integer'Image (Num), Ada.Strings.Both) (Index_Val))
- Character'Pos ('0'));
end loop;
Put (Product_Val, Width => 0);
end A040;
|
pragma Ada_2005;
pragma Style_Checks (Off);
pragma Warnings (Off);
with Interfaces.C; use Interfaces.C;
limited with GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstbuffer_h;
with glib;
with glib.Values;
with System;
with System;
with glib;
-- limited with GStreamer.GST_Low_Level.glib_2_0_glib_glist_h;
package GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstbufferlist_h is
-- unsupported macro: GST_TYPE_BUFFER_LIST (gst_buffer_list_get_type ())
-- arg-macro: function GST_IS_BUFFER_LIST (obj)
-- return G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_BUFFER_LIST);
-- arg-macro: function GST_IS_BUFFER_LIST_CLASS (klass)
-- return G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_BUFFER_LIST);
-- arg-macro: function GST_BUFFER_LIST_GET_CLASS (obj)
-- return G_TYPE_INSTANCE_GET_CLASS ((obj), GST_TYPE_BUFFER_LIST, GstBufferListClass);
-- arg-macro: function GST_BUFFER_LIST (obj)
-- return G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_BUFFER_LIST, GstBufferList);
-- arg-macro: function GST_BUFFER_LIST_CLASS (klass)
-- return G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_BUFFER_LIST, GstBufferListClass);
-- arg-macro: function GST_BUFFER_LIST_CAST (obj)
-- return (GstBufferList *)obj;
-- unsupported macro: GST_TYPE_BUFFER_LIST_ITERATOR (gst_buffer_list_iterator_get_type ())
-- arg-macro: procedure gst_buffer_list_is_writable (list)
-- gst_mini_object_is_writable (GST_MINI_OBJECT_CAST (list))
-- arg-macro: procedure gst_buffer_list_make_writable (list)
-- GST_BUFFER_LIST_CAST (gst_mini_object_make_writable (GST_MINI_OBJECT_CAST (list)))
-- GStreamer
-- * Copyright (C) 2009 Axis Communications <dev-gstreamer at axis dot com>
-- * @author Jonas Holmberg <jonas dot holmberg at axis dot com>
-- *
-- * gstbufferlist.h: Header for GstBufferList object
-- *
-- * This library is free software; you can redistribute it and/or
-- * modify it under the terms of the GNU Library General Public
-- * License as published by the Free Software Foundation; either
-- * version 2 of the License, or (at your option) any later version.
-- *
-- * This library is distributed in the hope that it will be useful,
-- * but WITHOUT ANY WARRANTY; without even the implied warranty of
-- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-- * Library General Public License for more details.
-- *
-- * You should have received a copy of the GNU Library General Public
-- * License along with this library; if not, write to the
-- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-- * Boston, MA 02111-1307, USA.
--
-- skipped empty struct u_GstBufferList
-- skipped empty struct GstBufferList
-- skipped empty struct u_GstBufferListClass
-- skipped empty struct GstBufferListClass
-- skipped empty struct u_GstBufferListIterator
-- skipped empty struct GstBufferListIterator
--*
-- * GstBufferListDoFunction:
-- * @buffer: (transfer full): the #GstBuffer
-- * @user_data: user data
-- *
-- * A function for accessing the last buffer returned by
-- * gst_buffer_list_iterator_next(). The function can leave @buffer in the list,
-- * replace @buffer in the list or remove @buffer from the list, depending on
-- * the return value. If the function returns NULL, @buffer will be removed from
-- * the list, otherwise @buffer will be replaced with the returned buffer.
-- *
-- * The last buffer returned by gst_buffer_list_iterator_next() will be replaced
-- * with the buffer returned from the function. The function takes ownership of
-- * @buffer and if a different value than @buffer is returned, @buffer must be
-- * unreffed. If NULL is returned, the buffer will be removed from the list. The
-- * list must be writable.
-- *
-- * Returns: (transfer full): the buffer to replace @buffer in the list, or NULL
-- * to remove @buffer from the list
-- *
-- * Since: 0.10.24
--
type GstBufferListDoFunction is access function (arg1 : access GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstbuffer_h.GstBuffer; arg2 : System.Address) return access GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstbuffer_h.GstBuffer;
pragma Convention (C, GstBufferListDoFunction); -- gst/gstbufferlist.h:66
--*
-- * GstBufferListItem:
-- * @GST_BUFFER_LIST_CONTINUE: Retrieve next buffer
-- * @GST_BUFFER_LIST_SKIP_GROUP: Skip to next group
-- * @GST_BUFFER_LIST_END: End iteration
-- *
-- * The result of the #GstBufferListFunc.
-- *
-- * Since: 0.10.24
--
type GstBufferListItem is
(GST_BUFFER_LIST_CONTINUE,
GST_BUFFER_LIST_SKIP_GROUP,
GST_BUFFER_LIST_END);
pragma Convention (C, GstBufferListItem); -- gst/gstbufferlist.h:82
--*
-- * GstBufferListFunc:
-- * @buffer: pointer the buffer
-- * @group: the group index of @buffer
-- * @idx: the index in @group of @buffer
-- * @user_data: user data passed to gst_buffer_list_foreach()
-- *
-- * A function that will be called from gst_buffer_list_foreach(). The @buffer
-- * field will point to a the reference of the buffer at @idx in @group.
-- *
-- * When this function returns #GST_BUFFER_LIST_CONTINUE, the next buffer will be
-- * returned. When #GST_BUFFER_LIST_SKIP_GROUP is returned, all remaining buffers
-- * in the current group will be skipped and the first buffer of the next group
-- * is returned (if any). When GST_BUFFER_LIST_END is returned,
-- * gst_buffer_list_foreach() will return.
-- *
-- * When @buffer is set to NULL, the item will be removed from the bufferlist.
-- * When @buffer has been made writable, the new buffer reference can be assigned
-- * to @buffer. This function is responsible for unreffing the old buffer when
-- * removing or modifying.
-- *
-- * Returns: a #GstBufferListItem
-- *
-- * Since: 0.10.24
--
type GstBufferListFunc is access function
(arg1 : System.Address;
arg2 : GLIB.guint;
arg3 : GLIB.guint;
arg4 : System.Address) return GstBufferListItem;
pragma Convention (C, GstBufferListFunc); -- gst/gstbufferlist.h:109
function gst_buffer_list_get_type return GLIB.GType; -- gst/gstbufferlist.h:113
pragma Import (C, gst_buffer_list_get_type, "gst_buffer_list_get_type");
-- allocation
function gst_buffer_list_new return System.Address; -- gst/gstbufferlist.h:116
pragma Import (C, gst_buffer_list_new, "gst_buffer_list_new");
-- refcounting
--*
-- * gst_buffer_list_ref:
-- * @list: a #GstBufferList
-- *
-- * Increases the refcount of the given buffer list by one.
-- *
-- * Note that the refcount affects the writeability of @list and its data, see
-- * gst_buffer_list_make_writable(). It is important to note that keeping
-- * additional references to GstBufferList instances can potentially increase
-- * the number of memcpy operations in a pipeline.
-- *
-- * Returns: (transfer full): @list
-- *
-- * Since: 0.10.24
--
function gst_buffer_list_ref (list : System.Address) return System.Address; -- gst/gstbufferlist.h:139
pragma Import (C, gst_buffer_list_ref, "gst_buffer_list_ref");
--*
-- * gst_buffer_list_unref:
-- * @list: (transfer full): a #GstBufferList
-- *
-- * Decreases the refcount of the buffer list. If the refcount reaches 0, the
-- * buffer list will be freed.
-- *
-- * Since: 0.10.24
--
procedure gst_buffer_list_unref (list : System.Address); -- gst/gstbufferlist.h:159
pragma Import (C, gst_buffer_list_unref, "gst_buffer_list_unref");
-- copy
--*
-- * gst_buffer_list_copy:
-- * @list: a #GstBufferList
-- *
-- * Create a shallow copy of the given buffer list. This will make a newly
-- * allocated copy of the source list with copies of buffer pointers. The
-- * refcount of buffers pointed to will be increased by one.
-- *
-- * Returns: (transfer full): a new copy of @list.
-- *
-- * Since: 0.10.24
--
function gst_buffer_list_copy (list : System.Address) return System.Address; -- gst/gstbufferlist.h:182
pragma Import (C, gst_buffer_list_copy, "gst_buffer_list_copy");
--*
-- * gst_buffer_list_is_writable:
-- * @list: a #GstBufferList
-- *
-- * Tests if you can safely add buffers and groups into a buffer list.
-- *
-- * Since: 0.10.24
--
--*
-- * gst_buffer_list_make_writable:
-- * @list: (transfer full): a #GstBufferList
-- *
-- * Makes a writable buffer list from the given buffer list. If the source buffer
-- * list is already writable, this will simply return the same buffer list. A
-- * copy will otherwise be made using gst_buffer_list_copy().
-- *
-- * Returns: (transfer full): a writable list, which may or may not be the
-- * same as @list
-- *
-- * Since: 0.10.24
--
function gst_buffer_list_n_groups (list : System.Address) return GLIB.guint; -- gst/gstbufferlist.h:212
pragma Import (C, gst_buffer_list_n_groups, "gst_buffer_list_n_groups");
procedure gst_buffer_list_foreach
(list : System.Address;
func : GstBufferListFunc;
user_data : System.Address); -- gst/gstbufferlist.h:214
pragma Import (C, gst_buffer_list_foreach, "gst_buffer_list_foreach");
function gst_buffer_list_get
(list : System.Address;
group : GLIB.guint;
idx : GLIB.guint) return access GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstbuffer_h.GstBuffer; -- gst/gstbufferlist.h:217
pragma Import (C, gst_buffer_list_get, "gst_buffer_list_get");
-- iterator
function gst_buffer_list_iterator_get_type return GLIB.GType; -- gst/gstbufferlist.h:220
pragma Import (C, gst_buffer_list_iterator_get_type, "gst_buffer_list_iterator_get_type");
function gst_buffer_list_iterate (list : System.Address) return System.Address; -- gst/gstbufferlist.h:221
pragma Import (C, gst_buffer_list_iterate, "gst_buffer_list_iterate");
procedure gst_buffer_list_iterator_free (it : System.Address); -- gst/gstbufferlist.h:222
pragma Import (C, gst_buffer_list_iterator_free, "gst_buffer_list_iterator_free");
function gst_buffer_list_iterator_n_buffers (it : System.Address) return GLIB.guint; -- gst/gstbufferlist.h:224
pragma Import (C, gst_buffer_list_iterator_n_buffers, "gst_buffer_list_iterator_n_buffers");
function gst_buffer_list_iterator_next (it : System.Address) return access GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstbuffer_h.GstBuffer; -- gst/gstbufferlist.h:225
pragma Import (C, gst_buffer_list_iterator_next, "gst_buffer_list_iterator_next");
function gst_buffer_list_iterator_next_group (it : System.Address) return GLIB.gboolean; -- gst/gstbufferlist.h:226
pragma Import (C, gst_buffer_list_iterator_next_group, "gst_buffer_list_iterator_next_group");
procedure gst_buffer_list_iterator_add (it : System.Address; buffer : access GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstbuffer_h.GstBuffer); -- gst/gstbufferlist.h:228
pragma Import (C, gst_buffer_list_iterator_add, "gst_buffer_list_iterator_add");
procedure gst_buffer_list_iterator_add_list (it : System.Address; list : access GStreamer.GST_Low_Level.glib_2_0_glib_glist_h.GList); -- gst/gstbufferlist.h:229
pragma Import (C, gst_buffer_list_iterator_add_list, "gst_buffer_list_iterator_add_list");
procedure gst_buffer_list_iterator_add_group (it : System.Address); -- gst/gstbufferlist.h:230
pragma Import (C, gst_buffer_list_iterator_add_group, "gst_buffer_list_iterator_add_group");
procedure gst_buffer_list_iterator_remove (it : System.Address); -- gst/gstbufferlist.h:231
pragma Import (C, gst_buffer_list_iterator_remove, "gst_buffer_list_iterator_remove");
function gst_buffer_list_iterator_steal (it : System.Address) return access GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstbuffer_h.GstBuffer; -- gst/gstbufferlist.h:232
pragma Import (C, gst_buffer_list_iterator_steal, "gst_buffer_list_iterator_steal");
procedure gst_buffer_list_iterator_take (it : System.Address; buffer : access GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstbuffer_h.GstBuffer); -- gst/gstbufferlist.h:233
pragma Import (C, gst_buffer_list_iterator_take, "gst_buffer_list_iterator_take");
function gst_buffer_list_iterator_do
(it : System.Address;
do_func : GstBufferListDoFunction;
user_data : System.Address) return access GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstbuffer_h.GstBuffer; -- gst/gstbufferlist.h:235
pragma Import (C, gst_buffer_list_iterator_do, "gst_buffer_list_iterator_do");
-- conversion
function gst_buffer_list_iterator_merge_group (it : System.Address) return access GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstbuffer_h.GstBuffer; -- gst/gstbufferlist.h:239
pragma Import (C, gst_buffer_list_iterator_merge_group, "gst_buffer_list_iterator_merge_group");
end GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstbufferlist_h;
|
--------------------------------------------------------------------------------------------------------------------
-- Copyright (c) 2013-2018 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.
--------------------------------------------------------------------------------------------------------------------
-- Mac OS X implementation.
--------------------------------------------------------------------------------------------------------------------
separate (SDL.Platform)
function Get return Platforms is
begin
return Mac_OS_X;
end Get;
|
--------------------------------------------------------------------------------
-- MIT License
--
-- Copyright (c) 2021 Zane Myers
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including without limitation the rights
-- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-- copies of the Software, and to permit persons to whom the Software is
-- furnished to do so, subject to the following conditions:
--
-- The above copyright notice and this permission notice shall be included in all
-- copies or substantial portions of the Software.
--
-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-- SOFTWARE.
--------------------------------------------------------------------------------
with Ada.Text_IO;
with Vulkan.Math.GenFMatrix;
with Vulkan.Math.Mat2x2;
with Vulkan.Math.GenFType;
with Vulkan.Math.Vec2;
with Vulkan.Test.Framework;
use Ada.Text_IO;
use Vulkan.Math.GenFMatrix;
use Vulkan.Math.Mat2x2;
use Vulkan.Math.GenFType;
use Vulkan.Math.Vec2;
use Vulkan.Test.Framework;
--------------------------------------------------------------------------------
--< @group Vulkan Math Basic Types
--------------------------------------------------------------------------------
--< @summary
--< This package provides tests for single precision floating point mat2x2.
--------------------------------------------------------------------------------
package body Vulkan.Math.Mat2x2.Test is
-- Test Mat2x2
procedure Test_Mat2x2 is
vec1 : Vkm_Vec2 :=
Make_Vec2(1.0, 2.0);
mat1 : Vkm_Mat2x2 :=
Make_Mat2x2;
mat2 : Vkm_Mat2x2 :=
Make_Mat2x2(diag => 2.0);
mat3 : Vkm_Mat2x2 :=
Make_Mat2x2(vec1);
mat4 : Vkm_Mat2x2 :=
Make_Mat2x2(0.0, 1.0, 2.0, 3.0);
mat5 : Vkm_Mat2x2 :=
Make_Mat2x2(vec1, vec1);
mat6 : Vkm_Mat2x2 :=
Make_Mat2x2(mat4);
begin
Put_Line("Testing Mat2x2 Constructors...");
Put_Line("mat1 " & mat1.Image);
Assert_Mat2x2_Equals(mat1, 1.0, 0.0, 0.0, 1.0);
Put_Line("mat2 " & mat2.Image);
Assert_Mat2x2_Equals(mat2, 2.0, 0.0, 0.0, 2.0);
Put_Line("mat3 " & mat3.Image);
Assert_Mat2x2_Equals(mat3, 1.0, 0.0, 0.0, 2.0);
Put_Line("mat4 " & mat4.Image);
Assert_Mat2x2_Equals(mat4, 0.0, 1.0, 2.0, 3.0);
Put_Line("mat5 " & mat5.Image);
Assert_Mat2x2_Equals(mat5, 1.0, 2.0, 1.0, 2.0);
Put_Line("mat6 " & mat6.Image);
Assert_Mat2x2_Equals(mat6, 0.0, 1.0, 2.0, 3.0);
Put_Line("Testing '=' operator...");
Put_Line(" mat2 != mat3");
Assert_Vkm_Bool_Equals(mat2 = mat3, False);
Put_Line(" mat4 != mat5");
Assert_Vkm_Bool_Equals(mat4 = mat5, False);
Put_Line(" mat4 = mat6");
Assert_Vkm_Bool_Equals(mat4 = mat6, True);
Put_Line(" Testing unary '+/-' operator");
Put_Line(" + mat4 = " & Image(+ mat4));
Assert_Mat2x2_Equals(+mat4, 0.0, 1.0, 2.0, 3.0);
Put_Line(" - mat4 = " & Image(- mat4));
Assert_Mat2x2_Equals(-mat4, -0.0, -1.0, -2.0, -3.0);
Put_Line("+ ( - mat4) = " & Image(+(- mat4)));
Assert_Mat2x2_Equals(-mat4, -0.0, -1.0, -2.0, -3.0);
Put_Line("Testing 'abs' operator...");
Put_Line(" abs( - mat4) = " & Image(abs(-mat4)));
Assert_Mat2x2_Equals(abs(-mat4), 0.0, 1.0, 2.0, 3.0);
Put_Line("Testing '+' operator...");
Put_Line(" mat4 + mat5 = " & Image(mat4 + mat5));
Assert_Mat2x2_Equals(mat4 + mat5, 1.0, 3.0, 3.0, 5.0);
Put_Line("Testing '-' operator...");
Put_Line(" mat4 - mat5 = " & Image(mat4 -mat5));
Assert_Mat2x2_Equals(mat4 - mat5, -1.0, -1.0, 1.0, 1.0);
Put_Line("Testing '*' operator...");
Put_Line(" mat4 * mat5 = " & Image(mat4 * mat5));
Assert_Mat2x2_Equals(mat4 * mat5, 1.0, 2.0, 5.0, 10.0);
Put_Line(" mat4 * vec1 = " & Image(mat4 * vec1));
Assert_Vec2_Equals(mat4 * vec1, 2.0, 8.0);
Put_Line(" vec1 * mat4 = " & Image(vec1 * mat4));
Assert_Vec2_Equals(vec1 * mat4, 4.0, 7.0);
end Test_Mat2x2;
end Vulkan.Math.Mat2x2.Test;
|
-- { dg-do run }
procedure Alignment10 is
type Short_T is mod 2 ** 16;
for Short_T'Size use 16;
for Short_T'Alignment use 1;
subtype Short_Sub_T is Short_T range 1000 .. 1005;
A : aliased Short_T := 1000;
B : Short_Sub_T;
for B'Address use A'Address;
pragma Import (Ada, B);
begin
if B /= 1000 then
raise Program_Error;
end if;
end;
|
-----------------------------------------------------------------------
-- asf-applications-main-tests - Unit tests for Applications
-- Copyright (C) 2011, 2012, 2014 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.Test_Caller;
with Util.Beans.Objects;
with Ada.Unchecked_Deallocation;
with EL.Contexts.Default;
with ASF.Applications.Tests;
with ASF.Applications.Main.Configs;
with ASF.Requests.Mockup;
package body ASF.Applications.Main.Tests is
use Util.Tests;
function Create_Form_Bean return Util.Beans.Basic.Readonly_Bean_Access;
package Caller is new Util.Test_Caller (Test, "Applications.Main");
procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite) is
begin
Caller.Add_Test (Suite, "Test ASF.Applications.Main.Read_Configuration",
Test_Read_Configuration'Access);
Caller.Add_Test (Suite, "Test ASF.Applications.Main.Create",
Test_Create_Bean'Access);
Caller.Add_Test (Suite, "Test ASF.Applications.Main.Load_Bundle",
Test_Load_Bundle'Access);
Caller.Add_Test (Suite, "Test ASF.Applications.Main.Register,Load_Bundle",
Test_Bundle_Configuration'Access);
Caller.Add_Test (Suite, "Test ASF.Applications.Main.Get_Supported_Locales",
Test_Locales'Access);
end Add_Tests;
-- ------------------------------
-- Initialize the test application
-- ------------------------------
procedure Set_Up (T : in out Test) is
Fact : ASF.Applications.Main.Application_Factory;
C : ASF.Applications.Config;
begin
T.App := new ASF.Applications.Main.Application;
C.Copy (Util.Tests.Get_Properties);
T.App.Initialize (C, Fact);
T.App.Register ("layoutMsg", "layout");
end Set_Up;
-- ------------------------------
-- Deletes the application object
-- ------------------------------
overriding
procedure Tear_Down (T : in out Test) is
procedure Free is
new Ada.Unchecked_Deallocation (Object => ASF.Applications.Main.Application'Class,
Name => ASF.Applications.Main.Application_Access);
begin
Free (T.App);
end Tear_Down;
function Create_Form_Bean return Util.Beans.Basic.Readonly_Bean_Access is
Result : constant Applications.Tests.Form_Bean_Access := new Applications.Tests.Form_Bean;
begin
return Result.all'Access;
end Create_Form_Bean;
-- ------------------------------
-- Test creation of module
-- ------------------------------
procedure Test_Read_Configuration (T : in out Test) is
Path : constant String := Util.Tests.Get_Test_Path ("config/empty.xml");
begin
ASF.Applications.Main.Configs.Read_Configuration (T.App.all, Path);
end Test_Read_Configuration;
-- ------------------------------
-- Test creation of a module and registration in an application.
-- ------------------------------
procedure Test_Create_Bean (T : in out Test) is
use type Util.Beans.Basic.Readonly_Bean_Access;
procedure Check (Name : in String;
Kind : in ASF.Beans.Scope_Type);
procedure Check (Name : in String;
Kind : in ASF.Beans.Scope_Type) is
Value : Util.Beans.Objects.Object;
Bean : Util.Beans.Basic.Readonly_Bean_Access;
Scope : ASF.Beans.Scope_Type;
Context : EL.Contexts.Default.Default_Context;
begin
T.App.Create (Name => Ada.Strings.Unbounded.To_Unbounded_String (Name),
Context => Context,
Result => Bean,
Scope => Scope);
T.Assert (Kind = Scope, "Invalid scope for " & Name);
T.Assert (Bean /= null, "Invalid bean object");
Value := Util.Beans.Objects.To_Object (Bean);
T.Assert (not Util.Beans.Objects.Is_Null (Value), "Invalid bean");
-- Special test for the sessionForm bean which is initialized by configuration properties
if Name = "sessionForm" then
T.Assert_Equals ("John.Rambo@gmail.com",
Util.Beans.Objects.To_String (Bean.Get_Value ("email")),
"Session form not initialized");
end if;
end Check;
Path : constant String := Util.Tests.Get_Test_Path ("regtests/config/test-module.xml");
begin
T.App.Register_Class ("ASF.Applications.Tests.Form_Bean", Create_Form_Bean'Access);
ASF.Applications.Main.Configs.Read_Configuration (T.App.all, Path);
-- Check the 'regtests/config/test-module.xml' managed bean configuration.
Check ("applicationForm", ASF.Beans.APPLICATION_SCOPE);
Check ("sessionForm", ASF.Beans.SESSION_SCOPE);
Check ("requestForm", ASF.Beans.REQUEST_SCOPE);
end Test_Create_Bean;
-- ------------------------------
-- Test loading a resource bundle through the application.
-- ------------------------------
procedure Test_Load_Bundle (T : in out Test) is
use type Util.Beans.Basic.Readonly_Bean_Access;
Path : constant String := Util.Tests.Get_Test_Path ("regtests/config/test-bundle.xml");
Bundle : ASF.Locales.Bundle;
begin
ASF.Applications.Main.Configs.Read_Configuration (T.App.all, Path);
T.App.Load_Bundle (Name => "samples",
Locale => "en",
Bundle => Bundle);
Util.Tests.Assert_Equals (T, "Help", String '(Bundle.Get ("layout_help_label")),
"Invalid bundle value");
T.App.Load_Bundle (Name => "asf",
Locale => "en",
Bundle => Bundle);
Util.Tests.Assert_Matches (T, ".*greater than.*",
String '(Bundle.Get ("validators.length.maximum")),
"Invalid bundle value");
end Test_Load_Bundle;
-- ------------------------------
-- Test application configuration and registration of resource bundles.
-- ------------------------------
procedure Test_Bundle_Configuration (T : in out Test) is
use type Util.Beans.Basic.Readonly_Bean_Access;
Path : constant String := Util.Tests.Get_Test_Path ("regtests/config/test-bundle.xml");
Result : Util.Beans.Basic.Readonly_Bean_Access;
Context : aliased ASF.Contexts.Faces.Faces_Context;
Ctx : aliased EL.Contexts.Default.Default_Context;
Scope : Scope_Type;
begin
Context.Set_ELContext (Ctx'Unchecked_Access);
ASF.Applications.Main.Configs.Read_Configuration (T.App.all, Path);
T.App.Set_Context (Context'Unchecked_Access);
T.App.Create (Name => Ada.Strings.Unbounded.To_Unbounded_String ("samplesMsg"),
Context => Ctx,
Result => Result,
Scope => Scope);
T.Assert (Result /= null, "The samplesMsg bundle was not created");
T.App.Create (Name => Ada.Strings.Unbounded.To_Unbounded_String ("defaultMsg"),
Context => Ctx,
Result => Result,
Scope => Scope);
T.Assert (Result /= null, "The defaultMsg bundle was not created");
end Test_Bundle_Configuration;
-- ------------------------------
-- Test locales.
-- ------------------------------
procedure Test_Locales (T : in out Test) is
use Util.Locales;
Path : constant String := Util.Tests.Get_Test_Path ("regtests/config/test-locales.xml");
Req : aliased ASF.Requests.Mockup.Request;
View : constant access Applications.Views.View_Handler'Class := T.App.Get_View_Handler;
Context : aliased ASF.Contexts.Faces.Faces_Context;
ELContext : aliased EL.Contexts.Default.Default_Context;
Locale : Util.Locales.Locale;
begin
ASF.Applications.Main.Configs.Read_Configuration (T.App.all, Path);
Util.Tests.Assert_Equals (T, To_String (Util.Locales.FRENCH),
To_String (T.App.Get_Default_Locale),
"Invalid default locale");
Context.Set_ELContext (ELContext'Unchecked_Access);
Context.Set_Request (Req'Unchecked_Access);
Req.Set_Header ("Accept-Language", "da, en-gb;q=0.3, fr;q=0.7");
T.App.Set_Context (Context'Unchecked_Access);
Locale := View.Calculate_Locale (Context);
Util.Tests.Assert_Equals (T, To_String (Util.Locales.FRENCH),
To_String (Locale),
"Invalid calculated locale");
Req.Set_Header ("Accept-Language", "da, en-gb, en;q=0.8, fr;q=0.7");
T.App.Set_Context (Context'Unchecked_Access);
Locale := View.Calculate_Locale (Context);
Util.Tests.Assert_Equals (T, "en_GB",
To_String (Locale),
"Invalid calculated locale");
Req.Set_Header ("Accept-Language", "da, fr;q=0.7, fr-fr;q=0.8");
T.App.Set_Context (Context'Unchecked_Access);
Locale := View.Calculate_Locale (Context);
Util.Tests.Assert_Equals (T, "fr_FR",
To_String (Locale),
"Invalid calculated locale");
Req.Set_Header ("Accept-Language", "da, ru, it;q=0.8, de;q=0.7");
T.App.Set_Context (Context'Unchecked_Access);
Locale := View.Calculate_Locale (Context);
Util.Tests.Assert_Equals (T, To_String (Util.Locales.FRENCH),
To_String (Locale),
"Invalid calculated locale");
end Test_Locales;
end ASF.Applications.Main.Tests;
|
-- This spec has been automatically generated from STM32F40x.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
with HAL;
with System;
package STM32_SVD.TIM is
pragma Preelaborate;
---------------
-- Registers --
---------------
------------------
-- CR1_Register --
------------------
subtype CR1_CMS_Field is HAL.UInt2;
subtype CR1_CKD_Field is HAL.UInt2;
-- control register 1
type CR1_Register is record
-- Counter enable
CEN : Boolean := False;
-- Update disable
UDIS : Boolean := False;
-- Update request source
URS : Boolean := False;
-- One-pulse mode
OPM : Boolean := False;
-- Direction
DIR : Boolean := False;
-- Center-aligned mode selection
CMS : CR1_CMS_Field := 16#0#;
-- Auto-reload preload enable
ARPE : Boolean := False;
-- Clock division
CKD : CR1_CKD_Field := 16#0#;
-- unspecified
Reserved_10_31 : HAL.UInt22 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for CR1_Register use record
CEN at 0 range 0 .. 0;
UDIS at 0 range 1 .. 1;
URS at 0 range 2 .. 2;
OPM at 0 range 3 .. 3;
DIR at 0 range 4 .. 4;
CMS at 0 range 5 .. 6;
ARPE at 0 range 7 .. 7;
CKD at 0 range 8 .. 9;
Reserved_10_31 at 0 range 10 .. 31;
end record;
------------------
-- CR2_Register --
------------------
subtype CR2_MMS_Field is HAL.UInt3;
-- control register 2
type CR2_Register is record
-- Capture/compare preloaded control
CCPC : Boolean := False;
-- unspecified
Reserved_1_1 : HAL.Bit := 16#0#;
-- Capture/compare control update selection
CCUS : Boolean := False;
-- Capture/compare DMA selection
CCDS : Boolean := False;
-- Master mode selection
MMS : CR2_MMS_Field := 16#0#;
-- TI1 selection
TI1S : Boolean := False;
-- Output Idle state 1
OIS1 : Boolean := False;
-- Output Idle state 1
OIS1N : Boolean := False;
-- Output Idle state 2
OIS2 : Boolean := False;
-- Output Idle state 2
OIS2N : Boolean := False;
-- Output Idle state 3
OIS3 : Boolean := False;
-- Output Idle state 3
OIS3N : Boolean := False;
-- Output Idle state 4
OIS4 : Boolean := False;
-- unspecified
Reserved_15_31 : HAL.UInt17 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for CR2_Register use record
CCPC at 0 range 0 .. 0;
Reserved_1_1 at 0 range 1 .. 1;
CCUS at 0 range 2 .. 2;
CCDS at 0 range 3 .. 3;
MMS at 0 range 4 .. 6;
TI1S at 0 range 7 .. 7;
OIS1 at 0 range 8 .. 8;
OIS1N at 0 range 9 .. 9;
OIS2 at 0 range 10 .. 10;
OIS2N at 0 range 11 .. 11;
OIS3 at 0 range 12 .. 12;
OIS3N at 0 range 13 .. 13;
OIS4 at 0 range 14 .. 14;
Reserved_15_31 at 0 range 15 .. 31;
end record;
-------------------
-- SMCR_Register --
-------------------
subtype SMCR_SMS_Field is HAL.UInt3;
subtype SMCR_TS_Field is HAL.UInt3;
subtype SMCR_ETF_Field is HAL.UInt4;
subtype SMCR_ETPS_Field is HAL.UInt2;
-- slave mode control register
type SMCR_Register is record
-- Slave mode selection
SMS : SMCR_SMS_Field := 16#0#;
-- unspecified
Reserved_3_3 : HAL.Bit := 16#0#;
-- Trigger selection
TS : SMCR_TS_Field := 16#0#;
-- Master/Slave mode
MSM : Boolean := False;
-- External trigger filter
ETF : SMCR_ETF_Field := 16#0#;
-- External trigger prescaler
ETPS : SMCR_ETPS_Field := 16#0#;
-- External clock enable
ECE : Boolean := False;
-- External trigger polarity
ETP : Boolean := False;
-- unspecified
Reserved_16_31 : HAL.Short := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for SMCR_Register use record
SMS at 0 range 0 .. 2;
Reserved_3_3 at 0 range 3 .. 3;
TS at 0 range 4 .. 6;
MSM at 0 range 7 .. 7;
ETF at 0 range 8 .. 11;
ETPS at 0 range 12 .. 13;
ECE at 0 range 14 .. 14;
ETP at 0 range 15 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
-------------------
-- DIER_Register --
-------------------
-- DMA/Interrupt enable register
type DIER_Register is record
-- Update interrupt enable
UIE : Boolean := False;
-- Capture/Compare 1 interrupt enable
CC1IE : Boolean := False;
-- Capture/Compare 2 interrupt enable
CC2IE : Boolean := False;
-- Capture/Compare 3 interrupt enable
CC3IE : Boolean := False;
-- Capture/Compare 4 interrupt enable
CC4IE : Boolean := False;
-- COM interrupt enable
COMIE : Boolean := False;
-- Trigger interrupt enable
TIE : Boolean := False;
-- Break interrupt enable
BIE : Boolean := False;
-- Update DMA request enable
UDE : Boolean := False;
-- Capture/Compare 1 DMA request enable
CC1DE : Boolean := False;
-- Capture/Compare 2 DMA request enable
CC2DE : Boolean := False;
-- Capture/Compare 3 DMA request enable
CC3DE : Boolean := False;
-- Capture/Compare 4 DMA request enable
CC4DE : Boolean := False;
-- COM DMA request enable
COMDE : Boolean := False;
-- Trigger DMA request enable
TDE : Boolean := False;
-- unspecified
Reserved_15_31 : HAL.UInt17 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for DIER_Register use record
UIE at 0 range 0 .. 0;
CC1IE at 0 range 1 .. 1;
CC2IE at 0 range 2 .. 2;
CC3IE at 0 range 3 .. 3;
CC4IE at 0 range 4 .. 4;
COMIE at 0 range 5 .. 5;
TIE at 0 range 6 .. 6;
BIE at 0 range 7 .. 7;
UDE at 0 range 8 .. 8;
CC1DE at 0 range 9 .. 9;
CC2DE at 0 range 10 .. 10;
CC3DE at 0 range 11 .. 11;
CC4DE at 0 range 12 .. 12;
COMDE at 0 range 13 .. 13;
TDE at 0 range 14 .. 14;
Reserved_15_31 at 0 range 15 .. 31;
end record;
-----------------
-- SR_Register --
-----------------
-- status register
type SR_Register is record
-- Update interrupt flag
UIF : Boolean := False;
-- Capture/compare 1 interrupt flag
CC1IF : Boolean := False;
-- Capture/Compare 2 interrupt flag
CC2IF : Boolean := False;
-- Capture/Compare 3 interrupt flag
CC3IF : Boolean := False;
-- Capture/Compare 4 interrupt flag
CC4IF : Boolean := False;
-- COM interrupt flag
COMIF : Boolean := False;
-- Trigger interrupt flag
TIF : Boolean := False;
-- Break interrupt flag
BIF : Boolean := False;
-- unspecified
Reserved_8_8 : HAL.Bit := 16#0#;
-- Capture/Compare 1 overcapture flag
CC1OF : Boolean := False;
-- Capture/compare 2 overcapture flag
CC2OF : Boolean := False;
-- Capture/Compare 3 overcapture flag
CC3OF : Boolean := False;
-- Capture/Compare 4 overcapture flag
CC4OF : Boolean := False;
-- unspecified
Reserved_13_31 : HAL.UInt19 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for SR_Register use record
UIF at 0 range 0 .. 0;
CC1IF at 0 range 1 .. 1;
CC2IF at 0 range 2 .. 2;
CC3IF at 0 range 3 .. 3;
CC4IF at 0 range 4 .. 4;
COMIF at 0 range 5 .. 5;
TIF at 0 range 6 .. 6;
BIF at 0 range 7 .. 7;
Reserved_8_8 at 0 range 8 .. 8;
CC1OF at 0 range 9 .. 9;
CC2OF at 0 range 10 .. 10;
CC3OF at 0 range 11 .. 11;
CC4OF at 0 range 12 .. 12;
Reserved_13_31 at 0 range 13 .. 31;
end record;
------------------
-- EGR_Register --
------------------
-- event generation register
type EGR_Register is record
-- Write-only. Update generation
UG : Boolean := False;
-- Write-only. Capture/compare 1 generation
CC1G : Boolean := False;
-- Write-only. Capture/compare 2 generation
CC2G : Boolean := False;
-- Write-only. Capture/compare 3 generation
CC3G : Boolean := False;
-- Write-only. Capture/compare 4 generation
CC4G : Boolean := False;
-- Write-only. Capture/Compare control update generation
COMG : Boolean := False;
-- Write-only. Trigger generation
TG : Boolean := False;
-- Write-only. Break generation
BG : Boolean := False;
-- unspecified
Reserved_8_31 : HAL.UInt24 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for EGR_Register use record
UG at 0 range 0 .. 0;
CC1G at 0 range 1 .. 1;
CC2G at 0 range 2 .. 2;
CC3G at 0 range 3 .. 3;
CC4G at 0 range 4 .. 4;
COMG at 0 range 5 .. 5;
TG at 0 range 6 .. 6;
BG at 0 range 7 .. 7;
Reserved_8_31 at 0 range 8 .. 31;
end record;
---------------------------
-- CCMR1_Output_Register --
---------------------------
subtype CCMR1_Output_CC1S_Field is HAL.UInt2;
subtype CCMR1_Output_OC1M_Field is HAL.UInt3;
subtype CCMR1_Output_CC2S_Field is HAL.UInt2;
subtype CCMR1_Output_OC2M_Field is HAL.UInt3;
-- capture/compare mode register 1 (output mode)
type CCMR1_Output_Register is record
-- Capture/Compare 1 selection
CC1S : CCMR1_Output_CC1S_Field := 16#0#;
-- Output Compare 1 fast enable
OC1FE : Boolean := False;
-- Output Compare 1 preload enable
OC1PE : Boolean := False;
-- Output Compare 1 mode
OC1M : CCMR1_Output_OC1M_Field := 16#0#;
-- Output Compare 1 clear enable
OC1CE : Boolean := False;
-- Capture/Compare 2 selection
CC2S : CCMR1_Output_CC2S_Field := 16#0#;
-- Output Compare 2 fast enable
OC2FE : Boolean := False;
-- Output Compare 2 preload enable
OC2PE : Boolean := False;
-- Output Compare 2 mode
OC2M : CCMR1_Output_OC2M_Field := 16#0#;
-- Output Compare 2 clear enable
OC2CE : Boolean := False;
-- unspecified
Reserved_16_31 : HAL.Short := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for CCMR1_Output_Register use record
CC1S at 0 range 0 .. 1;
OC1FE at 0 range 2 .. 2;
OC1PE at 0 range 3 .. 3;
OC1M at 0 range 4 .. 6;
OC1CE at 0 range 7 .. 7;
CC2S at 0 range 8 .. 9;
OC2FE at 0 range 10 .. 10;
OC2PE at 0 range 11 .. 11;
OC2M at 0 range 12 .. 14;
OC2CE at 0 range 15 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
--------------------------
-- CCMR1_Input_Register --
--------------------------
subtype CCMR1_Input_CC1S_Field is HAL.UInt2;
subtype CCMR1_Input_ICPCS_Field is HAL.UInt2;
subtype CCMR1_Input_IC1F_Field is HAL.UInt4;
subtype CCMR1_Input_CC2S_Field is HAL.UInt2;
subtype CCMR1_Input_IC2PCS_Field is HAL.UInt2;
subtype CCMR1_Input_IC2F_Field is HAL.UInt4;
-- capture/compare mode register 1 (input mode)
type CCMR1_Input_Register is record
-- Capture/Compare 1 selection
CC1S : CCMR1_Input_CC1S_Field := 16#0#;
-- Input capture 1 prescaler
ICPCS : CCMR1_Input_ICPCS_Field := 16#0#;
-- Input capture 1 filter
IC1F : CCMR1_Input_IC1F_Field := 16#0#;
-- Capture/Compare 2 selection
CC2S : CCMR1_Input_CC2S_Field := 16#0#;
-- Input capture 2 prescaler
IC2PCS : CCMR1_Input_IC2PCS_Field := 16#0#;
-- Input capture 2 filter
IC2F : CCMR1_Input_IC2F_Field := 16#0#;
-- unspecified
Reserved_16_31 : HAL.Short := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for CCMR1_Input_Register use record
CC1S at 0 range 0 .. 1;
ICPCS at 0 range 2 .. 3;
IC1F at 0 range 4 .. 7;
CC2S at 0 range 8 .. 9;
IC2PCS at 0 range 10 .. 11;
IC2F at 0 range 12 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
---------------------------
-- CCMR2_Output_Register --
---------------------------
subtype CCMR2_Output_CC3S_Field is HAL.UInt2;
subtype CCMR2_Output_OC3M_Field is HAL.UInt3;
subtype CCMR2_Output_CC4S_Field is HAL.UInt2;
subtype CCMR2_Output_OC4M_Field is HAL.UInt3;
-- capture/compare mode register 2 (output mode)
type CCMR2_Output_Register is record
-- Capture/Compare 3 selection
CC3S : CCMR2_Output_CC3S_Field := 16#0#;
-- Output compare 3 fast enable
OC3FE : Boolean := False;
-- Output compare 3 preload enable
OC3PE : Boolean := False;
-- Output compare 3 mode
OC3M : CCMR2_Output_OC3M_Field := 16#0#;
-- Output compare 3 clear enable
OC3CE : Boolean := False;
-- Capture/Compare 4 selection
CC4S : CCMR2_Output_CC4S_Field := 16#0#;
-- Output compare 4 fast enable
OC4FE : Boolean := False;
-- Output compare 4 preload enable
OC4PE : Boolean := False;
-- Output compare 4 mode
OC4M : CCMR2_Output_OC4M_Field := 16#0#;
-- Output compare 4 clear enable
OC4CE : Boolean := False;
-- unspecified
Reserved_16_31 : HAL.Short := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for CCMR2_Output_Register use record
CC3S at 0 range 0 .. 1;
OC3FE at 0 range 2 .. 2;
OC3PE at 0 range 3 .. 3;
OC3M at 0 range 4 .. 6;
OC3CE at 0 range 7 .. 7;
CC4S at 0 range 8 .. 9;
OC4FE at 0 range 10 .. 10;
OC4PE at 0 range 11 .. 11;
OC4M at 0 range 12 .. 14;
OC4CE at 0 range 15 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
--------------------------
-- CCMR2_Input_Register --
--------------------------
subtype CCMR2_Input_CC3S_Field is HAL.UInt2;
subtype CCMR2_Input_IC3PSC_Field is HAL.UInt2;
subtype CCMR2_Input_IC3F_Field is HAL.UInt4;
subtype CCMR2_Input_CC4S_Field is HAL.UInt2;
subtype CCMR2_Input_IC4PSC_Field is HAL.UInt2;
subtype CCMR2_Input_IC4F_Field is HAL.UInt4;
-- capture/compare mode register 2 (input mode)
type CCMR2_Input_Register is record
-- Capture/compare 3 selection
CC3S : CCMR2_Input_CC3S_Field := 16#0#;
-- Input capture 3 prescaler
IC3PSC : CCMR2_Input_IC3PSC_Field := 16#0#;
-- Input capture 3 filter
IC3F : CCMR2_Input_IC3F_Field := 16#0#;
-- Capture/Compare 4 selection
CC4S : CCMR2_Input_CC4S_Field := 16#0#;
-- Input capture 4 prescaler
IC4PSC : CCMR2_Input_IC4PSC_Field := 16#0#;
-- Input capture 4 filter
IC4F : CCMR2_Input_IC4F_Field := 16#0#;
-- unspecified
Reserved_16_31 : HAL.Short := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for CCMR2_Input_Register use record
CC3S at 0 range 0 .. 1;
IC3PSC at 0 range 2 .. 3;
IC3F at 0 range 4 .. 7;
CC4S at 0 range 8 .. 9;
IC4PSC at 0 range 10 .. 11;
IC4F at 0 range 12 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
-------------------
-- CCER_Register --
-------------------
-- capture/compare enable register
type CCER_Register is record
-- Capture/Compare 1 output enable
CC1E : Boolean := False;
-- Capture/Compare 1 output Polarity
CC1P : Boolean := False;
-- Capture/Compare 1 complementary output enable
CC1NE : Boolean := False;
-- Capture/Compare 1 output Polarity
CC1NP : Boolean := False;
-- Capture/Compare 2 output enable
CC2E : Boolean := False;
-- Capture/Compare 2 output Polarity
CC2P : Boolean := False;
-- Capture/Compare 2 complementary output enable
CC2NE : Boolean := False;
-- Capture/Compare 2 output Polarity
CC2NP : Boolean := False;
-- Capture/Compare 3 output enable
CC3E : Boolean := False;
-- Capture/Compare 3 output Polarity
CC3P : Boolean := False;
-- Capture/Compare 3 complementary output enable
CC3NE : Boolean := False;
-- Capture/Compare 3 output Polarity
CC3NP : Boolean := False;
-- Capture/Compare 4 output enable
CC4E : Boolean := False;
-- Capture/Compare 3 output Polarity
CC4P : Boolean := False;
-- unspecified
Reserved_14_31 : HAL.UInt18 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for CCER_Register use record
CC1E at 0 range 0 .. 0;
CC1P at 0 range 1 .. 1;
CC1NE at 0 range 2 .. 2;
CC1NP at 0 range 3 .. 3;
CC2E at 0 range 4 .. 4;
CC2P at 0 range 5 .. 5;
CC2NE at 0 range 6 .. 6;
CC2NP at 0 range 7 .. 7;
CC3E at 0 range 8 .. 8;
CC3P at 0 range 9 .. 9;
CC3NE at 0 range 10 .. 10;
CC3NP at 0 range 11 .. 11;
CC4E at 0 range 12 .. 12;
CC4P at 0 range 13 .. 13;
Reserved_14_31 at 0 range 14 .. 31;
end record;
------------------
-- CNT_Register --
------------------
subtype CNT_CNT_Field is HAL.Short;
-- counter
type CNT_Register is record
-- counter value
CNT : CNT_CNT_Field := 16#0#;
-- unspecified
Reserved_16_31 : HAL.Short := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for CNT_Register use record
CNT at 0 range 0 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
------------------
-- PSC_Register --
------------------
subtype PSC_PSC_Field is HAL.Short;
-- prescaler
type PSC_Register is record
-- Prescaler value
PSC : PSC_PSC_Field := 16#0#;
-- unspecified
Reserved_16_31 : HAL.Short := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for PSC_Register use record
PSC at 0 range 0 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
------------------
-- ARR_Register --
------------------
subtype ARR_ARR_Field is HAL.Short;
-- auto-reload register
type ARR_Register is record
-- Auto-reload value
ARR : ARR_ARR_Field := 16#0#;
-- unspecified
Reserved_16_31 : HAL.Short := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for ARR_Register use record
ARR at 0 range 0 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
------------------
-- RCR_Register --
------------------
subtype RCR_REP_Field is HAL.Byte;
-- repetition counter register
type RCR_Register is record
-- Repetition counter value
REP : RCR_REP_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 RCR_Register use record
REP at 0 range 0 .. 7;
Reserved_8_31 at 0 range 8 .. 31;
end record;
-------------------
-- CCR1_Register --
-------------------
subtype CCR1_CCR1_Field is HAL.Short;
-- capture/compare register 1
type CCR1_Register is record
-- Capture/Compare 1 value
CCR1 : CCR1_CCR1_Field := 16#0#;
-- unspecified
Reserved_16_31 : HAL.Short := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for CCR1_Register use record
CCR1 at 0 range 0 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
-------------------
-- CCR2_Register --
-------------------
subtype CCR2_CCR2_Field is HAL.Short;
-- capture/compare register 2
type CCR2_Register is record
-- Capture/Compare 2 value
CCR2 : CCR2_CCR2_Field := 16#0#;
-- unspecified
Reserved_16_31 : HAL.Short := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for CCR2_Register use record
CCR2 at 0 range 0 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
-------------------
-- CCR3_Register --
-------------------
subtype CCR3_CCR3_Field is HAL.Short;
-- capture/compare register 3
type CCR3_Register is record
-- Capture/Compare value
CCR3 : CCR3_CCR3_Field := 16#0#;
-- unspecified
Reserved_16_31 : HAL.Short := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for CCR3_Register use record
CCR3 at 0 range 0 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
-------------------
-- CCR4_Register --
-------------------
subtype CCR4_CCR4_Field is HAL.Short;
-- capture/compare register 4
type CCR4_Register is record
-- Capture/Compare value
CCR4 : CCR4_CCR4_Field := 16#0#;
-- unspecified
Reserved_16_31 : HAL.Short := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for CCR4_Register use record
CCR4 at 0 range 0 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
-------------------
-- BDTR_Register --
-------------------
subtype BDTR_DTG_Field is HAL.Byte;
subtype BDTR_LOCK_Field is HAL.UInt2;
-- break and dead-time register
type BDTR_Register is record
-- Dead-time generator setup
DTG : BDTR_DTG_Field := 16#0#;
-- Lock configuration
LOCK : BDTR_LOCK_Field := 16#0#;
-- Off-state selection for Idle mode
OSSI : Boolean := False;
-- Off-state selection for Run mode
OSSR : Boolean := False;
-- Break enable
BKE : Boolean := False;
-- Break polarity
BKP : Boolean := False;
-- Automatic output enable
AOE : Boolean := False;
-- Main output enable
MOE : Boolean := False;
-- unspecified
Reserved_16_31 : HAL.Short := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for BDTR_Register use record
DTG at 0 range 0 .. 7;
LOCK at 0 range 8 .. 9;
OSSI at 0 range 10 .. 10;
OSSR at 0 range 11 .. 11;
BKE at 0 range 12 .. 12;
BKP at 0 range 13 .. 13;
AOE at 0 range 14 .. 14;
MOE at 0 range 15 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
------------------
-- DCR_Register --
------------------
subtype DCR_DBA_Field is HAL.UInt5;
subtype DCR_DBL_Field is HAL.UInt5;
-- DMA control register
type DCR_Register is record
-- DMA base address
DBA : DCR_DBA_Field := 16#0#;
-- unspecified
Reserved_5_7 : HAL.UInt3 := 16#0#;
-- DMA burst length
DBL : DCR_DBL_Field := 16#0#;
-- unspecified
Reserved_13_31 : HAL.UInt19 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for DCR_Register use record
DBA at 0 range 0 .. 4;
Reserved_5_7 at 0 range 5 .. 7;
DBL at 0 range 8 .. 12;
Reserved_13_31 at 0 range 13 .. 31;
end record;
-------------------
-- DMAR_Register --
-------------------
subtype DMAR_DMAB_Field is HAL.Short;
-- DMA address for full transfer
type DMAR_Register is record
-- DMA register for burst accesses
DMAB : DMAR_DMAB_Field := 16#0#;
-- unspecified
Reserved_16_31 : HAL.Short := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for DMAR_Register use record
DMAB at 0 range 0 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
------------------
-- CR2_Register --
------------------
-- control register 2
type CR2_Register_1 is record
-- unspecified
Reserved_0_2 : HAL.UInt3 := 16#0#;
-- Capture/compare DMA selection
CCDS : Boolean := False;
-- Master mode selection
MMS : CR2_MMS_Field := 16#0#;
-- TI1 selection
TI1S : Boolean := False;
-- unspecified
Reserved_8_31 : HAL.UInt24 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for CR2_Register_1 use record
Reserved_0_2 at 0 range 0 .. 2;
CCDS at 0 range 3 .. 3;
MMS at 0 range 4 .. 6;
TI1S at 0 range 7 .. 7;
Reserved_8_31 at 0 range 8 .. 31;
end record;
-------------------
-- DIER_Register --
-------------------
-- DMA/Interrupt enable register
type DIER_Register_1 is record
-- Update interrupt enable
UIE : Boolean := False;
-- Capture/Compare 1 interrupt enable
CC1IE : Boolean := False;
-- Capture/Compare 2 interrupt enable
CC2IE : Boolean := False;
-- Capture/Compare 3 interrupt enable
CC3IE : Boolean := False;
-- Capture/Compare 4 interrupt enable
CC4IE : Boolean := False;
-- unspecified
Reserved_5_5 : HAL.Bit := 16#0#;
-- Trigger interrupt enable
TIE : Boolean := False;
-- unspecified
Reserved_7_7 : HAL.Bit := 16#0#;
-- Update DMA request enable
UDE : Boolean := False;
-- Capture/Compare 1 DMA request enable
CC1DE : Boolean := False;
-- Capture/Compare 2 DMA request enable
CC2DE : Boolean := False;
-- Capture/Compare 3 DMA request enable
CC3DE : Boolean := False;
-- Capture/Compare 4 DMA request enable
CC4DE : Boolean := False;
-- unspecified
Reserved_13_13 : HAL.Bit := 16#0#;
-- Trigger DMA request enable
TDE : Boolean := False;
-- unspecified
Reserved_15_31 : HAL.UInt17 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for DIER_Register_1 use record
UIE at 0 range 0 .. 0;
CC1IE at 0 range 1 .. 1;
CC2IE at 0 range 2 .. 2;
CC3IE at 0 range 3 .. 3;
CC4IE at 0 range 4 .. 4;
Reserved_5_5 at 0 range 5 .. 5;
TIE at 0 range 6 .. 6;
Reserved_7_7 at 0 range 7 .. 7;
UDE at 0 range 8 .. 8;
CC1DE at 0 range 9 .. 9;
CC2DE at 0 range 10 .. 10;
CC3DE at 0 range 11 .. 11;
CC4DE at 0 range 12 .. 12;
Reserved_13_13 at 0 range 13 .. 13;
TDE at 0 range 14 .. 14;
Reserved_15_31 at 0 range 15 .. 31;
end record;
-----------------
-- SR_Register --
-----------------
-- status register
type SR_Register_1 is record
-- Update interrupt flag
UIF : Boolean := False;
-- Capture/compare 1 interrupt flag
CC1IF : Boolean := False;
-- Capture/Compare 2 interrupt flag
CC2IF : Boolean := False;
-- Capture/Compare 3 interrupt flag
CC3IF : Boolean := False;
-- Capture/Compare 4 interrupt flag
CC4IF : Boolean := False;
-- unspecified
Reserved_5_5 : HAL.Bit := 16#0#;
-- Trigger interrupt flag
TIF : Boolean := False;
-- unspecified
Reserved_7_8 : HAL.UInt2 := 16#0#;
-- Capture/Compare 1 overcapture flag
CC1OF : Boolean := False;
-- Capture/compare 2 overcapture flag
CC2OF : Boolean := False;
-- Capture/Compare 3 overcapture flag
CC3OF : Boolean := False;
-- Capture/Compare 4 overcapture flag
CC4OF : Boolean := False;
-- unspecified
Reserved_13_31 : HAL.UInt19 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for SR_Register_1 use record
UIF at 0 range 0 .. 0;
CC1IF at 0 range 1 .. 1;
CC2IF at 0 range 2 .. 2;
CC3IF at 0 range 3 .. 3;
CC4IF at 0 range 4 .. 4;
Reserved_5_5 at 0 range 5 .. 5;
TIF at 0 range 6 .. 6;
Reserved_7_8 at 0 range 7 .. 8;
CC1OF at 0 range 9 .. 9;
CC2OF at 0 range 10 .. 10;
CC3OF at 0 range 11 .. 11;
CC4OF at 0 range 12 .. 12;
Reserved_13_31 at 0 range 13 .. 31;
end record;
------------------
-- EGR_Register --
------------------
-- event generation register
type EGR_Register_1 is record
-- Write-only. Update generation
UG : Boolean := False;
-- Write-only. Capture/compare 1 generation
CC1G : Boolean := False;
-- Write-only. Capture/compare 2 generation
CC2G : Boolean := False;
-- Write-only. Capture/compare 3 generation
CC3G : Boolean := False;
-- Write-only. Capture/compare 4 generation
CC4G : Boolean := False;
-- unspecified
Reserved_5_5 : HAL.Bit := 16#0#;
-- Write-only. Trigger generation
TG : Boolean := False;
-- unspecified
Reserved_7_31 : HAL.UInt25 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for EGR_Register_1 use record
UG at 0 range 0 .. 0;
CC1G at 0 range 1 .. 1;
CC2G at 0 range 2 .. 2;
CC3G at 0 range 3 .. 3;
CC4G at 0 range 4 .. 4;
Reserved_5_5 at 0 range 5 .. 5;
TG at 0 range 6 .. 6;
Reserved_7_31 at 0 range 7 .. 31;
end record;
---------------------------
-- CCMR2_Output_Register --
---------------------------
-- capture/compare mode register 2 (output mode)
type CCMR2_Output_Register_1 is record
-- CC3S
CC3S : CCMR2_Output_CC3S_Field := 16#0#;
-- OC3FE
OC3FE : Boolean := False;
-- OC3PE
OC3PE : Boolean := False;
-- OC3M
OC3M : CCMR2_Output_OC3M_Field := 16#0#;
-- OC3CE
OC3CE : Boolean := False;
-- CC4S
CC4S : CCMR2_Output_CC4S_Field := 16#0#;
-- OC4FE
OC4FE : Boolean := False;
-- OC4PE
OC4PE : Boolean := False;
-- OC4M
OC4M : CCMR2_Output_OC4M_Field := 16#0#;
-- O24CE
O24CE : Boolean := False;
-- unspecified
Reserved_16_31 : HAL.Short := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for CCMR2_Output_Register_1 use record
CC3S at 0 range 0 .. 1;
OC3FE at 0 range 2 .. 2;
OC3PE at 0 range 3 .. 3;
OC3M at 0 range 4 .. 6;
OC3CE at 0 range 7 .. 7;
CC4S at 0 range 8 .. 9;
OC4FE at 0 range 10 .. 10;
OC4PE at 0 range 11 .. 11;
OC4M at 0 range 12 .. 14;
O24CE at 0 range 15 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
-------------------
-- CCER_Register --
-------------------
-- capture/compare enable register
type CCER_Register_1 is record
-- Capture/Compare 1 output enable
CC1E : Boolean := False;
-- Capture/Compare 1 output Polarity
CC1P : Boolean := False;
-- unspecified
Reserved_2_2 : HAL.Bit := 16#0#;
-- Capture/Compare 1 output Polarity
CC1NP : Boolean := False;
-- Capture/Compare 2 output enable
CC2E : Boolean := False;
-- Capture/Compare 2 output Polarity
CC2P : Boolean := False;
-- unspecified
Reserved_6_6 : HAL.Bit := 16#0#;
-- Capture/Compare 2 output Polarity
CC2NP : Boolean := False;
-- Capture/Compare 3 output enable
CC3E : Boolean := False;
-- Capture/Compare 3 output Polarity
CC3P : Boolean := False;
-- unspecified
Reserved_10_10 : HAL.Bit := 16#0#;
-- Capture/Compare 3 output Polarity
CC3NP : Boolean := False;
-- Capture/Compare 4 output enable
CC4E : Boolean := False;
-- Capture/Compare 3 output Polarity
CC4P : Boolean := False;
-- unspecified
Reserved_14_14 : HAL.Bit := 16#0#;
-- Capture/Compare 4 output Polarity
CC4NP : Boolean := False;
-- unspecified
Reserved_16_31 : HAL.Short := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for CCER_Register_1 use record
CC1E at 0 range 0 .. 0;
CC1P at 0 range 1 .. 1;
Reserved_2_2 at 0 range 2 .. 2;
CC1NP at 0 range 3 .. 3;
CC2E at 0 range 4 .. 4;
CC2P at 0 range 5 .. 5;
Reserved_6_6 at 0 range 6 .. 6;
CC2NP at 0 range 7 .. 7;
CC3E at 0 range 8 .. 8;
CC3P at 0 range 9 .. 9;
Reserved_10_10 at 0 range 10 .. 10;
CC3NP at 0 range 11 .. 11;
CC4E at 0 range 12 .. 12;
CC4P at 0 range 13 .. 13;
Reserved_14_14 at 0 range 14 .. 14;
CC4NP at 0 range 15 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
------------------
-- CNT_Register --
------------------
subtype CNT_CNT_L_Field is HAL.Short;
subtype CNT_CNT_H_Field is HAL.Short;
-- counter
type CNT_Register_1 is record
-- Low counter value
CNT_L : CNT_CNT_L_Field := 16#0#;
-- High counter value
CNT_H : CNT_CNT_H_Field := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for CNT_Register_1 use record
CNT_L at 0 range 0 .. 15;
CNT_H at 0 range 16 .. 31;
end record;
------------------
-- ARR_Register --
------------------
subtype ARR_ARR_L_Field is HAL.Short;
subtype ARR_ARR_H_Field is HAL.Short;
-- auto-reload register
type ARR_Register_1 is record
-- Low Auto-reload value
ARR_L : ARR_ARR_L_Field := 16#0#;
-- High Auto-reload value
ARR_H : ARR_ARR_H_Field := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for ARR_Register_1 use record
ARR_L at 0 range 0 .. 15;
ARR_H at 0 range 16 .. 31;
end record;
-------------------
-- CCR1_Register --
-------------------
subtype CCR1_CCR1_L_Field is HAL.Short;
subtype CCR1_CCR1_H_Field is HAL.Short;
-- capture/compare register 1
type CCR1_Register_1 is record
-- Low Capture/Compare 1 value
CCR1_L : CCR1_CCR1_L_Field := 16#0#;
-- High Capture/Compare 1 value
CCR1_H : CCR1_CCR1_H_Field := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for CCR1_Register_1 use record
CCR1_L at 0 range 0 .. 15;
CCR1_H at 0 range 16 .. 31;
end record;
-------------------
-- CCR2_Register --
-------------------
subtype CCR2_CCR2_L_Field is HAL.Short;
subtype CCR2_CCR2_H_Field is HAL.Short;
-- capture/compare register 2
type CCR2_Register_1 is record
-- Low Capture/Compare 2 value
CCR2_L : CCR2_CCR2_L_Field := 16#0#;
-- High Capture/Compare 2 value
CCR2_H : CCR2_CCR2_H_Field := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for CCR2_Register_1 use record
CCR2_L at 0 range 0 .. 15;
CCR2_H at 0 range 16 .. 31;
end record;
-------------------
-- CCR3_Register --
-------------------
subtype CCR3_CCR3_L_Field is HAL.Short;
subtype CCR3_CCR3_H_Field is HAL.Short;
-- capture/compare register 3
type CCR3_Register_1 is record
-- Low Capture/Compare value
CCR3_L : CCR3_CCR3_L_Field := 16#0#;
-- High Capture/Compare value
CCR3_H : CCR3_CCR3_H_Field := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for CCR3_Register_1 use record
CCR3_L at 0 range 0 .. 15;
CCR3_H at 0 range 16 .. 31;
end record;
-------------------
-- CCR4_Register --
-------------------
subtype CCR4_CCR4_L_Field is HAL.Short;
subtype CCR4_CCR4_H_Field is HAL.Short;
-- capture/compare register 4
type CCR4_Register_1 is record
-- Low Capture/Compare value
CCR4_L : CCR4_CCR4_L_Field := 16#0#;
-- High Capture/Compare value
CCR4_H : CCR4_CCR4_H_Field := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for CCR4_Register_1 use record
CCR4_L at 0 range 0 .. 15;
CCR4_H at 0 range 16 .. 31;
end record;
-----------------
-- OR_Register --
-----------------
subtype OR_ITR1_RMP_Field is HAL.UInt2;
-- TIM5 option register
type OR_Register is record
-- unspecified
Reserved_0_9 : HAL.UInt10 := 16#0#;
-- Timer Input 4 remap
ITR1_RMP : OR_ITR1_RMP_Field := 16#0#;
-- unspecified
Reserved_12_31 : HAL.UInt20 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for OR_Register use record
Reserved_0_9 at 0 range 0 .. 9;
ITR1_RMP at 0 range 10 .. 11;
Reserved_12_31 at 0 range 12 .. 31;
end record;
-----------------
-- OR_Register --
-----------------
subtype OR_IT4_RMP_Field is HAL.UInt2;
-- TIM5 option register
type OR_Register_1 is record
-- unspecified
Reserved_0_5 : HAL.UInt6 := 16#0#;
-- Timer Input 4 remap
IT4_RMP : OR_IT4_RMP_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 OR_Register_1 use record
Reserved_0_5 at 0 range 0 .. 5;
IT4_RMP at 0 range 6 .. 7;
Reserved_8_31 at 0 range 8 .. 31;
end record;
------------------
-- CR1_Register --
------------------
-- control register 1
type CR1_Register_1 is record
-- Counter enable
CEN : Boolean := False;
-- Update disable
UDIS : Boolean := False;
-- Update request source
URS : Boolean := False;
-- One-pulse mode
OPM : Boolean := False;
-- unspecified
Reserved_4_6 : HAL.UInt3 := 16#0#;
-- Auto-reload preload enable
ARPE : Boolean := False;
-- Clock division
CKD : CR1_CKD_Field := 16#0#;
-- unspecified
Reserved_10_31 : HAL.UInt22 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for CR1_Register_1 use record
CEN at 0 range 0 .. 0;
UDIS at 0 range 1 .. 1;
URS at 0 range 2 .. 2;
OPM at 0 range 3 .. 3;
Reserved_4_6 at 0 range 4 .. 6;
ARPE at 0 range 7 .. 7;
CKD at 0 range 8 .. 9;
Reserved_10_31 at 0 range 10 .. 31;
end record;
------------------
-- CR2_Register --
------------------
-- control register 2
type CR2_Register_2 is record
-- unspecified
Reserved_0_3 : HAL.UInt4 := 16#0#;
-- Master mode selection
MMS : CR2_MMS_Field := 16#0#;
-- unspecified
Reserved_7_31 : HAL.UInt25 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for CR2_Register_2 use record
Reserved_0_3 at 0 range 0 .. 3;
MMS at 0 range 4 .. 6;
Reserved_7_31 at 0 range 7 .. 31;
end record;
-------------------
-- SMCR_Register --
-------------------
-- slave mode control register
type SMCR_Register_1 is record
-- Slave mode selection
SMS : SMCR_SMS_Field := 16#0#;
-- unspecified
Reserved_3_3 : HAL.Bit := 16#0#;
-- Trigger selection
TS : SMCR_TS_Field := 16#0#;
-- Master/Slave mode
MSM : Boolean := False;
-- unspecified
Reserved_8_31 : HAL.UInt24 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for SMCR_Register_1 use record
SMS at 0 range 0 .. 2;
Reserved_3_3 at 0 range 3 .. 3;
TS at 0 range 4 .. 6;
MSM at 0 range 7 .. 7;
Reserved_8_31 at 0 range 8 .. 31;
end record;
-------------------
-- DIER_Register --
-------------------
-- DMA/Interrupt enable register
type DIER_Register_2 is record
-- Update interrupt enable
UIE : Boolean := False;
-- Capture/Compare 1 interrupt enable
CC1IE : Boolean := False;
-- Capture/Compare 2 interrupt enable
CC2IE : Boolean := False;
-- unspecified
Reserved_3_5 : HAL.UInt3 := 16#0#;
-- Trigger interrupt enable
TIE : Boolean := False;
-- unspecified
Reserved_7_31 : HAL.UInt25 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for DIER_Register_2 use record
UIE at 0 range 0 .. 0;
CC1IE at 0 range 1 .. 1;
CC2IE at 0 range 2 .. 2;
Reserved_3_5 at 0 range 3 .. 5;
TIE at 0 range 6 .. 6;
Reserved_7_31 at 0 range 7 .. 31;
end record;
-----------------
-- SR_Register --
-----------------
-- status register
type SR_Register_2 is record
-- Update interrupt flag
UIF : Boolean := False;
-- Capture/compare 1 interrupt flag
CC1IF : Boolean := False;
-- Capture/Compare 2 interrupt flag
CC2IF : Boolean := False;
-- unspecified
Reserved_3_5 : HAL.UInt3 := 16#0#;
-- Trigger interrupt flag
TIF : Boolean := False;
-- unspecified
Reserved_7_8 : HAL.UInt2 := 16#0#;
-- Capture/Compare 1 overcapture flag
CC1OF : Boolean := False;
-- Capture/compare 2 overcapture flag
CC2OF : Boolean := False;
-- unspecified
Reserved_11_31 : HAL.UInt21 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for SR_Register_2 use record
UIF at 0 range 0 .. 0;
CC1IF at 0 range 1 .. 1;
CC2IF at 0 range 2 .. 2;
Reserved_3_5 at 0 range 3 .. 5;
TIF at 0 range 6 .. 6;
Reserved_7_8 at 0 range 7 .. 8;
CC1OF at 0 range 9 .. 9;
CC2OF at 0 range 10 .. 10;
Reserved_11_31 at 0 range 11 .. 31;
end record;
------------------
-- EGR_Register --
------------------
-- event generation register
type EGR_Register_2 is record
-- Write-only. Update generation
UG : Boolean := False;
-- Write-only. Capture/compare 1 generation
CC1G : Boolean := False;
-- Write-only. Capture/compare 2 generation
CC2G : Boolean := False;
-- unspecified
Reserved_3_5 : HAL.UInt3 := 16#0#;
-- Write-only. Trigger generation
TG : Boolean := False;
-- unspecified
Reserved_7_31 : HAL.UInt25 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for EGR_Register_2 use record
UG at 0 range 0 .. 0;
CC1G at 0 range 1 .. 1;
CC2G at 0 range 2 .. 2;
Reserved_3_5 at 0 range 3 .. 5;
TG at 0 range 6 .. 6;
Reserved_7_31 at 0 range 7 .. 31;
end record;
---------------------------
-- CCMR1_Output_Register --
---------------------------
-- capture/compare mode register 1 (output mode)
type CCMR1_Output_Register_1 is record
-- Capture/Compare 1 selection
CC1S : CCMR1_Output_CC1S_Field := 16#0#;
-- Output Compare 1 fast enable
OC1FE : Boolean := False;
-- Output Compare 1 preload enable
OC1PE : Boolean := False;
-- Output Compare 1 mode
OC1M : CCMR1_Output_OC1M_Field := 16#0#;
-- unspecified
Reserved_7_7 : HAL.Bit := 16#0#;
-- Capture/Compare 2 selection
CC2S : CCMR1_Output_CC2S_Field := 16#0#;
-- Output Compare 2 fast enable
OC2FE : Boolean := False;
-- Output Compare 2 preload enable
OC2PE : Boolean := False;
-- Output Compare 2 mode
OC2M : CCMR1_Output_OC2M_Field := 16#0#;
-- unspecified
Reserved_15_31 : HAL.UInt17 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for CCMR1_Output_Register_1 use record
CC1S at 0 range 0 .. 1;
OC1FE at 0 range 2 .. 2;
OC1PE at 0 range 3 .. 3;
OC1M at 0 range 4 .. 6;
Reserved_7_7 at 0 range 7 .. 7;
CC2S at 0 range 8 .. 9;
OC2FE at 0 range 10 .. 10;
OC2PE at 0 range 11 .. 11;
OC2M at 0 range 12 .. 14;
Reserved_15_31 at 0 range 15 .. 31;
end record;
--------------------------
-- CCMR1_Input_Register --
--------------------------
subtype CCMR1_Input_IC1F_Field_1 is HAL.UInt3;
subtype CCMR1_Input_IC2F_Field_1 is HAL.UInt3;
-- capture/compare mode register 1 (input mode)
type CCMR1_Input_Register_1 is record
-- Capture/Compare 1 selection
CC1S : CCMR1_Input_CC1S_Field := 16#0#;
-- Input capture 1 prescaler
ICPCS : CCMR1_Input_ICPCS_Field := 16#0#;
-- Input capture 1 filter
IC1F : CCMR1_Input_IC1F_Field_1 := 16#0#;
-- unspecified
Reserved_7_7 : HAL.Bit := 16#0#;
-- Capture/Compare 2 selection
CC2S : CCMR1_Input_CC2S_Field := 16#0#;
-- Input capture 2 prescaler
IC2PCS : CCMR1_Input_IC2PCS_Field := 16#0#;
-- Input capture 2 filter
IC2F : CCMR1_Input_IC2F_Field_1 := 16#0#;
-- unspecified
Reserved_15_31 : HAL.UInt17 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for CCMR1_Input_Register_1 use record
CC1S at 0 range 0 .. 1;
ICPCS at 0 range 2 .. 3;
IC1F at 0 range 4 .. 6;
Reserved_7_7 at 0 range 7 .. 7;
CC2S at 0 range 8 .. 9;
IC2PCS at 0 range 10 .. 11;
IC2F at 0 range 12 .. 14;
Reserved_15_31 at 0 range 15 .. 31;
end record;
-------------------
-- CCER_Register --
-------------------
-- capture/compare enable register
type CCER_Register_2 is record
-- Capture/Compare 1 output enable
CC1E : Boolean := False;
-- Capture/Compare 1 output Polarity
CC1P : Boolean := False;
-- unspecified
Reserved_2_2 : HAL.Bit := 16#0#;
-- Capture/Compare 1 output Polarity
CC1NP : Boolean := False;
-- Capture/Compare 2 output enable
CC2E : Boolean := False;
-- Capture/Compare 2 output Polarity
CC2P : Boolean := False;
-- unspecified
Reserved_6_6 : HAL.Bit := 16#0#;
-- Capture/Compare 2 output Polarity
CC2NP : Boolean := False;
-- unspecified
Reserved_8_31 : HAL.UInt24 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for CCER_Register_2 use record
CC1E at 0 range 0 .. 0;
CC1P at 0 range 1 .. 1;
Reserved_2_2 at 0 range 2 .. 2;
CC1NP at 0 range 3 .. 3;
CC2E at 0 range 4 .. 4;
CC2P at 0 range 5 .. 5;
Reserved_6_6 at 0 range 6 .. 6;
CC2NP at 0 range 7 .. 7;
Reserved_8_31 at 0 range 8 .. 31;
end record;
------------------
-- CR1_Register --
------------------
-- control register 1
type CR1_Register_2 is record
-- Counter enable
CEN : Boolean := False;
-- Update disable
UDIS : Boolean := False;
-- Update request source
URS : Boolean := False;
-- unspecified
Reserved_3_6 : HAL.UInt4 := 16#0#;
-- Auto-reload preload enable
ARPE : Boolean := False;
-- Clock division
CKD : CR1_CKD_Field := 16#0#;
-- unspecified
Reserved_10_31 : HAL.UInt22 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for CR1_Register_2 use record
CEN at 0 range 0 .. 0;
UDIS at 0 range 1 .. 1;
URS at 0 range 2 .. 2;
Reserved_3_6 at 0 range 3 .. 6;
ARPE at 0 range 7 .. 7;
CKD at 0 range 8 .. 9;
Reserved_10_31 at 0 range 10 .. 31;
end record;
-------------------
-- DIER_Register --
-------------------
-- DMA/Interrupt enable register
type DIER_Register_3 is record
-- Update interrupt enable
UIE : Boolean := False;
-- Capture/Compare 1 interrupt enable
CC1IE : Boolean := False;
-- unspecified
Reserved_2_31 : HAL.UInt30 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for DIER_Register_3 use record
UIE at 0 range 0 .. 0;
CC1IE at 0 range 1 .. 1;
Reserved_2_31 at 0 range 2 .. 31;
end record;
-----------------
-- SR_Register --
-----------------
-- status register
type SR_Register_3 is record
-- Update interrupt flag
UIF : Boolean := False;
-- Capture/compare 1 interrupt flag
CC1IF : Boolean := False;
-- unspecified
Reserved_2_8 : HAL.UInt7 := 16#0#;
-- Capture/Compare 1 overcapture flag
CC1OF : Boolean := False;
-- unspecified
Reserved_10_31 : HAL.UInt22 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for SR_Register_3 use record
UIF at 0 range 0 .. 0;
CC1IF at 0 range 1 .. 1;
Reserved_2_8 at 0 range 2 .. 8;
CC1OF at 0 range 9 .. 9;
Reserved_10_31 at 0 range 10 .. 31;
end record;
------------------
-- EGR_Register --
------------------
-- event generation register
type EGR_Register_3 is record
-- Write-only. Update generation
UG : Boolean := False;
-- Write-only. Capture/compare 1 generation
CC1G : Boolean := False;
-- unspecified
Reserved_2_31 : HAL.UInt30 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for EGR_Register_3 use record
UG at 0 range 0 .. 0;
CC1G at 0 range 1 .. 1;
Reserved_2_31 at 0 range 2 .. 31;
end record;
---------------------------
-- CCMR1_Output_Register --
---------------------------
-- capture/compare mode register 1 (output mode)
type CCMR1_Output_Register_2 is record
-- Capture/Compare 1 selection
CC1S : CCMR1_Output_CC1S_Field := 16#0#;
-- Output Compare 1 fast enable
OC1FE : Boolean := False;
-- Output Compare 1 preload enable
OC1PE : Boolean := False;
-- Output Compare 1 mode
OC1M : CCMR1_Output_OC1M_Field := 16#0#;
-- unspecified
Reserved_7_31 : HAL.UInt25 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for CCMR1_Output_Register_2 use record
CC1S at 0 range 0 .. 1;
OC1FE at 0 range 2 .. 2;
OC1PE at 0 range 3 .. 3;
OC1M at 0 range 4 .. 6;
Reserved_7_31 at 0 range 7 .. 31;
end record;
--------------------------
-- CCMR1_Input_Register --
--------------------------
-- capture/compare mode register 1 (input mode)
type CCMR1_Input_Register_2 is record
-- Capture/Compare 1 selection
CC1S : CCMR1_Input_CC1S_Field := 16#0#;
-- Input capture 1 prescaler
ICPCS : CCMR1_Input_ICPCS_Field := 16#0#;
-- Input capture 1 filter
IC1F : CCMR1_Input_IC1F_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 CCMR1_Input_Register_2 use record
CC1S at 0 range 0 .. 1;
ICPCS at 0 range 2 .. 3;
IC1F at 0 range 4 .. 7;
Reserved_8_31 at 0 range 8 .. 31;
end record;
-------------------
-- CCER_Register --
-------------------
-- capture/compare enable register
type CCER_Register_3 is record
-- Capture/Compare 1 output enable
CC1E : Boolean := False;
-- Capture/Compare 1 output Polarity
CC1P : Boolean := False;
-- unspecified
Reserved_2_2 : HAL.Bit := 16#0#;
-- Capture/Compare 1 output Polarity
CC1NP : Boolean := False;
-- unspecified
Reserved_4_31 : HAL.UInt28 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for CCER_Register_3 use record
CC1E at 0 range 0 .. 0;
CC1P at 0 range 1 .. 1;
Reserved_2_2 at 0 range 2 .. 2;
CC1NP at 0 range 3 .. 3;
Reserved_4_31 at 0 range 4 .. 31;
end record;
-----------------
-- OR_Register --
-----------------
subtype OR_RMP_Field is HAL.UInt2;
-- option register
type OR_Register_2 is record
-- Input 1 remapping capability
RMP : OR_RMP_Field := 16#0#;
-- unspecified
Reserved_2_31 : HAL.UInt30 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for OR_Register_2 use record
RMP at 0 range 0 .. 1;
Reserved_2_31 at 0 range 2 .. 31;
end record;
------------------
-- CR1_Register --
------------------
-- control register 1
type CR1_Register_3 is record
-- Counter enable
CEN : Boolean := False;
-- Update disable
UDIS : Boolean := False;
-- Update request source
URS : Boolean := False;
-- One-pulse mode
OPM : Boolean := False;
-- unspecified
Reserved_4_6 : HAL.UInt3 := 16#0#;
-- Auto-reload preload enable
ARPE : Boolean := False;
-- unspecified
Reserved_8_31 : HAL.UInt24 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for CR1_Register_3 use record
CEN at 0 range 0 .. 0;
UDIS at 0 range 1 .. 1;
URS at 0 range 2 .. 2;
OPM at 0 range 3 .. 3;
Reserved_4_6 at 0 range 4 .. 6;
ARPE at 0 range 7 .. 7;
Reserved_8_31 at 0 range 8 .. 31;
end record;
-------------------
-- DIER_Register --
-------------------
-- DMA/Interrupt enable register
type DIER_Register_4 is record
-- Update interrupt enable
UIE : Boolean := False;
-- unspecified
Reserved_1_7 : HAL.UInt7 := 16#0#;
-- Update DMA request enable
UDE : Boolean := False;
-- unspecified
Reserved_9_31 : HAL.UInt23 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for DIER_Register_4 use record
UIE at 0 range 0 .. 0;
Reserved_1_7 at 0 range 1 .. 7;
UDE at 0 range 8 .. 8;
Reserved_9_31 at 0 range 9 .. 31;
end record;
-----------------
-- SR_Register --
-----------------
-- status register
type SR_Register_4 is record
-- Update interrupt flag
UIF : Boolean := False;
-- unspecified
Reserved_1_31 : HAL.UInt31 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for SR_Register_4 use record
UIF at 0 range 0 .. 0;
Reserved_1_31 at 0 range 1 .. 31;
end record;
------------------
-- EGR_Register --
------------------
-- event generation register
type EGR_Register_4 is record
-- Write-only. Update generation
UG : Boolean := False;
-- unspecified
Reserved_1_31 : HAL.UInt31 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for EGR_Register_4 use record
UG at 0 range 0 .. 0;
Reserved_1_31 at 0 range 1 .. 31;
end record;
type CCMR1_Discriminent is
(
Output,
Input);
type CCMR1_Aliased_Register
(Disc : CCMR1_Discriminent := Output)
is record
case Disc is
when Output =>
Output : CCMR1_Output_Register;
when Input =>
Input : CCMR1_Input_Register;
end case;
end record
with Unchecked_Union;
for CCMR1_Aliased_Register use record
Output at 0 range 0 .. 31;
Input at 0 range 0 .. 31;
end record;
type CCMR2_Discriminent is
(
Output,
Input);
type CCMR2_Aliased_Register
(Disc : CCMR2_Discriminent := Output)
is record
case Disc is
when Output =>
Output : CCMR2_Output_Register;
when Input =>
Input : CCMR2_Input_Register;
end case;
end record
with Unchecked_Union;
for CCMR2_Aliased_Register use record
Output at 0 range 0 .. 31;
Input at 0 range 0 .. 31;
end record;
type CCMR2_Aliased_Register_1
(Disc : CCMR2_Discriminent := Output)
is record
case Disc is
when Output =>
Output : CCMR2_Output_Register_1;
when Input =>
Input : CCMR2_Input_Register;
end case;
end record
with Unchecked_Union;
for CCMR2_Aliased_Register_1 use record
Output at 0 range 0 .. 31;
Input at 0 range 0 .. 31;
end record;
type CCMR1_Aliased_Register_1
(Disc : CCMR1_Discriminent := Output)
is record
case Disc is
when Output =>
Output : CCMR1_Output_Register_1;
when Input =>
Input : CCMR1_Input_Register_1;
end case;
end record
with Unchecked_Union;
for CCMR1_Aliased_Register_1 use record
Output at 0 range 0 .. 31;
Input at 0 range 0 .. 31;
end record;
type CCMR1_Aliased_Register_2
(Disc : CCMR1_Discriminent := Output)
is record
case Disc is
when Output =>
Output : CCMR1_Output_Register_2;
when Input =>
Input : CCMR1_Input_Register_2;
end case;
end record
with Unchecked_Union;
for CCMR1_Aliased_Register_2 use record
Output at 0 range 0 .. 31;
Input at 0 range 0 .. 31;
end record;
-----------------
-- Peripherals --
-----------------
-- General purpose timers
type TIM2_Peripheral is record
-- control register 1
CR1 : CR1_Register;
-- control register 2
CR2 : CR2_Register_1;
-- slave mode control register
SMCR : SMCR_Register;
-- DMA/Interrupt enable register
DIER : DIER_Register_1;
-- status register
SR : SR_Register_1;
-- event generation register
EGR : EGR_Register_1;
-- capture/compare mode register 1 (output mode)
CCMR1 : CCMR1_Aliased_Register;
-- capture/compare mode register 2 (output mode)
CCMR2 : CCMR2_Aliased_Register_1;
-- capture/compare enable register
CCER : CCER_Register_1;
-- counter
CNT : CNT_Register_1;
-- prescaler
PSC : PSC_Register;
-- auto-reload register
ARR : ARR_Register_1;
-- capture/compare register 1
CCR1 : CCR1_Register_1;
-- capture/compare register 2
CCR2 : CCR2_Register_1;
-- capture/compare register 3
CCR3 : CCR3_Register_1;
-- capture/compare register 4
CCR4 : CCR4_Register_1;
-- DMA control register
DCR : DCR_Register;
-- DMA address for full transfer
DMAR : DMAR_Register;
-- TIM5 option register
OR_k : OR_Register;
end record
with Volatile;
for TIM2_Peripheral use record
CR1 at 0 range 0 .. 31;
CR2 at 4 range 0 .. 31;
SMCR at 8 range 0 .. 31;
DIER at 12 range 0 .. 31;
SR at 16 range 0 .. 31;
EGR at 20 range 0 .. 31;
CCMR1 at 24 range 0 .. 31;
CCMR2 at 28 range 0 .. 31;
CCER at 32 range 0 .. 31;
CNT at 36 range 0 .. 31;
PSC at 40 range 0 .. 31;
ARR at 44 range 0 .. 31;
CCR1 at 52 range 0 .. 31;
CCR2 at 56 range 0 .. 31;
CCR3 at 60 range 0 .. 31;
CCR4 at 64 range 0 .. 31;
DCR at 72 range 0 .. 31;
DMAR at 76 range 0 .. 31;
OR_k at 80 range 0 .. 31;
end record;
-- General purpose timers
TIM2_Periph : aliased TIM2_Peripheral
with Import, Address => TIM2_Base;
-- General purpose timers
type TIM3_Peripheral is record
-- control register 1
CR1 : CR1_Register;
-- control register 2
CR2 : CR2_Register_1;
-- slave mode control register
SMCR : SMCR_Register;
-- DMA/Interrupt enable register
DIER : DIER_Register_1;
-- status register
SR : SR_Register_1;
-- event generation register
EGR : EGR_Register_1;
-- capture/compare mode register 1 (output mode)
CCMR1 : CCMR1_Aliased_Register;
-- capture/compare mode register 2 (output mode)
CCMR2 : CCMR2_Aliased_Register_1;
-- capture/compare enable register
CCER : CCER_Register_1;
-- counter
CNT : CNT_Register_1;
-- prescaler
PSC : PSC_Register;
-- auto-reload register
ARR : ARR_Register_1;
-- capture/compare register 1
CCR1 : CCR1_Register_1;
-- capture/compare register 2
CCR2 : CCR2_Register_1;
-- capture/compare register 3
CCR3 : CCR3_Register_1;
-- capture/compare register 4
CCR4 : CCR4_Register_1;
-- DMA control register
DCR : DCR_Register;
-- DMA address for full transfer
DMAR : DMAR_Register;
end record
with Volatile;
for TIM3_Peripheral use record
CR1 at 0 range 0 .. 31;
CR2 at 4 range 0 .. 31;
SMCR at 8 range 0 .. 31;
DIER at 12 range 0 .. 31;
SR at 16 range 0 .. 31;
EGR at 20 range 0 .. 31;
CCMR1 at 24 range 0 .. 31;
CCMR2 at 28 range 0 .. 31;
CCER at 32 range 0 .. 31;
CNT at 36 range 0 .. 31;
PSC at 40 range 0 .. 31;
ARR at 44 range 0 .. 31;
CCR1 at 52 range 0 .. 31;
CCR2 at 56 range 0 .. 31;
CCR3 at 60 range 0 .. 31;
CCR4 at 64 range 0 .. 31;
DCR at 72 range 0 .. 31;
DMAR at 76 range 0 .. 31;
end record;
-- General purpose timers
TIM3_Periph : aliased TIM3_Peripheral
with Import, Address => TIM3_Base;
-- General purpose timers
TIM4_Periph : aliased TIM3_Peripheral
with Import, Address => TIM4_Base;
-- General-purpose-timers
type TIM5_Peripheral is record
-- control register 1
CR1 : CR1_Register;
-- control register 2
CR2 : CR2_Register_1;
-- slave mode control register
SMCR : SMCR_Register;
-- DMA/Interrupt enable register
DIER : DIER_Register_1;
-- status register
SR : SR_Register_1;
-- event generation register
EGR : EGR_Register_1;
-- capture/compare mode register 1 (output mode)
CCMR1 : CCMR1_Aliased_Register;
-- capture/compare mode register 2 (output mode)
CCMR2 : CCMR2_Aliased_Register_1;
-- capture/compare enable register
CCER : CCER_Register_1;
-- counter
CNT : CNT_Register_1;
-- prescaler
PSC : PSC_Register;
-- auto-reload register
ARR : ARR_Register_1;
-- capture/compare register 1
CCR1 : CCR1_Register_1;
-- capture/compare register 2
CCR2 : CCR2_Register_1;
-- capture/compare register 3
CCR3 : CCR3_Register_1;
-- capture/compare register 4
CCR4 : CCR4_Register_1;
-- DMA control register
DCR : DCR_Register;
-- DMA address for full transfer
DMAR : DMAR_Register;
-- TIM5 option register
OR_k : OR_Register_1;
end record
with Volatile;
for TIM5_Peripheral use record
CR1 at 0 range 0 .. 31;
CR2 at 4 range 0 .. 31;
SMCR at 8 range 0 .. 31;
DIER at 12 range 0 .. 31;
SR at 16 range 0 .. 31;
EGR at 20 range 0 .. 31;
CCMR1 at 24 range 0 .. 31;
CCMR2 at 28 range 0 .. 31;
CCER at 32 range 0 .. 31;
CNT at 36 range 0 .. 31;
PSC at 40 range 0 .. 31;
ARR at 44 range 0 .. 31;
CCR1 at 52 range 0 .. 31;
CCR2 at 56 range 0 .. 31;
CCR3 at 60 range 0 .. 31;
CCR4 at 64 range 0 .. 31;
DCR at 72 range 0 .. 31;
DMAR at 76 range 0 .. 31;
OR_k at 80 range 0 .. 31;
end record;
-- General-purpose-timers
TIM5_Periph : aliased TIM5_Peripheral
with Import, Address => TIM5_Base;
-- Basic timers
type TIM6_Peripheral is record
-- control register 1
CR1 : CR1_Register_3;
-- control register 2
CR2 : CR2_Register_2;
-- DMA/Interrupt enable register
DIER : DIER_Register_4;
-- status register
SR : SR_Register_4;
-- event generation register
EGR : EGR_Register_4;
-- counter
CNT : CNT_Register;
-- prescaler
PSC : PSC_Register;
-- auto-reload register
ARR : ARR_Register;
end record
with Volatile;
for TIM6_Peripheral use record
CR1 at 0 range 0 .. 31;
CR2 at 4 range 0 .. 31;
DIER at 12 range 0 .. 31;
SR at 16 range 0 .. 31;
EGR at 20 range 0 .. 31;
CNT at 36 range 0 .. 31;
PSC at 40 range 0 .. 31;
ARR at 44 range 0 .. 31;
end record;
-- Basic timers
TIM6_Periph : aliased TIM6_Peripheral
with Import, Address => TIM6_Base;
-- Basic timers
TIM7_Periph : aliased TIM6_Peripheral
with Import, Address => TIM7_Base;
-- General purpose timers
type TIM12_Peripheral is record
-- control register 1
CR1 : CR1_Register_1;
-- control register 2
CR2 : CR2_Register_2;
-- slave mode control register
SMCR : SMCR_Register_1;
-- DMA/Interrupt enable register
DIER : DIER_Register_2;
-- status register
SR : SR_Register_2;
-- event generation register
EGR : EGR_Register_2;
-- capture/compare mode register 1 (output mode)
CCMR1 : CCMR1_Aliased_Register_1;
-- capture/compare enable register
CCER : CCER_Register_2;
-- counter
CNT : CNT_Register;
-- prescaler
PSC : PSC_Register;
-- auto-reload register
ARR : ARR_Register;
-- capture/compare register 1
CCR1 : CCR1_Register;
-- capture/compare register 2
CCR2 : CCR2_Register;
end record
with Volatile;
for TIM12_Peripheral use record
CR1 at 0 range 0 .. 31;
CR2 at 4 range 0 .. 31;
SMCR at 8 range 0 .. 31;
DIER at 12 range 0 .. 31;
SR at 16 range 0 .. 31;
EGR at 20 range 0 .. 31;
CCMR1 at 24 range 0 .. 31;
CCER at 32 range 0 .. 31;
CNT at 36 range 0 .. 31;
PSC at 40 range 0 .. 31;
ARR at 44 range 0 .. 31;
CCR1 at 52 range 0 .. 31;
CCR2 at 56 range 0 .. 31;
end record;
-- General purpose timers
TIM12_Periph : aliased TIM12_Peripheral
with Import, Address => TIM12_Base;
-- General purpose timers
TIM9_Periph : aliased TIM12_Peripheral
with Import, Address => TIM9_Base;
-- General-purpose-timers
type TIM13_Peripheral is record
-- control register 1
CR1 : CR1_Register_2;
-- DMA/Interrupt enable register
DIER : DIER_Register_3;
-- status register
SR : SR_Register_3;
-- event generation register
EGR : EGR_Register_3;
-- capture/compare mode register 1 (output mode)
CCMR1 : CCMR1_Aliased_Register_2;
-- capture/compare enable register
CCER : CCER_Register_3;
-- counter
CNT : CNT_Register;
-- prescaler
PSC : PSC_Register;
-- auto-reload register
ARR : ARR_Register;
-- capture/compare register 1
CCR1 : CCR1_Register;
end record
with Volatile;
for TIM13_Peripheral use record
CR1 at 0 range 0 .. 31;
DIER at 12 range 0 .. 31;
SR at 16 range 0 .. 31;
EGR at 20 range 0 .. 31;
CCMR1 at 24 range 0 .. 31;
CCER at 32 range 0 .. 31;
CNT at 36 range 0 .. 31;
PSC at 40 range 0 .. 31;
ARR at 44 range 0 .. 31;
CCR1 at 52 range 0 .. 31;
end record;
-- General-purpose-timers
TIM13_Periph : aliased TIM13_Peripheral
with Import, Address => TIM13_Base;
-- General-purpose-timers
TIM14_Periph : aliased TIM13_Peripheral
with Import, Address => TIM14_Base;
-- General-purpose-timers
TIM10_Periph : aliased TIM13_Peripheral
with Import, Address => TIM10_Base;
-- Advanced-timers
type TIM1_Peripheral is record
-- control register 1
CR1 : CR1_Register;
-- control register 2
CR2 : CR2_Register;
-- slave mode control register
SMCR : SMCR_Register;
-- DMA/Interrupt enable register
DIER : DIER_Register;
-- status register
SR : SR_Register;
-- event generation register
EGR : EGR_Register;
-- capture/compare mode register 1 (output mode)
CCMR1 : CCMR1_Aliased_Register;
-- capture/compare mode register 2 (output mode)
CCMR2 : CCMR2_Aliased_Register;
-- capture/compare enable register
CCER : CCER_Register;
-- counter
CNT : CNT_Register;
-- prescaler
PSC : PSC_Register;
-- auto-reload register
ARR : ARR_Register;
-- repetition counter register
RCR : RCR_Register;
-- capture/compare register 1
CCR1 : CCR1_Register;
-- capture/compare register 2
CCR2 : CCR2_Register;
-- capture/compare register 3
CCR3 : CCR3_Register;
-- capture/compare register 4
CCR4 : CCR4_Register;
-- break and dead-time register
BDTR : BDTR_Register;
-- DMA control register
DCR : DCR_Register;
-- DMA address for full transfer
DMAR : DMAR_Register;
end record
with Volatile;
for TIM1_Peripheral use record
CR1 at 0 range 0 .. 31;
CR2 at 4 range 0 .. 31;
SMCR at 8 range 0 .. 31;
DIER at 12 range 0 .. 31;
SR at 16 range 0 .. 31;
EGR at 20 range 0 .. 31;
CCMR1 at 24 range 0 .. 31;
CCMR2 at 28 range 0 .. 31;
CCER at 32 range 0 .. 31;
CNT at 36 range 0 .. 31;
PSC at 40 range 0 .. 31;
ARR at 44 range 0 .. 31;
RCR at 48 range 0 .. 31;
CCR1 at 52 range 0 .. 31;
CCR2 at 56 range 0 .. 31;
CCR3 at 60 range 0 .. 31;
CCR4 at 64 range 0 .. 31;
BDTR at 68 range 0 .. 31;
DCR at 72 range 0 .. 31;
DMAR at 76 range 0 .. 31;
end record;
-- Advanced-timers
TIM1_Periph : aliased TIM1_Peripheral
with Import, Address => TIM1_Base;
-- Advanced-timers
TIM8_Periph : aliased TIM1_Peripheral
with Import, Address => TIM8_Base;
-- General-purpose-timers
type TIM11_Peripheral is record
-- control register 1
CR1 : CR1_Register_2;
-- DMA/Interrupt enable register
DIER : DIER_Register_3;
-- status register
SR : SR_Register_3;
-- event generation register
EGR : EGR_Register_3;
-- capture/compare mode register 1 (output mode)
CCMR1 : CCMR1_Aliased_Register_2;
-- capture/compare enable register
CCER : CCER_Register_3;
-- counter
CNT : CNT_Register;
-- prescaler
PSC : PSC_Register;
-- auto-reload register
ARR : ARR_Register;
-- capture/compare register 1
CCR1 : CCR1_Register;
-- option register
OR_k : OR_Register_2;
end record
with Volatile;
for TIM11_Peripheral use record
CR1 at 0 range 0 .. 31;
DIER at 12 range 0 .. 31;
SR at 16 range 0 .. 31;
EGR at 20 range 0 .. 31;
CCMR1 at 24 range 0 .. 31;
CCER at 32 range 0 .. 31;
CNT at 36 range 0 .. 31;
PSC at 40 range 0 .. 31;
ARR at 44 range 0 .. 31;
CCR1 at 52 range 0 .. 31;
OR_k at 80 range 0 .. 31;
end record;
-- General-purpose-timers
TIM11_Periph : aliased TIM11_Peripheral
with Import, Address => TIM11_Base;
end STM32_SVD.TIM;
|
pragma Ada_2005;
pragma Style_Checks (Off);
pragma Warnings (Off);
with Interfaces.C; use Interfaces.C;
with GStreamer.GST_Low_Level.gstreamer_0_10_gst_base_gstbytereader_h;
with glib;
with glib.Values;
with System;
with GLIB; -- with GStreamer.GST_Low_Level.glibconfig_h;
limited with GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstbuffer_h;
package GStreamer.GST_Low_Level.gstreamer_0_10_gst_base_gstbytewriter_h is
-- arg-macro: function GST_BYTE_WRITER (writer)
-- return (GstByteWriter *) (writer);
-- arg-macro: procedure gst_byte_writer_put_string (writer, data)
-- gst_byte_writer_put_string_utf8(writer, data)
-- arg-macro: procedure gst_byte_writer_ensure_free_space (writer, size)
-- G_LIKELY (_gst_byte_writer_ensure_free_space_inline (writer, size))
-- arg-macro: procedure gst_byte_writer_put_uint8 (writer, val)
-- G_LIKELY (_gst_byte_writer_put_uint8_inline (writer, val))
-- arg-macro: procedure gst_byte_writer_put_int8 (writer, val)
-- G_LIKELY (_gst_byte_writer_put_int8_inline (writer, val))
-- arg-macro: procedure gst_byte_writer_put_uint16_be (writer, val)
-- G_LIKELY (_gst_byte_writer_put_uint16_be_inline (writer, val))
-- arg-macro: procedure gst_byte_writer_put_uint16_le (writer, val)
-- G_LIKELY (_gst_byte_writer_put_uint16_le_inline (writer, val))
-- arg-macro: procedure gst_byte_writer_put_int16_be (writer, val)
-- G_LIKELY (_gst_byte_writer_put_int16_be_inline (writer, val))
-- arg-macro: procedure gst_byte_writer_put_int16_le (writer, val)
-- G_LIKELY (_gst_byte_writer_put_int16_le_inline (writer, val))
-- arg-macro: procedure gst_byte_writer_put_uint24_be (writer, val)
-- G_LIKELY (_gst_byte_writer_put_uint24_be_inline (writer, val))
-- arg-macro: procedure gst_byte_writer_put_uint24_le (writer, val)
-- G_LIKELY (_gst_byte_writer_put_uint24_le_inline (writer, val))
-- arg-macro: procedure gst_byte_writer_put_int24_be (writer, val)
-- G_LIKELY (_gst_byte_writer_put_int24_be_inline (writer, val))
-- arg-macro: procedure gst_byte_writer_put_int24_le (writer, val)
-- G_LIKELY (_gst_byte_writer_put_int24_le_inline (writer, val))
-- arg-macro: procedure gst_byte_writer_put_uint32_be (writer, val)
-- G_LIKELY (_gst_byte_writer_put_uint32_be_inline (writer, val))
-- arg-macro: procedure gst_byte_writer_put_uint32_le (writer, val)
-- G_LIKELY (_gst_byte_writer_put_uint32_le_inline (writer, val))
-- arg-macro: procedure gst_byte_writer_put_int32_be (writer, val)
-- G_LIKELY (_gst_byte_writer_put_int32_be_inline (writer, val))
-- arg-macro: procedure gst_byte_writer_put_int32_le (writer, val)
-- G_LIKELY (_gst_byte_writer_put_int32_le_inline (writer, val))
-- arg-macro: procedure gst_byte_writer_put_uint64_be (writer, val)
-- G_LIKELY (_gst_byte_writer_put_uint64_be_inline (writer, val))
-- arg-macro: procedure gst_byte_writer_put_uint64_le (writer, val)
-- G_LIKELY (_gst_byte_writer_put_uint64_le_inline (writer, val))
-- arg-macro: procedure gst_byte_writer_put_int64_be (writer, val)
-- G_LIKELY (_gst_byte_writer_put_int64_be_inline (writer, val))
-- arg-macro: procedure gst_byte_writer_put_int64_le (writer, val)
-- G_LIKELY (_gst_byte_writer_put_int64_le_inline (writer, val))
-- arg-macro: procedure gst_byte_writer_put_float32_be (writer, val)
-- G_LIKELY (_gst_byte_writer_put_float32_be_inline (writer, val))
-- arg-macro: procedure gst_byte_writer_put_float32_le (writer, val)
-- G_LIKELY (_gst_byte_writer_put_float32_le_inline (writer, val))
-- arg-macro: procedure gst_byte_writer_put_float64_be (writer, val)
-- G_LIKELY (_gst_byte_writer_put_float64_be_inline (writer, val))
-- arg-macro: procedure gst_byte_writer_put_float64_le (writer, val)
-- G_LIKELY (_gst_byte_writer_put_float64_le_inline (writer, val))
-- arg-macro: procedure gst_byte_writer_put_data (writer, data, size)
-- G_LIKELY (_gst_byte_writer_put_data_inline (writer, data, size))
-- arg-macro: procedure gst_byte_writer_fill (writer, val, size)
-- G_LIKELY (_gst_byte_writer_fill_inline (writer, val, size))
-- GStreamer byte writer
-- *
-- * Copyright (C) 2009 Sebastian Dröge <sebastian.droege@collabora.co.uk>.
-- *
-- * This library is free software; you can redistribute it and/or
-- * modify it under the terms of the GNU Library General Public
-- * License as published by the Free Software Foundation; either
-- * version 2 of the License, or (at your option) any later version.
-- *
-- * This library is distributed in the hope that it will be useful,
-- * but WITHOUT ANY WARRANTY; without even the implied warranty of
-- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-- * Library General Public License for more details.
-- *
-- * You should have received a copy of the GNU Library General Public
-- * License along with this library; if not, write to the
-- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-- * Boston, MA 02111-1307, USA.
--
--*
-- * GstByteWriter:
-- * @parent: #GstByteReader parent
-- * @alloc_size: Allocation size of the data
-- * @fixed: If %TRUE no reallocations are allowed
-- * @owned: If %FALSE no reallocations are allowed and copies of data are returned
-- *
-- * A byte writer instance.
--
type GstByteWriter is record
parent : aliased GStreamer.GST_Low_Level.gstreamer_0_10_gst_base_gstbytereader_h.GstByteReader; -- gst/base/gstbytewriter.h:43
alloc_size : aliased GLIB.guint; -- gst/base/gstbytewriter.h:45
fixed : aliased GLIB.gboolean; -- gst/base/gstbytewriter.h:47
owned : aliased GLIB.gboolean; -- gst/base/gstbytewriter.h:48
end record;
pragma Convention (C_Pass_By_Copy, GstByteWriter); -- gst/base/gstbytewriter.h:49
-- skipped anonymous struct anon_310
function gst_byte_writer_new return access GstByteWriter; -- gst/base/gstbytewriter.h:51
pragma Import (C, gst_byte_writer_new, "gst_byte_writer_new");
function gst_byte_writer_new_with_size (size : GLIB.guint; fixed : GLIB.gboolean) return access GstByteWriter; -- gst/base/gstbytewriter.h:52
pragma Import (C, gst_byte_writer_new_with_size, "gst_byte_writer_new_with_size");
function gst_byte_writer_new_with_data
(data : access GLIB.guint8;
size : GLIB.guint;
initialized : GLIB.gboolean) return access GstByteWriter; -- gst/base/gstbytewriter.h:53
pragma Import (C, gst_byte_writer_new_with_data, "gst_byte_writer_new_with_data");
function gst_byte_writer_new_with_buffer (buffer : access GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstbuffer_h.GstBuffer; initialized : GLIB.gboolean) return access GstByteWriter; -- gst/base/gstbytewriter.h:54
pragma Import (C, gst_byte_writer_new_with_buffer, "gst_byte_writer_new_with_buffer");
procedure gst_byte_writer_init (writer : access GstByteWriter); -- gst/base/gstbytewriter.h:56
pragma Import (C, gst_byte_writer_init, "gst_byte_writer_init");
procedure gst_byte_writer_init_with_size
(writer : access GstByteWriter;
size : GLIB.guint;
fixed : GLIB.gboolean); -- gst/base/gstbytewriter.h:57
pragma Import (C, gst_byte_writer_init_with_size, "gst_byte_writer_init_with_size");
procedure gst_byte_writer_init_with_data
(writer : access GstByteWriter;
data : access GLIB.guint8;
size : GLIB.guint;
initialized : GLIB.gboolean); -- gst/base/gstbytewriter.h:58
pragma Import (C, gst_byte_writer_init_with_data, "gst_byte_writer_init_with_data");
procedure gst_byte_writer_init_with_buffer
(writer : access GstByteWriter;
buffer : access GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstbuffer_h.GstBuffer;
initialized : GLIB.gboolean); -- gst/base/gstbytewriter.h:59
pragma Import (C, gst_byte_writer_init_with_buffer, "gst_byte_writer_init_with_buffer");
procedure gst_byte_writer_free (writer : access GstByteWriter); -- gst/base/gstbytewriter.h:61
pragma Import (C, gst_byte_writer_free, "gst_byte_writer_free");
function gst_byte_writer_free_and_get_data (writer : access GstByteWriter) return access GLIB.guint8; -- gst/base/gstbytewriter.h:62
pragma Import (C, gst_byte_writer_free_and_get_data, "gst_byte_writer_free_and_get_data");
function gst_byte_writer_free_and_get_buffer (writer : access GstByteWriter) return access GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstbuffer_h.GstBuffer; -- gst/base/gstbytewriter.h:63
pragma Import (C, gst_byte_writer_free_and_get_buffer, "gst_byte_writer_free_and_get_buffer");
procedure gst_byte_writer_reset (writer : access GstByteWriter); -- gst/base/gstbytewriter.h:65
pragma Import (C, gst_byte_writer_reset, "gst_byte_writer_reset");
function gst_byte_writer_reset_and_get_data (writer : access GstByteWriter) return access GLIB.guint8; -- gst/base/gstbytewriter.h:66
pragma Import (C, gst_byte_writer_reset_and_get_data, "gst_byte_writer_reset_and_get_data");
function gst_byte_writer_reset_and_get_buffer (writer : access GstByteWriter) return access GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstbuffer_h.GstBuffer; -- gst/base/gstbytewriter.h:67
pragma Import (C, gst_byte_writer_reset_and_get_buffer, "gst_byte_writer_reset_and_get_buffer");
--*
-- * gst_byte_writer_get_pos:
-- * @writer: #GstByteWriter instance
-- *
-- * Returns: The current position of the read/write cursor
-- *
-- * Since: 0.10.26
--
--*
-- * gst_byte_writer_set_pos:
-- * @writer: #GstByteWriter instance
-- * @pos: new position
-- *
-- * Sets the current read/write cursor of @writer. The new position
-- * can only be between 0 and the current size.
-- *
-- * Returns: %TRUE if the new position could be set
-- *
-- * Since: 0.10.26
--
--*
-- * gst_byte_writer_get_size:
-- * @writer: #GstByteWriter instance
-- *
-- * Returns: The current, initialized size of the data
-- *
-- * Since: 0.10.26
--
function gst_byte_writer_get_pos (writer : access constant GstByteWriter) return GLIB.guint; -- gst/base/gstbytewriter.h:103
pragma Import (C, gst_byte_writer_get_pos, "gst_byte_writer_get_pos");
function gst_byte_writer_set_pos (writer : access GstByteWriter; pos : GLIB.guint) return GLIB.gboolean; -- gst/base/gstbytewriter.h:109
pragma Import (C, gst_byte_writer_set_pos, "gst_byte_writer_set_pos");
function gst_byte_writer_get_size (writer : access constant GstByteWriter) return GLIB.guint; -- gst/base/gstbytewriter.h:115
pragma Import (C, gst_byte_writer_get_size, "gst_byte_writer_get_size");
function gst_byte_writer_get_remaining (writer : access constant GstByteWriter) return GLIB.guint; -- gst/base/gstbytewriter.h:121
pragma Import (C, gst_byte_writer_get_remaining, "gst_byte_writer_get_remaining");
function gst_byte_writer_ensure_free_space (writer : access GstByteWriter; size : GLIB.guint) return GLIB.gboolean; -- gst/base/gstbytewriter.h:122
pragma Import (C, gst_byte_writer_ensure_free_space, "gst_byte_writer_ensure_free_space");
function gst_byte_writer_put_uint8 (writer : access GstByteWriter; val : GLIB.guint8) return GLIB.gboolean; -- gst/base/gstbytewriter.h:124
pragma Import (C, gst_byte_writer_put_uint8, "gst_byte_writer_put_uint8");
function gst_byte_writer_put_int8 (writer : access GstByteWriter; val : GLIB.gint8) return GLIB.gboolean; -- gst/base/gstbytewriter.h:125
pragma Import (C, gst_byte_writer_put_int8, "gst_byte_writer_put_int8");
function gst_byte_writer_put_uint16_be (writer : access GstByteWriter; val : GLIB.guint16) return GLIB.gboolean; -- gst/base/gstbytewriter.h:126
pragma Import (C, gst_byte_writer_put_uint16_be, "gst_byte_writer_put_uint16_be");
function gst_byte_writer_put_uint16_le (writer : access GstByteWriter; val : GLIB.guint16) return GLIB.gboolean; -- gst/base/gstbytewriter.h:127
pragma Import (C, gst_byte_writer_put_uint16_le, "gst_byte_writer_put_uint16_le");
function gst_byte_writer_put_int16_be (writer : access GstByteWriter; val : GLIB.gint16) return GLIB.gboolean; -- gst/base/gstbytewriter.h:128
pragma Import (C, gst_byte_writer_put_int16_be, "gst_byte_writer_put_int16_be");
function gst_byte_writer_put_int16_le (writer : access GstByteWriter; val : GLIB.gint16) return GLIB.gboolean; -- gst/base/gstbytewriter.h:129
pragma Import (C, gst_byte_writer_put_int16_le, "gst_byte_writer_put_int16_le");
function gst_byte_writer_put_uint24_be (writer : access GstByteWriter; val : GLIB.guint32) return GLIB.gboolean; -- gst/base/gstbytewriter.h:130
pragma Import (C, gst_byte_writer_put_uint24_be, "gst_byte_writer_put_uint24_be");
function gst_byte_writer_put_uint24_le (writer : access GstByteWriter; val : GLIB.guint32) return GLIB.gboolean; -- gst/base/gstbytewriter.h:131
pragma Import (C, gst_byte_writer_put_uint24_le, "gst_byte_writer_put_uint24_le");
function gst_byte_writer_put_int24_be (writer : access GstByteWriter; val : GLIB.gint32) return GLIB.gboolean; -- gst/base/gstbytewriter.h:132
pragma Import (C, gst_byte_writer_put_int24_be, "gst_byte_writer_put_int24_be");
function gst_byte_writer_put_int24_le (writer : access GstByteWriter; val : GLIB.gint32) return GLIB.gboolean; -- gst/base/gstbytewriter.h:133
pragma Import (C, gst_byte_writer_put_int24_le, "gst_byte_writer_put_int24_le");
function gst_byte_writer_put_uint32_be (writer : access GstByteWriter; val : GLIB.guint32) return GLIB.gboolean; -- gst/base/gstbytewriter.h:134
pragma Import (C, gst_byte_writer_put_uint32_be, "gst_byte_writer_put_uint32_be");
function gst_byte_writer_put_uint32_le (writer : access GstByteWriter; val : GLIB.guint32) return GLIB.gboolean; -- gst/base/gstbytewriter.h:135
pragma Import (C, gst_byte_writer_put_uint32_le, "gst_byte_writer_put_uint32_le");
function gst_byte_writer_put_int32_be (writer : access GstByteWriter; val : GLIB.gint32) return GLIB.gboolean; -- gst/base/gstbytewriter.h:136
pragma Import (C, gst_byte_writer_put_int32_be, "gst_byte_writer_put_int32_be");
function gst_byte_writer_put_int32_le (writer : access GstByteWriter; val : GLIB.gint32) return GLIB.gboolean; -- gst/base/gstbytewriter.h:137
pragma Import (C, gst_byte_writer_put_int32_le, "gst_byte_writer_put_int32_le");
function gst_byte_writer_put_uint64_be (writer : access GstByteWriter; val : GLIB.guint64) return GLIB.gboolean; -- gst/base/gstbytewriter.h:138
pragma Import (C, gst_byte_writer_put_uint64_be, "gst_byte_writer_put_uint64_be");
function gst_byte_writer_put_uint64_le (writer : access GstByteWriter; val : GLIB.guint64) return GLIB.gboolean; -- gst/base/gstbytewriter.h:139
pragma Import (C, gst_byte_writer_put_uint64_le, "gst_byte_writer_put_uint64_le");
function gst_byte_writer_put_int64_be (writer : access GstByteWriter; val : GLIB.gint64) return GLIB.gboolean; -- gst/base/gstbytewriter.h:140
pragma Import (C, gst_byte_writer_put_int64_be, "gst_byte_writer_put_int64_be");
function gst_byte_writer_put_int64_le (writer : access GstByteWriter; val : GLIB.gint64) return GLIB.gboolean; -- gst/base/gstbytewriter.h:141
pragma Import (C, gst_byte_writer_put_int64_le, "gst_byte_writer_put_int64_le");
function gst_byte_writer_put_float32_be (writer : access GstByteWriter; val : GLIB.gfloat) return GLIB.gboolean; -- gst/base/gstbytewriter.h:143
pragma Import (C, gst_byte_writer_put_float32_be, "gst_byte_writer_put_float32_be");
function gst_byte_writer_put_float32_le (writer : access GstByteWriter; val : GLIB.gfloat) return GLIB.gboolean; -- gst/base/gstbytewriter.h:144
pragma Import (C, gst_byte_writer_put_float32_le, "gst_byte_writer_put_float32_le");
function gst_byte_writer_put_float64_be (writer : access GstByteWriter; val : GLIB.gdouble) return GLIB.gboolean; -- gst/base/gstbytewriter.h:145
pragma Import (C, gst_byte_writer_put_float64_be, "gst_byte_writer_put_float64_be");
function gst_byte_writer_put_float64_le (writer : access GstByteWriter; val : GLIB.gdouble) return GLIB.gboolean; -- gst/base/gstbytewriter.h:146
pragma Import (C, gst_byte_writer_put_float64_le, "gst_byte_writer_put_float64_le");
function gst_byte_writer_put_data
(writer : access GstByteWriter;
data : access GLIB.guint8;
size : GLIB.guint) return GLIB.gboolean; -- gst/base/gstbytewriter.h:148
pragma Import (C, gst_byte_writer_put_data, "gst_byte_writer_put_data");
function gst_byte_writer_fill
(writer : access GstByteWriter;
value : GLIB.guint8;
size : GLIB.guint) return GLIB.gboolean; -- gst/base/gstbytewriter.h:149
pragma Import (C, gst_byte_writer_fill, "gst_byte_writer_fill");
function gst_byte_writer_put_string_utf8 (writer : access GstByteWriter; data : access GLIB.gchar) return GLIB.gboolean; -- gst/base/gstbytewriter.h:150
pragma Import (C, gst_byte_writer_put_string_utf8, "gst_byte_writer_put_string_utf8");
function gst_byte_writer_put_string_utf16 (writer : access GstByteWriter; data : access GLIB.guint16) return GLIB.gboolean; -- gst/base/gstbytewriter.h:151
pragma Import (C, gst_byte_writer_put_string_utf16, "gst_byte_writer_put_string_utf16");
function gst_byte_writer_put_string_utf32 (writer : access GstByteWriter; data : access GLIB.guint32) return GLIB.gboolean; -- gst/base/gstbytewriter.h:152
pragma Import (C, gst_byte_writer_put_string_utf32, "gst_byte_writer_put_string_utf32");
--*
-- * gst_byte_writer_put_string:
-- * @writer: #GstByteWriter instance
-- * @data: (in) (array zero-terminated=1): Null terminated string
-- *
-- * Write a NUL-terminated string to @writer (including the terminator). The
-- * string is assumed to be in an 8-bit encoding (e.g. ASCII,UTF-8 or
-- * ISO-8859-1).
-- *
-- * Returns: %TRUE if the string could be written
-- *
-- * Since: 0.10.26
--
-- skipped func _gst_byte_writer_next_pow2
-- We start with 16, smaller allocations make no sense
-- skipped func _gst_byte_writer_ensure_free_space_inline
-- skipped func _gst_byte_writer_put_uint8_inline
procedure gst_byte_writer_put_uint8_unchecked (writer : access GstByteWriter; val : GLIB.guint8); -- gst/base/gstbytewriter.h:230
pragma Import (C, gst_byte_writer_put_uint8_unchecked, "gst_byte_writer_put_uint8_unchecked");
-- skipped func _gst_byte_writer_put_int8_inline
procedure gst_byte_writer_put_int8_unchecked (writer : access GstByteWriter; val : GLIB.gint8); -- gst/base/gstbytewriter.h:231
pragma Import (C, gst_byte_writer_put_int8_unchecked, "gst_byte_writer_put_int8_unchecked");
-- skipped func _gst_byte_writer_put_uint16_le_inline
procedure gst_byte_writer_put_uint16_le_unchecked (writer : access GstByteWriter; val : GLIB.guint16); -- gst/base/gstbytewriter.h:232
pragma Import (C, gst_byte_writer_put_uint16_le_unchecked, "gst_byte_writer_put_uint16_le_unchecked");
-- skipped func _gst_byte_writer_put_uint16_be_inline
procedure gst_byte_writer_put_uint16_be_unchecked (writer : access GstByteWriter; val : GLIB.guint16); -- gst/base/gstbytewriter.h:233
pragma Import (C, gst_byte_writer_put_uint16_be_unchecked, "gst_byte_writer_put_uint16_be_unchecked");
-- skipped func _gst_byte_writer_put_int16_le_inline
procedure gst_byte_writer_put_int16_le_unchecked (writer : access GstByteWriter; val : GLIB.gint16); -- gst/base/gstbytewriter.h:234
pragma Import (C, gst_byte_writer_put_int16_le_unchecked, "gst_byte_writer_put_int16_le_unchecked");
-- skipped func _gst_byte_writer_put_int16_be_inline
procedure gst_byte_writer_put_int16_be_unchecked (writer : access GstByteWriter; val : GLIB.gint16); -- gst/base/gstbytewriter.h:235
pragma Import (C, gst_byte_writer_put_int16_be_unchecked, "gst_byte_writer_put_int16_be_unchecked");
-- skipped func _gst_byte_writer_put_uint24_le_inline
procedure gst_byte_writer_put_uint24_le_unchecked (writer : access GstByteWriter; val : GLIB.guint32); -- gst/base/gstbytewriter.h:236
pragma Import (C, gst_byte_writer_put_uint24_le_unchecked, "gst_byte_writer_put_uint24_le_unchecked");
-- skipped func _gst_byte_writer_put_uint24_be_inline
procedure gst_byte_writer_put_uint24_be_unchecked (writer : access GstByteWriter; val : GLIB.guint32); -- gst/base/gstbytewriter.h:237
pragma Import (C, gst_byte_writer_put_uint24_be_unchecked, "gst_byte_writer_put_uint24_be_unchecked");
-- skipped func _gst_byte_writer_put_int24_le_inline
procedure gst_byte_writer_put_int24_le_unchecked (writer : access GstByteWriter; val : GLIB.gint32); -- gst/base/gstbytewriter.h:238
pragma Import (C, gst_byte_writer_put_int24_le_unchecked, "gst_byte_writer_put_int24_le_unchecked");
-- skipped func _gst_byte_writer_put_int24_be_inline
procedure gst_byte_writer_put_int24_be_unchecked (writer : access GstByteWriter; val : GLIB.gint32); -- gst/base/gstbytewriter.h:239
pragma Import (C, gst_byte_writer_put_int24_be_unchecked, "gst_byte_writer_put_int24_be_unchecked");
-- skipped func _gst_byte_writer_put_uint32_le_inline
procedure gst_byte_writer_put_uint32_le_unchecked (writer : access GstByteWriter; val : GLIB.guint32); -- gst/base/gstbytewriter.h:240
pragma Import (C, gst_byte_writer_put_uint32_le_unchecked, "gst_byte_writer_put_uint32_le_unchecked");
-- skipped func _gst_byte_writer_put_uint32_be_inline
procedure gst_byte_writer_put_uint32_be_unchecked (writer : access GstByteWriter; val : GLIB.guint32); -- gst/base/gstbytewriter.h:241
pragma Import (C, gst_byte_writer_put_uint32_be_unchecked, "gst_byte_writer_put_uint32_be_unchecked");
-- skipped func _gst_byte_writer_put_int32_le_inline
procedure gst_byte_writer_put_int32_le_unchecked (writer : access GstByteWriter; val : GLIB.gint32); -- gst/base/gstbytewriter.h:242
pragma Import (C, gst_byte_writer_put_int32_le_unchecked, "gst_byte_writer_put_int32_le_unchecked");
-- skipped func _gst_byte_writer_put_int32_be_inline
procedure gst_byte_writer_put_int32_be_unchecked (writer : access GstByteWriter; val : GLIB.gint32); -- gst/base/gstbytewriter.h:243
pragma Import (C, gst_byte_writer_put_int32_be_unchecked, "gst_byte_writer_put_int32_be_unchecked");
-- skipped func _gst_byte_writer_put_uint64_le_inline
procedure gst_byte_writer_put_uint64_le_unchecked (writer : access GstByteWriter; val : GLIB.guint64); -- gst/base/gstbytewriter.h:244
pragma Import (C, gst_byte_writer_put_uint64_le_unchecked, "gst_byte_writer_put_uint64_le_unchecked");
-- skipped func _gst_byte_writer_put_uint64_be_inline
procedure gst_byte_writer_put_uint64_be_unchecked (writer : access GstByteWriter; val : GLIB.guint64); -- gst/base/gstbytewriter.h:245
pragma Import (C, gst_byte_writer_put_uint64_be_unchecked, "gst_byte_writer_put_uint64_be_unchecked");
-- skipped func _gst_byte_writer_put_int64_le_inline
procedure gst_byte_writer_put_int64_le_unchecked (writer : access GstByteWriter; val : GLIB.gint64); -- gst/base/gstbytewriter.h:246
pragma Import (C, gst_byte_writer_put_int64_le_unchecked, "gst_byte_writer_put_int64_le_unchecked");
-- skipped func _gst_byte_writer_put_int64_be_inline
procedure gst_byte_writer_put_int64_be_unchecked (writer : access GstByteWriter; val : GLIB.gint64); -- gst/base/gstbytewriter.h:247
pragma Import (C, gst_byte_writer_put_int64_be_unchecked, "gst_byte_writer_put_int64_be_unchecked");
-- skipped func _gst_byte_writer_put_float32_be_inline
procedure gst_byte_writer_put_float32_be_unchecked (writer : access GstByteWriter; val : GLIB.gfloat); -- gst/base/gstbytewriter.h:249
pragma Import (C, gst_byte_writer_put_float32_be_unchecked, "gst_byte_writer_put_float32_be_unchecked");
-- skipped func _gst_byte_writer_put_float32_le_inline
procedure gst_byte_writer_put_float32_le_unchecked (writer : access GstByteWriter; val : GLIB.gfloat); -- gst/base/gstbytewriter.h:250
pragma Import (C, gst_byte_writer_put_float32_le_unchecked, "gst_byte_writer_put_float32_le_unchecked");
-- skipped func _gst_byte_writer_put_float64_be_inline
procedure gst_byte_writer_put_float64_be_unchecked (writer : access GstByteWriter; val : GLIB.gdouble); -- gst/base/gstbytewriter.h:251
pragma Import (C, gst_byte_writer_put_float64_be_unchecked, "gst_byte_writer_put_float64_be_unchecked");
-- skipped func _gst_byte_writer_put_float64_le_inline
procedure gst_byte_writer_put_float64_le_unchecked (writer : access GstByteWriter; val : GLIB.gdouble); -- gst/base/gstbytewriter.h:252
pragma Import (C, gst_byte_writer_put_float64_le_unchecked, "gst_byte_writer_put_float64_le_unchecked");
procedure gst_byte_writer_put_data_unchecked
(writer : access GstByteWriter;
data : access GLIB.guint8;
size : GLIB.guint); -- gst/base/gstbytewriter.h:257
pragma Import (C, gst_byte_writer_put_data_unchecked, "gst_byte_writer_put_data_unchecked");
-- skipped func _gst_byte_writer_put_data_inline
procedure gst_byte_writer_fill_unchecked
(writer : access GstByteWriter;
value : GLIB.guint8;
size : GLIB.guint); -- gst/base/gstbytewriter.h:280
pragma Import (C, gst_byte_writer_fill_unchecked, "gst_byte_writer_fill_unchecked");
-- skipped func _gst_byte_writer_fill_inline
-- we use defines here so we can add the G_LIKELY()
end GStreamer.GST_Low_Level.gstreamer_0_10_gst_base_gstbytewriter_h;
|
with A_Stack; use A_Stack;
package Reverser with
SPARK_Mode
is
subtype Array_Range is Natural range 1 .. 10_000;
type Array_Of_Items is array (Array_Range range <>) of Item;
procedure Reverse_Array (A : in out Array_Of_Items) with
Global => (In_Out => The_Stack),
Pre => A'Length > 0 and then A'Length <= Stack_Size;
end Reverser;
|
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2017-2022, AdaCore --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions are --
-- met: --
-- 1. Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- 2. Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in --
-- the documentation and/or other materials provided with the --
-- distribution. --
-- 3. Neither the name of the copyright holder nor the names of its --
-- contributors may be used to endorse or promote products derived --
-- from this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT --
-- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, --
-- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY --
-- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT --
-- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE --
-- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
with System; use System;
with HAL; use HAL;
with STM32.DMA; use STM32.DMA;
with STM32.Device; use STM32.Device;
with Ada.Interrupts;
with Ada.Interrupts.Names; use Ada.Interrupts.Names;
package Audio_Stream is
protected type Double_Buffer_Controller
(Controller : not null access DMA_Controller;
Stream : DMA_Stream_Selector;
IRQ : Ada.Interrupts.Interrupt_ID)
is
procedure Start
(Destination : Address;
Source_0 : Address;
Source_1 : Address;
Data_Count : UInt16)
with
Pre => Destination /= Null_Address and then
Source_0 /= Null_Address and then
Source_1 /= Null_Address and then
Source_0 /= Destination and then
Source_1 /= Destination and then
Source_0 /= Source_1;
entry Wait_For_Transfer_Complete;
function Not_In_Transfer return Address;
private
procedure Interrupt_Handler with Attach_Handler => IRQ;
Interrupt_Triggered : Boolean := False;
Buffer_0 : Address := Null_Address;
Buffer_1 : Address := Null_Address;
end Double_Buffer_Controller;
Audio_TX_DMA : DMA_Controller renames DMA_1;
Audio_TX_DMA_Chan : DMA_Channel_Selector renames STM32.DMA.Channel_0;
Audio_TX_DMA_Stream : DMA_Stream_Selector renames STM32.DMA.Stream_5;
Audio_TX_DMA_Int : Double_Buffer_Controller
(Audio_TX_DMA'Access,
Audio_TX_DMA_Stream,
DMA1_Stream5_Interrupt);
end Audio_Stream;
|
-- Copyright (c) 2021, Karsten Lueth (kl@kloc-consulting.de)
-- 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.
with MicroBit.Display;
with MicroBit.I2C;
with LSM303AGR;
with nRF.Temperature;
procedure Read_Temperature is
LSM303 : LSM303AGR.LSM303AGR_Accelerometer (MicroBit.I2C.Controller);
T : Integer;
begin
if not MicroBit.I2C.Initialized then
MicroBit.I2C.Initialize;
end if;
LSM303.Configure
(Dyna_Range => LSM303AGR.Two_G,
Rate => LSM303AGR.Hz_10);
LSM303.Enable_Temperature_Sensor (True);
loop
T := Integer (nRF.Temperature.Read);
MicroBit.Display.Display (Integer'Image(T));
T := Integer (LSM303.Read_Temperature);
MicroBit.Display.Display ("/" & Integer'Image(T));
end loop;
end Read_Temperature;
|
with Ada.IO_Exceptions;
with Ada.Streams;
private with C.openssl.sha;
package Crypto.SHA256 is
pragma Preelaborate;
subtype Fingerprint is Ada.Streams.Stream_Element_Array (0 .. 31);
subtype Message_Digest is String (1 .. 64);
type Context (<>) is private;
function Initial return Context;
procedure Update (
Context : in out SHA256.Context;
Data : in Ada.Streams.Stream_Element_Array);
procedure Update (Context : in out SHA256.Context; Data : in String);
procedure Final (Context : in out SHA256.Context; Digest : out Fingerprint);
function Value (S : Message_Digest) return Fingerprint;
function Image (Digest : Fingerprint) return Message_Digest;
-- exceptions
Use_Error : exception
renames Ada.IO_Exceptions.Use_Error;
private
type Context is record
SHA : aliased C.openssl.sha.SHA256_CTX;
end record;
pragma Suppress_Initialization (Context);
pragma Compile_Time_Error (
Fingerprint'Length /= C.openssl.sha.SHA256_DIGEST_LENGTH,
"Fingerprint'Length is mismatch.");
end Crypto.SHA256;
|
-- Copyright 2012-2021 Free Software Foundation, Inc.
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
package Pck is
procedure Do_Nothing;
end Pck;
|
-- A55B14A.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.
--*
-- USING A CASE_STATEMENT , CHECK THAT THE SUBTYPE BOUNDS ASSOCIATED
-- WITH A LOOP OF THE FORM
-- FOR I IN ST LOOP
-- ARE, RESPECTIVELY, ST'FIRST..ST'LAST WHEN ST IS STATIC.
-- RM 04/07/81
-- SPS 3/2/83
-- JBG 3/14/83
WITH REPORT;
PROCEDURE A55B14A IS
USE REPORT;
USE ASCII ;
TYPE ENUMERATION IS ( A,B,C,D,MIDPOINT,E,F,G,H );
SUBTYPE ST_I IS INTEGER RANGE 1..5 ;
TYPE NEW_ST_I IS NEW INTEGER RANGE 1..5 ;
SUBTYPE ST_E IS ENUMERATION RANGE B..G ;
SUBTYPE ST_B IS BOOLEAN RANGE FALSE..FALSE;
SUBTYPE ST_C IS CHARACTER RANGE 'A'..DEL ;
BEGIN
TEST("A55B14A" , "CHECK THAT THE SUBTYPE OF A LOOP PARAMETER" &
" IN A LOOP OF THE FORM 'FOR I IN ST LOOP'" &
" ARE CORRECTLY DETERMINED WHEN ST IS STATIC" );
BEGIN
FOR I IN ST_I LOOP
CASE I IS
WHEN 1 | 3 | 5 => NULL;
WHEN 2 | 4 => NULL;
END CASE;
END LOOP;
FOR I IN NEW_ST_I LOOP
CASE I IS
WHEN 1 | 3 | 5 => NULL;
WHEN 2 | 4 => NULL;
END CASE;
END LOOP;
FOR I IN ST_B LOOP
CASE I IS
WHEN FALSE => NULL;
END CASE;
END LOOP;
FOR I IN ST_C LOOP
CASE I IS
WHEN 'A'..'U' => NULL;
WHEN 'V'..DEL => NULL;
END CASE;
END LOOP;
FOR I IN ST_E LOOP
CASE I IS
WHEN B..D => NULL;
WHEN E..G => NULL;
WHEN MIDPOINT => NULL;
END CASE;
END LOOP;
END;
RESULT;
END A55B14A;
|
with Tipos_Tarea, Ada.Text_IO;
use Tipos_Tarea, Ada.Text_IO;
procedure Tarea_Dina_Declare is
T1 : Tarea_Repetitiva(1);
T_Dinamica : Tarea_Ptr;
Td : Tarea_Ptr;
begin
Put_Line("Tarea Principal");
T_Dinamica := new Tarea_Repetitiva(4);
declare
task type T;
type A is access T;
P : A;
Q : A;
task body T is -- tarea dinamica en el declare
begin
for I in 1..3 loop
Put_Line(" Tarea dinamica del declare");
delay 1.0;
end loop;
end T;
begin
Put_Line("Acccion previa a tarea dinmica");
P := new T;
Q := new T;
Put_Line("Accion tras tarea dinamica");
end;
Td := new Tarea_Repetitiva(5);
end Tarea_Dina_Declare;
|
with Ada.Text_IO; use Ada.Text_IO;
procedure Test is
procedure P(x:integer;) is begin x := 0; end;
begin P(0); end;
|
package hauntedhouse is
-- W: Wall, R: Room, C: Corridor, E: Exit
type Fields is (W,R,C,E);
type Position is record
x: Natural;
y: Natural;
end record;
function IsWall(pos: Position) return Boolean;
function IsCorrect(pos: Position) return Boolean;
function IsCorridor(pos: Position) return Boolean;
function GetField(pos:Position) return Fields;
function GetRandPos return Position;
private
type field_array is array(Natural range <>,Natural range <>) of Fields;
House: constant field_array(1..5,1..5):= ((C,C,C,W,R),
(R,W,C,W,C),
(W,C,C,R,R),
(C,R,W,W,R),
(R,C,E,C,C));
end hauntedhouse;
|
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Program.Elements.Declarations;
with Program.Lexical_Elements;
with Program.Elements.Defining_Names;
with Program.Elements.Expressions;
with Program.Elements.Aspect_Specifications;
package Program.Elements.Generic_Package_Renaming_Declarations is
pragma Pure (Program.Elements.Generic_Package_Renaming_Declarations);
type Generic_Package_Renaming_Declaration is
limited interface and Program.Elements.Declarations.Declaration;
type Generic_Package_Renaming_Declaration_Access is
access all Generic_Package_Renaming_Declaration'Class
with Storage_Size => 0;
not overriding function Name
(Self : Generic_Package_Renaming_Declaration)
return not null Program.Elements.Defining_Names.Defining_Name_Access
is abstract;
not overriding function Renamed_Package
(Self : Generic_Package_Renaming_Declaration)
return not null Program.Elements.Expressions.Expression_Access
is abstract;
not overriding function Aspects
(Self : Generic_Package_Renaming_Declaration)
return Program.Elements.Aspect_Specifications
.Aspect_Specification_Vector_Access is abstract;
type Generic_Package_Renaming_Declaration_Text is limited interface;
type Generic_Package_Renaming_Declaration_Text_Access is
access all Generic_Package_Renaming_Declaration_Text'Class
with Storage_Size => 0;
not overriding function To_Generic_Package_Renaming_Declaration_Text
(Self : aliased in out Generic_Package_Renaming_Declaration)
return Generic_Package_Renaming_Declaration_Text_Access is abstract;
not overriding function Generic_Token
(Self : Generic_Package_Renaming_Declaration_Text)
return not null Program.Lexical_Elements.Lexical_Element_Access
is abstract;
not overriding function Package_Token
(Self : Generic_Package_Renaming_Declaration_Text)
return not null Program.Lexical_Elements.Lexical_Element_Access
is abstract;
not overriding function Renames_Token
(Self : Generic_Package_Renaming_Declaration_Text)
return not null Program.Lexical_Elements.Lexical_Element_Access
is abstract;
not overriding function With_Token
(Self : Generic_Package_Renaming_Declaration_Text)
return Program.Lexical_Elements.Lexical_Element_Access is abstract;
not overriding function Semicolon_Token
(Self : Generic_Package_Renaming_Declaration_Text)
return not null Program.Lexical_Elements.Lexical_Element_Access
is abstract;
end Program.Elements.Generic_Package_Renaming_Declarations;
|
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE boost_serialization>
<boost_serialization signature="serialization::archive" version="15">
<syndb class_id="0" tracking_level="0" version="0">
<userIPLatency>-1</userIPLatency>
<userIPName></userIPName>
<cdfg class_id="1" tracking_level="1" version="0" object_id="_0">
<name>relu</name>
<ret_bitwidth>0</ret_bitwidth>
<ports class_id="2" tracking_level="0" version="0">
<count>2</count>
<item_version>0</item_version>
<item class_id="3" tracking_level="1" version="0" object_id="_1">
<Value class_id="4" tracking_level="0" version="0">
<Obj class_id="5" tracking_level="0" version="0">
<type>1</type>
<id>1</id>
<name>data_V</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo class_id="6" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>data.V</originalName>
<rtlName></rtlName>
<coreName>RAM</coreName>
</Obj>
<bitwidth>14</bitwidth>
</Value>
<direction>0</direction>
<if_type>1</if_type>
<array_size>2704</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>res_V</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>res.V</originalName>
<rtlName></rtlName>
<coreName>RAM</coreName>
</Obj>
<bitwidth>13</bitwidth>
</Value>
<direction>1</direction>
<if_type>1</if_type>
<array_size>2704</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>15</count>
<item_version>0</item_version>
<item class_id="9" tracking_level="1" version="0" object_id="_3">
<Value>
<Obj>
<type>0</type>
<id>3</id>
<name></name>
<fileName>firmware/nnet_utils/nnet_activation.h</fileName>
<fileDirectory>/home/filipe/MEGA/GitHub/nas-hls4ml/model_multistart/0/hls4ml_prj</fileDirectory>
<lineNumber>76</lineNumber>
<contextFuncName>relu&lt;ap_fixed&lt;14, 2, 0, 0, 0&gt;, ap_fixed&lt;14, 2, 0, 0, 0&gt;, relu_config9&gt;</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item class_id="10" tracking_level="0" version="0">
<first>/home/filipe/MEGA/GitHub/nas-hls4ml/model_multistart/0/hls4ml_prj</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>firmware/nnet_utils/nnet_activation.h</first>
<second>relu&lt;ap_fixed&lt;14, 2, 0, 0, 0&gt;, ap_fixed&lt;14, 2, 0, 0, 0&gt;, relu_config9&gt;</second>
</first>
<second>76</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>23</item>
</oprand_edges>
<opcode>br</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>1.76</m_delay>
<m_topoIndex>1</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_4">
<Value>
<Obj>
<type>0</type>
<id>5</id>
<name>ii</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>ii</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>12</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>25</item>
<item>26</item>
<item>27</item>
<item>28</item>
</oprand_edges>
<opcode>phi</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>2</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_5">
<Value>
<Obj>
<type>0</type>
<id>6</id>
<name>tmp</name>
<fileName>firmware/nnet_utils/nnet_activation.h</fileName>
<fileDirectory>/home/filipe/MEGA/GitHub/nas-hls4ml/model_multistart/0/hls4ml_prj</fileDirectory>
<lineNumber>76</lineNumber>
<contextFuncName>relu&lt;ap_fixed&lt;14, 2, 0, 0, 0&gt;, ap_fixed&lt;14, 2, 0, 0, 0&gt;, relu_config9&gt;</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/filipe/MEGA/GitHub/nas-hls4ml/model_multistart/0/hls4ml_prj</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>firmware/nnet_utils/nnet_activation.h</first>
<second>relu&lt;ap_fixed&lt;14, 2, 0, 0, 0&gt;, ap_fixed&lt;14, 2, 0, 0, 0&gt;, relu_config9&gt;</second>
</first>
<second>76</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>29</item>
<item>31</item>
</oprand_edges>
<opcode>icmp</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>1.99</m_delay>
<m_topoIndex>3</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_6">
<Value>
<Obj>
<type>0</type>
<id>8</id>
<name>ii_1</name>
<fileName>firmware/nnet_utils/nnet_activation.h</fileName>
<fileDirectory>/home/filipe/MEGA/GitHub/nas-hls4ml/model_multistart/0/hls4ml_prj</fileDirectory>
<lineNumber>76</lineNumber>
<contextFuncName>relu&lt;ap_fixed&lt;14, 2, 0, 0, 0&gt;, ap_fixed&lt;14, 2, 0, 0, 0&gt;, relu_config9&gt;</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/filipe/MEGA/GitHub/nas-hls4ml/model_multistart/0/hls4ml_prj</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>firmware/nnet_utils/nnet_activation.h</first>
<second>relu&lt;ap_fixed&lt;14, 2, 0, 0, 0&gt;, ap_fixed&lt;14, 2, 0, 0, 0&gt;, relu_config9&gt;</second>
</first>
<second>76</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>ii</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>12</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>32</item>
<item>34</item>
</oprand_edges>
<opcode>add</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>1.54</m_delay>
<m_topoIndex>4</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_7">
<Value>
<Obj>
<type>0</type>
<id>9</id>
<name></name>
<fileName>firmware/nnet_utils/nnet_activation.h</fileName>
<fileDirectory>/home/filipe/MEGA/GitHub/nas-hls4ml/model_multistart/0/hls4ml_prj</fileDirectory>
<lineNumber>76</lineNumber>
<contextFuncName>relu&lt;ap_fixed&lt;14, 2, 0, 0, 0&gt;, ap_fixed&lt;14, 2, 0, 0, 0&gt;, relu_config9&gt;</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/filipe/MEGA/GitHub/nas-hls4ml/model_multistart/0/hls4ml_prj</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>firmware/nnet_utils/nnet_activation.h</first>
<second>relu&lt;ap_fixed&lt;14, 2, 0, 0, 0&gt;, ap_fixed&lt;14, 2, 0, 0, 0&gt;, relu_config9&gt;</second>
</first>
<second>76</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>35</item>
<item>36</item>
<item>37</item>
</oprand_edges>
<opcode>br</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>5</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_8">
<Value>
<Obj>
<type>0</type>
<id>11</id>
<name>tmp_s</name>
<fileName>firmware/nnet_utils/nnet_activation.h</fileName>
<fileDirectory>/home/filipe/MEGA/GitHub/nas-hls4ml/model_multistart/0/hls4ml_prj</fileDirectory>
<lineNumber>80</lineNumber>
<contextFuncName>relu&lt;ap_fixed&lt;14, 2, 0, 0, 0&gt;, ap_fixed&lt;14, 2, 0, 0, 0&gt;, relu_config9&gt;</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/filipe/MEGA/GitHub/nas-hls4ml/model_multistart/0/hls4ml_prj</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>firmware/nnet_utils/nnet_activation.h</first>
<second>relu&lt;ap_fixed&lt;14, 2, 0, 0, 0&gt;, ap_fixed&lt;14, 2, 0, 0, 0&gt;, relu_config9&gt;</second>
</first>
<second>80</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>64</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>38</item>
</oprand_edges>
<opcode>zext</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>6</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_9">
<Value>
<Obj>
<type>0</type>
<id>12</id>
<name>data_V_addr</name>
<fileName>firmware/nnet_utils/nnet_activation.h</fileName>
<fileDirectory>/home/filipe/MEGA/GitHub/nas-hls4ml/model_multistart/0/hls4ml_prj</fileDirectory>
<lineNumber>80</lineNumber>
<contextFuncName>relu&lt;ap_fixed&lt;14, 2, 0, 0, 0&gt;, ap_fixed&lt;14, 2, 0, 0, 0&gt;, relu_config9&gt;</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/filipe/MEGA/GitHub/nas-hls4ml/model_multistart/0/hls4ml_prj</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>firmware/nnet_utils/nnet_activation.h</first>
<second>relu&lt;ap_fixed&lt;14, 2, 0, 0, 0&gt;, ap_fixed&lt;14, 2, 0, 0, 0&gt;, relu_config9&gt;</second>
</first>
<second>80</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>12</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>39</item>
<item>41</item>
<item>42</item>
</oprand_edges>
<opcode>getelementptr</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>7</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_10">
<Value>
<Obj>
<type>0</type>
<id>13</id>
<name>datareg_V</name>
<fileName>firmware/nnet_utils/nnet_activation.h</fileName>
<fileDirectory>/home/filipe/MEGA/GitHub/nas-hls4ml/model_multistart/0/hls4ml_prj</fileDirectory>
<lineNumber>80</lineNumber>
<contextFuncName>relu&lt;ap_fixed&lt;14, 2, 0, 0, 0&gt;, ap_fixed&lt;14, 2, 0, 0, 0&gt;, relu_config9&gt;</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/filipe/MEGA/GitHub/nas-hls4ml/model_multistart/0/hls4ml_prj</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>firmware/nnet_utils/nnet_activation.h</first>
<second>relu&lt;ap_fixed&lt;14, 2, 0, 0, 0&gt;, ap_fixed&lt;14, 2, 0, 0, 0&gt;, relu_config9&gt;</second>
</first>
<second>80</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>datareg.V</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>14</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>43</item>
</oprand_edges>
<opcode>load</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>3.25</m_delay>
<m_topoIndex>8</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_11">
<Value>
<Obj>
<type>0</type>
<id>14</id>
<name>tmp_17</name>
<fileName>firmware/nnet_utils/nnet_activation.h</fileName>
<fileDirectory>/home/filipe/MEGA/GitHub/nas-hls4ml/model_multistart/0/hls4ml_prj</fileDirectory>
<lineNumber>80</lineNumber>
<contextFuncName>relu&lt;ap_fixed&lt;14, 2, 0, 0, 0&gt;, ap_fixed&lt;14, 2, 0, 0, 0&gt;, relu_config9&gt;</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/filipe/MEGA/GitHub/nas-hls4ml/model_multistart/0/hls4ml_prj</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>firmware/nnet_utils/nnet_activation.h</first>
<second>relu&lt;ap_fixed&lt;14, 2, 0, 0, 0&gt;, ap_fixed&lt;14, 2, 0, 0, 0&gt;, relu_config9&gt;</second>
</first>
<second>80</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>13</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>44</item>
</oprand_edges>
<opcode>trunc</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>10</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_12">
<Value>
<Obj>
<type>0</type>
<id>15</id>
<name>tmp_1</name>
<fileName>firmware/nnet_utils/nnet_activation.h</fileName>
<fileDirectory>/home/filipe/MEGA/GitHub/nas-hls4ml/model_multistart/0/hls4ml_prj</fileDirectory>
<lineNumber>81</lineNumber>
<contextFuncName>relu&lt;ap_fixed&lt;14, 2, 0, 0, 0&gt;, ap_fixed&lt;14, 2, 0, 0, 0&gt;, relu_config9&gt;</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/filipe/MEGA/GitHub/nas-hls4ml/model_multistart/0/hls4ml_prj</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>firmware/nnet_utils/nnet_activation.h</first>
<second>relu&lt;ap_fixed&lt;14, 2, 0, 0, 0&gt;, ap_fixed&lt;14, 2, 0, 0, 0&gt;, relu_config9&gt;</second>
</first>
<second>81</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>45</item>
<item>47</item>
</oprand_edges>
<opcode>icmp</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>2.20</m_delay>
<m_topoIndex>11</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_13">
<Value>
<Obj>
<type>0</type>
<id>16</id>
<name>res_V_addr</name>
<fileName>firmware/nnet_utils/nnet_activation.h</fileName>
<fileDirectory>/home/filipe/MEGA/GitHub/nas-hls4ml/model_multistart/0/hls4ml_prj</fileDirectory>
<lineNumber>81</lineNumber>
<contextFuncName>relu&lt;ap_fixed&lt;14, 2, 0, 0, 0&gt;, ap_fixed&lt;14, 2, 0, 0, 0&gt;, relu_config9&gt;</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/filipe/MEGA/GitHub/nas-hls4ml/model_multistart/0/hls4ml_prj</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>firmware/nnet_utils/nnet_activation.h</first>
<second>relu&lt;ap_fixed&lt;14, 2, 0, 0, 0&gt;, ap_fixed&lt;14, 2, 0, 0, 0&gt;, relu_config9&gt;</second>
</first>
<second>81</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>12</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>48</item>
<item>49</item>
<item>50</item>
</oprand_edges>
<opcode>getelementptr</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>13</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_14">
<Value>
<Obj>
<type>0</type>
<id>17</id>
<name>datareg_V_1</name>
<fileName>firmware/nnet_utils/nnet_activation.h</fileName>
<fileDirectory>/home/filipe/MEGA/GitHub/nas-hls4ml/model_multistart/0/hls4ml_prj</fileDirectory>
<lineNumber>81</lineNumber>
<contextFuncName>relu&lt;ap_fixed&lt;14, 2, 0, 0, 0&gt;, ap_fixed&lt;14, 2, 0, 0, 0&gt;, relu_config9&gt;</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/filipe/MEGA/GitHub/nas-hls4ml/model_multistart/0/hls4ml_prj</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>firmware/nnet_utils/nnet_activation.h</first>
<second>relu&lt;ap_fixed&lt;14, 2, 0, 0, 0&gt;, ap_fixed&lt;14, 2, 0, 0, 0&gt;, relu_config9&gt;</second>
</first>
<second>81</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>datareg.V</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>13</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>51</item>
<item>52</item>
<item>54</item>
</oprand_edges>
<opcode>select</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.69</m_delay>
<m_topoIndex>12</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_15">
<Value>
<Obj>
<type>0</type>
<id>18</id>
<name></name>
<fileName>firmware/nnet_utils/nnet_activation.h</fileName>
<fileDirectory>/home/filipe/MEGA/GitHub/nas-hls4ml/model_multistart/0/hls4ml_prj</fileDirectory>
<lineNumber>81</lineNumber>
<contextFuncName>relu&lt;ap_fixed&lt;14, 2, 0, 0, 0&gt;, ap_fixed&lt;14, 2, 0, 0, 0&gt;, relu_config9&gt;</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/filipe/MEGA/GitHub/nas-hls4ml/model_multistart/0/hls4ml_prj</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>firmware/nnet_utils/nnet_activation.h</first>
<second>relu&lt;ap_fixed&lt;14, 2, 0, 0, 0&gt;, ap_fixed&lt;14, 2, 0, 0, 0&gt;, relu_config9&gt;</second>
</first>
<second>81</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>55</item>
<item>56</item>
</oprand_edges>
<opcode>store</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>3.25</m_delay>
<m_topoIndex>14</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_16">
<Value>
<Obj>
<type>0</type>
<id>19</id>
<name></name>
<fileName>firmware/nnet_utils/nnet_activation.h</fileName>
<fileDirectory>/home/filipe/MEGA/GitHub/nas-hls4ml/model_multistart/0/hls4ml_prj</fileDirectory>
<lineNumber>76</lineNumber>
<contextFuncName>relu&lt;ap_fixed&lt;14, 2, 0, 0, 0&gt;, ap_fixed&lt;14, 2, 0, 0, 0&gt;, relu_config9&gt;</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/filipe/MEGA/GitHub/nas-hls4ml/model_multistart/0/hls4ml_prj</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>firmware/nnet_utils/nnet_activation.h</first>
<second>relu&lt;ap_fixed&lt;14, 2, 0, 0, 0&gt;, ap_fixed&lt;14, 2, 0, 0, 0&gt;, relu_config9&gt;</second>
</first>
<second>76</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>57</item>
</oprand_edges>
<opcode>br</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>15</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_17">
<Value>
<Obj>
<type>0</type>
<id>21</id>
<name></name>
<fileName>firmware/nnet_utils/nnet_activation.h</fileName>
<fileDirectory>/home/filipe/MEGA/GitHub/nas-hls4ml/model_multistart/0/hls4ml_prj</fileDirectory>
<lineNumber>84</lineNumber>
<contextFuncName>relu&lt;ap_fixed&lt;14, 2, 0, 0, 0&gt;, ap_fixed&lt;14, 2, 0, 0, 0&gt;, relu_config9&gt;</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/filipe/MEGA/GitHub/nas-hls4ml/model_multistart/0/hls4ml_prj</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>firmware/nnet_utils/nnet_activation.h</first>
<second>relu&lt;ap_fixed&lt;14, 2, 0, 0, 0&gt;, ap_fixed&lt;14, 2, 0, 0, 0&gt;, relu_config9&gt;</second>
</first>
<second>84</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>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>9</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
</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="_18">
<Value>
<Obj>
<type>2</type>
<id>24</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>12</bitwidth>
</Value>
<const_type>0</const_type>
<content>0</content>
</item>
<item class_id_reference="16" object_id="_19">
<Value>
<Obj>
<type>2</type>
<id>30</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>12</bitwidth>
</Value>
<const_type>0</const_type>
<content>2704</content>
</item>
<item class_id_reference="16" object_id="_20">
<Value>
<Obj>
<type>2</type>
<id>33</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>12</bitwidth>
</Value>
<const_type>0</const_type>
<content>1</content>
</item>
<item class_id_reference="16" object_id="_21">
<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>0</content>
</item>
<item class_id_reference="16" object_id="_22">
<Value>
<Obj>
<type>2</type>
<id>46</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>14</bitwidth>
</Value>
<const_type>0</const_type>
<content>0</content>
</item>
<item class_id_reference="16" object_id="_23">
<Value>
<Obj>
<type>2</type>
<id>53</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>13</bitwidth>
</Value>
<const_type>0</const_type>
<content>0</content>
</item>
</consts>
<blocks class_id="17" tracking_level="0" version="0">
<count>4</count>
<item_version>0</item_version>
<item class_id="18" tracking_level="1" version="0" object_id="_24">
<Obj>
<type>3</type>
<id>4</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>3</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_25">
<Obj>
<type>3</type>
<id>10</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>5</item>
<item>6</item>
<item>8</item>
<item>9</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_26">
<Obj>
<type>3</type>
<id>20</id>
<name>_ZgtILi14ELi2ELb1EL9ap_q_mode0EL9ap_o_mode0ELi0EEbRK13ap_fixed_baseIXT_EXT0_EXT1_EXT2_EXT3_EXT4_EEi.exit</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<node_objs>
<count>9</count>
<item_version>0</item_version>
<item>11</item>
<item>12</item>
<item>13</item>
<item>14</item>
<item>15</item>
<item>16</item>
<item>17</item>
<item>18</item>
<item>19</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_27">
<Obj>
<type>3</type>
<id>22</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>21</item>
</node_objs>
</item>
</blocks>
<edges class_id="19" tracking_level="0" version="0">
<count>33</count>
<item_version>0</item_version>
<item class_id="20" tracking_level="1" version="0" object_id="_28">
<id>23</id>
<edge_type>2</edge_type>
<source_obj>10</source_obj>
<sink_obj>3</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_29">
<id>25</id>
<edge_type>1</edge_type>
<source_obj>24</source_obj>
<sink_obj>5</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_30">
<id>26</id>
<edge_type>2</edge_type>
<source_obj>4</source_obj>
<sink_obj>5</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_31">
<id>27</id>
<edge_type>1</edge_type>
<source_obj>8</source_obj>
<sink_obj>5</sink_obj>
<is_back_edge>1</is_back_edge>
</item>
<item class_id_reference="20" object_id="_32">
<id>28</id>
<edge_type>2</edge_type>
<source_obj>20</source_obj>
<sink_obj>5</sink_obj>
<is_back_edge>1</is_back_edge>
</item>
<item class_id_reference="20" object_id="_33">
<id>29</id>
<edge_type>1</edge_type>
<source_obj>5</source_obj>
<sink_obj>6</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_34">
<id>31</id>
<edge_type>1</edge_type>
<source_obj>30</source_obj>
<sink_obj>6</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_35">
<id>32</id>
<edge_type>1</edge_type>
<source_obj>5</source_obj>
<sink_obj>8</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_36">
<id>34</id>
<edge_type>1</edge_type>
<source_obj>33</source_obj>
<sink_obj>8</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_37">
<id>35</id>
<edge_type>1</edge_type>
<source_obj>6</source_obj>
<sink_obj>9</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_38">
<id>36</id>
<edge_type>2</edge_type>
<source_obj>20</source_obj>
<sink_obj>9</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_39">
<id>37</id>
<edge_type>2</edge_type>
<source_obj>22</source_obj>
<sink_obj>9</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_40">
<id>38</id>
<edge_type>1</edge_type>
<source_obj>5</source_obj>
<sink_obj>11</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_41">
<id>39</id>
<edge_type>1</edge_type>
<source_obj>1</source_obj>
<sink_obj>12</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_42">
<id>41</id>
<edge_type>1</edge_type>
<source_obj>40</source_obj>
<sink_obj>12</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_43">
<id>42</id>
<edge_type>1</edge_type>
<source_obj>11</source_obj>
<sink_obj>12</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_44">
<id>43</id>
<edge_type>1</edge_type>
<source_obj>12</source_obj>
<sink_obj>13</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_45">
<id>44</id>
<edge_type>1</edge_type>
<source_obj>13</source_obj>
<sink_obj>14</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_46">
<id>45</id>
<edge_type>1</edge_type>
<source_obj>13</source_obj>
<sink_obj>15</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_47">
<id>47</id>
<edge_type>1</edge_type>
<source_obj>46</source_obj>
<sink_obj>15</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_48">
<id>48</id>
<edge_type>1</edge_type>
<source_obj>2</source_obj>
<sink_obj>16</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_49">
<id>49</id>
<edge_type>1</edge_type>
<source_obj>40</source_obj>
<sink_obj>16</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_50">
<id>50</id>
<edge_type>1</edge_type>
<source_obj>11</source_obj>
<sink_obj>16</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_51">
<id>51</id>
<edge_type>1</edge_type>
<source_obj>15</source_obj>
<sink_obj>17</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_52">
<id>52</id>
<edge_type>1</edge_type>
<source_obj>14</source_obj>
<sink_obj>17</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_53">
<id>54</id>
<edge_type>1</edge_type>
<source_obj>53</source_obj>
<sink_obj>17</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_54">
<id>55</id>
<edge_type>1</edge_type>
<source_obj>17</source_obj>
<sink_obj>18</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_55">
<id>56</id>
<edge_type>1</edge_type>
<source_obj>16</source_obj>
<sink_obj>18</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_56">
<id>57</id>
<edge_type>2</edge_type>
<source_obj>10</source_obj>
<sink_obj>19</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_57">
<id>64</id>
<edge_type>2</edge_type>
<source_obj>4</source_obj>
<sink_obj>10</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_58">
<id>65</id>
<edge_type>2</edge_type>
<source_obj>10</source_obj>
<sink_obj>22</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_59">
<id>66</id>
<edge_type>2</edge_type>
<source_obj>10</source_obj>
<sink_obj>20</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_60">
<id>67</id>
<edge_type>2</edge_type>
<source_obj>20</source_obj>
<sink_obj>10</sink_obj>
<is_back_edge>1</is_back_edge>
</item>
</edges>
</cdfg>
<cdfg_regions class_id="21" tracking_level="0" version="0">
<count>4</count>
<item_version>0</item_version>
<item class_id="22" tracking_level="1" version="0" object_id="_61">
<mId>1</mId>
<mTag>relu</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>10817</mMinLatency>
<mMaxLatency>10817</mMaxLatency>
<mIsDfPipe>0</mIsDfPipe>
<mDfPipe class_id="-1"></mDfPipe>
</item>
<item class_id_reference="22" object_id="_62">
<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>4</item>
</basic_blocks>
<mII>-1</mII>
<mDepth>-1</mDepth>
<mMinTripCount>-1</mMinTripCount>
<mMaxTripCount>-1</mMaxTripCount>
<mMinLatency>0</mMinLatency>
<mMaxLatency>0</mMaxLatency>
<mIsDfPipe>0</mIsDfPipe>
<mDfPipe class_id="-1"></mDfPipe>
</item>
<item class_id_reference="22" object_id="_63">
<mId>3</mId>
<mTag>Loop 1</mTag>
<mType>1</mType>
<sub_regions>
<count>0</count>
<item_version>0</item_version>
</sub_regions>
<basic_blocks>
<count>2</count>
<item_version>0</item_version>
<item>10</item>
<item>20</item>
</basic_blocks>
<mII>-1</mII>
<mDepth>-1</mDepth>
<mMinTripCount>2704</mMinTripCount>
<mMaxTripCount>2704</mMaxTripCount>
<mMinLatency>10816</mMinLatency>
<mMaxLatency>10816</mMaxLatency>
<mIsDfPipe>0</mIsDfPipe>
<mDfPipe class_id="-1"></mDfPipe>
</item>
<item class_id_reference="22" object_id="_64">
<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>22</item>
</basic_blocks>
<mII>-1</mII>
<mDepth>-1</mDepth>
<mMinTripCount>-1</mMinTripCount>
<mMaxTripCount>-1</mMaxTripCount>
<mMinLatency>0</mMinLatency>
<mMaxLatency>0</mMaxLatency>
<mIsDfPipe>0</mIsDfPipe>
<mDfPipe class_id="-1"></mDfPipe>
</item>
</cdfg_regions>
<fsm class_id="24" tracking_level="1" version="0" object_id="_65">
<states class_id="25" tracking_level="0" version="0">
<count>5</count>
<item_version>0</item_version>
<item class_id="26" tracking_level="1" version="0" object_id="_66">
<id>1</id>
<operations class_id="27" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="28" tracking_level="1" version="0" object_id="_67">
<id>3</id>
<stage>1</stage>
<latency>1</latency>
</item>
</operations>
</item>
<item class_id_reference="26" object_id="_68">
<id>2</id>
<operations>
<count>9</count>
<item_version>0</item_version>
<item class_id_reference="28" object_id="_69">
<id>5</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_70">
<id>6</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_71">
<id>7</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_72">
<id>8</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_73">
<id>9</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_74">
<id>11</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_75">
<id>12</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_76">
<id>13</id>
<stage>2</stage>
<latency>2</latency>
</item>
<item class_id_reference="28" object_id="_77">
<id>21</id>
<stage>1</stage>
<latency>1</latency>
</item>
</operations>
</item>
<item class_id_reference="26" object_id="_78">
<id>3</id>
<operations>
<count>2</count>
<item_version>0</item_version>
<item class_id_reference="28" object_id="_79">
<id>13</id>
<stage>1</stage>
<latency>2</latency>
</item>
<item class_id_reference="28" object_id="_80">
<id>14</id>
<stage>1</stage>
<latency>1</latency>
</item>
</operations>
</item>
<item class_id_reference="26" object_id="_81">
<id>4</id>
<operations>
<count>2</count>
<item_version>0</item_version>
<item class_id_reference="28" object_id="_82">
<id>15</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_83">
<id>17</id>
<stage>1</stage>
<latency>1</latency>
</item>
</operations>
</item>
<item class_id_reference="26" object_id="_84">
<id>5</id>
<operations>
<count>3</count>
<item_version>0</item_version>
<item class_id_reference="28" object_id="_85">
<id>16</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_86">
<id>18</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_87">
<id>19</id>
<stage>1</stage>
<latency>1</latency>
</item>
</operations>
</item>
</states>
<transitions class_id="29" tracking_level="0" version="0">
<count>5</count>
<item_version>0</item_version>
<item class_id="30" tracking_level="1" version="0" object_id="_88">
<inState>1</inState>
<outState>2</outState>
<condition class_id="31" tracking_level="0" version="0">
<id>-1</id>
<sop class_id="32" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="33" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
<item class_id_reference="30" object_id="_89">
<inState>2</inState>
<outState>3</outState>
<condition>
<id>-1</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>1</count>
<item_version>0</item_version>
<item class_id="34" tracking_level="0" version="0">
<first class_id="35" tracking_level="0" version="0">
<first>6</first>
<second>0</second>
</first>
<second>1</second>
</item>
</item>
</sop>
</condition>
</item>
<item class_id_reference="30" object_id="_90">
<inState>3</inState>
<outState>4</outState>
<condition>
<id>-1</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
<item class_id_reference="30" object_id="_91">
<inState>4</inState>
<outState>5</outState>
<condition>
<id>-1</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
<item class_id_reference="30" object_id="_92">
<inState>5</inState>
<outState>2</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>
</transitions>
</fsm>
<res class_id="-1"></res>
<node_label_latency class_id="37" tracking_level="0" version="0">
<count>15</count>
<item_version>0</item_version>
<item class_id="38" tracking_level="0" version="0">
<first>3</first>
<second class_id="39" tracking_level="0" version="0">
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>5</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>6</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>8</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>9</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>11</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>12</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>13</first>
<second>
<first>1</first>
<second>1</second>
</second>
</item>
<item>
<first>14</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>15</first>
<second>
<first>3</first>
<second>0</second>
</second>
</item>
<item>
<first>16</first>
<second>
<first>4</first>
<second>0</second>
</second>
</item>
<item>
<first>17</first>
<second>
<first>3</first>
<second>0</second>
</second>
</item>
<item>
<first>18</first>
<second>
<first>4</first>
<second>0</second>
</second>
</item>
<item>
<first>19</first>
<second>
<first>4</first>
<second>0</second>
</second>
</item>
<item>
<first>21</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
</node_label_latency>
<bblk_ent_exit class_id="40" tracking_level="0" version="0">
<count>4</count>
<item_version>0</item_version>
<item class_id="41" tracking_level="0" version="0">
<first>4</first>
<second class_id="42" tracking_level="0" version="0">
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>10</first>
<second>
<first>1</first>
<second>1</second>
</second>
</item>
<item>
<first>20</first>
<second>
<first>1</first>
<second>4</second>
</second>
</item>
<item>
<first>22</first>
<second>
<first>1</first>
<second>1</second>
</second>
</item>
</bblk_ent_exit>
<regions class_id="43" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</regions>
<dp_fu_nodes class_id="44" tracking_level="0" version="0">
<count>11</count>
<item_version>0</item_version>
<item class_id="45" tracking_level="0" version="0">
<first>20</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>12</item>
</second>
</item>
<item>
<first>27</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>13</item>
<item>13</item>
</second>
</item>
<item>
<first>33</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>16</item>
</second>
</item>
<item>
<first>40</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>18</item>
</second>
</item>
<item>
<first>50</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>5</item>
</second>
</item>
<item>
<first>57</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>6</item>
</second>
</item>
<item>
<first>63</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>8</item>
</second>
</item>
<item>
<first>69</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>11</item>
</second>
</item>
<item>
<first>74</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>14</item>
</second>
</item>
<item>
<first>78</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>15</item>
</second>
</item>
<item>
<first>83</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>17</item>
</second>
</item>
</dp_fu_nodes>
<dp_fu_nodes_expression class_id="47" tracking_level="0" version="0">
<count>9</count>
<item_version>0</item_version>
<item class_id="48" tracking_level="0" version="0">
<first>data_V_addr_gep_fu_20</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>12</item>
</second>
</item>
<item>
<first>datareg_V_1_fu_83</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>17</item>
</second>
</item>
<item>
<first>ii_1_fu_63</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>8</item>
</second>
</item>
<item>
<first>ii_phi_fu_50</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>5</item>
</second>
</item>
<item>
<first>res_V_addr_gep_fu_33</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>16</item>
</second>
</item>
<item>
<first>tmp_17_fu_74</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>14</item>
</second>
</item>
<item>
<first>tmp_1_fu_78</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>15</item>
</second>
</item>
<item>
<first>tmp_fu_57</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>6</item>
</second>
</item>
<item>
<first>tmp_s_fu_69</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>11</item>
</second>
</item>
</dp_fu_nodes_expression>
<dp_fu_nodes_module>
<count>0</count>
<item_version>0</item_version>
</dp_fu_nodes_module>
<dp_fu_nodes_io>
<count>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="49" tracking_level="0" version="0">
<count>2</count>
<item_version>0</item_version>
<item class_id="50" tracking_level="0" version="0">
<first class_id="51" tracking_level="0" version="0">
<first>data_V</first>
<second>0</second>
</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>13</item>
<item>13</item>
</second>
</item>
<item>
<first>
<first>res_V</first>
<second>0</second>
</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>18</item>
</second>
</item>
</dp_mem_port_nodes>
<dp_reg_nodes>
<count>7</count>
<item_version>0</item_version>
<item>
<first>46</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>5</item>
</second>
</item>
<item>
<first>93</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>8</item>
</second>
</item>
<item>
<first>98</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>11</item>
</second>
</item>
<item>
<first>103</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>12</item>
</second>
</item>
<item>
<first>108</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>13</item>
</second>
</item>
<item>
<first>113</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>14</item>
</second>
</item>
<item>
<first>118</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>17</item>
</second>
</item>
</dp_reg_nodes>
<dp_regname_nodes>
<count>7</count>
<item_version>0</item_version>
<item>
<first>data_V_addr_reg_103</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>12</item>
</second>
</item>
<item>
<first>datareg_V_1_reg_118</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>17</item>
</second>
</item>
<item>
<first>datareg_V_reg_108</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>13</item>
</second>
</item>
<item>
<first>ii_1_reg_93</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>8</item>
</second>
</item>
<item>
<first>ii_reg_46</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>5</item>
</second>
</item>
<item>
<first>tmp_17_reg_113</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>14</item>
</second>
</item>
<item>
<first>tmp_s_reg_98</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>11</item>
</second>
</item>
</dp_regname_nodes>
<dp_reg_phi>
<count>1</count>
<item_version>0</item_version>
<item>
<first>46</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>5</item>
</second>
</item>
</dp_reg_phi>
<dp_regname_phi>
<count>1</count>
<item_version>0</item_version>
<item>
<first>ii_reg_46</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>5</item>
</second>
</item>
</dp_regname_phi>
<dp_port_io_nodes class_id="52" tracking_level="0" version="0">
<count>2</count>
<item_version>0</item_version>
<item class_id="53" tracking_level="0" version="0">
<first>data_V(p0)</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>load</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>13</item>
<item>13</item>
</second>
</item>
</second>
</item>
<item>
<first>res_V(p0)</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>store</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>18</item>
</second>
</item>
</second>
</item>
</dp_port_io_nodes>
<port2core class_id="54" tracking_level="0" version="0">
<count>2</count>
<item_version>0</item_version>
<item class_id="55" tracking_level="0" version="0">
<first>1</first>
<second>RAM</second>
</item>
<item>
<first>2</first>
<second>RAM</second>
</item>
</port2core>
<node2core>
<count>0</count>
<item_version>0</item_version>
</node2core>
</syndb>
</boost_serialization>
|
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- E X P _ A T T R --
-- --
-- S p e c --
-- --
-- Copyright (C) 1992-2020, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
-- for more details. You should have received a copy of the GNU General --
-- Public License distributed with GNAT; see file COPYING3. If not, go to --
-- http://www.gnu.org/licenses for a complete copy of the license. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
-- Expand routines for attribute references
with Types; use Types;
package Exp_Attr is
procedure Expand_N_Attribute_Reference (N : Node_Id);
procedure Expand_Size_Attribute (N : Node_Id);
-- Handles part of the expansion of attributes 'Object_Size, 'Size,
-- 'Value_Size, and 'VADS_Size, so that it can also be used in the special
-- expansion in GNATprove mode.
end Exp_Attr;
|
package ship is
type Ship_Type is Private;
type Ship_Data is Private;
type Ship_Modify is (build, colony, grid, max);
function is_Colony return Ship_Data;
function is_StarShip return Ship_Data;
function is_Station return Ship_Data;
function show_me_ship_type (ship: in Ship_Data) return String;
function show_me_ship_data (ship: in Ship_Data; modify: in Ship_Modify) return Integer;
procedure modify_ship_data (ship: in out Ship_Data; modify: in Ship_Modify; num: Integer);
Private
type Ship_Type is (Colony, StarShip, Station);
type Ship_Data is
record
name: Ship_Type;
build: Integer;
colony: Integer;
grid: Integer;
max: Integer;
end record;
end ship;
|
-----------------------------------------------------------------------
-- asf-helpers-beans -- Helper packages to write ASF applications
-- Copyright (C) 2012, 2017 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
-----------------------------------------------------------------------
with Util.Beans.Basic;
with ASF.Requests;
package ASF.Helpers.Beans is
-- Get a bean instance associated under the given name from the current faces context.
-- A null value is returned if the bean does not exist or is not of the good type.
generic
type Element_Type is new Util.Beans.Basic.Readonly_Bean with private;
type Element_Access is access all Element_Type'Class;
function Get_Bean (Name : in String) return Element_Access;
-- Get a bean instance associated under the given name from the request.
-- A null value is returned if the bean does not exist or is not of the good type.
generic
type Element_Type is new Util.Beans.Basic.Readonly_Bean with private;
type Element_Access is access all Element_Type'Class;
function Get_Request_Bean (Request : in ASF.Requests.Request'Class;
Name : in String) return Element_Access;
end ASF.Helpers.Beans;
|
-- Copyright 2016-2021 Free Software Foundation, Inc.
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
package body Pck is
procedure Do_Nothing (A : System.Address) is
begin
null;
end Do_Nothing;
end pck;
|
-----------------------------------------------------------------------
-- contexts-facelets -- Contexts for facelets
-- Copyright (C) 2009, 2010, 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 Ada.Directories;
with Util.Files;
with Util.Log.Loggers;
with EL.Variables;
with ASF.Applications.Main;
with ASF.Views.Nodes.Facelets;
package body ASF.Contexts.Facelets is
use Util.Log;
-- The logger
Log : constant Loggers.Logger := Loggers.Create ("ASF.Contexts.Facelets");
-- ------------------------------
-- Get the EL context for evaluating expressions.
-- ------------------------------
function Get_ELContext (Context : in Facelet_Context)
return EL.Contexts.ELContext_Access is
begin
return Context.Context;
end Get_ELContext;
-- ------------------------------
-- Set the EL context for evaluating expressions.
-- ------------------------------
procedure Set_ELContext (Context : in out Facelet_Context;
ELContext : in EL.Contexts.ELContext_Access) is
begin
Context.Context := ELContext;
end Set_ELContext;
-- ------------------------------
-- Get the function mapper associated with the EL context.
-- ------------------------------
function Get_Function_Mapper (Context : in Facelet_Context)
return EL.Functions.Function_Mapper_Access is
use EL.Contexts;
begin
if Context.Context = null then
return null;
else
return Context.Context.Get_Function_Mapper;
end if;
end Get_Function_Mapper;
-- ------------------------------
-- Set the attribute having given name with the value.
-- ------------------------------
procedure Set_Attribute (Context : in out Facelet_Context;
Name : in String;
Value : in EL.Objects.Object) is
begin
null;
end Set_Attribute;
-- ------------------------------
-- Set the attribute having given name with the value.
-- ------------------------------
procedure Set_Attribute (Context : in out Facelet_Context;
Name : in Unbounded_String;
Value : in EL.Objects.Object) is
begin
null;
end Set_Attribute;
-- ------------------------------
-- Set the attribute having given name with the expression.
-- ------------------------------
procedure Set_Variable (Context : in out Facelet_Context;
Name : in Unbounded_String;
Value : in EL.Expressions.Expression) is
Mapper : constant access EL.Variables.Variable_Mapper'Class
:= Context.Context.Get_Variable_Mapper;
begin
if Mapper /= null then
Mapper.Set_Variable (Name, Value);
end if;
end Set_Variable;
-- Set the attribute having given name with the expression.
procedure Set_Variable (Context : in out Facelet_Context;
Name : in String;
Value : in EL.Expressions.Expression) is
N : constant Unbounded_String := To_Unbounded_String (Name);
begin
Set_Variable (Context, N, Value);
end Set_Variable;
-- ------------------------------
-- Include the facelet from the given source file.
-- The included views appended to the parent component tree.
-- ------------------------------
procedure Include_Facelet (Context : in out Facelet_Context;
Source : in String;
Parent : in Base.UIComponent_Access) is
begin
null;
end Include_Facelet;
-- ------------------------------
-- Include the definition having the given name.
-- ------------------------------
procedure Include_Definition (Context : in out Facelet_Context;
Name : in Unbounded_String;
Parent : in Base.UIComponent_Access;
Found : out Boolean) is
Node : Composition_Tag_Node;
Iter : Defines_Vector.Cursor := Context.Defines.Last;
The_Name : aliased constant String := To_String (Name);
begin
if Context.Inserts.Contains (The_Name'Unchecked_Access) then
Found := True;
return;
end if;
Context.Inserts.Insert (The_Name'Unchecked_Access);
while Defines_Vector.Has_Element (Iter) loop
Node := Defines_Vector.Element (Iter);
Node.Include_Definition (Parent => Parent,
Context => Context,
Name => Name,
Found => Found);
if Found then
Context.Inserts.Delete (The_Name'Unchecked_Access);
return;
end if;
Defines_Vector.Previous (Iter);
end loop;
Found := False;
Context.Inserts.Delete (The_Name'Unchecked_Access);
end Include_Definition;
-- ------------------------------
-- Push into the current facelet context the <ui:define> nodes contained in
-- the composition/decorate tag.
-- ------------------------------
procedure Push_Defines (Context : in out Facelet_Context;
Node : access ASF.Views.Nodes.Facelets.Composition_Tag_Node) is
begin
Context.Defines.Append (Node.all'Access);
end Push_Defines;
-- ------------------------------
-- Pop from the current facelet context the <ui:define> nodes.
-- ------------------------------
procedure Pop_Defines (Context : in out Facelet_Context) is
use Ada.Containers;
begin
if Context.Defines.Length > 0 then
Context.Defines.Delete_Last;
end if;
end Pop_Defines;
-- ------------------------------
-- Set the path to resolve relative facelet paths and get the previous path.
-- ------------------------------
procedure Set_Relative_Path (Context : in out Facelet_Context;
Path : in String;
Previous : out Unbounded_String) is
begin
Log.Debug ("Set facelet relative path: {0}", Path);
Previous := Context.Path;
Context.Path := To_Unbounded_String (Ada.Directories.Containing_Directory (Path));
end Set_Relative_Path;
-- ------------------------------
-- Set the path to resolve relative facelet paths.
-- ------------------------------
procedure Set_Relative_Path (Context : in out Facelet_Context;
Path : in Unbounded_String) is
begin
Log.Debug ("Set facelet relative path: {0}", Path);
Context.Path := Path;
end Set_Relative_Path;
-- ------------------------------
-- Resolve the facelet relative path
-- ------------------------------
function Resolve_Path (Context : Facelet_Context;
Path : String) return String is
begin
if Path (Path'First) = '/' then
return Path;
else
Log.Debug ("Resolve {0} with context {1}", Path, To_String (Context.Path));
return Util.Files.Compose (To_String (Context.Path), Path);
end if;
end Resolve_Path;
-- ------------------------------
-- Get a converter from a name.
-- Returns the converter object or null if there is no converter.
-- ------------------------------
function Get_Converter (Context : in Facelet_Context;
Name : in EL.Objects.Object)
return ASF.Converters.Converter_Access is
begin
return Facelet_Context'Class (Context).Get_Application.Find (Name);
end Get_Converter;
-- ------------------------------
-- Get a validator from a name.
-- Returns the validator object or null if there is no validator.
-- ------------------------------
function Get_Validator (Context : in Facelet_Context;
Name : in EL.Objects.Object)
return ASF.Validators.Validator_Access is
begin
return Facelet_Context'Class (Context).Get_Application.Find_Validator (Name);
end Get_Validator;
end ASF.Contexts.Facelets;
|
------------------------------------------------------------------------------
-- --
-- GNAT ncurses Binding --
-- --
-- Terminal_Interface.Curses.Text_IO.Modular_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, 1996
-- Version Control:
-- $Revision: 1.11 $
-- Binding Version 01.00
------------------------------------------------------------------------------
generic
type Num is mod <>;
package Terminal_Interface.Curses.Text_IO.Modular_IO is
Default_Width : Field := Num'Width;
Default_Base : Number_Base := 10;
procedure Put
(Win : in Window;
Item : in Num;
Width : in Field := Default_Width;
Base : in Number_Base := Default_Base);
procedure Put
(Item : in Num;
Width : in Field := Default_Width;
Base : in Number_Base := Default_Base);
private
pragma Inline (Put);
end Terminal_Interface.Curses.Text_IO.Modular_IO;
|
package Array28_Pkg is
subtype Outer_Type is String (1 .. 8);
subtype Inner_Type is String (1 .. 5);
function F return Inner_Type;
end Array28_Pkg;
|
-- CE3806D.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 FLOAT_IO PUT OPERATES ON FILES OF MODE OUT_FILE AND
-- IF NO FILE IS SPECIFIED THE CURRENT DEFAULT OUTPUT FILE IS USED.
--- APPLICABILITY CRITERIA:
-- THIS TEST IS APPLICABLE ONLY TO IMPLEMENTATIONS WHICH SUPPORT
-- TEXT FILES.
-- HISTORY:
-- SPS 10/06/82
-- VKG 02/15/83
-- JBG 02/22/84 CHANGED TO .ADA TEST
-- RJW 11/04/86 REVISED TEST TO OUTPUT A NOT_APPLICABLE
-- RESULT WHEN FILES ARE NOT SUPPORTED.
-- JLH 09/14/87 REMOVED DEPENDENCE ON RESET AND CORRECT EXCEPTION
-- HANDLING.
WITH REPORT;
USE REPORT;
WITH TEXT_IO;
USE TEXT_IO;
PROCEDURE CE3806D IS
BEGIN
TEST ("CE3806D", "CHECK THAT FLOAT_IO OPERATES ON FILES OF MODE " &
"OUT_FILE AND IF NO FILE IS SPECIFIED THE " &
"CURRENT DEFAULT OUTPUT FILE IS USED");
DECLARE
FT1, FT2 : FILE_TYPE;
TYPE FL IS DIGITS 3;
PACKAGE FLIO IS NEW FLOAT_IO (FL);
USE FLIO;
INCOMPLETE : EXCEPTION;
X : FL := -1.5;
BEGIN
BEGIN
CREATE (FT1, OUT_FILE, LEGAL_FILE_NAME);
EXCEPTION
WHEN USE_ERROR =>
NOT_APPLICABLE ("USE_ERROR RAISED ON TEXT CREATE " &
"WITH OUT_FILE MODE");
RAISE INCOMPLETE;
WHEN NAME_ERROR =>
NOT_APPLICABLE ("NAME_ERROR RAISED ON TEXT " &
"CREATE WITH OUT_FILE MODE");
RAISE INCOMPLETE;
END;
CREATE (FT2, OUT_FILE, LEGAL_FILE_NAME(2));
SET_OUTPUT (FT2);
BEGIN
PUT (FT1, X);
PUT (X + 1.0);
CLOSE (FT1);
BEGIN
OPEN (FT1, IN_FILE, LEGAL_FILE_NAME);
EXCEPTION
WHEN USE_ERROR =>
NOT_APPLICABLE ("USE_ERROR RAISED ON TEXT " &
"OPEN WITH IN_FILE MODE");
RAISE INCOMPLETE;
END;
SET_OUTPUT (STANDARD_OUTPUT);
CLOSE (FT2);
OPEN (FT2, IN_FILE, LEGAL_FILE_NAME(2));
X := 0.0;
GET (FT1, X);
IF X /= -1.5 THEN
FAILED ("VALUE INCORRECT - FLOAT FROM FILE");
END IF;
X := 0.0;
GET (FT2, X);
IF X /= -0.5 THEN
FAILED (" VVALUE INCORRECT - FLOAT FROM DEFAULT");
END IF;
END;
BEGIN
DELETE (FT1);
DELETE (FT2);
EXCEPTION
WHEN USE_ERROR =>
NULL;
END;
EXCEPTION
WHEN INCOMPLETE =>
NULL;
END;
RESULT;
END CE3806D;
|
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Ada Modeling Framework --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2011-2012, Vadim Godunko <vgodunko@gmail.com> --
-- All rights reserved. --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions --
-- are met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
-- Containment iterator for elements of UML metamodel. It should be used with
-- metamodel independent containment iterator (and others metamodel specific
-- containment iterators when necessary) to construct concrete usabe iterator.
------------------------------------------------------------------------------
with AMF.UML.Abstractions;
with AMF.UML.Accept_Call_Actions;
with AMF.UML.Accept_Event_Actions;
with AMF.UML.Action_Execution_Specifications;
with AMF.UML.Action_Input_Pins;
with AMF.UML.Activities;
with AMF.UML.Activity_Final_Nodes;
with AMF.UML.Activity_Parameter_Nodes;
with AMF.UML.Activity_Partitions;
with AMF.UML.Actors;
with AMF.UML.Add_Structural_Feature_Value_Actions;
with AMF.UML.Add_Variable_Value_Actions;
with AMF.UML.Any_Receive_Events;
with AMF.UML.Artifacts;
with AMF.UML.Associations;
with AMF.UML.Association_Classes;
with AMF.UML.Behavior_Execution_Specifications;
with AMF.UML.Broadcast_Signal_Actions;
with AMF.UML.Call_Behavior_Actions;
with AMF.UML.Call_Events;
with AMF.UML.Call_Operation_Actions;
with AMF.UML.Central_Buffer_Nodes;
with AMF.UML.Change_Events;
with AMF.UML.Classes;
with AMF.UML.Classifier_Template_Parameters;
with AMF.UML.Clauses;
with AMF.UML.Clear_Association_Actions;
with AMF.UML.Clear_Structural_Feature_Actions;
with AMF.UML.Clear_Variable_Actions;
with AMF.UML.Collaborations;
with AMF.UML.Collaboration_Uses;
with AMF.UML.Combined_Fragments;
with AMF.UML.Comments;
with AMF.UML.Communication_Paths;
with AMF.UML.Components;
with AMF.UML.Component_Realizations;
with AMF.UML.Conditional_Nodes;
with AMF.UML.Connectable_Element_Template_Parameters;
with AMF.UML.Connection_Point_References;
with AMF.UML.Connectors;
with AMF.UML.Connector_Ends;
with AMF.UML.Consider_Ignore_Fragments;
with AMF.UML.Constraints;
with AMF.UML.Continuations;
with AMF.UML.Control_Flows;
with AMF.UML.Create_Link_Actions;
with AMF.UML.Create_Link_Object_Actions;
with AMF.UML.Create_Object_Actions;
with AMF.UML.Data_Store_Nodes;
with AMF.UML.Data_Types;
with AMF.UML.Decision_Nodes;
with AMF.UML.Dependencies;
with AMF.UML.Deployments;
with AMF.UML.Deployment_Specifications;
with AMF.UML.Destroy_Link_Actions;
with AMF.UML.Destroy_Object_Actions;
with AMF.UML.Destruction_Occurrence_Specifications;
with AMF.UML.Devices;
with AMF.UML.Durations;
with AMF.UML.Duration_Constraints;
with AMF.UML.Duration_Intervals;
with AMF.UML.Duration_Observations;
with AMF.UML.Element_Imports;
with AMF.UML.Enumerations;
with AMF.UML.Enumeration_Literals;
with AMF.UML.Exception_Handlers;
with AMF.UML.Execution_Environments;
with AMF.UML.Execution_Occurrence_Specifications;
with AMF.UML.Expansion_Nodes;
with AMF.UML.Expansion_Regions;
with AMF.UML.Expressions;
with AMF.UML.Extends;
with AMF.UML.Extensions;
with AMF.UML.Extension_Ends;
with AMF.UML.Extension_Points;
with AMF.UML.Final_States;
with AMF.UML.Flow_Final_Nodes;
with AMF.UML.Fork_Nodes;
with AMF.UML.Function_Behaviors;
with AMF.UML.Gates;
with AMF.UML.General_Orderings;
with AMF.UML.Generalizations;
with AMF.UML.Generalization_Sets;
with AMF.UML.Images;
with AMF.UML.Includes;
with AMF.UML.Information_Flows;
with AMF.UML.Information_Items;
with AMF.UML.Initial_Nodes;
with AMF.UML.Input_Pins;
with AMF.UML.Instance_Specifications;
with AMF.UML.Instance_Values;
with AMF.UML.Interactions;
with AMF.UML.Interaction_Constraints;
with AMF.UML.Interaction_Operands;
with AMF.UML.Interaction_Uses;
with AMF.UML.Interfaces;
with AMF.UML.Interface_Realizations;
with AMF.UML.Interruptible_Activity_Regions;
with AMF.UML.Intervals;
with AMF.UML.Interval_Constraints;
with AMF.UML.Join_Nodes;
with AMF.UML.Lifelines;
with AMF.UML.Link_End_Creation_Datas;
with AMF.UML.Link_End_Datas;
with AMF.UML.Link_End_Destruction_Datas;
with AMF.UML.Literal_Booleans;
with AMF.UML.Literal_Integers;
with AMF.UML.Literal_Nulls;
with AMF.UML.Literal_Reals;
with AMF.UML.Literal_Strings;
with AMF.UML.Literal_Unlimited_Naturals;
with AMF.UML.Loop_Nodes;
with AMF.UML.Manifestations;
with AMF.UML.Merge_Nodes;
with AMF.UML.Messages;
with AMF.UML.Message_Occurrence_Specifications;
with AMF.UML.Models;
with AMF.UML.Nodes;
with AMF.UML.Object_Flows;
with AMF.UML.Occurrence_Specifications;
with AMF.UML.Opaque_Actions;
with AMF.UML.Opaque_Behaviors;
with AMF.UML.Opaque_Expressions;
with AMF.UML.Operations;
with AMF.UML.Operation_Template_Parameters;
with AMF.UML.Output_Pins;
with AMF.UML.Packages;
with AMF.UML.Package_Imports;
with AMF.UML.Package_Merges;
with AMF.UML.Parameters;
with AMF.UML.Parameter_Sets;
with AMF.UML.Part_Decompositions;
with AMF.UML.Ports;
with AMF.UML.Primitive_Types;
with AMF.UML.Profiles;
with AMF.UML.Profile_Applications;
with AMF.UML.Properties;
with AMF.UML.Protocol_Conformances;
with AMF.UML.Protocol_State_Machines;
with AMF.UML.Protocol_Transitions;
with AMF.UML.Pseudostates;
with AMF.UML.Qualifier_Values;
with AMF.UML.Raise_Exception_Actions;
with AMF.UML.Read_Extent_Actions;
with AMF.UML.Read_Is_Classified_Object_Actions;
with AMF.UML.Read_Link_Actions;
with AMF.UML.Read_Link_Object_End_Actions;
with AMF.UML.Read_Link_Object_End_Qualifier_Actions;
with AMF.UML.Read_Self_Actions;
with AMF.UML.Read_Structural_Feature_Actions;
with AMF.UML.Read_Variable_Actions;
with AMF.UML.Realizations;
with AMF.UML.Receptions;
with AMF.UML.Reclassify_Object_Actions;
with AMF.UML.Redefinable_Template_Signatures;
with AMF.UML.Reduce_Actions;
with AMF.UML.Regions;
with AMF.UML.Remove_Structural_Feature_Value_Actions;
with AMF.UML.Remove_Variable_Value_Actions;
with AMF.UML.Reply_Actions;
with AMF.UML.Send_Object_Actions;
with AMF.UML.Send_Signal_Actions;
with AMF.UML.Sequence_Nodes;
with AMF.UML.Signals;
with AMF.UML.Signal_Events;
with AMF.UML.Slots;
with AMF.UML.Start_Classifier_Behavior_Actions;
with AMF.UML.Start_Object_Behavior_Actions;
with AMF.UML.States;
with AMF.UML.State_Invariants;
with AMF.UML.State_Machines;
with AMF.UML.Stereotypes;
with AMF.UML.String_Expressions;
with AMF.UML.Structured_Activity_Nodes;
with AMF.UML.Substitutions;
with AMF.UML.Template_Bindings;
with AMF.UML.Template_Parameters;
with AMF.UML.Template_Parameter_Substitutions;
with AMF.UML.Template_Signatures;
with AMF.UML.Test_Identity_Actions;
with AMF.UML.Time_Constraints;
with AMF.UML.Time_Events;
with AMF.UML.Time_Expressions;
with AMF.UML.Time_Intervals;
with AMF.UML.Time_Observations;
with AMF.UML.Transitions;
with AMF.UML.Triggers;
with AMF.UML.Unmarshall_Actions;
with AMF.UML.Usages;
with AMF.UML.Use_Cases;
with AMF.UML.Value_Pins;
with AMF.UML.Value_Specification_Actions;
with AMF.UML.Variables;
with AMF.Visitors.UML_Iterators;
generic
type Base_Iterator is abstract tagged limited private;
package AMF.Visitors.Generic_UML_Containment is
type UML_Containment_Iterator is
limited new Base_Iterator
and AMF.Visitors.UML_Iterators.UML_Iterator
with private;
overriding procedure Visit_Abstraction
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Abstractions.UML_Abstraction_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Accept_Call_Action
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Accept_Call_Actions.UML_Accept_Call_Action_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Accept_Event_Action
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Accept_Event_Actions.UML_Accept_Event_Action_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Action_Execution_Specification
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Action_Execution_Specifications.UML_Action_Execution_Specification_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Action_Input_Pin
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Action_Input_Pins.UML_Action_Input_Pin_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Activity
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Activities.UML_Activity_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Activity_Final_Node
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Activity_Final_Nodes.UML_Activity_Final_Node_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Activity_Parameter_Node
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Activity_Parameter_Nodes.UML_Activity_Parameter_Node_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Activity_Partition
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Activity_Partitions.UML_Activity_Partition_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Actor
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Actors.UML_Actor_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Add_Structural_Feature_Value_Action
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Add_Structural_Feature_Value_Actions.UML_Add_Structural_Feature_Value_Action_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Add_Variable_Value_Action
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Add_Variable_Value_Actions.UML_Add_Variable_Value_Action_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Any_Receive_Event
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Any_Receive_Events.UML_Any_Receive_Event_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Artifact
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Artifacts.UML_Artifact_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Association
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Associations.UML_Association_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Association_Class
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Association_Classes.UML_Association_Class_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Behavior_Execution_Specification
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Behavior_Execution_Specifications.UML_Behavior_Execution_Specification_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Broadcast_Signal_Action
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Broadcast_Signal_Actions.UML_Broadcast_Signal_Action_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Call_Behavior_Action
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Call_Behavior_Actions.UML_Call_Behavior_Action_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Call_Event
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Call_Events.UML_Call_Event_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Call_Operation_Action
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Call_Operation_Actions.UML_Call_Operation_Action_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Central_Buffer_Node
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Central_Buffer_Nodes.UML_Central_Buffer_Node_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Change_Event
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Change_Events.UML_Change_Event_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Class
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Classes.UML_Class_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Classifier_Template_Parameter
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Classifier_Template_Parameters.UML_Classifier_Template_Parameter_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Clause
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Clauses.UML_Clause_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Clear_Association_Action
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Clear_Association_Actions.UML_Clear_Association_Action_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Clear_Structural_Feature_Action
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Clear_Structural_Feature_Actions.UML_Clear_Structural_Feature_Action_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Clear_Variable_Action
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Clear_Variable_Actions.UML_Clear_Variable_Action_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Collaboration
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Collaborations.UML_Collaboration_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Collaboration_Use
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Collaboration_Uses.UML_Collaboration_Use_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Combined_Fragment
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Combined_Fragments.UML_Combined_Fragment_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Comment
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Comments.UML_Comment_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Communication_Path
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Communication_Paths.UML_Communication_Path_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Component
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Components.UML_Component_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Component_Realization
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Component_Realizations.UML_Component_Realization_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Conditional_Node
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Conditional_Nodes.UML_Conditional_Node_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Connectable_Element_Template_Parameter
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Connectable_Element_Template_Parameters.UML_Connectable_Element_Template_Parameter_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Connection_Point_Reference
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Connection_Point_References.UML_Connection_Point_Reference_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Connector
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Connectors.UML_Connector_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Connector_End
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Connector_Ends.UML_Connector_End_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Consider_Ignore_Fragment
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Consider_Ignore_Fragments.UML_Consider_Ignore_Fragment_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Constraint
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Constraints.UML_Constraint_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Continuation
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Continuations.UML_Continuation_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Control_Flow
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Control_Flows.UML_Control_Flow_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Create_Link_Action
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Create_Link_Actions.UML_Create_Link_Action_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Create_Link_Object_Action
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Create_Link_Object_Actions.UML_Create_Link_Object_Action_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Create_Object_Action
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Create_Object_Actions.UML_Create_Object_Action_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Data_Store_Node
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Data_Store_Nodes.UML_Data_Store_Node_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Data_Type
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Data_Types.UML_Data_Type_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Decision_Node
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Decision_Nodes.UML_Decision_Node_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Dependency
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Dependencies.UML_Dependency_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Deployment
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Deployments.UML_Deployment_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Deployment_Specification
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Deployment_Specifications.UML_Deployment_Specification_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Destroy_Link_Action
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Destroy_Link_Actions.UML_Destroy_Link_Action_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Destroy_Object_Action
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Destroy_Object_Actions.UML_Destroy_Object_Action_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Destruction_Occurrence_Specification
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Destruction_Occurrence_Specifications.UML_Destruction_Occurrence_Specification_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Device
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Devices.UML_Device_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Duration
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Durations.UML_Duration_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Duration_Constraint
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Duration_Constraints.UML_Duration_Constraint_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Duration_Interval
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Duration_Intervals.UML_Duration_Interval_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Duration_Observation
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Duration_Observations.UML_Duration_Observation_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Element_Import
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Element_Imports.UML_Element_Import_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Enumeration
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Enumerations.UML_Enumeration_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Enumeration_Literal
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Enumeration_Literals.UML_Enumeration_Literal_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Exception_Handler
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Exception_Handlers.UML_Exception_Handler_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Execution_Environment
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Execution_Environments.UML_Execution_Environment_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Execution_Occurrence_Specification
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Execution_Occurrence_Specifications.UML_Execution_Occurrence_Specification_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Expansion_Node
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Expansion_Nodes.UML_Expansion_Node_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Expansion_Region
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Expansion_Regions.UML_Expansion_Region_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Expression
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Expressions.UML_Expression_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Extend
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Extends.UML_Extend_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Extension
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Extensions.UML_Extension_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Extension_End
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Extension_Ends.UML_Extension_End_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Extension_Point
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Extension_Points.UML_Extension_Point_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Final_State
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Final_States.UML_Final_State_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Flow_Final_Node
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Flow_Final_Nodes.UML_Flow_Final_Node_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Fork_Node
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Fork_Nodes.UML_Fork_Node_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Function_Behavior
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Function_Behaviors.UML_Function_Behavior_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Gate
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Gates.UML_Gate_Access;
Control : in out Traverse_Control);
overriding procedure Visit_General_Ordering
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.General_Orderings.UML_General_Ordering_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Generalization
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Generalizations.UML_Generalization_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Generalization_Set
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Generalization_Sets.UML_Generalization_Set_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Image
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Images.UML_Image_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Include
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Includes.UML_Include_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Information_Flow
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Information_Flows.UML_Information_Flow_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Information_Item
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Information_Items.UML_Information_Item_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Initial_Node
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Initial_Nodes.UML_Initial_Node_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Input_Pin
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Input_Pins.UML_Input_Pin_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Instance_Specification
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Instance_Specifications.UML_Instance_Specification_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Instance_Value
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Instance_Values.UML_Instance_Value_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Interaction
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Interactions.UML_Interaction_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Interaction_Constraint
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Interaction_Constraints.UML_Interaction_Constraint_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Interaction_Operand
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Interaction_Operands.UML_Interaction_Operand_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Interaction_Use
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Interaction_Uses.UML_Interaction_Use_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Interface
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Interfaces.UML_Interface_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Interface_Realization
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Interface_Realizations.UML_Interface_Realization_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Interruptible_Activity_Region
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Interruptible_Activity_Regions.UML_Interruptible_Activity_Region_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Interval
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Intervals.UML_Interval_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Interval_Constraint
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Interval_Constraints.UML_Interval_Constraint_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Join_Node
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Join_Nodes.UML_Join_Node_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Lifeline
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Lifelines.UML_Lifeline_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Link_End_Creation_Data
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Link_End_Creation_Datas.UML_Link_End_Creation_Data_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Link_End_Data
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Link_End_Datas.UML_Link_End_Data_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Link_End_Destruction_Data
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Link_End_Destruction_Datas.UML_Link_End_Destruction_Data_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Literal_Boolean
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Literal_Booleans.UML_Literal_Boolean_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Literal_Integer
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Literal_Integers.UML_Literal_Integer_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Literal_Null
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Literal_Nulls.UML_Literal_Null_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Literal_Real
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Literal_Reals.UML_Literal_Real_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Literal_String
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Literal_Strings.UML_Literal_String_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Literal_Unlimited_Natural
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Literal_Unlimited_Naturals.UML_Literal_Unlimited_Natural_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Loop_Node
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Loop_Nodes.UML_Loop_Node_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Manifestation
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Manifestations.UML_Manifestation_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Merge_Node
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Merge_Nodes.UML_Merge_Node_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Message
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Messages.UML_Message_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Message_Occurrence_Specification
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Message_Occurrence_Specifications.UML_Message_Occurrence_Specification_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Model
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Models.UML_Model_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Node
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Nodes.UML_Node_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Object_Flow
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Object_Flows.UML_Object_Flow_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Occurrence_Specification
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Occurrence_Specifications.UML_Occurrence_Specification_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Opaque_Action
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Opaque_Actions.UML_Opaque_Action_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Opaque_Behavior
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Opaque_Behaviors.UML_Opaque_Behavior_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Opaque_Expression
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Opaque_Expressions.UML_Opaque_Expression_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Operation
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Operations.UML_Operation_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Operation_Template_Parameter
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Operation_Template_Parameters.UML_Operation_Template_Parameter_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Output_Pin
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Output_Pins.UML_Output_Pin_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Package
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Packages.UML_Package_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Package_Import
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Package_Imports.UML_Package_Import_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Package_Merge
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Package_Merges.UML_Package_Merge_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Parameter
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Parameters.UML_Parameter_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Parameter_Set
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Parameter_Sets.UML_Parameter_Set_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Part_Decomposition
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Part_Decompositions.UML_Part_Decomposition_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Port
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Ports.UML_Port_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Primitive_Type
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Primitive_Types.UML_Primitive_Type_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Profile
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Profiles.UML_Profile_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Profile_Application
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Profile_Applications.UML_Profile_Application_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Property
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Properties.UML_Property_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Protocol_Conformance
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Protocol_Conformances.UML_Protocol_Conformance_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Protocol_State_Machine
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Protocol_State_Machines.UML_Protocol_State_Machine_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Protocol_Transition
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Protocol_Transitions.UML_Protocol_Transition_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Pseudostate
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Pseudostates.UML_Pseudostate_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Qualifier_Value
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Qualifier_Values.UML_Qualifier_Value_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Raise_Exception_Action
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Raise_Exception_Actions.UML_Raise_Exception_Action_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Read_Extent_Action
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Read_Extent_Actions.UML_Read_Extent_Action_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Read_Is_Classified_Object_Action
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Read_Is_Classified_Object_Actions.UML_Read_Is_Classified_Object_Action_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Read_Link_Action
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Read_Link_Actions.UML_Read_Link_Action_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Read_Link_Object_End_Action
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Read_Link_Object_End_Actions.UML_Read_Link_Object_End_Action_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Read_Link_Object_End_Qualifier_Action
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Read_Link_Object_End_Qualifier_Actions.UML_Read_Link_Object_End_Qualifier_Action_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Read_Self_Action
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Read_Self_Actions.UML_Read_Self_Action_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Read_Structural_Feature_Action
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Read_Structural_Feature_Actions.UML_Read_Structural_Feature_Action_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Read_Variable_Action
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Read_Variable_Actions.UML_Read_Variable_Action_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Realization
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Realizations.UML_Realization_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Reception
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Receptions.UML_Reception_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Reclassify_Object_Action
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Reclassify_Object_Actions.UML_Reclassify_Object_Action_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Redefinable_Template_Signature
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Redefinable_Template_Signatures.UML_Redefinable_Template_Signature_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Reduce_Action
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Reduce_Actions.UML_Reduce_Action_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Region
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Regions.UML_Region_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Remove_Structural_Feature_Value_Action
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Remove_Structural_Feature_Value_Actions.UML_Remove_Structural_Feature_Value_Action_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Remove_Variable_Value_Action
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Remove_Variable_Value_Actions.UML_Remove_Variable_Value_Action_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Reply_Action
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Reply_Actions.UML_Reply_Action_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Send_Object_Action
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Send_Object_Actions.UML_Send_Object_Action_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Send_Signal_Action
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Send_Signal_Actions.UML_Send_Signal_Action_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Sequence_Node
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Sequence_Nodes.UML_Sequence_Node_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Signal
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Signals.UML_Signal_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Signal_Event
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Signal_Events.UML_Signal_Event_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Slot
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Slots.UML_Slot_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Start_Classifier_Behavior_Action
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Start_Classifier_Behavior_Actions.UML_Start_Classifier_Behavior_Action_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Start_Object_Behavior_Action
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Start_Object_Behavior_Actions.UML_Start_Object_Behavior_Action_Access;
Control : in out Traverse_Control);
overriding procedure Visit_State
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.States.UML_State_Access;
Control : in out Traverse_Control);
overriding procedure Visit_State_Invariant
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.State_Invariants.UML_State_Invariant_Access;
Control : in out Traverse_Control);
overriding procedure Visit_State_Machine
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.State_Machines.UML_State_Machine_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Stereotype
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Stereotypes.UML_Stereotype_Access;
Control : in out Traverse_Control);
overriding procedure Visit_String_Expression
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.String_Expressions.UML_String_Expression_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Structured_Activity_Node
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Structured_Activity_Nodes.UML_Structured_Activity_Node_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Substitution
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Substitutions.UML_Substitution_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Template_Binding
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Template_Bindings.UML_Template_Binding_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Template_Parameter
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Template_Parameters.UML_Template_Parameter_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Template_Parameter_Substitution
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Template_Parameter_Substitutions.UML_Template_Parameter_Substitution_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Template_Signature
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Template_Signatures.UML_Template_Signature_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Test_Identity_Action
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Test_Identity_Actions.UML_Test_Identity_Action_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Time_Constraint
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Time_Constraints.UML_Time_Constraint_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Time_Event
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Time_Events.UML_Time_Event_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Time_Expression
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Time_Expressions.UML_Time_Expression_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Time_Interval
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Time_Intervals.UML_Time_Interval_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Time_Observation
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Time_Observations.UML_Time_Observation_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Transition
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Transitions.UML_Transition_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Trigger
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Triggers.UML_Trigger_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Unmarshall_Action
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Unmarshall_Actions.UML_Unmarshall_Action_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Usage
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Usages.UML_Usage_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Use_Case
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Use_Cases.UML_Use_Case_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Value_Pin
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Value_Pins.UML_Value_Pin_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Value_Specification_Action
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Value_Specification_Actions.UML_Value_Specification_Action_Access;
Control : in out Traverse_Control);
overriding procedure Visit_Variable
(Self : in out UML_Containment_Iterator;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Element : not null AMF.UML.Variables.UML_Variable_Access;
Control : in out Traverse_Control);
private
type UML_Containment_Iterator is
limited new Base_Iterator
and AMF.Visitors.UML_Iterators.UML_Iterator
with null record;
end AMF.Visitors.Generic_UML_Containment;
|
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- A D A . S H O R T _ I N T E G E R _ 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_Text_IO;
package Ada.Short_Integer_Wide_Text_IO is
new Ada.Wide_Text_IO.Integer_IO (Short_Integer);
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.